// File: /workspace/github_c_makefile_star2_O1/nh13[P]ksw/src/parasail/src/nw_trace_diag_avx2_256_16.c
// Function: parasail_nw_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 vOpen;
    __m256i vGap;
    __m256i vOne;
    __m256i vN;
    __m256i vGapN;
    __m256i vNegOne;
    __m256i vI;
    __m256i vJreset;
    __m256i vMax;
    __m256i vILimit;
    __m256i vILimit1;
    __m256i vJLimit;
    __m256i vJLimit1;
    __m256i vIBoundary;
    __m256i vTDiag;
    __m256i vTIns;
    __m256i vTDel;
    __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 = s1Len-1;
    end_ref = s2Len-1;
    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);
    vOpen = _mm256_set1_epi16(open);
    vGap  = _mm256_set1_epi16(gap);
    vOne = _mm256_set1_epi16(1);
    vN = _mm256_set1_epi16(N);
    vGapN = _mm256_set1_epi16(gap*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);
    vMax = vNegInf;
    vILimit = _mm256_set1_epi16(s1Len);
    vILimit1 = _mm256_subs_epi16(vILimit, vOne);
    vJLimit = _mm256_set1_epi16(s2Len);
    vJLimit1 = _mm256_subs_epi16(vJLimit, vOne);
    vIBoundary = _mm256_set_epi16(
            -open-0*gap,
            -open-1*gap,
            -open-2*gap,
            -open-3*gap,
            -open-4*gap,
            -open-5*gap,
            -open-6*gap,
            -open-7*gap,
            -open-8*gap,
            -open-9*gap,
            -open-10*gap,
            -open-11*gap,
            -open-12*gap,
            -open-13*gap,
            -open-14*gap,
            -open-15*gap);
    vTDiag = _mm256_set1_epi16(PARASAIL_DIAG);
    vTIns = _mm256_set1_epi16(PARASAIL_INS);
    vTDel = _mm256_set1_epi16(PARASAIL_DEL);
    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_NW | 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] = -open - j*gap;
        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;
    }
    H_pr[-1] = 0; /* upper left corner */

    /* iterate over query sequence */
    for (i=0; i<s1Len; i+=N) {
        __m256i vNH = vNegInf;
        __m256i vWH = vNegInf;
        __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))];
        vNH = _mm256_srli_si256_rpl(vNH, 2);
        vNH = _mm256_insert_epi16_rpl(vNH, H_pr[-1], 15);
        vWH = _mm256_srli_si256_rpl(vWH, 2);
        vWH = _mm256_insert_epi16_rpl(vWH, -open - i*gap, 15);
        H_pr[-1] = -open - (i+N)*gap;
        /* 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);
            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_blendv_epi8(vWH, vIBoundary, cond);
                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 case1 = _mm256_cmpeq_epi16(vWH, vNWH);
                __m256i case2 = _mm256_cmpeq_epi16(vWH, vF);
                __m256i vT = _mm256_blendv_epi8(
                        _mm256_blendv_epi8(vTIns, vTDel, case2),
                        vTDiag,
                        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
               last table value at the i,j bound */
            {
                __m256i cond_valid_I = _mm256_cmpeq_epi16(vI, vILimit1);
                __m256i cond_valid_J = _mm256_cmpeq_epi16(vJ, vJLimit1);
                __m256i cond_all = _mm256_and_si256(cond_valid_I, cond_valid_J);
                vMax = _mm256_blendv_epi8(vMax, vWH, cond_all);
            }
            vJ = _mm256_adds_epi16(vJ, vOne);
        }
        vI = _mm256_adds_epi16(vI, vN);
        vIBoundary = _mm256_subs_epi16(vIBoundary, vGapN);
    }

    /* max in vMax */
    for (i=0; i<N; ++i) {
        int16_t value;
        value = (int16_t) _mm256_extract_epi16_rpl(vMax, 15);
        if (value > score) {
            score = value;
        }
        vMax = _mm256_slli_si256_rpl(vMax, 2);
    }

    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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3c8, %rsp            # imm = 0x3C8
testq %rdx, %rdx
je 0x582cb3
movl %ecx, %r14d
testl %ecx, %ecx
jle 0x582cba
movl %r8d, %r13d
testl %r8d, %r8d
js 0x582cc1
testl %r9d, %r9d
js 0x582cc8
movq 0x400(%rsp), %r12
testq %r12, %r12
je 0x582ccf
movq %rdx, %r15
movl 0x30(%r12), %eax
testl %eax, %eax
jne 0x581b0a
testq %rdi, %rdi
je 0x582cd6
movl %esi, %ebx
testl %esi, %esi
jle 0x582cdd
testl %eax, %eax
je 0x581b0f
movl 0x34(%r12), %ebx
movq %rdi, 0x1c0(%rsp)
movq %r9, 0xa0(%rsp)
movl %r13d, %edx
negl %edx
movl 0x20(%r12), %eax
movl %eax, %ecx
negl %ecx
movl %edx, 0x14(%rsp)
cmpl %edx, %eax
cmovgl %r13d, %ecx
movl %ecx, 0xc(%rsp)
movw $0x7ffe, %bp            # imm = 0x7FFE
subw 0x1c(%r12), %bp
movl $0x20, %edx
movl $0x1, %ecx
movl %ebx, %edi
movl %r14d, %esi
callq 0x2097d1
testq %rax, %rax
je 0x582ce2
movl %r13d, 0xb0(%rsp)
movq %r15, 0xb8(%rsp)
movq %rbx, 0x48(%rsp)
movq %rax, 0x68(%rsp)
orl $0x10281001, 0xc(%rax)  # imm = 0x10281001
leal 0x1e(%r14), %r13d
movl $0x20, %edi
movq %r13, %rsi
callq 0x2094cd
movq %rax, %r15
movl $0x20, %edi
movq %r13, %rsi
callq 0x2094cd
movq %rax, %rbx
movl $0x20, %edi
movq %r13, %rsi
callq 0x2094cd
testq %r15, %r15
sete %dl
testq %rbx, %rbx
sete %cl
orb %dl, %cl
movq %rax, 0x90(%rsp)
testq %rax, %rax
sete %al
orb %cl, %al
jne 0x582ce2
cmpl $0x0, 0x30(%r12)
movq %rbx, 0x88(%rsp)
je 0x581bf1
xorl %eax, %eax
movq 0x48(%rsp), %r13
jmp 0x581c68
movq 0x48(%rsp), %r13
leal 0xf(%r13), %ebx
movslq %ebx, %rsi
movl $0x20, %edi
callq 0x2094cd
testq %rax, %rax
je 0x582ce2
testl %r13d, %r13d
movq 0x1c0(%rsp), %r8
jle 0x581c3c
movq 0x10(%r12), %rdi
movl %r13d, %ecx
xorl %edx, %edx
movzbl (%r8,%rdx), %esi
movzwl (%rdi,%rsi,4), %esi
movw %si, (%rax,%rdx,2)
incq %rdx
cmpq %rdx, %rcx
jne 0x581c27
movslq %r13d, %rdx
leal 0x1(%r13), %ecx
cmpl %ecx, %ebx
cmovgl %ebx, %ecx
leaq (%rax,%rdx,2), %rdi
movl %r13d, %edx
notl %edx
addl %ecx, %edx
leaq 0x2(,%rdx,2), %rdx
xorl %esi, %esi
movq %rax, %rbx
callq 0x19e090
movq %rbx, %rax
movq %rax, 0x98(%rsp)
leal 0xf(%r14), %ebx
leal -0x1(%r13), %eax
movl %eax, 0x10(%rsp)
vmovd %ebp, %xmm0
movl 0xb0(%rsp), %esi
vmovd %esi, %xmm1
movq 0xa0(%rsp), %rdi
movl 0x14(%rsp), %r8d
movl %r8d, %eax
subl %edi, %eax
subl %edi, %eax
leal (,%rdi,4), %ecx
imull $0xfff9, %edi, %edx     # imm = 0xFFF9
subl %esi, %edx
vmovd %edx, %xmm2
imull $0xfffa, %edi, %edx     # imm = 0xFFFA
subl %esi, %edx
vpinsrw $0x1, %edx, %xmm2, %xmm2
imull $0xfffb, %edi, %edx     # imm = 0xFFFB
subl %esi, %edx
vpinsrw $0x2, %edx, %xmm2, %xmm2
movl %r8d, %edx
subl %ecx, %edx
imull $0xfffd, %edi, %ecx     # imm = 0xFFFD
vpinsrw $0x3, %edx, %xmm2, %xmm2
subl %esi, %ecx
leal (,%rdi,8), %edx
vpinsrw $0x4, %ecx, %xmm2, %xmm2
movl %r8d, %ecx
subl %edx, %ecx
movl %r8d, %edx
subl %edi, %edx
vpinsrw $0x5, %eax, %xmm2, %xmm2
imull $0xfff7, %edi, %eax     # imm = 0xFFF7
subl %esi, %eax
vpinsrw $0x6, %edx, %xmm2, %xmm2
imull $0xfff1, %edi, %edx     # imm = 0xFFF1
subl %esi, %edx
vmovd %edx, %xmm3
imull $0xfff2, %edi, %edx     # imm = 0xFFF2
subl %esi, %edx
vpinsrw $0x1, %edx, %xmm3, %xmm3
imull $0xfff3, %edi, %edx     # imm = 0xFFF3
subl %esi, %edx
vpinsrw $0x2, %edx, %xmm3, %xmm3
imull $0xfff4, %edi, %edx     # imm = 0xFFF4
subl %esi, %edx
vpinsrw $0x3, %edx, %xmm3, %xmm3
imull $0xfff5, %edi, %edx     # imm = 0xFFF5
subl %esi, %edx
vpinsrw $0x4, %edx, %xmm3, %xmm3
imull $0xfff6, %edi, %edx     # imm = 0xFFF6
subl %esi, %edx
leal -0x1(%r14), %esi
movl %esi, 0xc4(%rsp)
movl 0xc(%rsp), %esi
addl $0xffff8001, %esi       # imm = 0xFFFF8001
movl %esi, 0xc(%rsp)
vmovd %esi, %xmm4
vpbroadcastw %xmm4, %ymm4
vmovdqu %ymm4, 0x260(%rsp)
vpbroadcastw %xmm0, %ymm0
vmovdqu %ymm0, 0x200(%rsp)
vpbroadcastw %xmm1, %ymm0
vmovdqu %ymm0, 0x3a0(%rsp)
vmovd %edi, %xmm0
vpbroadcastw %xmm0, %ymm4
vmovd %r13d, %xmm0
vpbroadcastw %xmm0, %ymm0
vpcmpeqd %ymm1, %ymm1, %ymm1
vpaddsw %ymm1, %ymm0, %ymm0
vmovdqu %ymm0, 0x2c0(%rsp)
vmovd %r14d, %xmm0
vpbroadcastw %xmm0, %ymm0
vpaddsw %ymm1, %ymm0, %ymm0
vmovdqu %ymm0, 0x360(%rsp)
vpinsrw $0x7, %r8d, %xmm2, %xmm0
vpinsrw $0x5, %edx, %xmm3, %xmm1
vpinsrw $0x6, %eax, %xmm1, %xmm1
vpinsrw $0x7, %ecx, %xmm1, %xmm1
vmovdqu %ymm4, 0x380(%rsp)
vpsllw $0x4, %ymm4, %ymm2
vmovdqu %ymm2, 0x2a0(%rsp)
vinserti128 $0x1, %xmm0, %ymm1, %ymm0
vmovdqu %ymm0, 0x1c0(%rsp)
movq 0x10(%r12), %rax
cmpl $0x2, %r14d
movl $0x1, %r12d
cmovgel %r14d, %r12d
xorl %ecx, %ecx
movq 0xb8(%rsp), %rsi
movzbl (%rsi,%rcx), %edx
movzwl (%rax,%rdx,4), %edx
movw %dx, 0x1e(%r15,%rcx,2)
incq %rcx
cmpq %rcx, %r12
jne 0x581e28
vpxor %xmm0, %xmm0, %xmm0
vmovdqu %xmm0, 0xe(%r15)
vmovdqu %xmm0, (%r15)
movl %r14d, %ebp
leal 0x1(%r14), %eax
cmpl %eax, %ebx
cmovgl %ebx, %eax
leaq (%r15,%rbp,2), %rdi
addq $0x1e, %rdi
movl %r14d, %ecx
notl %ecx
addl %eax, %ecx
leaq 0x2(,%rcx,2), %rdx
xorl %r13d, %r13d
xorl %esi, %esi
vzeroupper
callq 0x19e090
movl 0x14(%rsp), %eax
movl 0xc(%rsp), %edx
movq 0xa0(%rsp), %rcx
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdi
movw %ax, 0x1e(%rsi,%r13,2)
subl %ecx, %eax
movw %dx, 0x1e(%rdi,%r13,2)
incq %r13
cmpq %r13, %r12
jne 0x581e9d
xorl %eax, %eax
movw %dx, (%rsi,%rax,2)
movw %dx, (%rdi,%rax,2)
incq %rax
cmpq $0xf, %rax
jne 0x581eb5
leaq 0xf(%rbp), %rax
movq 0x400(%rsp), %r12
movq 0x98(%rsp), %r11
vmovdqu 0x260(%rsp), %ymm12
movq 0x48(%rsp), %rcx
movw %dx, (%rsi,%rax,2)
movw %dx, (%rdi,%rax,2)
incq %rax
incl %r14d
cmpl %r14d, %ebx
jg 0x581ee8
movw $0x0, 0x1c(%rsi)
testl %ecx, %ecx
jle 0x582bfb
vextracti128 $0x1, %ymm12, %xmm0
vpalignr $0x2, %ymm12, %ymm0, %ymm0 # ymm0 = ymm12[2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm0[0,1],ymm12[18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm0[16,17]
vmovdqu %ymm0, 0x280(%rsp)
cmpl $0x2, %ebx
movl $0x1, %eax
cmovgel %ebx, %eax
movq %rax, 0x158(%rsp)
movl %ecx, %ecx
movq %rbp, %rsi
shlq $0x4, %rsi
leaq -0x1(%rbp), %rax
movq %rax, 0x140(%rsp)
leaq (,%rbp,4), %rax
addq %rbp, %rax
leaq (%rax,%rax,2), %rdx
addq $-0xf, %rdx
movq %rdx, 0x130(%rsp)
leaq (,%rbp,2), %rdx
negq %rdx
movq %rsi, 0x148(%rsp)
addq %rsi, %rdx
addq $-0xe, %rdx
movq %rdx, 0x128(%rsp)
leaq (%rbp,%rbp,2), %rdx
leaq -0xd(%rbp,%rdx,4), %rsi
movq %rsi, 0x120(%rsp)
leaq -0xc(,%rdx,4), %rsi
movq %rsi, 0x118(%rsp)
leaq -0xb(%rbp,%rax,2), %rsi
movq %rsi, 0x110(%rsp)
leaq -0xa(%rax,%rax), %rax
movq %rax, 0x108(%rsp)
leaq -0x9(%rbp,%rbp,8), %rax
movq %rax, 0x100(%rsp)
leaq (,%rbp,8), %rax
leaq -0x8(,%rbp,8), %rsi
movq %rsi, 0xf0(%rsp)
subq %rbp, %rax
addq $-0x7, %rax
movq %rax, 0xf8(%rsp)
leaq -0x6(,%rdx,2), %rax
movq %rax, 0xe8(%rsp)
vpbroadcastw 0x795a2(%rip), %ymm4 # 0x5fb5ae
leaq -0x5(%rbp,%rbp,4), %rax
movq %rax, 0xe0(%rsp)
vpbroadcastw 0x7958e(%rip), %ymm0 # 0x5fb5b0
vmovdqu %ymm0, 0x340(%rsp)
vpmovsxbw 0x77a30(%rip), %ymm5 # 0x5f9a64
vpbroadcastw 0x79575(%rip), %ymm0 # 0x5fb5b2
vmovdqu %ymm0, 0x320(%rsp)
vpbroadcastw 0x79565(%rip), %ymm9 # 0x5fb5b4
vpbroadcastw 0x7955e(%rip), %ymm0 # 0x5fb5b6
vmovdqu %ymm0, 0x300(%rsp)
vpbroadcastw 0x7954e(%rip), %ymm0 # 0x5fb5b8
vmovdqu %ymm0, 0x2e0(%rsp)
vmovdqu 0x200(%rsp), %ymm0
vmovdqu %ymm0, 0x220(%rsp)
vmovdqu %ymm12, 0x240(%rsp)
vmovdqa %ymm12, %ymm3
leaq -0x4(,%rbp,4), %rax
movq %rax, 0xd8(%rsp)
leaq -0x3(%rbp,%rbp,2), %rax
movq %rax, 0xd0(%rsp)
leaq -0x2(,%rbp,2), %rax
movq %rax, 0xc8(%rsp)
movq $0x0, 0x138(%rsp)
xorl %ebx, %ebx
movl 0x30(%r12), %r9d
movl %ebx, %eax
testl %r9d, %r9d
movl 0x10(%rsp), %r10d
jne 0x5820e3
movswl (%r11,%rbx,2), %eax
movl %eax, 0xa8(%rsp)
movq %rbx, %rax
orq $0x1, %rax
testl %r9d, %r9d
je 0x582101
cmpq %rcx, %rax
movl %r10d, %edx
cmovbl %eax, %edx
jmp 0x582106
movswl (%r11,%rax,2), %edx
movl %edx, 0x40(%rsp)
movq %rbx, %rdx
orq $0x2, %rdx
testl %r9d, %r9d
je 0x582121
cmpq %rcx, %rdx
movl %r10d, %esi
cmovbl %edx, %esi
jmp 0x582126
movswl (%r11,%rdx,2), %esi
movl %esi, 0x38(%rsp)
movq %rbx, %rsi
orq $0x3, %rsi
testl %r9d, %r9d
je 0x582141
cmpq %rcx, %rsi
movl %r10d, %edi
cmovbl %esi, %edi
jmp 0x582146
movswl (%r11,%rsi,2), %edi
movl %edi, 0x30(%rsp)
movq %rbx, %rdi
orq $0x4, %rdi
testl %r9d, %r9d
je 0x582162
cmpq %rcx, %rdi
movl %r10d, %r8d
cmovbl %edi, %r8d
jmp 0x582167
movswl (%r11,%rdi,2), %r8d
movl %r8d, 0x28(%rsp)
movq %rbx, %r8
orq $0x5, %r8
testl %r9d, %r9d
je 0x582184
cmpq %rcx, %r8
movl %r10d, %r14d
cmovbl %r8d, %r14d
jmp 0x582189
movswl (%r11,%r8,2), %r14d
movl %r14d, 0x20(%rsp)
movq %rax, 0x48(%rsp)
movq %rbx, %r14
orq $0x6, %r14
testl %r9d, %r9d
movq %rsi, 0xb0(%rsp)
je 0x5821b3
cmpq %rcx, %r14
movl %r10d, %eax
cmovbl %r14d, %eax
jmp 0x5821b8
movswl (%r11,%r14,2), %eax
movl %eax, 0x80(%rsp)
movq %r8, 0x1b0(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x150(%rsp)
movl 0x18(%r12), %r13d
movq %rbx, %r12
orq $0x7, %r12
testl %r9d, %r9d
je 0x5821f4
movq %r11, %rax
cmpq %rcx, %r12
movl %r10d, %r8d
cmovbl %r12d, %r8d
jmp 0x5821fc
movq %r11, %rax
movswl (%r11,%r12,2), %r8d
movl %r8d, 0x78(%rsp)
movq %rbx, %r11
orq $0x8, %r11
testl %r9d, %r9d
movq %r11, 0x198(%rsp)
je 0x582221
cmpq %rcx, %r11
movl %r10d, %r8d
cmovbl %r11d, %r8d
jmp 0x582226
movswl (%rax,%r11,2), %r8d
movl %r8d, 0x70(%rsp)
movq %r14, 0x1a8(%rsp)
movq %rbx, %r11
orq $0x9, %r11
testl %r9d, %r9d
je 0x58224b
cmpq %rcx, %r11
movl %r10d, %r8d
cmovbl %r11d, %r8d
jmp 0x582250
movswl (%rax,%r11,2), %r8d
movl %r8d, 0x18(%rsp)
movq %rdi, 0x1b8(%rsp)
movq %rbx, %rdi
orq $0xa, %rdi
testl %r9d, %r9d
movq %rdi, 0x188(%rsp)
je 0x582282
cmpq %rcx, %rdi
movl %r10d, %r8d
cmovbl %edi, %r8d
movl %r8d, 0x60(%rsp)
jmp 0x58228a
movswl (%rax,%rdi,2), %edi
movl %edi, 0x60(%rsp)
movq %rbx, %rdi
orq $0xb, %rdi
testl %r9d, %r9d
je 0x5822a7
cmpq %rcx, %rdi
movl %r10d, %r8d
cmovbl %edi, %r8d
movl %r8d, 0x5c(%rsp)
jmp 0x5822af
movswl (%rax,%rdi,2), %esi
movl %esi, 0x5c(%rsp)
movq %rdx, 0xb8(%rsp)
movq %rbx, %rdx
orq $0xc, %rdx
testl %r9d, %r9d
movq %rdx, 0x178(%rsp)
je 0x5822d6
cmpq %rcx, %rdx
movl %r10d, %esi
cmovbl %edx, %esi
jmp 0x5822da
movswl (%rax,%rdx,2), %esi
movq %rbx, %rdx
orq $0xd, %rdx
testl %r9d, %r9d
je 0x5822f2
cmpq %rcx, %rdx
movl %r10d, %r8d
cmovbl %edx, %r8d
jmp 0x5822f7
movswl (%rax,%rdx,2), %r8d
movl %r8d, 0x58(%rsp)
movq %r12, 0x1a0(%rsp)
movq %rbx, 0x1e0(%rsp)
movq %rbx, %r12
orq $0xe, %r12
testl %r9d, %r9d
movq %r12, 0x168(%rsp)
je 0x58232c
cmpq %rcx, %r12
movl %r10d, %r8d
cmovbl %r12d, %r8d
jmp 0x582331
movswl (%rax,%r12,2), %r8d
movl %r8d, 0x54(%rsp)
movq 0x1e0(%rsp), %r12
orq $0xf, %r12
testl %r9d, %r9d
movq %r11, 0x190(%rsp)
movq %rdi, 0x180(%rsp)
movq %rdx, 0x170(%rsp)
movq %r12, 0x160(%rsp)
je 0x582373
cmpq %rcx, %r12
movl %r10d, %r9d
cmovbl %r12d, %r9d
jmp 0x582378
movswl (%rax,%r12,2), %r9d
movl 0xa8(%rsp), %edx
imull %r13d, %edx
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 0x80(%rsp), %eax
imull %r13d, %eax
movl 0x78(%rsp), %r8d
imull %r13d, %r8d
movl 0x70(%rsp), %r12d
imull %r13d, %r12d
movl 0x18(%rsp), %r14d
imull %r13d, %r14d
movl 0x60(%rsp), %edi
imull %r13d, %edi
movl 0x5c(%rsp), %ebx
imull %r13d, %ebx
imull %r13d, %esi
movl 0x58(%rsp), %r11d
imull %r13d, %r11d
movl 0x54(%rsp), %r10d
imull %r13d, %r10d
imull %r13d, %r9d
movl %r9d, 0x18(%rsp)
movslq %edx, %r9
movl %esi, %r13d
movq 0x150(%rsp), %rsi
leaq (%rsi,%r9,4), %rdx
movq %rdx, 0xa8(%rsp)
movslq 0x40(%rsp), %r9
leaq (%rsi,%r9,4), %rdx
movq %rdx, 0x40(%rsp)
movslq 0x38(%rsp), %r9
leaq (%rsi,%r9,4), %rdx
movq %rdx, 0x38(%rsp)
movslq 0x30(%rsp), %r9
leaq (%rsi,%r9,4), %rdx
movq %rdx, 0x30(%rsp)
movslq 0x28(%rsp), %r9
leaq (%rsi,%r9,4), %rdx
movq %rdx, 0x28(%rsp)
movslq 0x20(%rsp), %r9
leaq (%rsi,%r9,4), %rdx
movq %rdx, 0x20(%rsp)
cltq
leaq (%rsi,%rax,4), %rax
movq %rax, 0x80(%rsp)
movslq %r8d, %r8
leaq (%rsi,%r8,4), %rax
movq %rax, 0x78(%rsp)
movslq %r12d, %r9
leaq (%rsi,%r9,4), %rax
movq %rax, 0x70(%rsp)
movslq %r14d, %r9
leaq (%rsi,%r9,4), %rax
movq %rax, 0x60(%rsp)
movslq %edi, %rdi
leaq (%rsi,%rdi,4), %rdi
movslq %ebx, %r9
leaq (%rsi,%r9,4), %r9
movslq %r13d, %rdx
leaq (%rsi,%rdx,4), %rdx
movslq %r11d, %r13
leaq (%rsi,%r13,4), %r13
movslq %r10d, %r12
leaq (%rsi,%r12,4), %r12
movslq 0x18(%rsp), %r10
leaq (%rsi,%r10,4), %rsi
movq 0x1e0(%rsp), %r14
leaq 0x10(%r14), %rax
movq %rax, 0x18(%rsp)
movl %eax, %r10d
movq 0xa0(%rsp), %rax
imull %eax, %r10d
movq 0x88(%rsp), %r8
vpbroadcastw 0x1c(%r8), %ymm0
movl 0x14(%rsp), %r11d
movl %r11d, %ebx
subl %r10d, %ebx
movw %bx, 0x1c(%r8)
imull %eax, %r14d
subl %r14d, %r11d
movq 0x60(%rsp), %r14
vmovd %r11d, %xmm1
vpbroadcastw %xmm1, %ymm1
vmovdqu 0x280(%rsp), %ymm2
vpblendw $0x80, %ymm1, %ymm2, %ymm1 # ymm1 = ymm2[0,1,2,3,4,5,6],ymm1[7],ymm2[8,9,10,11,12,13,14],ymm1[15]
vpblendd $0xf0, %ymm1, %ymm2, %ymm14 # ymm14 = ymm2[0,1,2,3],ymm1[4,5,6,7]
vpblendw $0x80, %ymm0, %ymm2, %ymm0 # ymm0 = ymm2[0,1,2,3,4,5,6],ymm0[7],ymm2[8,9,10,11,12,13,14],ymm0[15]
vpblendd $0xf0, %ymm0, %ymm2, %ymm15 # ymm15 = ymm2[0,1,2,3],ymm0[4,5,6,7]
vmovdqu %ymm5, 0x1e0(%rsp)
vpcmpeqw 0x2c0(%rsp), %ymm5, %ymm13
vpmovsxbw 0x77512(%rip), %ymm8 # 0x5f9a74
vmovdqa %ymm12, %ymm0
vmovdqa %ymm12, %ymm1
xorl %ebx, %ebx
movq 0x90(%rsp), %rax
movswq 0x10(%r15,%rbx,2), %r10
movq 0x78(%rsp), %r11
vmovd (%r11,%r10,4), %xmm2
movswq 0x12(%r15,%rbx,2), %r10
movq 0x80(%rsp), %r11
vpinsrw $0x1, (%r11,%r10,4), %xmm2, %xmm2
movswq 0x14(%r15,%rbx,2), %r10
movq 0x20(%rsp), %r11
vpinsrw $0x2, (%r11,%r10,4), %xmm2, %xmm2
movswq 0x16(%r15,%rbx,2), %r10
movq 0x28(%rsp), %r11
vpinsrw $0x3, (%r11,%r10,4), %xmm2, %xmm2
movswq 0x18(%r15,%rbx,2), %r10
movq 0x30(%rsp), %r11
vpinsrw $0x4, (%r11,%r10,4), %xmm2, %xmm2
movswq 0x1a(%r15,%rbx,2), %r10
movq 0x38(%rsp), %r11
vpinsrw $0x5, (%r11,%r10,4), %xmm2, %xmm2
movswq 0x1c(%r15,%rbx,2), %r10
movq 0x40(%rsp), %r11
vpinsrw $0x6, (%r11,%r10,4), %xmm2, %xmm2
movswq 0x1e(%r15,%rbx,2), %r10
movq 0xa8(%rsp), %r11
vpinsrw $0x7, (%r11,%r10,4), %xmm2, %xmm2
movswq (%r15,%rbx,2), %r10
vmovd (%rsi,%r10,4), %xmm5
movswq 0x2(%r15,%rbx,2), %r10
vpinsrw $0x1, (%r12,%r10,4), %xmm5, %xmm5
movswq 0x4(%r15,%rbx,2), %r10
vpinsrw $0x2, (%r13,%r10,4), %xmm5, %xmm5
movswq 0x6(%r15,%rbx,2), %r10
vpinsrw $0x3, (%rdx,%r10,4), %xmm5, %xmm5
movswq 0x8(%r15,%rbx,2), %r10
vpinsrw $0x4, (%r9,%r10,4), %xmm5, %xmm5
movswq 0xa(%r15,%rbx,2), %r10
vpinsrw $0x5, (%rdi,%r10,4), %xmm5, %xmm5
movswq 0xc(%r15,%rbx,2), %r10
vpinsrw $0x6, (%r14,%r10,4), %xmm5, %xmm5
movswq 0xe(%r15,%rbx,2), %r10
movq 0x70(%rsp), %r11
vpinsrw $0x7, (%r11,%r10,4), %xmm5, %xmm5
vpbroadcastw 0x1e(%r8,%rbx,2), %ymm6
vextracti128 $0x1, %ymm14, %xmm7
vpalignr $0x2, %ymm14, %ymm7, %ymm7 # ymm7 = ymm14[2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm7[0,1],ymm14[18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm7[16,17]
vpblendw $0x80, %ymm6, %ymm7, %ymm6 # ymm6 = ymm7[0,1,2,3,4,5,6],ymm6[7],ymm7[8,9,10,11,12,13,14],ymm6[15]
vinserti128 $0x1, %xmm2, %ymm5, %ymm2
vpaddsw %ymm2, %ymm15, %ymm2
vpblendd $0xf0, %ymm6, %ymm7, %ymm15 # ymm15 = ymm7[0,1,2,3],ymm6[4,5,6,7]
vextracti128 $0x1, %ymm0, %xmm5
vpalignr $0x2, %ymm0, %ymm5, %ymm0 # ymm0 = ymm0[2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm5[0,1],ymm0[18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm5[16,17]
vpbroadcastw 0x1e(%rax,%rbx,2), %ymm5
vpblendw $0x80, %ymm5, %ymm0, %ymm5 # ymm5 = ymm0[0,1,2,3,4,5,6],ymm5[7],ymm0[8,9,10,11,12,13,14],ymm5[15]
vpblendd $0xf0, %ymm5, %ymm0, %ymm0 # ymm0 = ymm0[0,1,2,3],ymm5[4,5,6,7]
vmovdqu 0x3a0(%rsp), %ymm6
vpsubsw %ymm6, %ymm15, %ymm5
vmovdqu 0x380(%rsp), %ymm10
vpsubsw %ymm10, %ymm0, %ymm7
vpmaxsw %ymm7, %ymm5, %ymm0
vpsubsw %ymm6, %ymm14, %ymm11
vpsubsw %ymm10, %ymm1, %ymm1
vpmaxsw %ymm1, %ymm11, %ymm6
vpmaxsw %ymm0, %ymm6, %ymm10
vpmaxsw %ymm2, %ymm10, %ymm14
vpcmpeqw 0x773a7(%rip), %ymm8, %ymm10 # 0x5f9aa0
vpblendvb %ymm10, 0x1c0(%rsp), %ymm14, %ymm14
vpblendvb %ymm10, %ymm12, %ymm0, %ymm0
cmpq $0x10, %rbx
jb 0x58273e
vmovdqu 0x220(%rsp), %ymm12
vpminsw %ymm14, %ymm12, %ymm12
vmovdqu %ymm12, 0x220(%rsp)
vmovdqu 0x240(%rsp), %ymm12
vpmaxsw %ymm14, %ymm12, %ymm12
vmovdqu %ymm12, 0x240(%rsp)
vpcmpeqw %ymm2, %ymm14, %ymm2
vpcmpeqw %ymm0, %ymm14, %ymm12
vpsubw %ymm12, %ymm4, %ymm12
vpblendvb %ymm2, 0x340(%rsp), %ymm12, %ymm2
vpcmpgtw %ymm1, %ymm11, %ymm1
vpcmpgtw %ymm7, %ymm5, %ymm5
vmovdqu 0x2e0(%rsp), %ymm7
vpblendvb %ymm5, 0x300(%rsp), %ymm7, %ymm5
vpblendvb %ymm1, 0x320(%rsp), %ymm9, %ymm1
vpor %ymm1, %ymm5, %ymm1
vpor %ymm2, %ymm1, %ymm1
movq 0x68(%rsp), %rax
movq 0x10(%rax), %r10
movq (%r10), %r10
vextracti128 $0x1, %ymm1, %xmm2
cmpq %rbp, %rbx
jae 0x5827ae
movq 0x138(%rsp), %rax
addq %r10, %rax
vpextrb $0xe, %xmm2, (%rbx,%rax)
cmpq %rcx, 0x48(%rsp)
setae %al
leaq -0x1(%rbx), %r8
cmpq %rbp, %r8
setae %r8b
orb %al, %r8b
jne 0x5827d8
movq 0x140(%rsp), %rax
addq %r10, %rax
vpextrb $0xc, %xmm2, (%rbx,%rax)
cmpq %rcx, 0xb8(%rsp)
vmovdqu 0x260(%rsp), %ymm12
jae 0x582816
leaq -0x2(%rbx), %rax
cmpq $0x2, %rbx
setae %r8b
cmpq %rbp, %rax
setl %al
andb %r8b, %al
cmpb $0x1, %al
jne 0x582816
movq 0xc8(%rsp), %rax
addq %r10, %rax
vpextrb $0xa, %xmm2, (%rbx,%rax)
cmpq %rcx, 0xb0(%rsp)
jae 0x58284b
leaq -0x3(%rbx), %rax
cmpq $0x3, %rbx
setae %r8b
cmpq %rbp, %rax
setl %al
andb %r8b, %al
cmpb $0x1, %al
jne 0x58284b
movq 0xd0(%rsp), %rax
addq %r10, %rax
vpextrb $0x8, %xmm2, (%rbx,%rax)
cmpq %rcx, 0x1b8(%rsp)
jae 0x582880
leaq -0x4(%rbx), %rax
cmpq $0x4, %rbx
setae %r8b
cmpq %rbp, %rax
setl %al
andb %r8b, %al
cmpb $0x1, %al
jne 0x582880
movq 0xd8(%rsp), %rax
addq %r10, %rax
vpextrb $0x6, %xmm2, (%rbx,%rax)
cmpq %rcx, 0x1b0(%rsp)
jae 0x5828b5
leaq -0x5(%rbx), %rax
cmpq $0x5, %rbx
setae %r8b
cmpq %rbp, %rax
setl %al
andb %r8b, %al
cmpb $0x1, %al
jne 0x5828b5
movq 0xe0(%rsp), %rax
addq %r10, %rax
vpextrb $0x4, %xmm2, (%rbx,%rax)
cmpq %rcx, 0x1a8(%rsp)
jae 0x5828ea
leaq -0x6(%rbx), %rax
cmpq $0x6, %rbx
setae %r8b
cmpq %rbp, %rax
setl %al
andb %r8b, %al
cmpb $0x1, %al
jne 0x5828ea
movq 0xe8(%rsp), %rax
addq %r10, %rax
vpextrb $0x2, %xmm2, (%rbx,%rax)
cmpq %rcx, 0x1a0(%rsp)
jae 0x58291f
leaq -0x7(%rbx), %rax
cmpq $0x7, %rbx
setae %r8b
cmpq %rbp, %rax
setl %al
andb %r8b, %al
cmpb $0x1, %al
jne 0x58291f
movq 0xf8(%rsp), %rax
addq %r10, %rax
vpextrb $0x0, %xmm2, (%rbx,%rax)
cmpq %rcx, 0x198(%rsp)
jae 0x582954
leaq -0x8(%rbx), %rax
cmpq $0x8, %rbx
setae %r8b
cmpq %rbp, %rax
setl %al
andb %r8b, %al
cmpb $0x1, %al
jne 0x582954
movq 0xf0(%rsp), %rax
addq %r10, %rax
vpextrb $0xe, %xmm1, (%rbx,%rax)
cmpq %rcx, 0x190(%rsp)
jae 0x582989
leaq -0x9(%rbx), %rax
cmpq $0x9, %rbx
setae %r8b
cmpq %rbp, %rax
setl %al
andb %r8b, %al
cmpb $0x1, %al
jne 0x582989
movq 0x100(%rsp), %rax
addq %r10, %rax
vpextrb $0xc, %xmm1, (%rbx,%rax)
cmpq %rcx, 0x188(%rsp)
jae 0x5829be
leaq -0xa(%rbx), %rax
cmpq $0xa, %rbx
setae %r8b
cmpq %rbp, %rax
setl %al
andb %r8b, %al
cmpb $0x1, %al
jne 0x5829be
movq 0x108(%rsp), %rax
addq %r10, %rax
vpextrb $0xa, %xmm1, (%rbx,%rax)
cmpq %rcx, 0x180(%rsp)
jae 0x5829f3
leaq -0xb(%rbx), %rax
cmpq $0xb, %rbx
setae %r8b
cmpq %rbp, %rax
setl %al
andb %r8b, %al
cmpb $0x1, %al
jne 0x5829f3
movq 0x110(%rsp), %rax
addq %r10, %rax
vpextrb $0x8, %xmm1, (%rbx,%rax)
cmpq %rcx, 0x178(%rsp)
jae 0x582a28
leaq -0xc(%rbx), %rax
cmpq $0xc, %rbx
setae %r8b
cmpq %rbp, %rax
setl %al
andb %r8b, %al
cmpb $0x1, %al
jne 0x582a28
movq 0x118(%rsp), %rax
addq %r10, %rax
vpextrb $0x6, %xmm1, (%rbx,%rax)
cmpq %rcx, 0x170(%rsp)
jae 0x582a5d
leaq -0xd(%rbx), %rax
cmpq $0xd, %rbx
setae %r8b
cmpq %rbp, %rax
setl %al
andb %r8b, %al
cmpb $0x1, %al
jne 0x582a5d
movq 0x120(%rsp), %rax
addq %r10, %rax
vpextrb $0x4, %xmm1, (%rbx,%rax)
cmpq %rcx, 0x168(%rsp)
jae 0x582a92
leaq -0xe(%rbx), %rax
cmpq $0xe, %rbx
setae %r8b
cmpq %rbp, %rax
setl %al
andb %r8b, %al
cmpb $0x1, %al
jne 0x582a92
movq 0x128(%rsp), %rax
addq %r10, %rax
vpextrb $0x2, %xmm1, (%rbx,%rax)
cmpq %rcx, 0x160(%rsp)
jae 0x582ac2
leaq -0xf(%rbx), %rax
cmpq $0xf, %rbx
setb %r8b
cmpq %rbp, %rax
setge %al
orb %r8b, %al
jne 0x582ac2
addq 0x130(%rsp), %r10
vpextrb $0x0, %xmm1, (%rbx,%r10)
vpblendvb %ymm10, %ymm12, %ymm6, %ymm1
movq 0x88(%rsp), %r8
vpextrw $0x0, %xmm14, (%r8,%rbx,2)
movq 0x90(%rsp), %rax
vpextrw $0x0, %xmm0, (%rax,%rbx,2)
vpcmpeqw 0x360(%rsp), %ymm8, %ymm2
vpand %ymm2, %ymm13, %ymm2
vpblendvb %ymm2, %ymm14, %ymm3, %ymm3
vpaddsw %ymm4, %ymm8, %ymm8
incq %rbx
cmpq %rbx, 0x158(%rsp)
jne 0x582574
vmovdqu 0x1e0(%rsp), %ymm5
vpaddsw %ymm5, %ymm9, %ymm5
vmovdqu 0x1c0(%rsp), %ymm0
vpsubsw 0x2a0(%rsp), %ymm0, %ymm0
vmovdqu %ymm0, 0x1c0(%rsp)
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, 0x100(%rsp)
addq %rax, 0xf0(%rsp)
addq %rax, 0xf8(%rsp)
addq %rax, 0xe8(%rsp)
addq %rax, 0xe0(%rsp)
addq %rax, 0xd8(%rsp)
addq %rax, 0xd0(%rsp)
addq %rax, 0xc8(%rsp)
movq 0x18(%rsp), %rax
movq %rax, %rbx
cmpq %rcx, %rax
movq 0x400(%rsp), %r12
movq 0x98(%rsp), %r11
jb 0x5820cd
movl 0xc(%rsp), %edx
movl 0x10(%rsp), %esi
vmovdqu 0x240(%rsp), %ymm1
vmovdqu 0x220(%rsp), %ymm2
jmp 0x582c10
vmovdqa %ymm12, %ymm3
vmovdqa %ymm12, %ymm1
vmovdqu 0x200(%rsp), %ymm2
movl 0x10(%rsp), %esi
movl $0x10, %eax
movl 0xc4(%rsp), %edi
vextracti128 $0x1, %ymm3, %xmm0
vpextrw $0x7, %xmm0, %ecx
cmpw %dx, %cx
cmovlel %edx, %ecx
movl %ecx, %edx
vperm2i128 $0x28, %ymm3, %ymm3, %ymm0 # ymm0 = zero,zero,ymm3[0,1]
vpalignr $0xe, %ymm0, %ymm3, %ymm3 # ymm3 = ymm0[14,15],ymm3[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm0[30,31],ymm3[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
decl %eax
jne 0x582c1c
vpcmpgtw %ymm2, %ymm12, %ymm0
vpcmpgtw 0x200(%rsp), %ymm1, %ymm1
vpor %ymm1, %ymm0, %ymm0
vpmovmskb %ymm0, %eax
testl %eax, %eax
movq 0x68(%rsp), %rcx
je 0x582c67
orb $0x40, 0xc(%rcx)
xorl %edx, %edx
xorl %edi, %edi
xorl %esi, %esi
movswl %dx, %eax
movl %eax, (%rcx)
movl %esi, 0x4(%rcx)
movl %edi, 0x8(%rcx)
movq 0x90(%rsp), %rdi
vzeroupper
callq 0x2094b5
movq 0x88(%rsp), %rdi
callq 0x2094b5
movq %r15, %rdi
callq 0x2094b5
cmpl $0x0, 0x30(%r12)
jne 0x582cac
movq 0x98(%rsp), %rdi
callq 0x2094b5
movq 0x68(%rsp), %rax
jmp 0x582ce4
callq 0x1f9869
jmp 0x582ce2
callq 0x1f9843
jmp 0x582ce2
callq 0x1f981d
jmp 0x582ce2
callq 0x1f97f7
jmp 0x582ce2
callq 0x1f97d1
jmp 0x582ce2
callq 0x1f97ab
jmp 0x582ce2
callq 0x1f9785
xorl %eax, %eax
addq $0x3c8, %rsp            # imm = 0x3C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop