// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/nw_diag_sse2_128_32.c
// Function: parasail_nw_table_diag_sse2_128_32
parasail_result_t* FNAME(
        const char * const restrict _s1, const int _s1Len,
        const char * const restrict _s2, const int s2Len,
        const int open, const int gap, const parasail_matrix_t *matrix)
{
    /* declare local variables */
    int32_t N = 0;
    int32_t PAD = 0;
    int32_t PAD2 = 0;
    int32_t s1Len = 0;
    int32_t s1Len_PAD = 0;
    int32_t s2Len_PAD = 0;
    int32_t * restrict s1 = NULL;
    int32_t * restrict s2B = NULL;
    int32_t * restrict _H_pr = NULL;
    int32_t * restrict _F_pr = NULL;
    int32_t * restrict s2 = NULL;
    int32_t * restrict H_pr = NULL;
    int32_t * restrict F_pr = NULL;
    parasail_result_t *result = NULL;
    int32_t i = 0;
    int32_t j = 0;
    int32_t end_query = 0;
    int32_t end_ref = 0;
    int32_t NEG_LIMIT = 0;
    int32_t POS_LIMIT = 0;
    int32_t score = 0;
    __m128i vNegLimit;
    __m128i vPosLimit;
    __m128i vSaturationCheckMin;
    __m128i vSaturationCheckMax;
    __m128i vNegInf;
    __m128i vOpen;
    __m128i vGap;
    __m128i vOne;
    __m128i vN;
    __m128i vGapN;
    __m128i vNegOne;
    __m128i vI;
    __m128i vJreset;
    __m128i vMax;
    __m128i vILimit;
    __m128i vILimit1;
    __m128i vJLimit;
    __m128i vJLimit1;
    __m128i vIBoundary;

    /* validate inputs */
    PARASAIL_CHECK_NULL(_s2);
    PARASAIL_CHECK_GT0(s2Len);
    PARASAIL_CHECK_GE0(open);
    PARASAIL_CHECK_GE0(gap);
    PARASAIL_CHECK_NULL(matrix);
    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        PARASAIL_CHECK_NULL(_s1);
        PARASAIL_CHECK_GT0(_s1Len);
    }

    /* initialize stack variables */
    N = 4; /* number of values in vector */
    PAD = N-1;
    PAD2 = PAD*2;
    s1Len = matrix->type == PARASAIL_MATRIX_TYPE_SQUARE ? _s1Len : matrix->length;
    s1Len_PAD = s1Len+PAD;
    s2Len_PAD = s2Len+PAD;
    i = 0;
    j = 0;
    end_query = s1Len-1;
    end_ref = s2Len-1;
    NEG_LIMIT = (-open < matrix->min ? INT32_MIN + open : INT32_MIN - matrix->min) + 1;
    POS_LIMIT = INT32_MAX - matrix->max - 1;
    score = NEG_LIMIT;
    vNegLimit = _mm_set1_epi32(NEG_LIMIT);
    vPosLimit = _mm_set1_epi32(POS_LIMIT);
    vSaturationCheckMin = vPosLimit;
    vSaturationCheckMax = vNegLimit;
    vNegInf = _mm_set1_epi32(NEG_LIMIT);
    vOpen = _mm_set1_epi32(open);
    vGap  = _mm_set1_epi32(gap);
    vOne = _mm_set1_epi32(1);
    vN = _mm_set1_epi32(N);
    vGapN = _mm_set1_epi32(gap*N);
    vNegOne = _mm_set1_epi32(-1);
    vI = _mm_set_epi32(0,1,2,3);
    vJreset = _mm_set_epi32(0,-1,-2,-3);
    vMax = vNegInf;
    vILimit = _mm_set1_epi32(s1Len);
    vILimit1 = _mm_sub_epi32(vILimit, vOne);
    vJLimit = _mm_set1_epi32(s2Len);
    vJLimit1 = _mm_sub_epi32(vJLimit, vOne);
    vIBoundary = _mm_set_epi32(
            -open-0*gap,
            -open-1*gap,
            -open-2*gap,
            -open-3*gap);

    /* initialize result */
#ifdef PARASAIL_TABLE
    result = parasail_result_new_table1(s1Len, s2Len);
#else
#ifdef PARASAIL_ROWCOL
    result = parasail_result_new_rowcol1(s1Len, s2Len);
#else
    result = parasail_result_new();
#endif
#endif
    if (!result) return NULL;

    /* set known flags */
    result->flag |= PARASAIL_FLAG_NW | PARASAIL_FLAG_DIAG
        | PARASAIL_FLAG_BITS_32 | PARASAIL_FLAG_LANES_4;
#ifdef PARASAIL_TABLE
    result->flag |= PARASAIL_FLAG_TABLE;
#endif
#ifdef PARASAIL_ROWCOL
    result->flag |= PARASAIL_FLAG_ROWCOL;
#endif

    /* initialize heap variables */
    s2B= parasail_memalign_int32_t(16, s2Len+PAD2);
    _H_pr = parasail_memalign_int32_t(16, s2Len+PAD2);
    _F_pr = parasail_memalign_int32_t(16, s2Len+PAD2);
    s2 = s2B+PAD; /* will allow later for negative indices */
    H_pr = _H_pr+PAD;
    F_pr = _F_pr+PAD;

    /* validate heap variables */
    if (!s2B) return NULL;
    if (!_H_pr) return NULL;
    if (!_F_pr) return NULL;

    /* convert _s1 from char to int in range 0-23 */
    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        s1 = parasail_memalign_int32_t(16, s1Len+PAD);
        if (!s1) return NULL;
        for (i=0; i<s1Len; ++i) {
            s1[i] = matrix->mapper[(unsigned char)_s1[i]];
        }
        /* pad back of s1 with dummy values */
        for (i=s1Len; i<s1Len_PAD; ++i) {
            s1[i] = 0; /* point to first matrix row because we don't care */
        }
    }

    /* convert _s2 from char to int in range 0-23 */
    for (j=0; j<s2Len; ++j) {
        s2[j] = matrix->mapper[(unsigned char)_s2[j]];
    }
    /* pad front of s2 with dummy values */
    for (j=-PAD; j<0; ++j) {
        s2[j] = 0; /* point to first matrix row because we don't care */
    }
    /* pad back of s2 with dummy values */
    for (j=s2Len; j<s2Len_PAD; ++j) {
        s2[j] = 0; /* point to first matrix row because we don't care */
    }

    /* set initial values for stored row */
    for (j=0; j<s2Len; ++j) {
        H_pr[j] = -open - j*gap;
        F_pr[j] = NEG_LIMIT;
    }
    /* pad front of stored row values */
    for (j=-PAD; j<0; ++j) {
        H_pr[j] = NEG_LIMIT;
        F_pr[j] = NEG_LIMIT;
    }
    /* pad back of stored row values */
    for (j=s2Len; j<s2Len+PAD; ++j) {
        H_pr[j] = NEG_LIMIT;
        F_pr[j] = NEG_LIMIT;
    }
    H_pr[-1] = 0; /* upper left corner */

    /* iterate over query sequence */
    for (i=0; i<s1Len; i+=N) {
        __m128i vNH = vNegInf;
        __m128i vWH = vNegInf;
        __m128i vE = vNegInf;
        __m128i vF = vNegInf;
        __m128i vJ = vJreset;
        const int * const restrict matrow0 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+0] : ((i+0 >= s1Len) ? s1Len-1 : i+0))];
        const int * const restrict matrow1 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+1] : ((i+1 >= s1Len) ? s1Len-1 : i+1))];
        const int * const restrict matrow2 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+2] : ((i+2 >= s1Len) ? s1Len-1 : i+2))];
        const int * const restrict matrow3 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+3] : ((i+3 >= s1Len) ? s1Len-1 : i+3))];
        vNH = _mm_srli_si128(vNH, 4);
        vNH = _mm_insert_epi32_rpl(vNH, H_pr[-1], 3);
        vWH = _mm_srli_si128(vWH, 4);
        vWH = _mm_insert_epi32_rpl(vWH, -open - i*gap, 3);
        H_pr[-1] = -open - (i+N)*gap;
        /* iterate over database sequence */
        for (j=0; j<s2Len+PAD; ++j) {
            __m128i vMat;
            __m128i vNWH = vNH;
            vNH = _mm_srli_si128(vWH, 4);
            vNH = _mm_insert_epi32_rpl(vNH, H_pr[j], 3);
            vF = _mm_srli_si128(vF, 4);
            vF = _mm_insert_epi32_rpl(vF, F_pr[j], 3);
            vF = _mm_max_epi32_rpl(
                    _mm_sub_epi32(vNH, vOpen),
                    _mm_sub_epi32(vF, vGap));
            vE = _mm_max_epi32_rpl(
                    _mm_sub_epi32(vWH, vOpen),
                    _mm_sub_epi32(vE, vGap));
            vMat = _mm_set_epi32(
                    matrow0[s2[j-0]],
                    matrow1[s2[j-1]],
                    matrow2[s2[j-2]],
                    matrow3[s2[j-3]]
                    );
            vNWH = _mm_add_epi32(vNWH, vMat);
            vWH = _mm_max_epi32_rpl(vNWH, vE);
            vWH = _mm_max_epi32_rpl(vWH, vF);
            /* as minor diagonal vector passes across the j=-1 boundary,
             * assign the appropriate boundary conditions */
            {
                __m128i cond = _mm_cmpeq_epi32(vJ,vNegOne);
                vWH = _mm_blendv_epi8_rpl(vWH, vIBoundary, cond);
                vF = _mm_blendv_epi8_rpl(vF, vNegInf, cond);
                vE = _mm_blendv_epi8_rpl(vE, vNegInf, cond);
            }
            /* cannot start checking sat until after J clears boundary */
            if (j > PAD) {
                vSaturationCheckMin = _mm_min_epi32_rpl(vSaturationCheckMin, vWH);
                vSaturationCheckMax = _mm_max_epi32_rpl(vSaturationCheckMax, vWH);
            }
#ifdef PARASAIL_TABLE
            arr_store_si128(result->tables->score_table, vWH, i, s1Len, j, s2Len);
#endif
#ifdef PARASAIL_ROWCOL
            arr_store_rowcol(result->rowcols->score_row, result->rowcols->score_col, vWH, i, s1Len, j, s2Len);
#endif
            H_pr[j-3] = (int32_t)_mm_extract_epi32_rpl(vWH,0);
            F_pr[j-3] = (int32_t)_mm_extract_epi32_rpl(vF,0);
            /* as minor diagonal vector passes across table, extract
               last table value at the i,j bound */
            {
                __m128i cond_valid_I = _mm_cmpeq_epi32(vI, vILimit1);
                __m128i cond_valid_J = _mm_cmpeq_epi32(vJ, vJLimit1);
                __m128i cond_all = _mm_and_si128(cond_valid_I, cond_valid_J);
                vMax = _mm_blendv_epi8_rpl(vMax, vWH, cond_all);
            }
            vJ = _mm_add_epi32(vJ, vOne);
        }
        vI = _mm_add_epi32(vI, vN);
        vIBoundary = _mm_sub_epi32(vIBoundary, vGapN);
    }

    /* max in vMax */
    for (i=0; i<N; ++i) {
        int32_t value;
        value = (int32_t) _mm_extract_epi32_rpl(vMax, 3);
        if (value > score) {
            score = value;
        }
        vMax = _mm_slli_si128(vMax, 4);
    }

    if (_mm_movemask_epi8(_mm_or_si128(
            _mm_cmplt_epi32(vSaturationCheckMin, vNegLimit),
            _mm_cmpgt_epi32(vSaturationCheckMax, vPosLimit)))) {
        result->flag |= PARASAIL_FLAG_SATURATED;
        score = 0;
        end_query = 0;
        end_ref = 0;
    }

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

    parasail_free(_F_pr);
    parasail_free(_H_pr);
    parasail_free(s2B);
    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        parasail_free(s1);
    }

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x780, %rsp            # imm = 0x780
movq 0x10(%rbp), %rax
movq %rdi, -0x470(%rbp)
movl %esi, -0x474(%rbp)
movq %rdx, -0x480(%rbp)
movl %ecx, -0x484(%rbp)
movl %r8d, -0x488(%rbp)
movl %r9d, -0x48c(%rbp)
movl $0x0, -0x490(%rbp)
movl $0x0, -0x494(%rbp)
movl $0x0, -0x498(%rbp)
movl $0x0, -0x49c(%rbp)
movl $0x0, -0x4a0(%rbp)
movl $0x0, -0x4a4(%rbp)
movq $0x0, -0x4b0(%rbp)
movq $0x0, -0x4b8(%rbp)
movq $0x0, -0x4c0(%rbp)
movq $0x0, -0x4c8(%rbp)
movq $0x0, -0x4d0(%rbp)
movq $0x0, -0x4d8(%rbp)
movq $0x0, -0x4e0(%rbp)
movq $0x0, -0x4e8(%rbp)
movl $0x0, -0x4ec(%rbp)
movl $0x0, -0x4f0(%rbp)
movl $0x0, -0x4f4(%rbp)
movl $0x0, -0x4f8(%rbp)
movl $0x0, -0x4fc(%rbp)
movl $0x0, -0x500(%rbp)
movl $0x0, -0x504(%rbp)
cmpq $0x0, -0x480(%rbp)
jne 0x3a2111
movq 0xa84ef6(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x949eff(%rip), %rsi    # 0xcebfeb
leaq 0x8f94b9(%rip), %rdx    # 0xc9b5ac
leaq 0x94a603(%rip), %rcx    # 0xcec6fd
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x468(%rbp)
jmp 0x3a3985
jmp 0x3a2113
jmp 0x3a2115
cmpl $0x0, -0x484(%rbp)
jg 0x3a2154
movq 0xa84eb3(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x94a5d2(%rip), %rsi    # 0xcec701
leaq 0x8f9476(%rip), %rdx    # 0xc9b5ac
leaq 0x94a5d8(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x468(%rbp)
jmp 0x3a3985
jmp 0x3a2156
jmp 0x3a2158
cmpl $0x0, -0x488(%rbp)
jge 0x3a2197
movq 0xa84e70(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x94a5a9(%rip), %rsi    # 0xcec71b
leaq 0x8f9433(%rip), %rdx    # 0xc9b5ac
leaq 0x94a5b0(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x468(%rbp)
jmp 0x3a3985
jmp 0x3a2199
jmp 0x3a219b
cmpl $0x0, -0x48c(%rbp)
jge 0x3a21da
movq 0xa84e2d(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x94a566(%rip), %rsi    # 0xcec71b
leaq 0x8f93f0(%rip), %rdx    # 0xc9b5ac
leaq 0x94a572(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x468(%rbp)
jmp 0x3a3985
jmp 0x3a21dc
jmp 0x3a21de
cmpq $0x0, 0x10(%rbp)
jne 0x3a221b
movq 0xa84dec(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x949df5(%rip), %rsi    # 0xcebfeb
leaq 0x8f93af(%rip), %rdx    # 0xc9b5ac
leaq 0x94a721(%rip), %rcx    # 0xcec925
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x468(%rbp)
jmp 0x3a3985
jmp 0x3a221d
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x3a22b4
jmp 0x3a222d
cmpq $0x0, -0x470(%rbp)
jne 0x3a226d
movq 0xa84d9a(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x949da3(%rip), %rsi    # 0xcebfeb
leaq 0x8f935d(%rip), %rdx    # 0xc9b5ac
leaq 0x94a4e3(%rip), %rcx    # 0xcec739
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x468(%rbp)
jmp 0x3a3985
jmp 0x3a226f
jmp 0x3a2271
cmpl $0x0, -0x474(%rbp)
jg 0x3a22b0
movq 0xa84d57(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x94a476(%rip), %rsi    # 0xcec701
leaq 0x8f931a(%rip), %rdx    # 0xc9b5ac
leaq 0x94a4a4(%rip), %rcx    # 0xcec73d
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x468(%rbp)
jmp 0x3a3985
jmp 0x3a22b2
jmp 0x3a22b4
movl $0x4, -0x490(%rbp)
movl -0x490(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x494(%rbp)
movl -0x494(%rbp), %eax
shll %eax
movl %eax, -0x498(%rbp)
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x3a22f3
movl -0x474(%rbp), %eax
movl %eax, -0x718(%rbp)
jmp 0x3a2300
movq 0x10(%rbp), %rax
movl 0x34(%rax), %eax
movl %eax, -0x718(%rbp)
movl -0x718(%rbp), %eax
movl %eax, -0x49c(%rbp)
movl -0x49c(%rbp), %eax
addl -0x494(%rbp), %eax
movl %eax, -0x4a0(%rbp)
movl -0x484(%rbp), %eax
addl -0x494(%rbp), %eax
movl %eax, -0x4a4(%rbp)
movl $0x0, -0x4ec(%rbp)
movl $0x0, -0x4f0(%rbp)
movl -0x49c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x4f4(%rbp)
movl -0x484(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x4f8(%rbp)
xorl %eax, %eax
subl -0x488(%rbp), %eax
movq 0x10(%rbp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x3a2386
movl -0x488(%rbp), %eax
addl $0x80000000, %eax       # imm = 0x80000000
movl %eax, -0x71c(%rbp)
jmp 0x3a2398
movq 0x10(%rbp), %rcx
movl $0x80000000, %eax       # imm = 0x80000000
subl 0x20(%rcx), %eax
movl %eax, -0x71c(%rbp)
movl -0x71c(%rbp), %eax
incl %eax
movl %eax, -0x4fc(%rbp)
movq 0x10(%rbp), %rax
movl 0x1c(%rax), %ecx
movl $0x7ffffffe, %eax       # imm = 0x7FFFFFFE
subl %ecx, %eax
movl %eax, -0x500(%rbp)
movl -0x4fc(%rbp), %eax
movl %eax, -0x504(%rbp)
movl -0x4fc(%rbp), %eax
movl %eax, -0x434(%rbp)
movl -0x434(%rbp), %eax
movl %eax, -0x414(%rbp)
movl %eax, -0x418(%rbp)
movl %eax, -0x41c(%rbp)
movl %eax, -0x420(%rbp)
movd -0x414(%rbp), %xmm0
movd -0x418(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x41c(%rbp), %xmm2
movd -0x420(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x430(%rbp)
movaps -0x430(%rbp), %xmm0
movaps %xmm0, -0x520(%rbp)
movl -0x500(%rbp), %eax
movl %eax, -0x438(%rbp)
movl -0x438(%rbp), %eax
movl %eax, -0x3f4(%rbp)
movl %eax, -0x3f8(%rbp)
movl %eax, -0x3fc(%rbp)
movl %eax, -0x400(%rbp)
movd -0x3f4(%rbp), %xmm0
movd -0x3f8(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x3fc(%rbp), %xmm2
movd -0x400(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x410(%rbp)
movaps -0x410(%rbp), %xmm0
movaps %xmm0, -0x530(%rbp)
movaps -0x530(%rbp), %xmm0
movaps %xmm0, -0x540(%rbp)
movaps -0x520(%rbp), %xmm0
movaps %xmm0, -0x550(%rbp)
movl -0x4fc(%rbp), %eax
movl %eax, -0x43c(%rbp)
movl -0x43c(%rbp), %eax
movl %eax, -0x3d4(%rbp)
movl %eax, -0x3d8(%rbp)
movl %eax, -0x3dc(%rbp)
movl %eax, -0x3e0(%rbp)
movd -0x3d4(%rbp), %xmm0
movd -0x3d8(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x3dc(%rbp), %xmm2
movd -0x3e0(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x3f0(%rbp)
movaps -0x3f0(%rbp), %xmm0
movaps %xmm0, -0x560(%rbp)
movl -0x488(%rbp), %eax
movl %eax, -0x440(%rbp)
movl -0x440(%rbp), %eax
movl %eax, -0x3b4(%rbp)
movl %eax, -0x3b8(%rbp)
movl %eax, -0x3bc(%rbp)
movl %eax, -0x3c0(%rbp)
movd -0x3b4(%rbp), %xmm0
movd -0x3b8(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x3bc(%rbp), %xmm2
movd -0x3c0(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x3d0(%rbp)
movaps -0x3d0(%rbp), %xmm0
movaps %xmm0, -0x570(%rbp)
movl -0x48c(%rbp), %eax
movl %eax, -0x444(%rbp)
movl -0x444(%rbp), %eax
movl %eax, -0x394(%rbp)
movl %eax, -0x398(%rbp)
movl %eax, -0x39c(%rbp)
movl %eax, -0x3a0(%rbp)
movd -0x394(%rbp), %xmm0
movd -0x398(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x39c(%rbp), %xmm2
movd -0x3a0(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x3b0(%rbp)
movaps -0x3b0(%rbp), %xmm0
movaps %xmm0, -0x580(%rbp)
movl $0x1, -0x448(%rbp)
movl -0x448(%rbp), %eax
movl %eax, -0x374(%rbp)
movl %eax, -0x378(%rbp)
movl %eax, -0x37c(%rbp)
movl %eax, -0x380(%rbp)
movd -0x374(%rbp), %xmm0
movd -0x378(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x37c(%rbp), %xmm2
movd -0x380(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x390(%rbp)
movaps -0x390(%rbp), %xmm0
movaps %xmm0, -0x590(%rbp)
movl -0x490(%rbp), %eax
movl %eax, -0x44c(%rbp)
movl -0x44c(%rbp), %eax
movl %eax, -0x354(%rbp)
movl %eax, -0x358(%rbp)
movl %eax, -0x35c(%rbp)
movl %eax, -0x360(%rbp)
movd -0x354(%rbp), %xmm0
movd -0x358(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x35c(%rbp), %xmm2
movd -0x360(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x370(%rbp)
movaps -0x370(%rbp), %xmm0
movaps %xmm0, -0x5a0(%rbp)
movl -0x48c(%rbp), %eax
movl -0x490(%rbp), %ecx
imull %ecx, %eax
movl %eax, -0x450(%rbp)
movl -0x450(%rbp), %eax
movl %eax, -0x334(%rbp)
movl %eax, -0x338(%rbp)
movl %eax, -0x33c(%rbp)
movl %eax, -0x340(%rbp)
movd -0x334(%rbp), %xmm0
movd -0x338(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x33c(%rbp), %xmm2
movd -0x340(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x350(%rbp)
movaps -0x350(%rbp), %xmm0
movaps %xmm0, -0x5b0(%rbp)
movl $0xffffffff, -0x454(%rbp) # imm = 0xFFFFFFFF
movl -0x454(%rbp), %eax
movl %eax, -0x314(%rbp)
movl %eax, -0x318(%rbp)
movl %eax, -0x31c(%rbp)
movl %eax, -0x320(%rbp)
movd -0x314(%rbp), %xmm0
movd -0x318(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x31c(%rbp), %xmm2
movd -0x320(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x330(%rbp)
movaps -0x330(%rbp), %xmm0
movaps %xmm0, -0x5c0(%rbp)
movl $0x0, -0x254(%rbp)
movl $0x1, -0x258(%rbp)
movl $0x2, -0x25c(%rbp)
movl $0x3, -0x260(%rbp)
movd -0x254(%rbp), %xmm0
movd -0x258(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x25c(%rbp), %xmm2
movd -0x260(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x270(%rbp)
movaps -0x270(%rbp), %xmm0
movaps %xmm0, -0x5d0(%rbp)
movl $0x0, -0x274(%rbp)
movl $0xffffffff, -0x278(%rbp) # imm = 0xFFFFFFFF
movl $0xfffffffe, -0x27c(%rbp) # imm = 0xFFFFFFFE
movl $0xfffffffd, -0x280(%rbp) # imm = 0xFFFFFFFD
movd -0x274(%rbp), %xmm0
movd -0x278(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x27c(%rbp), %xmm2
movd -0x280(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x290(%rbp)
movaps -0x290(%rbp), %xmm0
movaps %xmm0, -0x5e0(%rbp)
movaps -0x560(%rbp), %xmm0
movaps %xmm0, -0x5f0(%rbp)
movl -0x49c(%rbp), %eax
movl %eax, -0x458(%rbp)
movl -0x458(%rbp), %eax
movl %eax, -0x2f4(%rbp)
movl %eax, -0x2f8(%rbp)
movl %eax, -0x2fc(%rbp)
movl %eax, -0x300(%rbp)
movd -0x2f4(%rbp), %xmm0
movd -0x2f8(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x2fc(%rbp), %xmm2
movd -0x300(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x310(%rbp)
movaps -0x310(%rbp), %xmm0
movaps %xmm0, -0x600(%rbp)
movaps -0x600(%rbp), %xmm1
movaps -0x590(%rbp), %xmm0
movaps %xmm1, -0x180(%rbp)
movaps %xmm0, -0x190(%rbp)
movaps -0x180(%rbp), %xmm0
movaps -0x190(%rbp), %xmm1
psubd %xmm1, %xmm0
movaps %xmm0, -0x610(%rbp)
movl -0x484(%rbp), %eax
movl %eax, -0x45c(%rbp)
movl -0x45c(%rbp), %eax
movl %eax, -0x2d4(%rbp)
movl %eax, -0x2d8(%rbp)
movl %eax, -0x2dc(%rbp)
movl %eax, -0x2e0(%rbp)
movd -0x2d4(%rbp), %xmm0
movd -0x2d8(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x2dc(%rbp), %xmm2
movd -0x2e0(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x2f0(%rbp)
movaps -0x2f0(%rbp), %xmm0
movaps %xmm0, -0x620(%rbp)
movaps -0x620(%rbp), %xmm1
movaps -0x590(%rbp), %xmm0
movaps %xmm1, -0x1a0(%rbp)
movaps %xmm0, -0x1b0(%rbp)
movaps -0x1a0(%rbp), %xmm0
movaps -0x1b0(%rbp), %xmm1
psubd %xmm1, %xmm0
movaps %xmm0, -0x630(%rbp)
movl -0x488(%rbp), %esi
negl %esi
movl -0x48c(%rbp), %edi
movl %esi, %edx
subl %edi, %edx
movl %edi, %eax
addl %eax, %eax
movl %esi, %ecx
subl %eax, %ecx
movl %edi, %eax
leal (%rax,%rax,2), %edi
movl %esi, %eax
subl %edi, %eax
movl %esi, -0x294(%rbp)
movl %edx, -0x298(%rbp)
movl %ecx, -0x29c(%rbp)
movl %eax, -0x2a0(%rbp)
movd -0x294(%rbp), %xmm0
movd -0x298(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x29c(%rbp), %xmm2
movd -0x2a0(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x2b0(%rbp)
movdqa -0x2b0(%rbp), %xmm0
movdqa %xmm0, -0x640(%rbp)
movl -0x49c(%rbp), %edi
movl -0x484(%rbp), %esi
callq 0x1c39b0
movq %rax, -0x4e8(%rbp)
cmpq $0x0, -0x4e8(%rbp)
jne 0x3a2a7b
movq $0x0, -0x468(%rbp)
jmp 0x3a3985
movq -0x4e8(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x4401001, %ecx        # imm = 0x4401001
movl %ecx, 0xc(%rax)
movq -0x4e8(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x20000, %ecx          # imm = 0x20000
movl %ecx, 0xc(%rax)
movl -0x484(%rbp), %eax
addl -0x498(%rbp), %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c3660
movq %rax, -0x4b8(%rbp)
movl -0x484(%rbp), %eax
addl -0x498(%rbp), %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c3660
movq %rax, -0x4c0(%rbp)
movl -0x484(%rbp), %eax
addl -0x498(%rbp), %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c3660
movq %rax, -0x4c8(%rbp)
movq -0x4b8(%rbp), %rax
movslq -0x494(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x4d0(%rbp)
movq -0x4c0(%rbp), %rax
movslq -0x494(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x4d8(%rbp)
movq -0x4c8(%rbp), %rax
movslq -0x494(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x4e0(%rbp)
cmpq $0x0, -0x4b8(%rbp)
jne 0x3a2b6f
movq $0x0, -0x468(%rbp)
jmp 0x3a3985
cmpq $0x0, -0x4c0(%rbp)
jne 0x3a2b89
movq $0x0, -0x468(%rbp)
jmp 0x3a3985
cmpq $0x0, -0x4c8(%rbp)
jne 0x3a2ba3
movq $0x0, -0x468(%rbp)
jmp 0x3a3985
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x3a2c84
movl -0x49c(%rbp), %eax
addl -0x494(%rbp), %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c3660
movq %rax, -0x4b0(%rbp)
cmpq $0x0, -0x4b0(%rbp)
jne 0x3a2beb
movq $0x0, -0x468(%rbp)
jmp 0x3a3985
movl $0x0, -0x4ec(%rbp)
movl -0x4ec(%rbp), %eax
cmpl -0x49c(%rbp), %eax
jge 0x3a2c42
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x470(%rbp), %rcx
movslq -0x4ec(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movl (%rax,%rcx,4), %edx
movq -0x4b0(%rbp), %rax
movslq -0x4ec(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x4ec(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4ec(%rbp)
jmp 0x3a2bf5
movl -0x49c(%rbp), %eax
movl %eax, -0x4ec(%rbp)
movl -0x4ec(%rbp), %eax
cmpl -0x4a0(%rbp), %eax
jge 0x3a2c82
movq -0x4b0(%rbp), %rax
movslq -0x4ec(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x4ec(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4ec(%rbp)
jmp 0x3a2c4e
jmp 0x3a2c84
movl $0x0, -0x4f0(%rbp)
movl -0x4f0(%rbp), %eax
cmpl -0x484(%rbp), %eax
jge 0x3a2cdb
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x480(%rbp), %rcx
movslq -0x4f0(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movl (%rax,%rcx,4), %edx
movq -0x4d0(%rbp), %rax
movslq -0x4f0(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x4f0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4f0(%rbp)
jmp 0x3a2c8e
xorl %eax, %eax
subl -0x494(%rbp), %eax
movl %eax, -0x4f0(%rbp)
cmpl $0x0, -0x4f0(%rbp)
jge 0x3a2d18
movq -0x4d0(%rbp), %rax
movslq -0x4f0(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x4f0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4f0(%rbp)
jmp 0x3a2ce9
movl -0x484(%rbp), %eax
movl %eax, -0x4f0(%rbp)
movl -0x4f0(%rbp), %eax
cmpl -0x4a4(%rbp), %eax
jge 0x3a2d58
movq -0x4d0(%rbp), %rax
movslq -0x4f0(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x4f0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4f0(%rbp)
jmp 0x3a2d24
movl $0x0, -0x4f0(%rbp)
movl -0x4f0(%rbp), %eax
cmpl -0x484(%rbp), %eax
jge 0x3a2dc0
xorl %edx, %edx
subl -0x488(%rbp), %edx
movl -0x4f0(%rbp), %eax
imull -0x48c(%rbp), %eax
subl %eax, %edx
movq -0x4d8(%rbp), %rax
movslq -0x4f0(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x4fc(%rbp), %edx
movq -0x4e0(%rbp), %rax
movslq -0x4f0(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x4f0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4f0(%rbp)
jmp 0x3a2d62
xorl %eax, %eax
subl -0x494(%rbp), %eax
movl %eax, -0x4f0(%rbp)
cmpl $0x0, -0x4f0(%rbp)
jge 0x3a2e16
movl -0x4fc(%rbp), %edx
movq -0x4d8(%rbp), %rax
movslq -0x4f0(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x4fc(%rbp), %edx
movq -0x4e0(%rbp), %rax
movslq -0x4f0(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x4f0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4f0(%rbp)
jmp 0x3a2dce
movl -0x484(%rbp), %eax
movl %eax, -0x4f0(%rbp)
movl -0x4f0(%rbp), %eax
movl -0x484(%rbp), %ecx
addl -0x494(%rbp), %ecx
cmpl %ecx, %eax
jge 0x3a2e77
movl -0x4fc(%rbp), %edx
movq -0x4d8(%rbp), %rax
movslq -0x4f0(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x4fc(%rbp), %edx
movq -0x4e0(%rbp), %rax
movslq -0x4f0(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x4f0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4f0(%rbp)
jmp 0x3a2e22
movq -0x4d8(%rbp), %rax
movl $0x0, -0x4(%rax)
movl $0x0, -0x4ec(%rbp)
movl -0x4ec(%rbp), %eax
cmpl -0x49c(%rbp), %eax
jge 0x3a37f0
movdqa -0x560(%rbp), %xmm0
movdqa %xmm0, -0x650(%rbp)
movdqa -0x560(%rbp), %xmm0
movdqa %xmm0, -0x660(%rbp)
movdqa -0x560(%rbp), %xmm0
movdqa %xmm0, -0x670(%rbp)
movdqa -0x560(%rbp), %xmm0
movdqa %xmm0, -0x680(%rbp)
movdqa -0x5e0(%rbp), %xmm0
movdqa %xmm0, -0x690(%rbp)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x728(%rbp)
movq 0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x720(%rbp)
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x3a2f35
movq -0x4b0(%rbp), %rax
movl -0x4ec(%rbp), %ecx
addl $0x0, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x72c(%rbp)
jmp 0x3a2f72
movl -0x4ec(%rbp), %eax
addl $0x0, %eax
cmpl -0x49c(%rbp), %eax
jl 0x3a2f57
movl -0x49c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x730(%rbp)
jmp 0x3a2f66
movl -0x4ec(%rbp), %eax
addl $0x0, %eax
movl %eax, -0x730(%rbp)
movl -0x730(%rbp), %eax
movl %eax, -0x72c(%rbp)
movq -0x728(%rbp), %rax
movl -0x720(%rbp), %ecx
movl -0x72c(%rbp), %edx
imull %edx, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x698(%rbp)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x740(%rbp)
movq 0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x734(%rbp)
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x3a2fdd
movq -0x4b0(%rbp), %rax
movl -0x4ec(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x744(%rbp)
jmp 0x3a301a
movl -0x4ec(%rbp), %eax
addl $0x1, %eax
cmpl -0x49c(%rbp), %eax
jl 0x3a2fff
movl -0x49c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x748(%rbp)
jmp 0x3a300e
movl -0x4ec(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x748(%rbp)
movl -0x748(%rbp), %eax
movl %eax, -0x744(%rbp)
movq -0x740(%rbp), %rax
movl -0x734(%rbp), %ecx
movl -0x744(%rbp), %edx
imull %edx, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x6a0(%rbp)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x758(%rbp)
movq 0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x74c(%rbp)
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x3a3085
movq -0x4b0(%rbp), %rax
movl -0x4ec(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x75c(%rbp)
jmp 0x3a30c2
movl -0x4ec(%rbp), %eax
addl $0x2, %eax
cmpl -0x49c(%rbp), %eax
jl 0x3a30a7
movl -0x49c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x760(%rbp)
jmp 0x3a30b6
movl -0x4ec(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x760(%rbp)
movl -0x760(%rbp), %eax
movl %eax, -0x75c(%rbp)
movq -0x758(%rbp), %rax
movl -0x74c(%rbp), %ecx
movl -0x75c(%rbp), %edx
imull %edx, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x6a8(%rbp)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x770(%rbp)
movq 0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x764(%rbp)
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x3a312d
movq -0x4b0(%rbp), %rax
movl -0x4ec(%rbp), %ecx
addl $0x3, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x774(%rbp)
jmp 0x3a316a
movl -0x4ec(%rbp), %eax
addl $0x3, %eax
cmpl -0x49c(%rbp), %eax
jl 0x3a314f
movl -0x49c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x778(%rbp)
jmp 0x3a315e
movl -0x4ec(%rbp), %eax
addl $0x3, %eax
movl %eax, -0x778(%rbp)
movl -0x778(%rbp), %eax
movl %eax, -0x774(%rbp)
movq -0x770(%rbp), %rax
movl -0x764(%rbp), %ecx
movl -0x774(%rbp), %edx
imull %edx, %ecx
movslq %ecx, %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, -0x6b0(%rbp)
movaps -0x650(%rbp), %xmm0
psrldq $0x4, %xmm0             # xmm0 = xmm0[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero
movaps %xmm0, -0x650(%rbp)
movaps -0x650(%rbp), %xmm0
movq -0x4d8(%rbp), %rax
movl -0x4(%rax), %edi
movl $0x3, %esi
callq 0x3a39a0
movaps %xmm0, -0x650(%rbp)
movaps -0x660(%rbp), %xmm0
psrldq $0x4, %xmm0             # xmm0 = xmm0[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero
movdqa %xmm0, -0x660(%rbp)
movdqa -0x660(%rbp), %xmm0
xorl %edi, %edi
subl -0x488(%rbp), %edi
movl -0x4ec(%rbp), %eax
imull -0x48c(%rbp), %eax
subl %eax, %edi
movl $0x3, %esi
callq 0x3a39a0
movdqa %xmm0, -0x660(%rbp)
xorl %ecx, %ecx
subl -0x488(%rbp), %ecx
movl -0x4ec(%rbp), %eax
addl -0x490(%rbp), %eax
imull -0x48c(%rbp), %eax
subl %eax, %ecx
movq -0x4d8(%rbp), %rax
movl %ecx, -0x4(%rax)
movl $0x0, -0x4f0(%rbp)
movl -0x4f0(%rbp), %eax
movl -0x484(%rbp), %ecx
addl -0x494(%rbp), %ecx
cmpl %ecx, %eax
jge 0x3a3761
movaps -0x650(%rbp), %xmm0
movaps %xmm0, -0x6d0(%rbp)
movaps -0x660(%rbp), %xmm0
psrldq $0x4, %xmm0             # xmm0 = xmm0[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero
movaps %xmm0, -0x650(%rbp)
movaps -0x650(%rbp), %xmm0
movq -0x4d8(%rbp), %rax
movslq -0x4f0(%rbp), %rcx
movl (%rax,%rcx,4), %edi
movl $0x3, %esi
movl %esi, -0x77c(%rbp)
callq 0x3a39a0
movl -0x77c(%rbp), %esi
movaps %xmm0, -0x650(%rbp)
movaps -0x680(%rbp), %xmm0
psrldq $0x4, %xmm0             # xmm0 = xmm0[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero
movaps %xmm0, -0x680(%rbp)
movaps -0x680(%rbp), %xmm0
movq -0x4e0(%rbp), %rax
movslq -0x4f0(%rbp), %rcx
movl (%rax,%rcx,4), %edi
callq 0x3a39a0
movaps %xmm0, -0x680(%rbp)
movaps -0x650(%rbp), %xmm1
movaps -0x570(%rbp), %xmm0
movaps %xmm1, -0x1c0(%rbp)
movaps %xmm0, -0x1d0(%rbp)
movaps -0x1c0(%rbp), %xmm0
movaps -0x1d0(%rbp), %xmm1
psubd %xmm1, %xmm0
movaps -0x680(%rbp), %xmm2
movaps -0x580(%rbp), %xmm1
movaps %xmm2, -0x1e0(%rbp)
movaps %xmm1, -0x1f0(%rbp)
movaps -0x1e0(%rbp), %xmm1
movaps -0x1f0(%rbp), %xmm2
psubd %xmm2, %xmm1
callq 0x3a39d0
movaps %xmm0, -0x680(%rbp)
movaps -0x660(%rbp), %xmm1
movaps -0x570(%rbp), %xmm0
movaps %xmm1, -0x200(%rbp)
movaps %xmm0, -0x210(%rbp)
movaps -0x200(%rbp), %xmm0
movaps -0x210(%rbp), %xmm1
psubd %xmm1, %xmm0
movaps -0x670(%rbp), %xmm2
movaps -0x580(%rbp), %xmm1
movaps %xmm2, -0x220(%rbp)
movaps %xmm1, -0x230(%rbp)
movaps -0x220(%rbp), %xmm1
movaps -0x230(%rbp), %xmm2
psubd %xmm2, %xmm1
callq 0x3a39d0
movaps %xmm0, -0x670(%rbp)
movq -0x698(%rbp), %rax
movq -0x4d0(%rbp), %rdi
movslq -0x4f0(%rbp), %rcx
movl %ecx, %r8d
movslq (%rdi,%rcx,4), %rcx
movl (%rax,%rcx,4), %esi
movq -0x6a0(%rbp), %rax
movl %r8d, %ecx
decl %ecx
movslq %ecx, %rcx
movslq (%rdi,%rcx,4), %rcx
movl (%rax,%rcx,4), %edx
movq -0x6a8(%rbp), %rax
movl %r8d, %ecx
addl $-0x2, %ecx
movslq %ecx, %rcx
movslq (%rdi,%rcx,4), %rcx
movl (%rax,%rcx,4), %ecx
movq -0x6b0(%rbp), %rax
addl $-0x3, %r8d
movslq %r8d, %r8
movslq (%rdi,%r8,4), %rdi
movl (%rax,%rdi,4), %eax
movl %esi, -0x2b4(%rbp)
movl %edx, -0x2b8(%rbp)
movl %ecx, -0x2bc(%rbp)
movl %eax, -0x2c0(%rbp)
movd -0x2b4(%rbp), %xmm0
movd -0x2b8(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0x2bc(%rbp), %xmm2
movd -0x2c0(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x2d0(%rbp)
movaps -0x2d0(%rbp), %xmm0
movaps %xmm0, -0x6c0(%rbp)
movaps -0x6d0(%rbp), %xmm1
movaps -0x6c0(%rbp), %xmm0
movaps %xmm1, -0x120(%rbp)
movaps %xmm0, -0x130(%rbp)
movaps -0x120(%rbp), %xmm0
movaps -0x130(%rbp), %xmm1
paddd %xmm1, %xmm0
movaps %xmm0, -0x6d0(%rbp)
movaps -0x6d0(%rbp), %xmm0
movaps -0x670(%rbp), %xmm1
callq 0x3a39d0
movaps %xmm0, -0x660(%rbp)
movaps -0x660(%rbp), %xmm0
movaps -0x680(%rbp), %xmm1
callq 0x3a39d0
movaps %xmm0, -0x660(%rbp)
movaps -0x690(%rbp), %xmm1
movaps -0x5c0(%rbp), %xmm0
movaps %xmm1, -0xc0(%rbp)
movaps %xmm0, -0xd0(%rbp)
movaps -0xc0(%rbp), %xmm0
movaps -0xd0(%rbp), %xmm1
pcmpeqd %xmm1, %xmm0
movdqa %xmm0, -0x6e0(%rbp)
movdqa -0x660(%rbp), %xmm0
movdqa -0x640(%rbp), %xmm1
movdqa -0x6e0(%rbp), %xmm2
callq 0x3a3aa0
movdqa %xmm0, -0x660(%rbp)
movdqa -0x680(%rbp), %xmm0
movdqa -0x560(%rbp), %xmm1
movdqa -0x6e0(%rbp), %xmm2
callq 0x3a3aa0
movdqa %xmm0, -0x680(%rbp)
movdqa -0x670(%rbp), %xmm0
movdqa -0x560(%rbp), %xmm1
movdqa -0x6e0(%rbp), %xmm2
callq 0x3a3aa0
movdqa %xmm0, -0x670(%rbp)
movl -0x4f0(%rbp), %eax
cmpl -0x494(%rbp), %eax
jle 0x3a35c0
movdqa -0x540(%rbp), %xmm0
movdqa -0x660(%rbp), %xmm1
callq 0x3a3b30
movdqa %xmm0, -0x540(%rbp)
movdqa -0x550(%rbp), %xmm0
movdqa -0x660(%rbp), %xmm1
callq 0x3a39d0
movdqa %xmm0, -0x550(%rbp)
movq -0x4e8(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movaps -0x660(%rbp), %xmm0
movl -0x4ec(%rbp), %esi
movl -0x49c(%rbp), %edx
movl -0x4f0(%rbp), %ecx
movl -0x484(%rbp), %r8d
callq 0x3a3c00
movaps -0x660(%rbp), %xmm0
xorl %edi, %edi
movl %edi, -0x780(%rbp)
callq 0x3a3dc0
movl -0x780(%rbp), %edi
movl %eax, %edx
movq -0x4d8(%rbp), %rax
movl -0x4f0(%rbp), %ecx
addl $-0x3, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
movaps -0x680(%rbp), %xmm0
callq 0x3a3dc0
movl %eax, %edx
movq -0x4e0(%rbp), %rax
movl -0x4f0(%rbp), %ecx
addl $-0x3, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
movaps -0x5d0(%rbp), %xmm1
movaps -0x610(%rbp), %xmm0
movaps %xmm1, -0xe0(%rbp)
movaps %xmm0, -0xf0(%rbp)
movaps -0xe0(%rbp), %xmm0
movaps -0xf0(%rbp), %xmm1
pcmpeqd %xmm1, %xmm0
movaps %xmm0, -0x6f0(%rbp)
movaps -0x690(%rbp), %xmm1
movaps -0x630(%rbp), %xmm0
movaps %xmm1, -0x100(%rbp)
movaps %xmm0, -0x110(%rbp)
movaps -0x100(%rbp), %xmm0
movaps -0x110(%rbp), %xmm1
pcmpeqd %xmm1, %xmm0
movdqa %xmm0, -0x700(%rbp)
movdqa -0x6f0(%rbp), %xmm1
movdqa -0x700(%rbp), %xmm0
movdqa %xmm1, -0xa0(%rbp)
movdqa %xmm0, -0xb0(%rbp)
movdqa -0xa0(%rbp), %xmm0
pand -0xb0(%rbp), %xmm0
movdqa %xmm0, -0x710(%rbp)
movdqa -0x5f0(%rbp), %xmm0
movdqa -0x660(%rbp), %xmm1
movdqa -0x710(%rbp), %xmm2
callq 0x3a3aa0
movdqa %xmm0, -0x5f0(%rbp)
movdqa -0x690(%rbp), %xmm1
movdqa -0x590(%rbp), %xmm0
movdqa %xmm1, -0x140(%rbp)
movdqa %xmm0, -0x150(%rbp)
movdqa -0x140(%rbp), %xmm0
movdqa -0x150(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x690(%rbp)
movl -0x4f0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4f0(%rbp)
jmp 0x3a3239
movdqa -0x5d0(%rbp), %xmm1
movdqa -0x5a0(%rbp), %xmm0
movdqa %xmm1, -0x160(%rbp)
movdqa %xmm0, -0x170(%rbp)
movdqa -0x160(%rbp), %xmm0
movdqa -0x170(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x5d0(%rbp)
movdqa -0x640(%rbp), %xmm1
movdqa -0x5b0(%rbp), %xmm0
movdqa %xmm1, -0x240(%rbp)
movdqa %xmm0, -0x250(%rbp)
movdqa -0x240(%rbp), %xmm0
movdqa -0x250(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x640(%rbp)
movl -0x490(%rbp), %eax
addl -0x4ec(%rbp), %eax
movl %eax, -0x4ec(%rbp)
jmp 0x3a2e8f
movl $0x0, -0x4ec(%rbp)
movl -0x4ec(%rbp), %eax
cmpl -0x490(%rbp), %eax
jge 0x3a385f
movdqa -0x5f0(%rbp), %xmm0
movl $0x3, %edi
callq 0x3a3dc0
movl %eax, -0x714(%rbp)
movl -0x714(%rbp), %eax
cmpl -0x504(%rbp), %eax
jle 0x3a383a
movl -0x714(%rbp), %eax
movl %eax, -0x504(%rbp)
movaps -0x5f0(%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, -0x5f0(%rbp)
movl -0x4ec(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4ec(%rbp)
jmp 0x3a37fa
movaps -0x540(%rbp), %xmm1
movaps -0x520(%rbp), %xmm0
movaps %xmm1, -0x50(%rbp)
movaps %xmm0, -0x60(%rbp)
movaps -0x60(%rbp), %xmm1
movaps -0x50(%rbp), %xmm0
movaps %xmm1, -0x30(%rbp)
movaps %xmm0, -0x40(%rbp)
movaps -0x30(%rbp), %xmm1
movaps -0x40(%rbp), %xmm0
pcmpgtd %xmm0, %xmm1
movaps -0x550(%rbp), %xmm2
movaps -0x530(%rbp), %xmm0
movaps %xmm2, -0x10(%rbp)
movaps %xmm0, -0x20(%rbp)
movaps -0x10(%rbp), %xmm0
movaps -0x20(%rbp), %xmm2
pcmpgtd %xmm2, %xmm0
movdqa %xmm1, -0x70(%rbp)
movdqa %xmm0, -0x80(%rbp)
movdqa -0x70(%rbp), %xmm0
por -0x80(%rbp), %xmm0
movdqa %xmm0, -0x90(%rbp)
movdqa -0x90(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x3a390e
movq -0x4e8(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
movl $0x0, -0x504(%rbp)
movl $0x0, -0x4f4(%rbp)
movl $0x0, -0x4f8(%rbp)
movl -0x504(%rbp), %ecx
movq -0x4e8(%rbp), %rax
movl %ecx, (%rax)
movl -0x4f4(%rbp), %ecx
movq -0x4e8(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x4f8(%rbp), %ecx
movq -0x4e8(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x4c8(%rbp), %rdi
callq 0x1c3590
movq -0x4c0(%rbp), %rdi
callq 0x1c3590
movq -0x4b8(%rbp), %rdi
callq 0x1c3590
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x3a3977
movq -0x4b0(%rbp), %rdi
callq 0x1c3590
movq -0x4e8(%rbp), %rax
movq %rax, -0x468(%rbp)
movq -0x468(%rbp), %rax
addq $0x780, %rsp            # imm = 0x780
popq %rbp
retq
nopw %cs:(%rax,%rax)