Debian Codegraph @

fiat-amd64/fiat_curve25519_solinas_square/seed1852292936045315_ratio13373.asm

raw
1 SECTION .text
2 GLOBAL fiat_curve25519_solinas_square
3 fiat_curve25519_solinas_square:
4 mov rdx, [ rsi + 0x10 ]
5 mulx r10, rax, [ rsi + 0x18 ]
6 mov rdx, [ rsi + 0x8 ]
7 mulx rcx, r11, [ rsi + 0x0 ]
8 mov rdx, [ rsi + 0x18 ]
9 mulx r9, r8, [ rsi + 0x8 ]
10 mov rdx, [ rsi + 0x10 ]
11 mov [ rsp - 0x80 ], rbx
12 mov [ rsp - 0x78 ], rbp
13 mulx rbp, rbx, rdx
14 mov rdx, [ rsi + 0x10 ]
15 mov [ rsp - 0x70 ], r12
16 mov [ rsp - 0x68 ], r13
17 mulx r13, r12, [ rsi + 0x0 ]
18 xor rdx, rdx
19 adox r11, r11
20 adcx r12, rcx
21 mov rdx, [ rsi + 0x18 ]
22 mov [ rsp - 0x60 ], r14
23 mulx r14, rcx, [ rsi + 0x0 ]
24 adcx rcx, r13
25 adcx r8, r14
26 mov rdx, [ rsi + 0x8 ]
27 mulx r14, r13, [ rsi + 0x10 ]
28 adcx rax, r9
29 mov rdx, 0x0
30 adcx r10, rdx
31 clc
32 adcx r13, rcx
33 adox r12, r12
34 adcx r14, r8
35 mov r9, rdx
36 adcx r9, rax
37 adox r13, r13
38 adox r14, r14
39 mov rcx, rdx
40 adcx rcx, r10
41 adox r9, r9
42 adox rcx, rcx
43 mov rdx, [ rsi + 0x0 ]
44 mulx rax, r8, rdx
45 mov rdx, [ rsi + 0x8 ]
46 mov [ rsp - 0x58 ], r15
47 mulx r15, r10, rdx
48 setc dl
49 clc
50 adcx rax, r11
51 adcx r10, r12
52 movzx r11, dl
53 mov r12, 0x0
54 adox r11, r12
55 movzx r12, dl
56 lea r12, [ r12 + r11 ]
57 adcx r15, r13
58 adcx rbx, r14
59 adcx rbp, r9
60 mov rdx, [ rsi + 0x18 ]
61 mulx r14, r13, rdx
62 adcx r13, rcx
63 adcx r12, r14
64 mov rdx, 0x26
65 mulx rcx, r9, rbx
66 test al, al
67 adox r9, r8
68 mulx r11, r8, rbp
69 adcx r8, rax
70 adox rcx, r8
71 mulx rbx, rax, r13
72 adcx rax, r10
73 mulx rbp, r10, r12
74 adcx r10, r15
75 adox r11, rax
76 mov r15, 0x0
77 adcx rbp, r15
78 adox rbx, r10
79 adox rbp, r15
80 mulx r13, r14, rbp
81 test al, al
82 adox r14, r9
83 mov r13, r15
84 adox r13, rcx
85 mov r12, r15
86 adox r12, r11
87 mov r9, r15
88 adox r9, rbx
89 mov r8, r15
90 cmovo r8, rdx
91 adcx r14, r8
92 mov [ rdi + 0x18 ], r9
93 mov [ rdi + 0x8 ], r13
94 mov [ rdi + 0x0 ], r14
95 mov [ rdi + 0x10 ], r12
96 mov rbx, [ rsp - 0x80 ]
97 mov rbp, [ rsp - 0x78 ]
98 mov r12, [ rsp - 0x70 ]
99 mov r13, [ rsp - 0x68 ]
100 mov r14, [ rsp - 0x60 ]
101 mov r15, [ rsp - 0x58 ]
102 ret
103 ; cpu Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz
104 ; ratio 1.3373
105 ; seed 1852292936045315
106 ; CC / CFLAGS clang / -march=native -mtune=native -O3
107 ; time needed: 5276 ms on 1000 evaluations.
108 ; Time spent for assembling and measuring (initial batch_size=247, initial num_batches=31): 625 ms
109 ; number of used evaluations: 1000
110 ; Ratio (time for assembling + measure)/(total runtime for 1000 evals): 0.11846095526914328
111 ; number reverted permutation / tried permutation: 371 / 540 =68.704%
112 ; number reverted decision / tried decision: 255 / 459 =55.556%
113 ; validated in 0.506s