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

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

    /* 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_NW | 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] = -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 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))];
        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 = _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);
            /* 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);
            }
#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
               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 $0x2f8, %rsp            # imm = 0x2F8
testq %rdx, %rdx
je 0x52d527
movl %ecx, %r14d
testl %ecx, %ecx
jle 0x52d52e
movl %r8d, %r13d
testl %r8d, %r8d
js 0x52d535
testl %r9d, %r9d
js 0x52d53c
movl %esi, %ebx
movq 0x330(%rsp), %rsi
testq %rsi, %rsi
je 0x52d543
movq %rdx, %r15
movl 0x30(%rsi), %eax
testl %eax, %eax
jne 0x52c238
testq %rdi, %rdi
je 0x52d54a
testl %ebx, %ebx
jle 0x52d551
testl %eax, %eax
je 0x52c23b
movl 0x34(%rsi), %ebx
movq %rdi, %r12
movq %r9, 0xc0(%rsp)
movl %r13d, %edx
negl %edx
movl 0x20(%rsi), %eax
movl %eax, %ecx
negl %ecx
movl %edx, 0x24(%rsp)
cmpl %edx, %eax
cmovgl %r13d, %ecx
movl %ecx, 0xc(%rsp)
movw $0x7ffe, %bp            # imm = 0x7FFE
subw 0x1c(%rsi), %bp
movl %ebx, %edi
movl %r14d, %esi
callq 0x209630
testq %rax, %rax
je 0x52d556
movl %r13d, 0x1d0(%rsp)
movq %r15, 0xa0(%rsp)
movq %rbx, 0x10(%rsp)
movq %rax, 0xa8(%rsp)
orl $0x10241001, 0xc(%rax)  # imm = 0x10241001
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
testq %rax, %rax
sete %dl
orb %cl, %dl
jne 0x52d556
movq 0x330(%rsp), %r9
cmpl $0x0, 0x30(%r9)
movq %rbx, 0x98(%rsp)
movq %rax, 0xd0(%rsp)
je 0x52c321
movq $0x0, 0xb8(%rsp)
movq 0x10(%rsp), %r13
jmp 0x52c3a1
movq 0x10(%rsp), %r13
leal 0xf(%r13), %ebx
movslq %ebx, %rsi
movl $0x20, %edi
callq 0x2094cd
testq %rax, %rax
je 0x52d556
testl %r13d, %r13d
jle 0x52c36b
movq 0x330(%rsp), %rcx
movq 0x10(%rcx), %rdi
movl %r13d, %ecx
xorl %edx, %edx
movzbl (%r12,%rdx), %esi
movzwl (%rdi,%rsi,4), %esi
movw %si, (%rax,%rdx,2)
incq %rdx
cmpq %rdx, %rcx
jne 0x52c356
movslq %r13d, %rsi
leal 0x1(%r13), %ecx
cmpl %ecx, %ebx
cmovgl %ebx, %ecx
movq %rax, 0xb8(%rsp)
leaq (%rax,%rsi,2), %rdi
movl %r13d, %eax
notl %eax
addl %ecx, %eax
leaq 0x2(,%rax,2), %rdx
xorl %esi, %esi
callq 0x19e090
movq 0x330(%rsp), %r9
leal 0xf(%r14), %ebx
leal -0x1(%r13), %eax
movl %eax, 0x20(%rsp)
vmovd %ebp, %xmm0
movl 0x1d0(%rsp), %esi
vmovd %esi, %xmm1
movq 0xc0(%rsp), %rdi
movl 0x24(%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, 0x1c(%rsp)
movl 0xc(%rsp), %esi
addl $0xffff8001, %esi       # imm = 0xFFFF8001
movl %esi, 0xc(%rsp)
vmovd %esi, %xmm4
vpbroadcastw %xmm4, %ymm4
vmovdqu %ymm4, 0x1b0(%rsp)
vpbroadcastw %xmm0, %ymm0
vmovdqu %ymm0, 0x1f0(%rsp)
vpbroadcastw %xmm1, %ymm0
vmovdqu %ymm0, 0x2d0(%rsp)
vmovd %edi, %xmm0
vpbroadcastw %xmm0, %ymm4
vmovd %r13d, %xmm0
vpbroadcastw %xmm0, %ymm0
vpcmpeqd %ymm1, %ymm1, %ymm1
vpaddsw %ymm1, %ymm0, %ymm0
vmovdqu %ymm0, 0x270(%rsp)
vmovd %r14d, %xmm0
vpbroadcastw %xmm0, %ymm0
vpaddsw %ymm1, %ymm0, %ymm0
vmovdqu %ymm0, 0x290(%rsp)
vpinsrw $0x7, %r8d, %xmm2, %xmm0
vpinsrw $0x5, %edx, %xmm3, %xmm1
vpinsrw $0x6, %eax, %xmm1, %xmm1
vpinsrw $0x7, %ecx, %xmm1, %xmm1
vmovdqu %ymm4, 0x2b0(%rsp)
vpsllw $0x4, %ymm4, %ymm2
vmovdqu %ymm2, 0x250(%rsp)
vinserti128 $0x1, %xmm0, %ymm1, %ymm0
vmovdqu %ymm0, 0x1d0(%rsp)
movq 0x10(%r9), %rax
cmpl $0x2, %r14d
movl $0x1, %r12d
cmovgel %r14d, %r12d
xorl %ecx, %ecx
movq 0xa0(%rsp), %rsi
movzbl (%rsi,%rcx), %edx
movzwl (%rax,%rdx,4), %edx
movw %dx, 0x1e(%r15,%rcx,2)
incq %rcx
cmpq %rcx, %r12
jne 0x52c555
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 0x24(%rsp), %eax
movl 0xc(%rsp), %edx
movq 0xc0(%rsp), %rcx
movq 0x98(%rsp), %r11
movq 0xd0(%rsp), %rdi
movw %ax, 0x1e(%r11,%r13,2)
subl %ecx, %eax
movw %dx, 0x1e(%rdi,%r13,2)
incq %r13
cmpq %r13, %r12
jne 0x52c5ca
xorl %eax, %eax
movw %dx, (%r11,%rax,2)
movw %dx, (%rdi,%rax,2)
incq %rax
cmpq $0xf, %rax
jne 0x52c5e2
leaq 0xf(%rbp), %rax
movq 0x330(%rsp), %r12
movq 0x10(%rsp), %rcx
movw %dx, (%r11,%rax,2)
movw %dx, (%rdi,%rax,2)
incq %rax
incl %r14d
cmpl %r14d, %ebx
jg 0x52c605
movw $0x0, 0x1c(%r11)
testl %ecx, %ecx
jle 0x52d45d
movq 0x8(%r12), %rax
movq %rax, 0xd8(%rsp)
vmovdqu 0x1b0(%rsp), %ymm2
vextracti128 $0x1, %ymm2, %xmm0
vpalignr $0x2, %ymm2, %ymm0, %ymm0 # ymm0 = ymm2[2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm0[0,1],ymm2[18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm0[16,17]
vmovdqu %ymm0, 0x230(%rsp)
movl 0x1c(%rsp), %eax
movq %rax, 0x160(%rsp)
cmpl $0x2, %ebx
movl $0x1, %eax
cmovgel %ebx, %eax
movq %rax, 0x158(%rsp)
movl %ecx, %esi
movl 0x20(%rsp), %r8d
movl %r8d, %r13d
leaq 0x1(%rbp), %rax
movq %rax, 0x150(%rsp)
leaq 0x2(%rbp), %rax
movq %rax, 0x148(%rsp)
leaq 0x3(%rbp), %rax
movq %rax, 0x140(%rsp)
leaq 0x4(%rbp), %rax
movq %rax, 0x138(%rsp)
leaq 0x5(%rbp), %rax
movq %rax, 0x130(%rsp)
leaq 0x6(%rbp), %rax
movq %rax, 0x128(%rsp)
leaq 0x7(%rbp), %rax
movq %rax, 0x120(%rsp)
leaq 0x8(%rbp), %rax
movq %rax, 0x118(%rsp)
leaq 0x9(%rbp), %rax
movq %rax, 0x110(%rsp)
leaq 0xa(%rbp), %rax
movq %rax, 0x108(%rsp)
vpmovsxbw 0xcd367(%rip), %ymm4 # 0x5f9a64
vpcmpeqd %ymm6, %ymm6, %ymm6
vpbroadcastw 0xce63e(%rip), %ymm7 # 0x5fad48
vpbroadcastw 0xce637(%rip), %ymm0 # 0x5fad4a
vmovdqu %ymm0, 0x210(%rsp)
vmovdqu 0x1f0(%rsp), %ymm0
vmovdqa %ymm2, %ymm1
leaq 0xb(%rbp), %rax
movq %rax, 0x100(%rsp)
leaq 0xc(%rbp), %rax
movq %rax, 0xf8(%rsp)
leaq 0xd(%rbp), %rax
movq %rax, 0xf0(%rsp)
leaq 0xe(%rbp), %rax
movq %rax, 0xe8(%rsp)
xorl %edx, %edx
movl 0x30(%r12), %r9d
movl %edx, 0x90(%rsp)
testl %r9d, %r9d
movq 0xb8(%rsp), %rdi
jne 0x52c77f
movswl (%rdi,%rdx,2), %eax
movl %eax, 0x90(%rsp)
movq %rdx, %rax
orq $0x1, %rax
testl %r9d, %r9d
movq %rax, 0xa0(%rsp)
je 0x52c7a5
cmpq %rsi, %rax
movl %r8d, %ecx
cmovbl %eax, %ecx
movl %ecx, 0x88(%rsp)
jmp 0x52c7b0
movswl (%rdi,%rax,2), %eax
movl %eax, 0x88(%rsp)
movq %rdx, %rax
orq $0x2, %rax
testl %r9d, %r9d
movq %rax, 0x1a8(%rsp)
je 0x52c7d6
cmpq %rsi, %rax
movl %r8d, %ecx
cmovbl %eax, %ecx
movl %ecx, 0x80(%rsp)
jmp 0x52c7e1
movswl (%rdi,%rax,2), %eax
movl %eax, 0x80(%rsp)
movq %rdx, %rax
orq $0x3, %rax
testl %r9d, %r9d
movq %rax, 0x1a0(%rsp)
je 0x52c804
cmpq %rsi, %rax
movl %r8d, %ecx
cmovbl %eax, %ecx
movl %ecx, 0x78(%rsp)
jmp 0x52c80c
movswl (%rdi,%rax,2), %eax
movl %eax, 0x78(%rsp)
movq %rdx, %rax
orq $0x4, %rax
testl %r9d, %r9d
movq %rax, 0x198(%rsp)
je 0x52c82f
cmpq %rsi, %rax
movl %r8d, %ecx
cmovbl %eax, %ecx
movl %ecx, 0x70(%rsp)
jmp 0x52c837
movswl (%rdi,%rax,2), %eax
movl %eax, 0x70(%rsp)
movq %rdx, %rax
orq $0x5, %rax
testl %r9d, %r9d
movq %rax, 0x190(%rsp)
je 0x52c85a
cmpq %rsi, %rax
movl %r8d, %ecx
cmovbl %eax, %ecx
movl %ecx, 0x68(%rsp)
jmp 0x52c862
movswl (%rdi,%rax,2), %eax
movl %eax, 0x68(%rsp)
movq %rdx, %rax
orq $0x6, %rax
testl %r9d, %r9d
movq %rax, 0x188(%rsp)
je 0x52c885
cmpq %rsi, %rax
movl %r8d, %ecx
cmovbl %eax, %ecx
movl %ecx, 0x60(%rsp)
jmp 0x52c88d
movswl (%rdi,%rax,2), %eax
movl %eax, 0x60(%rsp)
movl 0x18(%r12), %r10d
movq %rdx, %rax
orq $0x7, %rax
testl %r9d, %r9d
movq %rax, 0x180(%rsp)
je 0x52c8b5
cmpq %rsi, %rax
movl %r8d, %ecx
cmovbl %eax, %ecx
movl %ecx, 0x58(%rsp)
jmp 0x52c8bd
movswl (%rdi,%rax,2), %eax
movl %eax, 0x58(%rsp)
movq %rdx, %rax
orq $0x8, %rax
testl %r9d, %r9d
movq %rax, 0x178(%rsp)
je 0x52c8e0
cmpq %rsi, %rax
movl %r8d, %ecx
cmovbl %eax, %ecx
movl %ecx, 0x50(%rsp)
jmp 0x52c8e8
movswl (%rdi,%rax,2), %eax
movl %eax, 0x50(%rsp)
movq %rdx, %rax
orq $0x9, %rax
testl %r9d, %r9d
movq %rax, 0x170(%rsp)
je 0x52c90b
cmpq %rsi, %rax
movl %r8d, %ecx
cmovbl %eax, %ecx
movl %ecx, 0x48(%rsp)
jmp 0x52c913
movswl (%rdi,%rax,2), %eax
movl %eax, 0x48(%rsp)
movq %rdx, %rax
orq $0xa, %rax
testl %r9d, %r9d
movq %rax, 0x168(%rsp)
je 0x52c936
cmpq %rsi, %rax
movl %r8d, %ecx
cmovbl %eax, %ecx
movl %ecx, 0x40(%rsp)
jmp 0x52c93e
movswl (%rdi,%rax,2), %eax
movl %eax, 0x40(%rsp)
movq %rdx, %r12
orq $0xb, %r12
testl %r9d, %r9d
je 0x52c956
cmpq %rsi, %r12
movl %r8d, %eax
cmovbl %r12d, %eax
jmp 0x52c95b
movswl (%rdi,%r12,2), %eax
movl %eax, 0x38(%rsp)
movq %rdx, %rax
orq $0xc, %rax
testl %r9d, %r9d
je 0x52c976
cmpq %rsi, %rax
movl %r8d, %ecx
cmovbl %eax, %ecx
jmp 0x52c97a
movswl (%rdi,%rax,2), %ecx
movl %ecx, 0x30(%rsp)
movq %rdx, %rbx
orq $0xd, %rbx
testl %r9d, %r9d
je 0x52c995
cmpq %rsi, %rbx
movl %r8d, %ecx
cmovbl %ebx, %ecx
jmp 0x52c999
movswl (%rdi,%rbx,2), %ecx
movl %ecx, 0x28(%rsp)
movq %rdx, %rcx
orq $0xe, %rcx
testl %r9d, %r9d
je 0x52c9b5
cmpq %rsi, %rcx
movl %r8d, %r14d
cmovbl %ecx, %r14d
jmp 0x52c9ba
movswl (%rdi,%rcx,2), %r14d
movl %r14d, 0xb0(%rsp)
movq %rdx, 0x10(%rsp)
orq $0xf, %rdx
testl %r9d, %r9d
je 0x52c9d9
cmpq %rsi, %rdx
cmovbl %edx, %r8d
jmp 0x52c9de
movswl (%rdi,%rdx,2), %r8d
movl 0x90(%rsp), %edi
imull %r10d, %edi
movl %edi, 0x90(%rsp)
movl 0x88(%rsp), %edi
imull %r10d, %edi
movl %edi, 0x88(%rsp)
movl 0x80(%rsp), %edi
imull %r10d, %edi
movl %edi, 0x80(%rsp)
movl 0x78(%rsp), %edi
imull %r10d, %edi
movl %edi, 0x78(%rsp)
movl 0x70(%rsp), %edi
imull %r10d, %edi
movl %edi, 0x70(%rsp)
movl 0x68(%rsp), %edi
imull %r10d, %edi
movl %edi, 0x68(%rsp)
movl 0x60(%rsp), %edi
imull %r10d, %edi
movl %edi, 0x60(%rsp)
movl 0x58(%rsp), %edi
imull %r10d, %edi
movl %edi, 0x58(%rsp)
movl 0x50(%rsp), %edi
imull %r10d, %edi
movl %edi, 0x50(%rsp)
movl 0x48(%rsp), %edi
imull %r10d, %edi
movl %edi, 0x48(%rsp)
movl 0x40(%rsp), %edi
imull %r10d, %edi
movl %edi, 0x40(%rsp)
movl 0x38(%rsp), %edi
imull %r10d, %edi
movl %edi, 0x38(%rsp)
movl 0x30(%rsp), %edi
imull %r10d, %edi
movl %edi, 0x30(%rsp)
movl 0x28(%rsp), %edi
imull %r10d, %edi
movl %edi, 0x28(%rsp)
movl 0xb0(%rsp), %r9d
imull %r10d, %r9d
imull %r10d, %r8d
movl %r8d, 0xc8(%rsp)
movq 0x10(%rsp), %r8
leaq 0x10(%r8), %rdi
movq %rdi, 0xe0(%rsp)
movl %edi, %r10d
movq 0xc0(%rsp), %r14
imull %r14d, %r10d
vpbroadcastw 0x1c(%r11), %ymm5
movl 0x24(%rsp), %edi
movl %edi, %r11d
subl %r10d, %r11d
movq 0x98(%rsp), %r10
movw %r11w, 0x1c(%r10)
movl %r8d, %r10d
imull %r14d, %r10d
movl %edi, %r11d
subl %r10d, %r11d
vmovd %r11d, %xmm9
movq 0x98(%rsp), %r11
movslq 0x90(%rsp), %r10
movq 0xd8(%rsp), %rdi
leaq (%rdi,%r10,4), %r8
movq %r8, 0x90(%rsp)
movslq 0x88(%rsp), %r10
leaq (%rdi,%r10,4), %r8
movq %r8, 0x88(%rsp)
movslq 0x80(%rsp), %r10
leaq (%rdi,%r10,4), %r8
movq %r8, 0x80(%rsp)
movslq 0x78(%rsp), %r10
leaq (%rdi,%r10,4), %r8
movq %r8, 0x78(%rsp)
movslq 0x70(%rsp), %r10
leaq (%rdi,%r10,4), %r8
movq %r8, 0x70(%rsp)
movslq 0x68(%rsp), %r10
leaq (%rdi,%r10,4), %r8
movq %r8, 0x68(%rsp)
movslq 0x60(%rsp), %r10
leaq (%rdi,%r10,4), %r8
movq %r8, 0x60(%rsp)
movslq 0x58(%rsp), %r10
leaq (%rdi,%r10,4), %r8
movq %r8, 0x58(%rsp)
movslq 0x50(%rsp), %r10
leaq (%rdi,%r10,4), %r8
movq %r8, 0x50(%rsp)
movslq 0x48(%rsp), %r10
leaq (%rdi,%r10,4), %r8
movq %r8, 0x48(%rsp)
movslq 0x40(%rsp), %r10
leaq (%rdi,%r10,4), %r8
movq %r8, 0x40(%rsp)
movslq 0x38(%rsp), %r10
leaq (%rdi,%r10,4), %r8
movq %r8, 0x38(%rsp)
movslq 0x30(%rsp), %r10
leaq (%rdi,%r10,4), %r8
movq %r8, 0x30(%rsp)
movslq 0x28(%rsp), %r10
leaq (%rdi,%r10,4), %r8
movq %r8, 0x28(%rsp)
movslq %r9d, %r8
leaq (%rdi,%r8,4), %r8
movq %r8, 0xb0(%rsp)
movslq 0xc8(%rsp), %r8
leaq (%rdi,%r8,4), %rdi
movq %rdi, 0xc8(%rsp)
vpbroadcastw %xmm9, %ymm9
vmovdqu 0x230(%rsp), %ymm3
vpblendw $0x80, %ymm9, %ymm3, %ymm9 # ymm9 = ymm3[0,1,2,3,4,5,6],ymm9[7],ymm3[8,9,10,11,12,13,14],ymm9[15]
vpblendd $0xf0, %ymm9, %ymm3, %ymm10 # ymm10 = ymm3[0,1,2,3],ymm9[4,5,6,7]
vpblendw $0x80, %ymm5, %ymm3, %ymm5 # ymm5 = ymm3[0,1,2,3,4,5,6],ymm5[7],ymm3[8,9,10,11,12,13,14],ymm5[15]
vpblendd $0xf0, %ymm5, %ymm3, %ymm12 # ymm12 = ymm3[0,1,2,3],ymm5[4,5,6,7]
vpcmpeqw 0x270(%rsp), %ymm4, %ymm9
vpmovsxbw 0xcce34(%rip), %ymm11 # 0x5f9a74
vmovdqu 0x1b0(%rsp), %ymm5
vmovdqa %ymm5, %ymm13
xorl %r8d, %r8d
movq 0xd0(%rsp), %rdi
movswq 0x10(%r15,%r8,2), %r9
movq 0x58(%rsp), %r10
vmovd (%r10,%r9,4), %xmm14
movswq 0x12(%r15,%r8,2), %r9
movq 0x60(%rsp), %r10
vpinsrw $0x1, (%r10,%r9,4), %xmm14, %xmm14
movswq 0x14(%r15,%r8,2), %r9
movq 0x68(%rsp), %r10
vpinsrw $0x2, (%r10,%r9,4), %xmm14, %xmm14
movswq 0x16(%r15,%r8,2), %r9
movq 0x70(%rsp), %r10
vpinsrw $0x3, (%r10,%r9,4), %xmm14, %xmm14
movswq 0x18(%r15,%r8,2), %r9
movq 0x78(%rsp), %r10
vpinsrw $0x4, (%r10,%r9,4), %xmm14, %xmm14
movswq 0x1a(%r15,%r8,2), %r9
movq 0x80(%rsp), %r10
vpinsrw $0x5, (%r10,%r9,4), %xmm14, %xmm14
movswq 0x1c(%r15,%r8,2), %r9
movq 0x88(%rsp), %r10
vpinsrw $0x6, (%r10,%r9,4), %xmm14, %xmm14
movswq 0x1e(%r15,%r8,2), %r9
movq 0x90(%rsp), %r10
vpinsrw $0x7, (%r10,%r9,4), %xmm14, %xmm14
movswq (%r15,%r8,2), %r9
movq 0xc8(%rsp), %r10
vmovd (%r10,%r9,4), %xmm15
movswq 0x2(%r15,%r8,2), %r9
movq 0xb0(%rsp), %r10
vpinsrw $0x1, (%r10,%r9,4), %xmm15, %xmm15
movswq 0x4(%r15,%r8,2), %r9
movq 0x28(%rsp), %r10
vpinsrw $0x2, (%r10,%r9,4), %xmm15, %xmm15
movswq 0x6(%r15,%r8,2), %r9
movq 0x30(%rsp), %r10
vpinsrw $0x3, (%r10,%r9,4), %xmm15, %xmm15
movswq 0x8(%r15,%r8,2), %r9
movq 0x38(%rsp), %r10
vpinsrw $0x4, (%r10,%r9,4), %xmm15, %xmm15
movswq 0xa(%r15,%r8,2), %r9
movq 0x40(%rsp), %r10
vpinsrw $0x5, (%r10,%r9,4), %xmm15, %xmm15
movswq 0xc(%r15,%r8,2), %r9
movq 0x48(%rsp), %r10
vpinsrw $0x6, (%r10,%r9,4), %xmm15, %xmm15
movswq 0xe(%r15,%r8,2), %r9
movq 0x50(%rsp), %r10
vpinsrw $0x7, (%r10,%r9,4), %xmm15, %xmm15
vinserti128 $0x1, %xmm14, %ymm15, %ymm14
vextracti128 $0x1, %ymm10, %xmm15
vpaddsw %ymm14, %ymm12, %ymm8
vpbroadcastw 0x1e(%r11,%r8,2), %ymm12
vpalignr $0x2, %ymm10, %ymm15, %ymm14 # ymm14 = ymm10[2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm15[0,1],ymm10[18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm15[16,17]
vpblendw $0x80, %ymm12, %ymm14, %ymm12 # ymm12 = ymm14[0,1,2,3,4,5,6],ymm12[7],ymm14[8,9,10,11,12,13,14],ymm12[15]
vpblendd $0xf0, %ymm12, %ymm14, %ymm12 # ymm12 = ymm14[0,1,2,3],ymm12[4,5,6,7]
vextracti128 $0x1, %ymm13, %xmm14
vpalignr $0x2, %ymm13, %ymm14, %ymm13 # ymm13 = ymm13[2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm14[0,1],ymm13[18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm14[16,17]
vpbroadcastw 0x1e(%rdi,%r8,2), %ymm14
cmpq %r13, 0x10(%rsp)
setne %r11b
vpblendw $0x80, %ymm14, %ymm13, %ymm14 # ymm14 = ymm13[0,1,2,3,4,5,6],ymm14[7],ymm13[8,9,10,11,12,13,14],ymm14[15]
vpblendd $0xf0, %ymm14, %ymm13, %ymm13 # ymm13 = ymm13[0,1,2,3],ymm14[4,5,6,7]
vmovdqu 0x2d0(%rsp), %ymm15
vpsubsw %ymm15, %ymm12, %ymm14
vmovdqu 0x2b0(%rsp), %ymm3
vpsubsw %ymm3, %ymm13, %ymm13
vpmaxsw %ymm13, %ymm14, %ymm13
vpsubsw %ymm15, %ymm10, %ymm10
vpsubsw %ymm3, %ymm5, %ymm5
vpmaxsw %ymm5, %ymm10, %ymm14
vpmaxsw %ymm13, %ymm14, %ymm5
vpmaxsw %ymm5, %ymm8, %ymm5
vpcmpeqw %ymm6, %ymm11, %ymm15
vpblendvb %ymm15, 0x1d0(%rsp), %ymm5, %ymm10
cmpq $0x10, %r8
jb 0x52ce29
vpminsw %ymm0, %ymm10, %ymm0
vpmaxsw %ymm1, %ymm10, %ymm1
movq 0xa0(%rsp), %rdi
movq 0xa8(%rsp), %r9
movq 0x10(%r9), %r9
movq (%r9), %r10
movq 0x8(%r9), %r9
cmpq %rbp, %r8
setae %r14b
orb %r14b, %r11b
vextracti128 $0x1, %ymm10, %xmm5
jne 0x52ce63
vpextrw $0x7, %xmm5, %r11d
movswl %r11w, %r11d
movl %r11d, (%r10,%r8,4)
cmpq %r8, 0x160(%rsp)
jne 0x52ce87
vpextrw $0x7, %xmm5, %r11d
movswl %r11w, %r11d
movq 0x10(%rsp), %rdi
movl %r11d, (%r9,%rdi,4)
movq 0xa0(%rsp), %rdi
cmpq %r13, %rdi
setne %r11b
leaq -0x1(%r8), %r14
cmpq %rbp, %r14
setae %r14b
orb %r11b, %r14b
jne 0x52ceac
vpextrw $0x6, %xmm5, %r11d
movswl %r11w, %r11d
movl %r11d, -0x4(%r10,%r8,4)
cmpq %rsi, %rdi
setae %r11b
cmpq %r8, %rbp
setne %r14b
orb %r11b, %r14b
jne 0x52cecc
vpextrw $0x6, %xmm5, %r11d
movswl %r11w, %r11d
movl %r11d, (%r9,%rdi,4)
movq 0x1a8(%rsp), %rdi
cmpq %r13, %rdi
jne 0x52cf03
leaq -0x2(%r8), %r11
cmpq $0x2, %r8
setae %r14b
cmpq %rbp, %r11
setl %r11b
andb %r14b, %r11b
cmpb $0x1, %r11b
jne 0x52cf03
vpextrw $0x5, %xmm5, %r11d
movswl %r11w, %r11d
movl %r11d, -0x8(%r10,%r8,4)
cmpq %rsi, %rdi
setae %r11b
cmpq %r8, 0x150(%rsp)
setne %r14b
orb %r11b, %r14b
jne 0x52cf28
vpextrw $0x5, %xmm5, %r11d
movswl %r11w, %r11d
movl %r11d, (%r9,%rdi,4)
movq 0x1a0(%rsp), %rdi
cmpq %r13, %rdi
jne 0x52cf5f
leaq -0x3(%r8), %r11
cmpq $0x3, %r8
setae %r14b
cmpq %rbp, %r11
setl %r11b
andb %r14b, %r11b
cmpb $0x1, %r11b
jne 0x52cf5f
vpextrw $0x4, %xmm5, %r11d
movswl %r11w, %r11d
movl %r11d, -0xc(%r10,%r8,4)
cmpq %rsi, %rdi
setae %r11b
cmpq %r8, 0x148(%rsp)
setne %r14b
orb %r11b, %r14b
jne 0x52cf84
vpextrw $0x4, %xmm5, %r11d
movswl %r11w, %r11d
movl %r11d, (%r9,%rdi,4)
movq 0x198(%rsp), %rdi
cmpq %r13, %rdi
jne 0x52cfbb
leaq -0x4(%r8), %r11
cmpq $0x4, %r8
setae %r14b
cmpq %rbp, %r11
setl %r11b
andb %r14b, %r11b
cmpb $0x1, %r11b
jne 0x52cfbb
vpextrw $0x3, %xmm5, %r11d
movswl %r11w, %r11d
movl %r11d, -0x10(%r10,%r8,4)
cmpq %rsi, %rdi
setae %r11b
cmpq %r8, 0x140(%rsp)
setne %r14b
orb %r11b, %r14b
jne 0x52cfe0
vpextrw $0x3, %xmm5, %r11d
movswl %r11w, %r11d
movl %r11d, (%r9,%rdi,4)
movq 0x190(%rsp), %rdi
cmpq %r13, %rdi
jne 0x52d017
leaq -0x5(%r8), %r11
cmpq $0x5, %r8
setae %r14b
cmpq %rbp, %r11
setl %r11b
andb %r14b, %r11b
cmpb $0x1, %r11b
jne 0x52d017
vpextrw $0x2, %xmm5, %r11d
movswl %r11w, %r11d
movl %r11d, -0x14(%r10,%r8,4)
cmpq %rsi, %rdi
setae %r11b
cmpq %r8, 0x138(%rsp)
setne %r14b
orb %r11b, %r14b
jne 0x52d03c
vpextrw $0x2, %xmm5, %r11d
movswl %r11w, %r11d
movl %r11d, (%r9,%rdi,4)
movq 0x188(%rsp), %rdi
cmpq %r13, %rdi
jne 0x52d073
leaq -0x6(%r8), %r11
cmpq $0x6, %r8
setae %r14b
cmpq %rbp, %r11
setl %r11b
andb %r14b, %r11b
cmpb $0x1, %r11b
jne 0x52d073
vpextrw $0x1, %xmm5, %r11d
movswl %r11w, %r11d
movl %r11d, -0x18(%r10,%r8,4)
cmpq %rsi, %rdi
setae %r11b
cmpq %r8, 0x130(%rsp)
setne %r14b
orb %r11b, %r14b
jne 0x52d098
vpextrw $0x1, %xmm5, %r11d
movswl %r11w, %r11d
movl %r11d, (%r9,%rdi,4)
movq 0x180(%rsp), %rdi
cmpq %r13, %rdi
jne 0x52d0cf
leaq -0x7(%r8), %r11
cmpq $0x7, %r8
setae %r14b
cmpq %rbp, %r11
setl %r11b
andb %r14b, %r11b
cmpb $0x1, %r11b
jne 0x52d0cf
vmovd %xmm5, %r11d
movswl %r11w, %r11d
movl %r11d, -0x1c(%r10,%r8,4)
cmpq %rsi, %rdi
setae %r11b
cmpq %r8, 0x128(%rsp)
setne %r14b
orb %r11b, %r14b
jne 0x52d0f4
vmovd %xmm5, %r11d
movswl %r11w, %r11d
movl %r11d, (%r9,%rdi,4)
movq 0x178(%rsp), %rdi
cmpq %r13, %rdi
jne 0x52d12c
leaq -0x8(%r8), %r11
cmpq $0x8, %r8
setae %r14b
cmpq %rbp, %r11
setl %r11b
andb %r14b, %r11b
cmpb $0x1, %r11b
jne 0x52d12c
vpextrw $0x7, %xmm10, %r11d
movswl %r11w, %r11d
movl %r11d, -0x20(%r10,%r8,4)
cmpq %rsi, %rdi
setae %r11b
cmpq %r8, 0x120(%rsp)
setne %r14b
orb %r11b, %r14b
jne 0x52d152
vpextrw $0x7, %xmm10, %r11d
movswl %r11w, %r11d
movl %r11d, (%r9,%rdi,4)
movq 0x170(%rsp), %rdi
cmpq %r13, %rdi
jne 0x52d18a
leaq -0x9(%r8), %r11
cmpq $0x9, %r8
setae %r14b
cmpq %rbp, %r11
setl %r11b
andb %r14b, %r11b
cmpb $0x1, %r11b
jne 0x52d18a
vpextrw $0x6, %xmm10, %r11d
movswl %r11w, %r11d
movl %r11d, -0x24(%r10,%r8,4)
cmpq %rsi, %rdi
setae %r11b
cmpq %r8, 0x118(%rsp)
setne %r14b
orb %r11b, %r14b
jne 0x52d1b0
vpextrw $0x6, %xmm10, %r11d
movswl %r11w, %r11d
movl %r11d, (%r9,%rdi,4)
movq 0x168(%rsp), %rdi
cmpq %r13, %rdi
jne 0x52d1e8
leaq -0xa(%r8), %r11
cmpq $0xa, %r8
setae %r14b
cmpq %rbp, %r11
setl %r11b
andb %r14b, %r11b
cmpb $0x1, %r11b
jne 0x52d1e8
vpextrw $0x5, %xmm10, %r11d
movswl %r11w, %r11d
movl %r11d, -0x28(%r10,%r8,4)
cmpq %rsi, %rdi
setae %r11b
cmpq %r8, 0x110(%rsp)
setne %r14b
orb %r11b, %r14b
jne 0x52d20e
vpextrw $0x5, %xmm10, %r11d
movswl %r11w, %r11d
movl %r11d, (%r9,%rdi,4)
cmpq %r13, %r12
jne 0x52d23e
leaq -0xb(%r8), %r11
cmpq $0xb, %r8
setae %r14b
cmpq %rbp, %r11
setl %r11b
andb %r14b, %r11b
cmpb $0x1, %r11b
jne 0x52d23e
vpextrw $0x4, %xmm10, %r11d
movswl %r11w, %r11d
movl %r11d, -0x2c(%r10,%r8,4)
cmpq %rsi, %r12
setae %r11b
cmpq %r8, 0x108(%rsp)
setne %r14b
orb %r11b, %r14b
jne 0x52d264
vpextrw $0x4, %xmm10, %r11d
movswl %r11w, %r11d
movl %r11d, (%r9,%r12,4)
cmpq %r13, %rax
jne 0x52d294
leaq -0xc(%r8), %r11
cmpq $0xc, %r8
setae %r14b
cmpq %rbp, %r11
setl %r11b
andb %r14b, %r11b
cmpb $0x1, %r11b
jne 0x52d294
vpextrw $0x3, %xmm10, %r11d
movswl %r11w, %r11d
movl %r11d, -0x30(%r10,%r8,4)
cmpq %rsi, %rax
setae %r11b
cmpq %r8, 0x100(%rsp)
setne %r14b
orb %r11b, %r14b
jne 0x52d2ba
vpextrw $0x3, %xmm10, %r11d
movswl %r11w, %r11d
movl %r11d, (%r9,%rax,4)
cmpq %r13, %rbx
jne 0x52d2ea
leaq -0xd(%r8), %r11
cmpq $0xd, %r8
setae %r14b
cmpq %rbp, %r11
setl %r11b
andb %r14b, %r11b
cmpb $0x1, %r11b
jne 0x52d2ea
vpextrw $0x2, %xmm10, %r11d
movswl %r11w, %r11d
movl %r11d, -0x34(%r10,%r8,4)
cmpq %rsi, %rbx
setae %r11b
cmpq %r8, 0xf8(%rsp)
setne %r14b
orb %r11b, %r14b
jne 0x52d310
vpextrw $0x2, %xmm10, %r11d
movswl %r11w, %r11d
movl %r11d, (%r9,%rbx,4)
cmpq %r13, %rcx
jne 0x52d340
leaq -0xe(%r8), %r11
cmpq $0xe, %r8
setae %r14b
cmpq %rbp, %r11
setl %r11b
andb %r14b, %r11b
cmpb $0x1, %r11b
jne 0x52d340
vpextrw $0x1, %xmm10, %r11d
movswl %r11w, %r11d
movl %r11d, -0x38(%r10,%r8,4)
cmpq %rsi, %rcx
setae %r11b
cmpq %r8, 0xf0(%rsp)
setne %r14b
orb %r11b, %r14b
jne 0x52d366
vpextrw $0x1, %xmm10, %r11d
movswl %r11w, %r11d
movl %r11d, (%r9,%rcx,4)
cmpq %r13, %rdx
jne 0x52d391
leaq -0xf(%r8), %r11
cmpq $0xf, %r8
setb %r14b
cmpq %rbp, %r11
setge %r11b
orb %r14b, %r11b
jne 0x52d391
vmovd %xmm10, %r11d
movswl %r11w, %r11d
movl %r11d, -0x3c(%r10,%r8,4)
cmpq %rsi, %rdx
setae %r10b
cmpq %r8, 0xe8(%rsp)
setne %r11b
orb %r10b, %r11b
jne 0x52d3b6
vmovd %xmm10, %r10d
movswl %r10w, %r10d
movl %r10d, (%r9,%rdx,4)
vmovdqu 0x1b0(%rsp), %ymm5
vpblendvb %ymm15, %ymm5, %ymm13, %ymm13
vpblendvb %ymm15, %ymm5, %ymm14, %ymm5
movq 0x98(%rsp), %r11
vpextrw $0x0, %xmm10, (%r11,%r8,2)
movq 0xd0(%rsp), %rdi
vpextrw $0x0, %xmm13, (%rdi,%r8,2)
vpcmpeqw 0x290(%rsp), %ymm11, %ymm8
vpand %ymm9, %ymm8, %ymm8
vpblendvb %ymm8, %ymm10, %ymm2, %ymm2
vpaddsw %ymm7, %ymm11, %ymm11
incq %r8
cmpq %r8, 0x158(%rsp)
jne 0x52cc58
vpaddsw 0x210(%rsp), %ymm4, %ymm4
vmovdqu 0x1d0(%rsp), %ymm3
vpsubsw 0x250(%rsp), %ymm3, %ymm3
vmovdqu %ymm3, 0x1d0(%rsp)
movq 0xe0(%rsp), %rax
movq %rax, %rdx
cmpq %rsi, %rax
movq 0x330(%rsp), %r12
movl 0x20(%rsp), %r8d
jb 0x52c75b
movl 0xc(%rsp), %edx
jmp 0x52d478
vmovdqu 0x1b0(%rsp), %ymm1
vmovdqa %ymm1, %ymm2
vmovdqu 0x1f0(%rsp), %ymm0
movl 0x20(%rsp), %r8d
movl $0x10, %eax
vextracti128 $0x1, %ymm2, %xmm3
vpextrw $0x7, %xmm3, %ecx
cmpw %dx, %cx
cmovlel %edx, %ecx
movl %ecx, %edx
vperm2i128 $0x28, %ymm2, %ymm2, %ymm3 # ymm3 = zero,zero,ymm2[0,1]
vpalignr $0xe, %ymm3, %ymm2, %ymm2 # ymm2 = ymm3[14,15],ymm2[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm3[30,31],ymm2[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
decl %eax
jne 0x52d47d
vmovdqu 0x1b0(%rsp), %ymm2
vpcmpgtw %ymm0, %ymm2, %ymm0
vpcmpgtw 0x1f0(%rsp), %ymm1, %ymm1
vpor %ymm1, %ymm0, %ymm0
vpmovmskb %ymm0, %eax
testl %eax, %eax
movq 0xa8(%rsp), %rcx
je 0x52d4db
orb $0x40, 0xc(%rcx)
xorl %edx, %edx
movl $0x0, 0x1c(%rsp)
xorl %r8d, %r8d
movswl %dx, %eax
movl %eax, (%rcx)
movl %r8d, 0x4(%rcx)
movl 0x1c(%rsp), %eax
movl %eax, 0x8(%rcx)
vzeroupper
callq 0x2094b5
movq 0x98(%rsp), %rdi
callq 0x2094b5
movq %r15, %rdi
callq 0x2094b5
cmpl $0x0, 0x30(%r12)
jne 0x52d51d
movq 0xb8(%rsp), %rdi
callq 0x2094b5
movq 0xa8(%rsp), %rax
jmp 0x52d558
callq 0x1f103d
jmp 0x52d556
callq 0x1f1017
jmp 0x52d556
callq 0x1f0ff1
jmp 0x52d556
callq 0x1f0fcb
jmp 0x52d556
callq 0x1f0fa5
jmp 0x52d556
callq 0x1f0f7f
jmp 0x52d556
callq 0x1f0f59
xorl %eax, %eax
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop