# qhasm: int64 hp # qhasm: int64 hlen # qhasm: int64 sp # qhasm: int64 pp # qhasm: input hp # qhasm: input hlen # qhasm: input sp # qhasm: int64 prc # qhasm: int64 plc # qhasm: int64 pc # qhasm: int64 d # qhasm: int64 spp # qhasm: int64 sprc # qhasm: int64 spc # qhasm: int64 c0 # qhasm: int64 c1 # qhasm: int64 c2 # qhasm: int64 c3 # qhasm: int64 t0 # qhasm: int64 t1 # qhasm: int64 t2 # qhasm: int64 t3 # qhasm: int64 p0 # qhasm: int64 p1 # qhasm: int64 p2 # qhasm: int64 p3 # 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: enter crypto_sign_ed25519_amd64_51_30k_batch_heap_rootreplaced_2limbs .text .p2align 5 .globl _crypto_sign_ed25519_amd64_51_30k_batch_heap_rootreplaced_2limbs .globl crypto_sign_ed25519_amd64_51_30k_batch_heap_rootreplaced_2limbs _crypto_sign_ed25519_amd64_51_30k_batch_heap_rootreplaced_2limbs: crypto_sign_ed25519_amd64_51_30k_batch_heap_rootreplaced_2limbs: 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: pp = 0 # asm 1: mov $0,>pp=int64#4 # asm 2: mov $0,>pp=%rcx mov $0,%rcx # qhasm: siftdownloop: ._siftdownloop: # qhasm: prc = pp # asm 1: mov prc=int64#5 # asm 2: mov prc=%r8 mov %rcx,%r8 # qhasm: prc *= 2 # asm 1: imulq $2,prc=int64#5 # asm 2: imulq $2,prc=%r8 imulq $2,%r8,%r8 # qhasm: pc = prc # asm 1: mov pc=int64#6 # asm 2: mov pc=%r9 mov %r8,%r9 # qhasm: prc += 2 # asm 1: add $2,? hlen - prc # asm 1: cmp jbe ._siftuploop # qhasm: sprc = *(uint64 *)(hp + prc * 8) # asm 1: movq (sprc=int64#7 # asm 2: movq (sprc=%rax movq (%rdi,%r8,8),%rax # qhasm: sprc <<= 5 # asm 1: shl $5,spc=int64#8 # asm 2: movq (spc=%r10 movq (%rdi,%r9,8),%r10 # qhasm: spc <<= 5 # asm 1: shl $5,c0=int64#9 # asm 2: movq 0(c0=%r11 movq 0(%r10),%r11 # qhasm: c1 = *(uint64 *)(spc + 8) # asm 1: movq 8(c1=int64#10 # asm 2: movq 8(c1=%r12 movq 8(%r10),%r12 # qhasm: carry? c0 -= *(uint64 *)(sprc + 0) # asm 1: subq 0(>= 5 # asm 1: shr $5,spp=int64#5 # asm 2: movq (spp=%r8 movq (%rdi,%rcx,8),%r8 # qhasm: *(uint64 *)(hp + pp * 8) = spc # asm 1: movq pp=int64#4 # asm 2: mov pp=%rcx mov %r9,%rcx # comment:fp stack unchanged by jump # qhasm: goto siftdownloop jmp ._siftdownloop # qhasm: siftuploop: ._siftuploop: # qhasm: pc = pp # asm 1: mov pc=int64#2 # asm 2: mov pc=%rsi mov %rcx,%rsi # qhasm: pp -= 1 # asm 1: sub $1,>= 1 # asm 1: shr $1,? pc - 0 # asm 1: cmp $0, jbe ._end # qhasm: spp = *(uint64 *)(hp + pp * 8) # asm 1: movq (spp=int64#5 # asm 2: movq (spp=%r8 movq (%rdi,%rcx,8),%r8 # qhasm: spc = *(uint64 *)(hp + pc * 8) # asm 1: movq (spc=int64#6 # asm 2: movq (spc=%r9 movq (%rdi,%rsi,8),%r9 # qhasm: spp <<= 5 # asm 1: shl $5,c0=int64#7 # asm 2: movq 0(c0=%rax movq 0(%r9),%rax # qhasm: c1 = *(uint64 *)(spc + 8) # asm 1: movq 8(c1=int64#8 # asm 2: movq 8(c1=%r10 movq 8(%r9),%r10 # qhasm: carry? c0 -= *(uint64 *)(spp + 0) # asm 1: subq 0(>= 5 # asm 1: shr $5,>= 5 # asm 1: shr $5,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