// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/sw_trace_scan_avx2_256_8.c
// Function: parasail_sw_trace_scan_profile_avx2_256_8
parasail_result_t* PNAME(
        const parasail_profile_t * const restrict profile,
        const char * const restrict s2, const int s2Len,
        const int open, const int gap)
{
    /* declare local variables */
    int32_t i = 0;
    int32_t j = 0;
    int32_t end_query = 0;
    int32_t end_ref = 0;
    int32_t s1Len = 0;
    const parasail_matrix_t *matrix = NULL;
    int32_t segWidth = 0;
    int32_t segLen = 0;
    __m256i* restrict pvP = NULL;
    __m256i* restrict pvE = NULL;
    __m256i* restrict pvHt = NULL;
    __m256i* restrict pvH = NULL;
    __m256i* restrict pvHMax = NULL;
    __m256i* restrict pvGapper = NULL;
    __m256i vGapO;
    __m256i vGapE;
    int8_t NEG_LIMIT = 0;
    int8_t POS_LIMIT = 0;
    __m256i vZero;
    int8_t score = 0;
    __m256i vNegLimit;
    __m256i vPosLimit;
    __m256i vSaturationCheckMin;
    __m256i vSaturationCheckMax;
    __m256i vMaxH;
    __m256i vMaxHUnit;
    __m256i vNegInfFront;
    __m256i vSegLenXgap;
    parasail_result_t *result = NULL;
    __m256i vTZero;
    __m256i vTIns;
    __m256i vTDel;
    __m256i vTDiag;
    __m256i vTDiagE;
    __m256i vTInsE;
    __m256i vTDiagF;
    __m256i vTDelF;

    /* validate inputs */
    PARASAIL_CHECK_NULL(profile);
    PARASAIL_CHECK_NULL(profile->profile8.score);
    PARASAIL_CHECK_NULL(profile->matrix);
    PARASAIL_CHECK_GT0(profile->s1Len);
    PARASAIL_CHECK_NULL(s2);
    PARASAIL_CHECK_GT0(s2Len);
    PARASAIL_CHECK_GE0(open);
    PARASAIL_CHECK_GE0(gap);

    /* initialize stack variables */
    i = 0;
    j = 0;
    end_query = 0;
    end_ref = 0;
    s1Len = profile->s1Len;
    matrix = profile->matrix;
    segWidth = 32; /* number of values in vector unit */
    segLen = (s1Len + segWidth - 1) / segWidth;
    pvP = (__m256i*)profile->profile8.score;
    vGapO = _mm256_set1_epi8(open);
    vGapE = _mm256_set1_epi8(gap);
    NEG_LIMIT = (-open < matrix->min ? INT8_MIN + open : INT8_MIN - matrix->min) + 1;
    POS_LIMIT = INT8_MAX - matrix->max - 1;
    vZero = _mm256_setzero_si256();
    score = NEG_LIMIT;
    vNegLimit = _mm256_set1_epi8(NEG_LIMIT);
    vPosLimit = _mm256_set1_epi8(POS_LIMIT);
    vSaturationCheckMin = vPosLimit;
    vSaturationCheckMax = vNegLimit;
    vMaxH = vNegLimit;
    vMaxHUnit = vNegLimit;
    vNegInfFront = vZero;
    vNegInfFront = _mm256_insert_epi8_rpl(vNegInfFront, NEG_LIMIT, 0);
    vSegLenXgap = _mm256_adds_epi8(vNegInfFront,
            _mm256_slli_si256_rpl(_mm256_set1_epi8(-segLen*gap), 1));
    vTZero = _mm256_set1_epi8(PARASAIL_ZERO);
    vTIns  = _mm256_set1_epi8(PARASAIL_INS);
    vTDel  = _mm256_set1_epi8(PARASAIL_DEL);
    vTDiag = _mm256_set1_epi8(PARASAIL_DIAG);
    vTDiagE = _mm256_set1_epi8(PARASAIL_DIAG_E);
    vTInsE = _mm256_set1_epi8(PARASAIL_INS_E);
    vTDiagF = _mm256_set1_epi8(PARASAIL_DIAG_F);
    vTDelF = _mm256_set1_epi8(PARASAIL_DEL_F);


    /* initialize result */
    result = parasail_result_new_trace(segLen, s2Len, 32, sizeof(__m256i));
    if (!result) return NULL;

    /* set known flags */
    result->flag |= PARASAIL_FLAG_SW | PARASAIL_FLAG_SCAN
        | PARASAIL_FLAG_TRACE
        | PARASAIL_FLAG_BITS_8 | PARASAIL_FLAG_LANES_32;

    /* initialize heap variables */
    pvE    = parasail_memalign___m256i(32, segLen);
    pvHt   = parasail_memalign___m256i(32, segLen);
    pvH    = parasail_memalign___m256i(32, segLen);
    pvHMax = parasail_memalign___m256i(32, segLen);
    pvGapper = parasail_memalign___m256i(32, segLen);

    /* validate heap variables */
    if (!pvE) return NULL;
    if (!pvHt) return NULL;
    if (!pvH) return NULL;
    if (!pvHMax) return NULL;
    if (!pvGapper) return NULL;

    parasail_memset___m256i(pvH, vZero, segLen);
    parasail_memset___m256i(pvE, vNegLimit, segLen);
    {
        __m256i vGapper = _mm256_subs_epi8(vZero,vGapO);
        for (i=segLen-1; i>=0; --i) {
            _mm256_store_si256(pvGapper+i, vGapper);
            vGapper = _mm256_subs_epi8(vGapper, vGapE);
        }
    }

    /* outer loop over database sequence */
    for (j=0; j<s2Len; ++j) {
        __m256i vE;
        __m256i vE_ext;
        __m256i vE_opn;
        __m256i vHt;
        __m256i vF;
        __m256i vF_ext;
        __m256i vF_opn;
        __m256i vH;
        __m256i vHp;
        __m256i *pvW;
        __m256i vW;
        __m256i case1;
        __m256i case2;
        __m256i case0;
        __m256i vGapper;
        __m256i vT;
        __m256i vET;
        __m256i vFT;

        /* calculate E */
        /* calculate Ht */
        /* calculate F and H first pass */
        vHp = _mm256_load_si256(pvH+(segLen-1));
        vHp = _mm256_slli_si256_rpl(vHp, 1);
        pvW = pvP + matrix->mapper[(unsigned char)s2[j]]*segLen;
        vHt = vZero;
        vF = vNegLimit;
        for (i=0; i<segLen; ++i) {
            vH = _mm256_load_si256(pvH+i);
            vE = _mm256_load_si256(pvE+i);
            vW = _mm256_load_si256(pvW+i);
            vGapper = _mm256_load_si256(pvGapper+i);
            vE_opn = _mm256_subs_epi8(vH, vGapO);
            vE_ext = _mm256_subs_epi8(vE, vGapE);
            case1 = _mm256_cmpgt_epi8(vE_opn, vE_ext);
            vET = _mm256_blendv_epi8(vTInsE, vTDiagE, case1);
            arr_store(result->trace->trace_table, vET, i, segLen, j);
            vE = _mm256_max_epi8(vE_opn, vE_ext);
            vGapper = _mm256_adds_epi8(vHt, vGapper);
            vF = _mm256_max_epi8(vF, vGapper);
            vHp = _mm256_adds_epi8(vHp, vW);
            vHt = _mm256_max_epi8(vE, vHp);
            _mm256_store_si256(pvE+i, vE);
            _mm256_store_si256(pvHt+i, vHt);
            _mm256_store_si256(pvH+i, vHp);
            vHp = vH;
        }

        /* pseudo prefix scan on F and H */
        vHt = _mm256_slli_si256_rpl(vHt, 1);
        vGapper = _mm256_load_si256(pvGapper);
        vGapper = _mm256_adds_epi8(vHt, vGapper);
        vF = _mm256_max_epi8(vF, vGapper);
        for (i=0; i<segWidth-2; ++i) {
            __m256i vFt = _mm256_slli_si256_rpl(vF, 1);
            vFt = _mm256_adds_epi8(vFt, vSegLenXgap);
            vF = _mm256_max_epi8(vF, vFt);
        }

        /* calculate final H */
        vF = _mm256_slli_si256_rpl(vF, 1);
        vF = _mm256_adds_epi8(vF, vNegInfFront);
        vH = _mm256_max_epi8(vF, vHt);
        vH = _mm256_max_epi8(vH, vZero);
        for (i=0; i<segLen; ++i) {
            vET = arr_load(result->trace->trace_table, i, segLen, j);
            vHp = _mm256_load_si256(pvH+i);
            vHt = _mm256_load_si256(pvHt+i);
            vF_opn = _mm256_subs_epi8(vH, vGapO);
            vF_ext = _mm256_subs_epi8(vF, vGapE);
            vF = _mm256_max_epi8(vF_opn, vF_ext);
            case1 = _mm256_cmpgt_epi8(vF_opn, vF_ext);
            vFT = _mm256_blendv_epi8(vTDelF, vTDiagF, case1);
            vH = _mm256_max_epi8(vHt, vF);
            vH = _mm256_max_epi8(vH, vZero);
            case0 = _mm256_cmpeq_epi8(vH, vZero);
            case1 = _mm256_cmpeq_epi8(vH, vHp);
            case2 = _mm256_cmpeq_epi8(vH, vF);
            vT = _mm256_blendv_epi8(
                    _mm256_blendv_epi8(vTIns, vTDel, case2),
                    vTDiag, case1);
            vT = _mm256_blendv_epi8(vT, vTZero, case0);
            vT = _mm256_or_si256(vT, vET);
            vT = _mm256_or_si256(vT, vFT);
            arr_store(result->trace->trace_table, vT, i, segLen, j);
            _mm256_store_si256(pvH+i, vH);
            vSaturationCheckMin = _mm256_min_epi8(vSaturationCheckMin, vH);
            vSaturationCheckMax = _mm256_max_epi8(vSaturationCheckMax, vH);
            {
                vMaxH = _mm256_max_epi8(vH, vMaxH);
            }
        } 

        {
            __m256i vCompare = _mm256_cmpgt_epi8(vMaxH, vMaxHUnit);
            if (_mm256_movemask_epi8(vCompare)) {
                score = _mm256_hmax_epi8_rpl(vMaxH);
                vMaxHUnit = _mm256_set1_epi8(score);
                end_ref = j;
                (void)memcpy(pvHMax, pvH, sizeof(__m256i)*segLen);
            }
        }
    }

    /* Trace the alignment ending position on read. */
    {
        int8_t *t = (int8_t*)pvHMax;
        int32_t column_len = segLen * segWidth;
        end_query = s1Len;
        for (i = 0; i<column_len; ++i, ++t) {
            if (*t == score) {
                int32_t temp = i / segWidth + i % segWidth * segLen;
                if (temp < end_query) {
                    end_query = temp;
                }
            }
        }
    }

    if (_mm256_movemask_epi8(_mm256_or_si256(
            _mm256_cmplt_epi8_rpl(vSaturationCheckMin, vNegLimit),
            _mm256_cmpgt_epi8(vSaturationCheckMax, vPosLimit)))) {
        result->flag |= PARASAIL_FLAG_SATURATED;
        score = 0;
        end_query = 0;
        end_ref = 0;
    }

    result->score = score;
    result->end_query = end_query;
    result->end_ref = end_ref;

    parasail_free(pvGapper);
    parasail_free(pvHMax);
    parasail_free(pvH);
    parasail_free(pvHt);
    parasail_free(pvE);

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rsi, 0x30(%rsp)
testq %rdi, %rdi
je 0x54d8ca
movq 0x18(%rdi), %rax
movq %rax, 0x58(%rsp)
testq %rax, %rax
je 0x54d8ee
movq 0x10(%rdi), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x54d912
movl 0x8(%rdi), %r14d
testl %r14d, %r14d
jle 0x54d936
cmpq $0x0, 0x30(%rsp)
je 0x54d95a
movl %edx, %r12d
testl %edx, %edx
jle 0x54d97b
testl %ecx, %ecx
js 0x54d99c
movl %r8d, %r13d
testl %r8d, %r8d
js 0x54d9bd
leaq 0x1f(%r14), %r15
shrq $0x5, %r15
movl %ecx, %eax
negl %eax
movq 0x28(%rsp), %rsi
movl 0x20(%rsi), %edi
movl %edi, %edx
negb %dl
cmpl %eax, %edi
movzbl %dl, %ebp
movl %ecx, 0x80(%rsp)
cmovgl %ecx, %ebp
movb $0x7e, %al
subb 0x1c(%rsi), %al
movl %eax, 0xc0(%rsp)
pushq $0x20
popq %rcx
movl %r15d, %edi
movl %r12d, %esi
movq %rcx, %rdx
callq 0x1abb59
testq %rax, %rax
je 0x54d401
movq %rax, %rbx
movl %r13d, 0x10(%rsp)
movl %r12d, 0xa0(%rsp)
movl %ebp, 0xc(%rsp)
movq %r14, 0x38(%rsp)
orl $0x20180404, 0xc(%rax)  # imm = 0x20180404
pushq $0x20
popq %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x496aa4
movq %rax, %r14
movq %r13, %rdi
movq %r15, %rsi
callq 0x496aa4
movq %rax, %r12
movq %r13, %rdi
movq %r15, %rsi
callq 0x496aa4
movq %rax, %rbp
movq %r13, %rdi
movq %r15, %rsi
callq 0x496aa4
movq %rax, %r13
pushq $0x20
popq %rdi
movq %r15, %rsi
callq 0x496aa4
testq %r14, %r14
sete %dl
testq %r12, %r12
sete %cl
orb %dl, %cl
testq %rbp, %rbp
sete %sil
movq %r13, 0x20(%rsp)
testq %r13, %r13
sete %dl
orb %sil, %dl
orb %cl, %dl
testq %rax, %rax
sete %cl
orb %dl, %cl
je 0x54d408
xorl %ebx, %ebx
jmp 0x54d9e5
vmovd 0x80(%rsp), %xmm0
vpbroadcastb %xmm0, %ymm0
vmovdqu %ymm0, 0x140(%rsp)
movl 0x10(%rsp), %edx
vmovd %edx, %xmm0
vpbroadcastb %xmm0, %ymm0
vmovdqu %ymm0, 0x120(%rsp)
movl 0xc(%rsp), %r13d
addb $-0x7f, %r13b
vmovd %r13d, %xmm0
vpbroadcastb %xmm0, %ymm0
vmovdqu %ymm0, 0x60(%rsp)
vmovd 0xc0(%rsp), %xmm0
vpbroadcastb %xmm0, %ymm0
vmovdqu %ymm0, 0xe0(%rsp)
movzbl %r13b, %ecx
vmovd %ecx, %xmm1
imull %r15d, %edx
negb %dl
vmovd %edx, %xmm0
vpbroadcastb %xmm0, %ymm0
vpand 0x7e53c(%rip), %ymm0, %ymm0 # 0x5cb9c0
vmovdqu %ymm1, 0x160(%rsp)
vpaddsb %ymm0, %ymm1, %ymm0
vmovdqu %ymm0, 0x100(%rsp)
vpxor %xmm0, %xmm0, %xmm0
movq %rbp, %rdi
movq %r15, %rsi
movq %rax, 0x18(%rsp)
callq 0x496aad
movq %r14, %rdi
vmovdqu 0x60(%rsp), %ymm0
movq %r15, %rsi
callq 0x496aad
vmovdqu 0x120(%rsp), %ymm10
vmovdqu 0x140(%rsp), %ymm9
movq 0x18(%rsp), %rdi
vpxor %xmm0, %xmm0, %xmm0
vpsubsb %ymm9, %ymm0, %ymm0
leal -0x1(%r15), %eax
movl %eax, %ecx
movq %r15, %r9
testl %ecx, %ecx
js 0x54d500
movl %ecx, %edx
shlq $0x5, %rdx
vmovdqa %ymm0, (%rdi,%rdx)
vpsubsb %ymm10, %ymm0, %ymm0
decl %ecx
jmp 0x54d4e8
movl %r13d, 0xc(%rsp)
movl %eax, %eax
shlq $0x5, %rax
movq %rbp, %rcx
addq %rax, %rcx
movq %rcx, 0x48(%rsp)
movq %r9, %r15
shlq $0x5, %r15
movl 0xa0(%rsp), %eax
movq %rax, 0x50(%rsp)
xorl %r13d, %r13d
vpxor %xmm14, %xmm14, %xmm14
xorl %r8d, %r8d
vmovdqu 0x60(%rsp), %ymm0
vmovdqu %ymm0, 0x80(%rsp)
vmovdqa %ymm0, %ymm15
vmovdqa %ymm0, %ymm12
vmovdqu 0xe0(%rsp), %ymm13
xorl %eax, %eax
vmovdqu 0x100(%rsp), %ymm11
movq %r9, 0x40(%rsp)
cmpq 0x50(%rsp), %r8
je 0x54d81e
movq 0x48(%rsp), %rcx
vmovdqa (%rcx), %ymm0
vperm2i128 $0x28, %ymm0, %ymm0, %ymm1 # ymm1 = zero,zero,ymm0[0,1]
vpalignr $0xf, %ymm1, %ymm0, %ymm2 # ymm2 = ymm1[15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],ymm1[31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
movq 0x28(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x30(%rsp), %rdx
movzbl (%rdx,%r8), %edx
movl (%rcx,%rdx,4), %ecx
imull %r9d, %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
addq 0x58(%rsp), %rcx
vpxor %xmm1, %xmm1, %xmm1
xorl %edx, %edx
vmovdqu 0x60(%rsp), %ymm0
cmpq %rdx, %r15
je 0x54d631
vpaddsb (%rcx,%rdx), %ymm2, %ymm2
vmovdqa (%rbp,%rdx), %ymm3
vmovdqa (%r14,%rdx), %ymm4
vpsubsb %ymm9, %ymm3, %ymm5
vpbroadcastb 0x802c2(%rip), %ymm6 # 0x5cd89c
vpsubsb %ymm10, %ymm4, %ymm4
vpbroadcastb 0x802b5(%rip), %ymm7 # 0x5cd89d
vpcmpgtb %ymm4, %ymm5, %ymm8
vpblendvb %ymm8, %ymm6, %ymm7, %ymm6
movq 0x10(%rbx), %rsi
movq (%rsi), %rsi
addq %r13, %rsi
vpaddsb (%rdi,%rdx), %ymm1, %ymm7
vmovdqa %ymm6, (%rdx,%rsi)
vpmaxsb %ymm4, %ymm5, %ymm4
vpmaxsb %ymm2, %ymm4, %ymm1
vmovdqa %ymm4, (%r14,%rdx)
vmovdqa %ymm1, (%r12,%rdx)
vpmaxsb %ymm7, %ymm0, %ymm0
vmovdqa %ymm2, (%rbp,%rdx)
addq $0x20, %rdx
vmovdqa %ymm3, %ymm2
jmp 0x54d5b6
vperm2i128 $0x28, %ymm1, %ymm1, %ymm2 # ymm2 = zero,zero,ymm1[0,1]
vpalignr $0xf, %ymm2, %ymm1, %ymm1 # ymm1 = ymm2[15],ymm1[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],ymm2[31],ymm1[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
vpaddsb (%rdi), %ymm1, %ymm2
vpmaxsb %ymm2, %ymm0, %ymm0
pushq $0x1e
popq %rcx
vperm2i128 $0x8, %ymm0, %ymm0, %ymm2 # ymm2 = zero,zero,ymm0[0,1]
vpalignr $0xf, %ymm2, %ymm0, %ymm2 # ymm2 = ymm2[15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],ymm2[31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
subl $0x1, %ecx
jb 0x54d665
vpaddsb %ymm2, %ymm11, %ymm2
vpmaxsb %ymm2, %ymm0, %ymm0
jmp 0x54d649
vpaddsb 0x160(%rsp), %ymm2, %ymm0
vpmaxsb %ymm14, %ymm1, %ymm1
vpmaxsb %ymm1, %ymm0, %ymm1
xorl %ecx, %ecx
cmpq %rcx, %r15
je 0x54d71e
movq 0x10(%rbx), %rdx
vpsubsb %ymm9, %ymm1, %ymm1
vpsubsb %ymm10, %ymm0, %ymm2
vpmaxsb %ymm2, %ymm1, %ymm0
vpbroadcastb 0x801ff(%rip), %ymm3 # 0x5cd89e
vpcmpgtb %ymm2, %ymm1, %ymm1
vpbroadcastb 0x801f3(%rip), %ymm2 # 0x5cd89f
vpblendvb %ymm1, %ymm3, %ymm2, %ymm2
vpmaxsb (%r12,%rcx), %ymm0, %ymm3
movq (%rdx), %rdx
vpmaxsb %ymm14, %ymm3, %ymm1
vpcmpeqb (%rbp,%rcx), %ymm1, %ymm4
vpcmpeqb %ymm0, %ymm1, %ymm5
vpbroadcastb 0x801cd(%rip), %ymm6 # 0x5cd8a0
vpsubb %ymm5, %ymm6, %ymm5
vpbroadcastb 0x801c1(%rip), %ymm6 # 0x5cd8a1
addq %r13, %rdx
vpblendvb %ymm4, %ymm6, %ymm5, %ymm4
vpcmpgtb %ymm14, %ymm3, %ymm3
vpand %ymm4, %ymm3, %ymm3
vpor (%rcx,%rdx), %ymm2, %ymm2
vpor %ymm3, %ymm2, %ymm2
vmovdqa %ymm2, (%rcx,%rdx)
vmovdqa %ymm1, (%rbp,%rcx)
vpminsb %ymm1, %ymm13, %ymm13
vpmaxsb %ymm1, %ymm12, %ymm12
vpmaxsb %ymm15, %ymm1, %ymm15
addq $0x20, %rcx
jmp 0x54d67a
vpcmpgtb 0x80(%rsp), %ymm15, %ymm0
vpmovmskb %ymm0, %ecx
testl %ecx, %ecx
je 0x54d813
vpermq $0x44, %ymm15, %ymm0    # ymm0 = ymm15[0,1,0,1]
vpmaxsb %ymm0, %ymm15, %ymm0
vpslldq $0x8, %ymm0, %ymm1      # ymm1 = zero,zero,zero,zero,zero,zero,zero,zero,ymm0[0,1,2,3,4,5,6,7],zero,zero,zero,zero,zero,zero,zero,zero,ymm0[16,17,18,19,20,21,22,23]
vpmaxsb %ymm1, %ymm0, %ymm0
vpslldq $0x4, %ymm0, %ymm1      # ymm1 = zero,zero,zero,zero,ymm0[0,1,2,3,4,5,6,7,8,9,10,11],zero,zero,zero,zero,ymm0[16,17,18,19,20,21,22,23,24,25,26,27]
vpmaxsb %ymm1, %ymm0, %ymm0
vpslldq $0x2, %ymm0, %ymm1      # ymm1 = zero,zero,ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13],zero,zero,ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vpmaxsb %ymm1, %ymm0, %ymm0
vpslldq $0x1, %ymm0, %ymm1      # ymm1 = zero,ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],zero,ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
vpmaxsb %ymm1, %ymm0, %ymm0
vextracti128 $0x1, %ymm0, %xmm1
vpbroadcastb 0x8012d(%rip), %ymm2 # 0x5cd8a2
vpextrb $0xf, %xmm1, %eax
movl %eax, 0xc(%rsp)
vpshufb %ymm2, %ymm0, %ymm0
vpermq $0xaa, %ymm0, %ymm0     # ymm0 = ymm0[2,2,2,2]
vmovdqu %ymm0, 0x80(%rsp)
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
movq %r15, %rdx
vmovdqu %ymm12, 0xc0(%rsp)
vmovdqu %ymm13, 0xa0(%rsp)
movq %r8, 0x10(%rsp)
vmovdqu %ymm15, 0x180(%rsp)
vzeroupper
callq 0x19e0c0
vmovdqu 0x180(%rsp), %ymm15
movq 0x10(%rsp), %r8
vpxor %xmm14, %xmm14, %xmm14
vmovdqu 0xa0(%rsp), %ymm13
vmovdqu 0xc0(%rsp), %ymm12
vmovdqu 0x100(%rsp), %ymm11
vmovdqu 0x120(%rsp), %ymm10
vmovdqu 0x140(%rsp), %ymm9
movq 0x18(%rsp), %rdi
movq 0x40(%rsp), %r9
movl %r8d, %eax
incq %r8
addq %r15, %r13
jmp 0x54d564
movl %r9d, %ecx
andl $0x3ffffff, %ecx        # imm = 0x3FFFFFF
shll $0x5, %ecx
xorl %edx, %edx
movq 0x38(%rsp), %r8
movl 0xc(%rsp), %r10d
movq 0x20(%rsp), %r15
cmpl %edx, %ecx
je 0x54d864
cmpb %r10b, (%r15,%rdx)
jne 0x54d85f
movl %edx, %esi
shrl $0x5, %esi
movl %edx, %r11d
andl $0x1f, %r11d
imull %r9d, %r11d
addl %esi, %r11d
cmpl %r8d, %r11d
cmovll %r11d, %r8d
incq %rdx
jmp 0x54d83b
vmovdqu 0x60(%rsp), %ymm0
vpcmpgtb %ymm13, %ymm0, %ymm0
vpcmpgtb 0xe0(%rsp), %ymm12, %ymm1
vpor %ymm1, %ymm0, %ymm0
vpmovmskb %ymm0, %ecx
testl %ecx, %ecx
je 0x54d890
orb $0x40, 0xc(%rbx)
xorl %r10d, %r10d
xorl %eax, %eax
xorl %r8d, %r8d
movsbl %r10b, %ecx
movl %ecx, (%rbx)
movl %r8d, 0x4(%rbx)
movl %eax, 0x8(%rbx)
vzeroupper
callq 0x1ab763
movq %r15, %rdi
callq 0x1ab763
movq %rbp, %rdi
callq 0x1ab763
movq %r12, %rdi
callq 0x1ab763
movq %r14, %rdi
callq 0x1ab763
jmp 0x54d9e5
movq 0x1ed707(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x79710(%rip), %rsi     # 0x5c6feb
leaq 0x74a07(%rip), %rdx     # 0x5c22e9
leaq 0x4fbf4(%rip), %rcx     # 0x59d4dd
jmp 0x54d9dc
movq 0x1ed6e3(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x796ec(%rip), %rsi     # 0x5c6feb
leaq 0x749e3(%rip), %rdx     # 0x5c22e9
leaq 0x7a1a3(%rip), %rcx     # 0x5c7ab0
jmp 0x54d9dc
movq 0x1ed6bf(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x796c8(%rip), %rsi     # 0x5c6feb
leaq 0x749bf(%rip), %rdx     # 0x5c22e9
leaq 0x7a008(%rip), %rcx     # 0x5c7939
jmp 0x54d9dc
movq 0x1ed69b(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x79dba(%rip), %rsi     # 0x5c7701
leaq 0x7499b(%rip), %rdx     # 0x5c22e9
leaq 0x79ff4(%rip), %rcx     # 0x5c7949
jmp 0x54d9dc
movq 0x1ed677(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x79680(%rip), %rsi     # 0x5c6feb
leaq 0x74977(%rip), %rdx     # 0x5c22e9
leaq 0x79d85(%rip), %rcx     # 0x5c76fe
jmp 0x54d9dc
movq 0x1ed656(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x79d75(%rip), %rsi     # 0x5c7701
leaq 0x74956(%rip), %rdx     # 0x5c22e9
leaq 0x79d7b(%rip), %rcx     # 0x5c7715
jmp 0x54d9dc
movq 0x1ed635(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x79d6e(%rip), %rsi     # 0x5c771b
leaq 0x74935(%rip), %rdx     # 0x5c22e9
leaq 0x79d75(%rip), %rcx     # 0x5c7730
jmp 0x54d9dc
movq 0x1ed614(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x79d4d(%rip), %rsi     # 0x5c771b
leaq 0x74914(%rip), %rdx     # 0x5c22e9
leaq 0x79d59(%rip), %rcx     # 0x5c7735
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x19e180
movq %rbx, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop