// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sw_diag_sse41_128_32.c
// Function: parasail_sw_table_diag_sse41_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 vNegInf0;
    __m128i vOpen;
    __m128i vGap;
    __m128i vZero;
    __m128i vOne;
    __m128i vN;
    __m128i vNegOne;
    __m128i vI;
    __m128i vJreset;
    __m128i vMaxH;
    __m128i vEndI;
    __m128i vEndJ;
    __m128i vILimit;
    __m128i vJLimit;

    /* 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 = 0;
    end_ref = 0;
    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);
    vNegInf0 = _mm_srli_si128(vNegInf, 4); /* shift in a 0 */
    vOpen = _mm_set1_epi32(open);
    vGap  = _mm_set1_epi32(gap);
    vZero = _mm_set1_epi32(0);
    vOne = _mm_set1_epi32(1);
    vN = _mm_set1_epi32(N);
    vNegOne = _mm_set1_epi32(-1);
    vI = _mm_set_epi32(0,1,2,3);
    vJreset = _mm_set_epi32(0,-1,-2,-3);
    vMaxH = vNegInf;
    vEndI = vNegInf;
    vEndJ = vNegInf;
    vILimit = _mm_set1_epi32(s1Len);
    vJLimit = _mm_set1_epi32(s2Len);

    /* 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_SW | 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] = 0;
        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;
    }

    /* iterate over query sequence */
    for (i=0; i<s1Len; i+=N) {
        __m128i vNH = vNegInf0;
        __m128i vWH = vNegInf0;
        __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))];
        __m128i vIltLimit = _mm_cmplt_epi32(vI, vILimit);
        /* 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(vNH, H_pr[j], 3);
            vF = _mm_srli_si128(vF, 4);
            vF = _mm_insert_epi32(vF, F_pr[j], 3);
            vF = _mm_max_epi32(
                    _mm_sub_epi32(vNH, vOpen),
                    _mm_sub_epi32(vF, vGap));
            vE = _mm_max_epi32(
                    _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(vNWH, vE);
            vWH = _mm_max_epi32(vWH, vF);
            vWH = _mm_max_epi32(vWH, vZero);
            /* as minor diagonal vector passes across the j=-1 boundary,
             * assign the appropriate boundary conditions */
            {
                __m128i cond = _mm_cmpeq_epi32(vJ,vNegOne);
                vWH = _mm_andnot_si128(cond, vWH);
                vF = _mm_blendv_epi8(vF, vNegInf, cond);
                vE = _mm_blendv_epi8(vE, vNegInf, cond);
            }
            /* cannot start checking sat until after J clears boundary */
            if (j > PAD) {
                vSaturationCheckMin = _mm_min_epi32(vSaturationCheckMin, vWH);
                vSaturationCheckMax = _mm_max_epi32(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(vWH,0);
            F_pr[j-3] = (int32_t)_mm_extract_epi32(vF,0);
            /* as minor diagonal vector passes across table, extract
             * max values within the i,j bounds */
            {
                __m128i cond_valid_J = _mm_and_si128(
                        _mm_cmpgt_epi32(vJ, vNegOne),
                        _mm_cmplt_epi32(vJ, vJLimit));
                __m128i cond_valid_IJ = _mm_and_si128(cond_valid_J, vIltLimit);
                __m128i cond_eq = _mm_cmpeq_epi32(vWH, vMaxH);
                __m128i cond_max = _mm_cmpgt_epi32(vWH, vMaxH);
                __m128i cond_all = _mm_and_si128(cond_max, cond_valid_IJ);
                __m128i cond_Jlt = _mm_cmplt_epi32(vJ, vEndJ);
                vMaxH = _mm_blendv_epi8(vMaxH, vWH, cond_all);
                vEndI = _mm_blendv_epi8(vEndI, vI, cond_all);
                vEndJ = _mm_blendv_epi8(vEndJ, vJ, cond_all);
                cond_all = _mm_and_si128(cond_Jlt, cond_eq);
                cond_all = _mm_and_si128(cond_all, cond_valid_IJ);
                vEndI = _mm_blendv_epi8(vEndI, vI, cond_all);
                vEndJ = _mm_blendv_epi8(vEndJ, vJ, cond_all);
            }
            vJ = _mm_add_epi32(vJ, vOne);
        }
        vI = _mm_add_epi32(vI, vN);
    }

    /* alignment ending position */
    {
        int32_t *t = (int32_t*)&vMaxH;
        int32_t *i = (int32_t*)&vEndI;
        int32_t *j = (int32_t*)&vEndJ;
        int32_t k;
        for (k=0; k<N; ++k, ++t, ++i, ++j) {
            if (*t > score) {
                score = *t;
                end_query = *i;
                end_ref = *j;
            }
            else if (*t == score) {
                if (*j < end_ref) {
                    end_query = *i;
                    end_ref = *j;
                }
                else if (*j == end_ref && *i < end_query) {
                    end_query = *i;
                    end_ref = *j;
                }
            }
        }
    }

    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 $0xb00, %rsp            # imm = 0xB00
