// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/nw_striped_sse2_128_16.c
// Function: parasail_nw_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)
{
    /* declare local variables */
    int32_t i = 0;
    int32_t j = 0;
    int32_t k = 0;
    int 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;
    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;

    /* 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_NW | PARASAIL_FLAG_STRIPED
        | PARASAIL_FLAG_BITS_16 | PARASAIL_FLAG_LANES_8;
#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 = -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 = -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 = 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:
        {
        }

#ifdef PARASAIL_ROWCOL
        /* extract last value from the column */
        {
            vH = _mm_load_si128(pvHStore + offset);
            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

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

    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 $0x620, %rsp            # imm = 0x620
movq %rdi, -0x458(%rbp)
movq %rsi, -0x460(%rbp)
movl %edx, -0x464(%rbp)
movl %ecx, -0x468(%rbp)
movl %r8d, -0x46c(%rbp)
movl $0x0, -0x470(%rbp)
movl $0x0, -0x474(%rbp)
movl $0x0, -0x478(%rbp)
movl $0x0, -0x47c(%rbp)
movl $0x0, -0x480(%rbp)
movl $0x0, -0x484(%rbp)
movq $0x0, -0x490(%rbp)
movl $0x0, -0x494(%rbp)
movl $0x0, -0x498(%rbp)
movl $0x0, -0x49c(%rbp)
movl $0x0, -0x4a0(%rbp)
movq $0x0, -0x4a8(%rbp)
movq $0x0, -0x4b0(%rbp)
movq $0x0, -0x4b8(%rbp)
movq $0x0, -0x4c0(%rbp)
movq $0x0, -0x4c8(%rbp)
movw $0x0, -0x4f2(%rbp)
movw $0x0, -0x4f4(%rbp)
movw $0x0, -0x4f6(%rbp)
movq $0x0, -0x548(%rbp)
cmpq $0x0, -0x458(%rbp)
jne 0x49b898
movq 0x98b76f(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x850778(%rip), %rsi    # 0xcebfeb
leaq 0x83e054(%rip), %rdx    # 0xcd98ce
leaq 0x826c5c(%rip), %rcx    # 0xcc24dd
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x450(%rbp)
jmp 0x49cc9b
jmp 0x49b89a
jmp 0x49b89c
movq -0x458(%rbp), %rax
cmpq $0x0, 0x30(%rax)
jne 0x49b8e0
movq 0x98b727(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x850730(%rip), %rsi    # 0xcebfeb
leaq 0x83e00c(%rip), %rdx    # 0xcd98ce
leaq 0x851127(%rip), %rcx    # 0xcec9f0
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x450(%rbp)
jmp 0x49cc9b
jmp 0x49b8e2
jmp 0x49b8e4
movq -0x458(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x49b928
movq 0x98b6df(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x8506e8(%rip), %rsi    # 0xcebfeb
leaq 0x83dfc4(%rip), %rdx    # 0xcd98ce
leaq 0x85100b(%rip), %rcx    # 0xcec91c
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x450(%rbp)
jmp 0x49cc9b
jmp 0x49b92a
jmp 0x49b92c
movq -0x458(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jg 0x49b96f
movq 0x98b698(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x850db7(%rip), %rsi    # 0xcec701
leaq 0x83df7d(%rip), %rdx    # 0xcd98ce
leaq 0x850fd4(%rip), %rcx    # 0xcec92c
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x450(%rbp)
jmp 0x49cc9b
jmp 0x49b971
jmp 0x49b973
cmpq $0x0, -0x460(%rbp)
jne 0x49b9b3
movq 0x98b654(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x85065d(%rip), %rsi    # 0xcebfeb
leaq 0x83df39(%rip), %rdx    # 0xcd98ce
leaq 0x850d62(%rip), %rcx    # 0xcec6fe
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x450(%rbp)
jmp 0x49cc9b
jmp 0x49b9b5
jmp 0x49b9b7
cmpl $0x0, -0x464(%rbp)
jg 0x49b9f6
movq 0x98b611(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x850d30(%rip), %rsi    # 0xcec701
leaq 0x83def6(%rip), %rdx    # 0xcd98ce
leaq 0x850d36(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x450(%rbp)
jmp 0x49cc9b
jmp 0x49b9f8
jmp 0x49b9fa
cmpl $0x0, -0x468(%rbp)
jge 0x49ba39
movq 0x98b5ce(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x850d07(%rip), %rsi    # 0xcec71b
leaq 0x83deb3(%rip), %rdx    # 0xcd98ce
leaq 0x850d0e(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x450(%rbp)
jmp 0x49cc9b
jmp 0x49ba3b
jmp 0x49ba3d
cmpl $0x0, -0x46c(%rbp)
jge 0x49ba7c
movq 0x98b58b(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x850cc4(%rip), %rsi    # 0xcec71b
leaq 0x83de70(%rip), %rdx    # 0xcd98ce
leaq 0x850cd0(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x450(%rbp)
jmp 0x49cc9b
jmp 0x49ba7e
movl $0x0, -0x470(%rbp)
movl $0x0, -0x474(%rbp)
movl $0x0, -0x478(%rbp)
movq -0x458(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x47c(%rbp)
movl -0x47c(%rbp), %eax
decl %eax
movl %eax, -0x480(%rbp)
movl -0x464(%rbp), %eax
decl %eax
movl %eax, -0x484(%rbp)
movq -0x458(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x490(%rbp)
movl $0x8, -0x494(%rbp)
movl -0x47c(%rbp), %esi
movl -0x494(%rbp), %ecx
movl %ecx, %edx
movl %esi, %eax
leal -0x1(%rax,%rdx), %eax
cltd
idivl %ecx
movl %eax, -0x498(%rbp)
movl -0x47c(%rbp), %eax
decl %eax
movl -0x498(%rbp), %ecx
cltd
idivl %ecx
movl %edx, -0x49c(%rbp)
movl -0x494(%rbp), %ecx
movl -0x47c(%rbp), %eax
decl %eax
movl -0x498(%rbp), %esi
cltd
idivl %esi
notl %eax
addl %ecx, %eax
movl %eax, -0x4a0(%rbp)
movq -0x458(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x4a8(%rbp)
movw -0x468(%rbp), %ax
movw %ax, -0x442(%rbp)
movw -0x442(%rbp), %ax
movw %ax, -0x5f4(%rbp)
movw %ax, -0x62(%rbp)
movw %ax, -0x64(%rbp)
movw %ax, -0x66(%rbp)
movw %ax, -0x68(%rbp)
movw %ax, -0x6a(%rbp)
movw %ax, -0x6c(%rbp)
movw %ax, -0x6e(%rbp)
movw %ax, -0x70(%rbp)
movzwl -0x62(%rbp), %eax
movd %eax, %xmm1
movzwl -0x64(%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 -0x66(%rbp), %eax
movd %eax, %xmm2
movzwl -0x68(%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 -0x6a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x6c(%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 -0x6e(%rbp), %eax
movd %eax, %xmm3
movzwl -0x70(%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, -0x80(%rbp)
movaps -0x80(%rbp), %xmm0
movaps %xmm0, -0x4e0(%rbp)
movw -0x46c(%rbp), %ax
movw %ax, -0x444(%rbp)
movw -0x444(%rbp), %ax
movw %ax, -0x5f2(%rbp)
movw %ax, -0x42(%rbp)
movw %ax, -0x44(%rbp)
movw %ax, -0x46(%rbp)
movw %ax, -0x48(%rbp)
movw %ax, -0x4a(%rbp)
movw %ax, -0x4c(%rbp)
movw %ax, -0x4e(%rbp)
movw %ax, -0x50(%rbp)
movzwl -0x42(%rbp), %eax
movd %eax, %xmm1
movzwl -0x44(%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 -0x46(%rbp), %eax
movd %eax, %xmm2
movzwl -0x48(%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 -0x4a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x4c(%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 -0x4e(%rbp), %eax
movd %eax, %xmm3
movzwl -0x50(%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, -0x60(%rbp)
movdqa -0x60(%rbp), %xmm0
movdqa %xmm0, -0x4f0(%rbp)
xorl %eax, %eax
subl -0x468(%rbp), %eax
movq -0x490(%rbp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x49bcc3
movl -0x468(%rbp), %eax
addl $0xffff8000, %eax       # imm = 0xFFFF8000
movl %eax, -0x5f8(%rbp)
jmp 0x49bcd8
movq -0x490(%rbp), %rcx
movl $0xffff8000, %eax       # imm = 0xFFFF8000
subl 0x20(%rcx), %eax
movl %eax, -0x5f8(%rbp)
movl -0x5f8(%rbp), %eax
incl %eax
movw %ax, -0x4f2(%rbp)
movq -0x490(%rbp), %rax
movl 0x1c(%rax), %eax
xorl $0x7fff, %eax           # imm = 0x7FFF
decl %eax
movw %ax, -0x4f4(%rbp)
movw -0x4f2(%rbp), %ax
movw %ax, -0x4f6(%rbp)
movw -0x4f2(%rbp), %ax
movw %ax, -0x446(%rbp)
movw -0x446(%rbp), %ax
movw %ax, -0x5fc(%rbp)
movw %ax, -0x22(%rbp)
movw %ax, -0x24(%rbp)
movw %ax, -0x26(%rbp)
movw %ax, -0x28(%rbp)
movw %ax, -0x2a(%rbp)
movw %ax, -0x2c(%rbp)
movw %ax, -0x2e(%rbp)
movw %ax, -0x30(%rbp)
movzwl -0x22(%rbp), %eax
movd %eax, %xmm1
movzwl -0x24(%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 -0x26(%rbp), %eax
movd %eax, %xmm2
movzwl -0x28(%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 -0x2a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x2c(%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 -0x2e(%rbp), %eax
movd %eax, %xmm3
movzwl -0x30(%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, -0x40(%rbp)
movaps -0x40(%rbp), %xmm0
movaps %xmm0, -0x510(%rbp)
movw -0x4f4(%rbp), %ax
movw %ax, -0x448(%rbp)
movw -0x448(%rbp), %ax
movw %ax, -0x5fa(%rbp)
movw %ax, -0x2(%rbp)
movw %ax, -0x4(%rbp)
movw %ax, -0x6(%rbp)
movw %ax, -0x8(%rbp)
movw %ax, -0xa(%rbp)
movw %ax, -0xc(%rbp)
movw %ax, -0xe(%rbp)
movw %ax, -0x10(%rbp)
movzwl -0x2(%rbp), %eax
movd %eax, %xmm1
movzwl -0x4(%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 -0x6(%rbp), %eax
movd %eax, %xmm2
movzwl -0x8(%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 -0xa(%rbp), %eax
movd %eax, %xmm0
movzwl -0xc(%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 -0xe(%rbp), %eax
movd %eax, %xmm3
movzwl -0x10(%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, -0x20(%rbp)
movdqa -0x20(%rbp), %xmm0
movdqa %xmm0, -0x520(%rbp)
movdqa -0x520(%rbp), %xmm0
movdqa %xmm0, -0x530(%rbp)
movdqa -0x510(%rbp), %xmm0
movdqa %xmm0, -0x540(%rbp)
movl -0x498(%rbp), %edi
imull -0x494(%rbp), %edi
movl -0x464(%rbp), %esi
callq 0x1c3af0
movq %rax, -0x548(%rbp)
cmpq $0x0, -0x548(%rbp)
jne 0x49beb7
movq $0x0, -0x450(%rbp)
jmp 0x49cc9b
movq -0x548(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x8200801, %ecx        # imm = 0x8200801
movl %ecx, 0xc(%rax)
movq -0x548(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40000, %ecx          # imm = 0x40000
movl %ecx, 0xc(%rax)
movslq -0x498(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x4b0(%rbp)
movslq -0x498(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x4b8(%rbp)
movslq -0x498(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x4c0(%rbp)
movl -0x464(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c3630
movq %rax, -0x4c8(%rbp)
cmpq $0x0, -0x4b0(%rbp)
jne 0x49bf5c
movq $0x0, -0x450(%rbp)
jmp 0x49cc9b
cmpq $0x0, -0x4b8(%rbp)
jne 0x49bf76
movq $0x0, -0x450(%rbp)
jmp 0x49cc9b
cmpq $0x0, -0x4c0(%rbp)
jne 0x49bf90
movq $0x0, -0x450(%rbp)
jmp 0x49cc9b
cmpq $0x0, -0x4c8(%rbp)
jne 0x49bfaa
movq $0x0, -0x450(%rbp)
jmp 0x49cc9b
movl $0x0, -0x54c(%rbp)
movl $0x0, -0x470(%rbp)
movl -0x470(%rbp), %eax
cmpl -0x498(%rbp), %eax
jge 0x49c17a
movl $0x0, -0x550(%rbp)
movl $0x0, -0x550(%rbp)
movl -0x550(%rbp), %eax
cmpl -0x494(%rbp), %eax
jge 0x49c0d9
xorl %eax, %eax
subl -0x468(%rbp), %eax
movl -0x46c(%rbp), %ecx
movl -0x550(%rbp), %edx
imull -0x498(%rbp), %edx
addl -0x470(%rbp), %edx
imull %edx, %ecx
subl %ecx, %eax
cltq
movq %rax, -0x578(%rbp)
cmpq $-0x8000, -0x578(%rbp) # imm = 0x8000
jge 0x49c042
movq $-0x8000, %rax          # imm = 0x8000
movq %rax, -0x608(%rbp)
jmp 0x49c050
movq -0x578(%rbp), %rax
movq %rax, -0x608(%rbp)
movq -0x608(%rbp), %rax
movw %ax, %cx
movslq -0x550(%rbp), %rax
movw %cx, -0x560(%rbp,%rax,2)
movq -0x578(%rbp), %rax
movslq -0x468(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x578(%rbp)
cmpq $-0x8000, -0x578(%rbp) # imm = 0x8000
jge 0x49c09e
movq $-0x8000, %rax          # imm = 0x8000
movq %rax, -0x610(%rbp)
jmp 0x49c0ac
movq -0x578(%rbp), %rax
movq %rax, -0x610(%rbp)
movq -0x610(%rbp), %rax
movw %ax, %cx
movslq -0x550(%rbp), %rax
movw %cx, -0x570(%rbp,%rax,2)
movl -0x550(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x550(%rbp)
jmp 0x49bfe4
movq -0x4b0(%rbp), %rax
movslq -0x54c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x560(%rbp), %xmm0
movq %rax, -0x3a8(%rbp)
movdqa %xmm0, -0x3c0(%rbp)
movdqa -0x3c0(%rbp), %xmm0
movq -0x3a8(%rbp), %rax
movdqa %xmm0, (%rax)
movq -0x4c0(%rbp), %rax
movslq -0x54c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x570(%rbp), %xmm0
movq %rax, -0x3c8(%rbp)
movdqa %xmm0, -0x3e0(%rbp)
movdqa -0x3e0(%rbp), %xmm0
movq -0x3c8(%rbp), %rax
movdqa %xmm0, (%rax)
movl -0x54c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54c(%rbp)
movl -0x470(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x470(%rbp)
jmp 0x49bfbe
movq -0x4c8(%rbp), %rax
movw $0x0, (%rax)
movl $0x1, -0x470(%rbp)
movl -0x470(%rbp), %eax
cmpl -0x464(%rbp), %eax
jg 0x49c222
xorl %eax, %eax
subl -0x468(%rbp), %eax
movl -0x46c(%rbp), %ecx
movl -0x470(%rbp), %edx
subl $0x1, %edx
imull %edx, %ecx
subl %ecx, %eax
cltq
movq %rax, -0x580(%rbp)
cmpq $-0x8000, -0x580(%rbp) # imm = 0x8000
jge 0x49c1e4
movq $-0x8000, %rax          # imm = 0x8000
movq %rax, -0x618(%rbp)
jmp 0x49c1f2
movq -0x580(%rbp), %rax
movq %rax, -0x618(%rbp)
movq -0x618(%rbp), %rax
movw %ax, %dx
movq -0x4c8(%rbp), %rax
movslq -0x470(%rbp), %rcx
movw %dx, (%rax,%rcx,2)
movl -0x470(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x470(%rbp)
jmp 0x49c190
movl $0x0, -0x474(%rbp)
movl -0x474(%rbp), %eax
cmpl -0x464(%rbp), %eax
jge 0x49ca55
movaps -0x510(%rbp), %xmm0
movaps %xmm0, -0x5a0(%rbp)
movq -0x4b0(%rbp), %rax
movl -0x498(%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, -0x5b0(%rbp)
movq -0x4a8(%rbp), %rax
movq -0x490(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x460(%rbp), %rdx
movslq -0x474(%rbp), %rsi
movzbl (%rdx,%rsi), %edx
movl (%rcx,%rdx,4), %ecx
movl -0x498(%rbp), %edx
imull %edx, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x5b8(%rbp)
movq -0x4b8(%rbp), %rax
movq %rax, -0x5c0(%rbp)
movq -0x4b0(%rbp), %rax
movq %rax, -0x4b8(%rbp)
movq -0x5c0(%rbp), %rax
movq %rax, -0x4b0(%rbp)
movaps -0x5b0(%rbp), %xmm0
movq -0x4c8(%rbp), %rax
movslq -0x474(%rbp), %rcx
movzwl (%rax,%rcx,2), %eax
pinsrw $0x0, %eax, %xmm0
movdqa %xmm0, -0x5b0(%rbp)
movl $0x0, -0x470(%rbp)
movl -0x470(%rbp), %eax
cmpl -0x498(%rbp), %eax
jge 0x49c6fe
movdqa -0x5b0(%rbp), %xmm1
movq -0x5b8(%rbp), %rax
movslq -0x470(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x348(%rbp)
movq -0x348(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm1, -0x390(%rbp)
movdqa %xmm0, -0x3a0(%rbp)
movdqa -0x390(%rbp), %xmm0
movdqa -0x3a0(%rbp), %xmm1
paddsw %xmm1, %xmm0
movdqa %xmm0, -0x5b0(%rbp)
movq -0x4c0(%rbp), %rax
movslq -0x470(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x350(%rbp)
movq -0x350(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x590(%rbp)
movdqa -0x5b0(%rbp), %xmm1
movdqa -0x590(%rbp), %xmm0
movdqa %xmm1, -0x270(%rbp)
movdqa %xmm0, -0x280(%rbp)
movdqa -0x270(%rbp), %xmm0
movdqa -0x280(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x5b0(%rbp)
movdqa -0x5b0(%rbp), %xmm1
movdqa -0x5a0(%rbp), %xmm0
movdqa %xmm1, -0x290(%rbp)
movdqa %xmm0, -0x2a0(%rbp)
movdqa -0x290(%rbp), %xmm0
movdqa -0x2a0(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x5b0(%rbp)
movq -0x4b0(%rbp), %rax
movslq -0x470(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x5b0(%rbp), %xmm0
movq %rax, -0x3e8(%rbp)
movdqa %xmm0, -0x400(%rbp)
movdqa -0x400(%rbp), %xmm0
movq -0x3e8(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x540(%rbp), %xmm1
movdqa -0x5b0(%rbp), %xmm0
movdqa %xmm1, -0x2b0(%rbp)
movdqa %xmm0, -0x2c0(%rbp)
movdqa -0x2b0(%rbp), %xmm0
movdqa -0x2c0(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x540(%rbp)
movdqa -0x530(%rbp), %xmm1
movdqa -0x5b0(%rbp), %xmm0
movdqa %xmm1, -0x1f0(%rbp)
movdqa %xmm0, -0x200(%rbp)
movdqa -0x1f0(%rbp), %xmm0
movdqa -0x200(%rbp), %xmm1
pminsw %xmm1, %xmm0
movdqa %xmm0, -0x530(%rbp)
movdqa -0x530(%rbp), %xmm1
movdqa -0x590(%rbp), %xmm0
movdqa %xmm1, -0x210(%rbp)
movdqa %xmm0, -0x220(%rbp)
movdqa -0x210(%rbp), %xmm0
movdqa -0x220(%rbp), %xmm1
pminsw %xmm1, %xmm0
movdqa %xmm0, -0x530(%rbp)
movdqa -0x530(%rbp), %xmm1
movdqa -0x5a0(%rbp), %xmm0
movdqa %xmm1, -0x230(%rbp)
movdqa %xmm0, -0x240(%rbp)
movdqa -0x230(%rbp), %xmm0
movdqa -0x240(%rbp), %xmm1
pminsw %xmm1, %xmm0
movdqa %xmm0, -0x530(%rbp)
movdqa -0x5b0(%rbp), %xmm1
movdqa -0x4e0(%rbp), %xmm0
movdqa %xmm1, -0x150(%rbp)
movdqa %xmm0, -0x160(%rbp)
movdqa -0x150(%rbp), %xmm0
movdqa -0x160(%rbp), %xmm1
psubsw %xmm1, %xmm0
movdqa %xmm0, -0x5b0(%rbp)
movdqa -0x590(%rbp), %xmm1
movdqa -0x4f0(%rbp), %xmm0
movdqa %xmm1, -0x170(%rbp)
movdqa %xmm0, -0x180(%rbp)
movdqa -0x170(%rbp), %xmm0
movdqa -0x180(%rbp), %xmm1
psubsw %xmm1, %xmm0
movdqa %xmm0, -0x590(%rbp)
movdqa -0x590(%rbp), %xmm1
movdqa -0x5b0(%rbp), %xmm0
movdqa %xmm1, -0x2d0(%rbp)
movdqa %xmm0, -0x2e0(%rbp)
movdqa -0x2d0(%rbp), %xmm0
movdqa -0x2e0(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x590(%rbp)
movq -0x4c0(%rbp), %rax
movslq -0x470(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x590(%rbp), %xmm0
movq %rax, -0x408(%rbp)
movdqa %xmm0, -0x420(%rbp)
movdqa -0x420(%rbp), %xmm0
movq -0x408(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x5a0(%rbp), %xmm1
movdqa -0x4f0(%rbp), %xmm0
movdqa %xmm1, -0x190(%rbp)
movdqa %xmm0, -0x1a0(%rbp)
movdqa -0x190(%rbp), %xmm0
movdqa -0x1a0(%rbp), %xmm1
psubsw %xmm1, %xmm0
movdqa %xmm0, -0x5a0(%rbp)
movdqa -0x5a0(%rbp), %xmm1
movdqa -0x5b0(%rbp), %xmm0
movdqa %xmm1, -0x2f0(%rbp)
movdqa %xmm0, -0x300(%rbp)
movdqa -0x2f0(%rbp), %xmm0
movdqa -0x300(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x5a0(%rbp)
movq -0x4b8(%rbp), %rax
movslq -0x470(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x358(%rbp)
movq -0x358(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x5b0(%rbp)
movl -0x470(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x470(%rbp)
jmp 0x49c30d
movl $0x0, -0x478(%rbp)
movl -0x478(%rbp), %eax
cmpl -0x494(%rbp), %eax
jge 0x49c9a9
movq -0x4c8(%rbp), %rax
movl -0x474(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movswl (%rax,%rcx,2), %eax
subl -0x468(%rbp), %eax
cltq
movq %rax, -0x5c8(%rbp)
cmpq $-0x8000, -0x5c8(%rbp) # imm = 0x8000
jge 0x49c75d
movq $-0x8000, %rax          # imm = 0x8000
movq %rax, -0x620(%rbp)
jmp 0x49c76b
movq -0x5c8(%rbp), %rax
movq %rax, -0x620(%rbp)
movq -0x620(%rbp), %rax
movw %ax, -0x5ca(%rbp)
movaps -0x5a0(%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, -0x5a0(%rbp)
movaps -0x5a0(%rbp), %xmm0
movzwl -0x5ca(%rbp), %eax
pinsrw $0x0, %eax, %xmm0
movdqa %xmm0, -0x5a0(%rbp)
movl $0x0, -0x470(%rbp)
movl -0x470(%rbp), %eax
cmpl -0x498(%rbp), %eax
jge 0x49c993
movq -0x4b0(%rbp), %rax
movslq -0x470(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x360(%rbp)
movq -0x360(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x5b0(%rbp)
movaps -0x5b0(%rbp), %xmm1
movaps -0x5a0(%rbp), %xmm0
movaps %xmm1, -0x310(%rbp)
movaps %xmm0, -0x320(%rbp)
movaps -0x310(%rbp), %xmm0
movaps -0x320(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movaps %xmm0, -0x5b0(%rbp)
movq -0x4b0(%rbp), %rax
movslq -0x470(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movaps -0x5b0(%rbp), %xmm0
movq %rax, -0x428(%rbp)
movaps %xmm0, -0x440(%rbp)
movaps -0x440(%rbp), %xmm0
movq -0x428(%rbp), %rax
movaps %xmm0, (%rax)
movaps -0x530(%rbp), %xmm1
movaps -0x5b0(%rbp), %xmm0
movaps %xmm1, -0x250(%rbp)
movaps %xmm0, -0x260(%rbp)
movaps -0x250(%rbp), %xmm0
movaps -0x260(%rbp), %xmm1
pminsw %xmm1, %xmm0
movaps %xmm0, -0x530(%rbp)
movaps -0x540(%rbp), %xmm1
movaps -0x5b0(%rbp), %xmm0
movaps %xmm1, -0x330(%rbp)
movaps %xmm0, -0x340(%rbp)
movaps -0x330(%rbp), %xmm0
movaps -0x340(%rbp), %xmm1
pmaxsw %xmm1, %xmm0
movaps %xmm0, -0x540(%rbp)
movaps -0x5b0(%rbp), %xmm1
movaps -0x4e0(%rbp), %xmm0
movaps %xmm1, -0x1b0(%rbp)
movaps %xmm0, -0x1c0(%rbp)
movaps -0x1b0(%rbp), %xmm0
movaps -0x1c0(%rbp), %xmm1
psubsw %xmm1, %xmm0
movaps %xmm0, -0x5b0(%rbp)
movaps -0x5a0(%rbp), %xmm1
movaps -0x4f0(%rbp), %xmm0
movaps %xmm1, -0x1d0(%rbp)
movaps %xmm0, -0x1e0(%rbp)
movaps -0x1d0(%rbp), %xmm0
movaps -0x1e0(%rbp), %xmm1
psubsw %xmm1, %xmm0
movaps %xmm0, -0x5a0(%rbp)
movaps -0x5a0(%rbp), %xmm1
movaps -0x5b0(%rbp), %xmm0
movaps %xmm1, -0xf0(%rbp)
movaps %xmm0, -0x100(%rbp)
movaps -0xf0(%rbp), %xmm0
movaps -0x100(%rbp), %xmm1
pcmpgtw %xmm1, %xmm0
movdqa %xmm0, -0x130(%rbp)
movdqa -0x130(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
jne 0x49c97d
jmp 0x49c9ab
jmp 0x49c97f
movl -0x470(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x470(%rbp)
jmp 0x49c7b1
jmp 0x49c995
movl -0x478(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x478(%rbp)
jmp 0x49c708
jmp 0x49c9ab
movq -0x4b0(%rbp), %rax
movslq -0x49c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x368(%rbp)
movq -0x368(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x5b0(%rbp)
movl $0x0, -0x478(%rbp)
movl -0x478(%rbp), %eax
cmpl -0x4a0(%rbp), %eax
jge 0x49ca17
movaps -0x5b0(%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, -0x5b0(%rbp)
movl -0x478(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x478(%rbp)
jmp 0x49c9e4
movaps -0x5b0(%rbp), %xmm0
pextrw $0x7, %xmm0, %eax
movzwl %ax, %eax
movswl %ax, %edx
movq -0x548(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movslq -0x474(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x474(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x474(%rbp)
jmp 0x49c22c
movl $0x0, -0x470(%rbp)
movl -0x470(%rbp), %eax
cmpl -0x498(%rbp), %eax
jge 0x49cad5
movq -0x4b0(%rbp), %rax
movslq -0x470(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x370(%rbp)
movq -0x370(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x5e0(%rbp)
movq -0x548(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdi
movdqa -0x5e0(%rbp), %xmm0
movl -0x470(%rbp), %esi
movl -0x498(%rbp), %edx
callq 0x49ccb0
movl -0x470(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x470(%rbp)
jmp 0x49ca5f
movq -0x4b0(%rbp), %rax
movslq -0x49c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x378(%rbp)
movq -0x378(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x5f0(%rbp)
movl $0x0, -0x478(%rbp)
movl -0x478(%rbp), %eax
cmpl -0x4a0(%rbp), %eax
jge 0x49cb41
movaps -0x5f0(%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, -0x5f0(%rbp)
movl -0x478(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x478(%rbp)
jmp 0x49cb0e
movw -0x5e2(%rbp), %ax
movw %ax, -0x4f6(%rbp)
movaps -0x530(%rbp), %xmm1
movaps -0x510(%rbp), %xmm0
movaps %xmm1, -0xb0(%rbp)
movaps %xmm0, -0xc0(%rbp)
movaps -0xc0(%rbp), %xmm1
movaps -0xb0(%rbp), %xmm0
movaps %xmm1, -0x90(%rbp)
movaps %xmm0, -0xa0(%rbp)
movaps -0x90(%rbp), %xmm1
movaps -0xa0(%rbp), %xmm0
pcmpgtw %xmm0, %xmm1
movaps -0x540(%rbp), %xmm2
movaps -0x520(%rbp), %xmm0
movaps %xmm2, -0x110(%rbp)
movaps %xmm0, -0x120(%rbp)
movaps -0x110(%rbp), %xmm0
movaps -0x120(%rbp), %xmm2
pcmpgtw %xmm2, %xmm0
movdqa %xmm1, -0xd0(%rbp)
movdqa %xmm0, -0xe0(%rbp)
movdqa -0xd0(%rbp), %xmm0
por -0xe0(%rbp), %xmm0
movdqa %xmm0, -0x140(%rbp)
movdqa -0x140(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x49cc2d
movq -0x548(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
movw $0x0, -0x4f6(%rbp)
movl $0x0, -0x480(%rbp)
movl $0x0, -0x484(%rbp)
movswl -0x4f6(%rbp), %ecx
movq -0x548(%rbp), %rax
movl %ecx, (%rax)
movl -0x480(%rbp), %ecx
movq -0x548(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x484(%rbp), %ecx
movq -0x548(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x4c8(%rbp), %rdi
callq 0x1c3590
movq -0x4c0(%rbp), %rdi
callq 0x1c3590
movq -0x4b8(%rbp), %rdi
callq 0x1c3590
movq -0x4b0(%rbp), %rdi
callq 0x1c3590
movq -0x548(%rbp), %rax
movq %rax, -0x450(%rbp)
movq -0x450(%rbp), %rax
addq $0x620, %rsp            # imm = 0x620
popq %rbp
retq
nopl (%rax,%rax)