Debian Codegraph @

fiat-amd64/fiat_curve25519_solinas_square/seed0000000746868675_ratio13962.asm

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