#include "crypto_asm_hidden.h" // linker define sc25519_add // linker use ORDER0 // linker use ORDER1 // linker use ORDER2 // linker use ORDER3 # 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 t0 # qhasm: int64 t1 # qhasm: int64 t2 # qhasm: int64 t3 # 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 caller4_stack # qhasm: stack64 caller5_stack # qhasm: stack64 caller6_stack # qhasm: stack64 caller7_stack # qhasm: enter CRYPTO_SHARED_NAMESPACE(sc25519_add) .text .p2align 5 ASM_HIDDEN _CRYPTO_SHARED_NAMESPACE(sc25519_add) .globl _CRYPTO_SHARED_NAMESPACE(sc25519_add) ASM_HIDDEN CRYPTO_SHARED_NAMESPACE(sc25519_add) .globl CRYPTO_SHARED_NAMESPACE(sc25519_add) _CRYPTO_SHARED_NAMESPACE(sc25519_add): CRYPTO_SHARED_NAMESPACE(sc25519_add): mov %rsp,%r11 and $31,%r11 add $32,%r11 sub %r11,%rsp # qhasm: caller4_stack = caller4 # asm 1: movq caller4_stack=stack64#1 # asm 2: movq caller4_stack=0(%rsp) movq %r14,0(%rsp) # qhasm: caller5_stack = caller5 # asm 1: movq caller5_stack=stack64#2 # asm 2: movq caller5_stack=8(%rsp) movq %r15,8(%rsp) # qhasm: caller6_stack = caller6 # asm 1: movq caller6_stack=stack64#3 # asm 2: movq caller6_stack=16(%rsp) movq %rbx,16(%rsp) # qhasm: r0 = *(uint64 *)(xp + 0) # asm 1: movq 0(r0=int64#4 # asm 2: movq 0(r0=%rcx movq 0(%rsi),%rcx # qhasm: r1 = *(uint64 *)(xp + 8) # asm 1: movq 8(r1=int64#5 # asm 2: movq 8(r1=%r8 movq 8(%rsi),%r8 # qhasm: r2 = *(uint64 *)(xp + 16) # asm 1: movq 16(r2=int64#6 # asm 2: movq 16(r2=%r9 movq 16(%rsi),%r9 # qhasm: r3 = *(uint64 *)(xp + 24) # asm 1: movq 24(r3=int64#2 # asm 2: movq 24(r3=%rsi movq 24(%rsi),%rsi # qhasm: carry? r0 += *(uint64 *)(yp + 0) # asm 1: addq 0(t0=int64#3 # asm 2: mov t0=%rdx mov %rcx,%rdx # qhasm: t1 = r1 # asm 1: mov t1=int64#7 # asm 2: mov t1=%rax mov %r8,%rax # qhasm: t2 = r2 # asm 1: mov t2=int64#8 # asm 2: mov t2=%r10 mov %r9,%r10 # qhasm: t3 = r3 # asm 1: mov t3=int64#12 # asm 2: mov t3=%r14 mov %rsi,%r14 # qhasm: carry? t0 -= *(uint64 *) &CRYPTO_SHARED_NAMESPACE(ORDER0) # asm 1: sub CRYPTO_SHARED_NAMESPACE(ORDER0),caller4=int64#12 # asm 2: movq caller4=%r14 movq 0(%rsp),%r14 # qhasm: caller5 = caller5_stack # asm 1: movq caller5=int64#13 # asm 2: movq caller5=%r15 movq 8(%rsp),%r15 # qhasm: caller6 = caller6_stack # asm 1: movq caller6=int64#14 # asm 2: movq caller6=%rbx movq 16(%rsp),%rbx # qhasm: leave add %r11,%rsp mov %rdi,%rax mov %rsi,%rdx ret .section .note.GNU-stack,"",@progbits