# qhasm: int64 rp # qhasm: int64 xp # qhasm: int64 yp # qhasm: input rp # qhasm: input xp # qhasm: input yp # qhasm: int64 r0 # qhasm: int64 r1 # qhasm: int64 r2 # qhasm: int64 r3 # 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 mulr4 # qhasm: int64 mulr5 # qhasm: int64 mulr6 # qhasm: int64 mulr7 # qhasm: int64 mulr8 # qhasm: int64 mulrax # qhasm: int64 mulrdx # qhasm: int64 mulx0 # qhasm: int64 mulx1 # qhasm: int64 mulx2 # qhasm: int64 mulx3 # qhasm: int64 mulc # qhasm: int64 mulzero # qhasm: int64 muli38 # qhasm: enter crypto_sign_ed25519_amd64_64_fe25519_mul .text .p2align 5 .globl _crypto_sign_ed25519_amd64_64_fe25519_mul .globl crypto_sign_ed25519_amd64_64_fe25519_mul _crypto_sign_ed25519_amd64_64_fe25519_mul: crypto_sign_ed25519_amd64_64_fe25519_mul: mov %rsp,%r11 and $31,%r11 add $64,%r11 sub %r11,%rsp # qhasm: caller1_stack = caller1 # asm 1: movq caller1_stack=stack64#1 # asm 2: movq caller1_stack=0(%rsp) movq %r11,0(%rsp) # qhasm: caller2_stack = caller2 # asm 1: movq caller2_stack=stack64#2 # asm 2: movq caller2_stack=8(%rsp) movq %r12,8(%rsp) # qhasm: caller3_stack = caller3 # asm 1: movq caller3_stack=stack64#3 # asm 2: movq caller3_stack=16(%rsp) movq %r13,16(%rsp) # qhasm: caller4_stack = caller4 # asm 1: movq caller4_stack=stack64#4 # asm 2: movq caller4_stack=24(%rsp) movq %r14,24(%rsp) # qhasm: caller5_stack = caller5 # asm 1: movq caller5_stack=stack64#5 # asm 2: movq caller5_stack=32(%rsp) movq %r15,32(%rsp) # qhasm: caller6_stack = caller6 # asm 1: movq caller6_stack=stack64#6 # asm 2: movq caller6_stack=40(%rsp) movq %rbx,40(%rsp) # qhasm: caller7_stack = caller7 # asm 1: movq caller7_stack=stack64#7 # asm 2: movq caller7_stack=48(%rsp) movq %rbp,48(%rsp) # qhasm: yp = yp # asm 1: mov yp=int64#4 # asm 2: mov yp=%rcx mov %rdx,%rcx # qhasm: mulr4 = 0 # asm 1: mov $0,>mulr4=int64#5 # asm 2: mov $0,>mulr4=%r8 mov $0,%r8 # qhasm: mulr5 = 0 # asm 1: mov $0,>mulr5=int64#6 # asm 2: mov $0,>mulr5=%r9 mov $0,%r9 # qhasm: mulr6 = 0 # asm 1: mov $0,>mulr6=int64#8 # asm 2: mov $0,>mulr6=%r10 mov $0,%r10 # qhasm: mulr7 = 0 # asm 1: mov $0,>mulr7=int64#9 # asm 2: mov $0,>mulr7=%r11 mov $0,%r11 # qhasm: mulx0 = *(uint64 *)(xp + 0) # asm 1: movq 0(mulx0=int64#10 # asm 2: movq 0(mulx0=%r12 movq 0(%rsi),%r12 # qhasm: mulrax = *(uint64 *)(yp + 0) # asm 1: movq 0(mulrax=int64#7 # asm 2: movq 0(mulrax=%rax movq 0(%rcx),%rax # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0 # asm 1: mul r0=int64#11 # asm 2: mov r0=%r13 mov %rax,%r13 # qhasm: r1 = mulrdx # asm 1: mov r1=int64#12 # asm 2: mov r1=%r14 mov %rdx,%r14 # qhasm: mulrax = *(uint64 *)(yp + 8) # asm 1: movq 8(mulrax=int64#7 # asm 2: movq 8(mulrax=%rax movq 8(%rcx),%rax # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0 # asm 1: mul r2=int64#13 # asm 2: mov $0,>r2=%r15 mov $0,%r15 # qhasm: r2 += mulrdx + carry # asm 1: adc mulrax=int64#7 # asm 2: movq 16(mulrax=%rax movq 16(%rcx),%rax # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0 # asm 1: mul r3=int64#14 # asm 2: mov $0,>r3=%rbx mov $0,%rbx # qhasm: r3 += mulrdx + carry # asm 1: adc mulrax=int64#7 # asm 2: movq 24(mulrax=%rax movq 24(%rcx),%rax # qhasm: (uint128) mulrdx mulrax = mulrax * mulx0 # asm 1: mul mulx1=int64#10 # asm 2: movq 8(mulx1=%r12 movq 8(%rsi),%r12 # qhasm: mulrax = *(uint64 *)(yp + 0) # asm 1: movq 0(mulrax=int64#7 # asm 2: movq 0(mulrax=%rax movq 0(%rcx),%rax # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1 # asm 1: mul mulc=int64#15 # asm 2: mov $0,>mulc=%rbp mov $0,%rbp # qhasm: mulc += mulrdx + carry # asm 1: adc mulrax=int64#7 # asm 2: movq 8(mulrax=%rax movq 8(%rcx),%rax # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1 # asm 1: mul mulc=int64#15 # asm 2: mov $0,>mulc=%rbp mov $0,%rbp # qhasm: mulc += mulrdx + carry # asm 1: adc mulrax=int64#7 # asm 2: movq 16(mulrax=%rax movq 16(%rcx),%rax # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1 # asm 1: mul mulc=int64#15 # asm 2: mov $0,>mulc=%rbp mov $0,%rbp # qhasm: mulc += mulrdx + carry # asm 1: adc mulrax=int64#7 # asm 2: movq 24(mulrax=%rax movq 24(%rcx),%rax # qhasm: (uint128) mulrdx mulrax = mulrax * mulx1 # asm 1: mul mulx2=int64#10 # asm 2: movq 16(mulx2=%r12 movq 16(%rsi),%r12 # qhasm: mulrax = *(uint64 *)(yp + 0) # asm 1: movq 0(mulrax=int64#7 # asm 2: movq 0(mulrax=%rax movq 0(%rcx),%rax # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2 # asm 1: mul mulc=int64#15 # asm 2: mov $0,>mulc=%rbp mov $0,%rbp # qhasm: mulc += mulrdx + carry # asm 1: adc mulrax=int64#7 # asm 2: movq 8(mulrax=%rax movq 8(%rcx),%rax # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2 # asm 1: mul mulc=int64#15 # asm 2: mov $0,>mulc=%rbp mov $0,%rbp # qhasm: mulc += mulrdx + carry # asm 1: adc mulrax=int64#7 # asm 2: movq 16(mulrax=%rax movq 16(%rcx),%rax # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2 # asm 1: mul mulc=int64#15 # asm 2: mov $0,>mulc=%rbp mov $0,%rbp # qhasm: mulc += mulrdx + carry # asm 1: adc mulrax=int64#7 # asm 2: movq 24(mulrax=%rax movq 24(%rcx),%rax # qhasm: (uint128) mulrdx mulrax = mulrax * mulx2 # asm 1: mul mulx3=int64#2 # asm 2: movq 24(mulx3=%rsi movq 24(%rsi),%rsi # qhasm: mulrax = *(uint64 *)(yp + 0) # asm 1: movq 0(mulrax=int64#7 # asm 2: movq 0(mulrax=%rax movq 0(%rcx),%rax # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3 # asm 1: mul mulc=int64#10 # asm 2: mov $0,>mulc=%r12 mov $0,%r12 # qhasm: mulc += mulrdx + carry # asm 1: adc mulrax=int64#7 # asm 2: movq 8(mulrax=%rax movq 8(%rcx),%rax # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3 # asm 1: mul mulc=int64#10 # asm 2: mov $0,>mulc=%r12 mov $0,%r12 # qhasm: mulc += mulrdx + carry # asm 1: adc mulrax=int64#7 # asm 2: movq 16(mulrax=%rax movq 16(%rcx),%rax # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3 # asm 1: mul mulc=int64#10 # asm 2: mov $0,>mulc=%r12 mov $0,%r12 # qhasm: mulc += mulrdx + carry # asm 1: adc mulrax=int64#7 # asm 2: movq 24(mulrax=%rax movq 24(%rcx),%rax # qhasm: (uint128) mulrdx mulrax = mulrax * mulx3 # asm 1: mul mulrax=int64#7 # asm 2: mov mulrax=%rax mov %r8,%rax # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&crypto_sign_ed25519_amd64_64_38 mulq crypto_sign_ed25519_amd64_64_38 # qhasm: mulr4 = mulrax # asm 1: mov mulr4=int64#2 # asm 2: mov mulr4=%rsi mov %rax,%rsi # qhasm: mulrax = mulr5 # asm 1: mov mulrax=int64#7 # asm 2: mov mulrax=%rax mov %r9,%rax # qhasm: mulr5 = mulrdx # asm 1: mov mulr5=int64#4 # asm 2: mov mulr5=%rcx mov %rdx,%rcx # qhasm: (uint128) mulrdx mulrax = mulrax * *(uint64 *)&crypto_sign_ed25519_amd64_64_38 mulq crypto_sign_ed25519_amd64_64_38 # qhasm: carry? mulr5 += mulrax # asm 1: add mulrax=int64#7 # asm 2: mov mulrax=%rax mov %r10,%rax # qhasm: mulr6 = 0 # asm 1: mov $0,>mulr6=int64#5 # asm 2: mov $0,>mulr6=%r8 mov $0,%r8 # qhasm: mulr6 += mulrdx + carry # asm 1: adc mulrax=int64#7 # asm 2: mov mulrax=%rax mov %r11,%rax # qhasm: mulr7 = 0 # asm 1: mov $0,>mulr7=int64#6 # asm 2: mov $0,>mulr7=%r9 mov $0,%r9 # qhasm: mulr7 += mulrdx + carry # asm 1: adc mulr8=int64#7 # asm 2: mov $0,>mulr8=%rax mov $0,%rax # qhasm: mulr8 += mulrdx + carry # asm 1: adc mulzero=int64#2 # asm 2: mov $0,>mulzero=%rsi mov $0,%rsi # qhasm: mulr8 += mulzero + carry # asm 1: adc mulr8=int64#3 # asm 2: imulq $38,mulr8=%rdx imulq $38,%rax,%rdx # qhasm: carry? r0 += mulr8 # asm 1: add mulzero=int64#2 # asm 2: imulq $38,mulzero=%rsi imulq $38,%rsi,%rsi # qhasm: r0 += mulzero # asm 1: add caller1=int64#9 # asm 2: movq caller1=%r11 movq 0(%rsp),%r11 # qhasm: caller2 = caller2_stack # asm 1: movq caller2=int64#10 # asm 2: movq caller2=%r12 movq 8(%rsp),%r12 # qhasm: caller3 = caller3_stack # asm 1: movq caller3=int64#11 # asm 2: movq caller3=%r13 movq 16(%rsp),%r13 # qhasm: caller4 = caller4_stack # asm 1: movq caller4=int64#12 # asm 2: movq caller4=%r14 movq 24(%rsp),%r14 # qhasm: caller5 = caller5_stack # asm 1: movq caller5=int64#13 # asm 2: movq caller5=%r15 movq 32(%rsp),%r15 # qhasm: caller6 = caller6_stack # asm 1: movq caller6=int64#14 # asm 2: movq caller6=%rbx movq 40(%rsp),%rbx # qhasm: caller7 = caller7_stack # asm 1: movq caller7=int64#15 # asm 2: movq caller7=%rbp movq 48(%rsp),%rbp # qhasm: leave add %r11,%rsp mov %rdi,%rax mov %rsi,%rdx ret