#include "namespace.h" #define syndrome_asm CRYPTO_NAMESPACE(syndrome_asm) #define _syndrome_asm _CRYPTO_NAMESPACE(syndrome_asm) # qhasm: int64 input_0 # qhasm: int64 input_1 # qhasm: int64 input_2 # qhasm: int64 input_3 # qhasm: int64 input_4 # qhasm: int64 input_5 # qhasm: stack64 input_6 # qhasm: stack64 input_7 # qhasm: int64 caller_r11 # qhasm: int64 caller_r12 # qhasm: int64 caller_r13 # qhasm: int64 caller_r14 # qhasm: int64 caller_r15 # qhasm: int64 caller_rbx # qhasm: int64 caller_rbp # qhasm: int64 b64 # qhasm: int64 synd # qhasm: int64 addr # qhasm: int64 c # qhasm: int64 c_all # qhasm: int64 row # qhasm: int64 p # qhasm: int64 e # qhasm: int64 s # qhasm: reg256 pp # qhasm: reg256 ee # qhasm: reg256 ss # qhasm: int64 buf_ptr # qhasm: stack256 buf # qhasm: enter syndrome_asm .p2align 5 .global _syndrome_asm .global syndrome_asm _syndrome_asm: syndrome_asm: mov % rsp, % r11 and $31, % r11 add $32, % r11 sub % r11, % rsp # qhasm: input_1 += 523740 # asm 1: add $523740,buf_ptr=int64#4 # asm 2: leaq buf_ptr=%rcx leaq 0( % rsp), % rcx # qhasm: row = 1248 # asm 1: mov $1248,>row=int64#5 # asm 2: mov $1248,>row=%r8 mov $1248, % r8 # qhasm: loop: ._loop: # qhasm: row -= 1 # asm 1: sub $1,ss=reg256#1 # asm 2: vmovupd 0(ss=%ymm0 vmovupd 0( % rsi), % ymm0 # qhasm: ee = mem256[ input_2 + 156 ] # asm 1: vmovupd 156(ee=reg256#2 # asm 2: vmovupd 156(ee=%ymm1 vmovupd 156( % rdx), % ymm1 # qhasm: ss &= ee # asm 1: vpand pp=reg256#2 # asm 2: vmovupd 32(pp=%ymm1 vmovupd 32( % rsi), % ymm1 # qhasm: ee = mem256[ input_2 + 188 ] # asm 1: vmovupd 188(ee=reg256#3 # asm 2: vmovupd 188(ee=%ymm2 vmovupd 188( % rdx), % ymm2 # qhasm: pp &= ee # asm 1: vpand pp=reg256#2 # asm 2: vmovupd 64(pp=%ymm1 vmovupd 64( % rsi), % ymm1 # qhasm: ee = mem256[ input_2 + 220 ] # asm 1: vmovupd 220(ee=reg256#3 # asm 2: vmovupd 220(ee=%ymm2 vmovupd 220( % rdx), % ymm2 # qhasm: pp &= ee # asm 1: vpand pp=reg256#2 # asm 2: vmovupd 96(pp=%ymm1 vmovupd 96( % rsi), % ymm1 # qhasm: ee = mem256[ input_2 + 252 ] # asm 1: vmovupd 252(ee=reg256#3 # asm 2: vmovupd 252(ee=%ymm2 vmovupd 252( % rdx), % ymm2 # qhasm: pp &= ee # asm 1: vpand pp=reg256#2 # asm 2: vmovupd 128(pp=%ymm1 vmovupd 128( % rsi), % ymm1 # qhasm: ee = mem256[ input_2 + 284 ] # asm 1: vmovupd 284(ee=reg256#3 # asm 2: vmovupd 284(ee=%ymm2 vmovupd 284( % rdx), % ymm2 # qhasm: pp &= ee # asm 1: vpand pp=reg256#2 # asm 2: vmovupd 160(pp=%ymm1 vmovupd 160( % rsi), % ymm1 # qhasm: ee = mem256[ input_2 + 316 ] # asm 1: vmovupd 316(ee=reg256#3 # asm 2: vmovupd 316(ee=%ymm2 vmovupd 316( % rdx), % ymm2 # qhasm: pp &= ee # asm 1: vpand pp=reg256#2 # asm 2: vmovupd 192(pp=%ymm1 vmovupd 192( % rsi), % ymm1 # qhasm: ee = mem256[ input_2 + 348 ] # asm 1: vmovupd 348(ee=reg256#3 # asm 2: vmovupd 348(ee=%ymm2 vmovupd 348( % rdx), % ymm2 # qhasm: pp &= ee # asm 1: vpand pp=reg256#2 # asm 2: vmovupd 224(pp=%ymm1 vmovupd 224( % rsi), % ymm1 # qhasm: ee = mem256[ input_2 + 380 ] # asm 1: vmovupd 380(ee=reg256#3 # asm 2: vmovupd 380(ee=%ymm2 vmovupd 380( % rdx), % ymm2 # qhasm: pp &= ee # asm 1: vpand pp=reg256#2 # asm 2: vmovupd 256(pp=%ymm1 vmovupd 256( % rsi), % ymm1 # qhasm: ee = mem256[ input_2 + 412 ] # asm 1: vmovupd 412(ee=reg256#3 # asm 2: vmovupd 412(ee=%ymm2 vmovupd 412( % rdx), % ymm2 # qhasm: pp &= ee # asm 1: vpand pp=reg256#2 # asm 2: vmovupd 288(pp=%ymm1 vmovupd 288( % rsi), % ymm1 # qhasm: ee = mem256[ input_2 + 444 ] # asm 1: vmovupd 444(ee=reg256#3 # asm 2: vmovupd 444(ee=%ymm2 vmovupd 444( % rdx), % ymm2 # qhasm: pp &= ee # asm 1: vpand pp=reg256#2 # asm 2: vmovupd 320(pp=%ymm1 vmovupd 320( % rsi), % ymm1 # qhasm: ee = mem256[ input_2 + 476 ] # asm 1: vmovupd 476(ee=reg256#3 # asm 2: vmovupd 476(ee=%ymm2 vmovupd 476( % rdx), % ymm2 # qhasm: pp &= ee # asm 1: vpand pp=reg256#2 # asm 2: vmovupd 352(pp=%ymm1 vmovupd 352( % rsi), % ymm1 # qhasm: ee = mem256[ input_2 + 508 ] # asm 1: vmovupd 508(ee=reg256#3 # asm 2: vmovupd 508(ee=%ymm2 vmovupd 508( % rdx), % ymm2 # qhasm: pp &= ee # asm 1: vpand pp=reg256#2 # asm 2: vmovupd 384(pp=%ymm1 vmovupd 384( % rsi), % ymm1 # qhasm: ee = mem256[ input_2 + 540 ] # asm 1: vmovupd 540(ee=reg256#3 # asm 2: vmovupd 540(ee=%ymm2 vmovupd 540( % rdx), % ymm2 # qhasm: pp &= ee # asm 1: vpand buf=stack256#1 # asm 2: vmovapd buf=0(%rsp) vmovapd % ymm0, 0( % rsp) # qhasm: s = *(uint32 *)(input_1 + 416) # asm 1: movl 416(s=int64#6d # asm 2: movl 416(s=%r9d movl 416( % rsi), % r9d # qhasm: e = *(uint32 *)(input_2 + 572) # asm 1: movl 572(e=int64#7d # asm 2: movl 572(e=%eax movl 572( % rdx), % eax # qhasm: s &= e # asm 1: and c_all=int64#6 # asm 2: popcnt c_all=%r9 popcnt % r9, % r9 # qhasm: b64 = mem64[ buf_ptr + 0 ] # asm 1: movq 0(b64=int64#7 # asm 2: movq 0(b64=%rax movq 0( % rcx), % rax # qhasm: c = count(b64) # asm 1: popcnt c=int64#7 # asm 2: popcnt c=%rax popcnt % rax, % rax # qhasm: c_all ^= c # asm 1: xor b64=int64#7 # asm 2: movq 8(b64=%rax movq 8( % rcx), % rax # qhasm: c = count(b64) # asm 1: popcnt c=int64#7 # asm 2: popcnt c=%rax popcnt % rax, % rax # qhasm: c_all ^= c # asm 1: xor b64=int64#7 # asm 2: movq 16(b64=%rax movq 16( % rcx), % rax # qhasm: c = count(b64) # asm 1: popcnt c=int64#7 # asm 2: popcnt c=%rax popcnt % rax, % rax # qhasm: c_all ^= c # asm 1: xor b64=int64#7 # asm 2: movq 24(b64=%rax movq 24( % rcx), % rax # qhasm: c = count(b64) # asm 1: popcnt c=int64#7 # asm 2: popcnt c=%rax popcnt % rax, % rax # qhasm: c_all ^= c # asm 1: xor addr=int64#7 # asm 2: mov addr=%rax mov % r8, % rax # qhasm: (uint64) addr >>= 3 # asm 1: shr $3,synd=int64#8 # asm 2: movzbq 0(synd=%r10 movzbq 0( % rax), % r10 # qhasm: synd <<= 1 # asm 1: shl $1,ss=reg256#1 # asm 2: vmovupd 0(ss=%ymm0 vmovupd 0( % rdi), % ymm0 # qhasm: ee = mem256[ input_2 + 0 ] # asm 1: vmovupd 0(ee=reg256#2 # asm 2: vmovupd 0(ee=%ymm1 vmovupd 0( % rdx), % ymm1 # qhasm: ss ^= ee # asm 1: vpxor ss=reg256#1 # asm 2: vmovupd 32(ss=%ymm0 vmovupd 32( % rdi), % ymm0 # qhasm: ee = mem256[ input_2 + 32 ] # asm 1: vmovupd 32(ee=reg256#2 # asm 2: vmovupd 32(ee=%ymm1 vmovupd 32( % rdx), % ymm1 # qhasm: ss ^= ee # asm 1: vpxor ss=reg256#1 # asm 2: vmovupd 64(ss=%ymm0 vmovupd 64( % rdi), % ymm0 # qhasm: ee = mem256[ input_2 + 64 ] # asm 1: vmovupd 64(ee=reg256#2 # asm 2: vmovupd 64(ee=%ymm1 vmovupd 64( % rdx), % ymm1 # qhasm: ss ^= ee # asm 1: vpxor ss=reg256#1 # asm 2: vmovupd 96(ss=%ymm0 vmovupd 96( % rdi), % ymm0 # qhasm: ee = mem256[ input_2 + 96 ] # asm 1: vmovupd 96(ee=reg256#2 # asm 2: vmovupd 96(ee=%ymm1 vmovupd 96( % rdx), % ymm1 # qhasm: ss ^= ee # asm 1: vpxor s=int64#2 # asm 2: movq 128(s=%rsi movq 128( % rdi), % rsi # qhasm: e = mem64[ input_2 + 128 ] # asm 1: movq 128(e=int64#4 # asm 2: movq 128(e=%rcx movq 128( % rdx), % rcx # qhasm: s ^= e # asm 1: xor s=int64#2 # asm 2: movq 136(s=%rsi movq 136( % rdi), % rsi # qhasm: e = mem64[ input_2 + 136 ] # asm 1: movq 136(e=int64#4 # asm 2: movq 136(e=%rcx movq 136( % rdx), % rcx # qhasm: s ^= e # asm 1: xor s=int64#2 # asm 2: movq 144(s=%rsi movq 144( % rdi), % rsi # qhasm: e = mem64[ input_2 + 144 ] # asm 1: movq 144(e=int64#4 # asm 2: movq 144(e=%rcx movq 144( % rdx), % rcx # qhasm: s ^= e # asm 1: xor s=int64#2d # asm 2: movl 152(s=%esi movl 152( % rdi), % esi # qhasm: e = *(uint32 *)( input_2 + 152 ) # asm 1: movl 152(e=int64#3d # asm 2: movl 152(e=%edx movl 152( % rdx), % edx # qhasm: s ^= e # asm 1: xor