// linker define choose_t # qhasm: int64 tp # qhasm: int64 pos # qhasm: int64 b # qhasm: int64 basep # qhasm: input tp # qhasm: input pos # qhasm: input b # qhasm: input basep # qhasm: int64 mask # qhasm: int64 u # qhasm: int64 tysubx0 # qhasm: int64 tysubx1 # qhasm: int64 tysubx2 # qhasm: int64 tysubx3 # qhasm: int64 txaddy0 # qhasm: int64 txaddy1 # qhasm: int64 txaddy2 # qhasm: int64 txaddy3 # qhasm: int64 tt2d0 # qhasm: int64 tt2d1 # qhasm: int64 tt2d2 # qhasm: int64 tt2d3 # qhasm: int64 tt0 # qhasm: int64 tt1 # qhasm: int64 tt2 # qhasm: int64 tt3 # qhasm: int64 subt0 # qhasm: int64 subt1 # qhasm: int64 t # qhasm: stack64 tp_stack # 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_SHARED_NAMESPACE(choose_t) .text .p2align 5 .globl _CRYPTO_SHARED_NAMESPACE(choose_t) .globl CRYPTO_SHARED_NAMESPACE(choose_t) _CRYPTO_SHARED_NAMESPACE(choose_t): CRYPTO_SHARED_NAMESPACE(choose_t): 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: tp_stack = tp # asm 1: movq tp_stack=stack64#8 # asm 2: movq tp_stack=56(%rsp) movq %rdi,56(%rsp) # qhasm: pos *= 768 # asm 1: imulq $768,pos=int64#1 # asm 2: imulq $768,pos=%rdi imulq $768,%rsi,%rdi # qhasm: mask = b # asm 1: mov mask=int64#2 # asm 2: mov mask=%rsi mov %rdx,%rsi # qhasm: (int64) mask >>= 7 # asm 1: sar $7,u=int64#5 # asm 2: mov u=%r8 mov %rdx,%r8 # qhasm: u += mask # asm 1: add tysubx0=int64#2 # asm 2: mov $1,>tysubx0=%rsi mov $1,%rsi # qhasm: tysubx1 = 0 # asm 1: mov $0,>tysubx1=int64#6 # asm 2: mov $0,>tysubx1=%r9 mov $0,%r9 # qhasm: tysubx2 = 0 # asm 1: mov $0,>tysubx2=int64#7 # asm 2: mov $0,>tysubx2=%rax mov $0,%rax # qhasm: tysubx3 = 0 # asm 1: mov $0,>tysubx3=int64#8 # asm 2: mov $0,>tysubx3=%r10 mov $0,%r10 # qhasm: txaddy0 = 1 # asm 1: mov $1,>txaddy0=int64#9 # asm 2: mov $1,>txaddy0=%r11 mov $1,%r11 # qhasm: txaddy1 = 0 # asm 1: mov $0,>txaddy1=int64#10 # asm 2: mov $0,>txaddy1=%r12 mov $0,%r12 # qhasm: txaddy2 = 0 # asm 1: mov $0,>txaddy2=int64#11 # asm 2: mov $0,>txaddy2=%r13 mov $0,%r13 # qhasm: txaddy3 = 0 # asm 1: mov $0,>txaddy3=int64#12 # asm 2: mov $0,>txaddy3=%r14 mov $0,%r14 # qhasm: =? u - 1 # asm 1: cmp $1,t=int64#13 # asm 2: movq 0(t=%r15 movq 0(%rcx,%rdi),%r15 # qhasm: tysubx0 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 8(t=%r15 movq 8(%rcx,%rdi),%r15 # qhasm: tysubx1 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 16(t=%r15 movq 16(%rcx,%rdi),%r15 # qhasm: tysubx2 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 24(t=%r15 movq 24(%rcx,%rdi),%r15 # qhasm: tysubx3 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 32(t=%r15 movq 32(%rcx,%rdi),%r15 # qhasm: txaddy0 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 40(t=%r15 movq 40(%rcx,%rdi),%r15 # qhasm: txaddy1 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 48(t=%r15 movq 48(%rcx,%rdi),%r15 # qhasm: txaddy2 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 56(t=%r15 movq 56(%rcx,%rdi),%r15 # qhasm: txaddy3 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 96(t=%r15 movq 96(%rcx,%rdi),%r15 # qhasm: tysubx0 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 104(t=%r15 movq 104(%rcx,%rdi),%r15 # qhasm: tysubx1 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 112(t=%r15 movq 112(%rcx,%rdi),%r15 # qhasm: tysubx2 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 120(t=%r15 movq 120(%rcx,%rdi),%r15 # qhasm: tysubx3 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 128(t=%r15 movq 128(%rcx,%rdi),%r15 # qhasm: txaddy0 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 136(t=%r15 movq 136(%rcx,%rdi),%r15 # qhasm: txaddy1 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 144(t=%r15 movq 144(%rcx,%rdi),%r15 # qhasm: txaddy2 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 152(t=%r15 movq 152(%rcx,%rdi),%r15 # qhasm: txaddy3 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 192(t=%r15 movq 192(%rcx,%rdi),%r15 # qhasm: tysubx0 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 200(t=%r15 movq 200(%rcx,%rdi),%r15 # qhasm: tysubx1 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 208(t=%r15 movq 208(%rcx,%rdi),%r15 # qhasm: tysubx2 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 216(t=%r15 movq 216(%rcx,%rdi),%r15 # qhasm: tysubx3 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 224(t=%r15 movq 224(%rcx,%rdi),%r15 # qhasm: txaddy0 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 232(t=%r15 movq 232(%rcx,%rdi),%r15 # qhasm: txaddy1 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 240(t=%r15 movq 240(%rcx,%rdi),%r15 # qhasm: txaddy2 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 248(t=%r15 movq 248(%rcx,%rdi),%r15 # qhasm: txaddy3 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 288(t=%r15 movq 288(%rcx,%rdi),%r15 # qhasm: tysubx0 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 296(t=%r15 movq 296(%rcx,%rdi),%r15 # qhasm: tysubx1 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 304(t=%r15 movq 304(%rcx,%rdi),%r15 # qhasm: tysubx2 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 312(t=%r15 movq 312(%rcx,%rdi),%r15 # qhasm: tysubx3 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 320(t=%r15 movq 320(%rcx,%rdi),%r15 # qhasm: txaddy0 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 328(t=%r15 movq 328(%rcx,%rdi),%r15 # qhasm: txaddy1 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 336(t=%r15 movq 336(%rcx,%rdi),%r15 # qhasm: txaddy2 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 344(t=%r15 movq 344(%rcx,%rdi),%r15 # qhasm: txaddy3 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 384(t=%r15 movq 384(%rcx,%rdi),%r15 # qhasm: tysubx0 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 392(t=%r15 movq 392(%rcx,%rdi),%r15 # qhasm: tysubx1 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 400(t=%r15 movq 400(%rcx,%rdi),%r15 # qhasm: tysubx2 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 408(t=%r15 movq 408(%rcx,%rdi),%r15 # qhasm: tysubx3 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 416(t=%r15 movq 416(%rcx,%rdi),%r15 # qhasm: txaddy0 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 424(t=%r15 movq 424(%rcx,%rdi),%r15 # qhasm: txaddy1 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 432(t=%r15 movq 432(%rcx,%rdi),%r15 # qhasm: txaddy2 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 440(t=%r15 movq 440(%rcx,%rdi),%r15 # qhasm: txaddy3 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 480(t=%r15 movq 480(%rcx,%rdi),%r15 # qhasm: tysubx0 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 488(t=%r15 movq 488(%rcx,%rdi),%r15 # qhasm: tysubx1 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 496(t=%r15 movq 496(%rcx,%rdi),%r15 # qhasm: tysubx2 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 504(t=%r15 movq 504(%rcx,%rdi),%r15 # qhasm: tysubx3 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 512(t=%r15 movq 512(%rcx,%rdi),%r15 # qhasm: txaddy0 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 520(t=%r15 movq 520(%rcx,%rdi),%r15 # qhasm: txaddy1 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 528(t=%r15 movq 528(%rcx,%rdi),%r15 # qhasm: txaddy2 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 536(t=%r15 movq 536(%rcx,%rdi),%r15 # qhasm: txaddy3 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 576(t=%r15 movq 576(%rcx,%rdi),%r15 # qhasm: tysubx0 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 584(t=%r15 movq 584(%rcx,%rdi),%r15 # qhasm: tysubx1 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 592(t=%r15 movq 592(%rcx,%rdi),%r15 # qhasm: tysubx2 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 600(t=%r15 movq 600(%rcx,%rdi),%r15 # qhasm: tysubx3 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 608(t=%r15 movq 608(%rcx,%rdi),%r15 # qhasm: txaddy0 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 616(t=%r15 movq 616(%rcx,%rdi),%r15 # qhasm: txaddy1 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 624(t=%r15 movq 624(%rcx,%rdi),%r15 # qhasm: txaddy2 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 632(t=%r15 movq 632(%rcx,%rdi),%r15 # qhasm: txaddy3 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 672(t=%r15 movq 672(%rcx,%rdi),%r15 # qhasm: tysubx0 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 680(t=%r15 movq 680(%rcx,%rdi),%r15 # qhasm: tysubx1 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 688(t=%r15 movq 688(%rcx,%rdi),%r15 # qhasm: tysubx2 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 696(t=%r15 movq 696(%rcx,%rdi),%r15 # qhasm: tysubx3 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 704(t=%r15 movq 704(%rcx,%rdi),%r15 # qhasm: txaddy0 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 712(t=%r15 movq 712(%rcx,%rdi),%r15 # qhasm: txaddy1 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 720(t=%r15 movq 720(%rcx,%rdi),%r15 # qhasm: txaddy2 = t if = # asm 1: cmove t=int64#13 # asm 2: movq 728(t=%r15 movq 728(%rcx,%rdi),%r15 # qhasm: txaddy3 = t if = # asm 1: cmove t=int64#13 # asm 2: mov t=%r15 mov %rsi,%r15 # qhasm: tysubx0 = txaddy0 if signed< # asm 1: cmovl t=int64#13 # asm 2: mov t=%r15 mov %r9,%r15 # qhasm: tysubx1 = txaddy1 if signed< # asm 1: cmovl t=int64#13 # asm 2: mov t=%r15 mov %rax,%r15 # qhasm: tysubx2 = txaddy2 if signed< # asm 1: cmovl t=int64#13 # asm 2: mov t=%r15 mov %r10,%r15 # qhasm: tysubx3 = txaddy3 if signed< # asm 1: cmovl tp=int64#13 # asm 2: movq tp=%r15 movq 56(%rsp),%r15 # qhasm: *(uint64 *)(tp + 0) = tysubx0 # asm 1: movq tt2d0=int64#2 # asm 2: mov $0,>tt2d0=%rsi mov $0,%rsi # qhasm: tt2d1 = 0 # asm 1: mov $0,>tt2d1=int64#6 # asm 2: mov $0,>tt2d1=%r9 mov $0,%r9 # qhasm: tt2d2 = 0 # asm 1: mov $0,>tt2d2=int64#7 # asm 2: mov $0,>tt2d2=%rax mov $0,%rax # qhasm: tt2d3 = 0 # asm 1: mov $0,>tt2d3=int64#8 # asm 2: mov $0,>tt2d3=%r10 mov $0,%r10 # qhasm: =? u - 1 # asm 1: cmp $1,t=int64#9 # asm 2: movq 64(t=%r11 movq 64(%rcx,%rdi),%r11 # qhasm: tt2d0 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 72(t=%r11 movq 72(%rcx,%rdi),%r11 # qhasm: tt2d1 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 80(t=%r11 movq 80(%rcx,%rdi),%r11 # qhasm: tt2d2 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 88(t=%r11 movq 88(%rcx,%rdi),%r11 # qhasm: tt2d3 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 160(t=%r11 movq 160(%rcx,%rdi),%r11 # qhasm: tt2d0 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 168(t=%r11 movq 168(%rcx,%rdi),%r11 # qhasm: tt2d1 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 176(t=%r11 movq 176(%rcx,%rdi),%r11 # qhasm: tt2d2 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 184(t=%r11 movq 184(%rcx,%rdi),%r11 # qhasm: tt2d3 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 256(t=%r11 movq 256(%rcx,%rdi),%r11 # qhasm: tt2d0 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 264(t=%r11 movq 264(%rcx,%rdi),%r11 # qhasm: tt2d1 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 272(t=%r11 movq 272(%rcx,%rdi),%r11 # qhasm: tt2d2 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 280(t=%r11 movq 280(%rcx,%rdi),%r11 # qhasm: tt2d3 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 352(t=%r11 movq 352(%rcx,%rdi),%r11 # qhasm: tt2d0 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 360(t=%r11 movq 360(%rcx,%rdi),%r11 # qhasm: tt2d1 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 368(t=%r11 movq 368(%rcx,%rdi),%r11 # qhasm: tt2d2 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 376(t=%r11 movq 376(%rcx,%rdi),%r11 # qhasm: tt2d3 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 448(t=%r11 movq 448(%rcx,%rdi),%r11 # qhasm: tt2d0 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 456(t=%r11 movq 456(%rcx,%rdi),%r11 # qhasm: tt2d1 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 464(t=%r11 movq 464(%rcx,%rdi),%r11 # qhasm: tt2d2 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 472(t=%r11 movq 472(%rcx,%rdi),%r11 # qhasm: tt2d3 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 544(t=%r11 movq 544(%rcx,%rdi),%r11 # qhasm: tt2d0 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 552(t=%r11 movq 552(%rcx,%rdi),%r11 # qhasm: tt2d1 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 560(t=%r11 movq 560(%rcx,%rdi),%r11 # qhasm: tt2d2 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 568(t=%r11 movq 568(%rcx,%rdi),%r11 # qhasm: tt2d3 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 640(t=%r11 movq 640(%rcx,%rdi),%r11 # qhasm: tt2d0 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 648(t=%r11 movq 648(%rcx,%rdi),%r11 # qhasm: tt2d1 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 656(t=%r11 movq 656(%rcx,%rdi),%r11 # qhasm: tt2d2 = t if = # asm 1: cmove t=int64#9 # asm 2: movq 664(t=%r11 movq 664(%rcx,%rdi),%r11 # qhasm: tt2d3 = t if = # asm 1: cmove t=int64#5 # asm 2: movq 736(t=%r8 movq 736(%rcx,%rdi),%r8 # qhasm: tt2d0 = t if = # asm 1: cmove t=int64#5 # asm 2: movq 744(t=%r8 movq 744(%rcx,%rdi),%r8 # qhasm: tt2d1 = t if = # asm 1: cmove t=int64#5 # asm 2: movq 752(t=%r8 movq 752(%rcx,%rdi),%r8 # qhasm: tt2d2 = t if = # asm 1: cmove t=int64#1 # asm 2: movq 760(t=%rdi movq 760(%rcx,%rdi),%rdi # qhasm: tt2d3 = t if = # asm 1: cmove tt0=int64#1 # asm 2: mov $0,>tt0=%rdi mov $0,%rdi # qhasm: tt1 = 0 # asm 1: mov $0,>tt1=int64#4 # asm 2: mov $0,>tt1=%rcx mov $0,%rcx # qhasm: tt2 = 0 # asm 1: mov $0,>tt2=int64#5 # asm 2: mov $0,>tt2=%r8 mov $0,%r8 # qhasm: tt3 = 0 # asm 1: mov $0,>tt3=int64#9 # asm 2: mov $0,>tt3=%r11 mov $0,%r11 # qhasm: carry? tt0 -= tt2d0 # asm 1: sub subt0=int64#10 # asm 2: mov $0,>subt0=%r12 mov $0,%r12 # qhasm: subt1 = 38 # asm 1: mov $38,>subt1=int64#11 # asm 2: mov $38,>subt1=%r13 mov $38,%r13 # qhasm: subt1 = subt0 if !carry # asm 1: cmovae 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