-
Notifications
You must be signed in to change notification settings - Fork 8
/
ge25519_nielsadd2.S
6152 lines (4823 loc) · 157 KB
/
ge25519_nielsadd2.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 rp
# qhasm: int64 qp
# qhasm: input rp
# qhasm: input qp
# qhasm: int64 caller1
# qhasm: int64 caller2
# qhasm: int64 caller3
# qhasm: int64 caller4
# qhasm: int64 caller5
# qhasm: int64 caller6
# qhasm: int64 caller7
# qhasm: caller caller1
# qhasm: caller caller2
# qhasm: caller caller3
# qhasm: caller caller4
# qhasm: caller caller5
# qhasm: caller caller6
# qhasm: caller caller7
# qhasm: stack64 caller1_stack
# qhasm: stack64 caller2_stack
# qhasm: stack64 caller3_stack
# qhasm: stack64 caller4_stack
# qhasm: stack64 caller5_stack
# qhasm: stack64 caller6_stack
# qhasm: stack64 caller7_stack
# qhasm: int64 a0
# qhasm: int64 a1
# qhasm: int64 a2
# qhasm: int64 a3
# qhasm: int64 a4
# qhasm: stack64 a0_stack
# qhasm: stack64 a1_stack
# qhasm: stack64 a2_stack
# qhasm: stack64 a3_stack
# qhasm: stack64 a4_stack
# qhasm: int64 b0
# qhasm: int64 b1
# qhasm: int64 b2
# qhasm: int64 b3
# qhasm: int64 b4
# qhasm: stack64 b0_stack
# qhasm: stack64 b1_stack
# qhasm: stack64 b2_stack
# qhasm: stack64 b3_stack
# qhasm: stack64 b4_stack
# qhasm: int64 c0
# qhasm: int64 c1
# qhasm: int64 c2
# qhasm: int64 c3
# qhasm: int64 c4
# qhasm: stack64 c0_stack
# qhasm: stack64 c1_stack
# qhasm: stack64 c2_stack
# qhasm: stack64 c3_stack
# qhasm: stack64 c4_stack
# qhasm: int64 d0
# qhasm: int64 d1
# qhasm: int64 d2
# qhasm: int64 d3
# qhasm: int64 d4
# qhasm: stack64 d0_stack
# qhasm: stack64 d1_stack
# qhasm: stack64 d2_stack
# qhasm: stack64 d3_stack
# qhasm: stack64 d4_stack
# qhasm: int64 e0
# qhasm: int64 e1
# qhasm: int64 e2
# qhasm: int64 e3
# qhasm: int64 e4
# qhasm: stack64 e0_stack
# qhasm: stack64 e1_stack
# qhasm: stack64 e2_stack
# qhasm: stack64 e3_stack
# qhasm: stack64 e4_stack
# qhasm: int64 f0
# qhasm: int64 f1
# qhasm: int64 f2
# qhasm: int64 f3
# qhasm: int64 f4
# qhasm: stack64 f0_stack
# qhasm: stack64 f1_stack
# qhasm: stack64 f2_stack
# qhasm: stack64 f3_stack
# qhasm: stack64 f4_stack
# qhasm: int64 g0
# qhasm: int64 g1
# qhasm: int64 g2
# qhasm: int64 g3
# qhasm: int64 g4
# qhasm: stack64 g0_stack
# qhasm: stack64 g1_stack
# qhasm: stack64 g2_stack
# qhasm: stack64 g3_stack
# qhasm: stack64 g4_stack
# qhasm: int64 h0
# qhasm: int64 h1
# qhasm: int64 h2
# qhasm: int64 h3
# qhasm: int64 h4
# qhasm: stack64 h0_stack
# qhasm: stack64 h1_stack
# qhasm: stack64 h2_stack
# qhasm: stack64 h3_stack
# qhasm: stack64 h4_stack
# qhasm: int64 qt0
# qhasm: int64 qt1
# qhasm: int64 qt2
# qhasm: int64 qt3
# qhasm: int64 qt4
# qhasm: stack64 qt0_stack
# qhasm: stack64 qt1_stack
# qhasm: stack64 qt2_stack
# qhasm: stack64 qt3_stack
# qhasm: stack64 qt4_stack
# qhasm: int64 t10
# qhasm: int64 t11
# qhasm: int64 t12
# qhasm: int64 t13
# qhasm: int64 t14
# qhasm: stack64 t10_stack
# qhasm: stack64 t11_stack
# qhasm: stack64 t12_stack
# qhasm: stack64 t13_stack
# qhasm: stack64 t14_stack
# qhasm: int64 t20
# qhasm: int64 t21
# qhasm: int64 t22
# qhasm: int64 t23
# qhasm: int64 t24
# qhasm: stack64 t20_stack
# qhasm: stack64 t21_stack
# qhasm: stack64 t22_stack
# qhasm: stack64 t23_stack
# qhasm: stack64 t24_stack
# qhasm: int64 rx0
# qhasm: int64 rx1
# qhasm: int64 rx2
# qhasm: int64 rx3
# qhasm: int64 rx4
# qhasm: int64 ry0
# qhasm: int64 ry1
# qhasm: int64 ry2
# qhasm: int64 ry3
# qhasm: int64 ry4
# qhasm: int64 rz0
# qhasm: int64 rz1
# qhasm: int64 rz2
# qhasm: int64 rz3
# qhasm: int64 rz4
# qhasm: int64 rt0
# qhasm: int64 rt1
# qhasm: int64 rt2
# qhasm: int64 rt3
# qhasm: int64 rt4
# qhasm: int64 mulr01
# qhasm: int64 mulr11
# qhasm: int64 mulr21
# qhasm: int64 mulr31
# qhasm: int64 mulr41
# qhasm: int64 mulrax
# qhasm: int64 mulrdx
# qhasm: int64 mult
# qhasm: int64 mulredmask
# qhasm: stack64 mulx219_stack
# qhasm: stack64 mulx319_stack
# qhasm: stack64 mulx419_stack
# qhasm: enter ge25519_nielsadd2
.text
.p2align 5
.globl _ge25519_nielsadd2
.globl ge25519_nielsadd2
_ge25519_nielsadd2:
ge25519_nielsadd2:
mov %rsp,%r11
and $31,%r11
add $256,%r11
sub %r11,%rsp
# qhasm: caller1_stack = caller1
# asm 1: movq <caller1=int64#9,>caller1_stack=stack64#1
# asm 2: movq <caller1=%r11,>caller1_stack=0(%rsp)
movq %r11,0(%rsp)
# qhasm: caller2_stack = caller2
# asm 1: movq <caller2=int64#10,>caller2_stack=stack64#2
# asm 2: movq <caller2=%r12,>caller2_stack=8(%rsp)
movq %r12,8(%rsp)
# qhasm: caller3_stack = caller3
# asm 1: movq <caller3=int64#11,>caller3_stack=stack64#3
# asm 2: movq <caller3=%r13,>caller3_stack=16(%rsp)
movq %r13,16(%rsp)
# qhasm: caller4_stack = caller4
# asm 1: movq <caller4=int64#12,>caller4_stack=stack64#4
# asm 2: movq <caller4=%r14,>caller4_stack=24(%rsp)
movq %r14,24(%rsp)
# qhasm: caller5_stack = caller5
# asm 1: movq <caller5=int64#13,>caller5_stack=stack64#5
# asm 2: movq <caller5=%r15,>caller5_stack=32(%rsp)
movq %r15,32(%rsp)
# qhasm: caller6_stack = caller6
# asm 1: movq <caller6=int64#14,>caller6_stack=stack64#6
# asm 2: movq <caller6=%rbx,>caller6_stack=40(%rsp)
movq %rbx,40(%rsp)
# qhasm: caller7_stack = caller7
# asm 1: movq <caller7=int64#15,>caller7_stack=stack64#7
# asm 2: movq <caller7=%rbp,>caller7_stack=48(%rsp)
movq %rbp,48(%rsp)
# qhasm: a0 = *(uint64 *)(rp + 40)
# asm 1: movq 40(<rp=int64#1),>a0=int64#3
# asm 2: movq 40(<rp=%rdi),>a0=%rdx
movq 40(%rdi),%rdx
# qhasm: a1 = *(uint64 *)(rp + 48)
# asm 1: movq 48(<rp=int64#1),>a1=int64#4
# asm 2: movq 48(<rp=%rdi),>a1=%rcx
movq 48(%rdi),%rcx
# qhasm: a2 = *(uint64 *)(rp + 56)
# asm 1: movq 56(<rp=int64#1),>a2=int64#5
# asm 2: movq 56(<rp=%rdi),>a2=%r8
movq 56(%rdi),%r8
# qhasm: a3 = *(uint64 *)(rp + 64)
# asm 1: movq 64(<rp=int64#1),>a3=int64#6
# asm 2: movq 64(<rp=%rdi),>a3=%r9
movq 64(%rdi),%r9
# qhasm: a4 = *(uint64 *)(rp + 72)
# asm 1: movq 72(<rp=int64#1),>a4=int64#7
# asm 2: movq 72(<rp=%rdi),>a4=%rax
movq 72(%rdi),%rax
# qhasm: b0 = a0
# asm 1: mov <a0=int64#3,>b0=int64#8
# asm 2: mov <a0=%rdx,>b0=%r10
mov %rdx,%r10
# qhasm: b1 = a1
# asm 1: mov <a1=int64#4,>b1=int64#9
# asm 2: mov <a1=%rcx,>b1=%r11
mov %rcx,%r11
# qhasm: b2 = a2
# asm 1: mov <a2=int64#5,>b2=int64#10
# asm 2: mov <a2=%r8,>b2=%r12
mov %r8,%r12
# qhasm: b3 = a3
# asm 1: mov <a3=int64#6,>b3=int64#11
# asm 2: mov <a3=%r9,>b3=%r13
mov %r9,%r13
# qhasm: b4 = a4
# asm 1: mov <a4=int64#7,>b4=int64#12
# asm 2: mov <a4=%rax,>b4=%r14
mov %rax,%r14
# qhasm: a0 += *(uint64 *) &CONST_2P0
# asm 1: add CONST_2P0,<a0=int64#3
# asm 2: add CONST_2P0,<a0=%rdx
add CONST_2P0(%rip),%rdx
# qhasm: a1 += *(uint64 *) &CONST_2P1234
# asm 1: add CONST_2P1234,<a1=int64#4
# asm 2: add CONST_2P1234,<a1=%rcx
add CONST_2P1234(%rip),%rcx
# qhasm: a2 += *(uint64 *) &CONST_2P1234
# asm 1: add CONST_2P1234,<a2=int64#5
# asm 2: add CONST_2P1234,<a2=%r8
add CONST_2P1234(%rip),%r8
# qhasm: a3 += *(uint64 *) &CONST_2P1234
# asm 1: add CONST_2P1234,<a3=int64#6
# asm 2: add CONST_2P1234,<a3=%r9
add CONST_2P1234(%rip),%r9
# qhasm: a4 += *(uint64 *) &CONST_2P1234
# asm 1: add CONST_2P1234,<a4=int64#7
# asm 2: add CONST_2P1234,<a4=%rax
add CONST_2P1234(%rip),%rax
# qhasm: b0 += *(uint64 *) (rp + 0)
# asm 1: addq 0(<rp=int64#1),<b0=int64#8
# asm 2: addq 0(<rp=%rdi),<b0=%r10
addq 0(%rdi),%r10
# qhasm: b1 += *(uint64 *) (rp + 8)
# asm 1: addq 8(<rp=int64#1),<b1=int64#9
# asm 2: addq 8(<rp=%rdi),<b1=%r11
addq 8(%rdi),%r11
# qhasm: b2 += *(uint64 *) (rp + 16)
# asm 1: addq 16(<rp=int64#1),<b2=int64#10
# asm 2: addq 16(<rp=%rdi),<b2=%r12
addq 16(%rdi),%r12
# qhasm: b3 += *(uint64 *) (rp + 24)
# asm 1: addq 24(<rp=int64#1),<b3=int64#11
# asm 2: addq 24(<rp=%rdi),<b3=%r13
addq 24(%rdi),%r13
# qhasm: b4 += *(uint64 *) (rp + 32)
# asm 1: addq 32(<rp=int64#1),<b4=int64#12
# asm 2: addq 32(<rp=%rdi),<b4=%r14
addq 32(%rdi),%r14
# qhasm: a0 -= *(uint64 *) (rp + 0)
# asm 1: subq 0(<rp=int64#1),<a0=int64#3
# asm 2: subq 0(<rp=%rdi),<a0=%rdx
subq 0(%rdi),%rdx
# qhasm: a1 -= *(uint64 *) (rp + 8)
# asm 1: subq 8(<rp=int64#1),<a1=int64#4
# asm 2: subq 8(<rp=%rdi),<a1=%rcx
subq 8(%rdi),%rcx
# qhasm: a2 -= *(uint64 *) (rp + 16)
# asm 1: subq 16(<rp=int64#1),<a2=int64#5
# asm 2: subq 16(<rp=%rdi),<a2=%r8
subq 16(%rdi),%r8
# qhasm: a3 -= *(uint64 *) (rp + 24)
# asm 1: subq 24(<rp=int64#1),<a3=int64#6
# asm 2: subq 24(<rp=%rdi),<a3=%r9
subq 24(%rdi),%r9
# qhasm: a4 -= *(uint64 *) (rp + 32)
# asm 1: subq 32(<rp=int64#1),<a4=int64#7
# asm 2: subq 32(<rp=%rdi),<a4=%rax
subq 32(%rdi),%rax
# qhasm: a0_stack = a0
# asm 1: movq <a0=int64#3,>a0_stack=stack64#8
# asm 2: movq <a0=%rdx,>a0_stack=56(%rsp)
movq %rdx,56(%rsp)
# qhasm: a1_stack = a1
# asm 1: movq <a1=int64#4,>a1_stack=stack64#9
# asm 2: movq <a1=%rcx,>a1_stack=64(%rsp)
movq %rcx,64(%rsp)
# qhasm: a2_stack = a2
# asm 1: movq <a2=int64#5,>a2_stack=stack64#10
# asm 2: movq <a2=%r8,>a2_stack=72(%rsp)
movq %r8,72(%rsp)
# qhasm: a3_stack = a3
# asm 1: movq <a3=int64#6,>a3_stack=stack64#11
# asm 2: movq <a3=%r9,>a3_stack=80(%rsp)
movq %r9,80(%rsp)
# qhasm: a4_stack = a4
# asm 1: movq <a4=int64#7,>a4_stack=stack64#12
# asm 2: movq <a4=%rax,>a4_stack=88(%rsp)
movq %rax,88(%rsp)
# qhasm: b0_stack = b0
# asm 1: movq <b0=int64#8,>b0_stack=stack64#13
# asm 2: movq <b0=%r10,>b0_stack=96(%rsp)
movq %r10,96(%rsp)
# qhasm: b1_stack = b1
# asm 1: movq <b1=int64#9,>b1_stack=stack64#14
# asm 2: movq <b1=%r11,>b1_stack=104(%rsp)
movq %r11,104(%rsp)
# qhasm: b2_stack = b2
# asm 1: movq <b2=int64#10,>b2_stack=stack64#15
# asm 2: movq <b2=%r12,>b2_stack=112(%rsp)
movq %r12,112(%rsp)
# qhasm: b3_stack = b3
# asm 1: movq <b3=int64#11,>b3_stack=stack64#16
# asm 2: movq <b3=%r13,>b3_stack=120(%rsp)
movq %r13,120(%rsp)
# qhasm: b4_stack = b4
# asm 1: movq <b4=int64#12,>b4_stack=stack64#17
# asm 2: movq <b4=%r14,>b4_stack=128(%rsp)
movq %r14,128(%rsp)
# qhasm: mulrax = a3_stack
# asm 1: movq <a3_stack=stack64#11,>mulrax=int64#3
# asm 2: movq <a3_stack=80(%rsp),>mulrax=%rdx
movq 80(%rsp),%rdx
# qhasm: mulrax *= 19
# asm 1: imulq $19,<mulrax=int64#3,>mulrax=int64#7
# asm 2: imulq $19,<mulrax=%rdx,>mulrax=%rax
imulq $19,%rdx,%rax
# qhasm: mulx319_stack = mulrax
# asm 1: movq <mulrax=int64#7,>mulx319_stack=stack64#18
# asm 2: movq <mulrax=%rax,>mulx319_stack=136(%rsp)
movq %rax,136(%rsp)
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 16)
# asm 1: mulq 16(<qp=int64#2)
# asm 2: mulq 16(<qp=%rsi)
mulq 16(%rsi)
# qhasm: a0 = mulrax
# asm 1: mov <mulrax=int64#7,>a0=int64#4
# asm 2: mov <mulrax=%rax,>a0=%rcx
mov %rax,%rcx
# qhasm: mulr01 = mulrdx
# asm 1: mov <mulrdx=int64#3,>mulr01=int64#5
# asm 2: mov <mulrdx=%rdx,>mulr01=%r8
mov %rdx,%r8
# qhasm: mulrax = a4_stack
# asm 1: movq <a4_stack=stack64#12,>mulrax=int64#3
# asm 2: movq <a4_stack=88(%rsp),>mulrax=%rdx
movq 88(%rsp),%rdx
# qhasm: mulrax *= 19
# asm 1: imulq $19,<mulrax=int64#3,>mulrax=int64#7
# asm 2: imulq $19,<mulrax=%rdx,>mulrax=%rax
imulq $19,%rdx,%rax
# qhasm: mulx419_stack = mulrax
# asm 1: movq <mulrax=int64#7,>mulx419_stack=stack64#19
# asm 2: movq <mulrax=%rax,>mulx419_stack=144(%rsp)
movq %rax,144(%rsp)
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 8)
# asm 1: mulq 8(<qp=int64#2)
# asm 2: mulq 8(<qp=%rsi)
mulq 8(%rsi)
# qhasm: carry? a0 += mulrax
# asm 1: add <mulrax=int64#7,<a0=int64#4
# asm 2: add <mulrax=%rax,<a0=%rcx
add %rax,%rcx
# qhasm: mulr01 += mulrdx + carry
# asm 1: adc <mulrdx=int64#3,<mulr01=int64#5
# asm 2: adc <mulrdx=%rdx,<mulr01=%r8
adc %rdx,%r8
# qhasm: mulrax = a0_stack
# asm 1: movq <a0_stack=stack64#8,>mulrax=int64#7
# asm 2: movq <a0_stack=56(%rsp),>mulrax=%rax
movq 56(%rsp),%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 0)
# asm 1: mulq 0(<qp=int64#2)
# asm 2: mulq 0(<qp=%rsi)
mulq 0(%rsi)
# qhasm: carry? a0 += mulrax
# asm 1: add <mulrax=int64#7,<a0=int64#4
# asm 2: add <mulrax=%rax,<a0=%rcx
add %rax,%rcx
# qhasm: mulr01 += mulrdx + carry
# asm 1: adc <mulrdx=int64#3,<mulr01=int64#5
# asm 2: adc <mulrdx=%rdx,<mulr01=%r8
adc %rdx,%r8
# qhasm: mulrax = a0_stack
# asm 1: movq <a0_stack=stack64#8,>mulrax=int64#7
# asm 2: movq <a0_stack=56(%rsp),>mulrax=%rax
movq 56(%rsp),%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 8)
# asm 1: mulq 8(<qp=int64#2)
# asm 2: mulq 8(<qp=%rsi)
mulq 8(%rsi)
# qhasm: a1 = mulrax
# asm 1: mov <mulrax=int64#7,>a1=int64#6
# asm 2: mov <mulrax=%rax,>a1=%r9
mov %rax,%r9
# qhasm: mulr11 = mulrdx
# asm 1: mov <mulrdx=int64#3,>mulr11=int64#8
# asm 2: mov <mulrdx=%rdx,>mulr11=%r10
mov %rdx,%r10
# qhasm: mulrax = a0_stack
# asm 1: movq <a0_stack=stack64#8,>mulrax=int64#7
# asm 2: movq <a0_stack=56(%rsp),>mulrax=%rax
movq 56(%rsp),%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 16)
# asm 1: mulq 16(<qp=int64#2)
# asm 2: mulq 16(<qp=%rsi)
mulq 16(%rsi)
# qhasm: a2 = mulrax
# asm 1: mov <mulrax=int64#7,>a2=int64#9
# asm 2: mov <mulrax=%rax,>a2=%r11
mov %rax,%r11
# qhasm: mulr21 = mulrdx
# asm 1: mov <mulrdx=int64#3,>mulr21=int64#10
# asm 2: mov <mulrdx=%rdx,>mulr21=%r12
mov %rdx,%r12
# qhasm: mulrax = a0_stack
# asm 1: movq <a0_stack=stack64#8,>mulrax=int64#7
# asm 2: movq <a0_stack=56(%rsp),>mulrax=%rax
movq 56(%rsp),%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 24)
# asm 1: mulq 24(<qp=int64#2)
# asm 2: mulq 24(<qp=%rsi)
mulq 24(%rsi)
# qhasm: a3 = mulrax
# asm 1: mov <mulrax=int64#7,>a3=int64#11
# asm 2: mov <mulrax=%rax,>a3=%r13
mov %rax,%r13
# qhasm: mulr31 = mulrdx
# asm 1: mov <mulrdx=int64#3,>mulr31=int64#12
# asm 2: mov <mulrdx=%rdx,>mulr31=%r14
mov %rdx,%r14
# qhasm: mulrax = a0_stack
# asm 1: movq <a0_stack=stack64#8,>mulrax=int64#7
# asm 2: movq <a0_stack=56(%rsp),>mulrax=%rax
movq 56(%rsp),%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 32)
# asm 1: mulq 32(<qp=int64#2)
# asm 2: mulq 32(<qp=%rsi)
mulq 32(%rsi)
# qhasm: a4 = mulrax
# asm 1: mov <mulrax=int64#7,>a4=int64#13
# asm 2: mov <mulrax=%rax,>a4=%r15
mov %rax,%r15
# qhasm: mulr41 = mulrdx
# asm 1: mov <mulrdx=int64#3,>mulr41=int64#14
# asm 2: mov <mulrdx=%rdx,>mulr41=%rbx
mov %rdx,%rbx
# qhasm: mulrax = a1_stack
# asm 1: movq <a1_stack=stack64#9,>mulrax=int64#7
# asm 2: movq <a1_stack=64(%rsp),>mulrax=%rax
movq 64(%rsp),%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 0)
# asm 1: mulq 0(<qp=int64#2)
# asm 2: mulq 0(<qp=%rsi)
mulq 0(%rsi)
# qhasm: carry? a1 += mulrax
# asm 1: add <mulrax=int64#7,<a1=int64#6
# asm 2: add <mulrax=%rax,<a1=%r9
add %rax,%r9
# qhasm: mulr11 += mulrdx + carry
# asm 1: adc <mulrdx=int64#3,<mulr11=int64#8
# asm 2: adc <mulrdx=%rdx,<mulr11=%r10
adc %rdx,%r10
# qhasm: mulrax = a1_stack
# asm 1: movq <a1_stack=stack64#9,>mulrax=int64#7
# asm 2: movq <a1_stack=64(%rsp),>mulrax=%rax
movq 64(%rsp),%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 8)
# asm 1: mulq 8(<qp=int64#2)
# asm 2: mulq 8(<qp=%rsi)
mulq 8(%rsi)
# qhasm: carry? a2 += mulrax
# asm 1: add <mulrax=int64#7,<a2=int64#9
# asm 2: add <mulrax=%rax,<a2=%r11
add %rax,%r11
# qhasm: mulr21 += mulrdx + carry
# asm 1: adc <mulrdx=int64#3,<mulr21=int64#10
# asm 2: adc <mulrdx=%rdx,<mulr21=%r12
adc %rdx,%r12
# qhasm: mulrax = a1_stack
# asm 1: movq <a1_stack=stack64#9,>mulrax=int64#7
# asm 2: movq <a1_stack=64(%rsp),>mulrax=%rax
movq 64(%rsp),%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 16)
# asm 1: mulq 16(<qp=int64#2)
# asm 2: mulq 16(<qp=%rsi)
mulq 16(%rsi)
# qhasm: carry? a3 += mulrax
# asm 1: add <mulrax=int64#7,<a3=int64#11
# asm 2: add <mulrax=%rax,<a3=%r13
add %rax,%r13
# qhasm: mulr31 += mulrdx + carry
# asm 1: adc <mulrdx=int64#3,<mulr31=int64#12
# asm 2: adc <mulrdx=%rdx,<mulr31=%r14
adc %rdx,%r14
# qhasm: mulrax = a1_stack
# asm 1: movq <a1_stack=stack64#9,>mulrax=int64#7
# asm 2: movq <a1_stack=64(%rsp),>mulrax=%rax
movq 64(%rsp),%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 24)
# asm 1: mulq 24(<qp=int64#2)
# asm 2: mulq 24(<qp=%rsi)
mulq 24(%rsi)
# qhasm: carry? a4 += mulrax
# asm 1: add <mulrax=int64#7,<a4=int64#13
# asm 2: add <mulrax=%rax,<a4=%r15
add %rax,%r15
# qhasm: mulr41 += mulrdx + carry
# asm 1: adc <mulrdx=int64#3,<mulr41=int64#14
# asm 2: adc <mulrdx=%rdx,<mulr41=%rbx
adc %rdx,%rbx
# qhasm: mulrax = a1_stack
# asm 1: movq <a1_stack=stack64#9,>mulrax=int64#3
# asm 2: movq <a1_stack=64(%rsp),>mulrax=%rdx
movq 64(%rsp),%rdx
# qhasm: mulrax *= 19
# asm 1: imulq $19,<mulrax=int64#3,>mulrax=int64#7
# asm 2: imulq $19,<mulrax=%rdx,>mulrax=%rax
imulq $19,%rdx,%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 32)
# asm 1: mulq 32(<qp=int64#2)
# asm 2: mulq 32(<qp=%rsi)
mulq 32(%rsi)
# qhasm: carry? a0 += mulrax
# asm 1: add <mulrax=int64#7,<a0=int64#4
# asm 2: add <mulrax=%rax,<a0=%rcx
add %rax,%rcx
# qhasm: mulr01 += mulrdx + carry
# asm 1: adc <mulrdx=int64#3,<mulr01=int64#5
# asm 2: adc <mulrdx=%rdx,<mulr01=%r8
adc %rdx,%r8
# qhasm: mulrax = a2_stack
# asm 1: movq <a2_stack=stack64#10,>mulrax=int64#7
# asm 2: movq <a2_stack=72(%rsp),>mulrax=%rax
movq 72(%rsp),%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 0)
# asm 1: mulq 0(<qp=int64#2)
# asm 2: mulq 0(<qp=%rsi)
mulq 0(%rsi)
# qhasm: carry? a2 += mulrax
# asm 1: add <mulrax=int64#7,<a2=int64#9
# asm 2: add <mulrax=%rax,<a2=%r11
add %rax,%r11
# qhasm: mulr21 += mulrdx + carry
# asm 1: adc <mulrdx=int64#3,<mulr21=int64#10
# asm 2: adc <mulrdx=%rdx,<mulr21=%r12
adc %rdx,%r12
# qhasm: mulrax = a2_stack
# asm 1: movq <a2_stack=stack64#10,>mulrax=int64#7
# asm 2: movq <a2_stack=72(%rsp),>mulrax=%rax
movq 72(%rsp),%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 8)
# asm 1: mulq 8(<qp=int64#2)
# asm 2: mulq 8(<qp=%rsi)
mulq 8(%rsi)
# qhasm: carry? a3 += mulrax
# asm 1: add <mulrax=int64#7,<a3=int64#11
# asm 2: add <mulrax=%rax,<a3=%r13
add %rax,%r13
# qhasm: mulr31 += mulrdx + carry
# asm 1: adc <mulrdx=int64#3,<mulr31=int64#12
# asm 2: adc <mulrdx=%rdx,<mulr31=%r14
adc %rdx,%r14
# qhasm: mulrax = a2_stack
# asm 1: movq <a2_stack=stack64#10,>mulrax=int64#7
# asm 2: movq <a2_stack=72(%rsp),>mulrax=%rax
movq 72(%rsp),%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 16)
# asm 1: mulq 16(<qp=int64#2)
# asm 2: mulq 16(<qp=%rsi)
mulq 16(%rsi)
# qhasm: carry? a4 += mulrax
# asm 1: add <mulrax=int64#7,<a4=int64#13
# asm 2: add <mulrax=%rax,<a4=%r15
add %rax,%r15
# qhasm: mulr41 += mulrdx + carry
# asm 1: adc <mulrdx=int64#3,<mulr41=int64#14
# asm 2: adc <mulrdx=%rdx,<mulr41=%rbx
adc %rdx,%rbx
# qhasm: mulrax = a2_stack
# asm 1: movq <a2_stack=stack64#10,>mulrax=int64#3
# asm 2: movq <a2_stack=72(%rsp),>mulrax=%rdx
movq 72(%rsp),%rdx
# qhasm: mulrax *= 19
# asm 1: imulq $19,<mulrax=int64#3,>mulrax=int64#7
# asm 2: imulq $19,<mulrax=%rdx,>mulrax=%rax
imulq $19,%rdx,%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 24)
# asm 1: mulq 24(<qp=int64#2)
# asm 2: mulq 24(<qp=%rsi)
mulq 24(%rsi)
# qhasm: carry? a0 += mulrax
# asm 1: add <mulrax=int64#7,<a0=int64#4
# asm 2: add <mulrax=%rax,<a0=%rcx
add %rax,%rcx
# qhasm: mulr01 += mulrdx + carry
# asm 1: adc <mulrdx=int64#3,<mulr01=int64#5
# asm 2: adc <mulrdx=%rdx,<mulr01=%r8
adc %rdx,%r8
# qhasm: mulrax = a2_stack
# asm 1: movq <a2_stack=stack64#10,>mulrax=int64#3
# asm 2: movq <a2_stack=72(%rsp),>mulrax=%rdx
movq 72(%rsp),%rdx
# qhasm: mulrax *= 19
# asm 1: imulq $19,<mulrax=int64#3,>mulrax=int64#7
# asm 2: imulq $19,<mulrax=%rdx,>mulrax=%rax
imulq $19,%rdx,%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 32)
# asm 1: mulq 32(<qp=int64#2)
# asm 2: mulq 32(<qp=%rsi)
mulq 32(%rsi)
# qhasm: carry? a1 += mulrax
# asm 1: add <mulrax=int64#7,<a1=int64#6
# asm 2: add <mulrax=%rax,<a1=%r9
add %rax,%r9
# qhasm: mulr11 += mulrdx + carry
# asm 1: adc <mulrdx=int64#3,<mulr11=int64#8
# asm 2: adc <mulrdx=%rdx,<mulr11=%r10
adc %rdx,%r10
# qhasm: mulrax = a3_stack
# asm 1: movq <a3_stack=stack64#11,>mulrax=int64#7
# asm 2: movq <a3_stack=80(%rsp),>mulrax=%rax
movq 80(%rsp),%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 0)
# asm 1: mulq 0(<qp=int64#2)
# asm 2: mulq 0(<qp=%rsi)
mulq 0(%rsi)
# qhasm: carry? a3 += mulrax
# asm 1: add <mulrax=int64#7,<a3=int64#11
# asm 2: add <mulrax=%rax,<a3=%r13
add %rax,%r13
# qhasm: mulr31 += mulrdx + carry
# asm 1: adc <mulrdx=int64#3,<mulr31=int64#12
# asm 2: adc <mulrdx=%rdx,<mulr31=%r14
adc %rdx,%r14
# qhasm: mulrax = a3_stack
# asm 1: movq <a3_stack=stack64#11,>mulrax=int64#7
# asm 2: movq <a3_stack=80(%rsp),>mulrax=%rax
movq 80(%rsp),%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 8)
# asm 1: mulq 8(<qp=int64#2)
# asm 2: mulq 8(<qp=%rsi)
mulq 8(%rsi)
# qhasm: carry? a4 += mulrax
# asm 1: add <mulrax=int64#7,<a4=int64#13
# asm 2: add <mulrax=%rax,<a4=%r15
add %rax,%r15
# qhasm: mulr41 += mulrdx + carry
# asm 1: adc <mulrdx=int64#3,<mulr41=int64#14
# asm 2: adc <mulrdx=%rdx,<mulr41=%rbx
adc %rdx,%rbx
# qhasm: mulrax = mulx319_stack
# asm 1: movq <mulx319_stack=stack64#18,>mulrax=int64#7
# asm 2: movq <mulx319_stack=136(%rsp),>mulrax=%rax
movq 136(%rsp),%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 24)
# asm 1: mulq 24(<qp=int64#2)
# asm 2: mulq 24(<qp=%rsi)
mulq 24(%rsi)
# qhasm: carry? a1 += mulrax
# asm 1: add <mulrax=int64#7,<a1=int64#6
# asm 2: add <mulrax=%rax,<a1=%r9
add %rax,%r9
# qhasm: mulr11 += mulrdx + carry
# asm 1: adc <mulrdx=int64#3,<mulr11=int64#8
# asm 2: adc <mulrdx=%rdx,<mulr11=%r10
adc %rdx,%r10
# qhasm: mulrax = mulx319_stack
# asm 1: movq <mulx319_stack=stack64#18,>mulrax=int64#7
# asm 2: movq <mulx319_stack=136(%rsp),>mulrax=%rax
movq 136(%rsp),%rax
# qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)(qp + 32)
# asm 1: mulq 32(<qp=int64#2)
# asm 2: mulq 32(<qp=%rsi)