// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sg_striped_sse2_128_16.c
// Function: parasail_sg_flags_rowcol_striped_profile_sse2_128_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;
    __m128i* restrict vProfile = NULL;
    __m128i* restrict pvHStore = NULL;
    __m128i* restrict pvHLoad = NULL;
    __m128i* restrict pvE = NULL;
    int16_t* restrict boundary = NULL;
    __m128i vGapO;
    __m128i vGapE;
    int16_t NEG_LIMIT = 0;
    int16_t POS_LIMIT = 0;
    int16_t score = 0;
    __m128i vNegLimit;
    __m128i vPosLimit;
    __m128i vSaturationCheckMin;
    __m128i vSaturationCheckMax;
    __m128i vMaxH;
    __m128i 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 = 8; /* number of values in vector unit */
    segLen = (s1Len + segWidth - 1) / segWidth;
    offset = (s1Len - 1) % segLen;
    position = (segWidth - 1) - (s1Len - 1) / segLen;
    vProfile = (__m128i*)profile->profile16.score;
    vGapO = _mm_set1_epi16(open);
    vGapE = _mm_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 = _mm_set1_epi16(NEG_LIMIT);
    vPosLimit = _mm_set1_epi16(POS_LIMIT);
    vSaturationCheckMin = vPosLimit;
    vSaturationCheckMax = vNegLimit;
    vMaxH = vNegLimit;
    vPosMask = _mm_cmpeq_epi16(_mm_set1_epi16(position),
            _mm_set_epi16(0,1,2,3,4,5,6,7));

    /* 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_8;
    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___m128i(16, segLen);
    pvHLoad =  parasail_memalign___m128i(16, segLen);
    pvE      = parasail_memalign___m128i(16, segLen);
    boundary = parasail_memalign_int16_t(16, 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;
            __m128i_16_t h;
            __m128i_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;
            }
            _mm_store_si128(&pvHStore[index], h.m);
            _mm_store_si128(&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) {
        __m128i vE;
        /* Initialize F value to -inf.  Any errors to vH values will be
         * corrected in the Lazy_F loop.  */
        __m128i vF = vNegLimit;

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

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

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

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

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

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

            /* Update vE value. */
            vH = _mm_subs_epi16(vH, vGapO);
            vE = _mm_subs_epi16(vE, vGapE);
            vE = _mm_max_epi16(vE, vH);
            _mm_store_si128(pvE + i, vE);

            /* Update vF value. */
            vF = _mm_subs_epi16(vF, vGapE);
            vF = _mm_max_epi16(vF, vH);

            /* Load the next vH. */
            vH = _mm_load_si128(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 = _mm_slli_si128(vF, 2);
            vF = _mm_insert_epi16(vF, tmp2, 0);
            for (i=0; i<segLen; ++i) {
                vH = _mm_load_si128(pvHStore + i);
                vH = _mm_max_epi16(vH,vF);
                _mm_store_si128(pvHStore + i, vH);
                vSaturationCheckMin = _mm_min_epi16(vSaturationCheckMin, vH);
                vSaturationCheckMax = _mm_max_epi16(vSaturationCheckMax, vH);
#ifdef PARASAIL_TABLE
                arr_store_si128(result->tables->score_table, vH, i, segLen, j, s2Len);
#endif
                vH = _mm_subs_epi16(vH, vGapO);
                vF = _mm_subs_epi16(vF, vGapE);
                if (! _mm_movemask_epi8(_mm_cmpgt_epi16(vF, vH))) goto end;
                /*vF = _mm_max_epi16(vF, vH);*/
            }
        }
end:
        {
            /* extract vector containing last value from the column */
            __m128i vCompare;
            vH = _mm_load_si128(pvHStore + offset);
            vCompare = _mm_and_si128(vPosMask, _mm_cmpgt_epi16(vH, vMaxH));
            vMaxH = _mm_max_epi16(vH, vMaxH);
            if (_mm_movemask_epi8(vCompare)) {
                end_ref = j;
            }
#ifdef PARASAIL_ROWCOL
            for (k=0; k<position; ++k) {
                vH = _mm_slli_si128(vH, 2);
            }
            result->rowcols->score_row[j] = (int16_t) _mm_extract_epi16 (vH, 7);
#endif
        }
    }

