// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sw_striped_sse2_128_32.c
// Function: parasail_sw_rowcol_striped_profile_sse2_128_32
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;
    int32_t end_query = 0;
    int32_t end_ref = 0;
    int32_t s1Len = 0;
    const parasail_matrix_t *matrix = NULL;
    int32_t segWidth = 0;
    int32_t segLen = 0;
#ifdef PARASAIL_ROWCOL
    int32_t offset = 0;
    int32_t position = 0;
#endif
    __m128i* restrict vProfile = NULL;
    __m128i* restrict pvHStore = NULL;
    __m128i* restrict pvHLoad = NULL;
    __m128i* restrict pvHMax = NULL;
    __m128i* restrict pvE = NULL;
    __m128i vGapO;
    __m128i vGapE;
    __m128i vZero;
    __m128i vNegInf;
    int32_t score = 0;
    __m128i vMaxH;
    __m128i vMaxHUnit;
    int32_t maxp = 0;
    /*int32_t stop = 0;*/
    parasail_result_t *result = NULL;

    /* validate inputs */
    PARASAIL_CHECK_NULL(profile);
    PARASAIL_CHECK_NULL(profile->profile32.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;
    end_query = 0;
    end_ref = 0;
    s1Len = profile->s1Len;
    matrix = profile->matrix;
    segWidth = 4; /* number of values in vector unit */
    segLen = (s1Len + segWidth - 1) / segWidth;
#ifdef PARASAIL_ROWCOL
    offset = (s1Len - 1) % segLen;
    position = (segWidth - 1) - (s1Len - 1) / segLen;
#endif
    vProfile = (__m128i*)profile->profile32.score;
    vGapO = _mm_set1_epi32(open);
    vGapE = _mm_set1_epi32(gap);
    vZero = _mm_setzero_si128();
    vNegInf = _mm_set1_epi32(NEG_INF);
    score = NEG_INF;
    vMaxH = vNegInf;
    vMaxHUnit = vNegInf;
    maxp = INT32_MAX - (int32_t)(matrix->max+1);
    /*stop = profile->stop == INT32_MAX ?  INT32_MAX : (int32_t)profile->stop;*/

    /* 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_SW | PARASAIL_FLAG_STRIPED
        | PARASAIL_FLAG_BITS_32 | PARASAIL_FLAG_LANES_4;
#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);
    pvHMax = parasail_memalign___m128i(16, segLen);
    pvE = parasail_memalign___m128i(16, segLen);

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

    /* initialize H and E */
    parasail_memset___m128i(pvHStore, vZero, segLen);
    parasail_memset___m128i(pvE, _mm_set1_epi32(-open), segLen);

    /* outer loop over database sequence */
    for (j=0; j<s2Len; ++j) {
        __m128i vE;
        __m128i vF;
        __m128i vH;
        const __m128i* vP = NULL;
        __m128i* pv = NULL;

        /* Initialize F value to 0.  Any errors to vH values will be
         * corrected in the Lazy_F loop. */
        vF = vZero;

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

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

        if (end_ref == j-2) {
            /* Swap in the max buffer. */
            pv = pvHMax;
            pvHMax = pvHLoad;
            pvHLoad = pvHStore;
            pvHStore = pv;
        }
        else {
            /* Swap the 2 H buffers. */
            pv = pvHLoad;
            pvHLoad = pvHStore;
            pvHStore = pv;
        }

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

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

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

            /* Update vF value. */
            vF = _mm_sub_epi32(vF, vGapE);
            vF = _mm_max_epi32_rpl(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) {
            vF = _mm_slli_si128(vF, 4);
            for (i=0; i<segLen; ++i) {
                vH = _mm_load_si128(pvHStore + i);
                vH = _mm_max_epi32_rpl(vH,vF);
                _mm_store_si128(pvHStore + i, vH);
#ifdef PARASAIL_TABLE
                arr_store_si128(result->tables->score_table, vH, i, segLen, j, s2Len);
#endif
                vMaxH = _mm_max_epi32_rpl(vH, vMaxH);
                vH = _mm_sub_epi32(vH, vGapO);
                vF = _mm_sub_epi32(vF, vGapE);
                if (! _mm_movemask_epi8(_mm_cmpgt_epi32(vF, vH))) goto end;
                /*vF = _mm_max_epi32_rpl(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, 4);
            }
            result->rowcols->score_row[j] = (int32_t) _mm_extract_epi32_rpl (vH, 3);
        }
#endif

        {
            __m128i vCompare = _mm_cmpgt_epi32(vMaxH, vMaxHUnit);
            if (_mm_movemask_epi8(vCompare)) {
                score = _mm_hmax_epi32_rpl(vMaxH);
                /* if score has potential to overflow, abort early */
                if (score > maxp) {
                    result->flag |= PARASAIL_FLAG_SATURATED;
                    break;
                }
                vMaxHUnit = _mm_set1_epi32(score);
                end_ref = j;
            }
        }

        /*if (score == stop) break;*/
    }

#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

    if (score == INT32_MAX) {
        result->flag |= PARASAIL_FLAG_SATURATED;
    }

    if (parasail_result_is_saturated(result)) {
        score = INT32_MAX;
        end_query = 0;
        end_ref = 0;
    }
    else {
        if (end_ref == j-1) {
            /* end_ref was the last store column */
            __m128i *pv = pvHMax;
            pvHMax = pvHStore;
            pvHStore = pv;
        }
        else if (end_ref == j-2) {
            /* end_ref was the last load column */
            __m128i *pv = pvHMax;
            pvHMax = pvHLoad;
            pvHLoad = pv;
        }
        /* Trace the alignment ending position on read. */
        {
            int32_t *t = (int32_t*)pvHMax;
            int32_t column_len = segLen * segWidth;
            end_query = s1Len - 1;
            for (i = 0; i<column_len; ++i, ++t) {
                if (*t == score) {
                    int32_t temp = i / segWidth + i % segWidth * segLen;
                    if (temp < end_query) {
                        end_query = temp;
                    }
                }
            }
        }
    }

    result->score = score;
    result->end_query = end_query;
    result->end_ref = end_ref;

    parasail_free(pvE);
    parasail_free(pvHMax);
    parasail_free(pvHLoad);
    parasail_free(pvHStore);

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x420, %rsp            # imm = 0x420
movq %rdi, -0x298(%rbp)
movq %rsi, -0x2a0(%rbp)
movl %edx, -0x2a4(%rbp)
movl %ecx, -0x2a8(%rbp)
movl %r8d, -0x2ac(%rbp)
movl $0x0, -0x2b0(%rbp)
movl $0x0, -0x2b4(%rbp)
movl $0x0, -0x2b8(%rbp)
movl $0x0, -0x2bc(%rbp)
movl $0x0, -0x2c0(%rbp)
movl $0x0, -0x2c4(%rbp)
movq $0x0, -0x2d0(%rbp)
movl $0x0, -0x2d4(%rbp)
movl $0x0, -0x2d8(%rbp)
movl $0x0, -0x2dc(%rbp)
movl $0x0, -0x2e0(%rbp)
movq $0x0, -0x2e8(%rbp)
movq $0x0, -0x2f0(%rbp)
movq $0x0, -0x2f8(%rbp)
movq $0x0, -0x300(%rbp)
movq $0x0, -0x308(%rbp)
movl $0x0, -0x354(%rbp)
movl $0x0, -0x384(%rbp)
movq $0x0, -0x390(%rbp)
cmpq $0x0, -0x298(%rbp)
jne 0x49a361
movq 0x98cca6(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x851caf(%rip), %rsi    # 0xcebfeb
leaq 0x8402f4(%rip), %rdx    # 0xcda637
leaq 0x828193(%rip), %rcx    # 0xcc24dd
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x290(%rbp)
jmp 0x49b303
jmp 0x49a363
jmp 0x49a365
movq -0x298(%rbp), %rax
cmpq $0x0, 0x48(%rax)
jne 0x49a3a9
movq 0x98cc5e(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x851c67(%rip), %rsi    # 0xcebfeb
leaq 0x8402ac(%rip), %rdx    # 0xcda637
leaq 0x8525f7(%rip), %rcx    # 0xcec989
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x290(%rbp)
jmp 0x49b303
jmp 0x49a3ab
jmp 0x49a3ad
movq -0x298(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x49a3f1
movq 0x98cc16(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x851c1f(%rip), %rsi    # 0xcebfeb
leaq 0x840264(%rip), %rdx    # 0xcda637
leaq 0x852542(%rip), %rcx    # 0xcec91c
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x290(%rbp)
jmp 0x49b303
jmp 0x49a3f3
jmp 0x49a3f5
movq -0x298(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jg 0x49a438
movq 0x98cbcf(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x8522ee(%rip), %rsi    # 0xcec701
leaq 0x84021d(%rip), %rdx    # 0xcda637
leaq 0x85250b(%rip), %rcx    # 0xcec92c
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x290(%rbp)
jmp 0x49b303
jmp 0x49a43a
jmp 0x49a43c
cmpq $0x0, -0x2a0(%rbp)
jne 0x49a47c
movq 0x98cb8b(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x851b94(%rip), %rsi    # 0xcebfeb
leaq 0x8401d9(%rip), %rdx    # 0xcda637
leaq 0x852299(%rip), %rcx    # 0xcec6fe
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x290(%rbp)
jmp 0x49b303
jmp 0x49a47e
jmp 0x49a480
cmpl $0x0, -0x2a4(%rbp)
jg 0x49a4bf
movq 0x98cb48(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x852267(%rip), %rsi    # 0xcec701
leaq 0x840196(%rip), %rdx    # 0xcda637
leaq 0x85226d(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x290(%rbp)
jmp 0x49b303
jmp 0x49a4c1
jmp 0x49a4c3
cmpl $0x0, -0x2a8(%rbp)
jge 0x49a502
movq 0x98cb05(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x85223e(%rip), %rsi    # 0xcec71b
leaq 0x840153(%rip), %rdx    # 0xcda637
leaq 0x852245(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x290(%rbp)
jmp 0x49b303
jmp 0x49a504
jmp 0x49a506
cmpl $0x0, -0x2ac(%rbp)
jge 0x49a545
movq 0x98cac2(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x8521fb(%rip), %rsi    # 0xcec71b
leaq 0x840110(%rip), %rdx    # 0xcda637
leaq 0x852207(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x290(%rbp)
jmp 0x49b303
jmp 0x49a547
movl $0x0, -0x2b0(%rbp)
movl $0x0, -0x2b4(%rbp)
movl $0x0, -0x2b8(%rbp)
movl $0x0, -0x2bc(%rbp)
movl $0x0, -0x2c0(%rbp)
movq -0x298(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x2c4(%rbp)
movq -0x298(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x2d0(%rbp)
movl $0x4, -0x2d4(%rbp)
movl -0x2c4(%rbp), %esi
movl -0x2d4(%rbp), %ecx
movl %ecx, %edx
movl %esi, %eax
leal -0x1(%rax,%rdx), %eax
cltd
idivl %ecx
movl %eax, -0x2d8(%rbp)
movl -0x2c4(%rbp), %eax
decl %eax
movl -0x2d8(%rbp), %ecx
cltd
idivl %ecx
movl %edx, -0x2dc(%rbp)
movl -0x2d4(%rbp), %ecx
movl -0x2c4(%rbp), %eax
decl %eax
movl -0x2d8(%rbp), %esi
cltd
idivl %esi
notl %eax
addl %ecx, %eax
movl %eax, -0x2e0(%rbp)
movq -0x298(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x2e8(%rbp)
movl -0x2a8(%rbp), %eax
movl %eax, -0x274(%rbp)
movl -0x274(%rbp), %eax
movl %eax, -0x84(%rbp)
movl %eax, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
movl %eax, -0x90(%rbp)
movd -0x84(%rbp), %xmm0
movd -0x88(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x8c(%rbp), %xmm2
movd -0x90(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0xa0(%rbp)
movaps -0xa0(%rbp), %xmm0
movaps %xmm0, -0x320(%rbp)
movl -0x2ac(%rbp), %eax
movl %eax, -0x278(%rbp)
movl -0x278(%rbp), %eax
movl %eax, -0x64(%rbp)
movl %eax, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
movl %eax, -0x70(%rbp)
movd -0x64(%rbp), %xmm0
movd -0x68(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x6c(%rbp), %xmm2
movd -0x70(%rbp), %xmm0
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, -0x330(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x270(%rbp)
movaps -0x270(%rbp), %xmm0
movaps %xmm0, -0x340(%rbp)
movl $0xc0000000, -0x27c(%rbp) # imm = 0xC0000000
movl -0x27c(%rbp), %eax
movl %eax, -0x44(%rbp)
movl %eax, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl %eax, -0x50(%rbp)
movd -0x44(%rbp), %xmm0
movd -0x48(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x4c(%rbp), %xmm2
movd -0x50(%rbp), %xmm0
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, -0x350(%rbp)
movl $0xc0000000, -0x354(%rbp) # imm = 0xC0000000
movdqa -0x350(%rbp), %xmm0
movdqa %xmm0, -0x370(%rbp)
movdqa -0x350(%rbp), %xmm0
movdqa %xmm0, -0x380(%rbp)
movq -0x2d0(%rbp), %rax
movl 0x1c(%rax), %ecx
addl $0x1, %ecx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subl %ecx, %eax
movl %eax, -0x384(%rbp)
movl -0x2d8(%rbp), %edi
imull -0x2d4(%rbp), %edi
movl -0x2a4(%rbp), %esi
callq 0x1c3af0
movq %rax, -0x390(%rbp)
cmpq $0x0, -0x390(%rbp)
jne 0x49a7a7
movq $0x0, -0x290(%rbp)
jmp 0x49b303
movq -0x390(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x4400804, %ecx        # imm = 0x4400804
movl %ecx, 0xc(%rax)
movq -0x390(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40000, %ecx          # imm = 0x40000
movl %ecx, 0xc(%rax)
movslq -0x2d8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x2f0(%rbp)
movslq -0x2d8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x2f8(%rbp)
movslq -0x2d8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x300(%rbp)
movslq -0x2d8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x308(%rbp)
cmpq $0x0, -0x2f0(%rbp)
jne 0x49a847
movq $0x0, -0x290(%rbp)
jmp 0x49b303
cmpq $0x0, -0x2f8(%rbp)
jne 0x49a861
movq $0x0, -0x290(%rbp)
jmp 0x49b303
cmpq $0x0, -0x300(%rbp)
jne 0x49a87b
movq $0x0, -0x290(%rbp)
jmp 0x49b303
cmpq $0x0, -0x308(%rbp)
jne 0x49a895
movq $0x0, -0x290(%rbp)
jmp 0x49b303
movq -0x2f0(%rbp), %rdi
movaps -0x340(%rbp), %xmm0
movslq -0x2d8(%rbp), %rsi
callq 0x381e50
movq -0x308(%rbp), %rdi
movl -0x2a8(%rbp), %eax
negl %eax
movl %eax, -0x280(%rbp)
movl -0x280(%rbp), %eax
movl %eax, -0x24(%rbp)
movl %eax, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl %eax, -0x30(%rbp)
movd -0x24(%rbp), %xmm0
movd -0x28(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x2c(%rbp), %xmm2
movd -0x30(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x40(%rbp)
movdqa -0x40(%rbp), %xmm0
movslq -0x2d8(%rbp), %rsi
callq 0x381e50
movl $0x0, -0x2b4(%rbp)
movl -0x2b4(%rbp), %eax
cmpl -0x2a4(%rbp), %eax
jge 0x49b070
movq $0x0, -0x3c8(%rbp)
movq $0x0, -0x3d0(%rbp)
movaps -0x340(%rbp), %xmm0
movaps %xmm0, -0x3b0(%rbp)
movq -0x2f0(%rbp), %rax
movl -0x2d8(%rbp), %ecx
decl %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x228(%rbp)
movq -0x228(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x3c0(%rbp)
movaps -0x3c0(%rbp), %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movdqa %xmm0, -0x3c0(%rbp)
movq -0x2e8(%rbp), %rax
movq -0x2d0(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x2a0(%rbp), %rdx
movslq -0x2b4(%rbp), %rsi
movzbl (%rdx,%rsi), %edx
movl (%rcx,%rdx,4), %ecx
imull -0x2d8(%rbp), %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x3c8(%rbp)
movl -0x2c0(%rbp), %eax
movl -0x2b4(%rbp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jne 0x49aa1d
movq -0x300(%rbp), %rax
movq %rax, -0x3d0(%rbp)
movq -0x2f8(%rbp), %rax
movq %rax, -0x300(%rbp)
movq -0x2f0(%rbp), %rax
movq %rax, -0x2f8(%rbp)
movq -0x3d0(%rbp), %rax
movq %rax, -0x2f0(%rbp)
jmp 0x49aa47
movq -0x2f8(%rbp), %rax
movq %rax, -0x3d0(%rbp)
movq -0x2f0(%rbp), %rax
movq %rax, -0x2f8(%rbp)
movq -0x3d0(%rbp), %rax
movq %rax, -0x2f0(%rbp)
movl $0x0, -0x2b0(%rbp)
movl -0x2b0(%rbp), %eax
cmpl -0x2d8(%rbp), %eax
jge 0x49ad10
movdqa -0x3c0(%rbp), %xmm1
movq -0x3c8(%rbp), %rax
movslq -0x2b0(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x230(%rbp)
movq -0x230(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm1, -0x210(%rbp)
movdqa %xmm0, -0x220(%rbp)
movdqa -0x210(%rbp), %xmm0
movdqa -0x220(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x3c0(%rbp)
movq -0x308(%rbp), %rax
movslq -0x2b0(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x238(%rbp)
movq -0x238(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x3a0(%rbp)
movdqa -0x3c0(%rbp), %xmm0
movdqa -0x3a0(%rbp), %xmm1
callq 0x49b320
movdqa %xmm0, -0x3c0(%rbp)
movdqa -0x3c0(%rbp), %xmm0
movdqa -0x3b0(%rbp), %xmm1
callq 0x49b320
movdqa %xmm0, -0x3c0(%rbp)
movdqa -0x3c0(%rbp), %xmm0
movdqa -0x340(%rbp), %xmm1
callq 0x49b320
movdqa %xmm0, -0x3c0(%rbp)
movq -0x2f0(%rbp), %rax
movslq -0x2b0(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x3c0(%rbp), %xmm0
movq %rax, -0x1a8(%rbp)
movdqa %xmm0, -0x1c0(%rbp)
movdqa -0x1c0(%rbp), %xmm0
movq -0x1a8(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x3c0(%rbp), %xmm0
movdqa -0x370(%rbp), %xmm1
callq 0x49b320
movdqa %xmm0, -0x370(%rbp)
movdqa -0x3c0(%rbp), %xmm1
movdqa -0x320(%rbp), %xmm0
movdqa %xmm1, -0x110(%rbp)
movdqa %xmm0, -0x120(%rbp)
movdqa -0x110(%rbp), %xmm0
movdqa -0x120(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x3c0(%rbp)
movdqa -0x3a0(%rbp), %xmm1
movdqa -0x330(%rbp), %xmm0
movdqa %xmm1, -0x130(%rbp)
movdqa %xmm0, -0x140(%rbp)
movdqa -0x130(%rbp), %xmm0
movdqa -0x140(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x3a0(%rbp)
movdqa -0x3a0(%rbp), %xmm0
movdqa -0x3c0(%rbp), %xmm1
callq 0x49b320
movdqa %xmm0, -0x3a0(%rbp)
movq -0x308(%rbp), %rax
movslq -0x2b0(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x3a0(%rbp), %xmm0
movq %rax, -0x1c8(%rbp)
movdqa %xmm0, -0x1e0(%rbp)
movdqa -0x1e0(%rbp), %xmm0
movq -0x1c8(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x3b0(%rbp), %xmm1
movdqa -0x330(%rbp), %xmm0
movdqa %xmm1, -0x150(%rbp)
movdqa %xmm0, -0x160(%rbp)
movdqa -0x150(%rbp), %xmm0
movdqa -0x160(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x3b0(%rbp)
movdqa -0x3b0(%rbp), %xmm0
movdqa -0x3c0(%rbp), %xmm1
callq 0x49b320
movdqa %xmm0, -0x3b0(%rbp)
movq -0x2f8(%rbp), %rax
movslq -0x2b0(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x240(%rbp)
movq -0x240(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x3c0(%rbp)
movl -0x2b0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2b0(%rbp)
jmp 0x49aa51
movl $0x0, -0x2b8(%rbp)
movl -0x2b8(%rbp), %eax
cmpl -0x2d4(%rbp), %eax
jge 0x49aed7
movaps -0x3b0(%rbp), %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movdqa %xmm0, -0x3b0(%rbp)
movl $0x0, -0x2b0(%rbp)
movl -0x2b0(%rbp), %eax
cmpl -0x2d8(%rbp), %eax
jge 0x49aec1
movq -0x2f0(%rbp), %rax
movslq -0x2b0(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x248(%rbp)
movq -0x248(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x3c0(%rbp)
movaps -0x3c0(%rbp), %xmm0
movaps -0x3b0(%rbp), %xmm1
callq 0x49b320
movaps %xmm0, -0x3c0(%rbp)
movq -0x2f0(%rbp), %rax
movslq -0x2b0(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movaps -0x3c0(%rbp), %xmm0
movq %rax, -0x1e8(%rbp)
movaps %xmm0, -0x200(%rbp)
movaps -0x200(%rbp), %xmm0
movq -0x1e8(%rbp), %rax
movaps %xmm0, (%rax)
movaps -0x3c0(%rbp), %xmm0
movaps -0x370(%rbp), %xmm1
callq 0x49b320
movaps %xmm0, -0x370(%rbp)
movaps -0x3c0(%rbp), %xmm1
movaps -0x320(%rbp), %xmm0
movaps %xmm1, -0x170(%rbp)
movaps %xmm0, -0x180(%rbp)
movaps -0x170(%rbp), %xmm0
movaps -0x180(%rbp), %xmm1
psubd %xmm1, %xmm0
movaps %xmm0, -0x3c0(%rbp)
movaps -0x3b0(%rbp), %xmm1
movaps -0x330(%rbp), %xmm0
movaps %xmm1, -0x190(%rbp)
movaps %xmm0, -0x1a0(%rbp)
movaps -0x190(%rbp), %xmm0
movaps -0x1a0(%rbp), %xmm1
psubd %xmm1, %xmm0
movaps %xmm0, -0x3b0(%rbp)
movaps -0x3b0(%rbp), %xmm1
movaps -0x3c0(%rbp), %xmm0
movaps %xmm1, -0xb0(%rbp)
movaps %xmm0, -0xc0(%rbp)
movaps -0xb0(%rbp), %xmm0
movaps -0xc0(%rbp), %xmm1
pcmpgtd %xmm1, %xmm0
movdqa %xmm0, -0xf0(%rbp)
movdqa -0xf0(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
jne 0x49aeab
jmp 0x49aed9
jmp 0x49aead
movl -0x2b0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2b0(%rbp)
jmp 0x49ad4a
jmp 0x49aec3
movl -0x2b8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2b8(%rbp)
jmp 0x49ad1a
jmp 0x49aed9
movq -0x2f0(%rbp), %rax
movslq -0x2dc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x250(%rbp)
movq -0x250(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x3c0(%rbp)
movl $0x0, -0x2b8(%rbp)
movl -0x2b8(%rbp), %eax
cmpl -0x2e0(%rbp), %eax
jge 0x49af45
movaps -0x3c0(%rbp), %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movdqa %xmm0, -0x3c0(%rbp)
movl -0x2b8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2b8(%rbp)
jmp 0x49af12
movaps -0x3c0(%rbp), %xmm0
movl $0x3, %edi
callq 0x49b3f0
movl %eax, %edx
movq -0x390(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movslq -0x2b4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movaps -0x370(%rbp), %xmm1
movaps -0x380(%rbp), %xmm0
movaps %xmm1, -0xd0(%rbp)
movaps %xmm0, -0xe0(%rbp)
movaps -0xd0(%rbp), %xmm0
movaps -0xe0(%rbp), %xmm1
pcmpgtd %xmm1, %xmm0
movdqa %xmm0, -0x3e0(%rbp)
movdqa -0x3e0(%rbp), %xmm0
movdqa %xmm0, -0x100(%rbp)
movdqa -0x100(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x49b05a
movdqa -0x370(%rbp), %xmm0
callq 0x49b410
movl %eax, -0x354(%rbp)
movl -0x354(%rbp), %eax
cmpl -0x384(%rbp), %eax
jle 0x49affe
movq -0x390(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
jmp 0x49b070
movl -0x354(%rbp), %eax
movl %eax, -0x284(%rbp)
movl -0x284(%rbp), %eax
movl %eax, -0x4(%rbp)
movl %eax, -0x8(%rbp)
movl %eax, -0xc(%rbp)
movl %eax, -0x10(%rbp)
movd -0x4(%rbp), %xmm0
movd -0x8(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0xc(%rbp), %xmm2
movd -0x10(%rbp), %xmm0
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, -0x380(%rbp)
movl -0x2b4(%rbp), %eax
movl %eax, -0x2c0(%rbp)
jmp 0x49b05c
movl -0x2b4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2b4(%rbp)
jmp 0x49a916
movl $0x0, -0x2b0(%rbp)
movl -0x2b0(%rbp), %eax
cmpl -0x2d8(%rbp), %eax
jge 0x49b0f0
movq -0x2f0(%rbp), %rax
movslq -0x2b0(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x258(%rbp)
movq -0x258(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x3f0(%rbp)
movq -0x390(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdi
movdqa -0x3f0(%rbp), %xmm0
movl -0x2b0(%rbp), %esi
movl -0x2d8(%rbp), %edx
callq 0x49b460
movl -0x2b0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2b0(%rbp)
jmp 0x49b07a
cmpl $0x7fffffff, -0x354(%rbp) # imm = 0x7FFFFFFF
jne 0x49b10c
movq -0x390(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
movq -0x390(%rbp), %rdi
callq 0x1c6390
cmpl $0x0, %eax
je 0x49b140
movl $0x7fffffff, -0x354(%rbp) # imm = 0x7FFFFFFF
movl $0x0, -0x2bc(%rbp)
movl $0x0, -0x2c0(%rbp)
jmp 0x49b296
movl -0x2c0(%rbp), %eax
movl -0x2b4(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x49b17f
movq -0x300(%rbp), %rax
movq %rax, -0x3f8(%rbp)
movq -0x2f0(%rbp), %rax
movq %rax, -0x300(%rbp)
movq -0x3f8(%rbp), %rax
movq %rax, -0x2f0(%rbp)
jmp 0x49b1be
movl -0x2c0(%rbp), %eax
movl -0x2b4(%rbp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jne 0x49b1bc
movq -0x300(%rbp), %rax
movq %rax, -0x400(%rbp)
movq -0x2f8(%rbp), %rax
movq %rax, -0x300(%rbp)
movq -0x400(%rbp), %rax
movq %rax, -0x2f8(%rbp)
jmp 0x49b1be
movq -0x300(%rbp), %rax
movq %rax, -0x408(%rbp)
movl -0x2d8(%rbp), %eax
imull -0x2d4(%rbp), %eax
movl %eax, -0x40c(%rbp)
movl -0x2c4(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x2bc(%rbp)
movl $0x0, -0x2b0(%rbp)
movl -0x2b0(%rbp), %eax
cmpl -0x40c(%rbp), %eax
jge 0x49b294
movq -0x408(%rbp), %rax
movl (%rax), %eax
cmpl -0x354(%rbp), %eax
jne 0x49b26c
movl -0x2b0(%rbp), %eax
cltd
idivl -0x2d4(%rbp)
movl %eax, -0x414(%rbp)
movl -0x2b0(%rbp), %eax
cltd
idivl -0x2d4(%rbp)
movl -0x414(%rbp), %eax
imull -0x2d8(%rbp), %edx
addl %edx, %eax
movl %eax, -0x410(%rbp)
movl -0x410(%rbp), %eax
cmpl -0x2bc(%rbp), %eax
jge 0x49b26a
movl -0x410(%rbp), %eax
movl %eax, -0x2bc(%rbp)
jmp 0x49b26c
jmp 0x49b26e
movl -0x2b0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2b0(%rbp)
movq -0x408(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x408(%rbp)
jmp 0x49b1f8
jmp 0x49b296
movl -0x354(%rbp), %ecx
movq -0x390(%rbp), %rax
movl %ecx, (%rax)
movl -0x2bc(%rbp), %ecx
movq -0x390(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x2c0(%rbp), %ecx
movq -0x390(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x308(%rbp), %rdi
callq 0x1c3590
movq -0x300(%rbp), %rdi
callq 0x1c3590
movq -0x2f8(%rbp), %rdi
callq 0x1c3590
movq -0x2f0(%rbp), %rdi
callq 0x1c3590
movq -0x390(%rbp), %rax
movq %rax, -0x290(%rbp)
movq -0x290(%rbp), %rax
addq $0x420, %rsp            # imm = 0x420
popq %rbp
retq
nopw %cs:(%rax,%rax)