-
Notifications
You must be signed in to change notification settings - Fork 8
/
ge25519_lookup.S
2367 lines (1861 loc) · 58.4 KB
/
ge25519_lookup.S
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# qhasm: int64 input_0
# qhasm: int64 input_1
# qhasm: int64 input_2
# qhasm: int64 input_3
# qhasm: int64 input_4
# qhasm: int64 input_5
# qhasm: stack64 input_6
# qhasm: stack64 input_7
# qhasm: int64 caller_r11
# qhasm: int64 caller_r12
# qhasm: int64 caller_r13
# qhasm: int64 caller_r14
# qhasm: int64 caller_r15
# qhasm: int64 caller_rbx
# qhasm: int64 caller_rbp
# qhasm: int64 s0
# qhasm: int64 s1
# qhasm: int64 s2
# qhasm: int64 s3
# qhasm: int64 s4
# qhasm: int64 r0
# qhasm: int64 r1
# qhasm: int64 r2
# qhasm: int64 r3
# qhasm: int64 r4
# qhasm: int64 x0
# qhasm: int64 x1
# qhasm: int64 x2
# qhasm: int64 x3
# qhasm: int64 x4
# qhasm: int64 y0
# qhasm: int64 y1
# qhasm: int64 y2
# qhasm: int64 y3
# qhasm: int64 y4
# qhasm: int64 z0
# qhasm: int64 z1
# qhasm: int64 z2
# qhasm: int64 z3
# qhasm: int64 z4
# qhasm: int64 t0
# qhasm: int64 t1
# qhasm: int64 t2
# qhasm: int64 t3
# qhasm: int64 t4
# qhasm: int64 b
# qhasm: int64 t
# qhasm: int64 u
# qhasm: int64 mask
# qhasm: stack64 r11_stack
# qhasm: stack64 r12_stack
# qhasm: stack64 r13_stack
# qhasm: stack64 r14_stack
# qhasm: stack64 r15_stack
# qhasm: stack64 rbx_stack
# qhasm: stack64 rbp_stack
# qhasm: enter ge25519_lookup_asm
.p2align 5
.global _ge25519_lookup_asm
.global ge25519_lookup_asm
_ge25519_lookup_asm:
ge25519_lookup_asm:
mov %rsp,%r11
and $31,%r11
add $64,%r11
sub %r11,%rsp
# qhasm: r11_stack = caller_r11
# asm 1: movq <caller_r11=int64#9,>r11_stack=stack64#1
# asm 2: movq <caller_r11=%r11,>r11_stack=0(%rsp)
movq %r11,0(%rsp)
# qhasm: r12_stack = caller_r12
# asm 1: movq <caller_r12=int64#10,>r12_stack=stack64#2
# asm 2: movq <caller_r12=%r12,>r12_stack=8(%rsp)
movq %r12,8(%rsp)
# qhasm: r13_stack = caller_r13
# asm 1: movq <caller_r13=int64#11,>r13_stack=stack64#3
# asm 2: movq <caller_r13=%r13,>r13_stack=16(%rsp)
movq %r13,16(%rsp)
# qhasm: r14_stack = caller_r14
# asm 1: movq <caller_r14=int64#12,>r14_stack=stack64#4
# asm 2: movq <caller_r14=%r14,>r14_stack=24(%rsp)
movq %r14,24(%rsp)
# qhasm: r15_stack = caller_r15
# asm 1: movq <caller_r15=int64#13,>r15_stack=stack64#5
# asm 2: movq <caller_r15=%r15,>r15_stack=32(%rsp)
movq %r15,32(%rsp)
# qhasm: rbx_stack = caller_rbx
# asm 1: movq <caller_rbx=int64#14,>rbx_stack=stack64#6
# asm 2: movq <caller_rbx=%rbx,>rbx_stack=40(%rsp)
movq %rbx,40(%rsp)
# qhasm: rbp_stack = caller_rbp
# asm 1: movq <caller_rbp=int64#15,>rbp_stack=stack64#7
# asm 2: movq <caller_rbp=%rbp,>rbp_stack=48(%rsp)
movq %rbp,48(%rsp)
# qhasm: b = *( int8 *) (input_2 + 0)
# asm 1: movsbq 0(<input_2=int64#3),>b=int64#3
# asm 2: movsbq 0(<input_2=%rdx),>b=%rdx
movsbq 0(%rdx),%rdx
# qhasm: mask = b
# asm 1: mov <b=int64#3,>mask=int64#4
# asm 2: mov <b=%rdx,>mask=%rcx
mov %rdx,%rcx
# qhasm: (int64) mask >>= 7
# asm 1: sar $7,<mask=int64#4
# asm 2: sar $7,<mask=%rcx
sar $7,%rcx
# qhasm: u = b
# asm 1: mov <b=int64#3,>u=int64#5
# asm 2: mov <b=%rdx,>u=%r8
mov %rdx,%r8
# qhasm: u += mask
# asm 1: add <mask=int64#4,<u=int64#5
# asm 2: add <mask=%rcx,<u=%r8
add %rcx,%r8
# qhasm: u ^= mask
# asm 1: xor <mask=int64#4,<u=int64#5
# asm 2: xor <mask=%rcx,<u=%r8
xor %rcx,%r8
# qhasm: x0 = 0
# asm 1: mov $0,>x0=int64#4
# asm 2: mov $0,>x0=%rcx
mov $0,%rcx
# qhasm: x1 = 0
# asm 1: mov $0,>x1=int64#6
# asm 2: mov $0,>x1=%r9
mov $0,%r9
# qhasm: x2 = 0
# asm 1: mov $0,>x2=int64#7
# asm 2: mov $0,>x2=%rax
mov $0,%rax
# qhasm: x3 = 0
# asm 1: mov $0,>x3=int64#8
# asm 2: mov $0,>x3=%r10
mov $0,%r10
# qhasm: x4 = 0
# asm 1: mov $0,>x4=int64#9
# asm 2: mov $0,>x4=%r11
mov $0,%r11
# qhasm: y0 = 1
# asm 1: mov $1,>y0=int64#10
# asm 2: mov $1,>y0=%r12
mov $1,%r12
# qhasm: y1 = 0
# asm 1: mov $0,>y1=int64#11
# asm 2: mov $0,>y1=%r13
mov $0,%r13
# qhasm: y2 = 0
# asm 1: mov $0,>y2=int64#12
# asm 2: mov $0,>y2=%r14
mov $0,%r14
# qhasm: y3 = 0
# asm 1: mov $0,>y3=int64#13
# asm 2: mov $0,>y3=%r15
mov $0,%r15
# qhasm: y4 = 0
# asm 1: mov $0,>y4=int64#14
# asm 2: mov $0,>y4=%rbx
mov $0,%rbx
# qhasm: =? u - 1
# asm 1: cmp $1,<u=int64#5
# asm 2: cmp $1,<u=%r8
cmp $1,%r8
# qhasm: t = *(uint64 *) (input_1 + 0)
# asm 1: movq 0(<input_1=int64#2),>t=int64#15
# asm 2: movq 0(<input_1=%rsi),>t=%rbp
movq 0(%rsi),%rbp
# qhasm: x0 = t if =
# asm 1: cmove <t=int64#15,<x0=int64#4
# asm 2: cmove <t=%rbp,<x0=%rcx
cmove %rbp,%rcx
# qhasm: t = *(uint64 *) (input_1 + 8)
# asm 1: movq 8(<input_1=int64#2),>t=int64#15
# asm 2: movq 8(<input_1=%rsi),>t=%rbp
movq 8(%rsi),%rbp
# qhasm: x1 = t if =
# asm 1: cmove <t=int64#15,<x1=int64#6
# asm 2: cmove <t=%rbp,<x1=%r9
cmove %rbp,%r9
# qhasm: t = *(uint64 *) (input_1 + 16)
# asm 1: movq 16(<input_1=int64#2),>t=int64#15
# asm 2: movq 16(<input_1=%rsi),>t=%rbp
movq 16(%rsi),%rbp
# qhasm: x2 = t if =
# asm 1: cmove <t=int64#15,<x2=int64#7
# asm 2: cmove <t=%rbp,<x2=%rax
cmove %rbp,%rax
# qhasm: t = *(uint64 *) (input_1 + 24)
# asm 1: movq 24(<input_1=int64#2),>t=int64#15
# asm 2: movq 24(<input_1=%rsi),>t=%rbp
movq 24(%rsi),%rbp
# qhasm: x3 = t if =
# asm 1: cmove <t=int64#15,<x3=int64#8
# asm 2: cmove <t=%rbp,<x3=%r10
cmove %rbp,%r10
# qhasm: t = *(uint64 *) (input_1 + 32)
# asm 1: movq 32(<input_1=int64#2),>t=int64#15
# asm 2: movq 32(<input_1=%rsi),>t=%rbp
movq 32(%rsi),%rbp
# qhasm: x4 = t if =
# asm 1: cmove <t=int64#15,<x4=int64#9
# asm 2: cmove <t=%rbp,<x4=%r11
cmove %rbp,%r11
# qhasm: t = *(uint64 *) (input_1 + 40)
# asm 1: movq 40(<input_1=int64#2),>t=int64#15
# asm 2: movq 40(<input_1=%rsi),>t=%rbp
movq 40(%rsi),%rbp
# qhasm: y0 = t if =
# asm 1: cmove <t=int64#15,<y0=int64#10
# asm 2: cmove <t=%rbp,<y0=%r12
cmove %rbp,%r12
# qhasm: t = *(uint64 *) (input_1 + 48)
# asm 1: movq 48(<input_1=int64#2),>t=int64#15
# asm 2: movq 48(<input_1=%rsi),>t=%rbp
movq 48(%rsi),%rbp
# qhasm: y1 = t if =
# asm 1: cmove <t=int64#15,<y1=int64#11
# asm 2: cmove <t=%rbp,<y1=%r13
cmove %rbp,%r13
# qhasm: t = *(uint64 *) (input_1 + 56)
# asm 1: movq 56(<input_1=int64#2),>t=int64#15
# asm 2: movq 56(<input_1=%rsi),>t=%rbp
movq 56(%rsi),%rbp
# qhasm: y2 = t if =
# asm 1: cmove <t=int64#15,<y2=int64#12
# asm 2: cmove <t=%rbp,<y2=%r14
cmove %rbp,%r14
# qhasm: t = *(uint64 *) (input_1 + 64)
# asm 1: movq 64(<input_1=int64#2),>t=int64#15
# asm 2: movq 64(<input_1=%rsi),>t=%rbp
movq 64(%rsi),%rbp
# qhasm: y3 = t if =
# asm 1: cmove <t=int64#15,<y3=int64#13
# asm 2: cmove <t=%rbp,<y3=%r15
cmove %rbp,%r15
# qhasm: t = *(uint64 *) (input_1 + 72)
# asm 1: movq 72(<input_1=int64#2),>t=int64#15
# asm 2: movq 72(<input_1=%rsi),>t=%rbp
movq 72(%rsi),%rbp
# qhasm: y4 = t if =
# asm 1: cmove <t=int64#15,<y4=int64#14
# asm 2: cmove <t=%rbp,<y4=%rbx
cmove %rbp,%rbx
# qhasm: =? u - 2
# asm 1: cmp $2,<u=int64#5
# asm 2: cmp $2,<u=%r8
cmp $2,%r8
# qhasm: t = *(uint64 *) (input_1 + 160)
# asm 1: movq 160(<input_1=int64#2),>t=int64#15
# asm 2: movq 160(<input_1=%rsi),>t=%rbp
movq 160(%rsi),%rbp
# qhasm: x0 = t if =
# asm 1: cmove <t=int64#15,<x0=int64#4
# asm 2: cmove <t=%rbp,<x0=%rcx
cmove %rbp,%rcx
# qhasm: t = *(uint64 *) (input_1 + 168)
# asm 1: movq 168(<input_1=int64#2),>t=int64#15
# asm 2: movq 168(<input_1=%rsi),>t=%rbp
movq 168(%rsi),%rbp
# qhasm: x1 = t if =
# asm 1: cmove <t=int64#15,<x1=int64#6
# asm 2: cmove <t=%rbp,<x1=%r9
cmove %rbp,%r9
# qhasm: t = *(uint64 *) (input_1 + 176)
# asm 1: movq 176(<input_1=int64#2),>t=int64#15
# asm 2: movq 176(<input_1=%rsi),>t=%rbp
movq 176(%rsi),%rbp
# qhasm: x2 = t if =
# asm 1: cmove <t=int64#15,<x2=int64#7
# asm 2: cmove <t=%rbp,<x2=%rax
cmove %rbp,%rax
# qhasm: t = *(uint64 *) (input_1 + 184)
# asm 1: movq 184(<input_1=int64#2),>t=int64#15
# asm 2: movq 184(<input_1=%rsi),>t=%rbp
movq 184(%rsi),%rbp
# qhasm: x3 = t if =
# asm 1: cmove <t=int64#15,<x3=int64#8
# asm 2: cmove <t=%rbp,<x3=%r10
cmove %rbp,%r10
# qhasm: t = *(uint64 *) (input_1 + 192)
# asm 1: movq 192(<input_1=int64#2),>t=int64#15
# asm 2: movq 192(<input_1=%rsi),>t=%rbp
movq 192(%rsi),%rbp
# qhasm: x4 = t if =
# asm 1: cmove <t=int64#15,<x4=int64#9
# asm 2: cmove <t=%rbp,<x4=%r11
cmove %rbp,%r11
# qhasm: t = *(uint64 *) (input_1 + 200)
# asm 1: movq 200(<input_1=int64#2),>t=int64#15
# asm 2: movq 200(<input_1=%rsi),>t=%rbp
movq 200(%rsi),%rbp
# qhasm: y0 = t if =
# asm 1: cmove <t=int64#15,<y0=int64#10
# asm 2: cmove <t=%rbp,<y0=%r12
cmove %rbp,%r12
# qhasm: t = *(uint64 *) (input_1 + 208)
# asm 1: movq 208(<input_1=int64#2),>t=int64#15
# asm 2: movq 208(<input_1=%rsi),>t=%rbp
movq 208(%rsi),%rbp
# qhasm: y1 = t if =
# asm 1: cmove <t=int64#15,<y1=int64#11
# asm 2: cmove <t=%rbp,<y1=%r13
cmove %rbp,%r13
# qhasm: t = *(uint64 *) (input_1 + 216)
# asm 1: movq 216(<input_1=int64#2),>t=int64#15
# asm 2: movq 216(<input_1=%rsi),>t=%rbp
movq 216(%rsi),%rbp
# qhasm: y2 = t if =
# asm 1: cmove <t=int64#15,<y2=int64#12
# asm 2: cmove <t=%rbp,<y2=%r14
cmove %rbp,%r14
# qhasm: t = *(uint64 *) (input_1 + 224)
# asm 1: movq 224(<input_1=int64#2),>t=int64#15
# asm 2: movq 224(<input_1=%rsi),>t=%rbp
movq 224(%rsi),%rbp
# qhasm: y3 = t if =
# asm 1: cmove <t=int64#15,<y3=int64#13
# asm 2: cmove <t=%rbp,<y3=%r15
cmove %rbp,%r15
# qhasm: t = *(uint64 *) (input_1 + 232)
# asm 1: movq 232(<input_1=int64#2),>t=int64#15
# asm 2: movq 232(<input_1=%rsi),>t=%rbp
movq 232(%rsi),%rbp
# qhasm: y4 = t if =
# asm 1: cmove <t=int64#15,<y4=int64#14
# asm 2: cmove <t=%rbp,<y4=%rbx
cmove %rbp,%rbx
# qhasm: =? u - 3
# asm 1: cmp $3,<u=int64#5
# asm 2: cmp $3,<u=%r8
cmp $3,%r8
# qhasm: t = *(uint64 *) (input_1 + 320)
# asm 1: movq 320(<input_1=int64#2),>t=int64#15
# asm 2: movq 320(<input_1=%rsi),>t=%rbp
movq 320(%rsi),%rbp
# qhasm: x0 = t if =
# asm 1: cmove <t=int64#15,<x0=int64#4
# asm 2: cmove <t=%rbp,<x0=%rcx
cmove %rbp,%rcx
# qhasm: t = *(uint64 *) (input_1 + 328)
# asm 1: movq 328(<input_1=int64#2),>t=int64#15
# asm 2: movq 328(<input_1=%rsi),>t=%rbp
movq 328(%rsi),%rbp
# qhasm: x1 = t if =
# asm 1: cmove <t=int64#15,<x1=int64#6
# asm 2: cmove <t=%rbp,<x1=%r9
cmove %rbp,%r9
# qhasm: t = *(uint64 *) (input_1 + 336)
# asm 1: movq 336(<input_1=int64#2),>t=int64#15
# asm 2: movq 336(<input_1=%rsi),>t=%rbp
movq 336(%rsi),%rbp
# qhasm: x2 = t if =
# asm 1: cmove <t=int64#15,<x2=int64#7
# asm 2: cmove <t=%rbp,<x2=%rax
cmove %rbp,%rax
# qhasm: t = *(uint64 *) (input_1 + 344)
# asm 1: movq 344(<input_1=int64#2),>t=int64#15
# asm 2: movq 344(<input_1=%rsi),>t=%rbp
movq 344(%rsi),%rbp
# qhasm: x3 = t if =
# asm 1: cmove <t=int64#15,<x3=int64#8
# asm 2: cmove <t=%rbp,<x3=%r10
cmove %rbp,%r10
# qhasm: t = *(uint64 *) (input_1 + 352)
# asm 1: movq 352(<input_1=int64#2),>t=int64#15
# asm 2: movq 352(<input_1=%rsi),>t=%rbp
movq 352(%rsi),%rbp
# qhasm: x4 = t if =
# asm 1: cmove <t=int64#15,<x4=int64#9
# asm 2: cmove <t=%rbp,<x4=%r11
cmove %rbp,%r11
# qhasm: t = *(uint64 *) (input_1 + 360)
# asm 1: movq 360(<input_1=int64#2),>t=int64#15
# asm 2: movq 360(<input_1=%rsi),>t=%rbp
movq 360(%rsi),%rbp
# qhasm: y0 = t if =
# asm 1: cmove <t=int64#15,<y0=int64#10
# asm 2: cmove <t=%rbp,<y0=%r12
cmove %rbp,%r12
# qhasm: t = *(uint64 *) (input_1 + 368)
# asm 1: movq 368(<input_1=int64#2),>t=int64#15
# asm 2: movq 368(<input_1=%rsi),>t=%rbp
movq 368(%rsi),%rbp
# qhasm: y1 = t if =
# asm 1: cmove <t=int64#15,<y1=int64#11
# asm 2: cmove <t=%rbp,<y1=%r13
cmove %rbp,%r13
# qhasm: t = *(uint64 *) (input_1 + 376)
# asm 1: movq 376(<input_1=int64#2),>t=int64#15
# asm 2: movq 376(<input_1=%rsi),>t=%rbp
movq 376(%rsi),%rbp
# qhasm: y2 = t if =
# asm 1: cmove <t=int64#15,<y2=int64#12
# asm 2: cmove <t=%rbp,<y2=%r14
cmove %rbp,%r14
# qhasm: t = *(uint64 *) (input_1 + 384)
# asm 1: movq 384(<input_1=int64#2),>t=int64#15
# asm 2: movq 384(<input_1=%rsi),>t=%rbp
movq 384(%rsi),%rbp
# qhasm: y3 = t if =
# asm 1: cmove <t=int64#15,<y3=int64#13
# asm 2: cmove <t=%rbp,<y3=%r15
cmove %rbp,%r15
# qhasm: t = *(uint64 *) (input_1 + 392)
# asm 1: movq 392(<input_1=int64#2),>t=int64#15
# asm 2: movq 392(<input_1=%rsi),>t=%rbp
movq 392(%rsi),%rbp
# qhasm: y4 = t if =
# asm 1: cmove <t=int64#15,<y4=int64#14
# asm 2: cmove <t=%rbp,<y4=%rbx
cmove %rbp,%rbx
# qhasm: =? u - 4
# asm 1: cmp $4,<u=int64#5
# asm 2: cmp $4,<u=%r8
cmp $4,%r8
# qhasm: t = *(uint64 *) (input_1 + 480)
# asm 1: movq 480(<input_1=int64#2),>t=int64#15
# asm 2: movq 480(<input_1=%rsi),>t=%rbp
movq 480(%rsi),%rbp
# qhasm: x0 = t if =
# asm 1: cmove <t=int64#15,<x0=int64#4
# asm 2: cmove <t=%rbp,<x0=%rcx
cmove %rbp,%rcx
# qhasm: t = *(uint64 *) (input_1 + 488)
# asm 1: movq 488(<input_1=int64#2),>t=int64#15
# asm 2: movq 488(<input_1=%rsi),>t=%rbp
movq 488(%rsi),%rbp
# qhasm: x1 = t if =
# asm 1: cmove <t=int64#15,<x1=int64#6
# asm 2: cmove <t=%rbp,<x1=%r9
cmove %rbp,%r9
# qhasm: t = *(uint64 *) (input_1 + 496)
# asm 1: movq 496(<input_1=int64#2),>t=int64#15
# asm 2: movq 496(<input_1=%rsi),>t=%rbp
movq 496(%rsi),%rbp
# qhasm: x2 = t if =
# asm 1: cmove <t=int64#15,<x2=int64#7
# asm 2: cmove <t=%rbp,<x2=%rax
cmove %rbp,%rax
# qhasm: t = *(uint64 *) (input_1 + 504)
# asm 1: movq 504(<input_1=int64#2),>t=int64#15
# asm 2: movq 504(<input_1=%rsi),>t=%rbp
movq 504(%rsi),%rbp
# qhasm: x3 = t if =
# asm 1: cmove <t=int64#15,<x3=int64#8
# asm 2: cmove <t=%rbp,<x3=%r10
cmove %rbp,%r10
# qhasm: t = *(uint64 *) (input_1 + 512)
# asm 1: movq 512(<input_1=int64#2),>t=int64#15
# asm 2: movq 512(<input_1=%rsi),>t=%rbp
movq 512(%rsi),%rbp
# qhasm: x4 = t if =
# asm 1: cmove <t=int64#15,<x4=int64#9
# asm 2: cmove <t=%rbp,<x4=%r11
cmove %rbp,%r11
# qhasm: t = *(uint64 *) (input_1 + 520)
# asm 1: movq 520(<input_1=int64#2),>t=int64#15
# asm 2: movq 520(<input_1=%rsi),>t=%rbp
movq 520(%rsi),%rbp
# qhasm: y0 = t if =
# asm 1: cmove <t=int64#15,<y0=int64#10
# asm 2: cmove <t=%rbp,<y0=%r12
cmove %rbp,%r12
# qhasm: t = *(uint64 *) (input_1 + 528)
# asm 1: movq 528(<input_1=int64#2),>t=int64#15
# asm 2: movq 528(<input_1=%rsi),>t=%rbp
movq 528(%rsi),%rbp
# qhasm: y1 = t if =
# asm 1: cmove <t=int64#15,<y1=int64#11
# asm 2: cmove <t=%rbp,<y1=%r13
cmove %rbp,%r13
# qhasm: t = *(uint64 *) (input_1 + 536)
# asm 1: movq 536(<input_1=int64#2),>t=int64#15
# asm 2: movq 536(<input_1=%rsi),>t=%rbp
movq 536(%rsi),%rbp
# qhasm: y2 = t if =
# asm 1: cmove <t=int64#15,<y2=int64#12
# asm 2: cmove <t=%rbp,<y2=%r14
cmove %rbp,%r14
# qhasm: t = *(uint64 *) (input_1 + 544)
# asm 1: movq 544(<input_1=int64#2),>t=int64#15
# asm 2: movq 544(<input_1=%rsi),>t=%rbp
movq 544(%rsi),%rbp
# qhasm: y3 = t if =
# asm 1: cmove <t=int64#15,<y3=int64#13
# asm 2: cmove <t=%rbp,<y3=%r15
cmove %rbp,%r15
# qhasm: t = *(uint64 *) (input_1 + 552)
# asm 1: movq 552(<input_1=int64#2),>t=int64#15
# asm 2: movq 552(<input_1=%rsi),>t=%rbp
movq 552(%rsi),%rbp
# qhasm: y4 = t if =
# asm 1: cmove <t=int64#15,<y4=int64#14
# asm 2: cmove <t=%rbp,<y4=%rbx
cmove %rbp,%rbx
# qhasm: =? u - 5
# asm 1: cmp $5,<u=int64#5
# asm 2: cmp $5,<u=%r8
cmp $5,%r8
# qhasm: t = *(uint64 *) (input_1 + 640)
# asm 1: movq 640(<input_1=int64#2),>t=int64#15
# asm 2: movq 640(<input_1=%rsi),>t=%rbp
movq 640(%rsi),%rbp
# qhasm: x0 = t if =
# asm 1: cmove <t=int64#15,<x0=int64#4
# asm 2: cmove <t=%rbp,<x0=%rcx
cmove %rbp,%rcx
# qhasm: t = *(uint64 *) (input_1 + 648)
# asm 1: movq 648(<input_1=int64#2),>t=int64#15
# asm 2: movq 648(<input_1=%rsi),>t=%rbp
movq 648(%rsi),%rbp
# qhasm: x1 = t if =
# asm 1: cmove <t=int64#15,<x1=int64#6
# asm 2: cmove <t=%rbp,<x1=%r9
cmove %rbp,%r9
# qhasm: t = *(uint64 *) (input_1 + 656)
# asm 1: movq 656(<input_1=int64#2),>t=int64#15
# asm 2: movq 656(<input_1=%rsi),>t=%rbp
movq 656(%rsi),%rbp
# qhasm: x2 = t if =
# asm 1: cmove <t=int64#15,<x2=int64#7
# asm 2: cmove <t=%rbp,<x2=%rax
cmove %rbp,%rax
# qhasm: t = *(uint64 *) (input_1 + 664)
# asm 1: movq 664(<input_1=int64#2),>t=int64#15
# asm 2: movq 664(<input_1=%rsi),>t=%rbp
movq 664(%rsi),%rbp
# qhasm: x3 = t if =
# asm 1: cmove <t=int64#15,<x3=int64#8
# asm 2: cmove <t=%rbp,<x3=%r10
cmove %rbp,%r10
# qhasm: t = *(uint64 *) (input_1 + 672)
# asm 1: movq 672(<input_1=int64#2),>t=int64#15
# asm 2: movq 672(<input_1=%rsi),>t=%rbp
movq 672(%rsi),%rbp
# qhasm: x4 = t if =
# asm 1: cmove <t=int64#15,<x4=int64#9
# asm 2: cmove <t=%rbp,<x4=%r11
cmove %rbp,%r11
# qhasm: t = *(uint64 *) (input_1 + 680)
# asm 1: movq 680(<input_1=int64#2),>t=int64#15
# asm 2: movq 680(<input_1=%rsi),>t=%rbp
movq 680(%rsi),%rbp
# qhasm: y0 = t if =
# asm 1: cmove <t=int64#15,<y0=int64#10
# asm 2: cmove <t=%rbp,<y0=%r12
cmove %rbp,%r12
# qhasm: t = *(uint64 *) (input_1 + 688)
# asm 1: movq 688(<input_1=int64#2),>t=int64#15
# asm 2: movq 688(<input_1=%rsi),>t=%rbp
movq 688(%rsi),%rbp
# qhasm: y1 = t if =
# asm 1: cmove <t=int64#15,<y1=int64#11
# asm 2: cmove <t=%rbp,<y1=%r13
cmove %rbp,%r13
# qhasm: t = *(uint64 *) (input_1 + 696)
# asm 1: movq 696(<input_1=int64#2),>t=int64#15
# asm 2: movq 696(<input_1=%rsi),>t=%rbp
movq 696(%rsi),%rbp
# qhasm: y2 = t if =
# asm 1: cmove <t=int64#15,<y2=int64#12
# asm 2: cmove <t=%rbp,<y2=%r14
cmove %rbp,%r14
# qhasm: t = *(uint64 *) (input_1 + 704)
# asm 1: movq 704(<input_1=int64#2),>t=int64#15
# asm 2: movq 704(<input_1=%rsi),>t=%rbp
movq 704(%rsi),%rbp
# qhasm: y3 = t if =
# asm 1: cmove <t=int64#15,<y3=int64#13
# asm 2: cmove <t=%rbp,<y3=%r15
cmove %rbp,%r15
# qhasm: t = *(uint64 *) (input_1 + 712)
# asm 1: movq 712(<input_1=int64#2),>t=int64#15
# asm 2: movq 712(<input_1=%rsi),>t=%rbp
movq 712(%rsi),%rbp
# qhasm: y4 = t if =
# asm 1: cmove <t=int64#15,<y4=int64#14
# asm 2: cmove <t=%rbp,<y4=%rbx
cmove %rbp,%rbx
# qhasm: =? u - 6
# asm 1: cmp $6,<u=int64#5
# asm 2: cmp $6,<u=%r8
cmp $6,%r8
# qhasm: t = *(uint64 *) (input_1 + 800)
# asm 1: movq 800(<input_1=int64#2),>t=int64#15
# asm 2: movq 800(<input_1=%rsi),>t=%rbp
movq 800(%rsi),%rbp
# qhasm: x0 = t if =
# asm 1: cmove <t=int64#15,<x0=int64#4
# asm 2: cmove <t=%rbp,<x0=%rcx
cmove %rbp,%rcx
# qhasm: t = *(uint64 *) (input_1 + 808)
# asm 1: movq 808(<input_1=int64#2),>t=int64#15
# asm 2: movq 808(<input_1=%rsi),>t=%rbp
movq 808(%rsi),%rbp
# qhasm: x1 = t if =
# asm 1: cmove <t=int64#15,<x1=int64#6
# asm 2: cmove <t=%rbp,<x1=%r9
cmove %rbp,%r9
# qhasm: t = *(uint64 *) (input_1 + 816)
# asm 1: movq 816(<input_1=int64#2),>t=int64#15
# asm 2: movq 816(<input_1=%rsi),>t=%rbp
movq 816(%rsi),%rbp
# qhasm: x2 = t if =
# asm 1: cmove <t=int64#15,<x2=int64#7
# asm 2: cmove <t=%rbp,<x2=%rax
cmove %rbp,%rax
# qhasm: t = *(uint64 *) (input_1 + 824)
# asm 1: movq 824(<input_1=int64#2),>t=int64#15
# asm 2: movq 824(<input_1=%rsi),>t=%rbp
movq 824(%rsi),%rbp
# qhasm: x3 = t if =
# asm 1: cmove <t=int64#15,<x3=int64#8
# asm 2: cmove <t=%rbp,<x3=%r10
cmove %rbp,%r10
# qhasm: t = *(uint64 *) (input_1 + 832)
# asm 1: movq 832(<input_1=int64#2),>t=int64#15
# asm 2: movq 832(<input_1=%rsi),>t=%rbp
movq 832(%rsi),%rbp
# qhasm: x4 = t if =
# asm 1: cmove <t=int64#15,<x4=int64#9
# asm 2: cmove <t=%rbp,<x4=%r11
cmove %rbp,%r11
# qhasm: t = *(uint64 *) (input_1 + 840)
# asm 1: movq 840(<input_1=int64#2),>t=int64#15
# asm 2: movq 840(<input_1=%rsi),>t=%rbp
movq 840(%rsi),%rbp
# qhasm: y0 = t if =
# asm 1: cmove <t=int64#15,<y0=int64#10
# asm 2: cmove <t=%rbp,<y0=%r12
cmove %rbp,%r12
# qhasm: t = *(uint64 *) (input_1 + 848)
# asm 1: movq 848(<input_1=int64#2),>t=int64#15
# asm 2: movq 848(<input_1=%rsi),>t=%rbp
movq 848(%rsi),%rbp
# qhasm: y1 = t if =
# asm 1: cmove <t=int64#15,<y1=int64#11
# asm 2: cmove <t=%rbp,<y1=%r13
cmove %rbp,%r13
# qhasm: t = *(uint64 *) (input_1 + 856)
# asm 1: movq 856(<input_1=int64#2),>t=int64#15
# asm 2: movq 856(<input_1=%rsi),>t=%rbp
movq 856(%rsi),%rbp
# qhasm: y2 = t if =
# asm 1: cmove <t=int64#15,<y2=int64#12
# asm 2: cmove <t=%rbp,<y2=%r14
cmove %rbp,%r14
# qhasm: t = *(uint64 *) (input_1 + 864)
# asm 1: movq 864(<input_1=int64#2),>t=int64#15
# asm 2: movq 864(<input_1=%rsi),>t=%rbp
movq 864(%rsi),%rbp
# qhasm: y3 = t if =
# asm 1: cmove <t=int64#15,<y3=int64#13
# asm 2: cmove <t=%rbp,<y3=%r15
cmove %rbp,%r15
# qhasm: t = *(uint64 *) (input_1 + 872)
# asm 1: movq 872(<input_1=int64#2),>t=int64#15
# asm 2: movq 872(<input_1=%rsi),>t=%rbp
movq 872(%rsi),%rbp
# qhasm: y4 = t if =
# asm 1: cmove <t=int64#15,<y4=int64#14
# asm 2: cmove <t=%rbp,<y4=%rbx
cmove %rbp,%rbx
# qhasm: =? u - 7
# asm 1: cmp $7,<u=int64#5
# asm 2: cmp $7,<u=%r8
cmp $7,%r8
# qhasm: t = *(uint64 *) (input_1 + 960)
# asm 1: movq 960(<input_1=int64#2),>t=int64#15
# asm 2: movq 960(<input_1=%rsi),>t=%rbp
movq 960(%rsi),%rbp
# qhasm: x0 = t if =
# asm 1: cmove <t=int64#15,<x0=int64#4
# asm 2: cmove <t=%rbp,<x0=%rcx
cmove %rbp,%rcx
# qhasm: t = *(uint64 *) (input_1 + 968)
# asm 1: movq 968(<input_1=int64#2),>t=int64#15
# asm 2: movq 968(<input_1=%rsi),>t=%rbp
movq 968(%rsi),%rbp
# qhasm: x1 = t if =
# asm 1: cmove <t=int64#15,<x1=int64#6
# asm 2: cmove <t=%rbp,<x1=%r9
cmove %rbp,%r9
# qhasm: t = *(uint64 *) (input_1 + 976)
# asm 1: movq 976(<input_1=int64#2),>t=int64#15
# asm 2: movq 976(<input_1=%rsi),>t=%rbp
movq 976(%rsi),%rbp
# qhasm: x2 = t if =
# asm 1: cmove <t=int64#15,<x2=int64#7
# asm 2: cmove <t=%rbp,<x2=%rax
cmove %rbp,%rax
# qhasm: t = *(uint64 *) (input_1 + 984)
# asm 1: movq 984(<input_1=int64#2),>t=int64#15
# asm 2: movq 984(<input_1=%rsi),>t=%rbp
movq 984(%rsi),%rbp
# qhasm: x3 = t if =
# asm 1: cmove <t=int64#15,<x3=int64#8
# asm 2: cmove <t=%rbp,<x3=%r10
cmove %rbp,%r10
# qhasm: t = *(uint64 *) (input_1 + 992)
# asm 1: movq 992(<input_1=int64#2),>t=int64#15
# asm 2: movq 992(<input_1=%rsi),>t=%rbp
movq 992(%rsi),%rbp
# qhasm: x4 = t if =
# asm 1: cmove <t=int64#15,<x4=int64#9
# asm 2: cmove <t=%rbp,<x4=%r11
cmove %rbp,%r11
# qhasm: t = *(uint64 *) (input_1 + 1000)
# asm 1: movq 1000(<input_1=int64#2),>t=int64#15
# asm 2: movq 1000(<input_1=%rsi),>t=%rbp
movq 1000(%rsi),%rbp
# qhasm: y0 = t if =
# asm 1: cmove <t=int64#15,<y0=int64#10
# asm 2: cmove <t=%rbp,<y0=%r12
cmove %rbp,%r12
# qhasm: t = *(uint64 *) (input_1 + 1008)
# asm 1: movq 1008(<input_1=int64#2),>t=int64#15
# asm 2: movq 1008(<input_1=%rsi),>t=%rbp
movq 1008(%rsi),%rbp
# qhasm: y1 = t if =
# asm 1: cmove <t=int64#15,<y1=int64#11
# asm 2: cmove <t=%rbp,<y1=%r13
cmove %rbp,%r13
# qhasm: t = *(uint64 *) (input_1 + 1016)
# asm 1: movq 1016(<input_1=int64#2),>t=int64#15
# asm 2: movq 1016(<input_1=%rsi),>t=%rbp
movq 1016(%rsi),%rbp
# qhasm: y2 = t if =
# asm 1: cmove <t=int64#15,<y2=int64#12
# asm 2: cmove <t=%rbp,<y2=%r14
cmove %rbp,%r14
# qhasm: t = *(uint64 *) (input_1 + 1024)
# asm 1: movq 1024(<input_1=int64#2),>t=int64#15
# asm 2: movq 1024(<input_1=%rsi),>t=%rbp
movq 1024(%rsi),%rbp
# qhasm: y3 = t if =
# asm 1: cmove <t=int64#15,<y3=int64#13
# asm 2: cmove <t=%rbp,<y3=%r15
cmove %rbp,%r15
# qhasm: t = *(uint64 *) (input_1 + 1032)
# asm 1: movq 1032(<input_1=int64#2),>t=int64#15
# asm 2: movq 1032(<input_1=%rsi),>t=%rbp
movq 1032(%rsi),%rbp
# qhasm: y4 = t if =
# asm 1: cmove <t=int64#15,<y4=int64#14
# asm 2: cmove <t=%rbp,<y4=%rbx
cmove %rbp,%rbx
# qhasm: =? u - 8
# asm 1: cmp $8,<u=int64#5
# asm 2: cmp $8,<u=%r8
cmp $8,%r8
# qhasm: t = *(uint64 *) (input_1 + 1120)
# asm 1: movq 1120(<input_1=int64#2),>t=int64#15
# asm 2: movq 1120(<input_1=%rsi),>t=%rbp
movq 1120(%rsi),%rbp
# qhasm: x0 = t if =
# asm 1: cmove <t=int64#15,<x0=int64#4
# asm 2: cmove <t=%rbp,<x0=%rcx
cmove %rbp,%rcx
# qhasm: t = *(uint64 *) (input_1 + 1128)
# asm 1: movq 1128(<input_1=int64#2),>t=int64#15
# asm 2: movq 1128(<input_1=%rsi),>t=%rbp
movq 1128(%rsi),%rbp
# qhasm: x1 = t if =
# asm 1: cmove <t=int64#15,<x1=int64#6
# asm 2: cmove <t=%rbp,<x1=%r9
cmove %rbp,%r9
# qhasm: t = *(uint64 *) (input_1 + 1136)