// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sg_trace_scan_sse2_128_64.c
// Function: parasail_sg_flags_trace_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 s1Len = 0;
    int32_t end_query = 0;
    int32_t end_ref = 0;
    const parasail_matrix_t *matrix = NULL;
    int32_t segWidth = 0;
    int32_t segLen = 0;
    int32_t offset = 0;
    int32_t position = 0;
    __m128i* restrict 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;
    __m128i vTIns;
    __m128i vTDel;
    __m128i vTDiag;
    __m128i vTDiagE;
    __m128i vTInsE;
    __m128i vTDiagF;
    __m128i vTDelF;

    /* 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));
    vTIns  = _mm_set1_epi64x_rpl(PARASAIL_INS);
    vTDel  = _mm_set1_epi64x_rpl(PARASAIL_DEL);
    vTDiag = _mm_set1_epi64x_rpl(PARASAIL_DIAG);
    vTDiagE= _mm_set1_epi64x_rpl(PARASAIL_DIAG_E);
    vTInsE = _mm_set1_epi64x_rpl(PARASAIL_INS_E);
    vTDiagF= _mm_set1_epi64x_rpl(PARASAIL_DIAG_F);
    vTDelF = _mm_set1_epi64x_rpl(PARASAIL_DEL_F);

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

    /* set known flags */
    result->flag |= PARASAIL_FLAG_SG | PARASAIL_FLAG_SCAN
        | PARASAIL_FLAG_TRACE
        | 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;

    /* 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 vE_ext;
        __m128i vE_opn;
        __m128i vHt;
        __m128i vF;
        __m128i vF_ext;
        __m128i vF_opn;
        __m128i vH;
        __m128i vHp;
        __m128i *pvW;
        __m128i vW;
        __m128i case1;
        __m128i case2;
        __m128i vGapper;
        __m128i vT;
        __m128i vET;
        __m128i vFT;

        /* 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);
            vGapper = _mm_load_si128(pvGapper+i);
            vE_opn = _mm_sub_epi64(vH, vGapO);
            vE_ext = _mm_sub_epi64(vE, vGapE);
            case1 = _mm_cmpgt_epi64_rpl(vE_opn, vE_ext);
            vET = _mm_blendv_epi8_rpl(vTInsE, vTDiagE, case1);
            arr_store(result->trace->trace_table, vET, i, segLen, j);
            vE = _mm_max_epi64_rpl(vE_opn, vE_ext);
            vSaturationCheckMin = _mm_min_epi64_rpl(vSaturationCheckMin, vE);
            vGapper = _mm_add_epi64(vHt, vGapper);
            vF = _mm_max_epi64_rpl(vF, vGapper);
            vHp = _mm_add_epi64(vHp, vW);
            vHt = _mm_max_epi64_rpl(vE, vHp);
            _mm_store_si128(pvE+i, vE);
            _mm_store_si128(pvHt+i, vHt);
            _mm_store_si128(pvH+i, vHp);
            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);
        vGapper = _mm_load_si128(pvGapper);
        vGapper = _mm_add_epi64(vHt, vGapper);
        vF = _mm_max_epi64_rpl(vF, vGapper);
        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(vF, vHt);
        for (i=0; i<segLen; ++i) {
            vET = arr_load(result->trace->trace_table, i, segLen, j);
            vHp = _mm_load_si128(pvH+i);
            vHt = _mm_load_si128(pvHt+i);
            vF_opn = _mm_sub_epi64(vH, vGapO);
            vF_ext = _mm_sub_epi64(vF, vGapE);
            vF = _mm_max_epi64_rpl(vF_opn, vF_ext);
            case1 = _mm_cmpgt_epi64_rpl(vF_opn, vF_ext);
            vFT = _mm_blendv_epi8_rpl(vTDelF, vTDiagF, case1);
            vH = _mm_max_epi64_rpl(vHt, vF);
            case1 = _mm_cmpeq_epi64_rpl(vH, vHp);
            case2 = _mm_cmpeq_epi64_rpl(vH, vF);
            vT = _mm_blendv_epi8_rpl(
                    _mm_blendv_epi8_rpl(vTIns, vTDel, case2),
                    vTDiag, case1);
            vT = _mm_or_si128(vT, vET);
            vT = _mm_or_si128(vT, vFT);
            arr_store(result->trace->trace_table, vT, i, segLen, j);
            _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);
        }

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

    /* 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 $0x980, %rsp            # imm = 0x980
movl 0x20(%rbp), %eax
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x5b8(%rbp)
movq %rsi, -0x5c0(%rbp)
movl %edx, -0x5c4(%rbp)
movl %ecx, -0x5c8(%rbp)
movl %r8d, -0x5cc(%rbp)
movl %r9d, -0x5d0(%rbp)
movl $0x0, -0x5d4(%rbp)
movl $0x0, -0x5d8(%rbp)
movl $0x0, -0x5dc(%rbp)
movl $0x0, -0x5e0(%rbp)
movl $0x0, -0x5e4(%rbp)
movl $0x0, -0x5e8(%rbp)
movq $0x0, -0x5f0(%rbp)
movl $0x0, -0x5f4(%rbp)
movl $0x0, -0x5f8(%rbp)
movl $0x0, -0x5fc(%rbp)
movl $0x0, -0x600(%rbp)
movq $0x0, -0x608(%rbp)
movq $0x0, -0x610(%rbp)
movq $0x0, -0x618(%rbp)
movq $0x0, -0x620(%rbp)
movq $0x0, -0x628(%rbp)
movq $0x0, -0x630(%rbp)
movq $0x0, -0x658(%rbp)
movq $0x0, -0x660(%rbp)
movq $0x0, -0x678(%rbp)
movq $0x0, -0x708(%rbp)
cmpq $0x0, -0x5b8(%rbp)
jne 0x52ff19
movq 0x8f70ee(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x7bc0f7(%rip), %rsi    # 0xcebfeb
leaq 0x7be286(%rip), %rdx    # 0xcee181
leaq 0x7925db(%rip), %rcx    # 0xcc24dd
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x5b0(%rbp)
jmp 0x531a53
jmp 0x52ff1b
jmp 0x52ff1d
movq -0x5b8(%rbp), %rax
cmpq $0x0, 0x60(%rax)
jne 0x52ff61
movq 0x8f70a6(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x7bc0af(%rip), %rsi    # 0xcebfeb
leaq 0x7be23e(%rip), %rdx    # 0xcee181
leaq 0x7bc9b9(%rip), %rcx    # 0xcec903
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x5b0(%rbp)
jmp 0x531a53
jmp 0x52ff63
jmp 0x52ff65
movq -0x5b8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x52ffa9
movq 0x8f705e(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x7bc067(%rip), %rsi    # 0xcebfeb
leaq 0x7be1f6(%rip), %rdx    # 0xcee181
leaq 0x7bc98a(%rip), %rcx    # 0xcec91c
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x5b0(%rbp)
jmp 0x531a53
jmp 0x52ffab
jmp 0x52ffad
movq -0x5b8(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jg 0x52fff0
movq 0x8f7017(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x7bc736(%rip), %rsi    # 0xcec701
leaq 0x7be1af(%rip), %rdx    # 0xcee181
leaq 0x7bc953(%rip), %rcx    # 0xcec92c
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x5b0(%rbp)
jmp 0x531a53
jmp 0x52fff2
jmp 0x52fff4
cmpq $0x0, -0x5c0(%rbp)
jne 0x530034
movq 0x8f6fd3(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x7bbfdc(%rip), %rsi    # 0xcebfeb
leaq 0x7be16b(%rip), %rdx    # 0xcee181
leaq 0x7bc6e1(%rip), %rcx    # 0xcec6fe
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x5b0(%rbp)
jmp 0x531a53
jmp 0x530036
jmp 0x530038
cmpl $0x0, -0x5c4(%rbp)
jg 0x530077
movq 0x8f6f90(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x7bc6af(%rip), %rsi    # 0xcec701
leaq 0x7be128(%rip), %rdx    # 0xcee181
leaq 0x7bc6b5(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x5b0(%rbp)
jmp 0x531a53
jmp 0x530079
jmp 0x53007b
cmpl $0x0, -0x5c8(%rbp)
jge 0x5300ba
movq 0x8f6f4d(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x7bc686(%rip), %rsi    # 0xcec71b
leaq 0x7be0e5(%rip), %rdx    # 0xcee181
leaq 0x7bc68d(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x5b0(%rbp)
jmp 0x531a53
jmp 0x5300bc
jmp 0x5300be
cmpl $0x0, -0x5cc(%rbp)
jge 0x5300fd
movq 0x8f6f0a(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x7bc643(%rip), %rsi    # 0xcec71b
leaq 0x7be0a2(%rip), %rdx    # 0xcee181
leaq 0x7bc64f(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x5b0(%rbp)
jmp 0x531a53
jmp 0x5300ff
movl $0x0, -0x5d4(%rbp)
movl $0x0, -0x5d8(%rbp)
movl $0x0, -0x5dc(%rbp)
movq -0x5b8(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x5e0(%rbp)
movl -0x5e0(%rbp), %eax
decl %eax
movl %eax, -0x5e4(%rbp)
movl -0x5c4(%rbp), %eax
decl %eax
movl %eax, -0x5e8(%rbp)
movq -0x5b8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x5f0(%rbp)
movl $0x2, -0x5f4(%rbp)
movl -0x5e0(%rbp), %esi
movl -0x5f4(%rbp), %ecx
movl %ecx, %edx
movl %esi, %eax
leal -0x1(%rax,%rdx), %eax
cltd
idivl %ecx
movl %eax, -0x5f8(%rbp)
movl -0x5e0(%rbp), %eax
decl %eax
movl -0x5f8(%rbp), %ecx
cltd
idivl %ecx
movl %edx, -0x5fc(%rbp)
movl -0x5f4(%rbp), %ecx
movl -0x5e0(%rbp), %eax
decl %eax
movl -0x5f8(%rbp), %esi
cltd
idivl %esi
notl %eax
addl %ecx, %eax
movl %eax, -0x600(%rbp)
movq -0x5b8(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x608(%rbp)
movslq -0x5c8(%rbp), %rax
movq %rax, -0x548(%rbp)
movq -0x548(%rbp), %rax
movq %rax, -0x518(%rbp)
movq %rax, -0x520(%rbp)
movq -0x518(%rbp), %xmm1
movq -0x520(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x530(%rbp)
movaps -0x530(%rbp), %xmm0
movaps %xmm0, -0x640(%rbp)
movslq -0x5cc(%rbp), %rax
movq %rax, -0x550(%rbp)
movq -0x550(%rbp), %rax
movq %rax, -0x4f8(%rbp)
movq %rax, -0x500(%rbp)
movq -0x4f8(%rbp), %xmm1
movq -0x500(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x510(%rbp)
movdqa -0x510(%rbp), %xmm0
movdqa %xmm0, -0x650(%rbp)
xorl %eax, %eax
subl -0x5c8(%rbp), %eax
movq -0x5f0(%rbp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x530298
movslq -0x5c8(%rbp), %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
addq %rcx, %rax
movq %rax, -0x928(%rbp)
jmp 0x5302b7
movq -0x5f0(%rbp), %rax
movslq 0x20(%rax), %rcx
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
subq %rcx, %rax
movq %rax, -0x928(%rbp)
movq -0x928(%rbp), %rax
incq %rax
movq %rax, -0x658(%rbp)
movq -0x5f0(%rbp), %rax
movslq 0x1c(%rax), %rcx
movabsq $0x7ffffffffffffffe, %rax # imm = 0x7FFFFFFFFFFFFFFE
subq %rcx, %rax
movq %rax, -0x660(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x540(%rbp)
movaps -0x540(%rbp), %xmm0
movaps %xmm0, -0x670(%rbp)
movq -0x658(%rbp), %rax
movq %rax, -0x678(%rbp)
movq -0x658(%rbp), %rax
movq %rax, -0x558(%rbp)
movq -0x558(%rbp), %rax
movq %rax, -0x4d8(%rbp)
movq %rax, -0x4e0(%rbp)
movq -0x4d8(%rbp), %xmm1
movq -0x4e0(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x4f0(%rbp)
movaps -0x4f0(%rbp), %xmm0
movaps %xmm0, -0x690(%rbp)
movq -0x660(%rbp), %rax
movq %rax, -0x560(%rbp)
movq -0x560(%rbp), %rax
movq %rax, -0x4b8(%rbp)
movq %rax, -0x4c0(%rbp)
movq -0x4b8(%rbp), %xmm1
movq -0x4c0(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x4d0(%rbp)
movaps -0x4d0(%rbp), %xmm0
movaps %xmm0, -0x6a0(%rbp)
movaps -0x6a0(%rbp), %xmm0
movaps %xmm0, -0x6b0(%rbp)
movaps -0x690(%rbp), %xmm0
movaps %xmm0, -0x6c0(%rbp)
movaps -0x690(%rbp), %xmm0
movaps %xmm0, -0x6d0(%rbp)
movslq -0x600(%rbp), %rax
movq %rax, -0x568(%rbp)
movq -0x568(%rbp), %rax
movq %rax, -0x498(%rbp)
movq %rax, -0x4a0(%rbp)
movq -0x498(%rbp), %xmm1
movq -0x4a0(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x4b0(%rbp)
movaps -0x4b0(%rbp), %xmm0
movq $0x0, -0x378(%rbp)
movq $0x1, -0x380(%rbp)
movq -0x378(%rbp), %xmm2
movq -0x380(%rbp), %xmm1
punpcklqdq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0]
movaps %xmm1, -0x390(%rbp)
movaps -0x390(%rbp), %xmm1
callq 0x531a70
movaps %xmm0, -0x6e0(%rbp)
movaps -0x670(%rbp), %xmm0
movaps %xmm0, -0x6f0(%rbp)
movaps -0x6f0(%rbp), %xmm0
movq -0x658(%rbp), %rdi
xorl %esi, %esi
callq 0x531ae0
movaps %xmm0, -0x6f0(%rbp)
movaps -0x6f0(%rbp), %xmm1
movl -0x5f8(%rbp), %eax
negl %eax
movl -0x5cc(%rbp), %ecx
imull %ecx, %eax
cltq
movq %rax, -0x570(%rbp)
movq -0x570(%rbp), %rax
movq %rax, -0x478(%rbp)
movq %rax, -0x480(%rbp)
movq -0x478(%rbp), %xmm2
movq -0x480(%rbp), %xmm0
punpcklqdq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0]
movaps %xmm0, -0x490(%rbp)
movaps -0x490(%rbp), %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movaps %xmm1, -0x2c0(%rbp)
movaps %xmm0, -0x2d0(%rbp)
movaps -0x2c0(%rbp), %xmm0
movaps -0x2d0(%rbp), %xmm1
paddq %xmm1, %xmm0
movaps %xmm0, -0x700(%rbp)
movq $0x1, -0x578(%rbp)
movq -0x578(%rbp), %rax
movq %rax, -0x458(%rbp)
movq %rax, -0x460(%rbp)
movq -0x458(%rbp), %xmm1
movq -0x460(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x470(%rbp)
movaps -0x470(%rbp), %xmm0
movaps %xmm0, -0x720(%rbp)
movq $0x2, -0x580(%rbp)
movq -0x580(%rbp), %rax
movq %rax, -0x438(%rbp)
movq %rax, -0x440(%rbp)
movq -0x438(%rbp), %xmm1
movq -0x440(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x450(%rbp)
movaps -0x450(%rbp), %xmm0
movaps %xmm0, -0x730(%rbp)
movq $0x4, -0x588(%rbp)
movq -0x588(%rbp), %rax
movq %rax, -0x418(%rbp)
movq %rax, -0x420(%rbp)
movq -0x418(%rbp), %xmm1
movq -0x420(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x430(%rbp)
movaps -0x430(%rbp), %xmm0
movaps %xmm0, -0x740(%rbp)
movq $0x8, -0x590(%rbp)
movq -0x590(%rbp), %rax
movq %rax, -0x3f8(%rbp)
movq %rax, -0x400(%rbp)
movq -0x3f8(%rbp), %xmm1
movq -0x400(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x410(%rbp)
movaps -0x410(%rbp), %xmm0
movaps %xmm0, -0x750(%rbp)
movq $0x10, -0x598(%rbp)
movq -0x598(%rbp), %rax
movq %rax, -0x3d8(%rbp)
movq %rax, -0x3e0(%rbp)
movq -0x3d8(%rbp), %xmm1
movq -0x3e0(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x3f0(%rbp)
movaps -0x3f0(%rbp), %xmm0
movaps %xmm0, -0x760(%rbp)
movq $0x20, -0x5a0(%rbp)
movq -0x5a0(%rbp), %rax
movq %rax, -0x3b8(%rbp)
movq %rax, -0x3c0(%rbp)
movq -0x3b8(%rbp), %xmm1
movq -0x3c0(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x3d0(%rbp)
movaps -0x3d0(%rbp), %xmm0
movaps %xmm0, -0x770(%rbp)
movq $0x40, -0x5a8(%rbp)
movq -0x5a8(%rbp), %rax
movq %rax, -0x398(%rbp)
movq %rax, -0x3a0(%rbp)
movq -0x398(%rbp), %xmm1
movq -0x3a0(%rbp), %xmm0
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x3b0(%rbp)
movdqa -0x3b0(%rbp), %xmm0
movdqa %xmm0, -0x780(%rbp)
movl -0x5f8(%rbp), %edi
movl -0x5c4(%rbp), %esi
movl $0x10, %ecx
movq %rcx, %rdx
callq 0x1c3fa0
movq %rax, -0x708(%rbp)
cmpq $0x0, -0x708(%rbp)
jne 0x530742
movq $0x0, -0x5b0(%rbp)
jmp 0x531a53
movq -0x708(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x2880402, %ecx        # imm = 0x2880402
movl %ecx, 0xc(%rax)
movl -0x5d0(%rbp), %edx
xorl %ecx, %ecx
movl $0x8, %eax
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq -0x708(%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 -0x708(%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 -0x708(%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 -0x708(%rbp), %rax
orl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movslq -0x5f8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x610(%rbp)
movl -0x5c4(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c3690
movq %rax, -0x618(%rbp)
movslq -0x5f8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x620(%rbp)
movslq -0x5f8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x628(%rbp)
movslq -0x5f8(%rbp), %rsi
movl $0x10, %edi
callq 0x381e20
movq %rax, -0x630(%rbp)
cmpq $0x0, -0x610(%rbp)
jne 0x530863
movq $0x0, -0x5b0(%rbp)
jmp 0x531a53
cmpq $0x0, -0x618(%rbp)
jne 0x53087d
movq $0x0, -0x5b0(%rbp)
jmp 0x531a53
cmpq $0x0, -0x620(%rbp)
jne 0x530897
movq $0x0, -0x5b0(%rbp)
jmp 0x531a53
cmpq $0x0, -0x628(%rbp)
jne 0x5308b1
movq $0x0, -0x5b0(%rbp)
jmp 0x531a53
cmpq $0x0, -0x630(%rbp)
jne 0x5308cb
movq $0x0, -0x5b0(%rbp)
jmp 0x531a53
movl $0x0, -0x784(%rbp)
movl $0x0, -0x5d4(%rbp)
movl -0x5d4(%rbp), %eax
cmpl -0x5f8(%rbp), %eax
jge 0x530ac6
movl $0x0, -0x788(%rbp)
movl $0x0, -0x788(%rbp)
movl -0x788(%rbp), %eax
cmpl -0x5f4(%rbp), %eax
jge 0x530a25
cmpl $0x0, -0x5d0(%rbp)
je 0x53092a
xorl %eax, %eax
movl %eax, -0x92c(%rbp)
jmp 0x530956
xorl %eax, %eax
subl -0x5c8(%rbp), %eax
movl -0x5cc(%rbp), %ecx
movl -0x788(%rbp), %edx
imull -0x5f8(%rbp), %edx
addl -0x5d4(%rbp), %edx
imull %edx, %ecx
subl %ecx, %eax
movl %eax, -0x92c(%rbp)
movl -0x92c(%rbp), %eax
cltq
movq %rax, -0x7b8(%rbp)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
cmpq %rax, -0x7b8(%rbp)
jge 0x53098b
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, -0x938(%rbp)
jmp 0x530999
movq -0x7b8(%rbp), %rax
movq %rax, -0x938(%rbp)
movq -0x938(%rbp), %rcx
movslq -0x788(%rbp), %rax
movq %rcx, -0x7a0(%rbp,%rax,8)
movq -0x7b8(%rbp), %rax
movslq -0x5c8(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x7b8(%rbp)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
cmpq %rax, -0x7b8(%rbp)
jge 0x5309ed
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, -0x940(%rbp)
jmp 0x5309fb
movq -0x7b8(%rbp), %rax
movq %rax, -0x940(%rbp)
movq -0x940(%rbp), %rcx
movslq -0x788(%rbp), %rax
movq %rcx, -0x7b0(%rbp,%rax,8)
movl -0x788(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x788(%rbp)
jmp 0x530905
movq -0x628(%rbp), %rax
movslq -0x784(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x7a0(%rbp), %xmm0
movq %rax, -0x1d8(%rbp)
movdqa %xmm0, -0x1f0(%rbp)
movdqa -0x1f0(%rbp), %xmm0
movq -0x1d8(%rbp), %rax
movdqa %xmm0, (%rax)
movq -0x610(%rbp), %rax
movslq -0x784(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x7b0(%rbp), %xmm0
movq %rax, -0x1f8(%rbp)
movdqa %xmm0, -0x210(%rbp)
movdqa -0x210(%rbp), %xmm0
movq -0x1f8(%rbp), %rax
movdqa %xmm0, (%rax)
movl -0x784(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x784(%rbp)
movl -0x5d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5d4(%rbp)
jmp 0x5308df
movq -0x618(%rbp), %rax
movq $0x0, (%rax)
movl $0x1, -0x5d4(%rbp)
movl -0x5d4(%rbp), %eax
cmpl -0x5c4(%rbp), %eax
jg 0x530b92
cmpl $0x0, 0x18(%rbp)
je 0x530b00
xorl %eax, %eax
movl %eax, -0x944(%rbp)
jmp 0x530b22
xorl %eax, %eax
subl -0x5c8(%rbp), %eax
movl -0x5cc(%rbp), %ecx
movl -0x5d4(%rbp), %edx
subl $0x1, %edx
imull %edx, %ecx
subl %ecx, %eax
movl %eax, -0x944(%rbp)
movl -0x944(%rbp), %eax
cltq
movq %rax, -0x7c0(%rbp)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
cmpq %rax, -0x7c0(%rbp)
jge 0x530b57
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, -0x950(%rbp)
jmp 0x530b65
movq -0x7c0(%rbp), %rax
movq %rax, -0x950(%rbp)
movq -0x950(%rbp), %rdx
movq -0x618(%rbp), %rax
movslq -0x5d4(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x5d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5d4(%rbp)
jmp 0x530ade
movdqa -0x670(%rbp), %xmm1
movdqa -0x640(%rbp), %xmm0
movdqa %xmm1, -0x100(%rbp)
movdqa %xmm0, -0x110(%rbp)
movdqa -0x100(%rbp), %xmm0
psubq -0x110(%rbp), %xmm0
movdqa %xmm0, -0x7d0(%rbp)
movl -0x5f8(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x5d4(%rbp)
cmpl $0x0, -0x5d4(%rbp)
jl 0x530c8e
movq -0x630(%rbp), %rax
movslq -0x5d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x7d0(%rbp), %xmm0
movq %rax, -0x218(%rbp)
movdqa %xmm0, -0x230(%rbp)
movdqa -0x230(%rbp), %xmm0
movq -0x218(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x7d0(%rbp), %xmm1
movdqa -0x650(%rbp), %xmm0
movdqa %xmm1, -0x120(%rbp)
movdqa %xmm0, -0x130(%rbp)
movdqa -0x120(%rbp), %xmm0
psubq -0x130(%rbp), %xmm0
movdqa %xmm0, -0x7d0(%rbp)
movdqa -0x6b0(%rbp), %xmm0
movdqa -0x7d0(%rbp), %xmm1
callq 0x531b10
movdqa %xmm0, -0x6b0(%rbp)
movl -0x5d4(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x5d4(%rbp)
jmp 0x530bd9
movl $0x0, -0x5d8(%rbp)
movl -0x5d8(%rbp), %eax
cmpl -0x5c4(%rbp), %eax
jge 0x5316df
movq -0x628(%rbp), %rax
movl -0x5f8(%rbp), %ecx
decl %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x860(%rbp)
movaps -0x860(%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, -0x860(%rbp)
movdqa -0x860(%rbp), %xmm0
movq -0x618(%rbp), %rax
movslq -0x5d8(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
xorl %esi, %esi
callq 0x531ae0
movdqa %xmm0, -0x860(%rbp)
movq -0x608(%rbp), %rax
movq -0x5f0(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x5c0(%rbp), %rdx
movslq -0x5d8(%rbp), %rsi
movzbl (%rdx,%rsi), %edx
movl (%rcx,%rdx,4), %ecx
imull -0x5f8(%rbp), %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x868(%rbp)
movdqa -0x690(%rbp), %xmm1
movq -0x630(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm1, -0x140(%rbp)
movdqa %xmm0, -0x150(%rbp)
movdqa -0x140(%rbp), %xmm0
psubq -0x150(%rbp), %xmm0
movdqa %xmm0, -0x810(%rbp)
movdqa -0x690(%rbp), %xmm0
movdqa %xmm0, -0x820(%rbp)
movl $0x0, -0x5d4(%rbp)
movl -0x5d4(%rbp), %eax
cmpl -0x5f8(%rbp), %eax
jge 0x53111e
movq -0x628(%rbp), %rax
movslq -0x5d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x850(%rbp)
movq -0x610(%rbp), %rax
movslq -0x5d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x7e0(%rbp)
movq -0x868(%rbp), %rax
movslq -0x5d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x880(%rbp)
movq -0x630(%rbp), %rax
movslq -0x5d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x8b0(%rbp)
movdqa -0x850(%rbp), %xmm1
movdqa -0x640(%rbp), %xmm0
movdqa %xmm1, -0x160(%rbp)
movdqa %xmm0, -0x170(%rbp)
movdqa -0x160(%rbp), %xmm0
psubq -0x170(%rbp), %xmm0
movdqa %xmm0, -0x800(%rbp)
movdqa -0x7e0(%rbp), %xmm1
movdqa -0x650(%rbp), %xmm0
movdqa %xmm1, -0x180(%rbp)
movdqa %xmm0, -0x190(%rbp)
movdqa -0x180(%rbp), %xmm0
psubq -0x190(%rbp), %xmm0
movdqa %xmm0, -0x7f0(%rbp)
movdqa -0x800(%rbp), %xmm0
movdqa -0x7f0(%rbp), %xmm1
callq 0x531b90
movdqa %xmm0, -0x890(%rbp)
movdqa -0x760(%rbp), %xmm0
movdqa -0x750(%rbp), %xmm1
movdqa -0x890(%rbp), %xmm2
callq 0x531c00
movdqa %xmm0, -0x8d0(%rbp)
movq -0x708(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movdqa -0x8d0(%rbp), %xmm0
movl -0x5d4(%rbp), %esi
movl -0x5f8(%rbp), %edx
movl -0x5d8(%rbp), %ecx
callq 0x531c90
movdqa -0x800(%rbp), %xmm0
movdqa -0x7f0(%rbp), %xmm1
callq 0x531cf0
movdqa %xmm0, -0x7e0(%rbp)
movdqa -0x6b0(%rbp), %xmm0
movdqa -0x7e0(%rbp), %xmm1
callq 0x531b10
movdqa %xmm0, -0x6b0(%rbp)
movdqa -0x810(%rbp), %xmm1
movdqa -0x8b0(%rbp), %xmm0
movdqa %xmm1, -0x2e0(%rbp)
movdqa %xmm0, -0x2f0(%rbp)
movdqa -0x2e0(%rbp), %xmm0
paddq -0x2f0(%rbp), %xmm0
movdqa %xmm0, -0x8b0(%rbp)
movdqa -0x820(%rbp), %xmm0
movdqa -0x8b0(%rbp), %xmm1
callq 0x531cf0
movdqa %xmm0, -0x820(%rbp)
movdqa -0x860(%rbp), %xmm1
movdqa -0x880(%rbp), %xmm0
movdqa %xmm1, -0x300(%rbp)
movdqa %xmm0, -0x310(%rbp)
movdqa -0x300(%rbp), %xmm0
paddq -0x310(%rbp), %xmm0
movdqa %xmm0, -0x860(%rbp)
movdqa -0x7e0(%rbp), %xmm0
movdqa -0x860(%rbp), %xmm1
callq 0x531cf0
movdqa %xmm0, -0x810(%rbp)
movq -0x610(%rbp), %rax
movslq -0x5d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x7e0(%rbp), %xmm0
movq %rax, -0x238(%rbp)
movdqa %xmm0, -0x250(%rbp)
movdqa -0x250(%rbp), %xmm0
movq -0x238(%rbp), %rax
movdqa %xmm0, (%rax)
movq -0x620(%rbp), %rax
movslq -0x5d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x810(%rbp), %xmm0
movq %rax, -0x258(%rbp)
movdqa %xmm0, -0x270(%rbp)
movdqa -0x270(%rbp), %xmm0
movq -0x258(%rbp), %rax
movdqa %xmm0, (%rax)
movq -0x628(%rbp), %rax
movslq -0x5d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x860(%rbp), %xmm0
movq %rax, -0x278(%rbp)
movdqa %xmm0, -0x290(%rbp)
movdqa -0x290(%rbp), %xmm0
movq -0x278(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x850(%rbp), %xmm0
movdqa %xmm0, -0x860(%rbp)
movl -0x5d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5d4(%rbp)
jmp 0x530dac
movaps -0x810(%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, -0x810(%rbp)
movdqa -0x810(%rbp), %xmm0
movq -0x618(%rbp), %rax
movl -0x5d8(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
xorl %esi, %esi
callq 0x531ae0
movdqa %xmm0, -0x810(%rbp)
movq -0x630(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x8b0(%rbp)
movdqa -0x810(%rbp), %xmm1
movdqa -0x8b0(%rbp), %xmm0
movdqa %xmm1, -0x320(%rbp)
movdqa %xmm0, -0x330(%rbp)
movdqa -0x320(%rbp), %xmm0
paddq -0x330(%rbp), %xmm0
movdqa %xmm0, -0x8b0(%rbp)
movdqa -0x820(%rbp), %xmm0
movdqa -0x8b0(%rbp), %xmm1
callq 0x531cf0
movdqa %xmm0, -0x820(%rbp)
movl $0x0, -0x5d4(%rbp)
movl -0x5d4(%rbp), %eax
movl -0x5f4(%rbp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jge 0x531270
movaps -0x820(%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, -0x8f0(%rbp)
movdqa -0x8f0(%rbp), %xmm1
movdqa -0x700(%rbp), %xmm0
movdqa %xmm1, -0x340(%rbp)
movdqa %xmm0, -0x350(%rbp)
movdqa -0x340(%rbp), %xmm0
paddq -0x350(%rbp), %xmm0
movdqa %xmm0, -0x8f0(%rbp)
movdqa -0x820(%rbp), %xmm0
movdqa -0x8f0(%rbp), %xmm1
callq 0x531cf0
movdqa %xmm0, -0x820(%rbp)
movl -0x5d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5d4(%rbp)
jmp 0x5311e0
movaps -0x820(%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, -0x820(%rbp)
movdqa -0x820(%rbp), %xmm1
movdqa -0x6f0(%rbp), %xmm0
movdqa %xmm1, -0x360(%rbp)
movdqa %xmm0, -0x370(%rbp)
movdqa -0x360(%rbp), %xmm0
paddq -0x370(%rbp), %xmm0
movdqa %xmm0, -0x820(%rbp)
movdqa -0x820(%rbp), %xmm0
movdqa -0x810(%rbp), %xmm1
callq 0x531cf0
movdqa %xmm0, -0x850(%rbp)
movl $0x0, -0x5d4(%rbp)
movl -0x5d4(%rbp), %eax
cmpl -0x5f8(%rbp), %eax
jge 0x53160f
movq -0x708(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movl -0x5d4(%rbp), %esi
movl -0x5f8(%rbp), %edx
movl -0x5d8(%rbp), %ecx
callq 0x531d70
movdqa %xmm0, -0x8d0(%rbp)
movq -0x628(%rbp), %rax
movslq -0x5d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x860(%rbp)
movq -0x620(%rbp), %rax
movslq -0x5d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x810(%rbp)
movdqa -0x850(%rbp), %xmm1
movdqa -0x640(%rbp), %xmm0
movdqa %xmm1, -0x1a0(%rbp)
movdqa %xmm0, -0x1b0(%rbp)
movdqa -0x1a0(%rbp), %xmm0
psubq -0x1b0(%rbp), %xmm0
movdqa %xmm0, -0x840(%rbp)
movdqa -0x820(%rbp), %xmm1
movdqa -0x650(%rbp), %xmm0
movdqa %xmm1, -0x1c0(%rbp)
movdqa %xmm0, -0x1d0(%rbp)
movdqa -0x1c0(%rbp), %xmm0
psubq -0x1d0(%rbp), %xmm0
movdqa %xmm0, -0x830(%rbp)
movdqa -0x840(%rbp), %xmm0
movdqa -0x830(%rbp), %xmm1
callq 0x531cf0
movdqa %xmm0, -0x820(%rbp)
movdqa -0x840(%rbp), %xmm0
movdqa -0x830(%rbp), %xmm1
callq 0x531b90
movdqa %xmm0, -0x890(%rbp)
movdqa -0x780(%rbp), %xmm0
movdqa -0x770(%rbp), %xmm1
movdqa -0x890(%rbp), %xmm2
callq 0x531c00
movdqa %xmm0, -0x8e0(%rbp)
movdqa -0x810(%rbp), %xmm0
movdqa -0x820(%rbp), %xmm1
callq 0x531cf0
movdqa %xmm0, -0x850(%rbp)
movdqa -0x850(%rbp), %xmm0
movdqa -0x860(%rbp), %xmm1
callq 0x531a70
movdqa %xmm0, -0x890(%rbp)
movdqa -0x850(%rbp), %xmm0
movdqa -0x820(%rbp), %xmm1
callq 0x531a70
movdqa %xmm0, -0x8a0(%rbp)
movdqa -0x720(%rbp), %xmm0
movdqa -0x730(%rbp), %xmm1
movdqa -0x8a0(%rbp), %xmm2
callq 0x531c00
movdqa -0x740(%rbp), %xmm1
movdqa -0x890(%rbp), %xmm2
callq 0x531c00
movdqa %xmm0, -0x8c0(%rbp)
movdqa -0x8c0(%rbp), %xmm1
movdqa -0x8d0(%rbp), %xmm0
movdqa %xmm1, -0x50(%rbp)
movdqa %xmm0, -0x60(%rbp)
movdqa -0x50(%rbp), %xmm0
por -0x60(%rbp), %xmm0
movdqa %xmm0, -0x8c0(%rbp)
movdqa -0x8c0(%rbp), %xmm1
movdqa -0x8e0(%rbp), %xmm0
movdqa %xmm1, -0x70(%rbp)
movdqa %xmm0, -0x80(%rbp)
movdqa -0x70(%rbp), %xmm0
por -0x80(%rbp), %xmm0
movdqa %xmm0, -0x8c0(%rbp)
movq -0x708(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movdqa -0x8c0(%rbp), %xmm0
movl -0x5d4(%rbp), %esi
movl -0x5f8(%rbp), %edx
movl -0x5d8(%rbp), %ecx
callq 0x531c90
movq -0x628(%rbp), %rax
movslq -0x5d4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x850(%rbp), %xmm0
movq %rax, -0x298(%rbp)
movdqa %xmm0, -0x2b0(%rbp)
movdqa -0x2b0(%rbp), %xmm0
movq -0x298(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x6b0(%rbp), %xmm0
movdqa -0x850(%rbp), %xmm1
callq 0x531b10
movdqa %xmm0, -0x6b0(%rbp)
movdqa -0x6b0(%rbp), %xmm0
movdqa -0x820(%rbp), %xmm1
callq 0x531b10
movdqa %xmm0, -0x6b0(%rbp)
movdqa -0x6c0(%rbp), %xmm0
movdqa -0x850(%rbp), %xmm1
callq 0x531cf0
movdqa %xmm0, -0x6c0(%rbp)
movl -0x5d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5d4(%rbp)
jmp 0x5312e3
movq -0x628(%rbp), %rax
movslq -0x5fc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x850(%rbp)
movdqa -0x6e0(%rbp), %xmm0
movaps %xmm0, -0x960(%rbp)
movdqa -0x850(%rbp), %xmm0
movdqa -0x6d0(%rbp), %xmm1
callq 0x531b90
movaps -0x960(%rbp), %xmm1
movdqa %xmm1, -0x30(%rbp)
movdqa %xmm0, -0x40(%rbp)
movdqa -0x30(%rbp), %xmm0
pand -0x40(%rbp), %xmm0
movdqa %xmm0, -0x900(%rbp)
movdqa -0x850(%rbp), %xmm0
movdqa -0x6d0(%rbp), %xmm1
callq 0x531cf0
movdqa %xmm0, -0x6d0(%rbp)
movdqa -0x900(%rbp), %xmm0
movdqa %xmm0, -0x10(%rbp)
movdqa -0x10(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x5316c9
movl -0x5d8(%rbp), %eax
movl %eax, -0x5e8(%rbp)
jmp 0x5316cb
movl -0x5d8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5d8(%rbp)
jmp 0x530c98
cmpl $0x0, 0x20(%rbp)
je 0x53174a
movl $0x0, -0x5dc(%rbp)
movl -0x5dc(%rbp), %eax
cmpl -0x600(%rbp), %eax
jge 0x531722
movaps -0x6d0(%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, -0x6d0(%rbp)
movl -0x5dc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5dc(%rbp)
jmp 0x5316ef
movdqa -0x6d0(%rbp), %xmm0
movl $0x1, %edi
callq 0x531dc0
movq %rax, -0x678(%rbp)
movl -0x5e0(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x5e4(%rbp)
cmpl $0x0, 0x10(%rbp)
je 0x531886
movq -0x628(%rbp), %rax
movq %rax, -0x908(%rbp)
movl -0x5f8(%rbp), %eax
imull -0x5f4(%rbp), %eax
movl %eax, -0x90c(%rbp)
movl $0x0, -0x5d4(%rbp)
movl -0x5d4(%rbp), %eax
cmpl -0x90c(%rbp), %eax
jge 0x531884
movl -0x5d4(%rbp), %eax
cltd
idivl -0x5f4(%rbp)
movl %eax, -0x964(%rbp)
movl -0x5d4(%rbp), %eax
cltd
idivl -0x5f4(%rbp)
movl -0x964(%rbp), %eax
imull -0x5f8(%rbp), %edx
addl %edx, %eax
movl %eax, -0x910(%rbp)
movl -0x910(%rbp), %eax
cmpl -0x5e0(%rbp), %eax
jl 0x5317d9
jmp 0x53185e
movq -0x908(%rbp), %rax
movq (%rax), %rax
cmpq -0x678(%rbp), %rax
jle 0x53181a
movq -0x908(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x678(%rbp)
movl -0x910(%rbp), %eax
movl %eax, -0x5e4(%rbp)
movl -0x5c4(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x5e8(%rbp)
jmp 0x53185c
movq -0x908(%rbp), %rax
movq (%rax), %rax
cmpq -0x678(%rbp), %rax
jne 0x53185a
movl -0x5e8(%rbp), %eax
movl -0x5c4(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x53185a
movl -0x910(%rbp), %eax
cmpl -0x5e4(%rbp), %eax
jge 0x53185a
movl -0x910(%rbp), %eax
movl %eax, -0x5e4(%rbp)
jmp 0x53185c
jmp 0x53185e
movl -0x5d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5d4(%rbp)
movq -0x908(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x908(%rbp)
jmp 0x53177f
jmp 0x531886
cmpl $0x0, 0x10(%rbp)
jne 0x53193d
cmpl $0x0, 0x20(%rbp)
jne 0x53193d
movq -0x628(%rbp), %rax
movslq -0x5fc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x920(%rbp)
movl $0x0, -0x5dc(%rbp)
movl -0x5dc(%rbp), %eax
cmpl -0x600(%rbp), %eax
jge 0x531906
movaps -0x920(%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, -0x920(%rbp)
movl -0x5dc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5dc(%rbp)
jmp 0x5318d3
movdqa -0x920(%rbp), %xmm0
movl $0x1, %edi
callq 0x531dc0
movq %rax, -0x678(%rbp)
movl -0x5c4(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x5e8(%rbp)
movl -0x5e0(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x5e4(%rbp)
movdqa -0x6b0(%rbp), %xmm0
movdqa -0x690(%rbp), %xmm1
callq 0x531df0
movaps %xmm0, -0x980(%rbp)
movdqa -0x6c0(%rbp), %xmm0
movdqa -0x6a0(%rbp), %xmm1
callq 0x531b90
movaps -0x980(%rbp), %xmm1
movdqa %xmm1, -0x90(%rbp)
movdqa %xmm0, -0xa0(%rbp)
movdqa -0x90(%rbp), %xmm0
por -0xa0(%rbp), %xmm0
movdqa %xmm0, -0x20(%rbp)
movdqa -0x20(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x5319d7
movq -0x708(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
movq $0x0, -0x678(%rbp)
movl $0x0, -0x5e4(%rbp)
movl $0x0, -0x5e8(%rbp)
movq -0x678(%rbp), %rax
movl %eax, %ecx
movq -0x708(%rbp), %rax
movl %ecx, (%rax)
movl -0x5e4(%rbp), %ecx
movq -0x708(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x5e8(%rbp), %ecx
movq -0x708(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x630(%rbp), %rdi
callq 0x1c3590
movq -0x628(%rbp), %rdi
callq 0x1c3590
movq -0x620(%rbp), %rdi
callq 0x1c3590
movq -0x618(%rbp), %rdi
callq 0x1c3590
movq -0x610(%rbp), %rdi
callq 0x1c3590
movq -0x708(%rbp), %rax
movq %rax, -0x5b0(%rbp)
movq -0x5b0(%rbp), %rax
addq $0x980, %rsp            # imm = 0x980
popq %rbp
retq
nopw %cs:(%rax,%rax)