# qhasm: int64 rp # qhasm: int64 xp # qhasm: input rp # qhasm: input xp # 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 squarer4 # qhasm: int64 squarer5 # qhasm: int64 squarer6 # qhasm: int64 squarer7 # qhasm: int64 squarer8 # qhasm: int64 squarerax # qhasm: int64 squarerdx # qhasm: int64 squaret1 # qhasm: int64 squaret2 # qhasm: int64 squaret3 # qhasm: int64 squarec # qhasm: int64 squarezero # qhasm: int64 squarei38 # qhasm: enter crypto_sign_ed25519_amd64_64_fe25519_square .text .p2align 5 .globl _crypto_sign_ed25519_amd64_64_fe25519_square .globl crypto_sign_ed25519_amd64_64_fe25519_square _crypto_sign_ed25519_amd64_64_fe25519_square: crypto_sign_ed25519_amd64_64_fe25519_square: 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: squarer7 = 0 # asm 1: mov $0,>squarer7=int64#4 # asm 2: mov $0,>squarer7=%rcx mov $0,%rcx # qhasm: squarerax = *(uint64 *)(xp + 8) # asm 1: movq 8(squarerax=int64#7 # asm 2: movq 8(squarerax=%rax movq 8(%rsi),%rax # qhasm: (uint128) squarerdx squarerax = squarerax * *(uint64 *)(xp + 0) # asm 1: mulq 0(r1=int64#5 # asm 2: mov r1=%r8 mov %rax,%r8 # qhasm: r2 = squarerdx # asm 1: mov r2=int64#6 # asm 2: mov r2=%r9 mov %rdx,%r9 # qhasm: squarerax = *(uint64 *)(xp + 16) # asm 1: movq 16(squarerax=int64#7 # asm 2: movq 16(squarerax=%rax movq 16(%rsi),%rax # qhasm: (uint128) squarerdx squarerax = squarerax * *(uint64 *)(xp + 8) # asm 1: mulq 8(r3=int64#8 # asm 2: mov r3=%r10 mov %rax,%r10 # qhasm: squarer4 = squarerdx # asm 1: mov squarer4=int64#9 # asm 2: mov squarer4=%r11 mov %rdx,%r11 # qhasm: squarerax = *(uint64 *)(xp + 24) # asm 1: movq 24(squarerax=int64#7 # asm 2: movq 24(squarerax=%rax movq 24(%rsi),%rax # qhasm: (uint128) squarerdx squarerax = squarerax * *(uint64 *)(xp + 16) # asm 1: mulq 16(squarer5=int64#10 # asm 2: mov squarer5=%r12 mov %rax,%r12 # qhasm: squarer6 = squarerdx # asm 1: mov squarer6=int64#11 # asm 2: mov squarer6=%r13 mov %rdx,%r13 # qhasm: squarerax = *(uint64 *)(xp + 16) # asm 1: movq 16(squarerax=int64#7 # asm 2: movq 16(squarerax=%rax movq 16(%rsi),%rax # qhasm: (uint128) squarerdx squarerax = squarerax * *(uint64 *)(xp + 0) # asm 1: mulq 0(squarerax=int64#7 # asm 2: movq 24(squarerax=%rax movq 24(%rsi),%rax # qhasm: (uint128) squarerdx squarerax = squarerax * *(uint64 *)(xp + 8) # asm 1: mulq 8(squarerax=int64#7 # asm 2: movq 24(squarerax=%rax movq 24(%rsi),%rax # qhasm: (uint128) squarerdx squarerax = squarerax * *(uint64 *)(xp + 0) # asm 1: mulq 0(squarerax=int64#7 # asm 2: movq 0(squarerax=%rax movq 0(%rsi),%rax # qhasm: (uint128) squarerdx squarerax = squarerax * *(uint64 *)(xp + 0) # asm 1: mulq 0(r0=int64#12 # asm 2: mov r0=%r14 mov %rax,%r14 # qhasm: squaret1 = squarerdx # asm 1: mov squaret1=int64#13 # asm 2: mov squaret1=%r15 mov %rdx,%r15 # qhasm: squarerax = *(uint64 *)(xp + 8) # asm 1: movq 8(squarerax=int64#7 # asm 2: movq 8(squarerax=%rax movq 8(%rsi),%rax # qhasm: (uint128) squarerdx squarerax = squarerax * *(uint64 *)(xp + 8) # asm 1: mulq 8(squaret2=int64#14 # asm 2: mov squaret2=%rbx mov %rax,%rbx # qhasm: squaret3 = squarerdx # asm 1: mov squaret3=int64#15 # asm 2: mov squaret3=%rbp mov %rdx,%rbp # qhasm: squarerax = *(uint64 *)(xp + 16) # asm 1: movq 16(squarerax=int64#7 # asm 2: movq 16(squarerax=%rax movq 16(%rsi),%rax # qhasm: (uint128) squarerdx squarerax = squarerax * *(uint64 *)(xp + 16) # asm 1: mulq 16(squarerax=int64#7 # asm 2: movq 24(squarerax=%rax movq 24(%rsi),%rax # qhasm: (uint128) squarerdx squarerax = squarerax * *(uint64 *)(xp + 24) # asm 1: mulq 24(squarerax=int64#7 # asm 2: mov squarerax=%rax mov %r11,%rax # qhasm: (uint128) squarerdx squarerax = squarerax * *(uint64 *)&crypto_sign_ed25519_amd64_64_38 mulq crypto_sign_ed25519_amd64_64_38(%rip) # qhasm: squarer4 = squarerax # asm 1: mov squarer4=int64#2 # asm 2: mov squarer4=%rsi mov %rax,%rsi # qhasm: squarerax = squarer5 # asm 1: mov squarerax=int64#7 # asm 2: mov squarerax=%rax mov %r12,%rax # qhasm: squarer5 = squarerdx # asm 1: mov squarer5=int64#9 # asm 2: mov squarer5=%r11 mov %rdx,%r11 # qhasm: (uint128) squarerdx squarerax = squarerax * *(uint64 *)&crypto_sign_ed25519_amd64_64_38 mulq crypto_sign_ed25519_amd64_64_38(%rip) # qhasm: carry? squarer5 += squarerax # asm 1: add squarerax=int64#7 # asm 2: mov squarerax=%rax mov %r13,%rax # qhasm: squarer6 = 0 # asm 1: mov $0,>squarer6=int64#10 # asm 2: mov $0,>squarer6=%r12 mov $0,%r12 # qhasm: squarer6 += squarerdx + carry # asm 1: adc squarerax=int64#7 # asm 2: mov squarerax=%rax mov %rcx,%rax # qhasm: squarer7 = 0 # asm 1: mov $0,>squarer7=int64#4 # asm 2: mov $0,>squarer7=%rcx mov $0,%rcx # qhasm: squarer7 += squarerdx + carry # asm 1: adc squarer8=int64#7 # asm 2: mov $0,>squarer8=%rax mov $0,%rax # qhasm: squarer8 += squarerdx + carry # asm 1: adc squarezero=int64#2 # asm 2: mov $0,>squarezero=%rsi mov $0,%rsi # qhasm: squarer8 += squarezero + carry # asm 1: adc squarer8=int64#3 # asm 2: imulq $38,squarer8=%rdx imulq $38,%rax,%rdx # qhasm: carry? r0 += squarer8 # asm 1: add squarezero=int64#2 # asm 2: imulq $38,squarezero=%rsi imulq $38,%rsi,%rsi # qhasm: r0 += squarezero # 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