// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sg_scan_sse2_128_64.c
// Function: parasail_sg_flags_rowcol_scan_profile_sse2_128_64
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;
    int64_t* restrict boundary = NULL;
    __m128i* restrict pvHt = NULL;
    __m128i* restrict pvH = NULL;
    __m128i* restrict pvGapper = NULL;
    __m128i vGapO;
    __m128i vGapE;
    int64_t NEG_LIMIT = 0;
    int64_t POS_LIMIT = 0;
    __m128i vZero;
    int64_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->profile64.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 = 2; /* number of values in vector unit */
    segLen = (s1Len + segWidth - 1) / segWidth;
    offset = (s1Len - 1) % segLen;
    position = (segWidth - 1) - (s1Len - 1) / segLen;
    pvP = (__m128i*)profile->profile64.score;
    vGapO = _mm_set1_epi64x_rpl(open);
    vGapE = _mm_set1_epi64x_rpl(gap);
    NEG_LIMIT = (-open < matrix->min ? INT64_MIN + open : INT64_MIN - matrix->min) + 1;
    POS_LIMIT = INT64_MAX - matrix->max - 1;
    vZero = _mm_setzero_si128();
    score = NEG_LIMIT;
    vNegLimit = _mm_set1_epi64x_rpl(NEG_LIMIT);
    vPosLimit = _mm_set1_epi64x_rpl(POS_LIMIT);
    vSaturationCheckMin = vPosLimit;
    vSaturationCheckMax = vNegLimit;
    vMaxH = vNegLimit;
    vPosMask = _mm_cmpeq_epi64_rpl(_mm_set1_epi64x_rpl(position),
            _mm_set_epi64x_rpl(0,1));
    vNegInfFront = vZero;
    vNegInfFront = _mm_insert_epi64_rpl(vNegInfFront, NEG_LIMIT, 0);
    vSegLenXgap = _mm_add_epi64(vNegInfFront,
            _mm_slli_si128(_mm_set1_epi64x_rpl(-segLen*gap), 8));

    /* 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_64 | PARASAIL_FLAG_LANES_2;
    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_int64_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_64_t h;
            __m128i_64_t e;
            for (segNum=0; segNum<segWidth; ++segNum) {
                int64_t tmp = s1_beg ? 0 : (-open-gap*(segNum*segLen+i));
                h.v[segNum] = tmp < INT64_MIN ? INT64_MIN : tmp;
                tmp = tmp - open;
                e.v[segNum] = tmp < INT64_MIN ? INT64_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 < INT64_MIN ? INT64_MIN : tmp;
        }
    }

    {
        __m128i vGapper = _mm_sub_epi64(vZero,vGapO);
        for (i=segLen-1; i>=0; --i) {
            _mm_store_si128(pvGapper+i, vGapper);
            vGapper = _mm_sub_epi64(vGapper, vGapE);
            /* long queries and/or large penalties will break the pseudo prefix scan */
            vSaturationCheckMin = _mm_min_epi64_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, 8);
        vHp = _mm_insert_epi64_rpl(vHp, boundary[j], 0);
        pvW = pvP + matrix->mapper[(unsigned char)s2[j]]*segLen;
        vHt = _mm_sub_epi64(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_epi64_rpl(
                    _mm_sub_epi64(vE, vGapE),
                    _mm_sub_epi64(vH, vGapO));
            vHp = _mm_add_epi64(vHp, vW);
            vF = _mm_max_epi64_rpl(vF, _mm_add_epi64(vHt, pvGapper[i]));
            vHt = _mm_max_epi64_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, 8);
        vHt = _mm_insert_epi64_rpl(vHt, boundary[j+1], 0);
        vF = _mm_max_epi64_rpl(vF, _mm_add_epi64(vHt, pvGapper[0]));
        for (i=0; i<segWidth-2; ++i) {
            __m128i vFt = _mm_slli_si128(vF, 8);
            vFt = _mm_add_epi64(vFt, vSegLenXgap);
            vF = _mm_max_epi64_rpl(vF, vFt);
        }

        /* calculate final H */
        vF = _mm_slli_si128(vF, 8);
        vF = _mm_add_epi64(vF, vNegInfFront);
        vH = _mm_max_epi64_rpl(vHt, vF);
        for (i=0; i<segLen; ++i) {
            vHt = _mm_load_si128(pvHt+i);
            vF = _mm_max_epi64_rpl(
                    _mm_sub_epi64(vF, vGapE),
                    _mm_sub_epi64(vH, vGapO));
            vH = _mm_max_epi64_rpl(vHt, vF);
            _mm_store_si128(pvH+i, vH);
            vSaturationCheckMin = _mm_min_epi64_rpl(vSaturationCheckMin, vH);
            vSaturationCheckMin = _mm_min_epi64_rpl(vSaturationCheckMin, vF);
            vSaturationCheckMax = _mm_max_epi64_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_epi64_rpl(vH, vMaxH));
            vMaxH = _mm_max_epi64_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, 8);
            }
            result->rowcols->score_row[j] = (int64_t) _mm_extract_epi64_rpl (vH, 1);
#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, 8);
        }
        score = (int64_t) _mm_extract_epi64_rpl(vMaxH, 1);
        end_query = s1Len-1;
    }

    /* max of last column */
    if (s1_end)
    {
        /* Trace the alignment ending position on read. */
        int64_t *t = (int64_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, 8);
            }
            score = (int64_t) _mm_extract_epi64_rpl (vH, 1);
            end_ref = s2Len - 1;
            end_query = s1Len - 1;
        }
    }

    if (_mm_movemask_epi8(_mm_or_si128(
            _mm_cmplt_epi64_rpl(vSaturationCheckMin, vNegLimit),
            _mm_cmpgt_epi64_rpl(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 $0x6f0, %rsp            # imm = 0x6F0
movl 0x20(%rbp), %eax
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x430(%rbp)
movq %rsi, -0x438(%rbp)
movl %edx, -0x43c(%rbp)
movl %ecx, -0x440(%rbp)
movl %r8d, -0x444(%rbp)
movl %r9d, -0x448(%rbp)
movl $0x0, -0x44c(%rbp)
movl $0x0, -0x450(%rbp)
movl $0x0, -0x454(%rbp)
movl $0x0, -0x458(%rbp)
movl $0x0, -0x45c(%rbp)
movl $0x0, -0x460(%rbp)
movq $0x0, -0x468(%rbp)
movl $0x0, -0x46c(%rbp)
movl $0x0, -0x470(%rbp)
movl $0x0, -0x474(%rbp)
movl $0x0, -0x478(%rbp)
movq $0x0, -0x480(%rbp)
movq $0x0, -0x488(%rbp)
movq $0x0, -0x490(%rbp)
movq $0x0, -0x498(%rbp)
movq $0x0, -0x4a0(%rbp)
movq $0x0, -0x4a8(%rbp)
movq $0x0, -0x4d8(%rbp)
movq $0x0, -0x4e0(%rbp)
movq $0x0, -0x4f8(%rbp)
movq $0x0, -0x588(%rbp)
cmpq $0x0, -0x430(%rbp)
jne 0x458729
movq 0x9ce8de(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x8938e7(%rip), %rsi    # 0xcebfeb
leaq 0x8952c9(%rip), %rdx    # 0xced9d4
leaq 0x869dcb(%rip), %rcx    # 0xcc24dd
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x428(%rbp)
jmp 0x459e39
jmp 0x45872b
jmp 0x45872d
movq -0x430(%rbp), %rax
cmpq $0x0, 0x60(%rax)
jne 0x458771
movq 0x9ce896(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x89389f(%rip), %rsi    # 0xcebfeb
leaq 0x895281(%rip), %rdx    # 0xced9d4
leaq 0x8941a9(%rip), %rcx    # 0xcec903
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x428(%rbp)
jmp 0x459e39
jmp 0x458773
jmp 0x458775
movq -0x430(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x4587b9
movq 0x9ce84e(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x893857(%rip), %rsi    # 0xcebfeb
leaq 0x895239(%rip), %rdx    # 0xced9d4
leaq 0x89417a(%rip), %rcx    # 0xcec91c
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x428(%rbp)
jmp 0x459e39
jmp 0x4587bb
jmp 0x4587bd
movq -0x430(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jg 0x458800
movq 0x9ce807(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x893f26(%rip), %rsi    # 0xcec701
leaq 0x8951f2(%rip), %rdx    # 0xced9d4
leaq 0x894143(%rip), %rcx    # 0xcec92c
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x428(%rbp)
jmp 0x459e39
jmp 0x458802
jmp 0x458804
cmpq $0x0, -0x438(%rbp)
jne 0x458844
movq 0x9ce7c3(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x8937cc(%rip), %rsi    # 0xcebfeb
leaq 0x8951ae(%rip), %rdx    # 0xced9d4
leaq 0x893ed1(%rip), %rcx    # 0xcec6fe
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x428(%rbp)
jmp 0x459e39
jmp 0x458846
jmp 0x458848
cmpl $0x0, -0x43c(%rbp)
jg 0x458887
movq 0x9ce780(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x893e9f(%rip), %rsi    # 0xcec701
leaq 0x89516b(%rip), %rdx    # 0xced9d4
leaq 0x893ea5(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x428(%rbp)
jmp 0x459e39
jmp 0x458889
jmp 0x45888b
cmpl $0x0, -0x440(%rbp)
jge 0x4588ca
movq 0x9ce73d(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x893e76(%rip), %rsi    # 0xcec71b
leaq 0x895128(%rip), %rdx    # 0xced9d4
leaq 0x893e7d(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x428(%rbp)
jmp 0x459e39
jmp 0x4588cc
jmp 0x4588ce
cmpl $0x0, -0x444(%rbp)
jge 0x45890d
movq 0x9ce6fa(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x893e33(%rip), %rsi    # 0xcec71b
leaq 0x8950e5(%rip), %rdx    # 0xced9d4
leaq 0x893e3f(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x428(%rbp)
jmp 0x459e39
jmp 0x45890f
movl $0x0, -0x44c(%rbp)
movl $0x0, -0x450(%rbp)
movl $0x0, -0x454(%rbp)
movq -0x430(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x460(%rbp)
movl -0x460(%rbp), %eax
decl %eax
movl %eax, -0x458(%rbp)
movl -0x43c(%rbp), %eax
decl %eax
movl %eax, -0x45c(%rbp)
movq -0x430(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x468(%rbp)
movl $0x2, -0x46c(%rbp)
movl -0x460(%rbp), %esi
movl -0x46c(%rbp), %ecx
movl %ecx, %edx
movl %esi, %eax
leal -0x1(%rax,%rdx), %eax
cltd
idivl %ecx
movl %eax, -0x470(%rbp)
movl -0x460(%rbp), %eax
decl %eax
movl -0x470(%rbp), %ecx
cltd
idivl %ecx
movl %edx, -0x474(%rbp)
movl -0x46c(%rbp), %ecx
movl -0x460(%rbp), %eax
decl %eax
movl -0x470(%rbp), %esi
cltd
idivl %esi
notl %eax
addl %ecx, %eax
movl %eax, -0x478(%rbp)
movq -0x430(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x480(%rbp)
movslq -0x440(%rbp), %rax
movq %rax, -0x3f8(%rbp)
movq -0x3f8(%rbp), %rax
movq %rax, -0x3c8(%rbp)
movq %rax, -0x3d0(%rbp)
movq -0x3c8(%rbp), %xmm1
movq -0x3d0(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x3e0(%rbp)
movaps -0x3e0(%rbp), %xmm0
movaps %xmm0, -0x4c0(%rbp)
movslq -0x444(%rbp), %rax
movq %rax, -0x400(%rbp)
movq -0x400(%rbp), %rax
movq %rax, -0x3a8(%rbp)
movq %rax, -0x3b0(%rbp)
movq -0x3a8(%rbp), %xmm1
movq -0x3b0(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x3c0(%rbp)
movdqa -0x3c0(%rbp), %xmm0
movdqa %xmm0, -0x4d0(%rbp)
xorl %eax, %eax
subl -0x440(%rbp), %eax
movq -0x468(%rbp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x458aa8
movslq -0x440(%rbp), %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
addq %rcx, %rax
movq %rax, -0x698(%rbp)
jmp 0x458ac7
movq -0x468(%rbp), %rax
movslq 0x20(%rax), %rcx
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
subq %rcx, %rax
movq %rax, -0x698(%rbp)
movq -0x698(%rbp), %rax
incq %rax
movq %rax, -0x4d8(%rbp)
movq -0x468(%rbp), %rax
movslq 0x1c(%rax), %rcx
movabsq $0x7ffffffffffffffe, %rax # imm = 0x7FFFFFFFFFFFFFFE
subq %rcx, %rax
movq %rax, -0x4e0(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x3f0(%rbp)
movaps -0x3f0(%rbp), %xmm0
movaps %xmm0, -0x4f0(%rbp)
movq -0x4d8(%rbp), %rax
movq %rax, -0x4f8(%rbp)
movq -0x4d8(%rbp), %rax
movq %rax, -0x408(%rbp)
movq -0x408(%rbp), %rax
movq %rax, -0x388(%rbp)
movq %rax, -0x390(%rbp)
movq -0x388(%rbp), %xmm1
movq -0x390(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x3a0(%rbp)
movaps -0x3a0(%rbp), %xmm0
movaps %xmm0, -0x510(%rbp)
movq -0x4e0(%rbp), %rax
movq %rax, -0x410(%rbp)
movq -0x410(%rbp), %rax
movq %rax, -0x368(%rbp)
movq %rax, -0x370(%rbp)
movq -0x368(%rbp), %xmm1
movq -0x370(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x380(%rbp)
movaps -0x380(%rbp), %xmm0
movaps %xmm0, -0x520(%rbp)
movaps -0x520(%rbp), %xmm0
movaps %xmm0, -0x530(%rbp)
movaps -0x510(%rbp), %xmm0
movaps %xmm0, -0x540(%rbp)
movaps -0x510(%rbp), %xmm0
movaps %xmm0, -0x550(%rbp)
movslq -0x478(%rbp), %rax
movq %rax, -0x418(%rbp)
movq -0x418(%rbp), %rax
movq %rax, -0x348(%rbp)
movq %rax, -0x350(%rbp)
movq -0x348(%rbp), %xmm1
movq -0x350(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x360(%rbp)
movaps -0x360(%rbp), %xmm0
movq $0x0, -0x308(%rbp)
movq $0x1, -0x310(%rbp)
movq -0x308(%rbp), %xmm2
movq -0x310(%rbp), %xmm1
punpcklqdq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0]
movaps %xmm1, -0x320(%rbp)
movaps -0x320(%rbp), %xmm1
callq 0x459e50
movaps %xmm0, -0x560(%rbp)
movaps -0x4f0(%rbp), %xmm0
movaps %xmm0, -0x570(%rbp)
movaps -0x570(%rbp), %xmm0
movq -0x4d8(%rbp), %rdi
xorl %esi, %esi
callq 0x459ec0
movaps %xmm0, -0x570(%rbp)
movaps -0x570(%rbp), %xmm1
movl -0x470(%rbp), %eax
negl %eax
movl -0x444(%rbp), %ecx
imull %ecx, %eax
cltq
movq %rax, -0x420(%rbp)
movq -0x420(%rbp), %rax
movq %rax, -0x328(%rbp)
movq %rax, -0x330(%rbp)
movq -0x328(%rbp), %xmm2
movq -0x330(%rbp), %xmm0
punpcklqdq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0]
movaps %xmm0, -0x340(%rbp)
movaps -0x340(%rbp), %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movdqa %xmm1, -0x250(%rbp)
movdqa %xmm0, -0x260(%rbp)
movdqa -0x250(%rbp), %xmm0
paddq -0x260(%rbp), %xmm0
movdqa %xmm0, -0x580(%rbp)
movl -0x470(%rbp), %edi
imull -0x46c(%rbp), %edi
movl -0x43c(%rbp), %esi
callq 0x1c3af0
movq %rax, -0x588(%rbp)
cmpq $0x0, -0x588(%rbp)
jne 0x458d50
movq $0x0, -0x428(%rbp)
jmp 0x459e39
movq -0x588(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x2800402, %ecx        # imm = 0x2800402
movl %ecx, 0xc(%rax)
movl -0x448(%rbp), %edx
xorl %ecx, %ecx
movl $0x8, %eax
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq -0x588(%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 -0x588(%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 -0x588(%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 -0x588(%rbp), %rax
orl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movq -0x588(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40000, %ecx          # imm = 0x40000
movl %ecx, 0xc(%rax)
movslq -0x470(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x488(%rbp)
movl -0x43c(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c3690
movq %rax, -0x490(%rbp)
movslq -0x470(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x498(%rbp)
movslq -0x470(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x4a0(%rbp)
movslq -0x470(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x4a8(%rbp)
cmpq $0x0, -0x488(%rbp)
jne 0x458e84
movq $0x0, -0x428(%rbp)
jmp 0x459e39
cmpq $0x0, -0x490(%rbp)
jne 0x458e9e
movq $0x0, -0x428(%rbp)
jmp 0x459e39
cmpq $0x0, -0x498(%rbp)
jne 0x458eb8
movq $0x0, -0x428(%rbp)
jmp 0x459e39
cmpq $0x0, -0x4a0(%rbp)
jne 0x458ed2
movq $0x0, -0x428(%rbp)
jmp 0x459e39
cmpq $0x0, -0x4a8(%rbp)
jne 0x458eec
movq $0x0, -0x428(%rbp)
jmp 0x459e39
movl $0x0, -0x58c(%rbp)
movl $0x0, -0x44c(%rbp)
movl -0x44c(%rbp), %eax
cmpl -0x470(%rbp), %eax
jge 0x4590e7
movl $0x0, -0x590(%rbp)
movl $0x0, -0x590(%rbp)
movl -0x590(%rbp), %eax
cmpl -0x46c(%rbp), %eax
jge 0x459046
cmpl $0x0, -0x448(%rbp)
je 0x458f4b
xorl %eax, %eax
movl %eax, -0x69c(%rbp)
jmp 0x458f77
xorl %eax, %eax
subl -0x440(%rbp), %eax
movl -0x444(%rbp), %ecx
movl -0x590(%rbp), %edx
imull -0x470(%rbp), %edx
addl -0x44c(%rbp), %edx
imull %edx, %ecx
subl %ecx, %eax
movl %eax, -0x69c(%rbp)
movl -0x69c(%rbp), %eax
cltq
movq %rax, -0x5b8(%rbp)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
cmpq %rax, -0x5b8(%rbp)
jge 0x458fac
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, -0x6a8(%rbp)
jmp 0x458fba
movq -0x5b8(%rbp), %rax
movq %rax, -0x6a8(%rbp)
movq -0x6a8(%rbp), %rcx
movslq -0x590(%rbp), %rax
movq %rcx, -0x5a0(%rbp,%rax,8)
movq -0x5b8(%rbp), %rax
movslq -0x440(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x5b8(%rbp)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
cmpq %rax, -0x5b8(%rbp)
jge 0x45900e
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, -0x6b0(%rbp)
jmp 0x45901c
movq -0x5b8(%rbp), %rax
movq %rax, -0x6b0(%rbp)
movq -0x6b0(%rbp), %rcx
movslq -0x590(%rbp), %rax
movq %rcx, -0x5b0(%rbp,%rax,8)
movl -0x590(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x590(%rbp)
jmp 0x458f26
movq -0x4a0(%rbp), %rax
movslq -0x58c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x5a0(%rbp), %xmm0
movq %rax, -0x188(%rbp)
movdqa %xmm0, -0x1a0(%rbp)
movdqa -0x1a0(%rbp), %xmm0
movq -0x188(%rbp), %rax
movdqa %xmm0, (%rax)
movq -0x488(%rbp), %rax
movslq -0x58c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x5b0(%rbp), %xmm0
movq %rax, -0x1a8(%rbp)
movdqa %xmm0, -0x1c0(%rbp)
movdqa -0x1c0(%rbp), %xmm0
movq -0x1a8(%rbp), %rax
movdqa %xmm0, (%rax)
movl -0x58c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58c(%rbp)
movl -0x44c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44c(%rbp)
jmp 0x458f00
movq -0x490(%rbp), %rax
movq $0x0, (%rax)
movl $0x1, -0x44c(%rbp)
movl -0x44c(%rbp), %eax
cmpl -0x43c(%rbp), %eax
jg 0x4591b3
cmpl $0x0, 0x18(%rbp)
je 0x459121
xorl %eax, %eax
movl %eax, -0x6b4(%rbp)
jmp 0x459143
xorl %eax, %eax
subl -0x440(%rbp), %eax
movl -0x444(%rbp), %ecx
movl -0x44c(%rbp), %edx
subl $0x1, %edx
imull %edx, %ecx
subl %ecx, %eax
movl %eax, -0x6b4(%rbp)
movl -0x6b4(%rbp), %eax
cltq
movq %rax, -0x5c0(%rbp)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
cmpq %rax, -0x5c0(%rbp)
jge 0x459178
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, -0x6c0(%rbp)
jmp 0x459186
movq -0x5c0(%rbp), %rax
movq %rax, -0x6c0(%rbp)
movq -0x6c0(%rbp), %rdx
movq -0x490(%rbp), %rax
movslq -0x44c(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x44c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44c(%rbp)
jmp 0x4590ff
movdqa -0x4f0(%rbp), %xmm1
movdqa -0x4c0(%rbp), %xmm0
movdqa %xmm1, -0xb0(%rbp)
movdqa %xmm0, -0xc0(%rbp)
movdqa -0xb0(%rbp), %xmm0
psubq -0xc0(%rbp), %xmm0
movdqa %xmm0, -0x5d0(%rbp)
movl -0x470(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x44c(%rbp)
cmpl $0x0, -0x44c(%rbp)
jl 0x4592af
movq -0x4a8(%rbp), %rax
movslq -0x44c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x5d0(%rbp), %xmm0
movq %rax, -0x1c8(%rbp)
movdqa %xmm0, -0x1e0(%rbp)
movdqa -0x1e0(%rbp), %xmm0
movq -0x1c8(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x5d0(%rbp), %xmm1
movdqa -0x4d0(%rbp), %xmm0
movdqa %xmm1, -0xd0(%rbp)
movdqa %xmm0, -0xe0(%rbp)
movdqa -0xd0(%rbp), %xmm0
psubq -0xe0(%rbp), %xmm0
movdqa %xmm0, -0x5d0(%rbp)
movdqa -0x530(%rbp), %xmm0
movdqa -0x5d0(%rbp), %xmm1
callq 0x459ef0
movdqa %xmm0, -0x530(%rbp)
movl -0x44c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x44c(%rbp)
jmp 0x4591fa
movl $0x0, -0x450(%rbp)
movl -0x450(%rbp), %eax
cmpl -0x43c(%rbp), %eax
jge 0x459a51
movq -0x4a0(%rbp), %rax
movl -0x470(%rbp), %ecx
decl %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x620(%rbp)
movaps -0x620(%rbp), %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movdqa %xmm0, -0x620(%rbp)
movdqa -0x620(%rbp), %xmm0
movq -0x490(%rbp), %rax
movslq -0x450(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
xorl %esi, %esi
callq 0x459ec0
movdqa %xmm0, -0x620(%rbp)
movq -0x480(%rbp), %rax
movq -0x468(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x438(%rbp), %rdx
movslq -0x450(%rbp), %rsi
movzbl (%rdx,%rsi), %edx
movl (%rcx,%rdx,4), %ecx
imull -0x470(%rbp), %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x628(%rbp)
movdqa -0x510(%rbp), %xmm1
movq -0x4a8(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm1, -0xf0(%rbp)
movdqa %xmm0, -0x100(%rbp)
movdqa -0xf0(%rbp), %xmm0
psubq -0x100(%rbp), %xmm0
movdqa %xmm0, -0x5f0(%rbp)
movdqa -0x510(%rbp), %xmm0
movdqa %xmm0, -0x600(%rbp)
movl $0x0, -0x44c(%rbp)
movl -0x44c(%rbp), %eax
cmpl -0x470(%rbp), %eax
jge 0x45960e
movq -0x4a0(%rbp), %rax
movslq -0x44c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x610(%rbp)
movq -0x488(%rbp), %rax
movslq -0x44c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x5e0(%rbp)
movq -0x628(%rbp), %rax
movslq -0x44c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x640(%rbp)
movdqa -0x5e0(%rbp), %xmm1
movdqa -0x4d0(%rbp), %xmm0
movdqa %xmm1, -0x110(%rbp)
movdqa %xmm0, -0x120(%rbp)
movdqa -0x110(%rbp), %xmm0
psubq -0x120(%rbp), %xmm0
movdqa -0x610(%rbp), %xmm2
movdqa -0x4c0(%rbp), %xmm1
movdqa %xmm2, -0x130(%rbp)
movdqa %xmm1, -0x140(%rbp)
movdqa -0x130(%rbp), %xmm1
psubq -0x140(%rbp), %xmm1
callq 0x459f70
movdqa %xmm0, -0x5e0(%rbp)
movdqa -0x620(%rbp), %xmm1
movdqa -0x640(%rbp), %xmm0
movdqa %xmm1, -0x270(%rbp)
movdqa %xmm0, -0x280(%rbp)
movdqa -0x270(%rbp), %xmm0
paddq -0x280(%rbp), %xmm0
movdqa %xmm0, -0x620(%rbp)
movdqa -0x600(%rbp), %xmm0
movdqa -0x5f0(%rbp), %xmm2
movq -0x4a8(%rbp), %rax
movslq -0x44c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa (%rax), %xmm1
movdqa %xmm2, -0x290(%rbp)
movdqa %xmm1, -0x2a0(%rbp)
movdqa -0x290(%rbp), %xmm1
paddq -0x2a0(%rbp), %xmm1
callq 0x459f70
movdqa %xmm0, -0x600(%rbp)
movdqa -0x5e0(%rbp), %xmm0
movdqa -0x620(%rbp), %xmm1
callq 0x459f70
movdqa %xmm0, -0x5f0(%rbp)
movq -0x488(%rbp), %rax
movslq -0x44c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x5e0(%rbp), %xmm0
movq %rax, -0x1e8(%rbp)
movdqa %xmm0, -0x200(%rbp)
movdqa -0x200(%rbp), %xmm0
movq -0x1e8(%rbp), %rax
movdqa %xmm0, (%rax)
movq -0x498(%rbp), %rax
movslq -0x44c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x5f0(%rbp), %xmm0
movq %rax, -0x208(%rbp)
movdqa %xmm0, -0x220(%rbp)
movdqa -0x220(%rbp), %xmm0
movq -0x208(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x610(%rbp), %xmm0
movdqa %xmm0, -0x620(%rbp)
movl -0x44c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44c(%rbp)
jmp 0x4593c7
movaps -0x5f0(%rbp), %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movdqa %xmm0, -0x5f0(%rbp)
movdqa -0x5f0(%rbp), %xmm0
movq -0x490(%rbp), %rax
movl -0x450(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
xorl %esi, %esi
callq 0x459ec0
movdqa %xmm0, -0x5f0(%rbp)
movdqa -0x600(%rbp), %xmm0
movdqa -0x5f0(%rbp), %xmm2
movq -0x4a8(%rbp), %rax
movdqa (%rax), %xmm1
movdqa %xmm2, -0x2b0(%rbp)
movdqa %xmm1, -0x2c0(%rbp)
movdqa -0x2b0(%rbp), %xmm1
paddq -0x2c0(%rbp), %xmm1
callq 0x459f70
movdqa %xmm0, -0x600(%rbp)
movl $0x0, -0x44c(%rbp)
movl -0x44c(%rbp), %eax
movl -0x46c(%rbp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jge 0x459732
movaps -0x600(%rbp), %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movdqa %xmm0, -0x650(%rbp)
movdqa -0x650(%rbp), %xmm1
movdqa -0x580(%rbp), %xmm0
movdqa %xmm1, -0x2d0(%rbp)
movdqa %xmm0, -0x2e0(%rbp)
movdqa -0x2d0(%rbp), %xmm0
paddq -0x2e0(%rbp), %xmm0
movdqa %xmm0, -0x650(%rbp)
movdqa -0x600(%rbp), %xmm0
movdqa -0x650(%rbp), %xmm1
callq 0x459f70
movdqa %xmm0, -0x600(%rbp)
movl -0x44c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44c(%rbp)
jmp 0x4596a2
movaps -0x600(%rbp), %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movdqa %xmm0, -0x600(%rbp)
movdqa -0x600(%rbp), %xmm1
movdqa -0x570(%rbp), %xmm0
movdqa %xmm1, -0x2f0(%rbp)
movdqa %xmm0, -0x300(%rbp)
movdqa -0x2f0(%rbp), %xmm0
paddq -0x300(%rbp), %xmm0
movdqa %xmm0, -0x600(%rbp)
movdqa -0x5f0(%rbp), %xmm0
movdqa -0x600(%rbp), %xmm1
callq 0x459f70
movdqa %xmm0, -0x610(%rbp)
movl $0x0, -0x44c(%rbp)
movl -0x44c(%rbp), %eax
cmpl -0x470(%rbp), %eax
jge 0x45991a
movq -0x498(%rbp), %rax
movslq -0x44c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x5f0(%rbp)
movdqa -0x600(%rbp), %xmm1
movdqa -0x4d0(%rbp), %xmm0
movdqa %xmm1, -0x150(%rbp)
movdqa %xmm0, -0x160(%rbp)
movdqa -0x150(%rbp), %xmm0
psubq -0x160(%rbp), %xmm0
movdqa -0x610(%rbp), %xmm2
movdqa -0x4c0(%rbp), %xmm1
movdqa %xmm2, -0x170(%rbp)
movdqa %xmm1, -0x180(%rbp)
movdqa -0x170(%rbp), %xmm1
psubq -0x180(%rbp), %xmm1
callq 0x459f70
movdqa %xmm0, -0x600(%rbp)
movdqa -0x5f0(%rbp), %xmm0
movdqa -0x600(%rbp), %xmm1
callq 0x459f70
movdqa %xmm0, -0x610(%rbp)
movq -0x4a0(%rbp), %rax
movslq -0x44c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x610(%rbp), %xmm0
movq %rax, -0x228(%rbp)
movdqa %xmm0, -0x240(%rbp)
movdqa -0x240(%rbp), %xmm0
movq -0x228(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x530(%rbp), %xmm0
movdqa -0x610(%rbp), %xmm1
callq 0x459ef0
movdqa %xmm0, -0x530(%rbp)
movdqa -0x530(%rbp), %xmm0
movdqa -0x600(%rbp), %xmm1
callq 0x459ef0
movdqa %xmm0, -0x530(%rbp)
movdqa -0x540(%rbp), %xmm0
movdqa -0x610(%rbp), %xmm1
callq 0x459f70
movdqa %xmm0, -0x540(%rbp)
movl -0x44c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44c(%rbp)
jmp 0x4597a5
movq -0x4a0(%rbp), %rax
movslq -0x474(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x610(%rbp)
movdqa -0x560(%rbp), %xmm0
movaps %xmm0, -0x6d0(%rbp)
movdqa -0x610(%rbp), %xmm0
movdqa -0x550(%rbp), %xmm1
callq 0x459ff0
movaps -0x6d0(%rbp), %xmm1
movdqa %xmm1, -0x50(%rbp)
movdqa %xmm0, -0x60(%rbp)
movdqa -0x50(%rbp), %xmm0
pand -0x60(%rbp), %xmm0
movdqa %xmm0, -0x660(%rbp)
movdqa -0x610(%rbp), %xmm0
movdqa -0x550(%rbp), %xmm1
callq 0x459f70
movdqa %xmm0, -0x550(%rbp)
movdqa -0x660(%rbp), %xmm0
movdqa %xmm0, -0x30(%rbp)
movdqa -0x30(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x4599d4
movl -0x450(%rbp), %eax
movl %eax, -0x45c(%rbp)
movl $0x0, -0x454(%rbp)
movl -0x454(%rbp), %eax
cmpl -0x478(%rbp), %eax
jge 0x459a11
movaps -0x610(%rbp), %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movdqa %xmm0, -0x610(%rbp)
movl -0x454(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x454(%rbp)
jmp 0x4599de
movdqa -0x610(%rbp), %xmm0
movl $0x1, %edi
callq 0x45a060
movl %eax, %edx
movq -0x588(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movslq -0x450(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x450(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x450(%rbp)
jmp 0x4592b9
movl $0x0, -0x44c(%rbp)
movl -0x44c(%rbp), %eax
cmpl -0x470(%rbp), %eax
jge 0x459ad1
movq -0x4a0(%rbp), %rax
movslq -0x44c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x670(%rbp)
movq -0x588(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdi
movdqa -0x670(%rbp), %xmm0
movl -0x44c(%rbp), %esi
movl -0x470(%rbp), %edx
callq 0x45a090
movl -0x44c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44c(%rbp)
jmp 0x459a5b
cmpl $0x0, 0x20(%rbp)
je 0x459b3c
movl $0x0, -0x454(%rbp)
movl -0x454(%rbp), %eax
cmpl -0x478(%rbp), %eax
jge 0x459b14
movaps -0x550(%rbp), %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movdqa %xmm0, -0x550(%rbp)
movl -0x454(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x454(%rbp)
jmp 0x459ae1
movdqa -0x550(%rbp), %xmm0
movl $0x1, %edi
callq 0x45a060
movq %rax, -0x4f8(%rbp)
movl -0x460(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x458(%rbp)
cmpl $0x0, 0x10(%rbp)
je 0x459c78
movq -0x4a0(%rbp), %rax
movq %rax, -0x678(%rbp)
movl -0x470(%rbp), %eax
imull -0x46c(%rbp), %eax
movl %eax, -0x67c(%rbp)
movl $0x0, -0x44c(%rbp)
movl -0x44c(%rbp), %eax
cmpl -0x67c(%rbp), %eax
jge 0x459c76
movl -0x44c(%rbp), %eax
cltd
idivl -0x46c(%rbp)
movl %eax, -0x6d4(%rbp)
movl -0x44c(%rbp), %eax
cltd
idivl -0x46c(%rbp)
movl -0x6d4(%rbp), %eax
imull -0x470(%rbp), %edx
addl %edx, %eax
movl %eax, -0x680(%rbp)
movl -0x680(%rbp), %eax
cmpl -0x460(%rbp), %eax
jl 0x459bcb
jmp 0x459c50
movq -0x678(%rbp), %rax
movq (%rax), %rax
cmpq -0x4f8(%rbp), %rax
jle 0x459c0c
movq -0x678(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x4f8(%rbp)
movl -0x680(%rbp), %eax
movl %eax, -0x458(%rbp)
movl -0x43c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x45c(%rbp)
jmp 0x459c4e
movq -0x678(%rbp), %rax
movq (%rax), %rax
cmpq -0x4f8(%rbp), %rax
jne 0x459c4c
movl -0x45c(%rbp), %eax
movl -0x43c(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x459c4c
movl -0x680(%rbp), %eax
cmpl -0x458(%rbp), %eax
jge 0x459c4c
movl -0x680(%rbp), %eax
movl %eax, -0x458(%rbp)
jmp 0x459c4e
jmp 0x459c50
movl -0x44c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44c(%rbp)
movq -0x678(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x678(%rbp)
jmp 0x459b71
jmp 0x459c78
cmpl $0x0, 0x10(%rbp)
jne 0x459d2f
cmpl $0x0, 0x20(%rbp)
jne 0x459d2f
movq -0x4a0(%rbp), %rax
movslq -0x474(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x690(%rbp)
movl $0x0, -0x454(%rbp)
movl -0x454(%rbp), %eax
cmpl -0x478(%rbp), %eax
jge 0x459cf8
movaps -0x690(%rbp), %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movdqa %xmm0, -0x690(%rbp)
movl -0x454(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x454(%rbp)
jmp 0x459cc5
movdqa -0x690(%rbp), %xmm0
movl $0x1, %edi
callq 0x45a060
movq %rax, -0x4f8(%rbp)
movl -0x43c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x45c(%rbp)
movl -0x460(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x458(%rbp)
movdqa -0x530(%rbp), %xmm0
movdqa -0x510(%rbp), %xmm1
callq 0x45a0f0
movaps %xmm0, -0x6f0(%rbp)
movdqa -0x540(%rbp), %xmm0
movdqa -0x520(%rbp), %xmm1
callq 0x459ff0
movaps -0x6f0(%rbp), %xmm1
movdqa %xmm1, -0x10(%rbp)
movdqa %xmm0, -0x20(%rbp)
movdqa -0x10(%rbp), %xmm0
por -0x20(%rbp), %xmm0
movdqa %xmm0, -0x40(%rbp)
movdqa -0x40(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x459dbd
movq -0x588(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
movq $0x0, -0x4f8(%rbp)
movl $0x0, -0x458(%rbp)
movl $0x0, -0x45c(%rbp)
movq -0x4f8(%rbp), %rax
movl %eax, %ecx
movq -0x588(%rbp), %rax
movl %ecx, (%rax)
movl -0x458(%rbp), %ecx
movq -0x588(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x45c(%rbp), %ecx
movq -0x588(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x4a8(%rbp), %rdi
callq 0x1c3590
movq -0x4a0(%rbp), %rdi
callq 0x1c3590
movq -0x498(%rbp), %rdi
callq 0x1c3590
movq -0x490(%rbp), %rdi
callq 0x1c3590
movq -0x488(%rbp), %rdi
callq 0x1c3590
movq -0x588(%rbp), %rax
movq %rax, -0x428(%rbp)
movq -0x428(%rbp), %rax
addq $0x6f0, %rsp            # imm = 0x6F0
popq %rbp
retq
nopl (%rax)