// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/sw_trace_diag_avx2_256_16.c
// Function: parasail_sw_trace_diag_avx2_256_16
parasail_result_t* FNAME(
        const char * const restrict _s1, const int _s1Len,
        const char * const restrict _s2, const int s2Len,
        const int open, const int gap, const parasail_matrix_t *matrix)
{
    /* declare local variables */
    int32_t N = 0;
    int32_t PAD = 0;
    int32_t PAD2 = 0;
    int32_t s1Len_PAD = 0;
    int32_t s2Len_PAD = 0;
    int16_t * restrict s1 = NULL;
    int16_t * restrict s2B = NULL;
    int16_t * restrict _H_pr = NULL;
    int16_t * restrict _F_pr = NULL;
    int16_t * restrict s2 = NULL;
    int16_t * restrict H_pr = NULL;
    int16_t * restrict F_pr = NULL;
    parasail_result_t *result = NULL;
    int32_t i = 0;
    int32_t j = 0;
    int32_t s1Len = 0;
    int32_t end_query = 0;
    int32_t end_ref = 0;
    int16_t NEG_LIMIT = 0;
    int16_t POS_LIMIT = 0;
    int16_t score = 0;
    __m256i vNegLimit;
    __m256i vPosLimit;
    __m256i vSaturationCheckMin;
    __m256i vSaturationCheckMax;
    __m256i vNegInf;
    __m256i vNegInf0;
    __m256i vOpen;
    __m256i vGap;
    __m256i vZero;
    __m256i vOne;
    __m256i vN;
    __m256i vNegOne;
    __m256i vI;
    __m256i vJreset;
    __m256i vMaxH;
    __m256i vEndI;
    __m256i vEndJ;
    __m256i vILimit;
    __m256i vJLimit;
    __m256i vTDiag;
    __m256i vTIns;
    __m256i vTDel;
    __m256i vTZero;
    __m256i vTDiagE;
    __m256i vTInsE;
    __m256i vTDiagF;
    __m256i vTDelF;

    /* validate inputs */
    PARASAIL_CHECK_NULL(_s2);
    PARASAIL_CHECK_GT0(s2Len);
    PARASAIL_CHECK_GE0(open);
    PARASAIL_CHECK_GE0(gap);
    PARASAIL_CHECK_NULL(matrix);
    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        PARASAIL_CHECK_NULL(_s1);
        PARASAIL_CHECK_GT0(_s1Len);
    }
        
    /* initialize stack variables */
    N = 16; /* number of values in vector */
    PAD = N-1;
    PAD2 = PAD*2;
    s1Len = matrix->type == PARASAIL_MATRIX_TYPE_SQUARE ? _s1Len : matrix->length;
    s1Len_PAD = s1Len+PAD;
    s2Len_PAD = s2Len+PAD;
    i = 0;
    j = 0;
    end_query = 0;
    end_ref = 0;
    NEG_LIMIT = (-open < matrix->min ? INT16_MIN + open : INT16_MIN - matrix->min) + 1;
    POS_LIMIT = INT16_MAX - matrix->max - 1;
    score = NEG_LIMIT;
    vNegLimit = _mm256_set1_epi16(NEG_LIMIT);
    vPosLimit = _mm256_set1_epi16(POS_LIMIT);
    vSaturationCheckMin = vPosLimit;
    vSaturationCheckMax = vNegLimit;
    vNegInf = _mm256_set1_epi16(NEG_LIMIT);
    vNegInf0 = _mm256_srli_si256_rpl(vNegInf, 2); /* shift in a 0 */
    vOpen = _mm256_set1_epi16(open);
    vGap  = _mm256_set1_epi16(gap);
    vZero = _mm256_set1_epi16(0);
    vOne = _mm256_set1_epi16(1);
    vN = _mm256_set1_epi16(N);
    vNegOne = _mm256_set1_epi16(-1);
    vI = _mm256_set_epi16(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
    vJreset = _mm256_set_epi16(0,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15);
    vMaxH = vNegInf;
    vEndI = vNegInf;
    vEndJ = vNegInf;
    vILimit = _mm256_set1_epi16(s1Len);
    vJLimit = _mm256_set1_epi16(s2Len);
    vTDiag = _mm256_set1_epi16(PARASAIL_DIAG);
    vTIns = _mm256_set1_epi16(PARASAIL_INS);
    vTDel = _mm256_set1_epi16(PARASAIL_DEL);
    vTZero = _mm256_set1_epi16(PARASAIL_ZERO);
    vTDiagE = _mm256_set1_epi16(PARASAIL_DIAG_E);
    vTInsE = _mm256_set1_epi16(PARASAIL_INS_E);
    vTDiagF = _mm256_set1_epi16(PARASAIL_DIAG_F);
    vTDelF = _mm256_set1_epi16(PARASAIL_DEL_F);

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

    /* set known flags */
    result->flag |= PARASAIL_FLAG_SW | PARASAIL_FLAG_DIAG
        | PARASAIL_FLAG_TRACE
        | PARASAIL_FLAG_BITS_16 | PARASAIL_FLAG_LANES_16;

    /* initialize heap variables */
    s2B= parasail_memalign_int16_t(32, s2Len+PAD2);
    _H_pr = parasail_memalign_int16_t(32, s2Len+PAD2);
    _F_pr = parasail_memalign_int16_t(32, s2Len+PAD2);
    s2 = s2B+PAD; /* will allow later for negative indices */
    H_pr = _H_pr+PAD;
    F_pr = _F_pr+PAD;

    /* validate heap variables */
    if (!s2B) return NULL;
    if (!_H_pr) return NULL;
    if (!_F_pr) return NULL;

    /* convert _s1 from char to int in range 0-23 */
    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        s1 = parasail_memalign_int16_t(32, s1Len+PAD);
        if (!s1) return NULL;
        for (i=0; i<s1Len; ++i) {
            s1[i] = matrix->mapper[(unsigned char)_s1[i]];
        }
        /* pad back of s1 with dummy values */
        for (i=s1Len; i<s1Len_PAD; ++i) {
            s1[i] = 0; /* point to first matrix row because we don't care */
        }
    }

    /* convert _s2 from char to int in range 0-23 */
    for (j=0; j<s2Len; ++j) {
        s2[j] = matrix->mapper[(unsigned char)_s2[j]];
    }
    /* pad front of s2 with dummy values */
    for (j=-PAD; j<0; ++j) {
        s2[j] = 0; /* point to first matrix row because we don't care */
    }
    /* pad back of s2 with dummy values */
    for (j=s2Len; j<s2Len_PAD; ++j) {
        s2[j] = 0; /* point to first matrix row because we don't care */
    }

    /* set initial values for stored row */
    for (j=0; j<s2Len; ++j) {
        H_pr[j] = 0;
        F_pr[j] = NEG_LIMIT;
    }
    /* pad front of stored row values */
    for (j=-PAD; j<0; ++j) {
        H_pr[j] = NEG_LIMIT;
        F_pr[j] = NEG_LIMIT;
    }
    /* pad back of stored row values */
    for (j=s2Len; j<s2Len+PAD; ++j) {
        H_pr[j] = NEG_LIMIT;
        F_pr[j] = NEG_LIMIT;
    }

    /* iterate over query sequence */
    for (i=0; i<s1Len; i+=N) {
        __m256i vNH = vNegInf0;
        __m256i vWH = vNegInf0;
        __m256i vE = vNegInf;
        __m256i vE_opn = vNegInf;
        __m256i vE_ext = vNegInf;
        __m256i vF = vNegInf;
        __m256i vF_opn = vNegInf;
        __m256i vF_ext = vNegInf;
        __m256i vJ = vJreset;
        const int * const restrict matrow0 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+0] : ((i+0 >= s1Len) ? s1Len-1 : i+0))];
        const int * const restrict matrow1 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+1] : ((i+1 >= s1Len) ? s1Len-1 : i+1))];
        const int * const restrict matrow2 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+2] : ((i+2 >= s1Len) ? s1Len-1 : i+2))];
        const int * const restrict matrow3 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+3] : ((i+3 >= s1Len) ? s1Len-1 : i+3))];
        const int * const restrict matrow4 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+4] : ((i+4 >= s1Len) ? s1Len-1 : i+4))];
        const int * const restrict matrow5 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+5] : ((i+5 >= s1Len) ? s1Len-1 : i+5))];
        const int * const restrict matrow6 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+6] : ((i+6 >= s1Len) ? s1Len-1 : i+6))];
        const int * const restrict matrow7 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+7] : ((i+7 >= s1Len) ? s1Len-1 : i+7))];
        const int * const restrict matrow8 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+8] : ((i+8 >= s1Len) ? s1Len-1 : i+8))];
        const int * const restrict matrow9 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+9] : ((i+9 >= s1Len) ? s1Len-1 : i+9))];
        const int * const restrict matrow10 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+10] : ((i+10 >= s1Len) ? s1Len-1 : i+10))];
        const int * const restrict matrow11 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+11] : ((i+11 >= s1Len) ? s1Len-1 : i+11))];
        const int * const restrict matrow12 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+12] : ((i+12 >= s1Len) ? s1Len-1 : i+12))];
        const int * const restrict matrow13 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+13] : ((i+13 >= s1Len) ? s1Len-1 : i+13))];
        const int * const restrict matrow14 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+14] : ((i+14 >= s1Len) ? s1Len-1 : i+14))];
        const int * const restrict matrow15 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+15] : ((i+15 >= s1Len) ? s1Len-1 : i+15))];
        __m256i vIltLimit = _mm256_cmplt_epi16_rpl(vI, vILimit);
        /* iterate over database sequence */
        for (j=0; j<s2Len+PAD; ++j) {
            __m256i vMat;
            __m256i vNWH = vNH;
            vNH = _mm256_srli_si256_rpl(vWH, 2);
            vNH = _mm256_insert_epi16_rpl(vNH, H_pr[j], 15);
            vF = _mm256_srli_si256_rpl(vF, 2);
            vF = _mm256_insert_epi16_rpl(vF, F_pr[j], 15);
            vF_opn = _mm256_subs_epi16(vNH, vOpen);
            vF_ext = _mm256_subs_epi16(vF, vGap);
            vF = _mm256_max_epi16(vF_opn, vF_ext);
            vE_opn = _mm256_subs_epi16(vWH, vOpen);
            vE_ext = _mm256_subs_epi16(vE, vGap);
            vE = _mm256_max_epi16(vE_opn, vE_ext);
            vMat = _mm256_set_epi16(
                    matrow0[s2[j-0]],
                    matrow1[s2[j-1]],
                    matrow2[s2[j-2]],
                    matrow3[s2[j-3]],
                    matrow4[s2[j-4]],
                    matrow5[s2[j-5]],
                    matrow6[s2[j-6]],
                    matrow7[s2[j-7]],
                    matrow8[s2[j-8]],
                    matrow9[s2[j-9]],
                    matrow10[s2[j-10]],
                    matrow11[s2[j-11]],
                    matrow12[s2[j-12]],
                    matrow13[s2[j-13]],
                    matrow14[s2[j-14]],
                    matrow15[s2[j-15]]
                    );
            vNWH = _mm256_adds_epi16(vNWH, vMat);
            vNWH = _mm256_max_epi16(vNWH, vZero);
            vWH = _mm256_max_epi16(vNWH, vE);
            vWH = _mm256_max_epi16(vWH, vF);
            /* as minor diagonal vector passes across the j=-1 boundary,
             * assign the appropriate boundary conditions */
            {
                __m256i cond = _mm256_cmpeq_epi16(vJ,vNegOne);
                vWH = _mm256_andnot_si256(cond, vWH);
                vF = _mm256_blendv_epi8(vF, vNegInf, cond);
                vE = _mm256_blendv_epi8(vE, vNegInf, cond);
            }
            /* cannot start checking sat until after J clears boundary */
            if (j > PAD) {
                vSaturationCheckMin = _mm256_min_epi16(vSaturationCheckMin, vWH);
                vSaturationCheckMax = _mm256_max_epi16(vSaturationCheckMax, vWH);
            }
            /* trace table */
            {
                __m256i cond_zero = _mm256_cmpeq_epi16(vWH, vZero);
                __m256i case1 = _mm256_cmpeq_epi16(vWH, vNWH);
                __m256i case2 = _mm256_cmpeq_epi16(vWH, vF);
                __m256i vT = _mm256_blendv_epi8(
                        _mm256_blendv_epi8(vTIns, vTDel, case2),
                        _mm256_blendv_epi8(vTDiag, vTZero, cond_zero),
                        case1);
                __m256i condE = _mm256_cmpgt_epi16(vE_opn, vE_ext);
                __m256i condF = _mm256_cmpgt_epi16(vF_opn, vF_ext);
                __m256i vET = _mm256_blendv_epi8(vTInsE, vTDiagE, condE);
                __m256i vFT = _mm256_blendv_epi8(vTDelF, vTDiagF, condF);
                vT = _mm256_or_si256(vT, vET);
                vT = _mm256_or_si256(vT, vFT);
                arr_store_si256(result->trace->trace_table, vT, i, s1Len, j, s2Len);
            }
            H_pr[j-15] = (int16_t)_mm256_extract_epi16_rpl(vWH,0);
            F_pr[j-15] = (int16_t)_mm256_extract_epi16_rpl(vF,0);
            /* as minor diagonal vector passes across table, extract
             * max values within the i,j bounds */
            {
                __m256i cond_valid_J = _mm256_and_si256(
                        _mm256_cmpgt_epi16(vJ, vNegOne),
                        _mm256_cmplt_epi16_rpl(vJ, vJLimit));
                __m256i cond_valid_IJ = _mm256_and_si256(cond_valid_J, vIltLimit);
                __m256i cond_eq = _mm256_cmpeq_epi16(vWH, vMaxH);
                __m256i cond_max = _mm256_cmpgt_epi16(vWH, vMaxH);
                __m256i cond_all = _mm256_and_si256(cond_max, cond_valid_IJ);
                __m256i cond_Jlt = _mm256_cmplt_epi16_rpl(vJ, vEndJ);
                vMaxH = _mm256_blendv_epi8(vMaxH, vWH, cond_all);
                vEndI = _mm256_blendv_epi8(vEndI, vI, cond_all);
                vEndJ = _mm256_blendv_epi8(vEndJ, vJ, cond_all);
                cond_all = _mm256_and_si256(cond_Jlt, cond_eq);
                cond_all = _mm256_and_si256(cond_all, cond_valid_IJ);
                vEndI = _mm256_blendv_epi8(vEndI, vI, cond_all);
                vEndJ = _mm256_blendv_epi8(vEndJ, vJ, cond_all);
            }
            vJ = _mm256_adds_epi16(vJ, vOne);
        }
        vI = _mm256_adds_epi16(vI, vN);
    }

    /* alignment ending position */
    {
        int16_t *t = (int16_t*)&vMaxH;
        int16_t *i = (int16_t*)&vEndI;
        int16_t *j = (int16_t*)&vEndJ;
        int32_t k;
        for (k=0; k<N; ++k, ++t, ++i, ++j) {
            if (*t > score) {
                score = *t;
                end_query = *i;
                end_ref = *j;
            }
            else if (*t == score) {
                if (*j < end_ref) {
                    end_query = *i;
                    end_ref = *j;
                }
                else if (*j == end_ref && *i < end_query) {
                    end_query = *i;
                    end_ref = *j;
                }
            }
        }
    }

    if (_mm256_movemask_epi8(_mm256_or_si256(
            _mm256_cmplt_epi16_rpl(vSaturationCheckMin, vNegLimit),
            _mm256_cmpgt_epi16(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(_F_pr);
    parasail_free(_H_pr);
    parasail_free(s2B);
    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        parasail_free(s1);
    }

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
andq $-0x20, %rsp
subq $0x420, %rsp            # imm = 0x420
testq %rdx, %rdx
je 0x556b4c
movl %ecx, %r13d
testl %ecx, %ecx
jle 0x556b70
testl %r8d, %r8d
js 0x556b94
testl %r9d, %r9d
js 0x556bd3
movl %esi, %r12d
movq 0x10(%rbp), %rsi
testq %rsi, %rsi
je 0x556bf4
cmpl $0x0, 0x30(%rsi)
je 0x555936
movl 0x34(%rsi), %r12d
jmp 0x555948
testq %rdi, %rdi
je 0x556c15
testl %r12d, %r12d
jle 0x556c36
movq %rdi, 0x20(%rsp)
movl %r9d, 0x160(%rsp)
movq %rdx, 0x140(%rsp)
movl %r8d, %eax
negl %eax
movl 0x20(%rsi), %ecx
movl %ecx, %r14d
negl %r14d
cmpl %eax, %ecx
movl %r8d, 0x180(%rsp)
cmovgl %r8d, %r14d
addl $0xffff8001, %r14d      # imm = 0xFFFF8001
movw $0x7ffe, %bx            # imm = 0x7FFE
subw 0x1c(%rsi), %bx
vmovd %r14d, %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x300(%rsp)
vmovdqa %ymm0, 0x2c0(%rsp)
vmovdqa %ymm0, 0x260(%rsp)
pushq $0x20
popq %rdx
pushq $0x1
popq %rcx
movl %r12d, %edi
movl %r13d, %esi
vzeroupper
callq 0x1abb59
testq %rax, %rax
je 0x555a30
movq %rax, %r15
movq %r12, 0x40(%rsp)
movl %r14d, 0x2c(%rsp)
orl $0x10281004, 0xc(%rax)  # imm = 0x10281004
movq %r13, 0x18(%rsp)
leal 0x1e(%r13), %r12d
pushq $0x20
popq %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x1ab77b
movq %rax, %r14
movq %r13, %rdi
movq %r12, %rsi
callq 0x1ab77b
movq %rax, %r13
pushq $0x20
popq %rdi
movq %r12, %rsi
callq 0x1ab77b
testq %r14, %r14
sete %dl
movq %r13, 0x38(%rsp)
testq %r13, %r13
sete %cl
orb %dl, %cl
movq %rax, 0x30(%rsp)
testq %rax, %rax
sete %al
orb %cl, %al
je 0x555a37
xorl %ebx, %ebx
jmp 0x556c5e
movq %r15, 0x138(%rsp)
movq 0x10(%rbp), %r10
cmpl $0x0, 0x30(%r10)
movq 0x40(%rsp), %r15
movslq %r15d, %r13
je 0x556adc
movq %r10, %rdi
movq $0x0, 0x48(%rsp)
movl 0x2c(%rsp), %r8d
vmovdqa 0x2c0(%rsp), %ymm14
movq 0x140(%rsp), %r9
movq 0x18(%rsp), %rax
leal 0xf(%rax), %ecx
vmovd %ebx, %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x320(%rsp)
vmovdqa %xmm14, %xmm0
vpslldq $0xe, %ymm0, %ymm0      # ymm0 = zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,ymm0[0,1],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,ymm0[16,17]
vpblendw $0x80, %ymm0, %ymm14, %ymm0 # ymm0 = ymm14[0,1,2,3,4,5,6],ymm0[7],ymm14[8,9,10,11,12,13,14],ymm0[15]
vmovdqa %ymm0, 0x360(%rsp)
vmovd 0x180(%rsp), %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x3c0(%rsp)
vmovd 0x160(%rsp), %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x3a0(%rsp)
vmovd 0x40(%rsp), %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x340(%rsp)
vmovd %eax, %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x380(%rsp)
movl %eax, %eax
movq %rdi, %rbx
movq 0x10(%rdi), %rdx
xorl %esi, %esi
cmpq %rsi, %rax
je 0x555b22
movzbl (%r9,%rsi), %edi
movzwl (%rdx,%rdi,4), %edi
movw %di, 0x1e(%r14,%rsi,2)
incq %rsi
jmp 0x555b09
xorl %edx, %edx
cmpq $0xf, %rdx
je 0x555b35
andw $0x0, (%r14,%rdx,2)
incq %rdx
jmp 0x555b24
movq %rax, %rdx
cmpl %edx, %ecx
jle 0x555b48
andw $0x0, 0x1e(%r14,%rdx,2)
incq %rdx
jmp 0x555b38
xorl %edx, %edx
cmpq %rdx, %rax
je 0x555b6a
movq 0x38(%rsp), %rsi
andw $0x0, 0x1e(%rsi,%rdx,2)
movq 0x30(%rsp), %rsi
movw %r8w, 0x1e(%rsi,%rdx,2)
incq %rdx
jmp 0x555b4a
xorl %edx, %edx
cmpq $0xf, %rdx
je 0x555b8b
movq 0x38(%rsp), %rsi
movw %r8w, (%rsi,%rdx,2)
movq 0x30(%rsp), %rsi
movw %r8w, (%rsi,%rdx,2)
incq %rdx
jmp 0x555b6c
movq %rax, %rdx
cmpl %edx, %ecx
jle 0x555bad
movq 0x38(%rsp), %rsi
movw %r8w, 0x1e(%rsi,%rdx,2)
movq 0x30(%rsp), %rsi
movw %r8w, 0x1e(%rsi,%rdx,2)
incq %rdx
jmp 0x555b8e
movq 0x40(%rsp), %rdx
decl %edx
movq %rdx, 0x40(%rsp)
movl %ecx, %edx
sarl $0x1f, %edx
andnl %ecx, %edx, %ecx
movq %rcx, 0x238(%rsp)
vmovdqa 0x300(%rsp), %ymm13
vmovdqa 0x260(%rsp), %ymm12
movq %rax, %rcx
shlq $0x4, %rcx
movq %rcx, 0x1b0(%rsp)
vmovaps 0x75d4c(%rip), %ymm0    # 0x5cb940
vmovaps %ymm0, 0x240(%rsp)
movq $0x0, 0xc0(%rsp)
vpxor %xmm9, %xmm9, %xmm9
xorl %r15d, %r15d
vmovdqa %ymm14, %ymm10
vmovdqa %ymm14, 0x2a0(%rsp)
vmovdqa 0x320(%rsp), %ymm0
vmovdqa %ymm0, 0x280(%rsp)
cmpq %r13, %r15
jge 0x5569db
cmpl $0x0, 0x30(%rbx)
movq %r15, 0x1b8(%rsp)
movq %r15, %rcx
je 0x555dcf
orq $0x1, %rcx
cmpq %r13, %rcx
movq 0x40(%rsp), %rsi
movl %esi, %edx
movq %rcx, 0x20(%rsp)
cmovll %ecx, %edx
movl %edx, 0x140(%rsp)
movq %r15, %rcx
orq $0x2, %rcx
cmpq %r13, %rcx
movq %rcx, 0x90(%rsp)
cmovgel %esi, %ecx
movl %ecx, 0x160(%rsp)
movq %r15, %rcx
orq $0x3, %rcx
cmpq %r13, %rcx
movq %rcx, 0x180(%rsp)
movl %ecx, %r10d
cmovgel %esi, %r10d
movq %r15, %rcx
orq $0x4, %rcx
cmpq %r13, %rcx
movq %rcx, 0xb8(%rsp)
cmovgel %esi, %ecx
movl %ecx, 0x88(%rsp)
movq %r15, %rcx
orq $0x5, %rcx
cmpq %r13, %rcx
movq %rcx, 0xb0(%rsp)
movl %ecx, %r11d
cmovgel %esi, %r11d
movq %r15, %rcx
orq $0x6, %rcx
cmpq %r13, %rcx
movq %rcx, 0xa8(%rsp)
cmovgel %esi, %ecx
movl %ecx, 0x80(%rsp)
movq %r15, %rcx
orq $0x7, %rcx
cmpq %r13, %rcx
movq %rcx, 0xa0(%rsp)
movl %ecx, %r8d
cmovgel %esi, %r8d
movq %r15, %rcx
orq $0x8, %rcx
cmpq %r13, %rcx
movq %rcx, 0x98(%rsp)
cmovgel %esi, %ecx
movl %ecx, 0x78(%rsp)
movq %r15, %rcx
orq $0x9, %rcx
cmpq %r13, %rcx
movq %rcx, 0x18(%rsp)
movl %ecx, %r12d
cmovgel %esi, %r12d
movq %r15, %rcx
orq $0xa, %rcx
cmpq %r13, %rcx
movq %rcx, 0x50(%rsp)
cmovgel %esi, %ecx
movl %ecx, 0x70(%rsp)
movq %r15, %rcx
orq $0xb, %rcx
cmpq %r13, %rcx
movq %rcx, 0x110(%rsp)
movl %ecx, %edx
cmovgel %esi, %edx
movq %r15, %rcx
orq $0xc, %rcx
cmpq %r13, %rcx
movq %rcx, 0x108(%rsp)
cmovgel %esi, %ecx
movl %ecx, 0x68(%rsp)
movq %r15, %rdi
orq $0xd, %rdi
cmpq %r13, %rdi
movq %rdi, 0x100(%rsp)
cmovgel %esi, %edi
movq %r15, %rcx
orq $0xe, %rcx
cmpq %r13, %rcx
movq %rcx, 0xf8(%rsp)
cmovgel %esi, %ecx
movl %ecx, 0x60(%rsp)
movq %r15, %rcx
orq $0xf, %rcx
cmpq %r13, %rcx
movq %rcx, 0xf0(%rsp)
cmovgel %esi, %ecx
movl %ecx, 0x58(%rsp)
movl %r15d, %esi
jmp 0x555f38
orq $0x1, %rcx
movq %rcx, 0x20(%rsp)
movq %r15, %rcx
orq $0x2, %rcx
movq %rcx, 0x90(%rsp)
movq %r15, %rcx
orq $0x3, %rcx
movq %rcx, 0x180(%rsp)
movq %r15, %rcx
orq $0x4, %rcx
movq %rcx, 0xb8(%rsp)
movq %r15, %rcx
orq $0x5, %rcx
movq %rcx, 0xb0(%rsp)
movq %r15, %rcx
orq $0x6, %rcx
movq %rcx, 0xa8(%rsp)
movq %r15, %rcx
orq $0x7, %rcx
movq %rcx, 0xa0(%rsp)
movq %r15, %rcx
orq $0x8, %rcx
movq %rcx, 0x98(%rsp)
movq %r15, %rcx
orq $0x9, %rcx
movq %rcx, 0x18(%rsp)
movq %r15, %rcx
orq $0xa, %rcx
movq %rcx, 0x50(%rsp)
movq %r15, %rcx
orq $0xb, %rcx
movq %rcx, 0x110(%rsp)
movq %r15, %rcx
orq $0xc, %rcx
movq %rcx, 0x108(%rsp)
movq %r15, %rcx
orq $0xd, %rcx
movq %rcx, 0x100(%rsp)
movq %r15, %rcx
orq $0xe, %rcx
movq %rcx, 0xf8(%rsp)
movq %r15, %rcx
orq $0xf, %rcx
movq %rcx, 0xf0(%rsp)
movq 0x48(%rsp), %r9
movswl (%r9,%r15,2), %esi
movswl 0x2(%r9,%r15,2), %ecx
movl %ecx, 0x140(%rsp)
movswl 0x4(%r9,%r15,2), %ecx
movl %ecx, 0x160(%rsp)
movswl 0x6(%r9,%r15,2), %r10d
movswl 0x8(%r9,%r15,2), %ecx
movl %ecx, 0x88(%rsp)
movswl 0xa(%r9,%r15,2), %r11d
movswl 0xc(%r9,%r15,2), %ecx
movl %ecx, 0x80(%rsp)
movswl 0xe(%r9,%r15,2), %r8d
movswl 0x10(%r9,%r15,2), %ecx
movl %ecx, 0x78(%rsp)
movswl 0x12(%r9,%r15,2), %r12d
movswl 0x14(%r9,%r15,2), %ecx
movl %ecx, 0x70(%rsp)
movswl 0x16(%r9,%r15,2), %edx
movswl 0x18(%r9,%r15,2), %ecx
movl %ecx, 0x68(%rsp)
movswl 0x1a(%r9,%r15,2), %edi
movswl 0x1c(%r9,%r15,2), %ecx
movl %ecx, 0x60(%rsp)
movswl 0x1e(%r9,%r15,2), %ecx
movl %ecx, 0x58(%rsp)
movl 0x18(%rbx), %r15d
imull %r15d, %edi
imull %r15d, %edx
imull %r15d, %r12d
movl %r12d, 0xd8(%rsp)
imull %r15d, %r8d
movl %r8d, 0xc8(%rsp)
imull %r15d, %r11d
movl %r11d, 0xd0(%rsp)
imull %r15d, %r10d
movl %r10d, 0xe8(%rsp)
movq %rbx, %r10
movl 0x140(%rsp), %ecx
imull %r15d, %ecx
movl %ecx, 0x140(%rsp)
imull %r15d, %esi
movl %esi, 0xe0(%rsp)
movl 0x160(%rsp), %ecx
imull %r15d, %ecx
movl %ecx, 0x160(%rsp)
movl 0x88(%rsp), %esi
imull %r15d, %esi
movl 0x80(%rsp), %r12d
imull %r15d, %r12d
movl 0x78(%rsp), %ebx
imull %r15d, %ebx
movl 0x70(%rsp), %r11d
imull %r15d, %r11d
movl 0x68(%rsp), %ecx
imull %r15d, %ecx
movl 0x60(%rsp), %r8d
imull %r15d, %r8d
movl 0x58(%rsp), %r9d
imull %r15d, %r9d
movslq %edi, %rdi
movq 0x8(%r10), %r10
leaq (%r10,%rdi,4), %rdi
movq %rdi, 0x88(%rsp)
movslq %edx, %rdx
leaq (%r10,%rdx,4), %rdx
movq %rdx, 0x80(%rsp)
movslq 0xd8(%rsp), %rdx
leaq (%r10,%rdx,4), %rdx
movq %rdx, 0x78(%rsp)
movslq 0xc8(%rsp), %rdx
leaq (%r10,%rdx,4), %rdx
movq %rdx, 0x70(%rsp)
movslq 0xd0(%rsp), %rdx
leaq (%r10,%rdx,4), %rdx
movq %rdx, 0x68(%rsp)
movslq 0xe8(%rsp), %rdx
leaq (%r10,%rdx,4), %rdx
movq %rdx, 0x60(%rsp)
movslq 0x140(%rsp), %rdx
leaq (%r10,%rdx,4), %rdx
movq %rdx, 0x58(%rsp)
movslq 0xe0(%rsp), %rdx
leaq (%r10,%rdx,4), %rdx
movq %rdx, 0xe8(%rsp)
movslq 0x160(%rsp), %rdx
leaq (%r10,%rdx,4), %rdx
movq %rdx, 0xe0(%rsp)
movslq %esi, %rsi
leaq (%r10,%rsi,4), %rdx
movq %rdx, 0xd8(%rsp)
movslq %r12d, %rsi
leaq (%r10,%rsi,4), %rdx
movq %rdx, 0xd0(%rsp)
movslq %ebx, %rsi
leaq (%r10,%rsi,4), %rdx
movq %rdx, 0xc8(%rsp)
movslq %r11d, %r11
leaq (%r10,%r11,4), %rdx
movq %rdx, 0x230(%rsp)
movslq %ecx, %rcx
leaq (%r10,%rcx,4), %rcx
movq %rcx, 0x228(%rsp)
movslq %r8d, %r8
leaq (%r10,%r8,4), %rcx
movq %rcx, 0x220(%rsp)
movslq %r9d, %r9
leaq (%r10,%r9,4), %rcx
movq %rcx, 0x218(%rsp)
movq 0x20(%rsp), %rdx
imulq %rax, %rdx
movq %rdx, 0x130(%rsp)
movq 0x90(%rsp), %rdx
imulq %rax, %rdx
movq 0x180(%rsp), %rsi
imulq %rax, %rsi
movq 0xb8(%rsp), %rdi
imulq %rax, %rdi
movq 0xb0(%rsp), %r8
imulq %rax, %r8
movq 0xa8(%rsp), %r9
imulq %rax, %r9
movq 0xa0(%rsp), %r10
imulq %rax, %r10
movq 0x98(%rsp), %r11
imulq %rax, %r11
movq 0x18(%rsp), %r15
imulq %rax, %r15
movq 0x50(%rsp), %rbx
imulq %rax, %rbx
movq 0x110(%rsp), %r12
imulq %rax, %r12
movq 0x108(%rsp), %rcx
imulq %rax, %rcx
movq %rcx, 0x128(%rsp)
movq 0x100(%rsp), %rcx
imulq %rax, %rcx
movq %rcx, 0x120(%rsp)
movq 0xf8(%rsp), %rcx
imulq %rax, %rcx
movq %rcx, 0x118(%rsp)
movq 0xf0(%rsp), %rcx
imulq %rax, %rcx
addq $-0xf, %rcx
movq %rcx, 0x210(%rsp)
addq $-0x2, %rdx
movq %rdx, 0x208(%rsp)
addq $-0x3, %rsi
movq %rsi, 0x200(%rsp)
addq $-0x4, %rdi
movq %rdi, 0x1f8(%rsp)
addq $-0x5, %r8
movq %r8, 0x1f0(%rsp)
addq $-0x6, %r9
movq %r9, 0x1e8(%rsp)
addq $-0x7, %r10
movq %r10, 0x1e0(%rsp)
addq $-0x8, %r11
movq %r11, 0x1d8(%rsp)
addq $-0x9, %r15
movq %r15, 0x1d0(%rsp)
addq $-0xa, %rbx
movq %rbx, 0x1c8(%rsp)
addq $-0xb, %r12
movq %r12, 0x1c0(%rsp)
addq $-0xc, 0x128(%rsp)
addq $-0xd, 0x120(%rsp)
addq $-0xe, 0x118(%rsp)
decq 0x130(%rsp)
vmovdqa 0x340(%rsp), %ymm0
vpcmpgtw 0x240(%rsp), %ymm0, %ymm0
vmovdqa %ymm0, 0x3e0(%rsp)
vpmovsxbw 0x759fe(%rip), %ymm11 # 0x5cbc84
vmovdqa %ymm14, %ymm4
vmovdqa %ymm14, %ymm5
vmovdqa 0x360(%rsp), %ymm6
vmovdqa %ymm6, %ymm1
xorl %r10d, %r10d
movq 0x20(%rsp), %rdi
movq 0x90(%rsp), %r12
movq 0x180(%rsp), %rsi
movq 0xb8(%rsp), %rbx
movq 0xb0(%rsp), %rcx
movq 0xa8(%rsp), %r8
movq 0xa0(%rsp), %r9
movq 0x98(%rsp), %r15
movq 0x18(%rsp), %rdx
movq 0x50(%rsp), %r11
movq %rdx, 0x18(%rsp)
movq %r11, 0x50(%rsp)
cmpq %r10, 0x238(%rsp)
je 0x55698a
vmovdqa %ymm10, 0x160(%rsp)
vmovdqa %ymm12, 0x140(%rsp)
movswq 0x10(%r14,%r10,2), %r11
movq 0x70(%rsp), %rdx
vmovd (%rdx,%r11,4), %xmm0
movswq 0x12(%r14,%r10,2), %r11
movq 0xd0(%rsp), %rdx
vpinsrw $0x1, (%rdx,%r11,4), %xmm0, %xmm0
movswq 0x14(%r14,%r10,2), %r11
movq 0x68(%rsp), %rdx
vpinsrw $0x2, (%rdx,%r11,4), %xmm0, %xmm0
movswq 0x16(%r14,%r10,2), %r11
movq 0xd8(%rsp), %rdx
vpinsrw $0x3, (%rdx,%r11,4), %xmm0, %xmm0
movswq 0x18(%r14,%r10,2), %r11
movq 0x60(%rsp), %rdx
vpinsrw $0x4, (%rdx,%r11,4), %xmm0, %xmm0
movswq 0x1a(%r14,%r10,2), %r11
movq 0xe0(%rsp), %rdx
vpinsrw $0x5, (%rdx,%r11,4), %xmm0, %xmm0
movswq 0x1c(%r14,%r10,2), %r11
movq 0x58(%rsp), %rdx
vpinsrw $0x6, (%rdx,%r11,4), %xmm0, %xmm0
movswq 0x1e(%r14,%r10,2), %r11
movq 0xe8(%rsp), %rdx
vpinsrw $0x7, (%rdx,%r11,4), %xmm0, %xmm7
movswq (%r14,%r10,2), %r11
movq 0x218(%rsp), %rdx
vmovd (%rdx,%r11,4), %xmm0
movswq 0x2(%r14,%r10,2), %r11
movq 0x220(%rsp), %rdx
vpinsrw $0x1, (%rdx,%r11,4), %xmm0, %xmm0
movswq 0x4(%r14,%r10,2), %r11
movq 0x88(%rsp), %rdx
vpinsrw $0x2, (%rdx,%r11,4), %xmm0, %xmm0
movswq 0x6(%r14,%r10,2), %r11
movq 0x228(%rsp), %rdx
vpinsrw $0x3, (%rdx,%r11,4), %xmm0, %xmm0
movswq 0x8(%r14,%r10,2), %r11
movq 0x80(%rsp), %rdx
vpinsrw $0x4, (%rdx,%r11,4), %xmm0, %xmm0
movswq 0xa(%r14,%r10,2), %r11
movq 0x230(%rsp), %rdx
vpinsrw $0x5, (%rdx,%r11,4), %xmm0, %xmm0
movswq 0xc(%r14,%r10,2), %r11
movq 0x78(%rsp), %rdx
vpinsrw $0x6, (%rdx,%r11,4), %xmm0, %xmm0
movswq 0xe(%r14,%r10,2), %r11
movq 0xc8(%rsp), %rdx
vpinsrw $0x7, (%rdx,%r11,4), %xmm0, %xmm15
vextracti128 $0x1, %ymm1, %xmm0
movq 0x38(%rsp), %rdx
vpbroadcastw 0x1e(%rdx,%r10,2), %ymm2
vpalignr $0x2, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm0[0,1],ymm1[18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm0[16,17]
vpblendw $0x80, %ymm2, %ymm0, %ymm2 # ymm2 = ymm0[0,1,2,3,4,5,6],ymm2[7],ymm0[8,9,10,11,12,13,14],ymm2[15]
vpblendd $0xf0, %ymm2, %ymm0, %ymm0 # ymm0 = ymm0[0,1,2,3],ymm2[4,5,6,7]
vextracti128 $0x1, %ymm4, %xmm2
vpalignr $0x2, %ymm4, %ymm2, %ymm2 # ymm2 = ymm4[2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm2[0,1],ymm4[18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm2[16,17]
movq 0x30(%rsp), %rdx
vpbroadcastw 0x1e(%rdx,%r10,2), %ymm3
vpblendw $0x80, %ymm3, %ymm2, %ymm3 # ymm3 = ymm2[0,1,2,3,4,5,6],ymm3[7],ymm2[8,9,10,11,12,13,14],ymm3[15]
vpblendd $0xf0, %ymm3, %ymm2, %ymm2 # ymm2 = ymm2[0,1,2,3],ymm3[4,5,6,7]
vmovdqa 0x3c0(%rsp), %ymm3
vmovdqa %ymm0, 0x180(%rsp)
vpsubsw %ymm3, %ymm0, %ymm10
vmovdqa 0x3a0(%rsp), %ymm8
vpsubsw %ymm8, %ymm2, %ymm12
vpmaxsw %ymm12, %ymm10, %ymm4
vpsubsw %ymm3, %ymm1, %ymm2
vpsubsw %ymm8, %ymm5, %ymm3
vpmaxsw %ymm3, %ymm2, %ymm0
vinserti128 $0x1, %xmm7, %ymm15, %ymm1
vpaddsw %ymm1, %ymm6, %ymm1
vpmaxsw %ymm1, %ymm9, %ymm7
vpmaxsw %ymm4, %ymm0, %ymm1
vpmaxsw %ymm1, %ymm7, %ymm6
vpcmpeqw 0x75597(%rip), %ymm11, %ymm5 # 0x5cba80
vpandn %ymm6, %ymm5, %ymm1
cmpq $0x10, %r10
jb 0x55651f
vmovdqa 0x280(%rsp), %ymm8
vpminsw %ymm1, %ymm8, %ymm8
vmovdqa %ymm8, 0x280(%rsp)
vmovdqa 0x2a0(%rsp), %ymm8
vpmaxsw %ymm1, %ymm8, %ymm8
vmovdqa %ymm8, 0x2a0(%rsp)
vpblendvb %ymm5, %ymm14, %ymm4, %ymm4
vpcmpeqw %ymm1, %ymm7, %ymm15
vpcmpeqw %ymm1, %ymm4, %ymm14
vpbroadcastw 0x77402(%rip), %ymm7 # 0x5cd938
vpsubw %ymm14, %ymm7, %ymm14
vpbroadcastw 0x773f6(%rip), %ymm8 # 0x5cd93a
vpxor %xmm9, %xmm9, %xmm9
vpcmpgtw %ymm9, %ymm1, %ymm9
vpand %ymm8, %ymm9, %ymm8
vpblendvb %ymm15, %ymm8, %ymm14, %ymm8
vpbroadcastw 0x773da(%rip), %ymm9 # 0x5cd93c
vpbroadcastw 0x773d3(%rip), %ymm14 # 0x5cd93e
vpcmpgtw %ymm3, %ymm2, %ymm2
vpblendvb %ymm2, %ymm9, %ymm14, %ymm2
vpbroadcastw 0x773c2(%rip), %ymm3 # 0x5cd940
vpcmpgtw %ymm12, %ymm10, %ymm9
vpbroadcastw 0x773b6(%rip), %ymm10 # 0x5cd942
vpblendvb %ymm9, %ymm3, %ymm10, %ymm3
vpor %ymm2, %ymm3, %ymm2
vpor %ymm2, %ymm8, %ymm12
movq 0x138(%rsp), %rdx
movq 0x10(%rdx), %r11
movq (%r11), %r11
vextracti128 $0x1, %ymm12, %xmm10
cmpq %rax, %r10
jae 0x5565cc
movq 0xc0(%rsp), %rdx
leaq (%r11,%rdx), %rdi
vpextrb $0xe, %xmm10, (%r10,%rdi)
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
setge %dil
leaq -0x1(%r10), %rdx
cmpq %rax, %rdx
setae %dl
orb %dil, %dl
jne 0x5565f4
movq 0x130(%rsp), %rdx
addq %r11, %rdx
vpextrb $0xc, %xmm10, (%r10,%rdx)
cmpq %r13, %r12
vmovdqa 0x2c0(%rsp), %ymm14
jge 0x55662e
leaq -0x2(%r10), %rdx
cmpq $0x2, %r10
setae %dil
cmpq %rax, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x55662e
movq 0x208(%rsp), %rdx
addq %r11, %rdx
vpextrb $0xa, %xmm10, (%r10,%rdx)
cmpq %r13, %rsi
jge 0x55665f
leaq -0x3(%r10), %rdx
cmpq $0x3, %r10
setae %dil
cmpq %rax, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x55665f
movq 0x200(%rsp), %rdx
addq %r11, %rdx
vpextrb $0x8, %xmm10, (%r10,%rdx)
cmpq %r13, %rbx
jge 0x556690
leaq -0x4(%r10), %rdx
cmpq $0x4, %r10
setae %dil
cmpq %rax, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x556690
movq 0x1f8(%rsp), %rdx
addq %r11, %rdx
vpextrb $0x6, %xmm10, (%r10,%rdx)
cmpq %r13, %rcx
jge 0x5566c1
leaq -0x5(%r10), %rdx
cmpq $0x5, %r10
setae %dil
cmpq %rax, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x5566c1
movq 0x1f0(%rsp), %rdx
addq %r11, %rdx
vpextrb $0x4, %xmm10, (%r10,%rdx)
cmpq %r13, %r8
jge 0x5566f2
leaq -0x6(%r10), %rdx
cmpq $0x6, %r10
setae %dil
cmpq %rax, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x5566f2
movq 0x1e8(%rsp), %rdx
addq %r11, %rdx
vpextrb $0x2, %xmm10, (%r10,%rdx)
cmpq %r13, %r9
jge 0x556723
leaq -0x7(%r10), %rdx
cmpq $0x7, %r10
setae %dil
cmpq %rax, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x556723
movq 0x1e0(%rsp), %rdx
addq %r11, %rdx
vpextrb $0x0, %xmm10, (%r10,%rdx)
cmpq %r13, %r15
jge 0x556754
leaq -0x8(%r10), %rdx
cmpq $0x8, %r10
setae %dil
cmpq %rax, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x556754
movq 0x1d8(%rsp), %rdx
addq %r11, %rdx
vpextrb $0xe, %xmm12, (%r10,%rdx)
cmpq %r13, 0x18(%rsp)
jge 0x556787
leaq -0x9(%r10), %rdx
cmpq $0x9, %r10
setae %dil
cmpq %rax, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x556787
movq 0x1d0(%rsp), %rdx
addq %r11, %rdx
vpextrb $0xc, %xmm12, (%r10,%rdx)
cmpq %r13, 0x50(%rsp)
jge 0x5567ba
leaq -0xa(%r10), %rdx
cmpq $0xa, %r10
setae %dil
cmpq %rax, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x5567ba
movq 0x1c8(%rsp), %rdx
addq %r11, %rdx
vpextrb $0xa, %xmm12, (%r10,%rdx)
cmpq %r13, 0x110(%rsp)
jge 0x5567f0
leaq -0xb(%r10), %rdx
cmpq $0xb, %r10
setae %dil
cmpq %rax, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x5567f0
movq 0x1c0(%rsp), %rdx
addq %r11, %rdx
vpextrb $0x8, %xmm12, (%r10,%rdx)
cmpq %r13, 0x108(%rsp)
jge 0x556826
leaq -0xc(%r10), %rdx
cmpq $0xc, %r10
setae %dil
cmpq %rax, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x556826
movq 0x128(%rsp), %rdx
addq %r11, %rdx
vpextrb $0x6, %xmm12, (%r10,%rdx)
cmpq %r13, 0x100(%rsp)
jge 0x55685c
leaq -0xd(%r10), %rdx
cmpq $0xd, %r10
setae %dil
cmpq %rax, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x55685c
movq 0x120(%rsp), %rdx
addq %r11, %rdx
vpextrb $0x4, %xmm12, (%r10,%rdx)
cmpq %r13, 0xf8(%rsp)
jge 0x556892
leaq -0xe(%r10), %rdx
cmpq $0xe, %r10
setae %dil
cmpq %rax, %rdx
setl %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x556892
movq 0x118(%rsp), %rdx
addq %r11, %rdx
vpextrb $0x2, %xmm12, (%r10,%rdx)
cmpq %r13, 0xf0(%rsp)
setge %dl
cmpq $0xf, %r10
setb %dil
orb %dl, %dil
jne 0x5568b9
addq 0x210(%rsp), %r11
vpextrb $0x0, %xmm12, (%r10,%r11)
vmovdqa 0x380(%rsp), %ymm2
vpcmpgtw %ymm11, %ymm2, %ymm2
vpand 0x3e0(%rsp), %ymm2, %ymm2
vpsraw $0xf, %ymm11, %ymm3
vpandn %ymm2, %ymm3, %ymm2
vextracti128 $0x1, %ymm2, %xmm3
vpacksswb %xmm3, %xmm2, %xmm3
vpcmpeqw %ymm1, %ymm13, %ymm8
vpcmpgtw %ymm13, %ymm1, %ymm9
vpand %ymm2, %ymm9, %ymm10
vpblendvb %ymm10, %ymm6, %ymm13, %ymm13
vextracti128 $0x1, %ymm10, %xmm6
vpacksswb %xmm6, %xmm10, %xmm6
vmovdqa 0x140(%rsp), %ymm12
vpcmpgtw %ymm11, %ymm12, %ymm10
vpand %ymm10, %ymm8, %ymm8
vextracti128 $0x1, %ymm8, %xmm10
vpacksswb %xmm10, %xmm8, %xmm10
vpblendvb %xmm10, %xmm3, %xmm6, %xmm3
vpblendvb %ymm5, %ymm14, %ymm0, %ymm5
vpmovsxbw %xmm3, %ymm3
vmovdqa 0x160(%rsp), %ymm10
vpblendvb %ymm3, 0x240(%rsp), %ymm10, %ymm10
vpor %ymm9, %ymm8, %ymm3
vpand %ymm3, %ymm2, %ymm2
vpblendvb %ymm2, %ymm11, %ymm12, %ymm12
vpaddsw %ymm7, %ymm11, %ymm11
movq 0x38(%rsp), %rdx
vpextrw $0x0, %xmm1, (%rdx,%r10,2)
movq 0x30(%rsp), %rdx
vpextrw $0x0, %xmm4, (%rdx,%r10,2)
incq %r10
vmovdqa 0x180(%rsp), %ymm6
vpxor %xmm9, %xmm9, %xmm9
movq 0x20(%rsp), %rdi
jmp 0x5562ef
vpbroadcastw 0x76fab(%rip), %ymm0 # 0x5cd93e
vmovdqa 0x240(%rsp), %ymm1
vpaddsw %ymm0, %ymm1, %ymm1
vmovdqa %ymm1, 0x240(%rsp)
movq 0x1b8(%rsp), %r15
addq $0x10, %r15
movq 0xc0(%rsp), %rcx
addq 0x1b0(%rsp), %rcx
movq %rcx, 0xc0(%rsp)
movq 0x10(%rbp), %rbx
movl 0x2c(%rsp), %r8d
jmp 0x555c31
vmovdqa %ymm13, 0x300(%rsp)
vmovdqa %ymm12, 0x260(%rsp)
vmovdqa %ymm10, 0x2e0(%rsp)
xorl %ecx, %ecx
xorl %edx, %edx
xorl %eax, %eax
movq 0x138(%rsp), %rbx
cmpl $0x10, %ecx
je 0x556a62
movzwl 0x300(%rsp,%rcx,2), %esi
cmpw %r8w, %si
jle 0x556a29
movswl 0x2e0(%rsp,%rcx,2), %eax
movswl 0x260(%rsp,%rcx,2), %edi
jmp 0x556a58
jne 0x556a53
movswl 0x260(%rsp,%rcx,2), %edi
cmpl %edi, %edx
jle 0x556a44
movswl 0x2e0(%rsp,%rcx,2), %eax
movl %r8d, %esi
jmp 0x556a58
jne 0x556a53
movswl 0x2e0(%rsp,%rcx,2), %esi
cmpl %esi, %eax
cmovgel %esi, %eax
movl %r8d, %esi
movl %edx, %edi
incq %rcx
movl %esi, %r8d
movl %edi, %edx
jmp 0x556a04
vpcmpgtw 0x280(%rsp), %ymm14, %ymm0
vmovdqa 0x2a0(%rsp), %ymm1
vpcmpgtw 0x320(%rsp), %ymm1, %ymm1
vpor %ymm1, %ymm0, %ymm0
vpmovmskb %ymm0, %ecx
testl %ecx, %ecx
je 0x556a94
orb $0x40, 0xc(%rbx)
xorl %r8d, %r8d
xorl %edx, %edx
xorl %eax, %eax
movswl %r8w, %ecx
movl %ecx, (%rbx)
movl %eax, 0x4(%rbx)
movl %edx, 0x8(%rbx)
movq 0x30(%rsp), %rdi
vzeroupper
callq 0x1ab763
movq 0x38(%rsp), %rdi
callq 0x1ab763
movq %r14, %rdi
callq 0x1ab763
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x556c5e
movq 0x48(%rsp), %rdi
callq 0x1ab763
jmp 0x556c5e
leal 0xf(%r15), %eax
movslq %eax, %r12
pushq $0x20
popq %rdi
movq %r12, %rsi
callq 0x1ab77b
movq %rax, 0x48(%rsp)
testq %rax, %rax
movl 0x2c(%rsp), %r8d
je 0x555a30
movl %r15d, %eax
sarl $0x1f, %eax
andnl %r15d, %eax, %eax
xorl %ecx, %ecx
movq 0x10(%rbp), %rdi
vmovdqa 0x2c0(%rsp), %ymm14
movq 0x140(%rsp), %r9
movq 0x20(%rsp), %r10
cmpq %rcx, %rax
je 0x556bb8
movq 0x10(%rdi), %rdx
movzbl (%r10,%rcx), %esi
movzwl (%rdx,%rsi,4), %edx
movq 0x48(%rsp), %rsi
movw %dx, (%rsi,%rcx,2)
incq %rcx
jmp 0x556b28
movq 0x1e4485(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x7048e(%rip), %rsi     # 0x5c6feb
leaq 0x40b0a(%rip), %rdx     # 0x59766e
leaq 0x70b92(%rip), %rcx     # 0x5c76fd
jmp 0x556c55
movq 0x1e4461(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x70b80(%rip), %rsi     # 0x5c7701
leaq 0x40ae6(%rip), %rdx     # 0x59766e
leaq 0x70b86(%rip), %rcx     # 0x5c7715
jmp 0x556c55
movq 0x1e443d(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x70b76(%rip), %rsi     # 0x5c771b
leaq 0x40ac2(%rip), %rdx     # 0x59766e
leaq 0x70b7d(%rip), %rcx     # 0x5c7730
jmp 0x556c55
movq %r13, %rax
movq 0x48(%rsp), %rcx
cmpq %r12, %rax
jge 0x555a78
andw $0x0, (%rcx,%rax,2)
incq %rax
jmp 0x556bc0
movq 0x1e43fe(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x70b37(%rip), %rsi     # 0x5c771b
leaq 0x40a83(%rip), %rdx     # 0x59766e
leaq 0x70b43(%rip), %rcx     # 0x5c7735
jmp 0x556c55
movq 0x1e43dd(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x703e6(%rip), %rsi     # 0x5c6feb
leaq 0x40a62(%rip), %rdx     # 0x59766e
leaq 0x70d2f(%rip), %rcx     # 0x5c7942
jmp 0x556c55
movq 0x1e43bc(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x703c5(%rip), %rsi     # 0x5c6feb
leaq 0x40a41(%rip), %rdx     # 0x59766e
leaq 0x70b05(%rip), %rcx     # 0x5c7739
jmp 0x556c55
movq 0x1e439b(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x70aba(%rip), %rsi     # 0x5c7701
leaq 0x40a20(%rip), %rdx     # 0x59766e
leaq 0x70ae8(%rip), %rcx     # 0x5c773d
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x19e180
movq %rbx, %rax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq