// File: /workspace/github_c_makefile_star2_O2/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 $0x360, %rsp            # imm = 0x360
testq %rdx, %rdx
je 0x5004c3
movl %ecx, %r14d
testl %ecx, %ecx
jle 0x5004e7
testl %r8d, %r8d
js 0x50050b
movl %r9d, %r12d
testl %r9d, %r9d
js 0x501629
movq 0x10(%rbp), %rcx
testq %rcx, %rcx
je 0x50164a
cmpl $0x0, 0x30(%rcx)
je 0x50031d
movl 0x34(%rcx), %ebx
jmp 0x500330
testq %rdi, %rdi
je 0x50166b
movl %esi, %ebx
testl %esi, %esi
jle 0x50168c
movq %rdi, 0x98(%rsp)
movq %rdx, 0x20(%rsp)
movl %r8d, %eax
negl %eax
movq %rcx, %rdx
movl 0x20(%rcx), %ecx
movl %ecx, %esi
negl %esi
cmpl %eax, %ecx
movl %r8d, 0xa0(%rsp)
cmovgl %r8d, %esi
addl $0xffff8001, %esi       # imm = 0xFFFF8001
movw $0x7ffe, %r15w          # imm = 0x7FFE
subw 0x1c(%rdx), %r15w
movl %esi, 0x2c(%rsp)
vmovd %esi, %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x260(%rsp)
vmovdqa %ymm0, 0x200(%rsp)
vmovdqa %ymm0, 0x1a0(%rsp)
vmovdqa %ymm0, 0x1e0(%rsp)
movl %ebx, %edi
movl %r14d, %esi
vzeroupper
callq 0x1ab93b
testq %rax, %rax
je 0x500416
movq %rax, %r13
movl %r15d, 0x18(%rsp)
movl %r12d, 0x90(%rsp)
orl $0x10241004, 0xc(%rax)  # imm = 0x10241004
movq %r14, 0xb8(%rsp)
leal 0x1e(%r14), %r12d
pushq $0x20
popq %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x1ab77b
movq %rax, %r14
movq %r15, %rdi
movq %r12, %rsi
callq 0x1ab77b
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %r12
callq 0x1ab77b
movq %rax, %r11
testq %r14, %r14
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
testq %r11, %r11
sete %al
orb %cl, %al
je 0x50041d
xorl %ebx, %ebx
jmp 0x5016b4
movq %r13, 0x110(%rsp)
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
movslq %ebx, %r13
movq %r11, 0x108(%rsp)
je 0x50045a
movq $0x0, 0xf8(%rsp)
movl 0x2c(%rsp), %r8d
movq 0x20(%rsp), %r9
movl 0x18(%rsp), %r15d
jmp 0x500551
leal 0xf(%rbx), %eax
movslq %eax, %rsi
pushq $0x20
popq %rdi
movq %rsi, 0x88(%rsp)
callq 0x1ab77b
testq %rax, %rax
movl 0x18(%rsp), %r15d
je 0x500416
movl %ebx, %ecx
sarl $0x1f, %ecx
andnl %ebx, %ecx, %edi
xorl %ecx, %ecx
movl 0x2c(%rsp), %r8d
movq 0x108(%rsp), %r11
movq 0x20(%rsp), %r9
movq 0x98(%rsp), %r10
cmpq %rcx, %rdi
je 0x50052f
movq 0x10(%rbp), %rdx
movq 0x10(%rdx), %rdx
movzbl (%r10,%rcx), %esi
movzwl (%rdx,%rsi,4), %edx
movw %dx, (%rax,%rcx,2)
incq %rcx
jmp 0x5004a0
movq 0x23ab0e(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xc6b17(%rip), %rsi     # 0x5c6feb
leaq 0x87159(%rip), %rdx     # 0x587634
leaq 0xc721b(%rip), %rcx     # 0x5c76fd
jmp 0x5016ab
movq 0x23aaea(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xc7209(%rip), %rsi     # 0x5c7701
leaq 0x87135(%rip), %rdx     # 0x587634
leaq 0xc720f(%rip), %rcx     # 0x5c7715
jmp 0x5016ab
movq 0x23aac6(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xc71ff(%rip), %rsi     # 0x5c771b
leaq 0x87111(%rip), %rdx     # 0x587634
leaq 0xc7206(%rip), %rcx     # 0x5c7730
jmp 0x5016ab
movq %r13, %rcx
movq 0x88(%rsp), %rdx
cmpq %rdx, %rcx
jge 0x500549
andw $0x0, (%rax,%rcx,2)
incq %rcx
jmp 0x50053a
movq %rax, 0xf8(%rsp)
movq 0xb8(%rsp), %rax
leal 0xf(%rax), %ecx
vmovd %r15d, %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x280(%rsp)
vmovdqa 0x1a0(%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, 0x2c0(%rsp)
vmovd 0xa0(%rsp), %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x300(%rsp)
vmovd 0x90(%rsp), %xmm0
vpbroadcastw %xmm0, %ymm3
vmovd %ebx, %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x2a0(%rsp)
vmovd %eax, %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqa %ymm0, 0x2e0(%rsp)
movl %eax, %eax
movq 0x10(%rbp), %rdx
movq 0x10(%rdx), %rdx
xorl %esi, %esi
cmpq %rsi, %rax
je 0x5005fe
movzbl (%r9,%rsi), %edi
movzwl (%rdx,%rdi,4), %edi
movw %di, 0x1e(%r14,%rsi,2)
incq %rsi
jmp 0x5005e5
xorl %edx, %edx
cmpq $0xf, %rdx
je 0x500611
andw $0x0, (%r14,%rdx,2)
incq %rdx
jmp 0x500600
movq %rax, %rdx
cmpl %edx, %ecx
jle 0x500624
andw $0x0, 0x1e(%r14,%rdx,2)
incq %rdx
jmp 0x500614
xorl %edx, %edx
cmpq %rdx, %rax
je 0x50063d
andw $0x0, 0x1e(%r12,%rdx,2)
movw %r8w, 0x1e(%r11,%rdx,2)
incq %rdx
jmp 0x500626
xorl %edx, %edx
cmpq $0xf, %rdx
je 0x500654
movw %r8w, (%r12,%rdx,2)
movw %r8w, (%r11,%rdx,2)
incq %rdx
jmp 0x50063f
movq %rax, %rdx
cmpl %edx, %ecx
jle 0x50066c
movw %r8w, 0x1e(%r12,%rdx,2)
movw %r8w, 0x1e(%r11,%rdx,2)
incq %rdx
jmp 0x500657
decl %ebx
movq 0xb8(%rsp), %rdx
decl %edx
movq %rdx, 0xb8(%rsp)
movl %ecx, %edx
sarl $0x1f, %edx
andnl %ecx, %edx, %ecx
movq %rcx, 0x198(%rsp)
vmovdqa 0x260(%rsp), %ymm9
vmovdqa 0x1e0(%rsp), %ymm8
leaq 0xe(%rax), %rcx
movq %rcx, 0x188(%rsp)
leaq 0xd(%rax), %rcx
movq %rcx, 0x180(%rsp)
leaq 0xc(%rax), %rcx
movq %rcx, 0x178(%rsp)
leaq 0xb(%rax), %rcx
movq %rcx, 0x170(%rsp)
leaq 0xa(%rax), %rcx
movq %rcx, 0x168(%rsp)
leaq 0x9(%rax), %rcx
movq %rcx, 0x160(%rsp)
leaq 0x8(%rax), %rcx
movq %rcx, 0x158(%rsp)
leaq 0x7(%rax), %rcx
movq %rcx, 0x150(%rsp)
leaq 0x6(%rax), %rcx
movq %rcx, 0x148(%rsp)
leaq 0x5(%rax), %rcx
movq %rcx, 0x140(%rsp)
leaq 0x4(%rax), %rcx
movq %rcx, 0x138(%rsp)
leaq 0x3(%rax), %rcx
movq %rcx, 0x130(%rsp)
vmovaps 0xcb204(%rip), %ymm0    # 0x5cb940
vmovaps %ymm0, 0x1c0(%rsp)
vmovdqa 0x1a0(%rsp), %ymm0
vmovdqa %ymm0, %ymm14
vmovdqa %ymm0, 0x240(%rsp)
vmovdqa 0x280(%rsp), %ymm0
vmovdqa %ymm0, 0x220(%rsp)
leaq 0x2(%rax), %rcx
movq %rcx, 0x128(%rsp)
leaq 0x1(%rax), %rcx
movq %rcx, 0x120(%rsp)
xorl %r15d, %r15d
movq %r12, 0x190(%rsp)
movq %rax, 0x20(%rsp)
cmpq %r13, %r15
movq 0x10(%rbp), %rcx
jge 0x501520
cmpl $0x0, 0x30(%rcx)
movq %r15, 0x118(%rsp)
movq %r15, %rdx
je 0x50091c
orq $0x1, %rdx
cmpq %r13, %rdx
movq %rdx, 0xa0(%rsp)
movl %edx, %eax
cmovgel %ebx, %eax
movl %eax, 0x60(%rsp)
movq %r15, %rdx
orq $0x2, %rdx
cmpq %r13, %rdx
movq %rdx, 0x98(%rsp)
cmovgel %ebx, %edx
movl %edx, 0x58(%rsp)
movq %r15, %rdx
orq $0x3, %rdx
cmpq %r13, %rdx
movq %rdx, 0x18(%rsp)
movl %edx, %r10d
cmovgel %ebx, %r10d
movq %r15, %rdx
orq $0x4, %rdx
cmpq %r13, %rdx
movq %rdx, 0x90(%rsp)
cmovgel %ebx, %edx
movl %edx, 0x50(%rsp)
movq %r15, %rdx
orq $0x5, %rdx
cmpq %r13, %rdx
movq %rdx, 0x88(%rsp)
cmovgel %ebx, %edx
movl %edx, 0x68(%rsp)
movq %r15, %rdx
orq $0x6, %rdx
cmpq %r13, %rdx
movq %rdx, 0xf0(%rsp)
cmovgel %ebx, %edx
movl %edx, 0x48(%rsp)
movq %r15, %rdx
orq $0x7, %rdx
cmpq %r13, %rdx
movq %rdx, 0xe8(%rsp)
cmovgel %ebx, %edx
movl %edx, 0x70(%rsp)
movq %r15, %rdx
orq $0x8, %rdx
cmpq %r13, %rdx
movq %rdx, 0xe0(%rsp)
cmovgel %ebx, %edx
movl %edx, 0x40(%rsp)
movq %r15, %rdx
orq $0x9, %rdx
cmpq %r13, %rdx
movq %rdx, 0xd8(%rsp)
cmovgel %ebx, %edx
movl %edx, 0x78(%rsp)
movq %r15, %rdx
orq $0xa, %rdx
cmpq %r13, %rdx
movq %rdx, 0xd0(%rsp)
cmovgel %ebx, %edx
movl %edx, 0x38(%rsp)
movq %r15, %rdx
orq $0xb, %rdx
cmpq %r13, %rdx
movl %edx, %eax
cmovgel %ebx, %eax
movl %eax, 0x80(%rsp)
movq %r15, %rsi
orq $0xc, %rsi
cmpq %r13, %rsi
movl %esi, %edi
cmovgel %ebx, %edi
movl %edi, 0x30(%rsp)
movq %r15, %rdi
orq $0xd, %rdi
cmpq %r13, %rdi
movl %edi, %r11d
cmovgel %ebx, %r11d
movq %r15, %r8
orq $0xe, %r8
cmpq %r13, %r8
movl %r8d, %r9d
cmovgel %ebx, %r9d
movl %r9d, 0xc8(%rsp)
movq %r15, %r9
orq $0xf, %r9
cmpq %r13, %r9
movl %r9d, %eax
cmovgel %ebx, %eax
movl %eax, 0xc0(%rsp)
jmp 0x500a9e
orq $0x1, %rdx
movq %rdx, 0xa0(%rsp)
movq %r15, %rdx
orq $0x2, %rdx
movq %rdx, 0x98(%rsp)
movq %r15, %rdx
orq $0x3, %rdx
movq %rdx, 0x18(%rsp)
movq %r15, %rdx
orq $0x4, %rdx
movq %rdx, 0x90(%rsp)
movq %r15, %rdx
orq $0x5, %rdx
movq %rdx, 0x88(%rsp)
movq %r15, %rdx
orq $0x6, %rdx
movq %rdx, 0xf0(%rsp)
movq %r15, %rdx
orq $0x7, %rdx
movq %rdx, 0xe8(%rsp)
movq %r15, %rdx
orq $0x8, %rdx
movq %rdx, 0xe0(%rsp)
movq %r15, %rdx
orq $0x9, %rdx
movq %rdx, 0xd8(%rsp)
movq %r15, %rdx
orq $0xa, %rdx
movq %rdx, 0xd0(%rsp)
movq %r15, %rdx
orq $0xb, %rdx
movq %r15, %rsi
orq $0xc, %rsi
movq %r15, %rdi
orq $0xd, %rdi
movq %r15, %r8
orq $0xe, %r8
movq %r15, %r9
orq $0xf, %r9
movq 0xf8(%rsp), %r10
movswl (%r10,%r15,2), %eax
movl %eax, 0xa8(%rsp)
movswl 0x2(%r10,%r15,2), %eax
movl %eax, 0x60(%rsp)
movswl 0x4(%r10,%r15,2), %r11d
movl %r11d, 0x58(%rsp)
movswl 0x6(%r10,%r15,2), %eax
movl %eax, 0xb0(%rsp)
movswl 0x8(%r10,%r15,2), %r11d
movl %r11d, 0x50(%rsp)
movswl 0xa(%r10,%r15,2), %r11d
movl %r11d, 0x68(%rsp)
movswl 0xc(%r10,%r15,2), %r11d
movl %r11d, 0x48(%rsp)
movswl 0xe(%r10,%r15,2), %r11d
movl %r11d, 0x70(%rsp)
movswl 0x10(%r10,%r15,2), %r11d
movl %r11d, 0x40(%rsp)
movswl 0x12(%r10,%r15,2), %r11d
movl %r11d, 0x78(%rsp)
movswl 0x14(%r10,%r15,2), %r11d
movl %r11d, 0x38(%rsp)
movswl 0x16(%r10,%r15,2), %eax
movl %eax, 0x80(%rsp)
movswl 0x18(%r10,%r15,2), %r11d
movl %r11d, 0x30(%rsp)
movswl 0x1a(%r10,%r15,2), %r11d
movswl 0x1c(%r10,%r15,2), %ecx
movl %ecx, 0xc8(%rsp)
movswl 0x1e(%r10,%r15,2), %eax
movl 0xa8(%rsp), %r15d
movl %eax, 0xc0(%rsp)
movl 0xb0(%rsp), %r10d
movq 0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
imull %ecx, %r11d
movl %r11d, 0x100(%rsp)
movl 0x80(%rsp), %eax
imull %ecx, %eax
movl %eax, 0x80(%rsp)
movl 0x78(%rsp), %eax
imull %ecx, %eax
movl %eax, 0x78(%rsp)
movl 0x70(%rsp), %eax
imull %ecx, %eax
movl %eax, 0x70(%rsp)
movl 0x68(%rsp), %eax
imull %ecx, %eax
movl %eax, 0x68(%rsp)
imull %ecx, %r10d
movl %r10d, 0xb0(%rsp)
movl 0x60(%rsp), %eax
imull %ecx, %eax
movl %eax, 0x60(%rsp)
imull %ecx, %r15d
movl %r15d, 0xa8(%rsp)
movl 0x58(%rsp), %r15d
imull %ecx, %r15d
movl %r15d, 0x58(%rsp)
movl 0x50(%rsp), %r10d
imull %ecx, %r10d
movl %r10d, 0x50(%rsp)
movl 0x48(%rsp), %r10d
imull %ecx, %r10d
movl %r10d, 0x48(%rsp)
movl 0x40(%rsp), %r10d
imull %ecx, %r10d
movl %r10d, 0x40(%rsp)
movl 0x38(%rsp), %r10d
imull %ecx, %r10d
movl %r10d, 0x38(%rsp)
movl 0x30(%rsp), %r10d
imull %ecx, %r10d
movl %r10d, 0x30(%rsp)
movl 0xc8(%rsp), %r15d
imull %ecx, %r15d
movl 0xc0(%rsp), %r10d
imull %ecx, %r10d
movslq 0x100(%rsp), %r11
movq 0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
leaq (%rcx,%r11,4), %r11
movq %r11, 0xc8(%rsp)
movslq 0x80(%rsp), %r11
leaq (%rcx,%r11,4), %rax
movq %rax, 0x80(%rsp)
movslq 0x78(%rsp), %r11
leaq (%rcx,%r11,4), %rax
movq %rax, 0x78(%rsp)
movslq 0x70(%rsp), %r11
leaq (%rcx,%r11,4), %rax
movq %rax, 0x70(%rsp)
movslq 0x68(%rsp), %r11
leaq (%rcx,%r11,4), %rax
movq %rax, 0x68(%rsp)
movslq 0xb0(%rsp), %r11
leaq (%rcx,%r11,4), %rax
movq %rax, 0xb0(%rsp)
movslq 0x60(%rsp), %r11
leaq (%rcx,%r11,4), %rax
movq %rax, 0x60(%rsp)
movslq 0xa8(%rsp), %r11
leaq (%rcx,%r11,4), %rax
movq %rax, 0xa8(%rsp)
movslq 0x58(%rsp), %r11
leaq (%rcx,%r11,4), %rax
movq %rax, 0x58(%rsp)
movslq 0x50(%rsp), %r11
leaq (%rcx,%r11,4), %rax
movq %rax, 0x50(%rsp)
movslq 0x48(%rsp), %r11
leaq (%rcx,%r11,4), %rax
movq %rax, 0x48(%rsp)
movslq 0x40(%rsp), %r11
leaq (%rcx,%r11,4), %rax
movq %rax, 0x40(%rsp)
movslq 0x38(%rsp), %r11
leaq (%rcx,%r11,4), %rax
movq %rax, 0x38(%rsp)
movslq 0x30(%rsp), %r11
leaq (%rcx,%r11,4), %rax
movq %rax, 0x30(%rsp)
movslq %r15d, %r11
leaq (%rcx,%r11,4), %rax
movq %rax, 0xc0(%rsp)
movslq %r10d, %r10
leaq (%rcx,%r10,4), %rax
movq %rax, 0x100(%rsp)
vmovdqa 0x2a0(%rsp), %ymm0
vpcmpgtw 0x1c0(%rsp), %ymm0, %ymm0
vmovdqa %ymm0, 0x320(%rsp)
vmovdqa 0x2c0(%rsp), %ymm1
vmovdqa %ymm1, %ymm6
vmovdqa 0x1a0(%rsp), %ymm5
vmovdqa %ymm5, %ymm0
vpmovsxbw 0xcafd6(%rip), %ymm11 # 0x5cbc84
xorl %r10d, %r10d
movq 0x108(%rsp), %r11
cmpq %r10, 0x198(%rsp)
movq 0x118(%rsp), %r15
je 0x5014f3
movq %r9, %rax
movq %r8, %r9
movq %rdi, %r8
movq %rsi, %rdi
movq %rdx, %rsi
movswq 0x10(%r14,%r10,2), %rcx
movq 0x70(%rsp), %rdx
vmovd (%rdx,%rcx,4), %xmm4
movswq 0x12(%r14,%r10,2), %rcx
movq 0x48(%rsp), %rdx
vpinsrw $0x1, (%rdx,%rcx,4), %xmm4, %xmm4
movswq 0x14(%r14,%r10,2), %rcx
movq 0x68(%rsp), %rdx
vpinsrw $0x2, (%rdx,%rcx,4), %xmm4, %xmm4
movswq 0x16(%r14,%r10,2), %rcx
movq 0x50(%rsp), %rdx
vpinsrw $0x3, (%rdx,%rcx,4), %xmm4, %xmm4
movswq 0x18(%r14,%r10,2), %rcx
movq 0xb0(%rsp), %rdx
vpinsrw $0x4, (%rdx,%rcx,4), %xmm4, %xmm4
movswq 0x1a(%r14,%r10,2), %rcx
movq 0x58(%rsp), %rdx
vpinsrw $0x5, (%rdx,%rcx,4), %xmm4, %xmm4
movswq 0x1c(%r14,%r10,2), %rcx
movq 0x60(%rsp), %rdx
vpinsrw $0x6, (%rdx,%rcx,4), %xmm4, %xmm4
movswq 0x1e(%r14,%r10,2), %rcx
movq 0xa8(%rsp), %rdx
vpinsrw $0x7, (%rdx,%rcx,4), %xmm4, %xmm12
movswq (%r14,%r10,2), %rcx
movq 0x100(%rsp), %rdx
vmovd (%rdx,%rcx,4), %xmm4
movswq 0x2(%r14,%r10,2), %rcx
movq 0xc0(%rsp), %rdx
vpinsrw $0x1, (%rdx,%rcx,4), %xmm4, %xmm4
movswq 0x4(%r14,%r10,2), %rcx
movq 0xc8(%rsp), %rdx
vpinsrw $0x2, (%rdx,%rcx,4), %xmm4, %xmm4
movswq 0x6(%r14,%r10,2), %rcx
movq 0x30(%rsp), %rdx
vpinsrw $0x3, (%rdx,%rcx,4), %xmm4, %xmm4
movswq 0x8(%r14,%r10,2), %rcx
movq 0x80(%rsp), %rdx
vpinsrw $0x4, (%rdx,%rcx,4), %xmm4, %xmm4
movswq 0xa(%r14,%r10,2), %rcx
movq 0x38(%rsp), %rdx
vpinsrw $0x5, (%rdx,%rcx,4), %xmm4, %xmm4
movswq 0xc(%r14,%r10,2), %rcx
movq 0x78(%rsp), %rdx
vpinsrw $0x6, (%rdx,%rcx,4), %xmm4, %xmm4
movswq 0xe(%r14,%r10,2), %rcx
movq 0x40(%rsp), %rdx
vpinsrw $0x7, (%rdx,%rcx,4), %xmm4, %xmm13
vextracti128 $0x1, %ymm1, %xmm4
vpalignr $0x2, %ymm1, %ymm4, %ymm4 # ymm4 = ymm1[2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm4[0,1],ymm1[18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm4[16,17]
vpbroadcastw 0x1e(%r12,%r10,2), %ymm7
vpblendw $0x80, %ymm7, %ymm4, %ymm7 # ymm7 = ymm4[0,1,2,3,4,5,6],ymm7[7],ymm4[8,9,10,11,12,13,14],ymm7[15]
vpblendd $0xf0, %ymm7, %ymm4, %ymm4 # ymm4 = ymm4[0,1,2,3],ymm7[4,5,6,7]
vpbroadcastw 0x1e(%r11,%r10,2), %ymm7
vextracti128 $0x1, %ymm5, %xmm10
vpalignr $0x2, %ymm5, %ymm10, %ymm5 # ymm5 = ymm5[2,3,4,5,6,7,8,9,10,11,12,13,14,15],ymm10[0,1],ymm5[18,19,20,21,22,23,24,25,26,27,28,29,30,31],ymm10[16,17]
vpblendw $0x80, %ymm7, %ymm5, %ymm7 # ymm7 = ymm5[0,1,2,3,4,5,6],ymm7[7],ymm5[8,9,10,11,12,13,14],ymm7[15]
vpblendd $0xf0, %ymm7, %ymm5, %ymm5 # ymm5 = ymm5[0,1,2,3],ymm7[4,5,6,7]
vmovdqa 0x300(%rsp), %ymm2
vpsubsw %ymm2, %ymm4, %ymm7
vpsubsw %ymm3, %ymm5, %ymm5
vpmaxsw %ymm5, %ymm7, %ymm5
vpsubsw %ymm2, %ymm1, %ymm1
vpsubsw %ymm3, %ymm0, %ymm0
vpmaxsw %ymm0, %ymm1, %ymm0
cmpq %rbx, %r15
setne %r15b
vinserti128 $0x1, %xmm12, %ymm13, %ymm1
vpaddsw %ymm1, %ymm6, %ymm1
vpmaxsw %ymm5, %ymm0, %ymm6
vpmaxsw 0xca9c7(%rip), %ymm6, %ymm6 # 0x5cb840
vpmaxsw %ymm6, %ymm1, %ymm13
vpcmpeqw 0xcabfb(%rip), %ymm11, %ymm12 # 0x5cba80
vpandn %ymm13, %ymm12, %ymm1
cmpq $0x10, %r10
jb 0x500ebc
vmovdqa 0x220(%rsp), %ymm2
vpminsw %ymm1, %ymm2, %ymm2
vmovdqa %ymm2, 0x220(%rsp)
vmovdqa 0x240(%rsp), %ymm2
vpmaxsw %ymm1, %ymm2, %ymm2
vmovdqa %ymm2, 0x240(%rsp)
movq 0x110(%rsp), %rcx
movq 0x10(%rcx), %r11
movq (%r11), %rcx
movq 0x8(%r11), %r11
cmpq 0x20(%rsp), %r10
setae %r12b
orb %r12b, %r15b
vextracti128 $0x1, %ymm1, %xmm6
movq %rsi, %rdx
jne 0x500eef
vpextrw $0x7, %xmm6, %r15d
movl %r15d, (%rcx,%r10,4)
cmpq %r10, 0xb8(%rsp)
movq %rdi, %rsi
jne 0x500f0d
vpextrw $0x7, %xmm6, %r15d
movq 0x118(%rsp), %r12
movl %r15d, (%r11,%r12,4)
cmpq %rbx, 0xa0(%rsp)
setne %r15b
leaq -0x1(%r10), %r12
cmpq 0x20(%rsp), %r12
setae %r12b
orb %r15b, %r12b
movq %r8, %rdi
jne 0x500f38
vpextrw $0x6, %xmm6, %r15d
movl %r15d, -0x4(%rcx,%r10,4)
cmpq %r13, 0xa0(%rsp)
setge %r15b
cmpq %r10, 0x20(%rsp)
setne %r12b
orb %r15b, %r12b
movq %r9, %r8
jne 0x500f66
vpextrw $0x6, %xmm6, %r15d
movq 0xa0(%rsp), %r12
movl %r15d, (%r11,%r12,4)
cmpq %rbx, 0x98(%rsp)
movq %rax, %r9
movq 0x20(%rsp), %rax
jne 0x500f9e
leaq -0x2(%r10), %r15
cmpq $0x2, %r10
setae %r12b
cmpq %rax, %r15
setl %r15b
andb %r12b, %r15b
cmpb $0x1, %r15b
jne 0x500f9e
vpextrw $0x5, %xmm6, %r15d
movl %r15d, -0x8(%rcx,%r10,4)
cmpq %r13, 0x98(%rsp)
setge %r15b
cmpq %r10, 0x120(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x500fcc
vpextrw $0x5, %xmm6, %r15d
movq 0x98(%rsp), %r12
movl %r15d, (%r11,%r12,4)
cmpq %rbx, 0x18(%rsp)
jne 0x500ff9
leaq -0x3(%r10), %r15
cmpq $0x3, %r10
setae %r12b
cmpq %rax, %r15
setl %r15b
andb %r12b, %r15b
cmpb $0x1, %r15b
jne 0x500ff9
vpextrw $0x4, %xmm6, %r15d
movl %r15d, -0xc(%rcx,%r10,4)
cmpq %r13, 0x18(%rsp)
setge %r15b
cmpq %r10, 0x128(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x501021
vpextrw $0x4, %xmm6, %r15d
movq 0x18(%rsp), %r12
movl %r15d, (%r11,%r12,4)
cmpq %rbx, 0x90(%rsp)
jne 0x501051
leaq -0x4(%r10), %r15
cmpq $0x4, %r10
setae %r12b
cmpq %rax, %r15
setl %r15b
andb %r12b, %r15b
cmpb $0x1, %r15b
jne 0x501051
vpextrw $0x3, %xmm6, %r15d
movl %r15d, -0x10(%rcx,%r10,4)
cmpq %r13, 0x90(%rsp)
setge %r15b
cmpq %r10, 0x130(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x50107f
vpextrw $0x3, %xmm6, %r15d
movq 0x90(%rsp), %r12
movl %r15d, (%r11,%r12,4)
cmpq %rbx, 0x88(%rsp)
jne 0x5010af
leaq -0x5(%r10), %r15
cmpq $0x5, %r10
setae %r12b
cmpq %rax, %r15
setl %r15b
andb %r12b, %r15b
cmpb $0x1, %r15b
jne 0x5010af
vpextrw $0x2, %xmm6, %r15d
movl %r15d, -0x14(%rcx,%r10,4)
cmpq %r13, 0x88(%rsp)
setge %r15b
cmpq %r10, 0x138(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x5010dd
vpextrw $0x2, %xmm6, %r15d
movq 0x88(%rsp), %r12
movl %r15d, (%r11,%r12,4)
cmpq %rbx, 0xf0(%rsp)
jne 0x50110d
leaq -0x6(%r10), %r15
cmpq $0x6, %r10
setae %r12b
cmpq %rax, %r15
setl %r15b
andb %r12b, %r15b
cmpb $0x1, %r15b
jne 0x50110d
vpextrw $0x1, %xmm6, %r15d
movl %r15d, -0x18(%rcx,%r10,4)
cmpq %r13, 0xf0(%rsp)
setge %r15b
cmpq %r10, 0x140(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x50113b
vpextrw $0x1, %xmm6, %r15d
movq 0xf0(%rsp), %r12
movl %r15d, (%r11,%r12,4)
cmpq %rbx, 0xe8(%rsp)
jne 0x50116b
leaq -0x7(%r10), %r15
cmpq $0x7, %r10
setae %r12b
cmpq %rax, %r15
setl %r15b
andb %r12b, %r15b
cmpb $0x1, %r15b
jne 0x50116b
vpextrw $0x0, %xmm6, %r15d
movl %r15d, -0x1c(%rcx,%r10,4)
cmpq %r13, 0xe8(%rsp)
setge %r15b
cmpq %r10, 0x148(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x501199
vpextrw $0x0, %xmm6, %r15d
movq 0xe8(%rsp), %r12
movl %r15d, (%r11,%r12,4)
cmpq %rbx, 0xe0(%rsp)
jne 0x5011c9
leaq -0x8(%r10), %r15
cmpq $0x8, %r10
setae %r12b
cmpq %rax, %r15
setl %r15b
andb %r12b, %r15b
cmpb $0x1, %r15b
jne 0x5011c9
vpextrw $0x7, %xmm1, %r15d
movl %r15d, -0x20(%rcx,%r10,4)
cmpq %r13, 0xe0(%rsp)
setge %r15b
cmpq %r10, 0x150(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x5011f7
vpextrw $0x7, %xmm1, %r15d
movq 0xe0(%rsp), %r12
movl %r15d, (%r11,%r12,4)
cmpq %rbx, 0xd8(%rsp)
jne 0x501227
leaq -0x9(%r10), %r15
cmpq $0x9, %r10
setae %r12b
cmpq %rax, %r15
setl %r15b
andb %r12b, %r15b
cmpb $0x1, %r15b
jne 0x501227
vpextrw $0x6, %xmm1, %r15d
movl %r15d, -0x24(%rcx,%r10,4)
cmpq %r13, 0xd8(%rsp)
setge %r15b
cmpq %r10, 0x158(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x501255
vpextrw $0x6, %xmm1, %r15d
movq 0xd8(%rsp), %r12
movl %r15d, (%r11,%r12,4)
cmpq %rbx, 0xd0(%rsp)
jne 0x501285
leaq -0xa(%r10), %r15
cmpq $0xa, %r10
setae %r12b
cmpq %rax, %r15
setl %r15b
andb %r12b, %r15b
cmpb $0x1, %r15b
jne 0x501285
vpextrw $0x5, %xmm1, %r15d
movl %r15d, -0x28(%rcx,%r10,4)
cmpq %r13, 0xd0(%rsp)
setge %r15b
cmpq %r10, 0x160(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x5012b3
vpextrw $0x5, %xmm1, %r15d
movq 0xd0(%rsp), %r12
movl %r15d, (%r11,%r12,4)
cmpq %rbx, %rdx
jne 0x5012de
leaq -0xb(%r10), %r15
cmpq $0xb, %r10
setae %r12b
cmpq %rax, %r15
setl %r15b
andb %r12b, %r15b
cmpb $0x1, %r15b
jne 0x5012de
vpextrw $0x4, %xmm1, %r15d
movl %r15d, -0x2c(%rcx,%r10,4)
cmpq %r13, %rdx
setge %r15b
cmpq %r10, 0x168(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x5012ff
vpextrw $0x4, %xmm1, %r15d
movl %r15d, (%r11,%rdx,4)
cmpq %rbx, %rsi
jne 0x50132a
leaq -0xc(%r10), %r15
cmpq $0xc, %r10
setae %r12b
cmpq %rax, %r15
setl %r15b
andb %r12b, %r15b
cmpb $0x1, %r15b
jne 0x50132a
vpextrw $0x3, %xmm1, %r15d
movl %r15d, -0x30(%rcx,%r10,4)
cmpq %r13, %rsi
setge %r15b
cmpq %r10, 0x170(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x50134b
vpextrw $0x3, %xmm1, %r15d
movl %r15d, (%r11,%rsi,4)
cmpq %rbx, %rdi
jne 0x501376
leaq -0xd(%r10), %r15
cmpq $0xd, %r10
setae %r12b
cmpq %rax, %r15
setl %r15b
andb %r12b, %r15b
cmpb $0x1, %r15b
jne 0x501376
vpextrw $0x2, %xmm1, %r15d
movl %r15d, -0x34(%rcx,%r10,4)
cmpq %r13, %rdi
setge %r15b
cmpq %r10, 0x178(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x501397
vpextrw $0x2, %xmm1, %r15d
movl %r15d, (%r11,%rdi,4)
cmpq %rbx, %r8
jne 0x5013c2
leaq -0xe(%r10), %r15
cmpq $0xe, %r10
setae %r12b
cmpq %rax, %r15
setl %r15b
andb %r12b, %r15b
cmpb $0x1, %r15b
jne 0x5013c2
vpextrw $0x1, %xmm1, %r15d
movl %r15d, -0x38(%rcx,%r10,4)
cmpq %r13, %r8
setge %r15b
cmpq %r10, 0x180(%rsp)
setne %r12b
orb %r15b, %r12b
jne 0x5013e3
vpextrw $0x1, %xmm1, %r15d
movl %r15d, (%r11,%r8,4)
cmpq %rbx, %r9
setne %r15b
cmpq $0xf, %r10
setb %r12b
orb %r15b, %r12b
jne 0x501401
vpextrw $0x0, %xmm1, %r15d
movl %r15d, -0x3c(%rcx,%r10,4)
vpblendvb %ymm12, 0x1a0(%rsp), %ymm5, %ymm5
cmpq %r13, %r9
setge %r15b
cmpq %r10, 0x188(%rsp)
setne %r12b
vmovd %xmm1, %ecx
orb %r15b, %r12b
jne 0x501430
movzwl %cx, %r15d
movl %r15d, (%r11,%r9,4)
vmovdqa 0x2e0(%rsp), %ymm2
vpcmpgtw %ymm11, %ymm2, %ymm6
vpand 0x320(%rsp), %ymm6, %ymm6
vpsraw $0xf, %ymm11, %ymm7
vpandn %ymm6, %ymm7, %ymm6
vextracti128 $0x1, %ymm6, %xmm7
vpacksswb %xmm7, %xmm6, %xmm7
vpcmpeqw %ymm1, %ymm9, %ymm10
vpcmpgtw %ymm9, %ymm1, %ymm15
vpand %ymm6, %ymm15, %ymm2
vpblendvb %ymm2, %ymm13, %ymm9, %ymm9
vextracti128 $0x1, %ymm2, %xmm13
vpacksswb %xmm13, %xmm2, %xmm2
vpcmpgtw %ymm11, %ymm8, %ymm13
vpand %ymm13, %ymm10, %ymm10
vextracti128 $0x1, %ymm10, %xmm13
vpacksswb %xmm13, %xmm10, %xmm13
vpblendvb %xmm13, %xmm7, %xmm2, %xmm2
vpblendvb %ymm12, 0x1a0(%rsp), %ymm0, %ymm0
vpmovsxbw %xmm2, %ymm2
vpblendvb %ymm2, 0x1c0(%rsp), %ymm14, %ymm14
vpor %ymm15, %ymm10, %ymm2
vpand %ymm2, %ymm6, %ymm2
vpbroadcastw 0xcbc07(%rip), %ymm6 # 0x5cd0c8
vpblendvb %ymm2, %ymm11, %ymm8, %ymm8
vpaddsw %ymm6, %ymm11, %ymm11
movq 0x190(%rsp), %r12
movw %cx, (%r12,%r10,2)
movq 0x108(%rsp), %r11
vpextrw $0x0, %xmm5, (%r11,%r10,2)
incq %r10
vmovdqa %ymm4, %ymm6
jmp 0x500cb9
vpbroadcastw 0xcbbce(%rip), %ymm0 # 0x5cd0ca
vmovdqa 0x1c0(%rsp), %ymm1
vpaddsw %ymm0, %ymm1, %ymm1
vmovdqa %ymm1, 0x1c0(%rsp)
addq $0x10, %r15
movl 0x2c(%rsp), %r8d
jmp 0x500795
vmovdqa %ymm9, 0x260(%rsp)
vmovdqa %ymm8, 0x1e0(%rsp)
vmovdqa %ymm14, 0x200(%rsp)
xorl %ecx, %ecx
xorl %edx, %edx
xorl %eax, %eax
movq 0x110(%rsp), %rbx
cmpl $0x10, %ecx
je 0x5015a7
movzwl 0x260(%rsp,%rcx,2), %esi
cmpw %r8w, %si
jle 0x50156e
movswl 0x200(%rsp,%rcx,2), %eax
movswl 0x1e0(%rsp,%rcx,2), %edi
jmp 0x50159d
jne 0x501598
movswl 0x1e0(%rsp,%rcx,2), %edi
cmpl %edi, %edx
jle 0x501589
movswl 0x200(%rsp,%rcx,2), %eax
movl %r8d, %esi
jmp 0x50159d
jne 0x501598
movswl 0x200(%rsp,%rcx,2), %esi
cmpl %esi, %eax
cmovgel %esi, %eax
movl %r8d, %esi
movl %edx, %edi
incq %rcx
movl %esi, %r8d
movl %edi, %edx
jmp 0x501549
vmovdqa 0x1a0(%rsp), %ymm0
vpcmpgtw 0x220(%rsp), %ymm0, %ymm0
vmovdqa 0x240(%rsp), %ymm1
vpcmpgtw 0x280(%rsp), %ymm1, %ymm1
vpor %ymm1, %ymm0, %ymm0
vpmovmskb %ymm0, %ecx
testl %ecx, %ecx
je 0x5015e2
orb $0x40, 0xc(%rbx)
xorl %r8d, %r8d
xorl %edx, %edx
xorl %eax, %eax
movswl %r8w, %ecx
movl %ecx, (%rbx)
movl %eax, 0x4(%rbx)
movl %edx, 0x8(%rbx)
movq %r11, %rdi
vzeroupper
callq 0x1ab763
movq %r12, %rdi
callq 0x1ab763
movq %r14, %rdi
callq 0x1ab763
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x5016b4
movq 0xf8(%rsp), %rdi
callq 0x1ab763
jmp 0x5016b4
movq 0x2399a8(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xc60e1(%rip), %rsi     # 0x5c771b
leaq 0x85ff3(%rip), %rdx     # 0x587634
leaq 0xc60ed(%rip), %rcx     # 0x5c7735
jmp 0x5016ab
movq 0x239987(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xc5990(%rip), %rsi     # 0x5c6feb
leaq 0x85fd2(%rip), %rdx     # 0x587634
leaq 0xc62d9(%rip), %rcx     # 0x5c7942
jmp 0x5016ab
movq 0x239966(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xc596f(%rip), %rsi     # 0x5c6feb
leaq 0x85fb1(%rip), %rdx     # 0x587634
leaq 0xc60af(%rip), %rcx     # 0x5c7739
jmp 0x5016ab
movq 0x239945(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xc6064(%rip), %rsi     # 0x5c7701
leaq 0x85f90(%rip), %rdx     # 0x587634
leaq 0xc6092(%rip), %rcx     # 0x5c773d
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x19e180
movq %rbx, %rax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop