// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sg_striped_avx2_256_16.c
// Function: parasail_sg_flags_rowcol_striped_profile_avx2_256_16
parasail_result_t* PNAME(
        const parasail_profile_t * const restrict profile,
        const char * const restrict s2, const int s2Len,
        const int open, const int gap,
        int s1_beg, int s1_end, int s2_beg, int s2_end)
{
    /* declare local variables */
    int32_t i = 0;
    int32_t j = 0;
    int32_t k = 0;
    int32_t s1Len = 0;
    int32_t end_query = 0;
    int32_t end_ref = 0;
    const parasail_matrix_t *matrix = NULL;
    int32_t segWidth = 0;
    int32_t segLen = 0;
    int32_t offset = 0;
    int32_t position = 0;
    __m256i* restrict vProfile = NULL;
    __m256i* restrict pvHStore = NULL;
    __m256i* restrict pvHLoad = NULL;
    __m256i* restrict pvE = NULL;
    int16_t* restrict boundary = NULL;
    __m256i vGapO;
    __m256i vGapE;
    int16_t NEG_LIMIT = 0;
    int16_t POS_LIMIT = 0;
    int16_t score = 0;
    __m256i vNegLimit;
    __m256i vPosLimit;
    __m256i vSaturationCheckMin;
    __m256i vSaturationCheckMax;
    __m256i vMaxH;
    __m256i vPosMask;
    parasail_result_t *result = NULL;

    /* validate inputs */
    PARASAIL_CHECK_NULL(profile);
    PARASAIL_CHECK_NULL(profile->profile16.score);
    PARASAIL_CHECK_NULL(profile->matrix);
    PARASAIL_CHECK_GT0(profile->s1Len);
    PARASAIL_CHECK_NULL(s2);
    PARASAIL_CHECK_GT0(s2Len);
    PARASAIL_CHECK_GE0(open);
    PARASAIL_CHECK_GE0(gap);

    /* initialize stack variables */
    i = 0;
    j = 0;
    k = 0;
    s1Len = profile->s1Len;
    end_query = s1Len-1;
    end_ref = s2Len-1;
    matrix = profile->matrix;
    segWidth = 16; /* number of values in vector unit */
    segLen = (s1Len + segWidth - 1) / segWidth;
    offset = (s1Len - 1) % segLen;
    position = (segWidth - 1) - (s1Len - 1) / segLen;
    vProfile = (__m256i*)profile->profile16.score;
    vGapO = _mm256_set1_epi16(open);
    vGapE = _mm256_set1_epi16(gap);
    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;
    vMaxH = vNegLimit;
    vPosMask = _mm256_cmpeq_epi16(_mm256_set1_epi16(position),
            _mm256_set_epi16(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15));

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

    /* set known flags */
    result->flag |= PARASAIL_FLAG_SG | PARASAIL_FLAG_STRIPED
        | PARASAIL_FLAG_BITS_16 | PARASAIL_FLAG_LANES_16;
    result->flag |= s1_beg ? PARASAIL_FLAG_SG_S1_BEG : 0;
    result->flag |= s1_end ? PARASAIL_FLAG_SG_S1_END : 0;
    result->flag |= s2_beg ? PARASAIL_FLAG_SG_S2_BEG : 0;
    result->flag |= s2_end ? PARASAIL_FLAG_SG_S2_END : 0;
#ifdef PARASAIL_TABLE
    result->flag |= PARASAIL_FLAG_TABLE;
#endif
#ifdef PARASAIL_ROWCOL
    result->flag |= PARASAIL_FLAG_ROWCOL;
#endif

    /* initialize heap variables */
    pvHStore = parasail_memalign___m256i(32, segLen);
    pvHLoad =  parasail_memalign___m256i(32, segLen);
    pvE      = parasail_memalign___m256i(32, segLen);
    boundary = parasail_memalign_int16_t(32, s2Len+1);

    /* validate heap variables */
    if (!pvHStore) return NULL;
    if (!pvHLoad) return NULL;
    if (!pvE) return NULL;
    if (!boundary) return NULL;

    /* initialize H and E */
    {
        int32_t index = 0;
        for (i=0; i<segLen; ++i) {
            int32_t segNum = 0;
            __m256i_16_t h;
            __m256i_16_t e;
            for (segNum=0; segNum<segWidth; ++segNum) {
                int64_t tmp = s1_beg ? 0 : (-open-gap*(segNum*segLen+i));
                h.v[segNum] = tmp < INT16_MIN ? INT16_MIN : tmp;
                tmp = tmp - open;
                e.v[segNum] = tmp < INT16_MIN ? INT16_MIN : tmp;
            }
            _mm256_store_si256(&pvHStore[index], h.m);
            _mm256_store_si256(&pvE[index], e.m);
            ++index;
        }
    }

    /* initialize uppder boundary */
    {
        boundary[0] = 0;
        for (i=1; i<=s2Len; ++i) {
            int64_t tmp = s2_beg ? 0 : (-open-gap*(i-1));
            boundary[i] = tmp < INT16_MIN ? INT16_MIN : tmp;
        }
    }

    /* outer loop over database sequence */
    for (j=0; j<s2Len; ++j) {
        __m256i vE;
        /* Initialize F value to -inf.  Any errors to vH values will be
         * corrected in the Lazy_F loop.  */
        __m256i vF = vNegLimit;

        /* load final segment of pvHStore and shift left by 2 bytes */
        __m256i vH = _mm256_slli_si256_rpl(pvHStore[segLen - 1], 2);

        /* Correct part of the vProfile */
        const __m256i* vP = vProfile + matrix->mapper[(unsigned char)s2[j]] * segLen;

        /* Swap the 2 H buffers. */
        __m256i* pv = pvHLoad;
        pvHLoad = pvHStore;
        pvHStore = pv;

        /* insert upper boundary condition */
        vH = _mm256_insert_epi16_rpl(vH, boundary[j], 0);

        /* inner loop to process the query sequence */
        for (i=0; i<segLen; ++i) {
            vH = _mm256_adds_epi16(vH, _mm256_load_si256(vP + i));
            vE = _mm256_load_si256(pvE + i);

            /* Get max from vH, vE and vF. */
            vH = _mm256_max_epi16(vH, vE);
            vH = _mm256_max_epi16(vH, vF);
            /* Save vH values. */
            _mm256_store_si256(pvHStore + i, vH);
            vSaturationCheckMax = _mm256_max_epi16(vSaturationCheckMax, vH);
            vSaturationCheckMin = _mm256_min_epi16(vSaturationCheckMin, vH);
            vSaturationCheckMin = _mm256_min_epi16(vSaturationCheckMin, vE);
            vSaturationCheckMin = _mm256_min_epi16(vSaturationCheckMin, vF);
#ifdef PARASAIL_TABLE
            arr_store_si256(result->tables->score_table, vH, i, segLen, j, s2Len);
#endif

            /* Update vE value. */
            vH = _mm256_subs_epi16(vH, vGapO);
            vE = _mm256_subs_epi16(vE, vGapE);
            vE = _mm256_max_epi16(vE, vH);
            _mm256_store_si256(pvE + i, vE);

            /* Update vF value. */
            vF = _mm256_subs_epi16(vF, vGapE);
            vF = _mm256_max_epi16(vF, vH);

            /* Load the next vH. */
            vH = _mm256_load_si256(pvHLoad + i);
        }

        /* Lazy_F loop: has been revised to disallow adjecent insertion and
         * then deletion, so don't update E(i, i), learn from SWPS3 */
        for (k=0; k<segWidth; ++k) {
            int64_t tmp = s2_beg ? -open : (boundary[j+1]-open);
            int16_t tmp2 = tmp < INT16_MIN ? INT16_MIN : tmp;
            vF = _mm256_slli_si256_rpl(vF, 2);
            vF = _mm256_insert_epi16_rpl(vF, tmp2, 0);
            for (i=0; i<segLen; ++i) {
                vH = _mm256_load_si256(pvHStore + i);
                vH = _mm256_max_epi16(vH,vF);
                _mm256_store_si256(pvHStore + i, vH);
                vSaturationCheckMin = _mm256_min_epi16(vSaturationCheckMin, vH);
                vSaturationCheckMax = _mm256_max_epi16(vSaturationCheckMax, vH);
#ifdef PARASAIL_TABLE
                arr_store_si256(result->tables->score_table, vH, i, segLen, j, s2Len);
#endif
                vH = _mm256_subs_epi16(vH, vGapO);
                vF = _mm256_subs_epi16(vF, vGapE);
                if (! _mm256_movemask_epi8(_mm256_cmpgt_epi16(vF, vH))) goto end;
                /*vF = _mm256_max_epi16(vF, vH);*/
            }
        }
end:
        {
            /* extract vector containing last value from the column */
            __m256i vCompare;
            vH = _mm256_load_si256(pvHStore + offset);
            vCompare = _mm256_and_si256(vPosMask, _mm256_cmpgt_epi16(vH, vMaxH));
            vMaxH = _mm256_max_epi16(vH, vMaxH);
            if (_mm256_movemask_epi8(vCompare)) {
                end_ref = j;
            }
#ifdef PARASAIL_ROWCOL
            for (k=0; k<position; ++k) {
                vH = _mm256_slli_si256_rpl(vH, 2);
            }
            result->rowcols->score_row[j] = (int16_t) _mm256_extract_epi16_rpl (vH, 15);
#endif
        }
    }

#ifdef PARASAIL_ROWCOL
    for (i=0; i<segLen; ++i) {
        __m256i vH = _mm256_load_si256(pvHStore + i);
        arr_store_col(result->rowcols->score_col, vH, i, segLen);
    }
#endif

    /* max last value from all columns */
    if (s2_end)
    {
        for (k=0; k<position; ++k) {
            vMaxH = _mm256_slli_si256_rpl(vMaxH, 2);
        }
        score = (int16_t) _mm256_extract_epi16_rpl(vMaxH, 15);
        end_query = s1Len-1;
    }

    /* max of last column */
    if (s1_end)
    {
        /* Trace the alignment ending position on read. */
        int16_t *t = (int16_t*)pvHStore;
        int32_t column_len = segLen * segWidth;
        for (i = 0; i<column_len; ++i, ++t) {
            int32_t temp = i / segWidth + i % segWidth * segLen;
            if (temp >= s1Len) continue;
            if (*t > score) {
                score = *t;
                end_query = temp;
                end_ref = s2Len-1;
            }
            else if (*t == score && end_ref == s2Len-1 && temp < end_query) {
                end_query = temp;
            }
        }
    }

    if (!s1_end && !s2_end) {
        /* extract last value from the last column */
        {
            __m256i vH = _mm256_load_si256(pvHStore + offset);
            for (k=0; k<position; ++k) {
                vH = _mm256_slli_si256_rpl(vH, 2);
            }
            score = (int16_t) _mm256_extract_epi16_rpl (vH, 15);
            end_ref = s2Len - 1;
            end_query = s1Len - 1;
        }
    }

    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(boundary);
    parasail_free(pvE);
    parasail_free(pvHLoad);
    parasail_free(pvHStore);

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
andq $-0x20, %rsp
subq $0xd60, %rsp            # imm = 0xD60
movl 0x20(%rbp), %eax
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, 0x380(%rsp)
movq %rsi, 0x378(%rsp)
movl %edx, 0x374(%rsp)
movl %ecx, 0x370(%rsp)
movl %r8d, 0x36c(%rsp)
movl %r9d, 0x368(%rsp)
movl $0x0, 0x364(%rsp)
movl $0x0, 0x360(%rsp)
movl $0x0, 0x35c(%rsp)
movl $0x0, 0x358(%rsp)
movl $0x0, 0x354(%rsp)
movl $0x0, 0x350(%rsp)
movq $0x0, 0x348(%rsp)
movl $0x0, 0x344(%rsp)
movl $0x0, 0x340(%rsp)
movl $0x0, 0x33c(%rsp)
movl $0x0, 0x338(%rsp)
movq $0x0, 0x330(%rsp)
movq $0x0, 0x328(%rsp)
movq $0x0, 0x320(%rsp)
movq $0x0, 0x318(%rsp)
movq $0x0, 0x310(%rsp)
movw $0x0, 0x2be(%rsp)
movw $0x0, 0x2bc(%rsp)
movw $0x0, 0x2ba(%rsp)
movq $0x0, 0x1d8(%rsp)
cmpq $0x0, 0x380(%rsp)
jne 0xb25fb8
movq 0x301050(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1c6059(%rip), %rsi    # 0xcebfeb
leaq 0x1cb32d(%rip), %rdx    # 0xcf12c6
leaq 0x19c53d(%rip), %rcx    # 0xcc24dd
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x388(%rsp)
jmp 0xb2805e
jmp 0xb25fba
jmp 0xb25fbc
movq 0x380(%rsp), %rax
cmpq $0x0, 0x30(%rax)
jne 0xb26002
movq 0x301006(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1c600f(%rip), %rsi    # 0xcebfeb
leaq 0x1cb2e3(%rip), %rdx    # 0xcf12c6
leaq 0x1c6a06(%rip), %rcx    # 0xcec9f0
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x388(%rsp)
jmp 0xb2805e
jmp 0xb26004
jmp 0xb26006
movq 0x380(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jne 0xb2604c
movq 0x300fbc(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1c5fc5(%rip), %rsi    # 0xcebfeb
leaq 0x1cb299(%rip), %rdx    # 0xcf12c6
leaq 0x1c68e8(%rip), %rcx    # 0xcec91c
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x388(%rsp)
jmp 0xb2805e
jmp 0xb2604e
jmp 0xb26050
movq 0x380(%rsp), %rax
cmpl $0x0, 0x8(%rax)
jg 0xb26095
movq 0x300f73(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1c6692(%rip), %rsi    # 0xcec701
leaq 0x1cb250(%rip), %rdx    # 0xcf12c6
leaq 0x1c68af(%rip), %rcx    # 0xcec92c
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x388(%rsp)
jmp 0xb2805e
jmp 0xb26097
jmp 0xb26099
cmpq $0x0, 0x378(%rsp)
jne 0xb260db
movq 0x300f2d(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1c5f36(%rip), %rsi    # 0xcebfeb
leaq 0x1cb20a(%rip), %rdx    # 0xcf12c6
leaq 0x1c663b(%rip), %rcx    # 0xcec6fe
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x388(%rsp)
jmp 0xb2805e
jmp 0xb260dd
jmp 0xb260df
cmpl $0x0, 0x374(%rsp)
jg 0xb26120
movq 0x300ee8(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1c6607(%rip), %rsi    # 0xcec701
leaq 0x1cb1c5(%rip), %rdx    # 0xcf12c6
leaq 0x1c660d(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x388(%rsp)
jmp 0xb2805e
jmp 0xb26122
jmp 0xb26124
cmpl $0x0, 0x370(%rsp)
jge 0xb26165
movq 0x300ea3(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1c65dc(%rip), %rsi    # 0xcec71b
leaq 0x1cb180(%rip), %rdx    # 0xcf12c6
leaq 0x1c65e3(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x388(%rsp)
jmp 0xb2805e
jmp 0xb26167
jmp 0xb26169
cmpl $0x0, 0x36c(%rsp)
jge 0xb261aa
movq 0x300e5e(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1c6597(%rip), %rsi    # 0xcec71b
leaq 0x1cb13b(%rip), %rdx    # 0xcf12c6
leaq 0x1c65a3(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x388(%rsp)
jmp 0xb2805e
jmp 0xb261ac
movl $0x0, 0x364(%rsp)
movl $0x0, 0x360(%rsp)
movl $0x0, 0x35c(%rsp)
movq 0x380(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, 0x358(%rsp)
movl 0x358(%rsp), %eax
decl %eax
movl %eax, 0x354(%rsp)
movl 0x374(%rsp), %eax
decl %eax
movl %eax, 0x350(%rsp)
movq 0x380(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x348(%rsp)
movl $0x10, 0x344(%rsp)
movl 0x358(%rsp), %esi
movl 0x344(%rsp), %ecx
movl %ecx, %edx
movl %esi, %eax
leal -0x1(%rax,%rdx), %eax
cltd
idivl %ecx
movl %eax, 0x340(%rsp)
movl 0x358(%rsp), %eax
decl %eax
movl 0x340(%rsp), %ecx
cltd
idivl %ecx
movl %edx, 0x33c(%rsp)
movl 0x344(%rsp), %ecx
movl 0x358(%rsp), %eax
decl %eax
movl 0x340(%rsp), %esi
cltd
idivl %esi
notl %eax
addl %ecx, %eax
movl %eax, 0x338(%rsp)
movq 0x380(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x330(%rsp)
movw 0x370(%rsp), %ax
movw %ax, 0x39e(%rsp)
movw 0x39e(%rsp), %ax
movw %ax, 0x5c(%rsp)
movw %ax, 0x41e(%rsp)
movw %ax, 0x41c(%rsp)
movw %ax, 0x41a(%rsp)
movw %ax, 0x418(%rsp)
movw %ax, 0x416(%rsp)
movw %ax, 0x414(%rsp)
movw %ax, 0x412(%rsp)
movw %ax, 0x410(%rsp)
movw %ax, 0x40e(%rsp)
movw %ax, 0x40c(%rsp)
movw %ax, 0x40a(%rsp)
movw %ax, 0x408(%rsp)
movw %ax, 0x406(%rsp)
movw %ax, 0x404(%rsp)
movw %ax, 0x402(%rsp)
movw %ax, 0x400(%rsp)
movzwl 0x400(%rsp), %eax
vmovd %eax, %xmm0
movzwl 0x402(%rsp), %eax
vpinsrw $0x1, %eax, %xmm0, %xmm0
movzwl 0x404(%rsp), %eax
vpinsrw $0x2, %eax, %xmm0, %xmm0
movzwl 0x406(%rsp), %eax
vpinsrw $0x3, %eax, %xmm0, %xmm0
movzwl 0x408(%rsp), %eax
vpinsrw $0x4, %eax, %xmm0, %xmm0
movzwl 0x40a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm0, %xmm0
movzwl 0x40c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm0, %xmm0
movzwl 0x40e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm0, %xmm0
movzwl 0x410(%rsp), %eax
vmovd %eax, %xmm1
movzwl 0x412(%rsp), %eax
vpinsrw $0x1, %eax, %xmm1, %xmm1
movzwl 0x414(%rsp), %eax
vpinsrw $0x2, %eax, %xmm1, %xmm1
movzwl 0x416(%rsp), %eax
vpinsrw $0x3, %eax, %xmm1, %xmm1
movzwl 0x418(%rsp), %eax
vpinsrw $0x4, %eax, %xmm1, %xmm1
movzwl 0x41a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm1, %xmm1
movzwl 0x41c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm1, %xmm1
movzwl 0x41e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm1, %xmm1
vmovdqa %xmm1, 0x3f0(%rsp)
vmovdqa %xmm0, 0x3e0(%rsp)
vmovaps 0x3e0(%rsp), %ymm0
vmovaps %ymm0, 0x2e0(%rsp)
movw 0x36c(%rsp), %ax
movw %ax, 0x39c(%rsp)
movw 0x39c(%rsp), %ax
movw %ax, 0x5e(%rsp)
movw %ax, 0x45e(%rsp)
movw %ax, 0x45c(%rsp)
movw %ax, 0x45a(%rsp)
movw %ax, 0x458(%rsp)
movw %ax, 0x456(%rsp)
movw %ax, 0x454(%rsp)
movw %ax, 0x452(%rsp)
movw %ax, 0x450(%rsp)
movw %ax, 0x44e(%rsp)
movw %ax, 0x44c(%rsp)
movw %ax, 0x44a(%rsp)
movw %ax, 0x448(%rsp)
movw %ax, 0x446(%rsp)
movw %ax, 0x444(%rsp)
movw %ax, 0x442(%rsp)
movw %ax, 0x440(%rsp)
movzwl 0x450(%rsp), %eax
vmovd %eax, %xmm0
movzwl 0x452(%rsp), %eax
vpinsrw $0x1, %eax, %xmm0, %xmm0
movzwl 0x454(%rsp), %eax
vpinsrw $0x2, %eax, %xmm0, %xmm0
movzwl 0x456(%rsp), %eax
vpinsrw $0x3, %eax, %xmm0, %xmm0
movzwl 0x458(%rsp), %eax
vpinsrw $0x4, %eax, %xmm0, %xmm0
movzwl 0x45a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm0, %xmm0
movzwl 0x45c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm0, %xmm0
movzwl 0x45e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm0, %xmm1
movzwl 0x440(%rsp), %eax
vmovd %eax, %xmm0
movzwl 0x442(%rsp), %eax
vpinsrw $0x1, %eax, %xmm0, %xmm0
movzwl 0x444(%rsp), %eax
vpinsrw $0x2, %eax, %xmm0, %xmm0
movzwl 0x446(%rsp), %eax
vpinsrw $0x3, %eax, %xmm0, %xmm0
movzwl 0x448(%rsp), %eax
vpinsrw $0x4, %eax, %xmm0, %xmm0
movzwl 0x44a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm0, %xmm0
movzwl 0x44c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm0, %xmm0
movzwl 0x44e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm0, %xmm2
vmovaps %xmm2, %xmm0
vinserti128 $0x1, %xmm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x420(%rsp)
vmovdqa 0x420(%rsp), %ymm0
vmovdqa %ymm0, 0x2c0(%rsp)
xorl %eax, %eax
subl 0x370(%rsp), %eax
movq 0x348(%rsp), %rcx
cmpl 0x20(%rcx), %eax
jge 0xb265d8
movl 0x370(%rsp), %eax
addl $0xffff8000, %eax       # imm = 0xFFFF8000
movl %eax, 0x58(%rsp)
jmp 0xb265ec
movq 0x348(%rsp), %rcx
movl $0xffff8000, %eax       # imm = 0xFFFF8000
subl 0x20(%rcx), %eax
movl %eax, 0x58(%rsp)
movl 0x58(%rsp), %eax
incl %eax
movw %ax, 0x2be(%rsp)
movq 0x348(%rsp), %rax
movl 0x1c(%rax), %eax
xorl $0x7fff, %eax           # imm = 0x7FFF
decl %eax
movw %ax, 0x2bc(%rsp)
movw 0x2be(%rsp), %ax
movw %ax, 0x2ba(%rsp)
movw 0x2be(%rsp), %ax
movw %ax, 0x39a(%rsp)
movw 0x39a(%rsp), %ax
movw %ax, 0x52(%rsp)
movw %ax, 0x49e(%rsp)
movw %ax, 0x49c(%rsp)
movw %ax, 0x49a(%rsp)
movw %ax, 0x498(%rsp)
movw %ax, 0x496(%rsp)
movw %ax, 0x494(%rsp)
movw %ax, 0x492(%rsp)
movw %ax, 0x490(%rsp)
movw %ax, 0x48e(%rsp)
movw %ax, 0x48c(%rsp)
movw %ax, 0x48a(%rsp)
movw %ax, 0x488(%rsp)
movw %ax, 0x486(%rsp)
movw %ax, 0x484(%rsp)
movw %ax, 0x482(%rsp)
movw %ax, 0x480(%rsp)
movzwl 0x480(%rsp), %eax
vmovd %eax, %xmm0
movzwl 0x482(%rsp), %eax
vpinsrw $0x1, %eax, %xmm0, %xmm0
movzwl 0x484(%rsp), %eax
vpinsrw $0x2, %eax, %xmm0, %xmm0
movzwl 0x486(%rsp), %eax
vpinsrw $0x3, %eax, %xmm0, %xmm0
movzwl 0x488(%rsp), %eax
vpinsrw $0x4, %eax, %xmm0, %xmm0
movzwl 0x48a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm0, %xmm0
movzwl 0x48c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm0, %xmm0
movzwl 0x48e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm0, %xmm0
movzwl 0x490(%rsp), %eax
vmovd %eax, %xmm1
movzwl 0x492(%rsp), %eax
vpinsrw $0x1, %eax, %xmm1, %xmm1
movzwl 0x494(%rsp), %eax
vpinsrw $0x2, %eax, %xmm1, %xmm1
movzwl 0x496(%rsp), %eax
vpinsrw $0x3, %eax, %xmm1, %xmm1
movzwl 0x498(%rsp), %eax
vpinsrw $0x4, %eax, %xmm1, %xmm1
movzwl 0x49a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm1, %xmm1
movzwl 0x49c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm1, %xmm1
movzwl 0x49e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm1, %xmm1
vmovdqa %xmm1, 0x470(%rsp)
vmovdqa %xmm0, 0x460(%rsp)
vmovaps 0x460(%rsp), %ymm0
vmovaps %ymm0, 0x280(%rsp)
movw 0x2bc(%rsp), %ax
movw %ax, 0x398(%rsp)
movw 0x398(%rsp), %ax
movw %ax, 0x54(%rsp)
movw %ax, 0x4de(%rsp)
movw %ax, 0x4dc(%rsp)
movw %ax, 0x4da(%rsp)
movw %ax, 0x4d8(%rsp)
movw %ax, 0x4d6(%rsp)
movw %ax, 0x4d4(%rsp)
movw %ax, 0x4d2(%rsp)
movw %ax, 0x4d0(%rsp)
movw %ax, 0x4ce(%rsp)
movw %ax, 0x4cc(%rsp)
movw %ax, 0x4ca(%rsp)
movw %ax, 0x4c8(%rsp)
movw %ax, 0x4c6(%rsp)
movw %ax, 0x4c4(%rsp)
movw %ax, 0x4c2(%rsp)
movw %ax, 0x4c0(%rsp)
movzwl 0x4c0(%rsp), %eax
vmovd %eax, %xmm0
movzwl 0x4c2(%rsp), %eax
vpinsrw $0x1, %eax, %xmm0, %xmm0
movzwl 0x4c4(%rsp), %eax
vpinsrw $0x2, %eax, %xmm0, %xmm0
movzwl 0x4c6(%rsp), %eax
vpinsrw $0x3, %eax, %xmm0, %xmm0
movzwl 0x4c8(%rsp), %eax
vpinsrw $0x4, %eax, %xmm0, %xmm0
movzwl 0x4ca(%rsp), %eax
vpinsrw $0x5, %eax, %xmm0, %xmm0
movzwl 0x4cc(%rsp), %eax
vpinsrw $0x6, %eax, %xmm0, %xmm0
movzwl 0x4ce(%rsp), %eax
vpinsrw $0x7, %eax, %xmm0, %xmm0
movzwl 0x4d0(%rsp), %eax
vmovd %eax, %xmm1
movzwl 0x4d2(%rsp), %eax
vpinsrw $0x1, %eax, %xmm1, %xmm1
movzwl 0x4d4(%rsp), %eax
vpinsrw $0x2, %eax, %xmm1, %xmm1
movzwl 0x4d6(%rsp), %eax
vpinsrw $0x3, %eax, %xmm1, %xmm1
movzwl 0x4d8(%rsp), %eax
vpinsrw $0x4, %eax, %xmm1, %xmm1
movzwl 0x4da(%rsp), %eax
vpinsrw $0x5, %eax, %xmm1, %xmm1
movzwl 0x4dc(%rsp), %eax
vpinsrw $0x6, %eax, %xmm1, %xmm1
movzwl 0x4de(%rsp), %eax
vpinsrw $0x7, %eax, %xmm1, %xmm1
vmovdqa %xmm1, 0x4b0(%rsp)
vmovdqa %xmm0, 0x4a0(%rsp)
vmovaps 0x4a0(%rsp), %ymm0
vmovaps %ymm0, 0x260(%rsp)
vmovaps 0x260(%rsp), %ymm0
vmovaps %ymm0, 0x240(%rsp)
vmovaps 0x280(%rsp), %ymm0
vmovaps %ymm0, 0x220(%rsp)
vmovaps 0x280(%rsp), %ymm0
vmovaps %ymm0, 0x200(%rsp)
movw 0x338(%rsp), %ax
movw %ax, 0x396(%rsp)
movw 0x396(%rsp), %ax
movw %ax, 0x56(%rsp)
movw %ax, 0x51e(%rsp)
movw %ax, 0x51c(%rsp)
movw %ax, 0x51a(%rsp)
movw %ax, 0x518(%rsp)
movw %ax, 0x516(%rsp)
movw %ax, 0x514(%rsp)
movw %ax, 0x512(%rsp)
movw %ax, 0x510(%rsp)
movw %ax, 0x50e(%rsp)
movw %ax, 0x50c(%rsp)
movw %ax, 0x50a(%rsp)
movw %ax, 0x508(%rsp)
movw %ax, 0x506(%rsp)
movw %ax, 0x504(%rsp)
movw %ax, 0x502(%rsp)
movw %ax, 0x500(%rsp)
movzwl 0x500(%rsp), %eax
vmovd %eax, %xmm0
movzwl 0x502(%rsp), %eax
vpinsrw $0x1, %eax, %xmm0, %xmm0
movzwl 0x504(%rsp), %eax
vpinsrw $0x2, %eax, %xmm0, %xmm0
movzwl 0x506(%rsp), %eax
vpinsrw $0x3, %eax, %xmm0, %xmm0
movzwl 0x508(%rsp), %eax
vpinsrw $0x4, %eax, %xmm0, %xmm0
movzwl 0x50a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm0, %xmm0
movzwl 0x50c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm0, %xmm0
movzwl 0x50e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm0, %xmm0
movzwl 0x510(%rsp), %eax
vmovd %eax, %xmm1
movzwl 0x512(%rsp), %eax
vpinsrw $0x1, %eax, %xmm1, %xmm1
movzwl 0x514(%rsp), %eax
vpinsrw $0x2, %eax, %xmm1, %xmm1
movzwl 0x516(%rsp), %eax
vpinsrw $0x3, %eax, %xmm1, %xmm1
movzwl 0x518(%rsp), %eax
vpinsrw $0x4, %eax, %xmm1, %xmm1
movzwl 0x51a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm1, %xmm1
movzwl 0x51c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm1, %xmm1
movzwl 0x51e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm1, %xmm1
vmovdqa %xmm1, 0x4f0(%rsp)
vmovdqa %xmm0, 0x4e0(%rsp)
vmovaps 0x4e0(%rsp), %ymm1
movw $0x0, 0x55e(%rsp)
movw $0x1, 0x55c(%rsp)
movw $0x2, 0x55a(%rsp)
movw $0x3, 0x558(%rsp)
movw $0x4, 0x556(%rsp)
movw $0x5, 0x554(%rsp)
movw $0x6, 0x552(%rsp)
movw $0x7, 0x550(%rsp)
movw $0x8, 0x54e(%rsp)
movw $0x9, 0x54c(%rsp)
movw $0xa, 0x54a(%rsp)
movw $0xb, 0x548(%rsp)
movw $0xc, 0x546(%rsp)
movw $0xd, 0x544(%rsp)
movw $0xe, 0x542(%rsp)
movw $0xf, 0x540(%rsp)
movzwl 0x540(%rsp), %eax
vmovd %eax, %xmm0
movzwl 0x542(%rsp), %eax
vpinsrw $0x1, %eax, %xmm0, %xmm0
movzwl 0x544(%rsp), %eax
vpinsrw $0x2, %eax, %xmm0, %xmm0
movzwl 0x546(%rsp), %eax
vpinsrw $0x3, %eax, %xmm0, %xmm0
movzwl 0x548(%rsp), %eax
vpinsrw $0x4, %eax, %xmm0, %xmm0
movzwl 0x54a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm0, %xmm0
movzwl 0x54c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm0, %xmm0
movzwl 0x54e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm0, %xmm0
movzwl 0x550(%rsp), %eax
vmovd %eax, %xmm2
movzwl 0x552(%rsp), %eax
vpinsrw $0x1, %eax, %xmm2, %xmm2
movzwl 0x554(%rsp), %eax
vpinsrw $0x2, %eax, %xmm2, %xmm2
movzwl 0x556(%rsp), %eax
vpinsrw $0x3, %eax, %xmm2, %xmm2
movzwl 0x558(%rsp), %eax
vpinsrw $0x4, %eax, %xmm2, %xmm2
movzwl 0x55a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm2, %xmm2
movzwl 0x55c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm2, %xmm2
movzwl 0x55e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm2, %xmm2
vmovdqa %xmm2, 0x530(%rsp)
vmovdqa %xmm0, 0x520(%rsp)
vmovaps 0x520(%rsp), %ymm0
vmovaps %ymm1, 0x3c0(%rsp)
vmovaps %ymm0, 0x3a0(%rsp)
vmovaps 0x3c0(%rsp), %ymm0
vmovaps 0x3a0(%rsp), %ymm1
vpcmpeqw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x1e0(%rsp)
movl 0x340(%rsp), %edi
imull 0x344(%rsp), %edi
movl 0x374(%rsp), %esi
vzeroupper
callq 0x1c3af0
movq %rax, 0x1d8(%rsp)
cmpq $0x0, 0x1d8(%rsp)
jne 0xb26cfa
movq $0x0, 0x388(%rsp)
jmp 0xb2805e
movq 0x1d8(%rsp), %rax
movl 0xc(%rax), %ecx
orl $0x10200802, %ecx       # imm = 0x10200802
movl %ecx, 0xc(%rax)
movl 0x368(%rsp), %edx
xorl %ecx, %ecx
movl $0x8, %eax
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq 0x1d8(%rsp), %rax
orl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movl 0x10(%rbp), %edx
xorl %ecx, %ecx
movl $0x10, %eax
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq 0x1d8(%rsp), %rax
orl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movl 0x18(%rbp), %edx
xorl %ecx, %ecx
movl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq 0x1d8(%rsp), %rax
orl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movl 0x20(%rbp), %edx
xorl %ecx, %ecx
movl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq 0x1d8(%rsp), %rax
orl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movq 0x1d8(%rsp), %rax
movl 0xc(%rax), %ecx
orl $0x40000, %ecx          # imm = 0x40000
movl %ecx, 0xc(%rax)
movslq 0x340(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x328(%rsp)
movslq 0x340(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x320(%rsp)
movslq 0x340(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x318(%rsp)
movl 0x374(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x20, %edi
callq 0x1c3630
movq %rax, 0x310(%rsp)
cmpq $0x0, 0x328(%rsp)
jne 0xb26e27
movq $0x0, 0x388(%rsp)
jmp 0xb2805e
cmpq $0x0, 0x320(%rsp)
jne 0xb26e43
movq $0x0, 0x388(%rsp)
jmp 0xb2805e
cmpq $0x0, 0x318(%rsp)
jne 0xb26e5f
movq $0x0, 0x388(%rsp)
jmp 0xb2805e
cmpq $0x0, 0x310(%rsp)
jne 0xb26e7b
movq $0x0, 0x388(%rsp)
jmp 0xb2805e
movl $0x0, 0x1d4(%rsp)
movl $0x0, 0x364(%rsp)
movl 0x364(%rsp), %eax
cmpl 0x340(%rsp), %eax
jge 0xb27084
movl $0x0, 0x1d0(%rsp)
movl $0x0, 0x1d0(%rsp)
movl 0x1d0(%rsp), %eax
cmpl 0x344(%rsp), %eax
jge 0xb26fd1
cmpl $0x0, 0x368(%rsp)
je 0xb26ee1
xorl %eax, %eax
movl %eax, 0x4c(%rsp)
jmp 0xb26f10
xorl %eax, %eax
subl 0x370(%rsp), %eax
movl 0x36c(%rsp), %ecx
movl 0x1d0(%rsp), %edx
imull 0x340(%rsp), %edx
addl 0x364(%rsp), %edx
imull %edx, %ecx
subl %ecx, %eax
movl %eax, 0x4c(%rsp)
movl 0x4c(%rsp), %eax
cltq
movq %rax, 0x178(%rsp)
cmpq $-0x8000, 0x178(%rsp) # imm = 0x8000
jge 0xb26f3a
movq $-0x8000, %rax          # imm = 0x8000
movq %rax, 0x40(%rsp)
jmp 0xb26f47
movq 0x178(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movw %ax, %cx
movslq 0x1d0(%rsp), %rax
movw %cx, 0x1a0(%rsp,%rax,2)
movq 0x178(%rsp), %rax
movslq 0x370(%rsp), %rcx
subq %rcx, %rax
movq %rax, 0x178(%rsp)
cmpq $-0x8000, 0x178(%rsp) # imm = 0x8000
jge 0xb26f96
movq $-0x8000, %rax          # imm = 0x8000
movq %rax, 0x38(%rsp)
jmp 0xb26fa3
movq 0x178(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movw %ax, %cx
movslq 0x1d0(%rsp), %rax
movw %cx, 0x180(%rsp,%rax,2)
movl 0x1d0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1d0(%rsp)
jmp 0xb26ebb
movq 0x328(%rsp), %rax
movslq 0x1d4(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0x1a0(%rsp), %ymm0
movq %rax, 0x698(%rsp)
vmovdqa %ymm0, 0x660(%rsp)
vmovdqa 0x660(%rsp), %ymm0
movq 0x698(%rsp), %rax
vmovdqa %ymm0, (%rax)
movq 0x318(%rsp), %rax
movslq 0x1d4(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0x180(%rsp), %ymm0
movq %rax, 0x658(%rsp)
vmovdqa %ymm0, 0x620(%rsp)
vmovdqa 0x620(%rsp), %ymm0
movq 0x658(%rsp), %rax
vmovdqa %ymm0, (%rax)
movl 0x1d4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1d4(%rsp)
movl 0x364(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x364(%rsp)
jmp 0xb26e91
movq 0x310(%rsp), %rax
movw $0x0, (%rax)
movl $0x1, 0x364(%rsp)
movl 0x364(%rsp), %eax
cmpl 0x374(%rsp), %eax
jg 0xb2714a
cmpl $0x0, 0x18(%rbp)
je 0xb270be
xorl %eax, %eax
movl %eax, 0x34(%rsp)
jmp 0xb270e1
xorl %eax, %eax
subl 0x370(%rsp), %eax
movl 0x36c(%rsp), %ecx
movl 0x364(%rsp), %edx
subl $0x1, %edx
imull %edx, %ecx
subl %ecx, %eax
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
cltq
movq %rax, 0x170(%rsp)
cmpq $-0x8000, 0x170(%rsp) # imm = 0x8000
jge 0xb2710b
movq $-0x8000, %rax          # imm = 0x8000
movq %rax, 0x28(%rsp)
jmp 0xb27118
movq 0x170(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movw %ax, %dx
movq 0x310(%rsp), %rax
movslq 0x364(%rsp), %rcx
movw %dx, (%rax,%rcx,2)
movl 0x364(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x364(%rsp)
jmp 0xb2709c
movl $0x0, 0x360(%rsp)
movl 0x360(%rsp), %eax
cmpl 0x374(%rsp), %eax
jge 0xb27bcd
vmovaps 0x280(%rsp), %ymm0
vmovaps %ymm0, 0x120(%rsp)
movq 0x328(%rsp), %rax
movl 0x340(%rsp), %ecx
decl %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
vmovaps (%rax,%rcx), %ymm0
vperm2i128 $0x28, %ymm0, %ymm1, %ymm1 # ymm1 = zero,zero,ymm0[0,1]
vpalignr $0xe, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[14,15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm1[30,31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vmovaps %ymm0, 0x100(%rsp)
movq 0x330(%rsp), %rax
movq 0x348(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x378(%rsp), %rdx
movslq 0x360(%rsp), %rsi
movzbl (%rdx,%rsi), %edx
movl (%rcx,%rdx,4), %ecx
movl 0x340(%rsp), %edx
imull %edx, %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0xf8(%rsp)
movq 0x320(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq 0x328(%rsp), %rax
movq %rax, 0x320(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x328(%rsp)
vmovaps 0x100(%rsp), %ymm0
movq 0x310(%rsp), %rax
movslq 0x360(%rsp), %rcx
movzwl (%rax,%rcx,2), %eax
vmovaps %xmm0, %xmm1
vpinsrw $0x0, %eax, %xmm1, %xmm2
vmovaps %xmm2, %xmm1
vblendps $0xf, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[0,1,2,3],ymm0[4,5,6,7]
vmovdqa %ymm0, 0x100(%rsp)
movl $0x0, 0x364(%rsp)
movl 0x364(%rsp), %eax
cmpl 0x340(%rsp), %eax
jge 0xb276cc
vmovdqa 0x100(%rsp), %ymm1
movq 0xf8(%rsp), %rax
movslq 0x364(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x718(%rsp)
movq 0x718(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm1, 0x6c0(%rsp)
vmovdqa %ymm0, 0x6a0(%rsp)
vmovdqa 0x6c0(%rsp), %ymm0
vmovdqa 0x6a0(%rsp), %ymm1
vpaddsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x100(%rsp)
movq 0x318(%rsp), %rax
movslq 0x364(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x710(%rsp)
movq 0x710(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0x140(%rsp)
vmovdqa 0x100(%rsp), %ymm1
vmovdqa 0x140(%rsp), %ymm0
vmovdqa %ymm1, 0x900(%rsp)
vmovdqa %ymm0, 0x8e0(%rsp)
vmovdqa 0x900(%rsp), %ymm0
vmovdqa 0x8e0(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x100(%rsp)
vmovdqa 0x100(%rsp), %ymm1
vmovdqa 0x120(%rsp), %ymm0
vmovdqa %ymm1, 0x8c0(%rsp)
vmovdqa %ymm0, 0x8a0(%rsp)
vmovdqa 0x8c0(%rsp), %ymm0
vmovdqa 0x8a0(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x100(%rsp)
movq 0x328(%rsp), %rax
movslq 0x364(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0x100(%rsp), %ymm0
movq %rax, 0x618(%rsp)
vmovdqa %ymm0, 0x5e0(%rsp)
vmovdqa 0x5e0(%rsp), %ymm0
movq 0x618(%rsp), %rax
vmovdqa %ymm0, (%rax)
vmovdqa 0x220(%rsp), %ymm1
vmovdqa 0x100(%rsp), %ymm0
vmovdqa %ymm1, 0x880(%rsp)
vmovdqa %ymm0, 0x860(%rsp)
vmovdqa 0x880(%rsp), %ymm0
vmovdqa 0x860(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x220(%rsp)
vmovdqa 0x240(%rsp), %ymm1
vmovdqa 0x100(%rsp), %ymm0
vmovdqa %ymm1, 0xa00(%rsp)
vmovdqa %ymm0, 0x9e0(%rsp)
vmovdqa 0xa00(%rsp), %ymm0
vmovdqa 0x9e0(%rsp), %ymm1
vpminsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x240(%rsp)
vmovdqa 0x240(%rsp), %ymm1
vmovdqa 0x140(%rsp), %ymm0
vmovdqa %ymm1, 0x9c0(%rsp)
vmovdqa %ymm0, 0x9a0(%rsp)
vmovdqa 0x9c0(%rsp), %ymm0
vmovdqa 0x9a0(%rsp), %ymm1
vpminsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x240(%rsp)
vmovdqa 0x240(%rsp), %ymm1
vmovdqa 0x120(%rsp), %ymm0
vmovdqa %ymm1, 0x980(%rsp)
vmovdqa %ymm0, 0x960(%rsp)
vmovdqa 0x980(%rsp), %ymm0
vmovdqa 0x960(%rsp), %ymm1
vpminsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x240(%rsp)
vmovdqa 0x100(%rsp), %ymm1
vmovdqa 0x2e0(%rsp), %ymm0
vmovdqa %ymm1, 0xb40(%rsp)
vmovdqa %ymm0, 0xb20(%rsp)
vmovdqa 0xb40(%rsp), %ymm0
vmovdqa 0xb20(%rsp), %ymm1
vpsubsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x100(%rsp)
vmovdqa 0x140(%rsp), %ymm1
vmovdqa 0x2c0(%rsp), %ymm0
vmovdqa %ymm1, 0xb00(%rsp)
vmovdqa %ymm0, 0xae0(%rsp)
vmovdqa 0xb00(%rsp), %ymm0
vmovdqa 0xae0(%rsp), %ymm1
vpsubsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x140(%rsp)
vmovdqa 0x140(%rsp), %ymm1
vmovdqa 0x100(%rsp), %ymm0
vmovdqa %ymm1, 0x840(%rsp)
vmovdqa %ymm0, 0x820(%rsp)
vmovdqa 0x840(%rsp), %ymm0
vmovdqa 0x820(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x140(%rsp)
movq 0x318(%rsp), %rax
movslq 0x364(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0x140(%rsp), %ymm0
movq %rax, 0x5d8(%rsp)
vmovdqa %ymm0, 0x5a0(%rsp)
vmovdqa 0x5a0(%rsp), %ymm0
movq 0x5d8(%rsp), %rax
vmovdqa %ymm0, (%rax)
vmovdqa 0x120(%rsp), %ymm1
vmovdqa 0x2c0(%rsp), %ymm0
vmovdqa %ymm1, 0xac0(%rsp)
vmovdqa %ymm0, 0xaa0(%rsp)
vmovdqa 0xac0(%rsp), %ymm0
vmovdqa 0xaa0(%rsp), %ymm1
vpsubsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x120(%rsp)
vmovdqa 0x120(%rsp), %ymm1
vmovdqa 0x100(%rsp), %ymm0
vmovdqa %ymm1, 0x800(%rsp)
vmovdqa %ymm0, 0x7e0(%rsp)
vmovdqa 0x800(%rsp), %ymm0
vmovdqa 0x7e0(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x120(%rsp)
movq 0x320(%rsp), %rax
movslq 0x364(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x708(%rsp)
movq 0x708(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0x100(%rsp)
movl 0x364(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x364(%rsp)
jmp 0xb27268
movl $0x0, 0x35c(%rsp)
movl 0x35c(%rsp), %eax
cmpl 0x344(%rsp), %eax
jge 0xb27a22
cmpl $0x0, 0x18(%rbp)
je 0xb27700
xorl %eax, %eax
subl 0x370(%rsp), %eax
movl %eax, 0x24(%rsp)
jmp 0xb27724
movq 0x310(%rsp), %rax
movl 0x360(%rsp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movswl (%rax,%rcx,2), %eax
subl 0x370(%rsp), %eax
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %eax
cltq
movq %rax, 0xe8(%rsp)
cmpq $-0x8000, 0xe8(%rsp) # imm = 0x8000
jge 0xb2774e
movq $-0x8000, %rax          # imm = 0x8000
movq %rax, 0x18(%rsp)
jmp 0xb2775b
movq 0xe8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movw %ax, 0xe6(%rsp)
vmovaps 0x120(%rsp), %ymm0
vperm2i128 $0x28, %ymm0, %ymm1, %ymm1 # ymm1 = zero,zero,ymm0[0,1]
vpalignr $0xe, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[14,15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm1[30,31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vmovaps %ymm0, 0x120(%rsp)
vmovaps 0x120(%rsp), %ymm0
vmovaps %xmm0, %xmm1
movzwl 0xe6(%rsp), %eax
vpinsrw $0x0, %eax, %xmm1, %xmm2
vmovaps %xmm2, %xmm1
vblendps $0xf, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[0,1,2,3],ymm0[4,5,6,7]
vmovdqa %ymm0, 0x120(%rsp)
movl $0x0, 0x364(%rsp)
movl 0x364(%rsp), %eax
cmpl 0x340(%rsp), %eax
jge 0xb27a0a
movq 0x328(%rsp), %rax
movslq 0x364(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x700(%rsp)
movq 0x700(%rsp), %rax
vmovaps (%rax), %ymm0
vmovaps %ymm0, 0x100(%rsp)
vmovaps 0x100(%rsp), %ymm1
vmovaps 0x120(%rsp), %ymm0
vmovaps %ymm1, 0x7c0(%rsp)
vmovaps %ymm0, 0x7a0(%rsp)
vmovaps 0x7c0(%rsp), %ymm0
vmovaps 0x7a0(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovaps %ymm0, 0x100(%rsp)
movq 0x328(%rsp), %rax
movslq 0x364(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovaps 0x100(%rsp), %ymm0
movq %rax, 0x598(%rsp)
vmovaps %ymm0, 0x560(%rsp)
vmovaps 0x560(%rsp), %ymm0
movq 0x598(%rsp), %rax
vmovaps %ymm0, (%rax)
vmovaps 0x240(%rsp), %ymm1
vmovaps 0x100(%rsp), %ymm0
vmovaps %ymm1, 0x940(%rsp)
vmovaps %ymm0, 0x920(%rsp)
vmovaps 0x940(%rsp), %ymm0
vmovaps 0x920(%rsp), %ymm1
vpminsw %ymm1, %ymm0, %ymm0
vmovaps %ymm0, 0x240(%rsp)
vmovaps 0x220(%rsp), %ymm1
vmovaps 0x100(%rsp), %ymm0
vmovaps %ymm1, 0x780(%rsp)
vmovaps %ymm0, 0x760(%rsp)
vmovaps 0x780(%rsp), %ymm0
vmovaps 0x760(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovaps %ymm0, 0x220(%rsp)
vmovaps 0x100(%rsp), %ymm1
vmovaps 0x2e0(%rsp), %ymm0
vmovaps %ymm1, 0xa80(%rsp)
vmovaps %ymm0, 0xa60(%rsp)
vmovaps 0xa80(%rsp), %ymm0
vmovaps 0xa60(%rsp), %ymm1
vpsubsw %ymm1, %ymm0, %ymm0
vmovaps %ymm0, 0x100(%rsp)
vmovaps 0x120(%rsp), %ymm1
vmovaps 0x2c0(%rsp), %ymm0
vmovaps %ymm1, 0xa40(%rsp)
vmovaps %ymm0, 0xa20(%rsp)
vmovaps 0xa40(%rsp), %ymm0
vmovaps 0xa20(%rsp), %ymm1
vpsubsw %ymm1, %ymm0, %ymm0
vmovaps %ymm0, 0x120(%rsp)
vmovaps 0x120(%rsp), %ymm1
vmovaps 0x100(%rsp), %ymm0
vmovaps %ymm1, 0xca0(%rsp)
vmovaps %ymm0, 0xc80(%rsp)
vmovaps 0xca0(%rsp), %ymm0
vmovaps 0xc80(%rsp), %ymm1
vpcmpgtw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0xba0(%rsp)
vmovdqa 0xba0(%rsp), %ymm0
vpmovmskb %ymm0, %eax
cmpl $0x0, %eax
jne 0xb279f2
jmp 0xb27a24
jmp 0xb279f4
movl 0x364(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x364(%rsp)
jmp 0xb277be
jmp 0xb27a0c
movl 0x35c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x35c(%rsp)
jmp 0xb276d7
jmp 0xb27a24
movq 0x328(%rsp), %rax
movslq 0x33c(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x6f8(%rsp)
movq 0x6f8(%rsp), %rax
vmovaps (%rax), %ymm0
vmovaps %ymm0, 0x100(%rsp)
vmovaps 0x1e0(%rsp), %ymm1
vmovaps 0x100(%rsp), %ymm2
vmovaps 0x200(%rsp), %ymm0
vmovaps %ymm2, 0xc60(%rsp)
vmovaps %ymm0, 0xc40(%rsp)
vmovaps 0xc60(%rsp), %ymm0
vmovaps 0xc40(%rsp), %ymm2
vpcmpgtw %ymm2, %ymm0, %ymm0
vmovdqa %ymm1, 0xce0(%rsp)
vmovdqa %ymm0, 0xcc0(%rsp)
vmovdqa 0xce0(%rsp), %ymm0
vpand 0xcc0(%rsp), %ymm0, %ymm0
vmovdqa %ymm0, 0xc0(%rsp)
vmovdqa 0x100(%rsp), %ymm1
vmovdqa 0x200(%rsp), %ymm0
vmovdqa %ymm1, 0x740(%rsp)
vmovdqa %ymm0, 0x720(%rsp)
vmovdqa 0x740(%rsp), %ymm0
vmovdqa 0x720(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x200(%rsp)
vmovdqa 0xc0(%rsp), %ymm0
vmovdqa %ymm0, 0xb80(%rsp)
vmovdqa 0xb80(%rsp), %ymm0
vpmovmskb %ymm0, %eax
cmpl $0x0, %eax
je 0xb27b3d
movl 0x360(%rsp), %eax
movl %eax, 0x350(%rsp)
movl $0x0, 0x35c(%rsp)
movl 0x35c(%rsp), %eax
cmpl 0x338(%rsp), %eax
jge 0xb27b89
vmovaps 0x100(%rsp), %ymm0
vperm2i128 $0x28, %ymm0, %ymm1, %ymm1 # ymm1 = zero,zero,ymm0[0,1]
vpalignr $0xe, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[14,15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm1[30,31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vmovdqa %ymm0, 0x100(%rsp)
movl 0x35c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x35c(%rsp)
jmp 0xb27b48
vmovdqa 0x110(%rsp), %xmm0
vpextrw $0x7, %xmm0, %eax
movzwl %ax, %eax
movswl %ax, %edx
movq 0x1d8(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movslq 0x360(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x360(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x360(%rsp)
jmp 0xb27155
movl $0x0, 0x364(%rsp)
movl 0x364(%rsp), %eax
cmpl 0x340(%rsp), %eax
jge 0xb27c5e
movq 0x328(%rsp), %rax
movslq 0x364(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x6f0(%rsp)
movq 0x6f0(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0xa0(%rsp)
movq 0x1d8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdi
vmovdqa 0xa0(%rsp), %ymm0
movl 0x364(%rsp), %esi
movl 0x340(%rsp), %edx
callq 0xb28070
movl 0x364(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x364(%rsp)
jmp 0xb27bd8
cmpl $0x0, 0x20(%rbp)
je 0xb27cda
movl $0x0, 0x35c(%rsp)
movl 0x35c(%rsp), %eax
cmpl 0x338(%rsp), %eax
jge 0xb27cb0
vmovaps 0x200(%rsp), %ymm0
vperm2i128 $0x28, %ymm0, %ymm1, %ymm1 # ymm1 = zero,zero,ymm0[0,1]
vpalignr $0xe, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[14,15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm1[30,31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vmovdqa %ymm0, 0x200(%rsp)
movl 0x35c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x35c(%rsp)
jmp 0xb27c6f
vmovdqa 0x210(%rsp), %xmm0
vpextrw $0x7, %xmm0, %eax
movzwl %ax, %eax
movw %ax, 0x2ba(%rsp)
movl 0x358(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x354(%rsp)
cmpl $0x0, 0x10(%rbp)
je 0xb27e3a
movq 0x328(%rsp), %rax
movq %rax, 0x98(%rsp)
movl 0x340(%rsp), %eax
imull 0x344(%rsp), %eax
movl %eax, 0x94(%rsp)
movl $0x0, 0x364(%rsp)
movl 0x364(%rsp), %eax
cmpl 0x94(%rsp), %eax
jge 0xb27e38
movl 0x364(%rsp), %eax
cltd
idivl 0x344(%rsp)
movl %eax, 0x14(%rsp)
movl 0x364(%rsp), %eax
cltd
idivl 0x344(%rsp)
movl 0x14(%rsp), %eax
imull 0x340(%rsp), %edx
addl %edx, %eax
movl %eax, 0x90(%rsp)
movl 0x90(%rsp), %eax
cmpl 0x358(%rsp), %eax
jl 0xb27d75
jmp 0xb27e0e
movq 0x98(%rsp), %rax
movswl (%rax), %eax
movswl 0x2ba(%rsp), %ecx
cmpl %ecx, %eax
jle 0xb27dc0
movq 0x98(%rsp), %rax
movw (%rax), %ax
movw %ax, 0x2ba(%rsp)
movl 0x90(%rsp), %eax
movl %eax, 0x354(%rsp)
movl 0x374(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x350(%rsp)
jmp 0xb27e0c
movq 0x98(%rsp), %rax
movswl (%rax), %eax
movswl 0x2ba(%rsp), %ecx
cmpl %ecx, %eax
jne 0xb27e0a
movl 0x350(%rsp), %eax
movl 0x374(%rsp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0xb27e0a
movl 0x90(%rsp), %eax
cmpl 0x354(%rsp), %eax
jge 0xb27e0a
movl 0x90(%rsp), %eax
movl %eax, 0x354(%rsp)
jmp 0xb27e0c
jmp 0xb27e0e
movl 0x364(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x364(%rsp)
movq 0x98(%rsp), %rax
addq $0x2, %rax
movq %rax, 0x98(%rsp)
jmp 0xb27d15
jmp 0xb27e3a
cmpl $0x0, 0x10(%rbp)
jne 0xb27efd
cmpl $0x0, 0x20(%rbp)
jne 0xb27efd
movq 0x328(%rsp), %rax
movslq 0x33c(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x6e8(%rsp)
movq 0x6e8(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0x60(%rsp)
movl $0x0, 0x35c(%rsp)
movl 0x35c(%rsp), %eax
cmpl 0x338(%rsp), %eax
jge 0xb27ec5
vmovaps 0x60(%rsp), %ymm0
vperm2i128 $0x28, %ymm0, %ymm1, %ymm1 # ymm1 = zero,zero,ymm0[0,1]
vpalignr $0xe, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[14,15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm1[30,31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vmovdqa %ymm0, 0x60(%rsp)
movl 0x35c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x35c(%rsp)
jmp 0xb27e8a
vmovdqa 0x70(%rsp), %xmm0
vpextrw $0x7, %xmm0, %eax
movzwl %ax, %eax
movw %ax, 0x2ba(%rsp)
movl 0x374(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x350(%rsp)
movl 0x358(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x354(%rsp)
vmovaps 0x280(%rsp), %ymm1
vmovaps 0x240(%rsp), %ymm0
vmovaps %ymm1, 0xc20(%rsp)
vmovaps %ymm0, 0xc00(%rsp)
vmovaps 0xc20(%rsp), %ymm0
vmovaps 0xc00(%rsp), %ymm1
vpcmpgtw %ymm1, %ymm0, %ymm1
vmovaps 0x220(%rsp), %ymm2
vmovaps 0x260(%rsp), %ymm0
vmovaps %ymm2, 0xbe0(%rsp)
vmovaps %ymm0, 0xbc0(%rsp)
vmovaps 0xbe0(%rsp), %ymm0
vmovaps 0xbc0(%rsp), %ymm2
vpcmpgtw %ymm2, %ymm0, %ymm0
vmovdqa %ymm1, 0xd20(%rsp)
vmovdqa %ymm0, 0xd00(%rsp)
vmovdqa 0xd20(%rsp), %ymm0
vpor 0xd00(%rsp), %ymm0, %ymm0
vmovdqa %ymm0, 0xb60(%rsp)
vmovdqa 0xb60(%rsp), %ymm0
vpmovmskb %ymm0, %eax
cmpl $0x0, %eax
je 0xb27fe1
movq 0x1d8(%rsp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
movw $0x0, 0x2ba(%rsp)
movl $0x0, 0x354(%rsp)
movl $0x0, 0x350(%rsp)
movswl 0x2ba(%rsp), %ecx
movq 0x1d8(%rsp), %rax
movl %ecx, (%rax)
movl 0x354(%rsp), %ecx
movq 0x1d8(%rsp), %rax
movl %ecx, 0x4(%rax)
movl 0x350(%rsp), %ecx
movq 0x1d8(%rsp), %rax
movl %ecx, 0x8(%rax)
movq 0x310(%rsp), %rdi
vzeroupper
callq 0x1c3590
movq 0x318(%rsp), %rdi
callq 0x1c3590
movq 0x320(%rsp), %rdi
callq 0x1c3590
movq 0x328(%rsp), %rdi
callq 0x1c3590
movq 0x1d8(%rsp), %rax
movq %rax, 0x388(%rsp)
movq 0x388(%rsp), %rax
movq %rbp, %rsp
popq %rbp
retq
nopl (%rax,%rax)