// File: /workspace/github_c_makefile_star2_O1/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 $0x440, %rsp            # imm = 0x440
testq %rdx, %rdx
je 0x585658
movl %ecx, %r13d
testl %ecx, %ecx
jle 0x58565f
movl %r8d, %r12d
testl %r8d, %r8d
js 0x585666
movl %r9d, %r14d
testl %r9d, %r9d
js 0x58566d
movq 0x10(%rbp), %r15
testq %r15, %r15
je 0x585674
movl 0x30(%r15), %eax
testl %eax, %eax
jne 0x5844b4
testq %rdi, %rdi
je 0x58567b
movl %esi, %ebx
testl %esi, %esi
jle 0x585682
testl %eax, %eax
je 0x5844b8
movl 0x34(%r15), %ebx
movq %rdi, 0xc0(%rsp)
movq %rdx, 0x200(%rsp)
movl %r12d, %eax
negl %eax
movl 0x20(%r15), %ecx
movl %ecx, %edx
negl %edx
cmpl %eax, %ecx
cmovgl %r12d, %edx
addl $0xffff8001, %edx       # imm = 0xFFFF8001
movw $0x7ffe, %ax            # imm = 0x7FFE
subw 0x1c(%r15), %ax
movl %eax, 0x1e0(%rsp)
movl %edx, 0x50(%rsp)
vmovd %edx, %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x2e0(%rsp)
vmovdqa %ymm0, 0x220(%rsp)
vmovdqa %ymm0, 0x2c0(%rsp)
vmovdqa %ymm0, 0x280(%rsp)
movl $0x20, %edx
movl $0x1, %ecx
movl %ebx, %edi
movl %r13d, %esi
vzeroupper
callq 0x2097d1
testq %rax, %rax
je 0x585687
movl %r12d, 0x90(%rsp)
movl %r14d, 0xb8(%rsp)
movq %rbx, 0x1c0(%rsp)
movq %rax, 0x70(%rsp)
orl $0x10281004, 0xc(%rax)  # imm = 0x10281004
leal 0x1e(%r13), %r12d
movl $0x20, %edi
movq %r12, %rsi
callq 0x2094cd
movq %rax, %r14
movl $0x20, %edi
movq %r12, %rsi
callq 0x2094cd
movq %rax, %rbx
movl $0x20, %edi
movq %r12, %rsi
callq 0x2094cd
testq %r14, %r14
sete %dl
movq %rbx, 0xa0(%rsp)
testq %rbx, %rbx
sete %cl
orb %dl, %cl
testq %rax, %rax
sete %dl
orb %cl, %dl
jne 0x585687
cmpl $0x0, 0x30(%r15)
movq %rax, 0x98(%rsp)
je 0x5845eb
movq $0x0, 0xa8(%rsp)
movq 0x1c0(%rsp), %rbx
movl 0x90(%rsp), %r12d
jmp 0x584677
movq 0x1c0(%rsp), %rbx
leal 0xf(%rbx), %r15d
movslq %r15d, %rsi
movl $0x20, %edi
callq 0x2094cd
testq %rax, %rax
je 0x585687
testl %ebx, %ebx
movq %rax, %rdi
movl 0x90(%rsp), %r12d
movq 0xc0(%rsp), %r8
jle 0x584645
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movl %ebx, %ecx
xorl %edx, %edx
movzbl (%r8,%rdx), %esi
movzwl (%rax,%rsi,4), %esi
movw %si, (%rdi,%rdx,2)
incq %rdx
cmpq %rdx, %rcx
jne 0x584630
movslq %ebx, %rax
leal 0x1(%rbx), %ecx
cmpl %ecx, %r15d
cmovgl %r15d, %ecx
movq %rdi, 0xa8(%rsp)
leaq (%rdi,%rax,2), %rdi
movl %ebx, %eax
notl %eax
addl %ecx, %eax
leaq 0x2(,%rax,2), %rdx
xorl %esi, %esi
callq 0x19e090
movq 0x10(%rbp), %r15
leal 0xf(%r13), %edi
vmovd 0x1e0(%rsp), %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x2a0(%rsp)
vmovdqa 0x2c0(%rsp), %ymm1
vmovdqa %xmm1, %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, %ymm1, %ymm0 # ymm0 = ymm1[0,1,2,3,4,5,6],ymm0[7],ymm1[8,9,10,11,12,13,14],ymm0[15]
vmovdqa %ymm0, 0x320(%rsp)
vmovd %r12d, %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x400(%rsp)
vmovd 0xb8(%rsp), %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x3e0(%rsp)
vmovd %ebx, %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x300(%rsp)
vmovd %r13d, %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x3c0(%rsp)
movq 0x10(%r15), %rax
cmpl $0x2, %r13d
movl $0x1, %r12d
cmovgel %r13d, %r12d
xorl %ecx, %ecx
movq 0x200(%rsp), %rsi
movzbl (%rsi,%rcx), %edx
movzwl (%rax,%rdx,4), %edx
movw %dx, 0x1e(%r14,%rcx,2)
incq %rcx
cmpq %rcx, %r12
jne 0x58471e
vpxor %xmm0, %xmm0, %xmm0
vmovdqu %xmm0, 0xe(%r14)
vmovdqu %xmm0, (%r14)
movl %r13d, %ebx
leal 0x1(%r13), %eax
cmpl %eax, %edi
movl %edi, 0x200(%rsp)
cmovgl %edi, %eax
leaq (%r14,%rbx,2), %rdi
addq $0x1e, %rdi
movl %r13d, %ecx
notl %ecx
addl %eax, %ecx
leaq 0x2(,%rcx,2), %rdx
xorl %r15d, %r15d
xorl %esi, %esi
vzeroupper
callq 0x19e090
movl 0x50(%rsp), %r8d
movq 0xa0(%rsp), %rcx
movq 0x98(%rsp), %rdx
movw $0x0, 0x1e(%rcx,%r15,2)
movw %r8w, 0x1e(%rdx,%r15,2)
incq %r15
cmpq %r15, %r12
jne 0x58478f
xorl %eax, %eax
movw %r8w, (%rcx,%rax,2)
movw %r8w, (%rdx,%rax,2)
incq %rax
cmpq $0xf, %rax
jne 0x5847a7
leaq 0xf(%rbx), %rax
movq 0x10(%rbp), %r15
vmovdqa 0x2c0(%rsp), %ymm3
movq 0x1c0(%rsp), %rsi
movl 0x200(%rsp), %edi
movw %r8w, (%rcx,%rax,2)
movw %r8w, (%rdx,%rax,2)
incq %rax
incl %r13d
cmpl %r13d, %edi
jg 0x5847da
vmovdqa 0x220(%rsp), %ymm0
testl %esi, %esi
jle 0x585554
cmpl $0x2, %edi
movl $0x1, %eax
cmovgel %edi, %eax
movq %rax, 0x158(%rsp)
leal -0x1(%rsi), %r12d
movl %esi, %edx
movq %rbx, %rsi
shlq $0x4, %rsi
leaq -0x1(%rbx), %rax
movq %rax, 0x140(%rsp)
leaq (%rbx,%rbx,4), %rax
leaq (%rax,%rax,2), %rcx
addq $-0xf, %rcx
movq %rcx, 0x130(%rsp)
leaq (%rbx,%rbx), %rcx
negq %rcx
movq %rsi, 0x148(%rsp)
addq %rsi, %rcx
addq $-0xe, %rcx
movq %rcx, 0x128(%rsp)
leaq (%rbx,%rbx,2), %rcx
leaq -0xd(%rbx,%rcx,4), %rsi
movq %rsi, 0x120(%rsp)
leaq -0xc(,%rcx,4), %rsi
movq %rsi, 0x118(%rsp)
leaq -0xb(%rbx,%rax,2), %rsi
movq %rsi, 0x110(%rsp)
leaq -0xa(,%rax,2), %rax
movq %rax, 0x108(%rsp)
leaq (,%rbx,8), %rax
subq %rbx, %rax
addq $-0x7, %rax
movq %rax, 0x100(%rsp)
vpbroadcastw 0x76d34(%rip), %ymm1 # 0x5fb5f0
vmovdqa %ymm1, 0x200(%rsp)
leaq -0x6(,%rcx,2), %rax
movq %rax, 0xf8(%rsp)
vpbroadcastw 0x76d14(%rip), %ymm1 # 0x5fb5f2
vmovdqa %ymm1, 0x3a0(%rsp)
vmovaps 0x74f51(%rip), %ymm1    # 0x5f9840
vmovaps %ymm1, 0x1e0(%rsp)
vpbroadcastw 0x76cf3(%rip), %ymm1 # 0x5fb5f4
vmovdqa %ymm1, 0x380(%rsp)
vpbroadcastw 0x76ce3(%rip), %ymm1 # 0x5fb5f6
vmovdqa %ymm1, 0x1c0(%rsp)
vpbroadcastw 0x76cd3(%rip), %ymm1 # 0x5fb5f8
vmovdqa %ymm1, 0x360(%rsp)
vpbroadcastw 0x76cc3(%rip), %ymm1 # 0x5fb5fa
vmovdqa %ymm1, 0x340(%rsp)
vmovdqa 0x2a0(%rsp), %ymm1
vmovdqa %ymm1, 0x240(%rsp)
vmovdqa %ymm3, 0x260(%rsp)
leaq -0x9(%rbx,%rbx,8), %rax
movq %rax, 0xf0(%rsp)
leaq -0x8(,%rbx,8), %rax
movq %rax, 0xe8(%rsp)
leaq -0x5(%rbx,%rbx,4), %rax
movq %rax, 0xe0(%rsp)
leaq -0x4(,%rbx,4), %rax
movq %rax, 0xd8(%rsp)
leaq -0x3(%rbx,%rbx,2), %rax
movq %rax, 0xd0(%rsp)
leaq -0x2(,%rbx,2), %rax
movq %rax, 0xc8(%rsp)
movq $0x0, 0x138(%rsp)
xorl %r10d, %r10d
movl %r12d, 0x54(%rsp)
movl 0x30(%r15), %r9d
movl %r10d, %ecx
testl %r9d, %r9d
movq 0xa8(%rsp), %rax
jne 0x5849df
movswl (%rax,%r10,2), %ecx
movl %ecx, 0xb0(%rsp)
movq %r10, %rcx
orq $0x1, %rcx
testl %r9d, %r9d
je 0x5849fd
cmpq %rdx, %rcx
movl %r12d, %esi
cmovbl %ecx, %esi
jmp 0x584a01
movswl (%rax,%rcx,2), %esi
movl %esi, 0x48(%rsp)
movq %r10, %rsi
orq $0x2, %rsi
testl %r9d, %r9d
je 0x584a1c
cmpq %rdx, %rsi
movl %r12d, %edi
cmovbl %esi, %edi
jmp 0x584a20
movswl (%rax,%rsi,2), %edi
movl %edi, 0x40(%rsp)
movq %r10, %rdi
orq $0x3, %rdi
testl %r9d, %r9d
je 0x584a3c
cmpq %rdx, %rdi
movl %r12d, %r8d
cmovbl %edi, %r8d
jmp 0x584a41
movswl (%rax,%rdi,2), %r8d
movl %r8d, 0x38(%rsp)
movq %r10, %r8
orq $0x4, %r8
testl %r9d, %r9d
je 0x584a5e
cmpq %rdx, %r8
movl %r12d, %r11d
cmovbl %r8d, %r11d
jmp 0x584a63
movswl (%rax,%r8,2), %r11d
movl %r11d, 0x30(%rsp)
movq %r10, %r11
orq $0x5, %r11
testl %r9d, %r9d
je 0x584a80
cmpq %rdx, %r11
movl %r12d, %r13d
cmovbl %r11d, %r13d
jmp 0x584a85
movswl (%rax,%r11,2), %r13d
movl %r13d, 0x28(%rsp)
movq %r10, %r13
orq $0x6, %r13
testl %r9d, %r9d
movq %r11, 0x1b0(%rsp)
movq %r13, 0x1a8(%rsp)
je 0x584ab2
cmpq %rdx, %r13
movl %r12d, %r11d
cmovbl %r13d, %r11d
jmp 0x584ab7
movswl (%rax,%r13,2), %r11d
movl %r11d, 0x20(%rsp)
movq %rcx, 0xc0(%rsp)
movq 0x8(%r15), %rcx
movq %rcx, 0x150(%rsp)
movl 0x18(%r15), %r13d
movq %r10, %r15
orq $0x7, %r15
testl %r9d, %r9d
je 0x584aec
cmpq %rdx, %r15
movl %r12d, %ecx
cmovbl %r15d, %ecx
jmp 0x584af1
movswl (%rax,%r15,2), %ecx
movl %ecx, 0x88(%rsp)
movq %r8, 0x1b8(%rsp)
movq %r10, %r8
orq $0x8, %r8
testl %r9d, %r9d
movq %r8, 0x198(%rsp)
je 0x584b20
cmpq %rdx, %r8
movl %r12d, %ecx
cmovbl %r8d, %ecx
jmp 0x584b25
movswl (%rax,%r8,2), %ecx
movl %ecx, 0x80(%rsp)
movq %r10, %r8
orq $0x9, %r8
testl %r9d, %r9d
je 0x584b44
cmpq %rdx, %r8
movl %r12d, %ecx
cmovbl %r8d, %ecx
jmp 0x584b49
movswl (%rax,%r8,2), %ecx
movl %ecx, 0x78(%rsp)
movq %rsi, 0xb8(%rsp)
movq %r10, %rsi
orq $0xa, %rsi
testl %r9d, %r9d
movq %rsi, 0x188(%rsp)
je 0x584b74
cmpq %rdx, %rsi
movl %r12d, %ecx
cmovbl %esi, %ecx
jmp 0x584b78
movswl (%rax,%rsi,2), %ecx
movl %ecx, 0x1c(%rsp)
movq %rdi, 0x90(%rsp)
movq %r10, %rsi
orq $0xb, %rsi
testl %r9d, %r9d
je 0x584b9b
cmpq %rdx, %rsi
movl %r12d, %ecx
cmovbl %esi, %ecx
jmp 0x584b9f
movswl (%rax,%rsi,2), %ecx
movl %ecx, 0x64(%rsp)
movq %r10, 0x68(%rsp)
orq $0xc, %r10
testl %r9d, %r9d
movq %r10, 0x178(%rsp)
je 0x584bc5
cmpq %rdx, %r10
movl %r12d, %ecx
cmovbl %r10d, %ecx
jmp 0x584bca
movswl (%rax,%r10,2), %ecx
movl %ecx, 0x60(%rsp)
movq %r15, 0x1a0(%rsp)
movq 0x68(%rsp), %r10
orq $0xd, %r10
testl %r9d, %r9d
je 0x584bf0
cmpq %rdx, %r10
movl %r12d, %ecx
cmovbl %r10d, %ecx
jmp 0x584bf5
movswl (%rax,%r10,2), %ecx
movl %ecx, 0x5c(%rsp)
movq 0x68(%rsp), %rcx
orq $0xe, %rcx
testl %r9d, %r9d
movq %rcx, 0x168(%rsp)
je 0x584c1d
cmpq %rdx, %rcx
cmovbl %ecx, %r12d
movl %r12d, 0x58(%rsp)
jmp 0x584c25
movswl (%rax,%rcx,2), %ecx
movl %ecx, 0x58(%rsp)
movq 0x68(%rsp), %rcx
orq $0xf, %rcx
testl %r9d, %r9d
movq %r8, 0x190(%rsp)
movq %rsi, 0x180(%rsp)
movq %r10, 0x170(%rsp)
movq %rcx, 0x160(%rsp)
je 0x584c61
cmpq %rdx, %rcx
movl 0x54(%rsp), %r9d
cmovbl %ecx, %r9d
jmp 0x584c66
movswl (%rax,%rcx,2), %r9d
movl 0xb0(%rsp), %ecx
imull %r13d, %ecx
movl 0x48(%rsp), %eax
imull %r13d, %eax
movl %eax, 0x48(%rsp)
movl 0x40(%rsp), %eax
imull %r13d, %eax
movl %eax, 0x40(%rsp)
movl 0x38(%rsp), %eax
imull %r13d, %eax
movl %eax, 0x38(%rsp)
movl 0x30(%rsp), %eax
imull %r13d, %eax
movl %eax, 0x30(%rsp)
movl 0x28(%rsp), %eax
imull %r13d, %eax
movl %eax, 0x28(%rsp)
movl 0x20(%rsp), %eax
imull %r13d, %eax
movl %eax, 0x20(%rsp)
movl 0x88(%rsp), %r12d
imull %r13d, %r12d
movl 0x80(%rsp), %r8d
imull %r13d, %r8d
movl 0x78(%rsp), %r15d
imull %r13d, %r15d
movl 0x1c(%rsp), %esi
imull %r13d, %esi
movl 0x64(%rsp), %edi
imull %r13d, %edi
movl 0x60(%rsp), %r10d
imull %r13d, %r10d
movl 0x5c(%rsp), %r11d
imull %r13d, %r11d
movl 0x58(%rsp), %eax
imull %r13d, %eax
imull %r13d, %r9d
movl %r9d, 0x1c(%rsp)
movslq %ecx, %r9
movq 0x150(%rsp), %r13
leaq (,%r9,4), %rcx
addq %r13, %rcx
movq %rcx, 0xb0(%rsp)
movslq 0x48(%rsp), %r9
leaq (%r13,%r9,4), %rcx
movq %rcx, 0x48(%rsp)
movslq 0x40(%rsp), %r9
leaq (%r13,%r9,4), %rcx
movq %rcx, 0x40(%rsp)
movslq 0x38(%rsp), %r9
leaq (%r13,%r9,4), %rcx
movq %rcx, 0x38(%rsp)
movslq 0x30(%rsp), %r9
leaq (%r13,%r9,4), %rcx
movq %rcx, 0x30(%rsp)
movslq 0x28(%rsp), %r9
leaq (%r13,%r9,4), %rcx
movq %rcx, 0x28(%rsp)
movslq 0x20(%rsp), %r9
leaq (%r13,%r9,4), %rcx
movq %rcx, 0x20(%rsp)
movslq %r12d, %rcx
leaq (%r13,%rcx,4), %rcx
movq %rcx, 0x88(%rsp)
movslq %r8d, %r8
leaq (%r13,%r8,4), %rcx
movq %rcx, 0x80(%rsp)
movslq %r15d, %r9
leaq (%r13,%r9,4), %rcx
movq %rcx, 0x78(%rsp)
movslq %esi, %rsi
leaq (%r13,%rsi,4), %rsi
movslq %edi, %rdi
leaq (%r13,%rdi,4), %rdi
movslq %r10d, %r10
leaq (%r13,%r10,4), %r10
movslq %r11d, %r15
leaq (%r13,%r15,4), %r15
movslq %eax, %r12
leaq (%r13,%r12,4), %r12
movslq 0x1c(%rsp), %rax
leaq (%r13,%rax,4), %rax
vmovdqa 0x300(%rsp), %ymm1
vpcmpgtw 0x1e0(%rsp), %ymm1, %ymm13
vmovdqa 0x320(%rsp), %ymm7
vmovdqa %ymm7, %ymm15
vmovdqa %ymm3, %ymm1
vmovdqa %ymm3, %ymm11
vpmovsxbw 0x74c60(%rip), %ymm14 # 0x5f9a74
xorl %r11d, %r11d
movq 0xa0(%rsp), %rcx
movq 0x98(%rsp), %r8
movswq 0x10(%r14,%r11,2), %r13
movq 0x88(%rsp), %r9
vmovd (%r9,%r13,4), %xmm2
movswq 0x12(%r14,%r11,2), %r13
movq 0x20(%rsp), %r9
vpinsrw $0x1, (%r9,%r13,4), %xmm2, %xmm2
movswq 0x14(%r14,%r11,2), %r13
movq 0x28(%rsp), %r9
vpinsrw $0x2, (%r9,%r13,4), %xmm2, %xmm2
movswq 0x16(%r14,%r11,2), %r13
movq 0x30(%rsp), %r9
vpinsrw $0x3, (%r9,%r13,4), %xmm2, %xmm2
movswq 0x18(%r14,%r11,2), %r13
movq 0x38(%rsp), %r9
vpinsrw $0x4, (%r9,%r13,4), %xmm2, %xmm2
movswq 0x1a(%r14,%r11,2), %r13
movq 0x40(%rsp), %r9
vpinsrw $0x5, (%r9,%r13,4), %xmm2, %xmm2
movswq 0x1c(%r14,%r11,2), %r13
movq 0x48(%rsp), %r9
vpinsrw $0x6, (%r9,%r13,4), %xmm2, %xmm2
movswq 0x1e(%r14,%r11,2), %r13
movq 0xb0(%rsp), %r9
vpinsrw $0x7, (%r9,%r13,4), %xmm2, %xmm2
movswq (%r14,%r11,2), %r13
vmovd (%rax,%r13,4), %xmm4
movswq 0x2(%r14,%r11,2), %r13
vpinsrw $0x1, (%r12,%r13,4), %xmm4, %xmm4
movswq 0x4(%r14,%r11,2), %r13
vpinsrw $0x2, (%r15,%r13,4), %xmm4, %xmm4
movswq 0x6(%r14,%r11,2), %r13
vpinsrw $0x3, (%r10,%r13,4), %xmm4, %xmm4
movswq 0x8(%r14,%r11,2), %r13
vpinsrw $0x4, (%rdi,%r13,4), %xmm4, %xmm4
movswq 0xa(%r14,%r11,2), %r13
vpinsrw $0x5, (%rsi,%r13,4), %xmm4, %xmm4
movswq 0xc(%r14,%r11,2), %r13
movq 0x78(%rsp), %r9
vpinsrw $0x6, (%r9,%r13,4), %xmm4, %xmm4
movswq 0xe(%r14,%r11,2), %r13
movq 0x80(%rsp), %r9
vpinsrw $0x7, (%r9,%r13,4), %xmm4, %xmm4
vextracti128 $0x1, %ymm7, %xmm6
vpalignr $0x2, %ymm7, %ymm6, %ymm6 # ymm6 = ymm7[2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm6[0,1],ymm7[18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm6[16,17]
vpbroadcastw 0x1e(%rcx,%r11,2), %ymm8
vpblendw $0x80, %ymm8, %ymm6, %ymm8 # ymm8 = ymm6[0,1,2,3,4,5,6],ymm8[7],ymm6[8,9,10,11,12,13,14],ymm8[15]
vinserti128 $0x1, %xmm2, %ymm4, %ymm2
vpaddsw %ymm2, %ymm15, %ymm2
vpblendd $0xf0, %ymm8, %ymm6, %ymm15 # ymm15 = ymm6[0,1,2,3],ymm8[4,5,6,7]
vextracti128 $0x1, %ymm11, %xmm4
vpalignr $0x2, %ymm11, %ymm4, %ymm4 # ymm4 = ymm11[2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm4[0,1],ymm11[18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm4[16,17]
vpbroadcastw 0x1e(%r8,%r11,2), %ymm6
vpblendw $0x80, %ymm6, %ymm4, %ymm6 # ymm6 = ymm4[0,1,2,3,4,5,6],ymm6[7],ymm4[8,9,10,11,12,13,14],ymm6[15]
vpblendd $0xf0, %ymm6, %ymm4, %ymm4 # ymm4 = ymm4[0,1,2,3],ymm6[4,5,6,7]
vmovdqa 0x400(%rsp), %ymm5
vpsubsw %ymm5, %ymm15, %ymm6
vmovdqa 0x3e0(%rsp), %ymm8
vpsubsw %ymm8, %ymm4, %ymm9
vpmaxsw %ymm6, %ymm9, %ymm11
vpsubsw %ymm5, %ymm7, %ymm10
vpsubsw %ymm8, %ymm1, %ymm12
vpmaxsw %ymm12, %ymm10, %ymm1
vpmaxsw 0x74734(%rip), %ymm2, %ymm8 # 0x5f96e0
vpmaxsw %ymm1, %ymm11, %ymm2
vpmaxsw %ymm2, %ymm8, %ymm4
vpcmpeqw 0x74ae4(%rip), %ymm14, %ymm2 # 0x5f9aa0
vpandn %ymm4, %ymm2, %ymm7
vpblendvb %ymm2, %ymm3, %ymm11, %ymm11
cmpq $0x10, %r11
jb 0x584ff8
vmovdqa 0x240(%rsp), %ymm3
vpminsw %ymm7, %ymm3, %ymm3
vmovdqa %ymm3, 0x240(%rsp)
vmovdqa 0x260(%rsp), %ymm3
vpmaxsw %ymm7, %ymm3, %ymm3
vmovdqa %ymm3, 0x260(%rsp)
vpcmpeqw %ymm7, %ymm8, %ymm8
vpcmpeqw %ymm7, %ymm11, %ymm5
vmovdqa 0x200(%rsp), %ymm3
vpsubw %ymm5, %ymm3, %ymm5
vpcmpgtw 0x746cb(%rip), %ymm7, %ymm3 # 0x5f96e0
vpand 0x3a0(%rsp), %ymm3, %ymm3
vpblendvb %ymm8, %ymm3, %ymm5, %ymm3
vpcmpgtw %ymm12, %ymm10, %ymm5
vpcmpgtw %ymm9, %ymm6, %ymm6
vmovdqa 0x340(%rsp), %ymm8
vpblendvb %ymm6, 0x360(%rsp), %ymm8, %ymm6
vmovdqa 0x1c0(%rsp), %ymm8
vpblendvb %ymm5, 0x380(%rsp), %ymm8, %ymm5
vpor %ymm5, %ymm6, %ymm5
vpor %ymm3, %ymm5, %ymm6
movq 0x70(%rsp), %rcx
movq 0x10(%rcx), %r13
movq (%r13), %r13
vextracti128 $0x1, %ymm6, %xmm9
cmpq %rbx, %r11
jae 0x585088
movq 0x138(%rsp), %rcx
addq %r13, %rcx
vpextrb $0xe, %xmm9, (%r11,%rcx)
cmpq %rdx, 0xc0(%rsp)
setae %cl
leaq -0x1(%r11), %r8
cmpq %rbx, %r8
setae %r8b
orb %cl, %r8b
jne 0x5850b5
movq 0x140(%rsp), %rcx
addq %r13, %rcx
vpextrb $0xc, %xmm9, (%r11,%rcx)
cmpq %rdx, 0xb8(%rsp)
jae 0x5850eb
leaq -0x2(%r11), %rcx
cmpq $0x2, %r11
setae %r8b
cmpq %rbx, %rcx
setl %cl
andb %r8b, %cl
cmpb $0x1, %cl
jne 0x5850eb
movq 0xc8(%rsp), %rcx
addq %r13, %rcx
vpextrb $0xa, %xmm9, (%r11,%rcx)
cmpq %rdx, 0x90(%rsp)
jae 0x585121
leaq -0x3(%r11), %rcx
cmpq $0x3, %r11
setae %r8b
cmpq %rbx, %rcx
setl %cl
andb %r8b, %cl
cmpb $0x1, %cl
jne 0x585121
movq 0xd0(%rsp), %rcx
addq %r13, %rcx
vpextrb $0x8, %xmm9, (%r11,%rcx)
cmpq %rdx, 0x1b8(%rsp)
jae 0x585157
leaq -0x4(%r11), %rcx
cmpq $0x4, %r11
setae %r8b
cmpq %rbx, %rcx
setl %cl
andb %r8b, %cl
cmpb $0x1, %cl
jne 0x585157
movq 0xd8(%rsp), %rcx
addq %r13, %rcx
vpextrb $0x6, %xmm9, (%r11,%rcx)
cmpq %rdx, 0x1b0(%rsp)
jae 0x58518d
leaq -0x5(%r11), %rcx
cmpq $0x5, %r11
setae %r8b
cmpq %rbx, %rcx
setl %cl
andb %r8b, %cl
cmpb $0x1, %cl
jne 0x58518d
movq 0xe0(%rsp), %rcx
addq %r13, %rcx
vpextrb $0x4, %xmm9, (%r11,%rcx)
cmpq %rdx, 0x1a8(%rsp)
jae 0x5851c3
leaq -0x6(%r11), %rcx
cmpq $0x6, %r11
setae %r8b
cmpq %rbx, %rcx
setl %cl
andb %r8b, %cl
cmpb $0x1, %cl
jne 0x5851c3
movq 0xf8(%rsp), %rcx
addq %r13, %rcx
vpextrb $0x2, %xmm9, (%r11,%rcx)
cmpq %rdx, 0x1a0(%rsp)
jae 0x5851f9
leaq -0x7(%r11), %rcx
cmpq $0x7, %r11
setae %r8b
cmpq %rbx, %rcx
setl %cl
andb %r8b, %cl
cmpb $0x1, %cl
jne 0x5851f9
movq 0x100(%rsp), %rcx
addq %r13, %rcx
vpextrb $0x0, %xmm9, (%r11,%rcx)
cmpq %rdx, 0x198(%rsp)
jae 0x58522f
leaq -0x8(%r11), %rcx
cmpq $0x8, %r11
setae %r8b
cmpq %rbx, %rcx
setl %cl
andb %r8b, %cl
cmpb $0x1, %cl
jne 0x58522f
movq 0xe8(%rsp), %rcx
addq %r13, %rcx
vpextrb $0xe, %xmm6, (%r11,%rcx)
cmpq %rdx, 0x190(%rsp)
jae 0x585265
leaq -0x9(%r11), %rcx
cmpq $0x9, %r11
setae %r8b
cmpq %rbx, %rcx
setl %cl
andb %r8b, %cl
cmpb $0x1, %cl
jne 0x585265
movq 0xf0(%rsp), %rcx
addq %r13, %rcx
vpextrb $0xc, %xmm6, (%r11,%rcx)
cmpq %rdx, 0x188(%rsp)
jae 0x58529b
leaq -0xa(%r11), %rcx
cmpq $0xa, %r11
setae %r8b
cmpq %rbx, %rcx
setl %cl
andb %r8b, %cl
cmpb $0x1, %cl
jne 0x58529b
movq 0x108(%rsp), %rcx
addq %r13, %rcx
vpextrb $0xa, %xmm6, (%r11,%rcx)
cmpq %rdx, 0x180(%rsp)
jae 0x5852d1
leaq -0xb(%r11), %rcx
cmpq $0xb, %r11
setae %r8b
cmpq %rbx, %rcx
setl %cl
andb %r8b, %cl
cmpb $0x1, %cl
jne 0x5852d1
movq 0x110(%rsp), %rcx
addq %r13, %rcx
vpextrb $0x8, %xmm6, (%r11,%rcx)
cmpq %rdx, 0x178(%rsp)
jae 0x585307
leaq -0xc(%r11), %rcx
cmpq $0xc, %r11
setae %r8b
cmpq %rbx, %rcx
setl %cl
andb %r8b, %cl
cmpb $0x1, %cl
jne 0x585307
movq 0x118(%rsp), %rcx
addq %r13, %rcx
vpextrb $0x6, %xmm6, (%r11,%rcx)
cmpq %rdx, 0x170(%rsp)
jae 0x58533d
leaq -0xd(%r11), %rcx
cmpq $0xd, %r11
setae %r8b
cmpq %rbx, %rcx
setl %cl
andb %r8b, %cl
cmpb $0x1, %cl
jne 0x58533d
movq 0x120(%rsp), %rcx
addq %r13, %rcx
vpextrb $0x4, %xmm6, (%r11,%rcx)
cmpq %rdx, 0x168(%rsp)
jae 0x585373
leaq -0xe(%r11), %rcx
cmpq $0xe, %r11
setae %r8b
cmpq %rbx, %rcx
setl %cl
andb %r8b, %cl
cmpb $0x1, %cl
jne 0x585373
movq 0x128(%rsp), %rcx
addq %r13, %rcx
vpextrb $0x2, %xmm6, (%r11,%rcx)
cmpq %rdx, 0x160(%rsp)
jae 0x5853a3
leaq -0xf(%r11), %rcx
cmpq $0xf, %r11
setb %r8b
cmpq %rbx, %rcx
setge %cl
orb %r8b, %cl
jne 0x5853a3
addq 0x130(%rsp), %r13
vpextrb $0x0, %xmm6, (%r11,%r13)
movq 0xa0(%rsp), %rcx
vpextrw $0x0, %xmm7, (%rcx,%r11,2)
movq 0x98(%rsp), %r8
vpextrw $0x0, %xmm11, (%r8,%r11,2)
vmovdqa 0x3c0(%rsp), %ymm3
vpcmpgtw %ymm14, %ymm3, %ymm3
vpand %ymm3, %ymm13, %ymm3
vpsraw $0xf, %ymm14, %ymm5
vpandn %ymm3, %ymm5, %ymm3
vextracti128 $0x1, %ymm3, %xmm5
vpacksswb %xmm5, %xmm3, %xmm5
vmovdqa 0x2e0(%rsp), %ymm6
vpcmpeqw %ymm6, %ymm7, %ymm8
vpcmpgtw %ymm6, %ymm7, %ymm9
vpand %ymm3, %ymm9, %ymm10
vextracti128 $0x1, %ymm10, %xmm12
vpacksswb %xmm12, %xmm10, %xmm12
vpblendvb %ymm10, %ymm4, %ymm6, %ymm4
vmovdqa 0x280(%rsp), %ymm6
vpcmpgtw %ymm14, %ymm6, %ymm10
vpand %ymm10, %ymm8, %ymm8
vextracti128 $0x1, %ymm8, %xmm10
vpacksswb %xmm10, %xmm8, %xmm10
vpblendvb %xmm10, %xmm5, %xmm12, %xmm5
vmovdqa 0x2c0(%rsp), %ymm10
vpblendvb %ymm2, %ymm10, %ymm1, %ymm1
vmovdqa %ymm4, 0x2e0(%rsp)
vpmovsxbw %xmm5, %ymm2
vpblendvb %ymm2, 0x1e0(%rsp), %ymm0, %ymm0
vpor %ymm9, %ymm8, %ymm2
vpand %ymm2, %ymm3, %ymm2
vmovdqa %ymm10, %ymm3
vpblendvb %ymm2, %ymm14, %ymm6, %ymm2
vmovdqa %ymm2, 0x280(%rsp)
vpaddsw 0x200(%rsp), %ymm14, %ymm14
incq %r11
cmpq %r11, 0x158(%rsp)
jne 0x584e27
vmovdqa 0x1e0(%rsp), %ymm1
vpaddsw 0x1c0(%rsp), %ymm1, %ymm1
vmovdqa %ymm1, 0x1e0(%rsp)
movq 0x68(%rsp), %r10
addq $0x10, %r10
movq 0x148(%rsp), %rax
addq %rax, 0x138(%rsp)
addq %rax, 0x140(%rsp)
addq %rax, 0x130(%rsp)
addq %rax, 0x128(%rsp)
addq %rax, 0x120(%rsp)
addq %rax, 0x118(%rsp)
addq %rax, 0x110(%rsp)
addq %rax, 0x108(%rsp)
addq %rax, 0xf0(%rsp)
addq %rax, 0xe8(%rsp)
addq %rax, 0x100(%rsp)
addq %rax, 0xf8(%rsp)
addq %rax, 0xe0(%rsp)
addq %rax, 0xd8(%rsp)
addq %rax, 0xd0(%rsp)
addq %rax, 0xc8(%rsp)
cmpq %rdx, %r10
movq 0x10(%rbp), %r15
movl 0x54(%rsp), %r12d
jb 0x5849c6
movl 0x50(%rsp), %r8d
jmp 0x58556f
vmovdqa %ymm3, 0x260(%rsp)
vmovdqa 0x2a0(%rsp), %ymm1
vmovdqa %ymm1, 0x240(%rsp)
vmovdqa %ymm0, 0x220(%rsp)
xorl %edx, %edx
xorl %eax, %eax
xorl %ecx, %ecx
movzwl 0x2e0(%rsp,%rdx,2), %esi
cmpw %r8w, %si
jle 0x5855a1
movswl 0x220(%rsp,%rdx,2), %eax
movswl 0x280(%rsp,%rdx,2), %ecx
movl %esi, %r8d
jmp 0x5855cd
jne 0x5855cd
movswl 0x280(%rsp,%rdx,2), %esi
cmpl %esi, %ecx
jle 0x5855bb
movswl 0x220(%rsp,%rdx,2), %eax
movl %esi, %ecx
jmp 0x5855cd
jne 0x5855cd
movswl 0x220(%rsp,%rdx,2), %edi
cmpl %edi, %eax
cmovgl %esi, %ecx
cmovgel %edi, %eax
incq %rdx
cmpl $0x10, %edx
jne 0x58557e
vpcmpgtw 0x240(%rsp), %ymm3, %ymm0
vmovdqa 0x260(%rsp), %ymm1
vpcmpgtw 0x2a0(%rsp), %ymm1, %ymm1
vpor %ymm1, %ymm0, %ymm0
vpmovmskb %ymm0, %edx
testl %edx, %edx
movq 0x70(%rsp), %rsi
je 0x58560c
orb $0x40, 0xc(%rsi)
xorl %r8d, %r8d
xorl %ecx, %ecx
xorl %eax, %eax
movswl %r8w, %edx
movl %edx, (%rsi)
movl %eax, 0x4(%rsi)
movl %ecx, 0x8(%rsi)
movq 0x98(%rsp), %rdi
vzeroupper
callq 0x2094b5
movq 0xa0(%rsp), %rdi
callq 0x2094b5
movq %r14, %rdi
callq 0x2094b5
cmpl $0x0, 0x30(%r15)
jne 0x585651
movq 0xa8(%rsp), %rdi
callq 0x2094b5
movq 0x70(%rsp), %rax
jmp 0x585689
callq 0x1f9a7d
jmp 0x585687
callq 0x1f9a57
jmp 0x585687
callq 0x1f9a31
jmp 0x585687
callq 0x1f9a0b
jmp 0x585687
callq 0x1f99e5
jmp 0x585687
callq 0x1f99bf
jmp 0x585687
callq 0x1f9999
xorl %eax, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq