// File: /workspace/github_c_makefile_star2_O1/nh13[P]ksw/src/parasail/src/sw_diag_avx2_256_16.c
// Function: parasail_sw_rowcol_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 = 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 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;

    /* 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);

    /* initialize result */
#ifdef PARASAIL_TABLE
    result = parasail_result_new_table1(s1Len, s2Len);
#else
#ifdef PARASAIL_ROWCOL
    result = parasail_result_new_rowcol1(s1Len, s2Len);
#else
    result = parasail_result_new();
#endif
#endif
    if (!result) return NULL;

    /* set known flags */
    result->flag |= PARASAIL_FLAG_SW | PARASAIL_FLAG_DIAG
        | PARASAIL_FLAG_BITS_16 | PARASAIL_FLAG_LANES_16;
#ifdef PARASAIL_TABLE
    result->flag |= PARASAIL_FLAG_TABLE;
#endif
#ifdef PARASAIL_ROWCOL
    result->flag |= PARASAIL_FLAG_ROWCOL;
#endif

    /* 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 vF = 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 = _mm256_max_epi16(
                    _mm256_subs_epi16(vNH, vOpen),
                    _mm256_subs_epi16(vF, vGap));
            vE = _mm256_max_epi16(
                    _mm256_subs_epi16(vWH, vOpen),
                    _mm256_subs_epi16(vE, vGap));
            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);
            vWH = _mm256_max_epi16(vWH, vZero);
            /* 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);
            }
#ifdef PARASAIL_TABLE
            arr_store_si256(result->tables->score_table, vWH, i, s1Len, j, s2Len);
#endif
#ifdef PARASAIL_ROWCOL
            arr_store_rowcol(result->rowcols->score_row, result->rowcols->score_col, vWH, i, s1Len, j, s2Len);
#endif
            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 $0x3a0, %rsp            # imm = 0x3A0
testq %rdx, %rdx
je 0x53016c
movl %ecx, %r14d
testl %ecx, %ecx
jle 0x530173
testl %r8d, %r8d
js 0x53017a
movl %r9d, %r12d
testl %r9d, %r9d
js 0x530181
movq 0x10(%rbp), %r13
testq %r13, %r13
je 0x530188
movl 0x30(%r13), %eax
testl %eax, %eax
jne 0x52ee9a
testq %rdi, %rdi
je 0x53018f
movl %esi, %r15d
testl %esi, %esi
jle 0x530196
testl %eax, %eax
je 0x52ee9e
movl 0x34(%r13), %r15d
movq %rdi, 0xa0(%rsp)
movq %rdx, 0xb0(%rsp)
movl %r8d, %eax
negl %eax
movl 0x20(%r13), %ecx
movl %ecx, %edx
negl %edx
cmpl %eax, %ecx
movl %r8d, 0xa8(%rsp)
cmovgl %r8d, %edx
addl $0xffff8001, %edx       # imm = 0xFFFF8001
movw $0x7ffe, %bx            # imm = 0x7FFE
subw 0x1c(%r13), %bx
movl %edx, 0xbc(%rsp)
vmovd %edx, %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x280(%rsp)
vmovdqa %ymm0, 0x1c0(%rsp)
vmovdqa %ymm0, 0x120(%rsp)
vmovdqa %ymm0, 0x240(%rsp)
movl %r15d, %edi
movl %r14d, %esi
vzeroupper
callq 0x209630
testq %rax, %rax
je 0x53019b
movl %r12d, 0x98(%rsp)
movq %r15, 0x18(%rsp)
movq %rax, 0xc8(%rsp)
orl $0x10241004, 0xc(%rax)  # imm = 0x10241004
movq %r14, 0x20(%rsp)
leal 0x1e(%r14), %r12d
movl $0x20, %edi
movq %r12, %rsi
callq 0x2094cd
movq %rax, %r14
movl $0x20, %edi
movq %r12, %rsi
callq 0x2094cd
movq %rax, %r15
movl $0x20, %edi
movq %r12, %rsi
callq 0x2094cd
testq %r14, %r14
sete %dl
testq %r15, %r15
sete %cl
orb %dl, %cl
testq %rax, %rax
sete %dl
orb %cl, %dl
jne 0x53019b
cmpl $0x0, 0x30(%r13)
movq %r15, 0xe0(%rsp)
movq %rax, 0x90(%rsp)
je 0x52efb1
xorl %eax, %eax
movq 0x18(%rsp), %r12
jmp 0x52f02b
movq 0x18(%rsp), %r12
leal 0xf(%r12), %r15d
movslq %r15d, %rsi
movl $0x20, %edi
callq 0x2094cd
testq %rax, %rax
je 0x53019b
testl %r12d, %r12d
movq 0xa0(%rsp), %r8
jle 0x52effc
movq 0x10(%r13), %rdi
movl %r12d, %ecx
xorl %edx, %edx
movzbl (%r8,%rdx), %esi
movzwl (%rdi,%rsi,4), %esi
movw %si, (%rax,%rdx,2)
incq %rdx
cmpq %rdx, %rcx
jne 0x52efe7
movslq %r12d, %rdx
leal 0x1(%r12), %ecx
cmpl %ecx, %r15d
cmovgl %r15d, %ecx
leaq (%rax,%rdx,2), %rdi
movl %r12d, %edx
notl %edx
addl %ecx, %edx
leaq 0x2(,%rdx,2), %rdx
xorl %esi, %esi
movq %rax, %r15
callq 0x19e090
movq %r15, %rax
movq %rax, 0xc0(%rsp)
movq 0x20(%rsp), %rcx
leal 0xf(%rcx), %r15d
vmovd %ebx, %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x260(%rsp)
vmovdqa 0x120(%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, 0x2e0(%rsp)
vmovd 0xa8(%rsp), %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x360(%rsp)
vmovd 0x98(%rsp), %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x340(%rsp)
vmovd %r12d, %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x2c0(%rsp)
vmovd %ecx, %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x320(%rsp)
movq 0x10(%r13), %rax
cmpl $0x2, %ecx
movl $0x1, %r12d
cmovgel %ecx, %r12d
xorl %ecx, %ecx
movq 0xb0(%rsp), %rsi
movzbl (%rsi,%rcx), %edx
movzwl (%rax,%rdx,4), %edx
movw %dx, 0x1e(%r14,%rcx,2)
incq %rcx
cmpq %rcx, %r12
jne 0x52f0dd
vpxor %xmm0, %xmm0, %xmm0
vmovdqu %xmm0, 0xe(%r14)
vmovdqu %xmm0, (%r14)
movq 0x20(%rsp), %rcx
movl %ecx, %ebx
leal 0x1(%rcx), %eax
cmpl %eax, %r15d
cmovgl %r15d, %eax
leaq (%r14,%rbx,2), %rdi
addq $0x1e, %rdi
notl %ecx
addl %eax, %ecx
leaq 0x2(,%rcx,2), %rdx
xorl %r13d, %r13d
xorl %esi, %esi
vzeroupper
callq 0x19e090
movl 0xbc(%rsp), %r8d
movq 0xe0(%rsp), %rdx
movq 0x90(%rsp), %rcx
movw $0x0, 0x1e(%rdx,%r13,2)
movw %r8w, 0x1e(%rcx,%r13,2)
incq %r13
cmpq %r13, %r12
jne 0x52f14c
xorl %eax, %eax
movq %rcx, %rsi
movw %r8w, (%rdx,%rax,2)
movw %r8w, (%rsi,%rax,2)
incq %rax
cmpq $0xf, %rax
jne 0x52f167
leaq 0xf(%rbx), %rax
movq 0x20(%rsp), %rcx
movq 0x10(%rbp), %r12
movq 0xc0(%rsp), %r9
movw %r8w, (%rdx,%rax,2)
movw %r8w, (%rsi,%rax,2)
incq %rax
incl %ecx
cmpl %ecx, %r15d
jg 0x52f18f
vmovdqa 0x1c0(%rsp), %ymm2
movq 0x18(%rsp), %rdx
testl %edx, %edx
jle 0x53004f
movq 0x8(%r12), %rax
movq %rax, 0x140(%rsp)
leal -0x1(%rdx), %ecx
movq 0x20(%rsp), %rax
decl %eax
movq %rax, 0x20(%rsp)
cmpl $0x2, %r15d
movl $0x1, %eax
cmovgel %r15d, %eax
movq %rax, 0x1b8(%rsp)
movl %edx, %esi
leaq 0x1(%rbx), %rax
movq %rax, 0x1b0(%rsp)
leaq 0x2(%rbx), %rax
movq %rax, 0x1a8(%rsp)
leaq 0x3(%rbx), %rax
movq %rax, 0x1a0(%rsp)
leaq 0x4(%rbx), %rax
movq %rax, 0x198(%rsp)
leaq 0x5(%rbx), %rax
movq %rax, 0x190(%rsp)
leaq 0x6(%rbx), %rax
movq %rax, 0x188(%rsp)
leaq 0x7(%rbx), %rax
movq %rax, 0x180(%rsp)
leaq 0x8(%rbx), %rax
movq %rax, 0x178(%rsp)
leaq 0x9(%rbx), %rax
movq %rax, 0x170(%rsp)
vmovaps 0xca5e0(%rip), %ymm0    # 0x5f9840
vmovaps %ymm0, 0x220(%rsp)
vpbroadcastw 0xcbb08(%rip), %ymm0 # 0x5fad7a
vmovdqa %ymm0, 0x300(%rsp)
vpbroadcastw 0xcbaf8(%rip), %ymm0 # 0x5fad7c
vmovdqa %ymm0, 0x2a0(%rsp)
vmovaps 0x260(%rsp), %ymm0
vmovaps %ymm0, 0x1e0(%rsp)
vmovdqa 0x120(%rsp), %ymm0
vmovdqa %ymm0, 0x200(%rsp)
leaq 0xa(%rbx), %rax
movq %rax, 0x168(%rsp)
leaq 0xb(%rbx), %rax
movq %rax, 0x160(%rsp)
leaq 0xc(%rbx), %rax
movq %rax, 0x158(%rsp)
leaq 0xd(%rbx), %rax
movq %rax, 0x150(%rsp)
leaq 0xe(%rbx), %rax
movq %rax, 0x148(%rsp)
xorl %r8d, %r8d
movl 0x30(%r12), %r11d
movl %r8d, %eax
testl %r11d, %r11d
jne 0x52f302
movswl (%r9,%r8,2), %eax
movl %eax, 0xf0(%rsp)
movq %r8, %rax
orq $0x1, %rax
testl %r11d, %r11d
je 0x52f31f
cmpq %rsi, %rax
movl %ecx, %edx
cmovbl %eax, %edx
jmp 0x52f324
movswl (%r9,%rax,2), %edx
movl %edx, 0x88(%rsp)
movq %r8, %rdx
orq $0x2, %rdx
testl %r11d, %r11d
movq %rdx, 0xb0(%rsp)
je 0x52f350
cmpq %rsi, %rdx
movl %ecx, %edi
cmovbl %edx, %edi
movl %edi, 0x80(%rsp)
jmp 0x52f35c
movswl (%r9,%rdx,2), %edx
movl %edx, 0x80(%rsp)
movq %r8, %rdx
orq $0x3, %rdx
testl %r11d, %r11d
movq %rdx, 0xa8(%rsp)
je 0x52f37e
cmpq %rsi, %rdx
movl %ecx, %edi
cmovbl %edx, %edi
movl %edi, 0x78(%rsp)
jmp 0x52f387
movswl (%r9,%rdx,2), %edx
movl %edx, 0x78(%rsp)
movq %r8, %rdx
orq $0x4, %rdx
testl %r11d, %r11d
movq %rdx, 0x18(%rsp)
je 0x52f3a6
cmpq %rsi, %rdx
movl %ecx, %edi
cmovbl %edx, %edi
movl %edi, 0x70(%rsp)
jmp 0x52f3af
movswl (%r9,%rdx,2), %edx
movl %edx, 0x70(%rsp)
movq %r8, %rdx
orq $0x5, %rdx
testl %r11d, %r11d
movq %rdx, 0xa0(%rsp)
je 0x52f3d1
cmpq %rsi, %rdx
movl %ecx, %edi
cmovbl %edx, %edi
movl %edi, 0x68(%rsp)
jmp 0x52f3da
movswl (%r9,%rdx,2), %edx
movl %edx, 0x68(%rsp)
movq %r8, %rdx
orq $0x6, %rdx
testl %r11d, %r11d
movq %rdx, 0x98(%rsp)
je 0x52f3fc
cmpq %rsi, %rdx
movl %ecx, %edi
cmovbl %edx, %edi
movl %edi, 0x60(%rsp)
jmp 0x52f405
movswl (%r9,%rdx,2), %edx
movl %edx, 0x60(%rsp)
movl 0x18(%r12), %r10d
movq %r8, %r12
orq $0x7, %r12
testl %r11d, %r11d
je 0x52f421
cmpq %rsi, %r12
movl %ecx, %edx
cmovbl %r12d, %edx
jmp 0x52f426
movswl (%r9,%r12,2), %edx
movl %edx, 0x58(%rsp)
movq 0x90(%rsp), %r15
movq %r8, %rdx
orq $0x8, %rdx
testl %r11d, %r11d
movq %rdx, 0x110(%rsp)
je 0x52f454
cmpq %rsi, %rdx
movl %ecx, %edi
cmovbl %edx, %edi
movl %edi, 0x50(%rsp)
jmp 0x52f45d
movswl (%r9,%rdx,2), %edx
movl %edx, 0x50(%rsp)
movq %r8, %rdx
orq $0x9, %rdx
testl %r11d, %r11d
movq %rdx, 0x108(%rsp)
je 0x52f47f
cmpq %rsi, %rdx
movl %ecx, %edi
cmovbl %edx, %edi
movl %edi, 0x48(%rsp)
jmp 0x52f488
movswl (%r9,%rdx,2), %edx
movl %edx, 0x48(%rsp)
movq %r8, %rdx
orq $0xa, %rdx
testl %r11d, %r11d
movq %rdx, 0x100(%rsp)
je 0x52f4aa
cmpq %rsi, %rdx
movl %ecx, %edi
cmovbl %edx, %edi
movl %edi, 0x40(%rsp)
jmp 0x52f4b3
movswl (%r9,%rdx,2), %edx
movl %edx, 0x40(%rsp)
movq %r8, %rdx
orq $0xb, %rdx
testl %r11d, %r11d
movq %rdx, 0xf8(%rsp)
je 0x52f4d5
cmpq %rsi, %rdx
movl %ecx, %edi
cmovbl %edx, %edi
movl %edi, 0x38(%rsp)
jmp 0x52f4de
movswl (%r9,%rdx,2), %edx
movl %edx, 0x38(%rsp)
movq %r8, %rdx
orq $0xc, %rdx
testl %r11d, %r11d
je 0x52f4f4
cmpq %rsi, %rdx
movl %ecx, %edi
cmovbl %edx, %edi
jmp 0x52f4f9
movswl (%r9,%rdx,2), %edi
movl %edi, 0x30(%rsp)
movq %r8, %rdi
orq $0xd, %rdi
testl %r11d, %r11d
je 0x52f515
cmpq %rsi, %rdi
movl %ecx, %r13d
cmovbl %edi, %r13d
jmp 0x52f51a
movswl (%r9,%rdi,2), %r13d
movl %r13d, 0x28(%rsp)
movq %rax, %r13
movq %r8, 0xe8(%rsp)
orq $0xe, %r8
testl %r11d, %r11d
je 0x52f53e
cmpq %rsi, %r8
movl %ecx, %eax
cmovbl %r8d, %eax
jmp 0x52f543
movswl (%r9,%r8,2), %eax
movl %eax, 0xd8(%rsp)
movq 0xe8(%rsp), %r9
orq $0xf, %r9
testl %r11d, %r11d
movq %r12, 0x118(%rsp)
je 0x52f56e
cmpq %rsi, %r9
movl %ecx, %eax
cmovbl %r9d, %eax
jmp 0x52f57b
movq 0xc0(%rsp), %r11
movswl (%r11,%r9,2), %eax
movl %eax, 0xd0(%rsp)
movl 0xf0(%rsp), %r12d
imull %r10d, %r12d
movl 0x88(%rsp), %eax
imull %r10d, %eax
movl %eax, 0x88(%rsp)
movl 0x80(%rsp), %eax
imull %r10d, %eax
movl %eax, 0x80(%rsp)
movl 0x78(%rsp), %eax
imull %r10d, %eax
movl %eax, 0x78(%rsp)
movl 0x70(%rsp), %eax
imull %r10d, %eax
movl %eax, 0x70(%rsp)
movl 0x68(%rsp), %eax
imull %r10d, %eax
movl %eax, 0x68(%rsp)
movl 0x60(%rsp), %eax
imull %r10d, %eax
movl %eax, 0x60(%rsp)
movl 0x58(%rsp), %eax
imull %r10d, %eax
movl %eax, 0x58(%rsp)
movl 0x50(%rsp), %eax
imull %r10d, %eax
movl %eax, 0x50(%rsp)
movl 0x48(%rsp), %eax
imull %r10d, %eax
movl %eax, 0x48(%rsp)
movl 0x40(%rsp), %eax
imull %r10d, %eax
movl %eax, 0x40(%rsp)
movl 0x38(%rsp), %eax
imull %r10d, %eax
movl %eax, 0x38(%rsp)
movl 0x30(%rsp), %eax
imull %r10d, %eax
movl %eax, 0x30(%rsp)
movl 0x28(%rsp), %eax
imull %r10d, %eax
movl %eax, 0x28(%rsp)
movl 0xd8(%rsp), %eax
imull %r10d, %eax
movl 0xd0(%rsp), %r11d
imull %r10d, %r11d
movslq %r12d, %r10
movq 0x140(%rsp), %r12
leaq (%r12,%r10,4), %r10
movq %r10, 0xf0(%rsp)
movslq 0x88(%rsp), %r10
leaq (%r12,%r10,4), %r10
movq %r10, 0x88(%rsp)
movslq 0x80(%rsp), %r10
leaq (%r12,%r10,4), %r10
movq %r10, 0x80(%rsp)
movslq 0x78(%rsp), %r10
leaq (%r12,%r10,4), %r10
movq %r10, 0x78(%rsp)
movslq 0x70(%rsp), %r10
leaq (%r12,%r10,4), %r10
movq %r10, 0x70(%rsp)
movslq 0x68(%rsp), %r10
leaq (%r12,%r10,4), %r10
movq %r10, 0x68(%rsp)
movslq 0x60(%rsp), %r10
leaq (%r12,%r10,4), %r10
movq %r10, 0x60(%rsp)
movslq 0x58(%rsp), %r10
leaq (%r12,%r10,4), %r10
movq %r10, 0x58(%rsp)
movslq 0x50(%rsp), %r10
leaq (%r12,%r10,4), %r10
movq %r10, 0x50(%rsp)
movslq 0x48(%rsp), %r10
leaq (%r12,%r10,4), %r10
movq %r10, 0x48(%rsp)
movslq 0x40(%rsp), %r10
leaq (%r12,%r10,4), %r10
movq %r10, 0x40(%rsp)
movslq 0x38(%rsp), %r10
leaq (%r12,%r10,4), %r10
movq %r10, 0x38(%rsp)
movslq 0x30(%rsp), %r10
leaq (%r12,%r10,4), %r10
movq %r10, 0x30(%rsp)
movslq 0x28(%rsp), %r10
leaq (%r12,%r10,4), %r10
movq %r10, 0x28(%rsp)
cltq
leaq (%r12,%rax,4), %rax
movq %rax, 0xd8(%rsp)
movslq %r11d, %rax
leaq (%r12,%rax,4), %rax
movq %rax, 0xd0(%rsp)
vmovdqa 0x2c0(%rsp), %ymm0
vpcmpgtw 0x220(%rsp), %ymm0, %ymm9
vpmovsxbw 0xca316(%rip), %ymm10 # 0x5f9a74
vmovdqa 0x120(%rsp), %ymm6
vmovdqa %ymm6, %ymm5
vmovdqa 0x2e0(%rsp), %ymm12
vmovdqa %ymm12, %ymm11
xorl %r10d, %r10d
movq 0xe0(%rsp), %r11
movswq 0x10(%r14,%r10,2), %rax
movq 0x58(%rsp), %r12
vmovd (%r12,%rax,4), %xmm13
movswq 0x12(%r14,%r10,2), %rax
movq 0x60(%rsp), %r12
vpinsrw $0x1, (%r12,%rax,4), %xmm13, %xmm13
movswq 0x14(%r14,%r10,2), %rax
movq 0x68(%rsp), %r12
vpinsrw $0x2, (%r12,%rax,4), %xmm13, %xmm13
movswq 0x16(%r14,%r10,2), %rax
movq 0x70(%rsp), %r12
vpinsrw $0x3, (%r12,%rax,4), %xmm13, %xmm13
movswq 0x18(%r14,%r10,2), %rax
movq 0x78(%rsp), %r12
vpinsrw $0x4, (%r12,%rax,4), %xmm13, %xmm13
movswq 0x1a(%r14,%r10,2), %rax
movq 0x80(%rsp), %r12
vpinsrw $0x5, (%r12,%rax,4), %xmm13, %xmm13
movswq 0x1c(%r14,%r10,2), %rax
movq 0x88(%rsp), %r12
vpinsrw $0x6, (%r12,%rax,4), %xmm13, %xmm13
movswq 0x1e(%r14,%r10,2), %rax
movq 0xf0(%rsp), %r12
vpinsrw $0x7, (%r12,%rax,4), %xmm13, %xmm13
movswq (%r14,%r10,2), %rax
movq 0xd0(%rsp), %r12
vmovd (%r12,%rax,4), %xmm14
movswq 0x2(%r14,%r10,2), %rax
movq 0xd8(%rsp), %r12
vpinsrw $0x1, (%r12,%rax,4), %xmm14, %xmm14
movswq 0x4(%r14,%r10,2), %rax
movq 0x28(%rsp), %r12
vpinsrw $0x2, (%r12,%rax,4), %xmm14, %xmm14
movswq 0x6(%r14,%r10,2), %rax
movq 0x30(%rsp), %r12
vpinsrw $0x3, (%r12,%rax,4), %xmm14, %xmm14
movswq 0x8(%r14,%r10,2), %rax
movq 0x38(%rsp), %r12
vpinsrw $0x4, (%r12,%rax,4), %xmm14, %xmm14
movswq 0xa(%r14,%r10,2), %rax
movq 0x40(%rsp), %r12
vpinsrw $0x5, (%r12,%rax,4), %xmm14, %xmm14
movswq 0xc(%r14,%r10,2), %rax
movq 0x48(%rsp), %r12
vpinsrw $0x6, (%r12,%rax,4), %xmm14, %xmm14
movswq 0xe(%r14,%r10,2), %rax
movq 0x50(%rsp), %r12
vpinsrw $0x7, (%r12,%rax,4), %xmm14, %xmm14
vinserti128 $0x1, %xmm13, %ymm14, %ymm13
vextracti128 $0x1, %ymm11, %xmm14
vpaddsw %ymm13, %ymm12, %ymm15
vpbroadcastw 0x1e(%r11,%r10,2), %ymm12
vpalignr $0x2, %ymm11, %ymm14, %ymm13 # ymm13 = ymm11[2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm14[0,1],ymm11[18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm14[16,17]
vpblendw $0x80, %ymm12, %ymm13, %ymm12 # ymm12 = ymm13[0,1,2,3,4,5,6],ymm12[7],ymm13[8,9,10,11,12,13,14],ymm12[15]
vpblendd $0xf0, %ymm12, %ymm13, %ymm12 # ymm12 = ymm13[0,1,2,3],ymm12[4,5,6,7]
vextracti128 $0x1, %ymm5, %xmm13
vpalignr $0x2, %ymm5, %ymm13, %ymm5 # ymm5 = ymm5[2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm13[0,1],ymm5[18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm13[16,17]
vpbroadcastw 0x1e(%r15,%r10,2), %ymm13
cmpq %rcx, 0xe8(%rsp)
setne %r15b
vpblendw $0x80, %ymm13, %ymm5, %ymm13 # ymm13 = ymm5[0,1,2,3,4,5,6],ymm13[7],ymm5[8,9,10,11,12,13,14],ymm13[15]
vpblendd $0xf0, %ymm13, %ymm5, %ymm5 # ymm5 = ymm5[0,1,2,3],ymm13[4,5,6,7]
vmovdqa 0x360(%rsp), %ymm0
vpsubsw %ymm0, %ymm12, %ymm13
vmovdqa 0x340(%rsp), %ymm1
vpsubsw %ymm1, %ymm5, %ymm5
vpmaxsw %ymm5, %ymm13, %ymm5
vpsubsw %ymm0, %ymm11, %ymm11
vpsubsw %ymm1, %ymm6, %ymm6
vpmaxsw %ymm6, %ymm11, %ymm13
vpmaxsw %ymm5, %ymm13, %ymm6
vpmaxsw 0xc9da5(%rip), %ymm6, %ymm6 # 0x5f96e0
vpmaxsw %ymm6, %ymm15, %ymm15
vpcmpeqw 0xca159(%rip), %ymm10, %ymm14 # 0x5f9aa0
vpandn %ymm15, %ymm14, %ymm11
cmpq $0x10, %r10
jb 0x52f97e
vmovdqa 0x1e0(%rsp), %ymm0
vpminsw %ymm0, %ymm11, %ymm0
vmovdqa %ymm0, 0x1e0(%rsp)
vmovdqa 0x200(%rsp), %ymm0
vpmaxsw %ymm0, %ymm11, %ymm0
vmovdqa %ymm0, 0x200(%rsp)
movq 0xc8(%rsp), %rax
movq 0x10(%rax), %r11
movq (%r11), %rax
movq 0x8(%r11), %r11
cmpq %rbx, %r10
setae %r12b
orb %r12b, %r15b
vextracti128 $0x1, %ymm11, %xmm6
jne 0x52f9ac
vpextrw $0x7, %xmm6, %r15d
movl %r15d, (%rax,%r10,4)
cmpq %r10, 0x20(%rsp)
jne 0x52f9c4
vpextrw $0x7, %xmm6, %r15d
movq 0xe8(%rsp), %r12
movl %r15d, (%r11,%r12,4)
cmpq %rcx, %r13
setne %r15b
leaq -0x1(%r10), %r12
cmpq %rbx, %r12
setae %r12b
orb %r15b, %r12b
jne 0x52f9e5
vpextrw $0x6, %xmm6, %r15d
movl %r15d, -0x4(%rax,%r10,4)
cmpq %rsi, %r13
setae %r15b
cmpq %r10, %rbx
setne %r12b
orb %r15b, %r12b
jne 0x52fa01
vpextrw $0x6, %xmm6, %r15d
movl %r15d, (%r11,%r13,4)
movq 0xb0(%rsp), %r12
cmpq %rcx, %r12
jne 0x52fa3c
leaq -0x2(%r10), %r15
cmpq $0x2, %r10
setae %r12b
cmpq %rbx, %r15
setl %r15b
andb %r12b, %r15b
movq 0xb0(%rsp), %r12
cmpb $0x1, %r15b
jne 0x52fa3c
vpextrw $0x5, %xmm6, %r15d
movl %r15d, -0x8(%rax,%r10,4)
cmpq %rsi, %r12
setae %r15b
cmpq %r10, 0x1b0(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x52fa65
vpextrw $0x5, %xmm6, %r15d
movq 0xb0(%rsp), %r12
movl %r15d, (%r11,%r12,4)
movq 0xa8(%rsp), %r12
cmpq %rcx, %r12
jne 0x52faa0
leaq -0x3(%r10), %r15
cmpq $0x3, %r10
setae %r12b
cmpq %rbx, %r15
setl %r15b
andb %r12b, %r15b
movq 0xa8(%rsp), %r12
cmpb $0x1, %r15b
jne 0x52faa0
vpextrw $0x4, %xmm6, %r15d
movl %r15d, -0xc(%rax,%r10,4)
cmpq %rsi, %r12
setae %r15b
cmpq %r10, 0x1a8(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x52fac9
vpextrw $0x4, %xmm6, %r15d
movq 0xa8(%rsp), %r12
movl %r15d, (%r11,%r12,4)
movq 0x18(%rsp), %r12
cmpq %rcx, %r12
jne 0x52fafe
leaq -0x4(%r10), %r15
cmpq $0x4, %r10
setae %r12b
cmpq %rbx, %r15
setl %r15b
andb %r12b, %r15b
movq 0x18(%rsp), %r12
cmpb $0x1, %r15b
jne 0x52fafe
vpextrw $0x3, %xmm6, %r15d
movl %r15d, -0x10(%rax,%r10,4)
cmpq %rsi, %r12
setae %r15b
cmpq %r10, 0x1a0(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x52fb24
vpextrw $0x3, %xmm6, %r15d
movq 0x18(%rsp), %r12
movl %r15d, (%r11,%r12,4)
movq 0xa0(%rsp), %r12
cmpq %rcx, %r12
jne 0x52fb5f
leaq -0x5(%r10), %r15
cmpq $0x5, %r10
setae %r12b
cmpq %rbx, %r15
setl %r15b
andb %r12b, %r15b
movq 0xa0(%rsp), %r12
cmpb $0x1, %r15b
jne 0x52fb5f
vpextrw $0x2, %xmm6, %r15d
movl %r15d, -0x14(%rax,%r10,4)
cmpq %rsi, %r12
setae %r15b
cmpq %r10, 0x198(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x52fb88
vpextrw $0x2, %xmm6, %r15d
movq 0xa0(%rsp), %r12
movl %r15d, (%r11,%r12,4)
movq 0x98(%rsp), %r12
cmpq %rcx, %r12
jne 0x52fbc3
leaq -0x6(%r10), %r15
cmpq $0x6, %r10
setae %r12b
cmpq %rbx, %r15
setl %r15b
andb %r12b, %r15b
movq 0x98(%rsp), %r12
cmpb $0x1, %r15b
jne 0x52fbc3
vpextrw $0x1, %xmm6, %r15d
movl %r15d, -0x18(%rax,%r10,4)
cmpq %rsi, %r12
setae %r15b
cmpq %r10, 0x190(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x52fbec
vpextrw $0x1, %xmm6, %r15d
movq 0x98(%rsp), %r12
movl %r15d, (%r11,%r12,4)
movq 0x118(%rsp), %r12
cmpq %rcx, %r12
jne 0x52fc27
leaq -0x7(%r10), %r15
cmpq $0x7, %r10
setae %r12b
cmpq %rbx, %r15
setl %r15b
andb %r12b, %r15b
movq 0x118(%rsp), %r12
cmpb $0x1, %r15b
jne 0x52fc27
vpextrw $0x0, %xmm6, %r15d
movl %r15d, -0x1c(%rax,%r10,4)
cmpq %rsi, %r12
setae %r15b
cmpq %r10, 0x188(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x52fc50
vpextrw $0x0, %xmm6, %r15d
movq 0x118(%rsp), %r12
movl %r15d, (%r11,%r12,4)
movq 0x110(%rsp), %r12
cmpq %rcx, %r12
jne 0x52fc8c
leaq -0x8(%r10), %r15
cmpq $0x8, %r10
setae %r12b
cmpq %rbx, %r15
setl %r15b
andb %r12b, %r15b
movq 0x110(%rsp), %r12
cmpb $0x1, %r15b
jne 0x52fc8c
vpextrw $0x7, %xmm11, %r15d
movl %r15d, -0x20(%rax,%r10,4)
cmpq %rsi, %r12
setae %r15b
cmpq %r10, 0x180(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x52fcb6
vpextrw $0x7, %xmm11, %r15d
movq 0x110(%rsp), %r12
movl %r15d, (%r11,%r12,4)
movq 0x108(%rsp), %r12
cmpq %rcx, %r12
jne 0x52fcf2
leaq -0x9(%r10), %r15
cmpq $0x9, %r10
setae %r12b
cmpq %rbx, %r15
setl %r15b
andb %r12b, %r15b
movq 0x108(%rsp), %r12
cmpb $0x1, %r15b
jne 0x52fcf2
vpextrw $0x6, %xmm11, %r15d
movl %r15d, -0x24(%rax,%r10,4)
cmpq %rsi, %r12
setae %r15b
cmpq %r10, 0x178(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x52fd1c
vpextrw $0x6, %xmm11, %r15d
movq 0x108(%rsp), %r12
movl %r15d, (%r11,%r12,4)
movq 0x100(%rsp), %r12
cmpq %rcx, %r12
jne 0x52fd58
leaq -0xa(%r10), %r15
cmpq $0xa, %r10
setae %r12b
cmpq %rbx, %r15
setl %r15b
andb %r12b, %r15b
movq 0x100(%rsp), %r12
cmpb $0x1, %r15b
jne 0x52fd58
vpextrw $0x5, %xmm11, %r15d
movl %r15d, -0x28(%rax,%r10,4)
cmpq %rsi, %r12
setae %r15b
cmpq %r10, 0x170(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x52fd82
vpextrw $0x5, %xmm11, %r15d
movq 0x100(%rsp), %r12
movl %r15d, (%r11,%r12,4)
movq 0xf8(%rsp), %r12
cmpq %rcx, %r12
jne 0x52fdbe
leaq -0xb(%r10), %r15
cmpq $0xb, %r10
setae %r12b
cmpq %rbx, %r15
setl %r15b
andb %r12b, %r15b
movq 0xf8(%rsp), %r12
cmpb $0x1, %r15b
jne 0x52fdbe
vpextrw $0x4, %xmm11, %r15d
movl %r15d, -0x2c(%rax,%r10,4)
cmpq %rsi, %r12
setae %r15b
cmpq %r10, 0x168(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x52fde8
vpextrw $0x4, %xmm11, %r15d
movq 0xf8(%rsp), %r12
movl %r15d, (%r11,%r12,4)
cmpq %rcx, %rdx
jne 0x52fe14
leaq -0xc(%r10), %r15
cmpq $0xc, %r10
setae %r12b
cmpq %rbx, %r15
setl %r15b
andb %r12b, %r15b
cmpb $0x1, %r15b
jne 0x52fe14
vpextrw $0x3, %xmm11, %r15d
movl %r15d, -0x30(%rax,%r10,4)
cmpq %rsi, %rdx
setae %r15b
cmpq %r10, 0x160(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x52fe36
vpextrw $0x3, %xmm11, %r15d
movl %r15d, (%r11,%rdx,4)
cmpq %rcx, %rdi
jne 0x52fe62
leaq -0xd(%r10), %r15
cmpq $0xd, %r10
setae %r12b
cmpq %rbx, %r15
setl %r15b
andb %r12b, %r15b
cmpb $0x1, %r15b
jne 0x52fe62
vpextrw $0x2, %xmm11, %r15d
movl %r15d, -0x34(%rax,%r10,4)
cmpq %rsi, %rdi
setae %r15b
cmpq %r10, 0x158(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x52fe84
vpextrw $0x2, %xmm11, %r15d
movl %r15d, (%r11,%rdi,4)
cmpq %rcx, %r8
jne 0x52feb0
leaq -0xe(%r10), %r15
cmpq $0xe, %r10
setae %r12b
cmpq %rbx, %r15
setl %r15b
andb %r12b, %r15b
cmpb $0x1, %r15b
jne 0x52feb0
vpextrw $0x1, %xmm11, %r15d
movl %r15d, -0x38(%rax,%r10,4)
cmpq %rsi, %r8
setae %r15b
cmpq %r10, 0x150(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x52fed2
vpextrw $0x1, %xmm11, %r15d
movl %r15d, (%r11,%r8,4)
cmpq %rcx, %r9
jne 0x52fefa
leaq -0xf(%r10), %r15
cmpq $0xf, %r10
setb %r12b
cmpq %rbx, %r15
setge %r15b
orb %r12b, %r15b
jne 0x52fefa
vpextrw $0x0, %xmm11, %r15d
movl %r15d, -0x3c(%rax,%r10,4)
vpblendvb %ymm14, 0x120(%rsp), %ymm5, %ymm5
cmpq %rsi, %r9
setae %al
cmpq %r10, 0x148(%rsp)
setne %r15b
orb %al, %r15b
movq 0x90(%rsp), %r15
jne 0x52ff2e
vpextrw $0x0, %xmm11, %eax
movl %eax, (%r11,%r9,4)
movq 0xe0(%rsp), %r11
vpextrw $0x0, %xmm11, (%r11,%r10,2)
vpextrw $0x0, %xmm5, (%r15,%r10,2)
vmovdqa 0x320(%rsp), %ymm0
vpcmpgtw %ymm10, %ymm0, %ymm6
vpand %ymm6, %ymm9, %ymm6
vpsraw $0xf, %ymm10, %ymm7
vpandn %ymm6, %ymm7, %ymm7
vextracti128 $0x1, %ymm7, %xmm6
vpacksswb %xmm6, %xmm7, %xmm6
vmovdqa 0x280(%rsp), %ymm8
vpcmpeqw %ymm8, %ymm11, %ymm0
vpcmpgtw %ymm8, %ymm11, %ymm1
vpand %ymm7, %ymm1, %ymm4
vextracti128 $0x1, %ymm4, %xmm3
vpacksswb %xmm3, %xmm4, %xmm3
vpblendvb %ymm4, %ymm15, %ymm8, %ymm4
vmovdqa 0x240(%rsp), %ymm8
vpcmpgtw %ymm10, %ymm8, %ymm15
vpand %ymm0, %ymm15, %ymm0
vextracti128 $0x1, %ymm0, %xmm15
vpacksswb %xmm15, %xmm0, %xmm15
vpblendvb %xmm15, %xmm6, %xmm3, %xmm3
vpblendvb %ymm14, 0x120(%rsp), %ymm13, %ymm6
vmovdqa %ymm4, 0x280(%rsp)
vpmovsxbw %xmm3, %ymm3
vpblendvb %ymm3, 0x220(%rsp), %ymm2, %ymm2
vpor %ymm1, %ymm0, %ymm0
vpand %ymm0, %ymm7, %ymm0
vpblendvb %ymm0, %ymm10, %ymm8, %ymm0
vmovdqa %ymm0, 0x240(%rsp)
vpaddsw 0x300(%rsp), %ymm10, %ymm10
incq %r10
cmpq %r10, 0x1b8(%rsp)
jne 0x52f784
vmovdqa 0x220(%rsp), %ymm0
vpaddsw 0x2a0(%rsp), %ymm0, %ymm0
vmovdqa %ymm0, 0x220(%rsp)
movq 0xe8(%rsp), %r8
addq $0x10, %r8
cmpq %rsi, %r8
movq 0x10(%rbp), %r12
movq 0xc0(%rsp), %r9
jb 0x52f2f0
movl 0xbc(%rsp), %r8d
jmp 0x530073
vmovaps 0x120(%rsp), %ymm0
vmovaps %ymm0, 0x200(%rsp)
vmovdqa 0x260(%rsp), %ymm0
vmovdqa %ymm0, 0x1e0(%rsp)
vmovdqa %ymm2, 0x1c0(%rsp)
xorl %edx, %edx
xorl %eax, %eax
xorl %ecx, %ecx
movzwl 0x280(%rsp,%rdx,2), %esi
cmpw %r8w, %si
jle 0x5300a5
movswl 0x1c0(%rsp,%rdx,2), %eax
movswl 0x240(%rsp,%rdx,2), %ecx
movl %esi, %r8d
jmp 0x5300d1
jne 0x5300d1
movswl 0x240(%rsp,%rdx,2), %esi
cmpl %esi, %ecx
jle 0x5300bf
movswl 0x1c0(%rsp,%rdx,2), %eax
movl %esi, %ecx
jmp 0x5300d1
jne 0x5300d1
movswl 0x1c0(%rsp,%rdx,2), %edi
cmpl %edi, %eax
cmovgl %esi, %ecx
cmovgel %edi, %eax
incq %rdx
cmpl $0x10, %edx
jne 0x530082
vmovdqa 0x120(%rsp), %ymm0
vpcmpgtw 0x1e0(%rsp), %ymm0, %ymm0
vmovdqa 0x200(%rsp), %ymm1
vpcmpgtw 0x260(%rsp), %ymm1, %ymm1
vpor %ymm1, %ymm0, %ymm0
vpmovmskb %ymm0, %edx
testl %edx, %edx
movq 0xc8(%rsp), %rsi
je 0x53011c
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 0x90(%rsp), %rdi
vzeroupper
callq 0x2094b5
movq 0xe0(%rsp), %rdi
callq 0x2094b5
movq %r14, %rdi
callq 0x2094b5
cmpl $0x0, 0x30(%r12)
jne 0x530162
movq 0xc0(%rsp), %rdi
callq 0x2094b5
movq 0xc8(%rsp), %rax
jmp 0x53019d
callq 0x1f1251
jmp 0x53019b
callq 0x1f122b
jmp 0x53019b
callq 0x1f1205
jmp 0x53019b
callq 0x1f11df
jmp 0x53019b
callq 0x1f11b9
jmp 0x53019b
callq 0x1f1193
jmp 0x53019b
callq 0x1f116d
xorl %eax, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq