// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sw_trace_striped_sse2_128_32.c
// Function: parasail_sw_trace_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;
    __m128i* restrict vProfile = NULL;
    __m128i* restrict pvHStore = NULL;
    __m128i* restrict pvHLoad = NULL;
    __m128i* restrict pvE = NULL;
    __m128i* restrict pvEaStore = NULL;
    __m128i* restrict pvEaLoad = NULL;
    __m128i* restrict pvHT = NULL;
    __m128i* restrict pvHMax = NULL;
    __m128i vGapO;
    __m128i vGapE;
    __m128i vZero;
    int32_t score = 0;
    __m128i vMaxH;
    __m128i vMaxHUnit;
    int32_t maxp = 0;
    parasail_result_t *result = NULL;
    __m128i vTZero;
    __m128i vTIns;
    __m128i vTDel;
    __m128i vTDiag;
    __m128i vTDiagE;
    __m128i vTInsE;
    __m128i vTDiagF;
    __m128i vTDelF;
    __m128i vTMask;
    __m128i vFTMask;

    /* 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;
    vProfile = (__m128i*)profile->profile32.score;
    vGapO = _mm_set1_epi32(open);
    vGapE = _mm_set1_epi32(gap);
    vZero = _mm_setzero_si128();
    score = NEG_INF;
    vMaxH = vZero;
    vMaxHUnit = vZero;
    maxp = INT32_MAX - (int32_t)(matrix->max+1);
    vTZero = _mm_set1_epi32(PARASAIL_ZERO);
    vTIns  = _mm_set1_epi32(PARASAIL_INS);
    vTDel  = _mm_set1_epi32(PARASAIL_DEL);
    vTDiag = _mm_set1_epi32(PARASAIL_DIAG);
    vTDiagE= _mm_set1_epi32(PARASAIL_DIAG_E);
    vTInsE = _mm_set1_epi32(PARASAIL_INS_E);
    vTDiagF= _mm_set1_epi32(PARASAIL_DIAG_F);
    vTDelF = _mm_set1_epi32(PARASAIL_DEL_F);
    vTMask = _mm_set1_epi32(PARASAIL_ZERO_MASK);
    vFTMask= _mm_set1_epi32(PARASAIL_F_MASK);

    /* initialize result */
    result = parasail_result_new_trace(segLen, s2Len, 16, sizeof(__m128i));
    if (!result) return NULL;

    /* set known flags */
    result->flag |= PARASAIL_FLAG_SW | PARASAIL_FLAG_STRIPED
        | PARASAIL_FLAG_TRACE
        | PARASAIL_FLAG_BITS_32 | PARASAIL_FLAG_LANES_4;

    /* initialize heap variables */
    pvHStore = parasail_memalign___m128i(16, segLen);
    pvHLoad =  parasail_memalign___m128i(16, segLen);
    pvE = parasail_memalign___m128i(16, segLen);
    pvEaStore = parasail_memalign___m128i(16, segLen);
    pvEaLoad = parasail_memalign___m128i(16, segLen);
    pvHT = parasail_memalign___m128i(16, segLen);
    pvHMax = parasail_memalign___m128i(16, segLen);

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

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

    for (i=0; i<segLen; ++i) {
        arr_store(result->trace->trace_table, vTDiagE, i, segLen, 0);
    }

    /* outer loop over database sequence */
    for (j=0; j<s2Len; ++j) {
        __m128i vEF_opn;
        __m128i vE;
        __m128i vE_ext;
        __m128i vF;
        __m128i vF_ext;
        __m128i vFa;
        __m128i vFa_ext;
        __m128i vH;
        __m128i vH_dag;
        const __m128i* vP = NULL;

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

        /* 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. */
            SWAP3(pvHMax,  pvHLoad,  pvHStore)
            SWAP(pvEaLoad,  pvEaStore)
        }
        else {
            /* Swap the 2 H buffers. */
            SWAP(pvHLoad,  pvHStore)
            SWAP(pvEaLoad,  pvEaStore)
        }

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

            /* Get max from vH, vE and vF. */
            vH_dag = _mm_add_epi32(vH, _mm_load_si128(vP + i));
            vH_dag = _mm_max_epi32_rpl(vH_dag, vZero);
            vH = _mm_max_epi32_rpl(vH_dag, vE);
            vH = _mm_max_epi32_rpl(vH, vF);
            /* Save vH values. */
            _mm_store_si128(pvHStore + i, vH);

            {
                __m128i vTAll = arr_load(result->trace->trace_table, i, segLen, j);
                __m128i cond_zero = _mm_cmpeq_epi32(vH, vZero);
                __m128i case1 = _mm_cmpeq_epi32(vH, vH_dag);
                __m128i case2 = _mm_cmpeq_epi32(vH, vF);
                __m128i vT = _mm_blendv_epi8_rpl(
                        _mm_blendv_epi8_rpl(vTIns, vTDel, case2),
                        _mm_blendv_epi8_rpl(vTDiag, vTZero, cond_zero),
                        case1);
                _mm_store_si128(pvHT + i, vT);
                vT = _mm_or_si128(vT, vTAll);
                arr_store(result->trace->trace_table, vT, i, segLen, j);
            }
            vMaxH = _mm_max_epi32_rpl(vH, vMaxH);
            vEF_opn = _mm_sub_epi32(vH, vGapO);

            /* Update vE value. */
            vE_ext = _mm_sub_epi32(vE, vGapE);
            vE = _mm_max_epi32_rpl(vEF_opn, vE_ext);
            _mm_store_si128(pvE + i, vE);
            {
                __m128i vEa = _mm_load_si128(pvEaLoad + i);
                __m128i vEa_ext = _mm_sub_epi32(vEa, vGapE);
                vEa = _mm_max_epi32_rpl(vEF_opn, vEa_ext);
                _mm_store_si128(pvEaStore + i, vEa);
                if (j+1<s2Len) {
                    __m128i cond = _mm_cmpgt_epi32(vEF_opn, vEa_ext);
                    __m128i vT = _mm_blendv_epi8_rpl(vTInsE, vTDiagE, cond);
                    arr_store(result->trace->trace_table, vT, i, segLen, j+1);
                }
            }

            /* Update vF value. */
            vF_ext = _mm_sub_epi32(vF, vGapE);
            vF = _mm_max_epi32_rpl(vEF_opn, vF_ext);
            if (i+1<segLen) {
                __m128i vTAll = arr_load(result->trace->trace_table, i+1, segLen, j);
                __m128i cond = _mm_cmpgt_epi32(vEF_opn, vF_ext);
                __m128i vT = _mm_blendv_epi8_rpl(vTDelF, vTDiagF, cond);
                vT = _mm_or_si128(vT, vTAll);
                arr_store(result->trace->trace_table, vT, i+1, segLen, j);
            }

            /* 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 */
        vFa_ext = vF_ext;
        vFa = vF;
        for (k=0; k<segWidth; ++k) {
            __m128i vHp = _mm_load_si128(&pvHLoad[segLen - 1]);
            vHp = _mm_slli_si128(vHp, 4);
            vEF_opn = _mm_slli_si128(vEF_opn, 4);
            vEF_opn = _mm_insert_epi32_rpl(vEF_opn, -open, 0);
            vF_ext = _mm_slli_si128(vF_ext, 4);
            vF_ext = _mm_insert_epi32_rpl(vF_ext, NEG_INF, 0);
            vF = _mm_slli_si128(vF, 4);
            vF = _mm_insert_epi32_rpl(vF, -open, 0);
            vFa_ext = _mm_slli_si128(vFa_ext, 4);
            vFa_ext = _mm_insert_epi32_rpl(vFa_ext, NEG_INF, 0);
            vFa = _mm_slli_si128(vFa, 4);
            vFa = _mm_insert_epi32_rpl(vFa, -open, 0);
            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);
                {
                    __m128i vTAll;
                    __m128i vT;
                    __m128i case1;
                    __m128i case2;
                    __m128i cond;
                    vHp = _mm_add_epi32(vHp, _mm_load_si128(vP + i));
                    vHp = _mm_max_epi32_rpl(vHp, vZero);
                    case1 = _mm_cmpeq_epi32(vH, vHp);
                    case2 = _mm_cmpeq_epi32(vH, vF);
                    cond = _mm_andnot_si128(case1,case2);
                    vTAll = arr_load(result->trace->trace_table, i, segLen, j);
                    vT = _mm_load_si128(pvHT + i);
                    vT = _mm_blendv_epi8_rpl(vT, vTDel, cond);
                    _mm_store_si128(pvHT + i, vT);
                    vTAll = _mm_and_si128(vTAll, vTMask);
                    vTAll = _mm_or_si128(vTAll, vT);
                    arr_store(result->trace->trace_table, vTAll, i, segLen, j);
                }
                vMaxH = _mm_max_epi32_rpl(vH, vMaxH);
                /* Update vF value. */
                {
                    __m128i vTAll = arr_load(result->trace->trace_table, i, segLen, j);
                    __m128i cond = _mm_cmpgt_epi32(vEF_opn, vFa_ext);
                    __m128i vT = _mm_blendv_epi8_rpl(vTDelF, vTDiagF, cond);
                    vTAll = _mm_and_si128(vTAll, vFTMask);
                    vTAll = _mm_or_si128(vTAll, vT);
                    arr_store(result->trace->trace_table, vTAll, i, segLen, j);
                }
                vEF_opn = _mm_sub_epi32(vH, vGapO);
                vF_ext = _mm_sub_epi32(vF, vGapE);
                {
                    __m128i vEa = _mm_load_si128(pvEaLoad + i);
                    __m128i vEa_ext = _mm_sub_epi32(vEa, vGapE);
                    vEa = _mm_max_epi32_rpl(vEF_opn, vEa_ext);
                    _mm_store_si128(pvEaStore + i, vEa);
                    if (j+1<s2Len) {
                        __m128i cond = _mm_cmpgt_epi32(vEF_opn, vEa_ext);
                        __m128i vT = _mm_blendv_epi8_rpl(vTInsE, vTDiagE, cond);
                        arr_store(result->trace->trace_table, vT, i, segLen, j+1);
                    }
                }
                if (! _mm_movemask_epi8(
                            _mm_or_si128(
                                _mm_cmpgt_epi32(vF_ext, vEF_opn),
                                _mm_cmpeq_epi32(vF_ext, vEF_opn))))
                    goto end;
                /*vF = _mm_max_epi32_rpl(vEF_opn, vF_ext);*/
                vF = vF_ext;
                vFa_ext = _mm_sub_epi32(vFa, vGapE);
                vFa = _mm_max_epi32_rpl(vEF_opn, vFa_ext);
                vHp = _mm_load_si128(pvHLoad + i);
            }
        }
end:
        {
        }

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

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

    if (parasail_result_is_saturated(result)) {
        score = 0;
        end_query = 0;
        end_ref = 0;
    }
    else {
        if (end_ref == j-1) {
            /* end_ref was the last store column */
            SWAP(pvHMax,  pvHStore)
        }
        else if (end_ref == j-2) {
            /* end_ref was the last load column */
            SWAP(pvHMax,  pvHLoad)
        }
        /* 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(pvHMax);
    parasail_free(pvHT);
    parasail_free(pvEaLoad);
    parasail_free(pvEaStore);
    parasail_free(pvE);
    parasail_free(pvHLoad);
    parasail_free(pvHStore);

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xbb0, %rsp            # imm = 0xBB0
movq %rdi, -0x780(%rbp)
movq %rsi, -0x788(%rbp)
movl %edx, -0x78c(%rbp)
movl %ecx, -0x790(%rbp)
movl %r8d, -0x794(%rbp)
movl $0x0, -0x798(%rbp)
movl $0x0, -0x79c(%rbp)
movl $0x0, -0x7a0(%rbp)
movl $0x0, -0x7a4(%rbp)
movl $0x0, -0x7a8(%rbp)
movl $0x0, -0x7ac(%rbp)
movq $0x0, -0x7b8(%rbp)
movl $0x0, -0x7bc(%rbp)
movl $0x0, -0x7c0(%rbp)
movq $0x0, -0x7c8(%rbp)
movq $0x0, -0x7d0(%rbp)
movq $0x0, -0x7d8(%rbp)
movq $0x0, -0x7e0(%rbp)
movq $0x0, -0x7e8(%rbp)
movq $0x0, -0x7f0(%rbp)
movq $0x0, -0x7f8(%rbp)
movq $0x0, -0x800(%rbp)
movl $0x0, -0x834(%rbp)
movl $0x0, -0x864(%rbp)
movq $0x0, -0x870(%rbp)
cmpq $0x0, -0x780(%rbp)
jne 0x580c0e
movq 0x8a63f9(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x76b402(%rip), %rsi    # 0xcebfeb
leaq 0x7663f9(%rip), %rdx    # 0xce6fe9
leaq 0x7418e6(%rip), %rcx    # 0xcc24dd
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x778(%rbp)
jmp 0x582b43
jmp 0x580c10
jmp 0x580c12
movq -0x780(%rbp), %rax
cmpq $0x0, 0x48(%rax)
jne 0x580c56
movq 0x8a63b1(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x76b3ba(%rip), %rsi    # 0xcebfeb
leaq 0x7663b1(%rip), %rdx    # 0xce6fe9
leaq 0x76bd4a(%rip), %rcx    # 0xcec989
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x778(%rbp)
jmp 0x582b43
jmp 0x580c58
jmp 0x580c5a
movq -0x780(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x580c9e
movq 0x8a6369(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x76b372(%rip), %rsi    # 0xcebfeb
leaq 0x766369(%rip), %rdx    # 0xce6fe9
leaq 0x76bc95(%rip), %rcx    # 0xcec91c
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x778(%rbp)
jmp 0x582b43
jmp 0x580ca0
jmp 0x580ca2
movq -0x780(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jg 0x580ce5
movq 0x8a6322(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x76ba41(%rip), %rsi    # 0xcec701
leaq 0x766322(%rip), %rdx    # 0xce6fe9
leaq 0x76bc5e(%rip), %rcx    # 0xcec92c
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x778(%rbp)
jmp 0x582b43
jmp 0x580ce7
jmp 0x580ce9
cmpq $0x0, -0x788(%rbp)
jne 0x580d29
movq 0x8a62de(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x76b2e7(%rip), %rsi    # 0xcebfeb
leaq 0x7662de(%rip), %rdx    # 0xce6fe9
leaq 0x76b9ec(%rip), %rcx    # 0xcec6fe
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x778(%rbp)
jmp 0x582b43
jmp 0x580d2b
jmp 0x580d2d
cmpl $0x0, -0x78c(%rbp)
jg 0x580d6c
movq 0x8a629b(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x76b9ba(%rip), %rsi    # 0xcec701
leaq 0x76629b(%rip), %rdx    # 0xce6fe9
leaq 0x76b9c0(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x778(%rbp)
jmp 0x582b43
jmp 0x580d6e
jmp 0x580d70
cmpl $0x0, -0x790(%rbp)
jge 0x580daf
movq 0x8a6258(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x76b991(%rip), %rsi    # 0xcec71b
leaq 0x766258(%rip), %rdx    # 0xce6fe9
leaq 0x76b998(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x778(%rbp)
jmp 0x582b43
jmp 0x580db1
jmp 0x580db3
cmpl $0x0, -0x794(%rbp)
jge 0x580df2
movq 0x8a6215(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x76b94e(%rip), %rsi    # 0xcec71b
leaq 0x766215(%rip), %rdx    # 0xce6fe9
leaq 0x76b95a(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x778(%rbp)
jmp 0x582b43
jmp 0x580df4
movl $0x0, -0x798(%rbp)
movl $0x0, -0x79c(%rbp)
movl $0x0, -0x7a0(%rbp)
movl $0x0, -0x7a4(%rbp)
movl $0x0, -0x7a8(%rbp)
movq -0x780(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x7ac(%rbp)
movq -0x780(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x7b8(%rbp)
movl $0x4, -0x7bc(%rbp)
movl -0x7ac(%rbp), %esi
movl -0x7bc(%rbp), %ecx
movl %ecx, %edx
movl %esi, %eax
leal -0x1(%rax,%rdx), %eax
cltd
idivl %ecx
movl %eax, -0x7c0(%rbp)
movq -0x780(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x7c8(%rbp)
movl -0x790(%rbp), %eax
movl %eax, -0x734(%rbp)
movl -0x734(%rbp), %eax
movl %eax, -0x1c4(%rbp)
movl %eax, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
movl %eax, -0x1d0(%rbp)
movd -0x1c4(%rbp), %xmm0
movd -0x1c8(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x1cc(%rbp), %xmm2
movd -0x1d0(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x1e0(%rbp)
movaps -0x1e0(%rbp), %xmm0
movaps %xmm0, -0x810(%rbp)
movl -0x794(%rbp), %eax
movl %eax, -0x738(%rbp)
movl -0x738(%rbp), %eax
movl %eax, -0x1a4(%rbp)
movl %eax, -0x1a8(%rbp)
movl %eax, -0x1ac(%rbp)
movl %eax, -0x1b0(%rbp)
movd -0x1a4(%rbp), %xmm0
movd -0x1a8(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x1ac(%rbp), %xmm2
movd -0x1b0(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x1c0(%rbp)
movaps -0x1c0(%rbp), %xmm0
movaps %xmm0, -0x820(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x730(%rbp)
movaps -0x730(%rbp), %xmm0
movaps %xmm0, -0x830(%rbp)
movl $0xc0000000, -0x834(%rbp) # imm = 0xC0000000
movaps -0x830(%rbp), %xmm0
movaps %xmm0, -0x850(%rbp)
movaps -0x830(%rbp), %xmm0
movaps %xmm0, -0x860(%rbp)
movq -0x7b8(%rbp), %rax
movl 0x1c(%rax), %ecx
movl $0x7ffffffe, %eax       # imm = 0x7FFFFFFE
subl %ecx, %eax
movl %eax, -0x864(%rbp)
movl $0x0, -0x73c(%rbp)
movl -0x73c(%rbp), %eax
movl %eax, -0x184(%rbp)
movl %eax, -0x188(%rbp)
movl %eax, -0x18c(%rbp)
movl %eax, -0x190(%rbp)
movd -0x184(%rbp), %xmm0
movd -0x188(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x18c(%rbp), %xmm2
movd -0x190(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x1a0(%rbp)
movaps -0x1a0(%rbp), %xmm0
movaps %xmm0, -0x880(%rbp)
movl $0x1, -0x740(%rbp)
movl -0x740(%rbp), %eax
movl %eax, -0x164(%rbp)
movl %eax, -0x168(%rbp)
movl %eax, -0x16c(%rbp)
movl %eax, -0x170(%rbp)
movd -0x164(%rbp), %xmm0
movd -0x168(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x16c(%rbp), %xmm2
movd -0x170(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x180(%rbp)
movaps -0x180(%rbp), %xmm0
movaps %xmm0, -0x890(%rbp)
movl $0x2, -0x744(%rbp)
movl -0x744(%rbp), %eax
movl %eax, -0x144(%rbp)
movl %eax, -0x148(%rbp)
movl %eax, -0x14c(%rbp)
movl %eax, -0x150(%rbp)
movd -0x144(%rbp), %xmm0
movd -0x148(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x14c(%rbp), %xmm2
movd -0x150(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x160(%rbp)
movaps -0x160(%rbp), %xmm0
movaps %xmm0, -0x8a0(%rbp)
movl $0x4, -0x748(%rbp)
movl -0x748(%rbp), %eax
movl %eax, -0x124(%rbp)
movl %eax, -0x128(%rbp)
movl %eax, -0x12c(%rbp)
movl %eax, -0x130(%rbp)
movd -0x124(%rbp), %xmm0
movd -0x128(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x12c(%rbp), %xmm2
movd -0x130(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x140(%rbp)
movaps -0x140(%rbp), %xmm0
movaps %xmm0, -0x8b0(%rbp)
movl $0x8, -0x74c(%rbp)
movl -0x74c(%rbp), %eax
movl %eax, -0x104(%rbp)
movl %eax, -0x108(%rbp)
movl %eax, -0x10c(%rbp)
movl %eax, -0x110(%rbp)
movd -0x104(%rbp), %xmm0
movd -0x108(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x10c(%rbp), %xmm2
movd -0x110(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x120(%rbp)
movaps -0x120(%rbp), %xmm0
movaps %xmm0, -0x8c0(%rbp)
movl $0x10, -0x750(%rbp)
movl -0x750(%rbp), %eax
movl %eax, -0xe4(%rbp)
movl %eax, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
movl %eax, -0xf0(%rbp)
movd -0xe4(%rbp), %xmm0
movd -0xe8(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0xec(%rbp), %xmm2
movd -0xf0(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x100(%rbp)
movaps -0x100(%rbp), %xmm0
movaps %xmm0, -0x8d0(%rbp)
movl $0x20, -0x754(%rbp)
movl -0x754(%rbp), %eax
movl %eax, -0xc4(%rbp)
movl %eax, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
movl %eax, -0xd0(%rbp)
movd -0xc4(%rbp), %xmm0
movd -0xc8(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0xcc(%rbp), %xmm2
movd -0xd0(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0xe0(%rbp)
movaps -0xe0(%rbp), %xmm0
movaps %xmm0, -0x8e0(%rbp)
movl $0x40, -0x758(%rbp)
movl -0x758(%rbp), %eax
movl %eax, -0xa4(%rbp)
movl %eax, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
movl %eax, -0xb0(%rbp)
movd -0xa4(%rbp), %xmm0
movd -0xa8(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0xac(%rbp), %xmm2
movd -0xb0(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0xc0(%rbp)
movaps -0xc0(%rbp), %xmm0
movaps %xmm0, -0x8f0(%rbp)
movl $0x78, -0x75c(%rbp)
movl -0x75c(%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, -0x900(%rbp)
movl $0x1f, -0x760(%rbp)
movl -0x760(%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]
movdqa %xmm0, -0x80(%rbp)
movdqa -0x80(%rbp), %xmm0
movdqa %xmm0, -0x910(%rbp)
movl -0x7c0(%rbp), %edi
movl -0x78c(%rbp), %esi
movl $0x10, %ecx
movq %rcx, %rdx
callq 0x1c3fa0
movq %rax, -0x870(%rbp)
cmpq $0x0, -0x870(%rbp)
jne 0x5813e5
movq $0x0, -0x778(%rbp)
jmp 0x582b43
movq -0x870(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x4480804, %ecx        # imm = 0x4480804
movl %ecx, 0xc(%rax)
movslq -0x7c0(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x7d0(%rbp)
movslq -0x7c0(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x7d8(%rbp)
movslq -0x7c0(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x7e0(%rbp)
movslq -0x7c0(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x7e8(%rbp)
movslq -0x7c0(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x7f0(%rbp)
movslq -0x7c0(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x7f8(%rbp)
movslq -0x7c0(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x800(%rbp)
cmpq $0x0, -0x7d0(%rbp)
jne 0x5814ba
movq $0x0, -0x778(%rbp)
jmp 0x582b43
cmpq $0x0, -0x7d8(%rbp)
jne 0x5814d4
movq $0x0, -0x778(%rbp)
jmp 0x582b43
cmpq $0x0, -0x7e0(%rbp)
jne 0x5814ee
movq $0x0, -0x778(%rbp)
jmp 0x582b43
cmpq $0x0, -0x7e8(%rbp)
jne 0x581508
movq $0x0, -0x778(%rbp)
jmp 0x582b43
cmpq $0x0, -0x7f0(%rbp)
jne 0x581522
movq $0x0, -0x778(%rbp)
jmp 0x582b43
cmpq $0x0, -0x7f8(%rbp)
jne 0x58153c
movq $0x0, -0x778(%rbp)
jmp 0x582b43
cmpq $0x0, -0x800(%rbp)
jne 0x581556
movq $0x0, -0x778(%rbp)
jmp 0x582b43
movq -0x7d0(%rbp), %rdi
movaps -0x830(%rbp), %xmm0
movslq -0x7c0(%rbp), %rsi
callq 0x381e50
movq -0x7e0(%rbp), %rdi
movl -0x790(%rbp), %eax
negl %eax
movl %eax, -0x764(%rbp)
movl -0x764(%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]
movaps %xmm0, -0x60(%rbp)
movaps -0x60(%rbp), %xmm0
movslq -0x7c0(%rbp), %rsi
callq 0x381e50
movq -0x7e8(%rbp), %rdi
movl -0x790(%rbp), %eax
negl %eax
movl %eax, -0x768(%rbp)
movl -0x768(%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 -0x7c0(%rbp), %rsi
callq 0x381e50
movl $0x0, -0x798(%rbp)
movl -0x798(%rbp), %eax
cmpl -0x7c0(%rbp), %eax
jge 0x58167a
movq -0x870(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movdqa -0x8c0(%rbp), %xmm0
movl -0x798(%rbp), %esi
movl -0x7c0(%rbp), %edx
xorl %ecx, %ecx
callq 0x582b60
movl -0x798(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x798(%rbp)
jmp 0x581632
movl $0x0, -0x79c(%rbp)
movl -0x79c(%rbp), %eax
cmpl -0x78c(%rbp), %eax
jge 0x58290c
movq $0x0, -0x9a8(%rbp)
movaps -0x830(%rbp), %xmm1
movaps -0x810(%rbp), %xmm0
movaps %xmm1, -0x610(%rbp)
movaps %xmm0, -0x620(%rbp)
movaps -0x610(%rbp), %xmm0
movaps -0x620(%rbp), %xmm1
psubd %xmm1, %xmm0
movaps %xmm0, -0x950(%rbp)
movq -0x7d0(%rbp), %rax
movl -0x7c0(%rbp), %ecx
decl %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x5a8(%rbp)
movq -0x5a8(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x990(%rbp)
movaps -0x990(%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, -0x990(%rbp)
movq -0x7c8(%rbp), %rax
movq -0x7b8(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x788(%rbp), %rdx
movslq -0x79c(%rbp), %rsi
movzbl (%rdx,%rsi), %edx
movl (%rcx,%rdx,4), %ecx
imull -0x7c0(%rbp), %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x9a8(%rbp)
movl -0x7a8(%rbp), %eax
movl -0x79c(%rbp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jne 0x5817d1
movq -0x800(%rbp), %rax
movq %rax, -0x9b0(%rbp)
movq -0x7d8(%rbp), %rax
movq %rax, -0x800(%rbp)
movq -0x7d0(%rbp), %rax
movq %rax, -0x7d8(%rbp)
movq -0x9b0(%rbp), %rax
movq %rax, -0x7d0(%rbp)
movq -0x7f0(%rbp), %rax
movq %rax, -0x9b8(%rbp)
movq -0x7e8(%rbp), %rax
movq %rax, -0x7f0(%rbp)
movq -0x9b8(%rbp), %rax
movq %rax, -0x7e8(%rbp)
jmp 0x581825
movq -0x7d8(%rbp), %rax
movq %rax, -0x9c0(%rbp)
movq -0x7d0(%rbp), %rax
movq %rax, -0x7d8(%rbp)
movq -0x9c0(%rbp), %rax
movq %rax, -0x7d0(%rbp)
movq -0x7f0(%rbp), %rax
movq %rax, -0x9c8(%rbp)
movq -0x7e8(%rbp), %rax
movq %rax, -0x7f0(%rbp)
movq -0x9c8(%rbp), %rax
movq %rax, -0x7e8(%rbp)
movl $0x0, -0x798(%rbp)
movl -0x798(%rbp), %eax
cmpl -0x7c0(%rbp), %eax
jge 0x581f15
movq -0x7e0(%rbp), %rax
movslq -0x798(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x5b0(%rbp)
movq -0x5b0(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x930(%rbp)
movaps -0x990(%rbp), %xmm1
movq -0x9a8(%rbp), %rax
movslq -0x798(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x5b8(%rbp)
movq -0x5b8(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm1, -0x570(%rbp)
movaps %xmm0, -0x580(%rbp)
movaps -0x570(%rbp), %xmm0
movaps -0x580(%rbp), %xmm1
paddd %xmm1, %xmm0
movaps %xmm0, -0x9a0(%rbp)
movaps -0x9a0(%rbp), %xmm0
movaps -0x830(%rbp), %xmm1
callq 0x582bc0
movaps %xmm0, -0x9a0(%rbp)
movaps -0x9a0(%rbp), %xmm0
movaps -0x930(%rbp), %xmm1
callq 0x582bc0
movaps %xmm0, -0x990(%rbp)
movaps -0x990(%rbp), %xmm0
movaps -0x950(%rbp), %xmm1
callq 0x582bc0
movaps %xmm0, -0x990(%rbp)
movq -0x7d0(%rbp), %rax
movslq -0x798(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movaps -0x990(%rbp), %xmm0
movq %rax, -0x488(%rbp)
movaps %xmm0, -0x4a0(%rbp)
movaps -0x4a0(%rbp), %xmm0
movq -0x488(%rbp), %rax
movaps %xmm0, (%rax)
movq -0x870(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movl -0x798(%rbp), %esi
movl -0x7c0(%rbp), %edx
movl -0x79c(%rbp), %ecx
callq 0x582c90
movaps %xmm0, -0x9e0(%rbp)
movaps -0x990(%rbp), %xmm1
movaps -0x830(%rbp), %xmm0
movaps %xmm1, -0x3d0(%rbp)
movaps %xmm0, -0x3e0(%rbp)
movaps -0x3d0(%rbp), %xmm0
movaps -0x3e0(%rbp), %xmm1
pcmpeqd %xmm1, %xmm0
movaps %xmm0, -0x9f0(%rbp)
movaps -0x990(%rbp), %xmm1
movaps -0x9a0(%rbp), %xmm0
movaps %xmm1, -0x3f0(%rbp)
movaps %xmm0, -0x400(%rbp)
movaps -0x3f0(%rbp), %xmm0
movaps -0x400(%rbp), %xmm1
pcmpeqd %xmm1, %xmm0
movaps %xmm0, -0xa00(%rbp)
movaps -0x990(%rbp), %xmm1
movaps -0x950(%rbp), %xmm0
movaps %xmm1, -0x410(%rbp)
movaps %xmm0, -0x420(%rbp)
movaps -0x410(%rbp), %xmm0
movaps -0x420(%rbp), %xmm1
pcmpeqd %xmm1, %xmm0
movdqa %xmm0, -0xa10(%rbp)
movdqa -0x890(%rbp), %xmm0
movdqa -0x8a0(%rbp), %xmm1
movdqa -0xa10(%rbp), %xmm2
callq 0x582ce0
movaps %xmm0, -0xba0(%rbp)
movdqa -0x8b0(%rbp), %xmm0
movdqa -0x880(%rbp), %xmm1
movdqa -0x9f0(%rbp), %xmm2
callq 0x582ce0
movaps %xmm0, %xmm1
movaps -0xba0(%rbp), %xmm0
movdqa -0xa00(%rbp), %xmm2
callq 0x582ce0
movdqa %xmm0, -0xa20(%rbp)
movq -0x7f8(%rbp), %rax
movslq -0x798(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0xa20(%rbp), %xmm0
movq %rax, -0x4a8(%rbp)
movdqa %xmm0, -0x4c0(%rbp)
movdqa -0x4c0(%rbp), %xmm0
movq -0x4a8(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0xa20(%rbp), %xmm1
movdqa -0x9e0(%rbp), %xmm0
movdqa %xmm1, -0x330(%rbp)
movdqa %xmm0, -0x340(%rbp)
movdqa -0x330(%rbp), %xmm0
por -0x340(%rbp), %xmm0
movdqa %xmm0, -0xa20(%rbp)
movq -0x870(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movdqa -0xa20(%rbp), %xmm0
movl -0x798(%rbp), %esi
movl -0x7c0(%rbp), %edx
movl -0x79c(%rbp), %ecx
callq 0x582b60
movdqa -0x990(%rbp), %xmm0
movdqa -0x850(%rbp), %xmm1
callq 0x582bc0
movdqa %xmm0, -0x850(%rbp)
movdqa -0x990(%rbp), %xmm1
movdqa -0x810(%rbp), %xmm0
movdqa %xmm1, -0x630(%rbp)
movdqa %xmm0, -0x640(%rbp)
movdqa -0x630(%rbp), %xmm0
movdqa -0x640(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x920(%rbp)
movdqa -0x930(%rbp), %xmm1
movdqa -0x820(%rbp), %xmm0
movdqa %xmm1, -0x650(%rbp)
movdqa %xmm0, -0x660(%rbp)
movdqa -0x650(%rbp), %xmm0
movdqa -0x660(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x940(%rbp)
movdqa -0x920(%rbp), %xmm0
movdqa -0x940(%rbp), %xmm1
callq 0x582bc0
movdqa %xmm0, -0x930(%rbp)
movq -0x7e0(%rbp), %rax
movslq -0x798(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x930(%rbp), %xmm0
movq %rax, -0x4c8(%rbp)
movdqa %xmm0, -0x4e0(%rbp)
movdqa -0x4e0(%rbp), %xmm0
movq -0x4c8(%rbp), %rax
movdqa %xmm0, (%rax)
movq -0x7f0(%rbp), %rax
movslq -0x798(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x5c0(%rbp)
movq -0x5c0(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0xa30(%rbp)
movdqa -0xa30(%rbp), %xmm1
movdqa -0x820(%rbp), %xmm0
movdqa %xmm1, -0x670(%rbp)
movdqa %xmm0, -0x680(%rbp)
movdqa -0x670(%rbp), %xmm0
movdqa -0x680(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0xa40(%rbp)
movdqa -0x920(%rbp), %xmm0
movdqa -0xa40(%rbp), %xmm1
callq 0x582bc0
movdqa %xmm0, -0xa30(%rbp)
movq -0x7e8(%rbp), %rax
movslq -0x798(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0xa30(%rbp), %xmm0
movq %rax, -0x4e8(%rbp)
movdqa %xmm0, -0x500(%rbp)
movdqa -0x500(%rbp), %xmm0
movq -0x4e8(%rbp), %rax
movdqa %xmm0, (%rax)
movl -0x79c(%rbp), %eax
addl $0x1, %eax
cmpl -0x78c(%rbp), %eax
jge 0x581d73
movaps -0x920(%rbp), %xmm1
movaps -0xa40(%rbp), %xmm0
movaps %xmm1, -0x270(%rbp)
movaps %xmm0, -0x280(%rbp)
movaps -0x270(%rbp), %xmm0
movaps -0x280(%rbp), %xmm1
pcmpgtd %xmm1, %xmm0
movdqa %xmm0, -0xa50(%rbp)
movdqa -0x8d0(%rbp), %xmm0
movdqa -0x8c0(%rbp), %xmm1
movdqa -0xa50(%rbp), %xmm2
callq 0x582ce0
movdqa %xmm0, -0xa60(%rbp)
movq -0x870(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movdqa -0xa60(%rbp), %xmm0
movl -0x798(%rbp), %esi
movl -0x7c0(%rbp), %edx
movl -0x79c(%rbp), %ecx
addl $0x1, %ecx
callq 0x582b60
movdqa -0x950(%rbp), %xmm1
movdqa -0x820(%rbp), %xmm0
movdqa %xmm1, -0x690(%rbp)
movdqa %xmm0, -0x6a0(%rbp)
movdqa -0x690(%rbp), %xmm0
movdqa -0x6a0(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x960(%rbp)
movdqa -0x920(%rbp), %xmm0
movdqa -0x960(%rbp), %xmm1
callq 0x582bc0
movdqa %xmm0, -0x950(%rbp)
movl -0x798(%rbp), %eax
addl $0x1, %eax
cmpl -0x7c0(%rbp), %eax
jge 0x581ed2
movq -0x870(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movl -0x798(%rbp), %esi
incl %esi
movl -0x7c0(%rbp), %edx
movl -0x79c(%rbp), %ecx
callq 0x582c90
movaps %xmm0, -0xa70(%rbp)
movaps -0x920(%rbp), %xmm1
movaps -0x960(%rbp), %xmm0
movaps %xmm1, -0x290(%rbp)
movaps %xmm0, -0x2a0(%rbp)
movaps -0x290(%rbp), %xmm0
movaps -0x2a0(%rbp), %xmm1
pcmpgtd %xmm1, %xmm0
movdqa %xmm0, -0xa80(%rbp)
movdqa -0x8f0(%rbp), %xmm0
movdqa -0x8e0(%rbp), %xmm1
movdqa -0xa80(%rbp), %xmm2
callq 0x582ce0
movdqa %xmm0, -0xa90(%rbp)
movdqa -0xa90(%rbp), %xmm1
movdqa -0xa70(%rbp), %xmm0
movdqa %xmm1, -0x350(%rbp)
movdqa %xmm0, -0x360(%rbp)
movdqa -0x350(%rbp), %xmm0
por -0x360(%rbp), %xmm0
movdqa %xmm0, -0xa90(%rbp)
movq -0x870(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movdqa -0xa90(%rbp), %xmm0
movl -0x798(%rbp), %esi
addl $0x1, %esi
movl -0x7c0(%rbp), %edx
movl -0x79c(%rbp), %ecx
callq 0x582b60
movq -0x7d8(%rbp), %rax
movslq -0x798(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x5c8(%rbp)
movq -0x5c8(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x990(%rbp)
movl -0x798(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x798(%rbp)
jmp 0x58182f
movdqa -0x960(%rbp), %xmm0
movdqa %xmm0, -0x980(%rbp)
movdqa -0x950(%rbp), %xmm0
movdqa %xmm0, -0x970(%rbp)
movl $0x0, -0x7a0(%rbp)
movl -0x7a0(%rbp), %eax
cmpl -0x7bc(%rbp), %eax
jge 0x58280a
movq -0x7d8(%rbp), %rax
movl -0x7c0(%rbp), %ecx
decl %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x5d0(%rbp)
movq -0x5d0(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0xaa0(%rbp)
movaps -0xaa0(%rbp), %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm0, -0xaa0(%rbp)
movaps -0x920(%rbp), %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm0, -0x920(%rbp)
movaps -0x920(%rbp), %xmm0
movl -0x790(%rbp), %edi
negl %edi
xorl %esi, %esi
movl %esi, -0xba4(%rbp)
callq 0x582d70
movl -0xba4(%rbp), %esi
movaps %xmm0, -0x920(%rbp)
movaps -0x960(%rbp), %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm0, -0x960(%rbp)
movaps -0x960(%rbp), %xmm0
movl $0xc0000000, %edi       # imm = 0xC0000000
movl %edi, -0xba8(%rbp)
callq 0x582d70
movl -0xba4(%rbp), %esi
movaps %xmm0, -0x960(%rbp)
movaps -0x950(%rbp), %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm0, -0x950(%rbp)
movaps -0x950(%rbp), %xmm0
movl -0x790(%rbp), %edi
negl %edi
callq 0x582d70
movl -0xba8(%rbp), %edi
movl -0xba4(%rbp), %esi
movaps %xmm0, -0x950(%rbp)
movaps -0x980(%rbp), %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm0, -0x980(%rbp)
movaps -0x980(%rbp), %xmm0
callq 0x582d70
movaps %xmm0, -0x980(%rbp)
movaps -0x970(%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, -0x970(%rbp)
movdqa -0x970(%rbp), %xmm0
xorl %edi, %edi
subl -0x790(%rbp), %edi
xorl %esi, %esi
callq 0x582d70
movdqa %xmm0, -0x970(%rbp)
movl $0x0, -0x798(%rbp)
movl -0x798(%rbp), %eax
cmpl -0x7c0(%rbp), %eax
jge 0x5827f4
movq -0x7d0(%rbp), %rax
movslq -0x798(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x5d8(%rbp)
movq -0x5d8(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x990(%rbp)
movaps -0x990(%rbp), %xmm0
movaps -0x950(%rbp), %xmm1
callq 0x582bc0
movaps %xmm0, -0x990(%rbp)
movq -0x7d0(%rbp), %rax
movslq -0x798(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movaps -0x990(%rbp), %xmm0
movq %rax, -0x508(%rbp)
movaps %xmm0, -0x520(%rbp)
movaps -0x520(%rbp), %xmm0
movq -0x508(%rbp), %rax
movaps %xmm0, (%rax)
movaps -0xaa0(%rbp), %xmm1
movq -0x9a8(%rbp), %rax
movslq -0x798(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x5e0(%rbp)
movq -0x5e0(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm1, -0x590(%rbp)
movaps %xmm0, -0x5a0(%rbp)
movaps -0x590(%rbp), %xmm0
movaps -0x5a0(%rbp), %xmm1
paddd %xmm1, %xmm0
movaps %xmm0, -0xaa0(%rbp)
movaps -0xaa0(%rbp), %xmm0
movaps -0x830(%rbp), %xmm1
callq 0x582bc0
movaps %xmm0, -0xaa0(%rbp)
movaps -0x990(%rbp), %xmm1
movaps -0xaa0(%rbp), %xmm0
movaps %xmm1, -0x430(%rbp)
movaps %xmm0, -0x440(%rbp)
movaps -0x430(%rbp), %xmm0
movaps -0x440(%rbp), %xmm1
pcmpeqd %xmm1, %xmm0
movaps %xmm0, -0xad0(%rbp)
movaps -0x990(%rbp), %xmm1
movaps -0x950(%rbp), %xmm0
movaps %xmm1, -0x450(%rbp)
movaps %xmm0, -0x460(%rbp)
movaps -0x450(%rbp), %xmm0
movaps -0x460(%rbp), %xmm1
pcmpeqd %xmm1, %xmm0
movaps %xmm0, -0xae0(%rbp)
movaps -0xad0(%rbp), %xmm1
movaps -0xae0(%rbp), %xmm0
movaps %xmm1, -0x250(%rbp)
movaps %xmm0, -0x260(%rbp)
movaps -0x250(%rbp), %xmm0
movaps -0x260(%rbp), %xmm1
pandn %xmm1, %xmm0
movaps %xmm0, -0xaf0(%rbp)
movq -0x870(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movl -0x798(%rbp), %esi
movl -0x7c0(%rbp), %edx
movl -0x79c(%rbp), %ecx
callq 0x582c90
movaps %xmm0, -0xab0(%rbp)
movq -0x7f8(%rbp), %rax
movslq -0x798(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x5e8(%rbp)
movq -0x5e8(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0xac0(%rbp)
movaps -0xac0(%rbp), %xmm0
movaps -0x8a0(%rbp), %xmm1
movaps -0xaf0(%rbp), %xmm2
callq 0x582ce0
movaps %xmm0, -0xac0(%rbp)
movq -0x7f8(%rbp), %rax
movslq -0x798(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movaps -0xac0(%rbp), %xmm0
movq %rax, -0x528(%rbp)
movaps %xmm0, -0x540(%rbp)
movaps -0x540(%rbp), %xmm0
movq -0x528(%rbp), %rax
movaps %xmm0, (%rax)
movaps -0xab0(%rbp), %xmm1
movaps -0x900(%rbp), %xmm0
movaps %xmm1, -0x210(%rbp)
movaps %xmm0, -0x220(%rbp)
movaps -0x210(%rbp), %xmm0
movaps -0x220(%rbp), %xmm1
pand %xmm1, %xmm0
movaps %xmm0, -0xab0(%rbp)
movaps -0xab0(%rbp), %xmm1
movaps -0xac0(%rbp), %xmm0
movaps %xmm1, -0x370(%rbp)
movaps %xmm0, -0x380(%rbp)
movaps -0x370(%rbp), %xmm0
movaps -0x380(%rbp), %xmm1
por %xmm1, %xmm0
movaps %xmm0, -0xab0(%rbp)
movq -0x870(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movaps -0xab0(%rbp), %xmm0
movl -0x798(%rbp), %esi
movl -0x7c0(%rbp), %edx
movl -0x79c(%rbp), %ecx
callq 0x582b60
movaps -0x990(%rbp), %xmm0
movaps -0x850(%rbp), %xmm1
callq 0x582bc0
movaps %xmm0, -0x850(%rbp)
movq -0x870(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movl -0x798(%rbp), %esi
movl -0x7c0(%rbp), %edx
movl -0x79c(%rbp), %ecx
callq 0x582c90
movaps %xmm0, -0xb00(%rbp)
movaps -0x920(%rbp), %xmm1
movaps -0x980(%rbp), %xmm0
movaps %xmm1, -0x2b0(%rbp)
movaps %xmm0, -0x2c0(%rbp)
movaps -0x2b0(%rbp), %xmm0
movaps -0x2c0(%rbp), %xmm1
pcmpgtd %xmm1, %xmm0
movdqa %xmm0, -0xb10(%rbp)
movdqa -0x8f0(%rbp), %xmm0
movdqa -0x8e0(%rbp), %xmm1
movdqa -0xb10(%rbp), %xmm2
callq 0x582ce0
movdqa %xmm0, -0xb20(%rbp)
movdqa -0xb00(%rbp), %xmm1
movdqa -0x910(%rbp), %xmm0
movdqa %xmm1, -0x230(%rbp)
movdqa %xmm0, -0x240(%rbp)
movdqa -0x230(%rbp), %xmm0
pand -0x240(%rbp), %xmm0
movdqa %xmm0, -0xb00(%rbp)
movdqa -0xb00(%rbp), %xmm1
movdqa -0xb20(%rbp), %xmm0
movdqa %xmm1, -0x390(%rbp)
movdqa %xmm0, -0x3a0(%rbp)
movdqa -0x390(%rbp), %xmm0
por -0x3a0(%rbp), %xmm0
movdqa %xmm0, -0xb00(%rbp)
movq -0x870(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movdqa -0xb00(%rbp), %xmm0
movl -0x798(%rbp), %esi
movl -0x7c0(%rbp), %edx
movl -0x79c(%rbp), %ecx
callq 0x582b60
movdqa -0x990(%rbp), %xmm1
movdqa -0x810(%rbp), %xmm0
movdqa %xmm1, -0x6b0(%rbp)
movdqa %xmm0, -0x6c0(%rbp)
movdqa -0x6b0(%rbp), %xmm0
movdqa -0x6c0(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x920(%rbp)
movdqa -0x950(%rbp), %xmm1
movdqa -0x820(%rbp), %xmm0
movdqa %xmm1, -0x6d0(%rbp)
movdqa %xmm0, -0x6e0(%rbp)
movdqa -0x6d0(%rbp), %xmm0
movdqa -0x6e0(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x960(%rbp)
movq -0x7f0(%rbp), %rax
movslq -0x798(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x5f0(%rbp)
movq -0x5f0(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0xb30(%rbp)
movdqa -0xb30(%rbp), %xmm1
movdqa -0x820(%rbp), %xmm0
movdqa %xmm1, -0x6f0(%rbp)
movdqa %xmm0, -0x700(%rbp)
movdqa -0x6f0(%rbp), %xmm0
movdqa -0x700(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0xb40(%rbp)
movdqa -0x920(%rbp), %xmm0
movdqa -0xb40(%rbp), %xmm1
callq 0x582bc0
movdqa %xmm0, -0xb30(%rbp)
movq -0x7e8(%rbp), %rax
movslq -0x798(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0xb30(%rbp), %xmm0
movq %rax, -0x548(%rbp)
movdqa %xmm0, -0x560(%rbp)
movdqa -0x560(%rbp), %xmm0
movq -0x548(%rbp), %rax
movdqa %xmm0, (%rax)
movl -0x79c(%rbp), %eax
addl $0x1, %eax
cmpl -0x78c(%rbp), %eax
jge 0x5826ae
movaps -0x920(%rbp), %xmm1
movaps -0xb40(%rbp), %xmm0
movaps %xmm1, -0x2d0(%rbp)
movaps %xmm0, -0x2e0(%rbp)
movaps -0x2d0(%rbp), %xmm0
movaps -0x2e0(%rbp), %xmm1
pcmpgtd %xmm1, %xmm0
movdqa %xmm0, -0xb50(%rbp)
movdqa -0x8d0(%rbp), %xmm0
movdqa -0x8c0(%rbp), %xmm1
movdqa -0xb50(%rbp), %xmm2
callq 0x582ce0
movdqa %xmm0, -0xb60(%rbp)
movq -0x870(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movdqa -0xb60(%rbp), %xmm0
movl -0x798(%rbp), %esi
movl -0x7c0(%rbp), %edx
movl -0x79c(%rbp), %ecx
addl $0x1, %ecx
callq 0x582b60
movaps -0x960(%rbp), %xmm1
movaps -0x920(%rbp), %xmm0
movaps %xmm1, -0x2f0(%rbp)
movaps %xmm0, -0x300(%rbp)
movaps -0x2f0(%rbp), %xmm1
movaps -0x300(%rbp), %xmm0
pcmpgtd %xmm0, %xmm1
movaps -0x960(%rbp), %xmm2
movaps -0x920(%rbp), %xmm0
movaps %xmm2, -0x470(%rbp)
movaps %xmm0, -0x480(%rbp)
movaps -0x470(%rbp), %xmm0
movaps -0x480(%rbp), %xmm2
pcmpeqd %xmm2, %xmm0
movdqa %xmm1, -0x3b0(%rbp)
movdqa %xmm0, -0x3c0(%rbp)
movdqa -0x3b0(%rbp), %xmm0
por -0x3c0(%rbp), %xmm0
movdqa %xmm0, -0x1f0(%rbp)
movdqa -0x1f0(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
jne 0x582748
jmp 0x58280c
movdqa -0x960(%rbp), %xmm0
movdqa %xmm0, -0x950(%rbp)
movdqa -0x970(%rbp), %xmm1
movdqa -0x820(%rbp), %xmm0
movdqa %xmm1, -0x710(%rbp)
movdqa %xmm0, -0x720(%rbp)
movdqa -0x710(%rbp), %xmm0
movdqa -0x720(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x980(%rbp)
movdqa -0x920(%rbp), %xmm0
movdqa -0x980(%rbp), %xmm1
callq 0x582bc0
movdqa %xmm0, -0x970(%rbp)
movq -0x7d8(%rbp), %rax
movslq -0x798(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x5f8(%rbp)
movq -0x5f8(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0xaa0(%rbp)
movl -0x798(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x798(%rbp)
jmp 0x5820a5
jmp 0x5827f6
movl -0x7a0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7a0(%rbp)
jmp 0x581f3f
jmp 0x58280c
movaps -0x850(%rbp), %xmm1
movaps -0x860(%rbp), %xmm0
movaps %xmm1, -0x310(%rbp)
movaps %xmm0, -0x320(%rbp)
movaps -0x310(%rbp), %xmm0
movaps -0x320(%rbp), %xmm1
pcmpgtd %xmm1, %xmm0
movdqa %xmm0, -0xb70(%rbp)
movdqa -0xb70(%rbp), %xmm0
movdqa %xmm0, -0x200(%rbp)
movdqa -0x200(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x5828f6
movdqa -0x850(%rbp), %xmm0
callq 0x582da0
movl %eax, -0x834(%rbp)
movl -0x834(%rbp), %eax
cmpl -0x864(%rbp), %eax
jle 0x58289a
movq -0x870(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
jmp 0x58290c
movl -0x834(%rbp), %eax
movl %eax, -0x76c(%rbp)
movl -0x76c(%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, -0x860(%rbp)
movl -0x79c(%rbp), %eax
movl %eax, -0x7a8(%rbp)
jmp 0x5828f8
movl -0x79c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x79c(%rbp)
jmp 0x581684
cmpl $0x7fffffff, -0x834(%rbp) # imm = 0x7FFFFFFF
jne 0x582928
movq -0x870(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
movq -0x870(%rbp), %rdi
callq 0x1c6390
cmpl $0x0, %eax
je 0x58295c
movl $0x0, -0x834(%rbp)
movl $0x0, -0x7a4(%rbp)
movl $0x0, -0x7a8(%rbp)
jmp 0x582ab2
movl -0x7a8(%rbp), %eax
movl -0x79c(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x58299b
movq -0x800(%rbp), %rax
movq %rax, -0xb78(%rbp)
movq -0x7d0(%rbp), %rax
movq %rax, -0x800(%rbp)
movq -0xb78(%rbp), %rax
movq %rax, -0x7d0(%rbp)
jmp 0x5829da
movl -0x7a8(%rbp), %eax
movl -0x79c(%rbp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jne 0x5829d8
movq -0x800(%rbp), %rax
movq %rax, -0xb80(%rbp)
movq -0x7d8(%rbp), %rax
movq %rax, -0x800(%rbp)
movq -0xb80(%rbp), %rax
movq %rax, -0x7d8(%rbp)
jmp 0x5829da
movq -0x800(%rbp), %rax
movq %rax, -0xb88(%rbp)
movl -0x7c0(%rbp), %eax
imull -0x7bc(%rbp), %eax
movl %eax, -0xb8c(%rbp)
movl -0x7ac(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x7a4(%rbp)
movl $0x0, -0x798(%rbp)
movl -0x798(%rbp), %eax
cmpl -0xb8c(%rbp), %eax
jge 0x582ab0
movq -0xb88(%rbp), %rax
movl (%rax), %eax
cmpl -0x834(%rbp), %eax
jne 0x582a88
movl -0x798(%rbp), %eax
cltd
idivl -0x7bc(%rbp)
movl %eax, -0xbac(%rbp)
movl -0x798(%rbp), %eax
cltd
idivl -0x7bc(%rbp)
movl -0xbac(%rbp), %eax
imull -0x7c0(%rbp), %edx
addl %edx, %eax
movl %eax, -0xb90(%rbp)
movl -0xb90(%rbp), %eax
cmpl -0x7a4(%rbp), %eax
jge 0x582a86
movl -0xb90(%rbp), %eax
movl %eax, -0x7a4(%rbp)
jmp 0x582a88
jmp 0x582a8a
movl -0x798(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x798(%rbp)
movq -0xb88(%rbp), %rax
addq $0x4, %rax
movq %rax, -0xb88(%rbp)
jmp 0x582a14
jmp 0x582ab2
movl -0x834(%rbp), %ecx
movq -0x870(%rbp), %rax
movl %ecx, (%rax)
movl -0x7a4(%rbp), %ecx
movq -0x870(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x7a8(%rbp), %ecx
movq -0x870(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x800(%rbp), %rdi
callq 0x1c3590
movq -0x7f8(%rbp), %rdi
callq 0x1c3590
movq -0x7f0(%rbp), %rdi
callq 0x1c3590
movq -0x7e8(%rbp), %rdi
callq 0x1c3590
movq -0x7e0(%rbp), %rdi
callq 0x1c3590
movq -0x7d8(%rbp), %rdi
callq 0x1c3590
movq -0x7d0(%rbp), %rdi
callq 0x1c3590
movq -0x870(%rbp), %rax
movq %rax, -0x778(%rbp)
movq -0x778(%rbp), %rax
addq $0xbb0, %rsp            # imm = 0xBB0
popq %rbp
retq
nopw %cs:(%rax,%rax)