movq 0x10(%rbp), %rax
movq %rdi, -0x7a0(%rbp)
movl %esi, -0x7a4(%rbp)
movq %rdx, -0x7b0(%rbp)
movl %ecx, -0x7b4(%rbp)
movl %r8d, -0x7b8(%rbp)
movl %r9d, -0x7bc(%rbp)
movl $0x0, -0x7c0(%rbp)
movl $0x0, -0x7c4(%rbp)
movl $0x0, -0x7c8(%rbp)
movl $0x0, -0x7cc(%rbp)
movl $0x0, -0x7d0(%rbp)
movl $0x0, -0x7d4(%rbp)
movq $0x0, -0x7e0(%rbp)
movq $0x0, -0x7e8(%rbp)
movq $0x0, -0x7f0(%rbp)
movq $0x0, -0x7f8(%rbp)
movq $0x0, -0x800(%rbp)
movq $0x0, -0x808(%rbp)
movq $0x0, -0x810(%rbp)
movq $0x0, -0x818(%rbp)
movl $0x0, -0x81c(%rbp)
movl $0x0, -0x820(%rbp)
movl $0x0, -0x824(%rbp)
movl $0x0, -0x828(%rbp)
movl $0x0, -0x82c(%rbp)
movl $0x0, -0x830(%rbp)
movl $0x0, -0x834(%rbp)
cmpq $0x0, -0x7b0(%rbp)
jne 0x683d21
movq 0x7a32e6(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x6682ef(%rip), %rsi    # 0xcebfeb
leaq 0x618b12(%rip), %rdx    # 0xc9c815
leaq 0x6689f3(%rip), %rcx    # 0xcec6fd
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x798(%rbp)
jmp 0x685948
jmp 0x683d23
jmp 0x683d25
cmpl $0x0, -0x7b4(%rbp)
jg 0x683d64
movq 0x7a32a3(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x6689c2(%rip), %rsi    # 0xcec701
leaq 0x618acf(%rip), %rdx    # 0xc9c815
leaq 0x6689c8(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x798(%rbp)
jmp 0x685948
jmp 0x683d66
jmp 0x683d68
cmpl $0x0, -0x7b8(%rbp)
jge 0x683da7
movq 0x7a3260(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x668999(%rip), %rsi    # 0xcec71b
leaq 0x618a8c(%rip), %rdx    # 0xc9c815
leaq 0x6689a0(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x798(%rbp)
jmp 0x685948
jmp 0x683da9
jmp 0x683dab
cmpl $0x0, -0x7bc(%rbp)
jge 0x683dea
movq 0x7a321d(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x668956(%rip), %rsi    # 0xcec71b
leaq 0x618a49(%rip), %rdx    # 0xc9c815
leaq 0x668962(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x798(%rbp)
jmp 0x685948
jmp 0x683dec
jmp 0x683dee
cmpq $0x0, 0x10(%rbp)
jne 0x683e2b
movq 0x7a31dc(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x6681e5(%rip), %rsi    # 0xcebfeb
leaq 0x618a08(%rip), %rdx    # 0xc9c815
leaq 0x668b11(%rip), %rcx    # 0xcec925
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x798(%rbp)
jmp 0x685948
jmp 0x683e2d
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x683ec4
jmp 0x683e3d
cmpq $0x0, -0x7a0(%rbp)
jne 0x683e7d
movq 0x7a318a(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x668193(%rip), %rsi    # 0xcebfeb
leaq 0x6189b6(%rip), %rdx    # 0xc9c815
leaq 0x6688d3(%rip), %rcx    # 0xcec739
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x798(%rbp)
jmp 0x685948
jmp 0x683e7f
jmp 0x683e81
cmpl $0x0, -0x7a4(%rbp)
jg 0x683ec0
movq 0x7a3147(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x668866(%rip), %rsi    # 0xcec701
leaq 0x618973(%rip), %rdx    # 0xc9c815
leaq 0x668894(%rip), %rcx    # 0xcec73d
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x798(%rbp)
jmp 0x685948
jmp 0x683ec2
jmp 0x683ec4
movl $0x4, -0x7c0(%rbp)
movl -0x7c0(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x7c4(%rbp)
movl -0x7c4(%rbp), %eax
shll %eax
movl %eax, -0x7c8(%rbp)
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x683f03
movl -0x7a4(%rbp), %eax
movl %eax, -0xaa0(%rbp)
jmp 0x683f10
movq 0x10(%rbp), %rax
movl 0x34(%rax), %eax
movl %eax, -0xaa0(%rbp)
movl -0xaa0(%rbp), %eax
movl %eax, -0x7cc(%rbp)
movl -0x7cc(%rbp), %eax
addl -0x7c4(%rbp), %eax
movl %eax, -0x7d0(%rbp)
movl -0x7b4(%rbp), %eax
addl -0x7c4(%rbp), %eax
movl %eax, -0x7d4(%rbp)
movl $0x0, -0x81c(%rbp)
movl $0x0, -0x820(%rbp)
movl $0x0, -0x824(%rbp)
movl $0x0, -0x828(%rbp)
xorl %eax, %eax
subl -0x7b8(%rbp), %eax
movq 0x10(%rbp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x683f8c
movl -0x7b8(%rbp), %eax
addl $0x80000000, %eax       # imm = 0x80000000
movl %eax, -0xaa4(%rbp)
jmp 0x683f9e
movq 0x10(%rbp), %rcx
movl $0x80000000, %eax       # imm = 0x80000000
subl 0x20(%rcx), %eax
movl %eax, -0xaa4(%rbp)
movl -0xaa4(%rbp), %eax
incl %eax
movl %eax, -0x82c(%rbp)
movq 0x10(%rbp), %rax
movl 0x1c(%rax), %ecx
movl $0x7ffffffe, %eax       # imm = 0x7FFFFFFE
subl %ecx, %eax
movl %eax, -0x830(%rbp)
movl -0x82c(%rbp), %eax
movl %eax, -0x834(%rbp)
movl -0x82c(%rbp), %eax
movl %eax, -0x764(%rbp)
movl -0x764(%rbp), %eax
movl %eax, -0x744(%rbp)
movl %eax, -0x748(%rbp)
movl %eax, -0x74c(%rbp)
movl %eax, -0x750(%rbp)
movl -0x74c(%rbp), %edx
movl -0x748(%rbp), %ecx
movl -0x744(%rbp), %eax
movd -0x750(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movaps %xmm0, -0x760(%rbp)
movaps -0x760(%rbp), %xmm0
movaps %xmm0, -0x850(%rbp)
movl -0x830(%rbp), %eax
movl %eax, -0x768(%rbp)
movl -0x768(%rbp), %eax
movl %eax, -0x724(%rbp)
movl %eax, -0x728(%rbp)
movl %eax, -0x72c(%rbp)
movl %eax, -0x730(%rbp)
movl -0x72c(%rbp), %edx
movl -0x728(%rbp), %ecx
movl -0x724(%rbp), %eax
movd -0x730(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movaps %xmm0, -0x740(%rbp)
movaps -0x740(%rbp), %xmm0
movaps %xmm0, -0x860(%rbp)
movaps -0x860(%rbp), %xmm0
movaps %xmm0, -0x870(%rbp)
movaps -0x850(%rbp), %xmm0
movaps %xmm0, -0x880(%rbp)
movl -0x82c(%rbp), %eax
movl %eax, -0x76c(%rbp)
movl -0x76c(%rbp), %eax
movl %eax, -0x704(%rbp)
movl %eax, -0x708(%rbp)
movl %eax, -0x70c(%rbp)
movl %eax, -0x710(%rbp)
movl -0x70c(%rbp), %edx
movl -0x708(%rbp), %ecx
movl -0x704(%rbp), %eax
movd -0x710(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movaps %xmm0, -0x720(%rbp)
movaps -0x720(%rbp), %xmm0
movaps %xmm0, -0x890(%rbp)
movaps -0x890(%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, -0x8a0(%rbp)
movl -0x7b8(%rbp), %eax
movl %eax, -0x770(%rbp)
movl -0x770(%rbp), %eax
movl %eax, -0x6e4(%rbp)
movl %eax, -0x6e8(%rbp)
movl %eax, -0x6ec(%rbp)
movl %eax, -0x6f0(%rbp)
movl -0x6ec(%rbp), %edx
movl -0x6e8(%rbp), %ecx
movl -0x6e4(%rbp), %eax
movd -0x6f0(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movaps %xmm0, -0x700(%rbp)
movaps -0x700(%rbp), %xmm0
movaps %xmm0, -0x8b0(%rbp)
movl -0x7bc(%rbp), %eax
movl %eax, -0x774(%rbp)
movl -0x774(%rbp), %eax
movl %eax, -0x6c4(%rbp)
movl %eax, -0x6c8(%rbp)
movl %eax, -0x6cc(%rbp)
movl %eax, -0x6d0(%rbp)
movl -0x6cc(%rbp), %edx
movl -0x6c8(%rbp), %ecx
movl -0x6c4(%rbp), %eax
movd -0x6d0(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movaps %xmm0, -0x6e0(%rbp)
movaps -0x6e0(%rbp), %xmm0
movaps %xmm0, -0x8c0(%rbp)
movl $0x0, -0x778(%rbp)
movl -0x778(%rbp), %eax
movl %eax, -0x6a4(%rbp)
movl %eax, -0x6a8(%rbp)
movl %eax, -0x6ac(%rbp)
movl %eax, -0x6b0(%rbp)
movl -0x6ac(%rbp), %edx
movl -0x6a8(%rbp), %ecx
movl -0x6a4(%rbp), %eax
movd -0x6b0(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movaps %xmm0, -0x6c0(%rbp)
movaps -0x6c0(%rbp), %xmm0
movaps %xmm0, -0x8d0(%rbp)
movl $0x1, -0x77c(%rbp)
movl -0x77c(%rbp), %eax
movl %eax, -0x684(%rbp)
movl %eax, -0x688(%rbp)
movl %eax, -0x68c(%rbp)
movl %eax, -0x690(%rbp)
movl -0x68c(%rbp), %edx
movl -0x688(%rbp), %ecx
movl -0x684(%rbp), %eax
movd -0x690(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movaps %xmm0, -0x6a0(%rbp)
movaps -0x6a0(%rbp), %xmm0
movaps %xmm0, -0x8e0(%rbp)
movl -0x7c0(%rbp), %eax
movl %eax, -0x780(%rbp)
movl -0x780(%rbp), %eax
movl %eax, -0x664(%rbp)
movl %eax, -0x668(%rbp)
movl %eax, -0x66c(%rbp)
movl %eax, -0x670(%rbp)
movl -0x66c(%rbp), %edx
movl -0x668(%rbp), %ecx
movl -0x664(%rbp), %eax
movd -0x670(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movaps %xmm0, -0x680(%rbp)
movaps -0x680(%rbp), %xmm0
movaps %xmm0, -0x8f0(%rbp)
movl $0xffffffff, -0x784(%rbp) # imm = 0xFFFFFFFF
movl -0x784(%rbp), %eax
movl %eax, -0x644(%rbp)
movl %eax, -0x648(%rbp)
movl %eax, -0x64c(%rbp)
movl %eax, -0x650(%rbp)
movl -0x64c(%rbp), %edx
movl -0x648(%rbp), %ecx
movl -0x644(%rbp), %eax
movd -0x650(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movaps %xmm0, -0x660(%rbp)
movaps -0x660(%rbp), %xmm0
movaps %xmm0, -0x900(%rbp)
movl $0x0, -0x5a4(%rbp)
movl $0x1, -0x5a8(%rbp)
movl $0x2, -0x5ac(%rbp)
movl $0x3, -0x5b0(%rbp)
movl -0x5ac(%rbp), %edx
movl -0x5a8(%rbp), %ecx
movl -0x5a4(%rbp), %eax
movd -0x5b0(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movaps %xmm0, -0x5c0(%rbp)
movaps -0x5c0(%rbp), %xmm0
movaps %xmm0, -0x910(%rbp)
movl $0x0, -0x5c4(%rbp)
movl $0xffffffff, -0x5c8(%rbp) # imm = 0xFFFFFFFF
movl $0xfffffffe, -0x5cc(%rbp) # imm = 0xFFFFFFFE
movl $0xfffffffd, -0x5d0(%rbp) # imm = 0xFFFFFFFD
movl -0x5cc(%rbp), %edx
movl -0x5c8(%rbp), %ecx
movl -0x5c4(%rbp), %eax
movd -0x5d0(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movaps %xmm0, -0x5e0(%rbp)
movaps -0x5e0(%rbp), %xmm0
movaps %xmm0, -0x920(%rbp)
movaps -0x890(%rbp), %xmm0
movaps %xmm0, -0x930(%rbp)
movaps -0x890(%rbp), %xmm0
movaps %xmm0, -0x940(%rbp)
movaps -0x890(%rbp), %xmm0
movaps %xmm0, -0x950(%rbp)
movl -0x7cc(%rbp), %eax
movl %eax, -0x788(%rbp)
movl -0x788(%rbp), %eax
movl %eax, -0x624(%rbp)
movl %eax, -0x628(%rbp)
movl %eax, -0x62c(%rbp)
movl %eax, -0x630(%rbp)
movl -0x62c(%rbp), %edx
movl -0x628(%rbp), %ecx
movl -0x624(%rbp), %eax
movd -0x630(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movaps %xmm0, -0x640(%rbp)
movaps -0x640(%rbp), %xmm0
movaps %xmm0, -0x960(%rbp)
movl -0x7b4(%rbp), %eax
movl %eax, -0x78c(%rbp)
movl -0x78c(%rbp), %eax
movl %eax, -0x604(%rbp)
movl %eax, -0x608(%rbp)
movl %eax, -0x60c(%rbp)
movl %eax, -0x610(%rbp)
movl -0x60c(%rbp), %edx
movl -0x608(%rbp), %ecx
movl -0x604(%rbp), %eax
movd -0x610(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movdqa %xmm0, -0x620(%rbp)
movdqa -0x620(%rbp), %xmm0
movdqa %xmm0, -0x970(%rbp)
movl -0x7cc(%rbp), %edi
movl -0x7b4(%rbp), %esi
callq 0x1c39b0
movq %rax, -0x818(%rbp)
cmpq $0x0, -0x818(%rbp)
jne 0x6845bf
movq $0x0, -0x798(%rbp)
jmp 0x685948
movq -0x818(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x4401004, %ecx        # imm = 0x4401004
movl %ecx, 0xc(%rax)
movq -0x818(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x20000, %ecx          # imm = 0x20000
movl %ecx, 0xc(%rax)
movl -0x7b4(%rbp), %eax
addl -0x7c8(%rbp), %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c3660
movq %rax, -0x7e8(%rbp)
movl -0x7b4(%rbp), %eax
addl -0x7c8(%rbp), %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c3660
movq %rax, -0x7f0(%rbp)
movl -0x7b4(%rbp), %eax
addl -0x7c8(%rbp), %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c3660
movq %rax, -0x7f8(%rbp)
movq -0x7e8(%rbp), %rax
movslq -0x7c4(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x800(%rbp)
movq -0x7f0(%rbp), %rax
movslq -0x7c4(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x808(%rbp)
movq -0x7f8(%rbp), %rax
movslq -0x7c4(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x810(%rbp)
cmpq $0x0, -0x7e8(%rbp)
jne 0x6846b3
movq $0x0, -0x798(%rbp)
jmp 0x685948
cmpq $0x0, -0x7f0(%rbp)
jne 0x6846cd
movq $0x0, -0x798(%rbp)
jmp 0x685948
cmpq $0x0, -0x7f8(%rbp)
jne 0x6846e7
movq $0x0, -0x798(%rbp)
jmp 0x685948
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x6847c8
movl -0x7cc(%rbp), %eax
addl -0x7c4(%rbp), %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c3660
movq %rax, -0x7e0(%rbp)
cmpq $0x0, -0x7e0(%rbp)
jne 0x68472f
movq $0x0, -0x798(%rbp)
jmp 0x685948
movl $0x0, -0x81c(%rbp)
movl -0x81c(%rbp), %eax
cmpl -0x7cc(%rbp), %eax
jge 0x684786
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x7a0(%rbp), %rcx
movslq -0x81c(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movl (%rax,%rcx,4), %edx
movq -0x7e0(%rbp), %rax
movslq -0x81c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x81c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x81c(%rbp)
jmp 0x684739
movl -0x7cc(%rbp), %eax
movl %eax, -0x81c(%rbp)
movl -0x81c(%rbp), %eax
cmpl -0x7d0(%rbp), %eax
jge 0x6847c6
movq -0x7e0(%rbp), %rax
movslq -0x81c(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x81c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x81c(%rbp)
jmp 0x684792
jmp 0x6847c8
movl $0x0, -0x820(%rbp)
movl -0x820(%rbp), %eax
cmpl -0x7b4(%rbp), %eax
jge 0x68481f
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x7b0(%rbp), %rcx
movslq -0x820(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movl (%rax,%rcx,4), %edx
movq -0x800(%rbp), %rax
movslq -0x820(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x820(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x820(%rbp)
jmp 0x6847d2
xorl %eax, %eax
subl -0x7c4(%rbp), %eax
movl %eax, -0x820(%rbp)
cmpl $0x0, -0x820(%rbp)
jge 0x68485c
movq -0x800(%rbp), %rax
movslq -0x820(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x820(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x820(%rbp)
jmp 0x68482d
movl -0x7b4(%rbp), %eax
movl %eax, -0x820(%rbp)
movl -0x820(%rbp), %eax
cmpl -0x7d4(%rbp), %eax
jge 0x68489c
movq -0x800(%rbp), %rax
movslq -0x820(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x820(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x820(%rbp)
jmp 0x684868
movl $0x0, -0x820(%rbp)
movl -0x820(%rbp), %eax
cmpl -0x7b4(%rbp), %eax
jge 0x6848f1
movq -0x808(%rbp), %rax
movslq -0x820(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x82c(%rbp), %edx
movq -0x810(%rbp), %rax
movslq -0x820(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x820(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x820(%rbp)
jmp 0x6848a6
xorl %eax, %eax
subl -0x7c4(%rbp), %eax
movl %eax, -0x820(%rbp)
cmpl $0x0, -0x820(%rbp)
jge 0x684947
movl -0x82c(%rbp), %edx
movq -0x808(%rbp), %rax
movslq -0x820(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x82c(%rbp), %edx
movq -0x810(%rbp), %rax
movslq -0x820(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x820(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x820(%rbp)
jmp 0x6848ff
movl -0x7b4(%rbp), %eax
movl %eax, -0x820(%rbp)
movl -0x820(%rbp), %eax
movl -0x7b4(%rbp), %ecx
addl -0x7c4(%rbp), %ecx
cmpl %ecx, %eax
jge 0x6849a8
movl -0x82c(%rbp), %edx
movq -0x808(%rbp), %rax
movslq -0x820(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x82c(%rbp), %edx
movq -0x810(%rbp), %rax
movslq -0x820(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x820(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x820(%rbp)
jmp 0x684953
movl $0x0, -0x81c(%rbp)
movl -0x81c(%rbp), %eax
cmpl -0x7cc(%rbp), %eax
jge 0x6856ad
movdqa -0x8a0(%rbp), %xmm0
movdqa %xmm0, -0x980(%rbp)
movdqa -0x8a0(%rbp), %xmm0
movdqa %xmm0, -0x990(%rbp)
movdqa -0x890(%rbp), %xmm0
movdqa %xmm0, -0x9a0(%rbp)
movdqa -0x890(%rbp), %xmm0
movdqa %xmm0, -0x9b0(%rbp)
movdqa -0x920(%rbp), %xmm0
movdqa %xmm0, -0x9c0(%rbp)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xab0(%rbp)
movq 0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0xaa8(%rbp)
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x684a58
movq -0x7e0(%rbp), %rax
movl -0x81c(%rbp), %ecx
addl $0x0, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xab4(%rbp)
jmp 0x684a95
movl -0x81c(%rbp), %eax
addl $0x0, %eax
cmpl -0x7cc(%rbp), %eax
jl 0x684a7a
movl -0x7cc(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xab8(%rbp)
jmp 0x684a89
movl -0x81c(%rbp), %eax
addl $0x0, %eax
movl %eax, -0xab8(%rbp)
movl -0xab8(%rbp), %eax
movl %eax, -0xab4(%rbp)
movq -0xab0(%rbp), %rax
movl -0xaa8(%rbp), %ecx
movl -0xab4(%rbp), %edx
imull %edx, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x9c8(%rbp)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xac8(%rbp)
movq 0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0xabc(%rbp)
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x684b00
movq -0x7e0(%rbp), %rax
movl -0x81c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xacc(%rbp)
jmp 0x684b3d
movl -0x81c(%rbp), %eax
addl $0x1, %eax
cmpl -0x7cc(%rbp), %eax
jl 0x684b22
movl -0x7cc(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xad0(%rbp)
jmp 0x684b31
movl -0x81c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xad0(%rbp)
movl -0xad0(%rbp), %eax
movl %eax, -0xacc(%rbp)
movq -0xac8(%rbp), %rax
movl -0xabc(%rbp), %ecx
movl -0xacc(%rbp), %edx
imull %edx, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x9d0(%rbp)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xae0(%rbp)
movq 0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0xad4(%rbp)
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x684ba8
movq -0x7e0(%rbp), %rax
movl -0x81c(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xae4(%rbp)
jmp 0x684be5
movl -0x81c(%rbp), %eax
addl $0x2, %eax
cmpl -0x7cc(%rbp), %eax
jl 0x684bca
movl -0x7cc(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xae8(%rbp)
jmp 0x684bd9
movl -0x81c(%rbp), %eax
addl $0x2, %eax
movl %eax, -0xae8(%rbp)
movl -0xae8(%rbp), %eax
movl %eax, -0xae4(%rbp)
movq -0xae0(%rbp), %rax
movl -0xad4(%rbp), %ecx
movl -0xae4(%rbp), %edx
imull %edx, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x9d8(%rbp)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xaf8(%rbp)
movq 0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0xaec(%rbp)
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x684c50
movq -0x7e0(%rbp), %rax
movl -0x81c(%rbp), %ecx
addl $0x3, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xafc(%rbp)
jmp 0x684c8d
movl -0x81c(%rbp), %eax
addl $0x3, %eax
cmpl -0x7cc(%rbp), %eax
jl 0x684c72
movl -0x7cc(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xb00(%rbp)
jmp 0x684c81
movl -0x81c(%rbp), %eax
addl $0x3, %eax
movl %eax, -0xb00(%rbp)
movl -0xb00(%rbp), %eax
movl %eax, -0xafc(%rbp)
movq -0xaf8(%rbp), %rax
movl -0xaec(%rbp), %ecx
movl -0xafc(%rbp), %edx
imull %edx, %ecx
movslq %ecx, %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, -0x9e0(%rbp)
movaps -0x910(%rbp), %xmm1
movaps -0x960(%rbp), %xmm0
movaps %xmm1, -0x530(%rbp)
movaps %xmm0, -0x540(%rbp)
movaps -0x540(%rbp), %xmm1
movaps -0x530(%rbp), %xmm0
movaps %xmm1, -0x100(%rbp)
movaps %xmm0, -0x110(%rbp)
movaps -0x100(%rbp), %xmm0
movaps -0x110(%rbp), %xmm1
pcmpgtd %xmm1, %xmm0
movdqa %xmm0, -0x9f0(%rbp)
movl $0x0, -0x820(%rbp)
movl -0x820(%rbp), %eax
movl -0x7b4(%rbp), %ecx
addl -0x7c4(%rbp), %ecx
cmpl %ecx, %eax
jge 0x68565a
movaps -0x980(%rbp), %xmm0
movaps %xmm0, -0xa10(%rbp)
movaps -0x990(%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, -0x980(%rbp)
movq -0x808(%rbp), %rax
movslq -0x820(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x974(%rbp)
movaps -0x9b0(%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, -0x9b0(%rbp)
movq -0x810(%rbp), %rax
movslq -0x820(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x9a4(%rbp)
movaps -0x980(%rbp), %xmm1
movaps -0x8b0(%rbp), %xmm0
movaps %xmm1, -0x3f0(%rbp)
movaps %xmm0, -0x400(%rbp)
movaps -0x3f0(%rbp), %xmm1
movaps -0x400(%rbp), %xmm0
psubd %xmm0, %xmm1
movaps -0x9b0(%rbp), %xmm2
movaps -0x8c0(%rbp), %xmm0
movaps %xmm2, -0x410(%rbp)
movaps %xmm0, -0x420(%rbp)
movaps -0x410(%rbp), %xmm0
movaps -0x420(%rbp), %xmm2
psubd %xmm2, %xmm0
movaps %xmm1, -0x470(%rbp)
movaps %xmm0, -0x480(%rbp)
movaps -0x470(%rbp), %xmm0
movaps -0x480(%rbp), %xmm1
pmaxsd %xmm1, %xmm0
movaps %xmm0, -0x9b0(%rbp)
movaps -0x990(%rbp), %xmm1
movaps -0x8b0(%rbp), %xmm0
movaps %xmm1, -0x430(%rbp)
movaps %xmm0, -0x440(%rbp)
movaps -0x430(%rbp), %xmm1
movaps -0x440(%rbp), %xmm0
psubd %xmm0, %xmm1
movaps -0x9a0(%rbp), %xmm2
movaps -0x8c0(%rbp), %xmm0
movaps %xmm2, -0x450(%rbp)
movaps %xmm0, -0x460(%rbp)
movaps -0x450(%rbp), %xmm0
movaps -0x460(%rbp), %xmm2
psubd %xmm2, %xmm0
movaps %xmm1, -0x490(%rbp)
movaps %xmm0, -0x4a0(%rbp)
movaps -0x490(%rbp), %xmm0
movaps -0x4a0(%rbp), %xmm1
pmaxsd %xmm1, %xmm0
movaps %xmm0, -0x9a0(%rbp)
movq -0x9c8(%rbp), %rax
movq -0x800(%rbp), %rdi
movslq -0x820(%rbp), %rcx
movl %ecx, %r8d
movslq (%rdi,%rcx,4), %rcx
movl (%rax,%rcx,4), %esi
movq -0x9d0(%rbp), %rax
movl %r8d, %ecx
decl %ecx
movslq %ecx, %rcx
movslq (%rdi,%rcx,4), %rcx
movl (%rax,%rcx,4), %edx
movq -0x9d8(%rbp), %rax
movl %r8d, %ecx
addl $-0x2, %ecx
movslq %ecx, %rcx
movslq (%rdi,%rcx,4), %rcx
movl (%rax,%rcx,4), %ecx
movq -0x9e0(%rbp), %rax
addl $-0x3, %r8d
movslq %r8d, %r8
movslq (%rdi,%r8,4), %rdi
movl (%rax,%rdi,4), %eax
movl %esi, -0x5e4(%rbp)
movl %edx, -0x5e8(%rbp)
movl %ecx, -0x5ec(%rbp)
movl %eax, -0x5f0(%rbp)
movl -0x5ec(%rbp), %edx
movl -0x5e8(%rbp), %ecx
movl -0x5e4(%rbp), %eax
movd -0x5f0(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movaps %xmm0, -0x600(%rbp)
movaps -0x600(%rbp), %xmm0
movaps %xmm0, -0xa00(%rbp)
movaps -0xa10(%rbp), %xmm1
movaps -0xa00(%rbp), %xmm0
movaps %xmm1, -0x390(%rbp)
movaps %xmm0, -0x3a0(%rbp)
movaps -0x390(%rbp), %xmm0
movaps -0x3a0(%rbp), %xmm1
paddd %xmm1, %xmm0
movaps %xmm0, -0xa10(%rbp)
movaps -0xa10(%rbp), %xmm1
movaps -0x9a0(%rbp), %xmm0
movaps %xmm1, -0x4b0(%rbp)
movaps %xmm0, -0x4c0(%rbp)
movaps -0x4b0(%rbp), %xmm0
movaps -0x4c0(%rbp), %xmm1
pmaxsd %xmm1, %xmm0
movaps %xmm0, -0x990(%rbp)
movaps -0x990(%rbp), %xmm1
movaps -0x9b0(%rbp), %xmm0
movaps %xmm1, -0x4d0(%rbp)
movaps %xmm0, -0x4e0(%rbp)
movaps -0x4d0(%rbp), %xmm0
movaps -0x4e0(%rbp), %xmm1
pmaxsd %xmm1, %xmm0
movaps %xmm0, -0x990(%rbp)
movaps -0x990(%rbp), %xmm1
movaps -0x8d0(%rbp), %xmm0
movaps %xmm1, -0x4f0(%rbp)
movaps %xmm0, -0x500(%rbp)
movaps -0x4f0(%rbp), %xmm0
movaps -0x500(%rbp), %xmm1
pmaxsd %xmm1, %xmm0
movaps %xmm0, -0x990(%rbp)
movaps -0x9c0(%rbp), %xmm1
movaps -0x900(%rbp), %xmm0
movaps %xmm1, -0x350(%rbp)
movaps %xmm0, -0x360(%rbp)
movaps -0x350(%rbp), %xmm0
movaps -0x360(%rbp), %xmm1
pcmpeqd %xmm1, %xmm0
movaps %xmm0, -0xa20(%rbp)
movaps -0xa20(%rbp), %xmm1
movaps -0x990(%rbp), %xmm0
movaps %xmm1, -0x330(%rbp)
movaps %xmm0, -0x340(%rbp)
movaps -0x330(%rbp), %xmm0
pcmpeqd %xmm1, %xmm1
pxor %xmm1, %xmm0
pand -0x340(%rbp), %xmm0
movdqa %xmm0, -0x990(%rbp)
movdqa -0x9b0(%rbp), %xmm2
movdqa -0x890(%rbp), %xmm1
movdqa -0xa20(%rbp), %xmm0
movdqa %xmm2, -0x1e0(%rbp)
movdqa %xmm1, -0x1f0(%rbp)
movdqa %xmm0, -0x200(%rbp)
movdqa -0x1e0(%rbp), %xmm1
movdqa -0x1f0(%rbp), %xmm2
movdqa -0x200(%rbp), %xmm0
pblendvb %xmm0, %xmm2, %xmm1
movaps %xmm1, %xmm0
movdqa %xmm0, -0x9b0(%rbp)
movdqa -0x9a0(%rbp), %xmm2
movdqa -0x890(%rbp), %xmm1
movdqa -0xa20(%rbp), %xmm0
movdqa %xmm2, -0x210(%rbp)
movdqa %xmm1, -0x220(%rbp)
movdqa %xmm0, -0x230(%rbp)
movdqa -0x210(%rbp), %xmm1
movdqa -0x220(%rbp), %xmm2
movdqa -0x230(%rbp), %xmm0
pblendvb %xmm0, %xmm2, %xmm1
movaps %xmm1, %xmm0
movdqa %xmm0, -0x9a0(%rbp)
movl -0x820(%rbp), %eax
cmpl -0x7c4(%rbp), %eax
jle 0x6851ca
movdqa -0x870(%rbp), %xmm1
movdqa -0x990(%rbp), %xmm0
movdqa %xmm1, -0x1c0(%rbp)
movdqa %xmm0, -0x1d0(%rbp)
movdqa -0x1c0(%rbp), %xmm0
movdqa -0x1d0(%rbp), %xmm1
pminsd %xmm1, %xmm0
movdqa %xmm0, -0x870(%rbp)
movdqa -0x880(%rbp), %xmm1
movdqa -0x990(%rbp), %xmm0
movdqa %xmm1, -0x510(%rbp)
movdqa %xmm0, -0x520(%rbp)
movdqa -0x510(%rbp), %xmm0
movdqa -0x520(%rbp), %xmm1
pmaxsd %xmm1, %xmm0
movdqa %xmm0, -0x880(%rbp)
movq -0x818(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movaps -0x990(%rbp), %xmm0
movl -0x81c(%rbp), %esi
movl -0x7cc(%rbp), %edx
movl -0x820(%rbp), %ecx
movl -0x7b4(%rbp), %r8d
callq 0x685960
movl -0x990(%rbp), %edx
movq -0x808(%rbp), %rax
movl -0x820(%rbp), %ecx
addl $-0x3, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
movl -0x9b0(%rbp), %edx
movq -0x810(%rbp), %rax
movl -0x820(%rbp), %ecx
addl $-0x3, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
movaps -0x9c0(%rbp), %xmm1
movaps -0x900(%rbp), %xmm0
movaps %xmm1, -0x40(%rbp)
movaps %xmm0, -0x50(%rbp)
movaps -0x40(%rbp), %xmm1
movaps -0x50(%rbp), %xmm0
pcmpgtd %xmm0, %xmm1
movaps -0x9c0(%rbp), %xmm2
movaps -0x970(%rbp), %xmm0
movaps %xmm2, -0x550(%rbp)
movaps %xmm0, -0x560(%rbp)
movaps -0x560(%rbp), %xmm2
movaps -0x550(%rbp), %xmm0
movaps %xmm2, -0xe0(%rbp)
movaps %xmm0, -0xf0(%rbp)
movaps -0xe0(%rbp), %xmm0
movaps -0xf0(%rbp), %xmm2
pcmpgtd %xmm2, %xmm0
movaps %xmm1, -0x120(%rbp)
movaps %xmm0, -0x130(%rbp)
movaps -0x120(%rbp), %xmm0
movaps -0x130(%rbp), %xmm1
pand %xmm1, %xmm0
movaps %xmm0, -0xa30(%rbp)
movaps -0xa30(%rbp), %xmm1
movaps -0x9f0(%rbp), %xmm0
movaps %xmm1, -0x140(%rbp)
movaps %xmm0, -0x150(%rbp)
movaps -0x140(%rbp), %xmm0
movaps -0x150(%rbp), %xmm1
pand %xmm1, %xmm0
movaps %xmm0, -0xa40(%rbp)
movaps -0x990(%rbp), %xmm1
movaps -0x930(%rbp), %xmm0
movaps %xmm1, -0x370(%rbp)
movaps %xmm0, -0x380(%rbp)
movaps -0x370(%rbp), %xmm0
movaps -0x380(%rbp), %xmm1
pcmpeqd %xmm1, %xmm0
movaps %xmm0, -0xa50(%rbp)
movaps -0x990(%rbp), %xmm1
movaps -0x930(%rbp), %xmm0
movaps %xmm1, -0x60(%rbp)
movaps %xmm0, -0x70(%rbp)
movaps -0x60(%rbp), %xmm0
movaps -0x70(%rbp), %xmm1
pcmpgtd %xmm1, %xmm0
movaps %xmm0, -0xa60(%rbp)
movaps -0xa60(%rbp), %xmm1
movaps -0xa40(%rbp), %xmm0
movaps %xmm1, -0x160(%rbp)
movaps %xmm0, -0x170(%rbp)
movaps -0x160(%rbp), %xmm0
movaps -0x170(%rbp), %xmm1
pand %xmm1, %xmm0
movaps %xmm0, -0xa70(%rbp)
movaps -0x9c0(%rbp), %xmm1
movaps -0x950(%rbp), %xmm0
movaps %xmm1, -0x570(%rbp)
movaps %xmm0, -0x580(%rbp)
movaps -0x580(%rbp), %xmm1
movaps -0x570(%rbp), %xmm0
movaps %xmm1, -0xc0(%rbp)
movaps %xmm0, -0xd0(%rbp)
movaps -0xc0(%rbp), %xmm0
movaps -0xd0(%rbp), %xmm1
pcmpgtd %xmm1, %xmm0
movdqa %xmm0, -0xa80(%rbp)
movdqa -0x930(%rbp), %xmm2
movdqa -0x990(%rbp), %xmm1
movdqa -0xa70(%rbp), %xmm0
movdqa %xmm2, -0x240(%rbp)
movdqa %xmm1, -0x250(%rbp)
movdqa %xmm0, -0x260(%rbp)
movdqa -0x240(%rbp), %xmm1
movdqa -0x250(%rbp), %xmm2
movdqa -0x260(%rbp), %xmm0
pblendvb %xmm0, %xmm2, %xmm1
movaps %xmm1, %xmm0
movdqa %xmm0, -0x930(%rbp)
movdqa -0x940(%rbp), %xmm2
movdqa -0x910(%rbp), %xmm1
movdqa -0xa70(%rbp), %xmm0
movdqa %xmm2, -0x270(%rbp)
movdqa %xmm1, -0x280(%rbp)
movdqa %xmm0, -0x290(%rbp)
movdqa -0x270(%rbp), %xmm1
movdqa -0x280(%rbp), %xmm2
movdqa -0x290(%rbp), %xmm0
pblendvb %xmm0, %xmm2, %xmm1
movaps %xmm1, %xmm0
movdqa %xmm0, -0x940(%rbp)
movdqa -0x950(%rbp), %xmm2
movdqa -0x9c0(%rbp), %xmm1
movdqa -0xa70(%rbp), %xmm0
movdqa %xmm2, -0x2a0(%rbp)
movdqa %xmm1, -0x2b0(%rbp)
movdqa %xmm0, -0x2c0(%rbp)
movdqa -0x2a0(%rbp), %xmm1
movdqa -0x2b0(%rbp), %xmm2
movdqa -0x2c0(%rbp), %xmm0
pblendvb %xmm0, %xmm2, %xmm1
movaps %xmm1, %xmm0
movdqa %xmm0, -0x950(%rbp)
movdqa -0xa80(%rbp), %xmm1
movdqa -0xa50(%rbp), %xmm0
movdqa %xmm1, -0x180(%rbp)
movdqa %xmm0, -0x190(%rbp)
movdqa -0x180(%rbp), %xmm0
pand -0x190(%rbp), %xmm0
movdqa %xmm0, -0xa70(%rbp)
movdqa -0xa70(%rbp), %xmm1
movdqa -0xa40(%rbp), %xmm0
movdqa %xmm1, -0x1a0(%rbp)
movdqa %xmm0, -0x1b0(%rbp)
movdqa -0x1a0(%rbp), %xmm0
pand -0x1b0(%rbp), %xmm0
movdqa %xmm0, -0xa70(%rbp)
movdqa -0x940(%rbp), %xmm2
movdqa -0x910(%rbp), %xmm1
movdqa -0xa70(%rbp), %xmm0
movdqa %xmm2, -0x2d0(%rbp)
movdqa %xmm1, -0x2e0(%rbp)
movdqa %xmm0, -0x2f0(%rbp)
movdqa -0x2d0(%rbp), %xmm1
movdqa -0x2e0(%rbp), %xmm2
movdqa -0x2f0(%rbp), %xmm0
pblendvb %xmm0, %xmm2, %xmm1
movaps %xmm1, %xmm0
movdqa %xmm0, -0x940(%rbp)
movdqa -0x950(%rbp), %xmm2
movdqa -0x9c0(%rbp), %xmm1
movdqa -0xa70(%rbp), %xmm0
movdqa %xmm2, -0x300(%rbp)
movdqa %xmm1, -0x310(%rbp)
movdqa %xmm0, -0x320(%rbp)
movdqa -0x300(%rbp), %xmm1
movdqa -0x310(%rbp), %xmm2
movdqa -0x320(%rbp), %xmm0
pblendvb %xmm0, %xmm2, %xmm1
movaps %xmm1, %xmm0
movdqa %xmm0, -0x950(%rbp)
movdqa -0x9c0(%rbp), %xmm1
movdqa -0x8e0(%rbp), %xmm0
movdqa %xmm1, -0x3b0(%rbp)
movdqa %xmm0, -0x3c0(%rbp)
movdqa -0x3b0(%rbp), %xmm0
movdqa -0x3c0(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x9c0(%rbp)
movl -0x820(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x820(%rbp)
jmp 0x684d0d
movdqa -0x910(%rbp), %xmm1
movdqa -0x8f0(%rbp), %xmm0
movdqa %xmm1, -0x3d0(%rbp)
movdqa %xmm0, -0x3e0(%rbp)
movdqa -0x3d0(%rbp), %xmm0
movdqa -0x3e0(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x910(%rbp)
movl -0x7c0(%rbp), %eax
addl -0x81c(%rbp), %eax
movl %eax, -0x81c(%rbp)
jmp 0x6849b2
leaq -0x930(%rbp), %rax
movq %rax, -0xa88(%rbp)
leaq -0x940(%rbp), %rax
movq %rax, -0xa90(%rbp)
leaq -0x950(%rbp), %rax
movq %rax, -0xa98(%rbp)
movl $0x0, -0xa9c(%rbp)
movl -0xa9c(%rbp), %eax
cmpl -0x7c0(%rbp), %eax
jge 0x68580a
movq -0xa88(%rbp), %rax
movl (%rax), %eax
cmpl -0x834(%rbp), %eax
jle 0x685736
movq -0xa88(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x834(%rbp)
movq -0xa90(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x824(%rbp)
movq -0xa98(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x828(%rbp)
jmp 0x6857be
movq -0xa88(%rbp), %rax
movl (%rax), %eax
cmpl -0x834(%rbp), %eax
jne 0x6857bc
movq -0xa98(%rbp), %rax
movl (%rax), %eax
cmpl -0x828(%rbp), %eax
jge 0x685778
movq -0xa90(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x824(%rbp)
movq -0xa98(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x828(%rbp)
jmp 0x6857ba
movq -0xa98(%rbp), %rax
movl (%rax), %eax
cmpl -0x828(%rbp), %eax
jne 0x6857b8
movq -0xa90(%rbp), %rax
movl (%rax), %eax
cmpl -0x824(%rbp), %eax
jge 0x6857b8
movq -0xa90(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x824(%rbp)
movq -0xa98(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x828(%rbp)
jmp 0x6857ba
jmp 0x6857bc
jmp 0x6857be
jmp 0x6857c0
movl -0xa9c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa9c(%rbp)
movq -0xa88(%rbp), %rax
addq $0x4, %rax
movq %rax, -0xa88(%rbp)
movq -0xa90(%rbp), %rax
addq $0x4, %rax
movq %rax, -0xa90(%rbp)
movq -0xa98(%rbp), %rax
addq $0x4, %rax
movq %rax, -0xa98(%rbp)
jmp 0x6856e1
movaps -0x870(%rbp), %xmm1
movaps -0x850(%rbp), %xmm0
movaps %xmm1, -0x590(%rbp)
movaps %xmm0, -0x5a0(%rbp)
movaps -0x5a0(%rbp), %xmm1
movaps -0x590(%rbp), %xmm0
movaps %xmm1, -0xa0(%rbp)
movaps %xmm0, -0xb0(%rbp)
movaps -0xa0(%rbp), %xmm1
movaps -0xb0(%rbp), %xmm0
pcmpgtd %xmm0, %xmm1
movaps -0x880(%rbp), %xmm2
movaps -0x860(%rbp), %xmm0
movaps %xmm2, -0x80(%rbp)
movaps %xmm0, -0x90(%rbp)
movaps -0x80(%rbp), %xmm0
movaps -0x90(%rbp), %xmm2
pcmpgtd %xmm2, %xmm0
movdqa %xmm1, -0x10(%rbp)
movdqa %xmm0, -0x20(%rbp)
movdqa -0x10(%rbp), %xmm0
por -0x20(%rbp), %xmm0
movdqa %xmm0, -0x30(%rbp)
movdqa -0x30(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x6858d1
movq -0x818(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
movl $0x0, -0x834(%rbp)
movl $0x0, -0x824(%rbp)
movl $0x0, -0x828(%rbp)
movl -0x834(%rbp), %ecx
movq -0x818(%rbp), %rax
movl %ecx, (%rax)
movl -0x824(%rbp), %ecx
movq -0x818(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x828(%rbp), %ecx
movq -0x818(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x7f8(%rbp), %rdi
callq 0x1c3590
movq -0x7f0(%rbp), %rdi
callq 0x1c3590
movq -0x7e8(%rbp), %rdi
callq 0x1c3590
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x68593a
movq -0x7e0(%rbp), %rdi
callq 0x1c3590
movq -0x818(%rbp), %rax
movq %rax, -0x798(%rbp)
movq -0x798(%rbp), %rax
addq $0xb00, %rsp            # imm = 0xB00
popq %rbp
retq
nopl (%rax,%rax)