// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sg_scan_sse2_128_32.c
// Function: parasail_sg_flags_rowcol_scan_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,
        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 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;
    int32_t offset = 0;
    int32_t position = 0;
    __m128i* restrict pvP = NULL;
    __m128i* restrict pvE = NULL;
    int32_t* restrict boundary = NULL;
    __m128i* restrict pvHt = NULL;
    __m128i* restrict pvH = NULL;
    __m128i* restrict pvGapper = NULL;
    __m128i vGapO;
    __m128i vGapE;
    int32_t NEG_LIMIT = 0;
    int32_t POS_LIMIT = 0;
    __m128i vZero;
    int32_t score = 0;
    __m128i vNegLimit;
    __m128i vPosLimit;
    __m128i vSaturationCheckMin;
    __m128i vSaturationCheckMax;
    __m128i vMaxH;
    __m128i vPosMask;
    __m128i vNegInfFront;
    __m128i vSegLenXgap;
    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;
    s1Len = profile->s1Len;
    end_query = s1Len-1;
    end_ref = s2Len-1;
    matrix = profile->matrix;
    segWidth = 4; /* number of values in vector unit */
    segLen = (s1Len + segWidth - 1) / segWidth;
    offset = (s1Len - 1) % segLen;
    position = (segWidth - 1) - (s1Len - 1) / segLen;
    pvP = (__m128i*)profile->profile32.score;
    vGapO = _mm_set1_epi32(open);
    vGapE = _mm_set1_epi32(gap);
    NEG_LIMIT = (-open < matrix->min ? INT32_MIN + open : INT32_MIN - matrix->min) + 1;
    POS_LIMIT = INT32_MAX - matrix->max - 1;
    vZero = _mm_setzero_si128();
    score = NEG_LIMIT;
    vNegLimit = _mm_set1_epi32(NEG_LIMIT);
    vPosLimit = _mm_set1_epi32(POS_LIMIT);
    vSaturationCheckMin = vPosLimit;
    vSaturationCheckMax = vNegLimit;
    vMaxH = vNegLimit;
    vPosMask = _mm_cmpeq_epi32(_mm_set1_epi32(position),
            _mm_set_epi32(0,1,2,3));
    vNegInfFront = vZero;
    vNegInfFront = _mm_insert_epi32_rpl(vNegInfFront, NEG_LIMIT, 0);
    vSegLenXgap = _mm_add_epi32(vNegInfFront,
            _mm_slli_si128(_mm_set1_epi32(-segLen*gap), 4));

    /* 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_SCAN
        | PARASAIL_FLAG_BITS_32 | PARASAIL_FLAG_LANES_4;
    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 */
    pvE = parasail_memalign___m128i(16, segLen);
    boundary = parasail_memalign_int32_t(16, s2Len+1);
    pvHt= parasail_memalign___m128i(16, segLen);
    pvH = parasail_memalign___m128i(16, segLen);
    pvGapper = parasail_memalign___m128i(16, segLen);

    /* validate heap variables */
    if (!pvE) return NULL;
    if (!boundary) return NULL;
    if (!pvHt) return NULL;
    if (!pvH) return NULL;
    if (!pvGapper) return NULL;

    /* initialize H and E */
    {
        int32_t index = 0;
        for (i=0; i<segLen; ++i) {
            int32_t segNum = 0;
            __m128i_32_t h;
            __m128i_32_t e;
            for (segNum=0; segNum<segWidth; ++segNum) {
                int64_t tmp = s1_beg ? 0 : (-open-gap*(segNum*segLen+i));
                h.v[segNum] = tmp < INT32_MIN ? INT32_MIN : tmp;
                tmp = tmp - open;
                e.v[segNum] = tmp < INT32_MIN ? INT32_MIN : tmp;
            }
            _mm_store_si128(&pvH[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 < INT32_MIN ? INT32_MIN : tmp;
        }
    }

    {
        __m128i vGapper = _mm_sub_epi32(vZero,vGapO);
        for (i=segLen-1; i>=0; --i) {
            _mm_store_si128(pvGapper+i, vGapper);
            vGapper = _mm_sub_epi32(vGapper, vGapE);
            /* long queries and/or large penalties will break the pseudo prefix scan */
            vSaturationCheckMin = _mm_min_epi32_rpl(vSaturationCheckMin, vGapper);
        }
    }

    /* outer loop over database sequence */
    for (j=0; j<s2Len; ++j) {
        __m128i vE;
        __m128i vHt;
        __m128i vF;
        __m128i vH;
        __m128i vHp;
        __m128i *pvW;
        __m128i vW;

        /* calculate E */
        /* calculate Ht */
        /* calculate F and H first pass */
        vHp = _mm_load_si128(pvH+(segLen-1));
        vHp = _mm_slli_si128(vHp, 4);
        vHp = _mm_insert_epi32_rpl(vHp, boundary[j], 0);
        pvW = pvP + matrix->mapper[(unsigned char)s2[j]]*segLen;
        vHt = _mm_sub_epi32(vNegLimit, pvGapper[0]);
        vF = vNegLimit;
        for (i=0; i<segLen; ++i) {
            vH = _mm_load_si128(pvH+i);
            vE = _mm_load_si128(pvE+i);
            vW = _mm_load_si128(pvW+i);
            vE = _mm_max_epi32_rpl(
                    _mm_sub_epi32(vE, vGapE),
                    _mm_sub_epi32(vH, vGapO));
            vHp = _mm_add_epi32(vHp, vW);
            vF = _mm_max_epi32_rpl(vF, _mm_add_epi32(vHt, pvGapper[i]));
            vHt = _mm_max_epi32_rpl(vE, vHp);
            _mm_store_si128(pvE+i, vE);
            _mm_store_si128(pvHt+i, vHt);
            vHp = vH;
        }

        /* pseudo prefix scan on F and H */
        vHt = _mm_slli_si128(vHt, 4);
        vHt = _mm_insert_epi32_rpl(vHt, boundary[j+1], 0);
        vF = _mm_max_epi32_rpl(vF, _mm_add_epi32(vHt, pvGapper[0]));
        for (i=0; i<segWidth-2; ++i) {
            __m128i vFt = _mm_slli_si128(vF, 4);
            vFt = _mm_add_epi32(vFt, vSegLenXgap);
            vF = _mm_max_epi32_rpl(vF, vFt);
        }

        /* calculate final H */
        vF = _mm_slli_si128(vF, 4);
        vF = _mm_add_epi32(vF, vNegInfFront);
        vH = _mm_max_epi32_rpl(vHt, vF);
        for (i=0; i<segLen; ++i) {
            vHt = _mm_load_si128(pvHt+i);
            vF = _mm_max_epi32_rpl(
                    _mm_sub_epi32(vF, vGapE),
                    _mm_sub_epi32(vH, vGapO));
            vH = _mm_max_epi32_rpl(vHt, vF);
            _mm_store_si128(pvH+i, vH);
            vSaturationCheckMin = _mm_min_epi32_rpl(vSaturationCheckMin, vH);
            vSaturationCheckMin = _mm_min_epi32_rpl(vSaturationCheckMin, vF);
            vSaturationCheckMax = _mm_max_epi32_rpl(vSaturationCheckMax, vH);
#ifdef PARASAIL_TABLE
            arr_store_si128(result->tables->score_table, vH, i, segLen, j, s2Len);
#endif
        } 

        /* extract vector containing last value from column */
        {
            __m128i vCompare;
            vH = _mm_load_si128(pvH + offset);
            vCompare = _mm_and_si128(vPosMask, _mm_cmpgt_epi32(vH, vMaxH));
            vMaxH = _mm_max_epi32_rpl(vH, vMaxH);
            if (_mm_movemask_epi8(vCompare)) {
                end_ref = j;
            }
#ifdef PARASAIL_ROWCOL
            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
        }
    }

#ifdef PARASAIL_ROWCOL
    for (i=0; i<segLen; ++i) {
        __m128i vH = _mm_load_si128(pvH + 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, 4);
        }
        score = (int32_t) _mm_extract_epi32_rpl(vMaxH, 3);
        end_query = s1Len-1;
    }

    /* max of last column */
    if (s1_end)
    {
        /* Trace the alignment ending position on read. */
        int32_t *t = (int32_t*)pvH;
        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(pvH + offset);
            for (k=0; k<position; ++k) {
                vH = _mm_slli_si128(vH, 4);
            }
            score = (int32_t) _mm_extract_epi32_rpl (vH, 3);
            end_ref = s2Len - 1;
            end_query = s1Len - 1;
        }
    }

    if (_mm_movemask_epi8(_mm_or_si128(
            _mm_cmplt_epi32(vSaturationCheckMin, vNegLimit),
            _mm_cmpgt_epi32(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(pvGapper);
    parasail_free(pvH);
    parasail_free(pvHt);
    parasail_free(boundary);
    parasail_free(pvE);

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x740, %rsp            # imm = 0x740
movl 0x20(%rbp), %eax
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x4b8(%rbp)
movq %rsi, -0x4c0(%rbp)
movl %edx, -0x4c4(%rbp)
movl %ecx, -0x4c8(%rbp)
movl %r8d, -0x4cc(%rbp)
movl %r9d, -0x4d0(%rbp)
movl $0x0, -0x4d4(%rbp)
movl $0x0, -0x4d8(%rbp)
movl $0x0, -0x4dc(%rbp)
movl $0x0, -0x4e0(%rbp)
movl $0x0, -0x4e4(%rbp)
movl $0x0, -0x4e8(%rbp)
movq $0x0, -0x4f0(%rbp)
movl $0x0, -0x4f4(%rbp)
movl $0x0, -0x4f8(%rbp)
movl $0x0, -0x4fc(%rbp)
movl $0x0, -0x500(%rbp)
movq $0x0, -0x508(%rbp)
movq $0x0, -0x510(%rbp)
movq $0x0, -0x518(%rbp)
movq $0x0, -0x520(%rbp)
movq $0x0, -0x528(%rbp)
movq $0x0, -0x530(%rbp)
movl $0x0, -0x554(%rbp)
movl $0x0, -0x558(%rbp)
movl $0x0, -0x574(%rbp)
movq $0x0, -0x608(%rbp)
cmpq $0x0, -0x4b8(%rbp)
jne 0x45e046
movq 0x9c8fc1(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x88dfca(%rip), %rsi    # 0xcebfeb
leaq 0x88fa08(%rip), %rdx    # 0xceda30
leaq 0x8644ae(%rip), %rcx    # 0xcc24dd
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x4b0(%rbp)
jmp 0x45f894
jmp 0x45e048
jmp 0x45e04a
movq -0x4b8(%rbp), %rax
cmpq $0x0, 0x48(%rax)
jne 0x45e08e
movq 0x9c8f79(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x88df82(%rip), %rsi    # 0xcebfeb
leaq 0x88f9c0(%rip), %rdx    # 0xceda30
leaq 0x88e912(%rip), %rcx    # 0xcec989
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x4b0(%rbp)
jmp 0x45f894
jmp 0x45e090
jmp 0x45e092
movq -0x4b8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x45e0d6
movq 0x9c8f31(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x88df3a(%rip), %rsi    # 0xcebfeb
leaq 0x88f978(%rip), %rdx    # 0xceda30
leaq 0x88e85d(%rip), %rcx    # 0xcec91c
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x4b0(%rbp)
jmp 0x45f894
jmp 0x45e0d8
jmp 0x45e0da
movq -0x4b8(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jg 0x45e11d
movq 0x9c8eea(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x88e609(%rip), %rsi    # 0xcec701
leaq 0x88f931(%rip), %rdx    # 0xceda30
leaq 0x88e826(%rip), %rcx    # 0xcec92c
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x4b0(%rbp)
jmp 0x45f894
jmp 0x45e11f
jmp 0x45e121
cmpq $0x0, -0x4c0(%rbp)
jne 0x45e161
movq 0x9c8ea6(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x88deaf(%rip), %rsi    # 0xcebfeb
leaq 0x88f8ed(%rip), %rdx    # 0xceda30
leaq 0x88e5b4(%rip), %rcx    # 0xcec6fe
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x4b0(%rbp)
jmp 0x45f894
jmp 0x45e163
jmp 0x45e165
cmpl $0x0, -0x4c4(%rbp)
jg 0x45e1a4
movq 0x9c8e63(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x88e582(%rip), %rsi    # 0xcec701
leaq 0x88f8aa(%rip), %rdx    # 0xceda30
leaq 0x88e588(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x4b0(%rbp)
jmp 0x45f894
jmp 0x45e1a6
jmp 0x45e1a8
cmpl $0x0, -0x4c8(%rbp)
jge 0x45e1e7
movq 0x9c8e20(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x88e559(%rip), %rsi    # 0xcec71b
leaq 0x88f867(%rip), %rdx    # 0xceda30
leaq 0x88e560(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x4b0(%rbp)
jmp 0x45f894
jmp 0x45e1e9
jmp 0x45e1eb
cmpl $0x0, -0x4cc(%rbp)
jge 0x45e22a
movq 0x9c8ddd(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x88e516(%rip), %rsi    # 0xcec71b
leaq 0x88f824(%rip), %rdx    # 0xceda30
leaq 0x88e522(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x4b0(%rbp)
jmp 0x45f894
jmp 0x45e22c
movl $0x0, -0x4d4(%rbp)
movl $0x0, -0x4d8(%rbp)
movl $0x0, -0x4dc(%rbp)
movq -0x4b8(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x4e8(%rbp)
movl -0x4e8(%rbp), %eax
decl %eax
movl %eax, -0x4e0(%rbp)
movl -0x4c4(%rbp), %eax
decl %eax
movl %eax, -0x4e4(%rbp)
movq -0x4b8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x4f0(%rbp)
movl $0x4, -0x4f4(%rbp)
movl -0x4e8(%rbp), %esi
movl -0x4f4(%rbp), %ecx
movl %ecx, %edx
movl %esi, %eax
leal -0x1(%rax,%rdx), %eax
cltd
idivl %ecx
movl %eax, -0x4f8(%rbp)
movl -0x4e8(%rbp), %eax
decl %eax
movl -0x4f8(%rbp), %ecx
cltd
idivl %ecx
movl %edx, -0x4fc(%rbp)
movl -0x4f4(%rbp), %ecx
movl -0x4e8(%rbp), %eax
decl %eax
movl -0x4f8(%rbp), %esi
cltd
idivl %esi
notl %eax
addl %ecx, %eax
movl %eax, -0x500(%rbp)
movq -0x4b8(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x508(%rbp)
movl -0x4c8(%rbp), %eax
movl %eax, -0x494(%rbp)
movl -0x494(%rbp), %eax
movl %eax, -0x444(%rbp)
movl %eax, -0x448(%rbp)
movl %eax, -0x44c(%rbp)
movl %eax, -0x450(%rbp)
movd -0x444(%rbp), %xmm0
movd -0x448(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x44c(%rbp), %xmm2
movd -0x450(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x460(%rbp)
movaps -0x460(%rbp), %xmm0
movaps %xmm0, -0x540(%rbp)
movl -0x4cc(%rbp), %eax
movl %eax, -0x498(%rbp)
movl -0x498(%rbp), %eax
movl %eax, -0x424(%rbp)
movl %eax, -0x428(%rbp)
movl %eax, -0x42c(%rbp)
movl %eax, -0x430(%rbp)
movd -0x424(%rbp), %xmm0
movd -0x428(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x42c(%rbp), %xmm2
movd -0x430(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x440(%rbp)
movdqa -0x440(%rbp), %xmm0
movdqa %xmm0, -0x550(%rbp)
xorl %eax, %eax
subl -0x4c8(%rbp), %eax
movq -0x4f0(%rbp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x45e3f9
movl -0x4c8(%rbp), %eax
addl $0x80000000, %eax       # imm = 0x80000000
movl %eax, -0x714(%rbp)
jmp 0x45e40e
movq -0x4f0(%rbp), %rcx
movl $0x80000000, %eax       # imm = 0x80000000
subl 0x20(%rcx), %eax
movl %eax, -0x714(%rbp)
movl -0x714(%rbp), %eax
incl %eax
movl %eax, -0x554(%rbp)
movq -0x4f0(%rbp), %rax
movl 0x1c(%rax), %ecx
movl $0x7ffffffe, %eax       # imm = 0x7FFFFFFE
subl %ecx, %eax
movl %eax, -0x558(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x490(%rbp)
movaps -0x490(%rbp), %xmm0
movaps %xmm0, -0x570(%rbp)
movl -0x554(%rbp), %eax
movl %eax, -0x574(%rbp)
movl -0x554(%rbp), %eax
movl %eax, -0x49c(%rbp)
movl -0x49c(%rbp), %eax
movl %eax, -0x404(%rbp)
movl %eax, -0x408(%rbp)
movl %eax, -0x40c(%rbp)
movl %eax, -0x410(%rbp)
movd -0x404(%rbp), %xmm0
movd -0x408(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x40c(%rbp), %xmm2
movd -0x410(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x420(%rbp)
movaps -0x420(%rbp), %xmm0
movaps %xmm0, -0x590(%rbp)
movl -0x558(%rbp), %eax
movl %eax, -0x4a0(%rbp)
movl -0x4a0(%rbp), %eax
movl %eax, -0x3e4(%rbp)
movl %eax, -0x3e8(%rbp)
movl %eax, -0x3ec(%rbp)
movl %eax, -0x3f0(%rbp)
movd -0x3e4(%rbp), %xmm0
movd -0x3e8(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x3ec(%rbp), %xmm2
movd -0x3f0(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x400(%rbp)
movaps -0x400(%rbp), %xmm0
movaps %xmm0, -0x5a0(%rbp)
movaps -0x5a0(%rbp), %xmm0
movaps %xmm0, -0x5b0(%rbp)
movaps -0x590(%rbp), %xmm0
movaps %xmm0, -0x5c0(%rbp)
movaps -0x590(%rbp), %xmm0
movaps %xmm0, -0x5d0(%rbp)
movl -0x500(%rbp), %eax
movl %eax, -0x4a4(%rbp)
movl -0x4a4(%rbp), %eax
movl %eax, -0x3c4(%rbp)
movl %eax, -0x3c8(%rbp)
movl %eax, -0x3cc(%rbp)
movl %eax, -0x3d0(%rbp)
movd -0x3c4(%rbp), %xmm0
movd -0x3c8(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x3cc(%rbp), %xmm2
movd -0x3d0(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x3e0(%rbp)
movaps -0x3e0(%rbp), %xmm1
movl $0x0, -0x384(%rbp)
movl $0x1, -0x388(%rbp)
movl $0x2, -0x38c(%rbp)
movl $0x3, -0x390(%rbp)
movd -0x384(%rbp), %xmm0
movd -0x388(%rbp), %xmm2
punpckldq %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
movd -0x38c(%rbp), %xmm3
movd -0x390(%rbp), %xmm0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
punpcklqdq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0]
movaps %xmm0, -0x3a0(%rbp)
movaps -0x3a0(%rbp), %xmm0
movaps %xmm1, -0x470(%rbp)
movaps %xmm0, -0x480(%rbp)
movaps -0x470(%rbp), %xmm0
movaps -0x480(%rbp), %xmm1
pcmpeqd %xmm1, %xmm0
movaps %xmm0, -0x5e0(%rbp)
movaps -0x570(%rbp), %xmm0
movaps %xmm0, -0x5f0(%rbp)
movaps -0x5f0(%rbp), %xmm0
movl -0x554(%rbp), %edi
xorl %esi, %esi
callq 0x45f8b0
movaps %xmm0, -0x5f0(%rbp)
movaps -0x5f0(%rbp), %xmm1
movl -0x4f8(%rbp), %eax
negl %eax
movl -0x4cc(%rbp), %ecx
imull %ecx, %eax
movl %eax, -0x4a8(%rbp)
movl -0x4a8(%rbp), %eax
movl %eax, -0x3a4(%rbp)
movl %eax, -0x3a8(%rbp)
movl %eax, -0x3ac(%rbp)
movl %eax, -0x3b0(%rbp)
movd -0x3a4(%rbp), %xmm0
movd -0x3a8(%rbp), %xmm2
punpckldq %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
movd -0x3ac(%rbp), %xmm3
movd -0x3b0(%rbp), %xmm0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
punpcklqdq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0]
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 %xmm1, -0x2d0(%rbp)
movdqa %xmm0, -0x2e0(%rbp)
movdqa -0x2d0(%rbp), %xmm0
movdqa -0x2e0(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x600(%rbp)
movl -0x4f8(%rbp), %edi
imull -0x4f4(%rbp), %edi
movl -0x4c4(%rbp), %esi
callq 0x1c3af0
movq %rax, -0x608(%rbp)
cmpq $0x0, -0x608(%rbp)
jne 0x45e74d
movq $0x0, -0x4b0(%rbp)
jmp 0x45f894
movq -0x608(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x4400402, %ecx        # imm = 0x4400402
movl %ecx, 0xc(%rax)
movl -0x4d0(%rbp), %edx
xorl %ecx, %ecx
movl $0x8, %eax
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq -0x608(%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 -0x608(%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 -0x608(%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 -0x608(%rbp), %rax
orl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movq -0x608(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40000, %ecx          # imm = 0x40000
movl %ecx, 0xc(%rax)
movslq -0x4f8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x510(%rbp)
movl -0x4c4(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c3660
movq %rax, -0x518(%rbp)
movslq -0x4f8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x520(%rbp)
movslq -0x4f8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x528(%rbp)
movslq -0x4f8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x530(%rbp)
cmpq $0x0, -0x510(%rbp)
jne 0x45e881
movq $0x0, -0x4b0(%rbp)
jmp 0x45f894
cmpq $0x0, -0x518(%rbp)
jne 0x45e89b
movq $0x0, -0x4b0(%rbp)
jmp 0x45f894
cmpq $0x0, -0x520(%rbp)
jne 0x45e8b5
movq $0x0, -0x4b0(%rbp)
jmp 0x45f894
cmpq $0x0, -0x528(%rbp)
jne 0x45e8cf
movq $0x0, -0x4b0(%rbp)
jmp 0x45f894
cmpq $0x0, -0x530(%rbp)
jne 0x45e8e9
movq $0x0, -0x4b0(%rbp)
jmp 0x45f894
movl $0x0, -0x60c(%rbp)
movl $0x0, -0x4d4(%rbp)
movl -0x4d4(%rbp), %eax
cmpl -0x4f8(%rbp), %eax
jge 0x45ead4
movl $0x0, -0x610(%rbp)
movl $0x0, -0x610(%rbp)
movl -0x610(%rbp), %eax
cmpl -0x4f4(%rbp), %eax
jge 0x45ea33
cmpl $0x0, -0x4d0(%rbp)
je 0x45e948
xorl %eax, %eax
movl %eax, -0x718(%rbp)
jmp 0x45e974
xorl %eax, %eax
subl -0x4c8(%rbp), %eax
movl -0x4cc(%rbp), %ecx
movl -0x610(%rbp), %edx
imull -0x4f8(%rbp), %edx
addl -0x4d4(%rbp), %edx
imull %edx, %ecx
subl %ecx, %eax
movl %eax, -0x718(%rbp)
movl -0x718(%rbp), %eax
cltq
movq %rax, -0x638(%rbp)
cmpq $-0x80000000, -0x638(%rbp) # imm = 0x80000000
jge 0x45e9a0
movq $-0x80000000, %rax      # imm = 0x80000000
movq %rax, -0x720(%rbp)
jmp 0x45e9ae
movq -0x638(%rbp), %rax
movq %rax, -0x720(%rbp)
movq -0x720(%rbp), %rax
movl %eax, %ecx
movslq -0x610(%rbp), %rax
movl %ecx, -0x620(%rbp,%rax,4)
movq -0x638(%rbp), %rax
movslq -0x4c8(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x638(%rbp)
cmpq $-0x80000000, -0x638(%rbp) # imm = 0x80000000
jge 0x45e9fa
movq $-0x80000000, %rax      # imm = 0x80000000
movq %rax, -0x728(%rbp)
jmp 0x45ea08
movq -0x638(%rbp), %rax
movq %rax, -0x728(%rbp)
movq -0x728(%rbp), %rax
movl %eax, %ecx
movslq -0x610(%rbp), %rax
movl %ecx, -0x630(%rbp,%rax,4)
movl -0x610(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x610(%rbp)
jmp 0x45e923
movq -0x528(%rbp), %rax
movslq -0x60c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x620(%rbp), %xmm0
movq %rax, -0x208(%rbp)
movdqa %xmm0, -0x220(%rbp)
movdqa -0x220(%rbp), %xmm0
movq -0x208(%rbp), %rax
movdqa %xmm0, (%rax)
movq -0x510(%rbp), %rax
movslq -0x60c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x630(%rbp), %xmm0
movq %rax, -0x228(%rbp)
movdqa %xmm0, -0x240(%rbp)
movdqa -0x240(%rbp), %xmm0
movq -0x228(%rbp), %rax
movdqa %xmm0, (%rax)
movl -0x60c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60c(%rbp)
movl -0x4d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4d4(%rbp)
jmp 0x45e8fd
movq -0x518(%rbp), %rax
movl $0x0, (%rax)
movl $0x1, -0x4d4(%rbp)
movl -0x4d4(%rbp), %eax
cmpl -0x4c4(%rbp), %eax
jg 0x45eb97
cmpl $0x0, 0x18(%rbp)
je 0x45eb0d
xorl %eax, %eax
movl %eax, -0x72c(%rbp)
jmp 0x45eb2f
xorl %eax, %eax
subl -0x4c8(%rbp), %eax
movl -0x4cc(%rbp), %ecx
movl -0x4d4(%rbp), %edx
subl $0x1, %edx
imull %edx, %ecx
subl %ecx, %eax
movl %eax, -0x72c(%rbp)
movl -0x72c(%rbp), %eax
cltq
movq %rax, -0x640(%rbp)
cmpq $-0x80000000, -0x640(%rbp) # imm = 0x80000000
jge 0x45eb5b
movq $-0x80000000, %rax      # imm = 0x80000000
movq %rax, -0x738(%rbp)
jmp 0x45eb69
movq -0x640(%rbp), %rax
movq %rax, -0x738(%rbp)
movq -0x738(%rbp), %rax
movl %eax, %edx
movq -0x518(%rbp), %rax
movslq -0x4d4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x4d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4d4(%rbp)
jmp 0x45eaeb
movdqa -0x570(%rbp), %xmm1
movdqa -0x540(%rbp), %xmm0
movdqa %xmm1, -0x130(%rbp)
movdqa %xmm0, -0x140(%rbp)
movdqa -0x130(%rbp), %xmm0
movdqa -0x140(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x650(%rbp)
movl -0x4f8(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x4d4(%rbp)
cmpl $0x0, -0x4d4(%rbp)
jl 0x45ec9b
movq -0x530(%rbp), %rax
movslq -0x4d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x650(%rbp), %xmm0
movq %rax, -0x248(%rbp)
movdqa %xmm0, -0x260(%rbp)
movdqa -0x260(%rbp), %xmm0
movq -0x248(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x650(%rbp), %xmm1
movdqa -0x550(%rbp), %xmm0
movdqa %xmm1, -0x150(%rbp)
movdqa %xmm0, -0x160(%rbp)
movdqa -0x150(%rbp), %xmm0
movdqa -0x160(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x650(%rbp)
movdqa -0x5b0(%rbp), %xmm0
movdqa -0x650(%rbp), %xmm1
callq 0x45f8e0
movdqa %xmm0, -0x5b0(%rbp)
movl -0x4d4(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x4d4(%rbp)
jmp 0x45ebe2
movl $0x0, -0x4d8(%rbp)
movl -0x4d8(%rbp), %eax
cmpl -0x4c4(%rbp), %eax
jge 0x45f493
movq -0x528(%rbp), %rax
movl -0x4f8(%rbp), %ecx
decl %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x6a0(%rbp)
movaps -0x6a0(%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, -0x6a0(%rbp)
movdqa -0x6a0(%rbp), %xmm0
movq -0x518(%rbp), %rax
movslq -0x4d8(%rbp), %rcx
movl (%rax,%rcx,4), %edi
xorl %esi, %esi
callq 0x45f8b0
movdqa %xmm0, -0x6a0(%rbp)
movq -0x508(%rbp), %rax
movq -0x4f0(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x4c0(%rbp), %rdx
movslq -0x4d8(%rbp), %rsi
movzbl (%rdx,%rsi), %edx
movl (%rcx,%rdx,4), %ecx
imull -0x4f8(%rbp), %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x6a8(%rbp)
movdqa -0x590(%rbp), %xmm1
movq -0x530(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm1, -0x170(%rbp)
movdqa %xmm0, -0x180(%rbp)
movdqa -0x170(%rbp), %xmm0
movdqa -0x180(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x670(%rbp)
movdqa -0x590(%rbp), %xmm0
movdqa %xmm0, -0x680(%rbp)
movl $0x0, -0x4d4(%rbp)
movl -0x4d4(%rbp), %eax
cmpl -0x4f8(%rbp), %eax
jge 0x45f025
movq -0x528(%rbp), %rax
movslq -0x4d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x690(%rbp)
movq -0x510(%rbp), %rax
movslq -0x4d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x660(%rbp)
movq -0x6a8(%rbp), %rax
movslq -0x4d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x6c0(%rbp)
movdqa -0x660(%rbp), %xmm1
movdqa -0x550(%rbp), %xmm0
movdqa %xmm1, -0x190(%rbp)
movdqa %xmm0, -0x1a0(%rbp)
movdqa -0x190(%rbp), %xmm0
movdqa -0x1a0(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa -0x690(%rbp), %xmm2
movdqa -0x540(%rbp), %xmm1
movdqa %xmm2, -0x1b0(%rbp)
movdqa %xmm1, -0x1c0(%rbp)
movdqa -0x1b0(%rbp), %xmm1
movdqa -0x1c0(%rbp), %xmm2
psubd %xmm2, %xmm1
callq 0x45f9b0
movdqa %xmm0, -0x660(%rbp)
movdqa -0x6a0(%rbp), %xmm1
movdqa -0x6c0(%rbp), %xmm0
movdqa %xmm1, -0x2f0(%rbp)
movdqa %xmm0, -0x300(%rbp)
movdqa -0x2f0(%rbp), %xmm0
movdqa -0x300(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x6a0(%rbp)
movdqa -0x680(%rbp), %xmm0
movdqa -0x670(%rbp), %xmm2
movq -0x530(%rbp), %rax
movslq -0x4d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa (%rax), %xmm1
movdqa %xmm2, -0x310(%rbp)
movdqa %xmm1, -0x320(%rbp)
movdqa -0x310(%rbp), %xmm1
movdqa -0x320(%rbp), %xmm2
paddd %xmm2, %xmm1
callq 0x45f9b0
movdqa %xmm0, -0x680(%rbp)
movdqa -0x660(%rbp), %xmm0
movdqa -0x6a0(%rbp), %xmm1
callq 0x45f9b0
movdqa %xmm0, -0x670(%rbp)
movq -0x510(%rbp), %rax
movslq -0x4d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x660(%rbp), %xmm0
movq %rax, -0x268(%rbp)
movdqa %xmm0, -0x280(%rbp)
movdqa -0x280(%rbp), %xmm0
movq -0x268(%rbp), %rax
movdqa %xmm0, (%rax)
movq -0x520(%rbp), %rax
movslq -0x4d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x670(%rbp), %xmm0
movq %rax, -0x288(%rbp)
movdqa %xmm0, -0x2a0(%rbp)
movdqa -0x2a0(%rbp), %xmm0
movq -0x288(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x690(%rbp), %xmm0
movdqa %xmm0, -0x6a0(%rbp)
movl -0x4d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4d4(%rbp)
jmp 0x45edbc
movaps -0x670(%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, -0x670(%rbp)
movdqa -0x670(%rbp), %xmm0
movq -0x518(%rbp), %rax
movl -0x4d8(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edi
xorl %esi, %esi
callq 0x45f8b0
movdqa %xmm0, -0x670(%rbp)
movdqa -0x680(%rbp), %xmm0
movdqa -0x670(%rbp), %xmm2
movq -0x530(%rbp), %rax
movdqa (%rax), %xmm1
movdqa %xmm2, -0x330(%rbp)
movdqa %xmm1, -0x340(%rbp)
movdqa -0x330(%rbp), %xmm1
movdqa -0x340(%rbp), %xmm2
paddd %xmm2, %xmm1
callq 0x45f9b0
movdqa %xmm0, -0x680(%rbp)
movl $0x0, -0x4d4(%rbp)
movl -0x4d4(%rbp), %eax
movl -0x4f4(%rbp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jge 0x45f154
movaps -0x680(%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, -0x6d0(%rbp)
movdqa -0x6d0(%rbp), %xmm1
movdqa -0x600(%rbp), %xmm0
movdqa %xmm1, -0x350(%rbp)
movdqa %xmm0, -0x360(%rbp)
movdqa -0x350(%rbp), %xmm0
movdqa -0x360(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x6d0(%rbp)
movdqa -0x680(%rbp), %xmm0
movdqa -0x6d0(%rbp), %xmm1
callq 0x45f9b0
movdqa %xmm0, -0x680(%rbp)
movl -0x4d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4d4(%rbp)
jmp 0x45f0bc
movaps -0x680(%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, -0x680(%rbp)
movdqa -0x680(%rbp), %xmm1
movdqa -0x5f0(%rbp), %xmm0
movdqa %xmm1, -0x370(%rbp)
movdqa %xmm0, -0x380(%rbp)
movdqa -0x370(%rbp), %xmm0
movdqa -0x380(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x680(%rbp)
movdqa -0x670(%rbp), %xmm0
movdqa -0x680(%rbp), %xmm1
callq 0x45f9b0
movdqa %xmm0, -0x690(%rbp)
movl $0x0, -0x4d4(%rbp)
movl -0x4d4(%rbp), %eax
cmpl -0x4f8(%rbp), %eax
jge 0x45f348
movq -0x520(%rbp), %rax
movslq -0x4d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x670(%rbp)
movdqa -0x680(%rbp), %xmm1
movdqa -0x550(%rbp), %xmm0
movdqa %xmm1, -0x1d0(%rbp)
movdqa %xmm0, -0x1e0(%rbp)
movdqa -0x1d0(%rbp), %xmm0
movdqa -0x1e0(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa -0x690(%rbp), %xmm2
movdqa -0x540(%rbp), %xmm1
movdqa %xmm2, -0x1f0(%rbp)
movdqa %xmm1, -0x200(%rbp)
movdqa -0x1f0(%rbp), %xmm1
movdqa -0x200(%rbp), %xmm2
psubd %xmm2, %xmm1
callq 0x45f9b0
movdqa %xmm0, -0x680(%rbp)
movdqa -0x670(%rbp), %xmm0
movdqa -0x680(%rbp), %xmm1
callq 0x45f9b0
movdqa %xmm0, -0x690(%rbp)
movq -0x528(%rbp), %rax
movslq -0x4d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x690(%rbp), %xmm0
movq %rax, -0x2a8(%rbp)
movdqa %xmm0, -0x2c0(%rbp)
movdqa -0x2c0(%rbp), %xmm0
movq -0x2a8(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x5b0(%rbp), %xmm0
movdqa -0x690(%rbp), %xmm1
callq 0x45f8e0
movdqa %xmm0, -0x5b0(%rbp)
movdqa -0x5b0(%rbp), %xmm0
movdqa -0x680(%rbp), %xmm1
callq 0x45f8e0
movdqa %xmm0, -0x5b0(%rbp)
movdqa -0x5c0(%rbp), %xmm0
movdqa -0x690(%rbp), %xmm1
callq 0x45f9b0
movdqa %xmm0, -0x5c0(%rbp)
movl -0x4d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4d4(%rbp)
jmp 0x45f1cb
movq -0x528(%rbp), %rax
movslq -0x4fc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x690(%rbp)
movaps -0x5e0(%rbp), %xmm1
movaps -0x690(%rbp), %xmm2
movaps -0x5d0(%rbp), %xmm0
movaps %xmm2, -0x90(%rbp)
movaps %xmm0, -0xa0(%rbp)
movaps -0x90(%rbp), %xmm0
movaps -0xa0(%rbp), %xmm2
pcmpgtd %xmm2, %xmm0
movdqa %xmm1, -0xd0(%rbp)
movdqa %xmm0, -0xe0(%rbp)
movdqa -0xd0(%rbp), %xmm0
pand -0xe0(%rbp), %xmm0
movdqa %xmm0, -0x6e0(%rbp)
movdqa -0x690(%rbp), %xmm0
movdqa -0x5d0(%rbp), %xmm1
callq 0x45f9b0
movdqa %xmm0, -0x5d0(%rbp)
movdqa -0x6e0(%rbp), %xmm0
movdqa %xmm0, -0x70(%rbp)
movdqa -0x70(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x45f416
movl -0x4d8(%rbp), %eax
movl %eax, -0x4e4(%rbp)
movl $0x0, -0x4dc(%rbp)
movl -0x4dc(%rbp), %eax
cmpl -0x500(%rbp), %eax
jge 0x45f453
movaps -0x690(%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, -0x690(%rbp)
movl -0x4dc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4dc(%rbp)
jmp 0x45f420
movdqa -0x690(%rbp), %xmm0
movl $0x3, %edi
callq 0x45fa80
movl %eax, %edx
movq -0x608(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movslq -0x4d8(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x4d8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4d8(%rbp)
jmp 0x45eca5
movl $0x0, -0x4d4(%rbp)
movl -0x4d4(%rbp), %eax
cmpl -0x4f8(%rbp), %eax
jge 0x45f513
movq -0x528(%rbp), %rax
movslq -0x4d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x6f0(%rbp)
movq -0x608(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdi
movdqa -0x6f0(%rbp), %xmm0
movl -0x4d4(%rbp), %esi
movl -0x4f8(%rbp), %edx
callq 0x45faa0
movl -0x4d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4d4(%rbp)
jmp 0x45f49d
cmpl $0x0, 0x20(%rbp)
je 0x45f57d
movl $0x0, -0x4dc(%rbp)
movl -0x4dc(%rbp), %eax
cmpl -0x500(%rbp), %eax
jge 0x45f556
movaps -0x5d0(%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, -0x5d0(%rbp)
movl -0x4dc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4dc(%rbp)
jmp 0x45f523
movdqa -0x5d0(%rbp), %xmm0
movl $0x3, %edi
callq 0x45fa80
movl %eax, -0x574(%rbp)
movl -0x4e8(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x4e0(%rbp)
cmpl $0x0, 0x10(%rbp)
je 0x45f6b0
movq -0x528(%rbp), %rax
movq %rax, -0x6f8(%rbp)
movl -0x4f8(%rbp), %eax
imull -0x4f4(%rbp), %eax
movl %eax, -0x6fc(%rbp)
movl $0x0, -0x4d4(%rbp)
movl -0x4d4(%rbp), %eax
cmpl -0x6fc(%rbp), %eax
jge 0x45f6ae
movl -0x4d4(%rbp), %eax
cltd
idivl -0x4f4(%rbp)
movl %eax, -0x73c(%rbp)
movl -0x4d4(%rbp), %eax
cltd
idivl -0x4f4(%rbp)
movl -0x73c(%rbp), %eax
imull -0x4f8(%rbp), %edx
addl %edx, %eax
movl %eax, -0x700(%rbp)
movl -0x700(%rbp), %eax
cmpl -0x4e8(%rbp), %eax
jl 0x45f609
jmp 0x45f688
movq -0x6f8(%rbp), %rax
movl (%rax), %eax
cmpl -0x574(%rbp), %eax
jle 0x45f646
movq -0x6f8(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x574(%rbp)
movl -0x700(%rbp), %eax
movl %eax, -0x4e0(%rbp)
movl -0x4c4(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x4e4(%rbp)
jmp 0x45f686
movq -0x6f8(%rbp), %rax
movl (%rax), %eax
cmpl -0x574(%rbp), %eax
jne 0x45f684
movl -0x4e4(%rbp), %eax
movl -0x4c4(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x45f684
movl -0x700(%rbp), %eax
cmpl -0x4e0(%rbp), %eax
jge 0x45f684
movl -0x700(%rbp), %eax
movl %eax, -0x4e0(%rbp)
jmp 0x45f686
jmp 0x45f688
movl -0x4d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4d4(%rbp)
movq -0x6f8(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x6f8(%rbp)
jmp 0x45f5b2
jmp 0x45f6b0
cmpl $0x0, 0x10(%rbp)
jne 0x45f766
cmpl $0x0, 0x20(%rbp)
jne 0x45f766
movq -0x528(%rbp), %rax
movslq -0x4fc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x710(%rbp)
movl $0x0, -0x4dc(%rbp)
movl -0x4dc(%rbp), %eax
cmpl -0x500(%rbp), %eax
jge 0x45f730
movaps -0x710(%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, -0x710(%rbp)
movl -0x4dc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4dc(%rbp)
jmp 0x45f6fd
movdqa -0x710(%rbp), %xmm0
movl $0x3, %edi
callq 0x45fa80
movl %eax, -0x574(%rbp)
movl -0x4c4(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x4e4(%rbp)
movl -0x4e8(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x4e0(%rbp)
movaps -0x5b0(%rbp), %xmm1
movaps -0x590(%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
pcmpgtd %xmm0, %xmm1
movaps -0x5c0(%rbp), %xmm2
movaps -0x5a0(%rbp), %xmm0
movaps %xmm2, -0xb0(%rbp)
movaps %xmm0, -0xc0(%rbp)
movaps -0xb0(%rbp), %xmm0
movaps -0xc0(%rbp), %xmm2
pcmpgtd %xmm2, %xmm0
movdqa %xmm1, -0x50(%rbp)
movdqa %xmm0, -0x60(%rbp)
movdqa -0x50(%rbp), %xmm0
por -0x60(%rbp), %xmm0
movdqa %xmm0, -0x80(%rbp)
movdqa -0x80(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x45f81b
movq -0x608(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
movl $0x0, -0x574(%rbp)
movl $0x0, -0x4e0(%rbp)
movl $0x0, -0x4e4(%rbp)
movl -0x574(%rbp), %ecx
movq -0x608(%rbp), %rax
movl %ecx, (%rax)
movl -0x4e0(%rbp), %ecx
movq -0x608(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x4e4(%rbp), %ecx
movq -0x608(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x530(%rbp), %rdi
callq 0x1c3590
movq -0x528(%rbp), %rdi
callq 0x1c3590
movq -0x520(%rbp), %rdi
callq 0x1c3590
movq -0x518(%rbp), %rdi
callq 0x1c3590
movq -0x510(%rbp), %rdi
callq 0x1c3590
movq -0x608(%rbp), %rax
movq %rax, -0x4b0(%rbp)
movq -0x4b0(%rbp), %rax
addq $0x740, %rsp            # imm = 0x740
popq %rbp
retq
nopw %cs:(%rax,%rax)