#ifdef PARASAIL_ROWCOL
    for (i=0; i<segLen; ++i) {
        __m128i vH = _mm_load_si128(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 = _mm_slli_si128(vMaxH, 2);
        }
        score = (int16_t) _mm_extract_epi16(vMaxH, 7);
        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 */
        {
            __m128i vH = _mm_load_si128(pvHStore + offset);
            for (k=0; k<position; ++k) {
                vH = _mm_slli_si128(vH, 2);
            }
            score = (int16_t) _mm_extract_epi16 (vH, 7);
            end_ref = s2Len - 1;
            end_query = s1Len - 1;
        }
    }

    if (_mm_movemask_epi8(_mm_or_si128(
            _mm_cmplt_epi16(vSaturationCheckMin, vNegLimit),
            _mm_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
subq $0x750, %rsp            # imm = 0x750
movl 0x20(%rbp), %eax
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x530(%rbp)
movq %rsi, -0x538(%rbp)
movl %edx, -0x53c(%rbp)
movl %ecx, -0x540(%rbp)
movl %r8d, -0x544(%rbp)
movl %r9d, -0x548(%rbp)
movl $0x0, -0x54c(%rbp)
movl $0x0, -0x550(%rbp)
movl $0x0, -0x554(%rbp)
movl $0x0, -0x558(%rbp)
movl $0x0, -0x55c(%rbp)
movl $0x0, -0x560(%rbp)
movq $0x0, -0x568(%rbp)
movl $0x0, -0x56c(%rbp)
movl $0x0, -0x570(%rbp)
movl $0x0, -0x574(%rbp)
movl $0x0, -0x578(%rbp)
movq $0x0, -0x580(%rbp)
movq $0x0, -0x588(%rbp)
movq $0x0, -0x590(%rbp)
movq $0x0, -0x598(%rbp)
movq $0x0, -0x5a0(%rbp)
movw $0x0, -0x5c2(%rbp)
movw $0x0, -0x5c4(%rbp)
movw $0x0, -0x5c6(%rbp)
movq $0x0, -0x638(%rbp)
cmpq $0x0, -0x530(%rbp)
jne 0x49d188
movq 0x989e7f(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x84ee88(%rip), %rsi    # 0xcebfeb
leaq 0x850b46(%rip), %rdx    # 0xcedcb0
leaq 0x82536c(%rip), %rcx    # 0xcc24dd
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x528(%rbp)
jmp 0x49eb7c
jmp 0x49d18a
jmp 0x49d18c
movq -0x530(%rbp), %rax
cmpq $0x0, 0x30(%rax)
jne 0x49d1d0
movq 0x989e37(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x84ee40(%rip), %rsi    # 0xcebfeb
leaq 0x850afe(%rip), %rdx    # 0xcedcb0
leaq 0x84f837(%rip), %rcx    # 0xcec9f0
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x528(%rbp)
jmp 0x49eb7c
jmp 0x49d1d2
jmp 0x49d1d4
movq -0x530(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x49d218
movq 0x989def(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x84edf8(%rip), %rsi    # 0xcebfeb
leaq 0x850ab6(%rip), %rdx    # 0xcedcb0
leaq 0x84f71b(%rip), %rcx    # 0xcec91c
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x528(%rbp)
jmp 0x49eb7c
jmp 0x49d21a
jmp 0x49d21c
movq -0x530(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jg 0x49d25f
movq 0x989da8(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x84f4c7(%rip), %rsi    # 0xcec701
leaq 0x850a6f(%rip), %rdx    # 0xcedcb0
leaq 0x84f6e4(%rip), %rcx    # 0xcec92c
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x528(%rbp)
jmp 0x49eb7c
jmp 0x49d261
jmp 0x49d263
cmpq $0x0, -0x538(%rbp)
jne 0x49d2a3
movq 0x989d64(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x84ed6d(%rip), %rsi    # 0xcebfeb
leaq 0x850a2b(%rip), %rdx    # 0xcedcb0
leaq 0x84f472(%rip), %rcx    # 0xcec6fe
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x528(%rbp)
jmp 0x49eb7c
jmp 0x49d2a5
jmp 0x49d2a7
cmpl $0x0, -0x53c(%rbp)
jg 0x49d2e6
movq 0x989d21(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x84f440(%rip), %rsi    # 0xcec701
leaq 0x8509e8(%rip), %rdx    # 0xcedcb0
leaq 0x84f446(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x528(%rbp)
jmp 0x49eb7c
jmp 0x49d2e8
jmp 0x49d2ea
cmpl $0x0, -0x540(%rbp)
jge 0x49d329
movq 0x989cde(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x84f417(%rip), %rsi    # 0xcec71b
leaq 0x8509a5(%rip), %rdx    # 0xcedcb0
leaq 0x84f41e(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x528(%rbp)
jmp 0x49eb7c
jmp 0x49d32b
jmp 0x49d32d
cmpl $0x0, -0x544(%rbp)
jge 0x49d36c
movq 0x989c9b(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x84f3d4(%rip), %rsi    # 0xcec71b
leaq 0x850962(%rip), %rdx    # 0xcedcb0
leaq 0x84f3e0(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x528(%rbp)
jmp 0x49eb7c
jmp 0x49d36e
movl $0x0, -0x54c(%rbp)
movl $0x0, -0x550(%rbp)
movl $0x0, -0x554(%rbp)
movq -0x530(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x558(%rbp)
movl -0x558(%rbp), %eax
decl %eax
movl %eax, -0x55c(%rbp)
movl -0x53c(%rbp), %eax
decl %eax
movl %eax, -0x560(%rbp)
movq -0x530(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x568(%rbp)
movl $0x8, -0x56c(%rbp)
movl -0x558(%rbp), %esi
movl -0x56c(%rbp), %ecx
movl %ecx, %edx
movl %esi, %eax
leal -0x1(%rax,%rdx), %eax
cltd
idivl %ecx
movl %eax, -0x570(%rbp)
movl -0x558(%rbp), %eax
decl %eax
movl -0x570(%rbp), %ecx
cltd
idivl %ecx
movl %edx, -0x574(%rbp)
movl -0x56c(%rbp), %ecx
movl -0x558(%rbp), %eax
decl %eax
movl -0x570(%rbp), %esi
cltd
idivl %esi
notl %eax
addl %ecx, %eax
movl %eax, -0x578(%rbp)
movq -0x530(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x580(%rbp)
movw -0x540(%rbp), %ax
movw %ax, -0x512(%rbp)
movw -0x512(%rbp), %ax
movw %ax, -0x704(%rbp)
movw %ax, -0x4d2(%rbp)
movw %ax, -0x4d4(%rbp)
movw %ax, -0x4d6(%rbp)
movw %ax, -0x4d8(%rbp)
movw %ax, -0x4da(%rbp)
movw %ax, -0x4dc(%rbp)
movw %ax, -0x4de(%rbp)
movw %ax, -0x4e0(%rbp)
movzwl -0x4d2(%rbp), %eax
movd %eax, %xmm1
movzwl -0x4d4(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x4d6(%rbp), %eax
movd %eax, %xmm2
movzwl -0x4d8(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x4da(%rbp), %eax
movd %eax, %xmm0
movzwl -0x4dc(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x4de(%rbp), %eax
movd %eax, %xmm3
movzwl -0x4e0(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x4f0(%rbp)
movaps -0x4f0(%rbp), %xmm0
movaps %xmm0, -0x5b0(%rbp)
movw -0x544(%rbp), %ax
movw %ax, -0x514(%rbp)
movw -0x514(%rbp), %ax
movw %ax, -0x702(%rbp)
movw %ax, -0x4b2(%rbp)
movw %ax, -0x4b4(%rbp)
movw %ax, -0x4b6(%rbp)
movw %ax, -0x4b8(%rbp)
movw %ax, -0x4ba(%rbp)
movw %ax, -0x4bc(%rbp)
movw %ax, -0x4be(%rbp)
movw %ax, -0x4c0(%rbp)
movzwl -0x4b2(%rbp), %eax
movd %eax, %xmm1
movzwl -0x4b4(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x4b6(%rbp), %eax
movd %eax, %xmm2
movzwl -0x4b8(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x4ba(%rbp), %eax
movd %eax, %xmm0
movzwl -0x4bc(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x4be(%rbp), %eax
movd %eax, %xmm3
movzwl -0x4c0(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x4d0(%rbp)
movdqa -0x4d0(%rbp), %xmm0
movdqa %xmm0, -0x5c0(%rbp)
xorl %eax, %eax
subl -0x540(%rbp), %eax
movq -0x568(%rbp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x49d61f
movl -0x540(%rbp), %eax
addl $0xffff8000, %eax       # imm = 0xFFFF8000
movl %eax, -0x708(%rbp)
jmp 0x49d634
movq -0x568(%rbp), %rcx
movl $0xffff8000, %eax       # imm = 0xFFFF8000
subl 0x20(%rcx), %eax
movl %eax, -0x708(%rbp)
movl -0x708(%rbp), %eax
incl %eax
movw %ax, -0x5c2(%rbp)
movq -0x568(%rbp), %rax
movl 0x1c(%rax), %eax
xorl $0x7fff, %eax           # imm = 0x7FFF
decl %eax
movw %ax, -0x5c4(%rbp)
movw -0x5c2(%rbp), %ax
movw %ax, -0x5c6(%rbp)
movw -0x5c2(%rbp), %ax
movw %ax, -0x516(%rbp)
movw -0x516(%rbp), %ax
movw %ax, -0x70e(%rbp)
movw %ax, -0x492(%rbp)
movw %ax, -0x494(%rbp)
movw %ax, -0x496(%rbp)
movw %ax, -0x498(%rbp)
movw %ax, -0x49a(%rbp)
movw %ax, -0x49c(%rbp)
movw %ax, -0x49e(%rbp)
movw %ax, -0x4a0(%rbp)
movzwl -0x492(%rbp), %eax
movd %eax, %xmm1
movzwl -0x494(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x496(%rbp), %eax
movd %eax, %xmm2
movzwl -0x498(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x49a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x49c(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x49e(%rbp), %eax
movd %eax, %xmm3
movzwl -0x4a0(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x4b0(%rbp)
movaps -0x4b0(%rbp), %xmm0
movaps %xmm0, -0x5e0(%rbp)
movw -0x5c4(%rbp), %ax
movw %ax, -0x518(%rbp)
movw -0x518(%rbp), %ax
movw %ax, -0x70c(%rbp)
movw %ax, -0x472(%rbp)
movw %ax, -0x474(%rbp)
movw %ax, -0x476(%rbp)
movw %ax, -0x478(%rbp)
movw %ax, -0x47a(%rbp)
movw %ax, -0x47c(%rbp)
movw %ax, -0x47e(%rbp)
movw %ax, -0x480(%rbp)
movzwl -0x472(%rbp), %eax
movd %eax, %xmm1
movzwl -0x474(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x476(%rbp), %eax
movd %eax, %xmm2
movzwl -0x478(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x47a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x47c(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x47e(%rbp), %eax
movd %eax, %xmm3
movzwl -0x480(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x490(%rbp)
movaps -0x490(%rbp), %xmm0
movaps %xmm0, -0x5f0(%rbp)
movaps -0x5f0(%rbp), %xmm0
movaps %xmm0, -0x600(%rbp)
movaps -0x5e0(%rbp), %xmm0
movaps %xmm0, -0x610(%rbp)
movaps -0x5e0(%rbp), %xmm0
movaps %xmm0, -0x620(%rbp)
movw -0x578(%rbp), %ax
movw %ax, -0x51a(%rbp)
movw -0x51a(%rbp), %ax
movw %ax, -0x70a(%rbp)
movw %ax, -0x452(%rbp)
movw %ax, -0x454(%rbp)
movw %ax, -0x456(%rbp)
movw %ax, -0x458(%rbp)
movw %ax, -0x45a(%rbp)
movw %ax, -0x45c(%rbp)
movw %ax, -0x45e(%rbp)
movw %ax, -0x460(%rbp)
movzwl -0x452(%rbp), %eax
movd %eax, %xmm1
movzwl -0x454(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x456(%rbp), %eax
movd %eax, %xmm2
movzwl -0x458(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x45a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x45c(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x45e(%rbp), %eax
movd %eax, %xmm3
movzwl -0x460(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x470(%rbp)
movaps -0x470(%rbp), %xmm1
movw $0x0, -0x432(%rbp)
movw $0x1, -0x434(%rbp)
movw $0x2, -0x436(%rbp)
movw $0x3, -0x438(%rbp)
movw $0x4, -0x43a(%rbp)
movw $0x5, -0x43c(%rbp)
movw $0x6, -0x43e(%rbp)
movw $0x7, -0x440(%rbp)
movzwl -0x432(%rbp), %eax
movd %eax, %xmm2
movzwl -0x434(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1],xmm0[2],xmm2[2],xmm0[3],xmm2[3]
movzwl -0x436(%rbp), %eax
movd %eax, %xmm3
movzwl -0x438(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm3, %xmm2    # xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1],xmm2[2],xmm3[2],xmm2[3],xmm3[3]
punpckldq %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
movzwl -0x43a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x43c(%rbp), %eax
movd %eax, %xmm3
punpcklwd %xmm0, %xmm3    # xmm3 = xmm3[0],xmm0[0],xmm3[1],xmm0[1],xmm3[2],xmm0[2],xmm3[3],xmm0[3]
movzwl -0x43e(%rbp), %eax
movd %eax, %xmm4
movzwl -0x440(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm4, %xmm0    # xmm0 = xmm0[0],xmm4[0],xmm0[1],xmm4[1],xmm0[2],xmm4[2],xmm0[3],xmm4[3]
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
punpcklqdq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0]
movaps %xmm0, -0x450(%rbp)
movaps -0x450(%rbp), %xmm0
movaps %xmm1, -0x500(%rbp)
movaps %xmm0, -0x510(%rbp)
movaps -0x500(%rbp), %xmm0
movaps -0x510(%rbp), %xmm1
pcmpeqw %xmm1, %xmm0
movdqa %xmm0, -0x630(%rbp)
movl -0x570(%rbp), %edi
imull -0x56c(%rbp), %edi
movl -0x53c(%rbp), %esi
callq 0x1c3af0
movq %rax, -0x638(%rbp)
cmpq $0x0, -0x638(%rbp)
jne 0x49da4e
movq $0x0, -0x528(%rbp)
jmp 0x49eb7c
movq -0x638(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x8200802, %ecx        # imm = 0x8200802
movl %ecx, 0xc(%rax)
movl -0x548(%rbp), %edx
xorl %ecx, %ecx
movl $0x8, %eax
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq -0x638(%rbp), %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 -0x638(%rbp), %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 -0x638(%rbp), %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 -0x638(%rbp), %rax
orl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movq -0x638(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40000, %ecx          # imm = 0x40000
movl %ecx, 0xc(%rax)
movslq -0x570(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x588(%rbp)
movslq -0x570(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x590(%rbp)
movslq -0x570(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x598(%rbp)
movl -0x53c(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c3630
movq %rax, -0x5a0(%rbp)
cmpq $0x0, -0x588(%rbp)
jne 0x49db6a
movq $0x0, -0x528(%rbp)
jmp 0x49eb7c
cmpq $0x0, -0x590(%rbp)
jne 0x49db84
movq $0x0, -0x528(%rbp)
jmp 0x49eb7c
cmpq $0x0, -0x598(%rbp)
jne 0x49db9e
movq $0x0, -0x528(%rbp)
jmp 0x49eb7c
cmpq $0x0, -0x5a0(%rbp)
jne 0x49dbb8
movq $0x0, -0x528(%rbp)
jmp 0x49eb7c
movl $0x0, -0x63c(%rbp)
movl $0x0, -0x54c(%rbp)
movl -0x54c(%rbp), %eax
cmpl -0x570(%rbp), %eax
jge 0x49dda7
movl $0x0, -0x640(%rbp)
movl $0x0, -0x640(%rbp)
movl -0x640(%rbp), %eax
cmpl -0x56c(%rbp), %eax
jge 0x49dd06
cmpl $0x0, -0x548(%rbp)
je 0x49dc17
xorl %eax, %eax
movl %eax, -0x714(%rbp)
jmp 0x49dc43
xorl %eax, %eax
subl -0x540(%rbp), %eax
movl -0x544(%rbp), %ecx
movl -0x640(%rbp), %edx
imull -0x570(%rbp), %edx
addl -0x54c(%rbp), %edx
imull %edx, %ecx
subl %ecx, %eax
movl %eax, -0x714(%rbp)
movl -0x714(%rbp), %eax
cltq
movq %rax, -0x668(%rbp)
cmpq $-0x8000, -0x668(%rbp) # imm = 0x8000
jge 0x49dc6f
movq $-0x8000, %rax          # imm = 0x8000
movq %rax, -0x720(%rbp)
jmp 0x49dc7d
movq -0x668(%rbp), %rax
movq %rax, -0x720(%rbp)
movq -0x720(%rbp), %rax
movw %ax, %cx
movslq -0x640(%rbp), %rax
movw %cx, -0x650(%rbp,%rax,2)
movq -0x668(%rbp), %rax
movslq -0x540(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x668(%rbp)
cmpq $-0x8000, -0x668(%rbp) # imm = 0x8000
jge 0x49dccb
movq $-0x8000, %rax          # imm = 0x8000
movq %rax, -0x728(%rbp)
jmp 0x49dcd9
movq -0x668(%rbp), %rax
movq %rax, -0x728(%rbp)
movq -0x728(%rbp), %rax
movw %ax, %cx
movslq -0x640(%rbp), %rax
movw %cx, -0x660(%rbp,%rax,2)
movl -0x640(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x640(%rbp)
jmp 0x49dbf2
movq -0x588(%rbp), %rax
movslq -0x63c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x650(%rbp), %xmm0
movq %rax, -0x398(%rbp)
movdqa %xmm0, -0x3b0(%rbp)
movdqa -0x3b0(%rbp), %xmm0
movq -0x398(%rbp), %rax
movdqa %xmm0, (%rax)
movq -0x598(%rbp), %rax
movslq -0x63c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x660(%rbp), %xmm0
movq %rax, -0x3b8(%rbp)
movdqa %xmm0, -0x3d0(%rbp)
movdqa -0x3d0(%rbp), %xmm0
movq -0x3b8(%rbp), %rax
movdqa %xmm0, (%rax)
movl -0x63c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x63c(%rbp)
movl -0x54c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54c(%rbp)
jmp 0x49dbcc
movq -0x5a0(%rbp), %rax
movw $0x0, (%rax)
movl $0x1, -0x54c(%rbp)
movl -0x54c(%rbp), %eax
cmpl -0x53c(%rbp), %eax
jg 0x49de6b
cmpl $0x0, 0x18(%rbp)
je 0x49dddf
xorl %eax, %eax
movl %eax, -0x72c(%rbp)
jmp 0x49de01
xorl %eax, %eax
subl -0x540(%rbp), %eax
movl -0x544(%rbp), %ecx
movl -0x54c(%rbp), %edx
subl $0x1, %edx
imull %edx, %ecx
subl %ecx, %eax
movl %eax, -0x72c(%rbp)
movl -0x72c(%rbp), %eax
cltq
movq %rax, -0x670(%rbp)
cmpq $-0x8000, -0x670(%rbp) # imm = 0x8000
jge 0x49de2d
movq $-0x8000, %rax          # imm = 0x8000
movq %rax, -0x738(%rbp)
jmp 0x49de3b
movq -0x670(%rbp), %rax
movq %rax, -0x738(%rbp)
movq -0x738(%rbp), %rax
movw %ax, %dx
movq -0x5a0(%rbp), %rax
movslq -0x54c(%rbp), %rcx
movw %dx, (%rax,%rcx,2)
movl -0x54c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54c(%rbp)
jmp 0x49ddbd
movl $0x0, -0x550(%rbp)
movl -0x550(%rbp), %eax
cmpl -0x53c(%rbp), %eax
jge 0x49e778
movaps -0x5e0(%rbp), %xmm0
movaps %xmm0, -0x690(%rbp)
movq -0x588(%rbp), %rax
movl -0x570(%rbp), %ecx
decl %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
movaps (%rax,%rcx), %xmm0
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movaps %xmm0, -0x6a0(%rbp)
movq -0x580(%rbp), %rax
movq -0x568(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x538(%rbp), %rdx
movslq -0x550(%rbp), %rsi
movzbl (%rdx,%rsi), %edx
movl (%rcx,%rdx,4), %ecx
movl -0x570(%rbp), %edx
imull %edx, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x6a8(%rbp)
movq -0x590(%rbp), %rax
movq %rax, -0x6b0(%rbp)
movq -0x588(%rbp), %rax
movq %rax, -0x590(%rbp)
movq -0x6b0(%rbp), %rax
movq %rax, -0x588(%rbp)
movaps -0x6a0(%rbp), %xmm0
movq -0x5a0(%rbp), %rax
movslq -0x550(%rbp), %rcx
movzwl (%rax,%rcx,2), %eax
pinsrw $0x0, %eax, %xmm0
movdqa %xmm0, -0x6a0(%rbp)
movl $0x0, -0x54c(%rbp)
movl -0x54c(%rbp), %eax
cmpl -0x570(%rbp), %eax
jge 0x49e347
movdqa -0x6a0(%rbp), %xmm1
movq -0x6a8(%rbp), %rax
movslq -0x54c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x338(%rbp)
movq -0x338(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm1, -0x380(%rbp)
movdqa %xmm0, -0x390(%rbp)
movdqa -0x380(%rbp), %xmm0
movdqa -0x390(%rbp), %xmm1
paddsw %xmm1, %xmm0
movdqa %xmm0, -0x6a0(%rbp)
movq -0x598(%rbp), %rax
movslq -0x54c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x340(%rbp)
movq -0x340(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x680(%rbp)
movdqa -0x6a0(%rbp), %xmm1
movdqa -0x680(%rbp), %xmm0
movdqa %xmm1, -0x240(%rbp)
movdqa %xmm0, -0x250(%rbp)
movdqa -0x240(%rbp), %xmm0
movdqa -0x250(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x6a0(%rbp)
movdqa -0x6a0(%rbp), %xmm1
movdqa -0x690(%rbp), %xmm0
movdqa %xmm1, -0x260(%rbp)
movdqa %xmm0, -0x270(%rbp)
movdqa -0x260(%rbp), %xmm0
movdqa -0x270(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x6a0(%rbp)
movq -0x588(%rbp), %rax
movslq -0x54c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x6a0(%rbp), %xmm0
movq %rax, -0x3d8(%rbp)
movdqa %xmm0, -0x3f0(%rbp)
movdqa -0x3f0(%rbp), %xmm0
movq -0x3d8(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x610(%rbp), %xmm1
movdqa -0x6a0(%rbp), %xmm0
movdqa %xmm1, -0x280(%rbp)
movdqa %xmm0, -0x290(%rbp)
movdqa -0x280(%rbp), %xmm0
movdqa -0x290(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x610(%rbp)
movdqa -0x600(%rbp), %xmm1
movdqa -0x6a0(%rbp), %xmm0
movdqa %xmm1, -0x1c0(%rbp)
movdqa %xmm0, -0x1d0(%rbp)
movdqa -0x1c0(%rbp), %xmm0
movdqa -0x1d0(%rbp), %xmm1
pminsw %xmm1, %xmm0
movdqa %xmm0, -0x600(%rbp)
movdqa -0x600(%rbp), %xmm1
movdqa -0x680(%rbp), %xmm0
movdqa %xmm1, -0x1e0(%rbp)
movdqa %xmm0, -0x1f0(%rbp)
movdqa -0x1e0(%rbp), %xmm0
movdqa -0x1f0(%rbp), %xmm1
pminsw %xmm1, %xmm0
movdqa %xmm0, -0x600(%rbp)
movdqa -0x600(%rbp), %xmm1
movdqa -0x690(%rbp), %xmm0
movdqa %xmm1, -0x200(%rbp)
movdqa %xmm0, -0x210(%rbp)
movdqa -0x200(%rbp), %xmm0
movdqa -0x210(%rbp), %xmm1
pminsw %xmm1, %xmm0
movdqa %xmm0, -0x600(%rbp)
movdqa -0x6a0(%rbp), %xmm1
movdqa -0x5b0(%rbp), %xmm0
movdqa %xmm1, -0x120(%rbp)
movdqa %xmm0, -0x130(%rbp)
movdqa -0x120(%rbp), %xmm0
movdqa -0x130(%rbp), %xmm1
psubsw %xmm1, %xmm0
movdqa %xmm0, -0x6a0(%rbp)
movdqa -0x680(%rbp), %xmm1
movdqa -0x5c0(%rbp), %xmm0
movdqa %xmm1, -0x140(%rbp)
movdqa %xmm0, -0x150(%rbp)
movdqa -0x140(%rbp), %xmm0
movdqa -0x150(%rbp), %xmm1
psubsw %xmm1, %xmm0
movdqa %xmm0, -0x680(%rbp)
movdqa -0x680(%rbp), %xmm1
movdqa -0x6a0(%rbp), %xmm0
movdqa %xmm1, -0x2a0(%rbp)
movdqa %xmm0, -0x2b0(%rbp)
movdqa -0x2a0(%rbp), %xmm0
movdqa -0x2b0(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x680(%rbp)
movq -0x598(%rbp), %rax
movslq -0x54c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x680(%rbp), %xmm0
movq %rax, -0x3f8(%rbp)
movdqa %xmm0, -0x410(%rbp)
movdqa -0x410(%rbp), %xmm0
movq -0x3f8(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x690(%rbp), %xmm1
movdqa -0x5c0(%rbp), %xmm0
movdqa %xmm1, -0x160(%rbp)
movdqa %xmm0, -0x170(%rbp)
movdqa -0x160(%rbp), %xmm0
movdqa -0x170(%rbp), %xmm1
psubsw %xmm1, %xmm0
movdqa %xmm0, -0x690(%rbp)
movdqa -0x690(%rbp), %xmm1
movdqa -0x6a0(%rbp), %xmm0
movdqa %xmm1, -0x2c0(%rbp)
movdqa %xmm0, -0x2d0(%rbp)
movdqa -0x2c0(%rbp), %xmm0
movdqa -0x2d0(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x690(%rbp)
movq -0x590(%rbp), %rax
movslq -0x54c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x348(%rbp)
movq -0x348(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x6a0(%rbp)
movl -0x54c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54c(%rbp)
jmp 0x49df56
movl $0x0, -0x554(%rbp)
movl -0x554(%rbp), %eax
cmpl -0x56c(%rbp), %eax
jge 0x49e614
cmpl $0x0, 0x18(%rbp)
je 0x49e379
xorl %eax, %eax
subl -0x540(%rbp), %eax
movl %eax, -0x73c(%rbp)
jmp 0x49e39c
movq -0x5a0(%rbp), %rax
movl -0x550(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movswl (%rax,%rcx,2), %eax
subl -0x540(%rbp), %eax
movl %eax, -0x73c(%rbp)
movl -0x73c(%rbp), %eax
cltq
movq %rax, -0x6b8(%rbp)
cmpq $-0x8000, -0x6b8(%rbp) # imm = 0x8000
jge 0x49e3c8
movq $-0x8000, %rax          # imm = 0x8000
movq %rax, -0x748(%rbp)
jmp 0x49e3d6
movq -0x6b8(%rbp), %rax
movq %rax, -0x748(%rbp)
movq -0x748(%rbp), %rax
movw %ax, -0x6ba(%rbp)
movaps -0x690(%rbp), %xmm0
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movaps %xmm0, -0x690(%rbp)
movaps -0x690(%rbp), %xmm0
movzwl -0x6ba(%rbp), %eax
pinsrw $0x0, %eax, %xmm0
movdqa %xmm0, -0x690(%rbp)
movl $0x0, -0x54c(%rbp)
movl -0x54c(%rbp), %eax
cmpl -0x570(%rbp), %eax
jge 0x49e5fe
movq -0x588(%rbp), %rax
movslq -0x54c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x350(%rbp)
movq -0x350(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x6a0(%rbp)
movaps -0x6a0(%rbp), %xmm1
movaps -0x690(%rbp), %xmm0
movaps %xmm1, -0x2e0(%rbp)
movaps %xmm0, -0x2f0(%rbp)
movaps -0x2e0(%rbp), %xmm0
movaps -0x2f0(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movaps %xmm0, -0x6a0(%rbp)
movq -0x588(%rbp), %rax
movslq -0x54c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movaps -0x6a0(%rbp), %xmm0
movq %rax, -0x418(%rbp)
movaps %xmm0, -0x430(%rbp)
movaps -0x430(%rbp), %xmm0
movq -0x418(%rbp), %rax
movaps %xmm0, (%rax)
movaps -0x600(%rbp), %xmm1
movaps -0x6a0(%rbp), %xmm0
movaps %xmm1, -0x220(%rbp)
movaps %xmm0, -0x230(%rbp)
movaps -0x220(%rbp), %xmm0
movaps -0x230(%rbp), %xmm1
pminsw %xmm1, %xmm0
movaps %xmm0, -0x600(%rbp)
movaps -0x610(%rbp), %xmm1
movaps -0x6a0(%rbp), %xmm0
movaps %xmm1, -0x300(%rbp)
movaps %xmm0, -0x310(%rbp)
movaps -0x300(%rbp), %xmm0
movaps -0x310(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movaps %xmm0, -0x610(%rbp)
movaps -0x6a0(%rbp), %xmm1
movaps -0x5b0(%rbp), %xmm0
movaps %xmm1, -0x180(%rbp)
movaps %xmm0, -0x190(%rbp)
movaps -0x180(%rbp), %xmm0
movaps -0x190(%rbp), %xmm1
psubsw %xmm1, %xmm0
movaps %xmm0, -0x6a0(%rbp)
movaps -0x690(%rbp), %xmm1
movaps -0x5c0(%rbp), %xmm0
movaps %xmm1, -0x1a0(%rbp)
movaps %xmm0, -0x1b0(%rbp)
movaps -0x1a0(%rbp), %xmm0
movaps -0x1b0(%rbp), %xmm1
psubsw %xmm1, %xmm0
movaps %xmm0, -0x690(%rbp)
movaps -0x690(%rbp), %xmm1
movaps -0x6a0(%rbp), %xmm0
movaps %xmm1, -0x90(%rbp)
movaps %xmm0, -0xa0(%rbp)
movaps -0x90(%rbp), %xmm0
movaps -0xa0(%rbp), %xmm1
pcmpgtw %xmm1, %xmm0
movdqa %xmm0, -0xf0(%rbp)
movdqa -0xf0(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
jne 0x49e5e8
jmp 0x49e616
jmp 0x49e5ea
movl -0x54c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54c(%rbp)
jmp 0x49e41c
jmp 0x49e600
movl -0x554(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x554(%rbp)
jmp 0x49e351
jmp 0x49e616
movq -0x588(%rbp), %rax
movslq -0x574(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x358(%rbp)
movq -0x358(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x6a0(%rbp)
movaps -0x630(%rbp), %xmm1
movaps -0x6a0(%rbp), %xmm2
movaps -0x620(%rbp), %xmm0
movaps %xmm2, -0xb0(%rbp)
movaps %xmm0, -0xc0(%rbp)
movaps -0xb0(%rbp), %xmm0
movaps -0xc0(%rbp), %xmm2
pcmpgtw %xmm2, %xmm0
movdqa %xmm1, -0x70(%rbp)
movdqa %xmm0, -0x80(%rbp)
movdqa -0x70(%rbp), %xmm0
pand -0x80(%rbp), %xmm0
movdqa %xmm0, -0x6d0(%rbp)
movdqa -0x6a0(%rbp), %xmm1
movdqa -0x620(%rbp), %xmm0
movdqa %xmm1, -0x320(%rbp)
movdqa %xmm0, -0x330(%rbp)
movdqa -0x320(%rbp), %xmm0
movdqa -0x330(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x620(%rbp)
movdqa -0x6d0(%rbp), %xmm0
movdqa %xmm0, -0x100(%rbp)
movdqa -0x100(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x49e6fd
movl -0x550(%rbp), %eax
movl %eax, -0x560(%rbp)
movl $0x0, -0x554(%rbp)
movl -0x554(%rbp), %eax
cmpl -0x578(%rbp), %eax
jge 0x49e73a
movaps -0x6a0(%rbp), %xmm0
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movdqa %xmm0, -0x6a0(%rbp)
movl -0x554(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x554(%rbp)
jmp 0x49e707
movaps -0x6a0(%rbp), %xmm0
pextrw $0x7, %xmm0, %eax
movzwl %ax, %eax
movswl %ax, %edx
movq -0x638(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movslq -0x550(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x550(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x550(%rbp)
jmp 0x49de75
movl $0x0, -0x54c(%rbp)
movl -0x54c(%rbp), %eax
cmpl -0x570(%rbp), %eax
jge 0x49e7f8
movq -0x588(%rbp), %rax
movslq -0x54c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x360(%rbp)
movq -0x360(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x6e0(%rbp)
movq -0x638(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdi
movdqa -0x6e0(%rbp), %xmm0
movl -0x54c(%rbp), %esi
movl -0x570(%rbp), %edx
callq 0x49eb90
movl -0x54c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54c(%rbp)
jmp 0x49e782
cmpl $0x0, 0x20(%rbp)
je 0x49e860
movl $0x0, -0x554(%rbp)
movl -0x554(%rbp), %eax
cmpl -0x578(%rbp), %eax
jge 0x49e83b
movaps -0x620(%rbp), %xmm0
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movdqa %xmm0, -0x620(%rbp)
movl -0x554(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x554(%rbp)
jmp 0x49e808
movaps -0x620(%rbp), %xmm0
pextrw $0x7, %xmm0, %eax
movzwl %ax, %eax
movw %ax, -0x5c6(%rbp)
movl -0x558(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x55c(%rbp)
cmpl $0x0, 0x10(%rbp)
je 0x49e9a0
movq -0x588(%rbp), %rax
movq %rax, -0x6e8(%rbp)
movl -0x570(%rbp), %eax
imull -0x56c(%rbp), %eax
movl %eax, -0x6ec(%rbp)
movl $0x0, -0x54c(%rbp)
movl -0x54c(%rbp), %eax
cmpl -0x6ec(%rbp), %eax
jge 0x49e99e
movl -0x54c(%rbp), %eax
cltd
idivl -0x56c(%rbp)
movl %eax, -0x74c(%rbp)
movl -0x54c(%rbp), %eax
cltd
idivl -0x56c(%rbp)
movl -0x74c(%rbp), %eax
imull -0x570(%rbp), %edx
addl %edx, %eax
movl %eax, -0x6f0(%rbp)
movl -0x6f0(%rbp), %eax
cmpl -0x558(%rbp), %eax
jl 0x49e8ef
jmp 0x49e978
movq -0x6e8(%rbp), %rax
movswl (%rax), %eax
movswl -0x5c6(%rbp), %ecx
cmpl %ecx, %eax
jle 0x49e932
movq -0x6e8(%rbp), %rax
movw (%rax), %ax
movw %ax, -0x5c6(%rbp)
movl -0x6f0(%rbp), %eax
movl %eax, -0x55c(%rbp)
movl -0x53c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x560(%rbp)
jmp 0x49e976
movq -0x6e8(%rbp), %rax
movswl (%rax), %eax
movswl -0x5c6(%rbp), %ecx
cmpl %ecx, %eax
jne 0x49e974
movl -0x560(%rbp), %eax
movl -0x53c(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x49e974
movl -0x6f0(%rbp), %eax
cmpl -0x55c(%rbp), %eax
jge 0x49e974
movl -0x6f0(%rbp), %eax
movl %eax, -0x55c(%rbp)
jmp 0x49e976
jmp 0x49e978
movl -0x54c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54c(%rbp)
movq -0x6e8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x6e8(%rbp)
jmp 0x49e895
jmp 0x49e9a0
cmpl $0x0, 0x10(%rbp)
jne 0x49ea54
cmpl $0x0, 0x20(%rbp)
jne 0x49ea54
movq -0x588(%rbp), %rax
movslq -0x574(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x368(%rbp)
movq -0x368(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x700(%rbp)
movl $0x0, -0x554(%rbp)
movl -0x554(%rbp), %eax
cmpl -0x578(%rbp), %eax
jge 0x49ea20
movaps -0x700(%rbp), %xmm0
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movdqa %xmm0, -0x700(%rbp)
movl -0x554(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x554(%rbp)
jmp 0x49e9ed
movaps -0x700(%rbp), %xmm0
pextrw $0x7, %xmm0, %eax
movzwl %ax, %eax
movw %ax, -0x5c6(%rbp)
movl -0x53c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x560(%rbp)
movl -0x558(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x55c(%rbp)
movaps -0x600(%rbp), %xmm1
movaps -0x5e0(%rbp), %xmm0
movaps %xmm1, -0x30(%rbp)
movaps %xmm0, -0x40(%rbp)
movaps -0x40(%rbp), %xmm1
movaps -0x30(%rbp), %xmm0
movaps %xmm1, -0x10(%rbp)
movaps %xmm0, -0x20(%rbp)
movaps -0x10(%rbp), %xmm1
movaps -0x20(%rbp), %xmm0
pcmpgtw %xmm0, %xmm1
movaps -0x610(%rbp), %xmm2
movaps -0x5f0(%rbp), %xmm0
movaps %xmm2, -0xd0(%rbp)
movaps %xmm0, -0xe0(%rbp)
movaps -0xd0(%rbp), %xmm0
movaps -0xe0(%rbp), %xmm2
pcmpgtw %xmm2, %xmm0
movdqa %xmm1, -0x50(%rbp)
movdqa %xmm0, -0x60(%rbp)
movdqa -0x50(%rbp), %xmm0
por -0x60(%rbp), %xmm0
movdqa %xmm0, -0x110(%rbp)
movdqa -0x110(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x49eb0e
movq -0x638(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
movw $0x0, -0x5c6(%rbp)
movl $0x0, -0x55c(%rbp)
movl $0x0, -0x560(%rbp)
movswl -0x5c6(%rbp), %ecx
movq -0x638(%rbp), %rax
movl %ecx, (%rax)
movl -0x55c(%rbp), %ecx
movq -0x638(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x560(%rbp), %ecx
movq -0x638(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x5a0(%rbp), %rdi
callq 0x1c3590
movq -0x598(%rbp), %rdi
callq 0x1c3590
movq -0x590(%rbp), %rdi
callq 0x1c3590
movq -0x588(%rbp), %rdi
callq 0x1c3590
movq -0x638(%rbp), %rax
movq %rax, -0x528(%rbp)
movq -0x528(%rbp), %rax
addq $0x750, %rsp            # imm = 0x750
popq %rbp
retq
nopl (%rax)