// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sw_blocked_sse41_128_32.c
// Function: parasail_sw_rowcol_blocked_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)
{
    int32_t i = 0;
    int32_t j = 0;
    int32_t k = 0;
    int32_t segNum = 0;
    const int32_t n = 24; /* number of amino acids in table */
    const int32_t segWidth = 4; /* number of values in vector unit */
    const int32_t segLen = (s1Len + segWidth - 1) / segWidth;
    __m128i* const restrict vProfile = parasail_memalign___m128i(16, n * segLen);
    __m128i* restrict pvH = parasail_memalign___m128i(16, segLen);
    __m128i* const restrict pvE = parasail_memalign___m128i(16, segLen);
    int score = NEG_INF_32;
    __m128i vGapO = _mm_set1_epi32(open);
    __m128i vGapE = _mm_set1_epi32(gap);
    __m128i vZero = _mm_setzero_si128();
    __m128i vNegInf = _mm_set1_epi32(NEG_INF_32);
    __m128i vMaxH = vZero;
#ifdef PARASAIL_TABLE
    parasail_result_t *result = parasail_result_new_table1(segLen*segWidth, s2Len);
#else
#ifdef PARASAIL_ROWCOL
    parasail_result_t *result = parasail_result_new_rowcol1(segLen*segWidth, s2Len);
    const int32_t offset = segLen - 1;
    const int32_t position = s1Len % segWidth;
#else
    parasail_result_t *result = parasail_result_new();
#endif
#endif

    /* Generate query profile.
     * Rearrange query sequence & calculate the weight of match/mismatch.
     * Don't alias. */
    {
        int32_t index = 0;
        for (k=0; k<n; ++k) {
            for (i=0; i<segLen; ++i) {
                __m128i_32_t t;
                j = i*segWidth;
                for (segNum=0; segNum<segWidth; ++segNum) {
                    t.v[segNum] = j >= s1Len ? 0 : matrix->matrix[matrix->size*matrix->mapper[(unsigned char)s1[j]]];
                    j += 1;
                }
                _mm_store_si128(&vProfile[index], t.m);
                ++index;
            }
        }
    }

    /* initialize H and E */
    {
        int32_t index = 0;
        for (i=0; i<segLen; ++i) {
            __m128i_32_t h;
            __m128i_32_t e;
            for (segNum=0; segNum<segWidth; ++segNum) {
                h.v[segNum] = 0;
                e.v[segNum] = -open;
            }
            _mm_store_si128(&pvH[index], h.m);
            _mm_store_si128(&pvE[index], e.m);
            ++index;
        }
    }

    /* outer loop over database sequence */
    for (j=0; j<s2Len; ++j) {
        __m128i vX = vZero;
        __m128i vF = vNegInf;
        const __m128i* pvP = vProfile + matrix->mapper[(unsigned char)s2[j]] * segLen;
        for (i=0; i<segLen; ++i) {
            __m128i vP;
            __m128i vH;
            __m128i vE;
            __m128i vT1;

            vH = _mm_load_si128(pvH + i);
            vE = _mm_load_si128(pvE + i);

            vT1 = _mm_srli_si128(vH, 12); /* rshift 3 */
            vH = _mm_slli_si128(vH, 4); /* lshift 1 */
            vH = _mm_or_si128(vH, vX);
            vX = vT1;

            vP = _mm_load_si128(pvP + i);
            vH = _mm_add_epi32(vH, vP);
            vH = _mm_max_epi32(vH, vE);
            vH = _mm_max_epi32(vH, vZero);

            vF = _mm_srli_si128(vF, 12);
            vF = _mm_or_si128(vF, _mm_slli_si128(vH, 4));
            vF = _mm_sub_epi32(vF, vGapO);
            if (_mm_movemask_epi8(_mm_cmpgt_epi32(vF, vZero))) {
                __m128i vT2 = vF;
                while (_mm_movemask_epi8(_mm_cmpgt_epi32(vT2, vZero))) {
                    vT2 = _mm_slli_si128(vT2, 4);
                    vT2 = _mm_sub_epi32(vT2, vGapE);
                    vF = _mm_max_epi32(vF, vT2);
                }
                vH = _mm_max_epi32(vH, vF);
                vF = _mm_add_epi32(vF, vGapO);
                vF = _mm_sub_epi32(vF, vGapE);
                vF = _mm_max_epi32(vH, vF);
            }
            else {
                vF = vH;
            }

            _mm_store_si128(pvH + i, vH);
#ifdef PARASAIL_TABLE
            arr_store_si128(result->tables->score_table, vH, i, segWidth, j, s2Len);
#endif
            vMaxH = _mm_max_epi32(vMaxH, vH);

            vH = _mm_sub_epi32(vH, vGapO);
            vE = _mm_sub_epi32(vE, vGapE);
            vE = _mm_max_epi32(vE, vH);
            _mm_store_si128(pvE + i, vE);

        }

#ifdef PARASAIL_ROWCOL
        /* extract last value from the column */
        {
            __m128i vH = _mm_load_si128(pvH + offset);
            for (k=0; k<position; ++k) {
                vH = _mm_slli_si128(vH, 2);
            }
            result->rowcols->score_row[j] = (int16_t) _mm_extract_epi16 (vH, 7);
        }
#endif
    }

#ifdef PARASAIL_ROWCOL
    for (i=0; i<segLen; ++i) {
        __m128i vH = _mm_load_si128(pvH + i);
        arr_store_col(result->rowcols->score_col, vH, i, segWidth);
    }
#endif

    /* max in vec */
    for (j=0; j<segWidth; ++j) {
        int32_t value = (int32_t) _mm_extract_epi32(vMaxH, 3);
        if (value > score) {
            score = value;
        }
        vMaxH = _mm_slli_si128(vMaxH, 4);
    }

    result->score = score;
    result->flag |= PARASAIL_FLAG_SW | PARASAIL_FLAG_BLOCKED
        | PARASAIL_FLAG_BITS_16 | PARASAIL_FLAG_LANES_8;
#ifdef PARASAIL_TABLE
    result->flag |= PARASAIL_FLAG_TABLE;
#endif
#ifdef PARASAIL_ROWCOL
    result->flag |= PARASAIL_FLAG_ROWCOL;
#endif

    parasail_free(pvE);
    parasail_free(pvH);
    parasail_free(vProfile);

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x570, %rsp            # imm = 0x570
movq 0x10(%rbp), %rax
movq %rdi, -0x3a8(%rbp)
movl %esi, -0x3ac(%rbp)
movq %rdx, -0x3b8(%rbp)
movl %ecx, -0x3bc(%rbp)
movl %r8d, -0x3c0(%rbp)
movl %r9d, -0x3c4(%rbp)
movl $0x0, -0x3c8(%rbp)
movl $0x0, -0x3cc(%rbp)
movl $0x0, -0x3d0(%rbp)
movl $0x0, -0x3d4(%rbp)
movl $0x18, -0x3d8(%rbp)
movl $0x4, -0x3dc(%rbp)
movl -0x3ac(%rbp), %ecx
movl %ecx, %eax
addl $0x3, %eax
addl $0x6, %ecx
testl %eax, %eax
cmovsl %ecx, %eax
sarl $0x2, %eax
movl %eax, -0x3e0(%rbp)
movl -0x3e0(%rbp), %ecx
shll $0x3, %ecx
movl %ecx, %eax
leal (%rax,%rax,2), %eax
movslq %eax, %rsi
movl $0x10, %edi
movq %rdi, -0x560(%rbp)
callq 0x381e20
movq -0x560(%rbp), %rdi
movq %rax, -0x3e8(%rbp)
movslq -0x3e0(%rbp), %rsi
callq 0x381e20
movq -0x560(%rbp), %rdi
movq %rax, -0x3f0(%rbp)
movslq -0x3e0(%rbp), %rsi
callq 0x381e20
movq %rax, -0x3f8(%rbp)
movl $0xc0000000, -0x3fc(%rbp) # imm = 0xC0000000
movl -0x3c0(%rbp), %eax
movl %eax, -0x394(%rbp)
movl -0x394(%rbp), %eax
movl %eax, -0x44(%rbp)
movl %eax, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl %eax, -0x50(%rbp)
movl -0x4c(%rbp), %edx
movl -0x48(%rbp), %ecx
movl -0x44(%rbp), %eax
movd -0x50(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movaps %xmm0, -0x60(%rbp)
movaps -0x60(%rbp), %xmm0
movaps %xmm0, -0x410(%rbp)
movl -0x3c4(%rbp), %eax
movl %eax, -0x398(%rbp)
movl -0x398(%rbp), %eax
movl %eax, -0x24(%rbp)
movl %eax, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl %eax, -0x30(%rbp)
movl -0x2c(%rbp), %edx
movl -0x28(%rbp), %ecx
movl -0x24(%rbp), %eax
movd -0x30(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movaps %xmm0, -0x40(%rbp)
movaps -0x40(%rbp), %xmm0
movaps %xmm0, -0x420(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x390(%rbp)
movaps -0x390(%rbp), %xmm0
movaps %xmm0, -0x430(%rbp)
movl $0xc0000000, -0x39c(%rbp) # imm = 0xC0000000
movl -0x39c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl %eax, -0x8(%rbp)
movl %eax, -0xc(%rbp)
movl %eax, -0x10(%rbp)
movl -0xc(%rbp), %edx
movl -0x8(%rbp), %ecx
movl -0x4(%rbp), %eax
movd -0x10(%rbp), %xmm0
pinsrd $0x1, %edx, %xmm0
pinsrd $0x2, %ecx, %xmm0
pinsrd $0x3, %eax, %xmm0
movdqa %xmm0, -0x20(%rbp)
movdqa -0x20(%rbp), %xmm0
movdqa %xmm0, -0x440(%rbp)
movdqa -0x430(%rbp), %xmm0
movdqa %xmm0, -0x450(%rbp)
movl -0x3e0(%rbp), %edi
shll $0x2, %edi
movl -0x3bc(%rbp), %esi
callq 0x1c3af0
movq %rax, -0x458(%rbp)
movl -0x3e0(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x45c(%rbp)
movl -0x3ac(%rbp), %eax
movl $0x4, %ecx
cltd
idivl %ecx
movl %edx, -0x460(%rbp)
movl $0x0, -0x464(%rbp)
movl $0x0, -0x3d0(%rbp)
cmpl $0x18, -0x3d0(%rbp)
jge 0x789967
movl $0x0, -0x3c8(%rbp)
movl -0x3c8(%rbp), %eax
cmpl -0x3e0(%rbp), %eax
jge 0x789951
movl -0x3c8(%rbp), %eax
shll $0x2, %eax
movl %eax, -0x3cc(%rbp)
movl $0x0, -0x3d4(%rbp)
cmpl $0x4, -0x3d4(%rbp)
jge 0x7898ef
movl -0x3cc(%rbp), %eax
cmpl -0x3ac(%rbp), %eax
jl 0x78987f
xorl %eax, %eax
movl %eax, -0x564(%rbp)
jmp 0x7898b8
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
movq 0x10(%rbp), %rdx
movq 0x10(%rdx), %rdx
movq -0x3a8(%rbp), %rsi
movslq -0x3cc(%rbp), %rdi
movzbl (%rsi,%rdi), %esi
imull (%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x564(%rbp)
movl -0x564(%rbp), %ecx
movslq -0x3d4(%rbp), %rax
movl %ecx, -0x480(%rbp,%rax,4)
movl -0x3cc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3cc(%rbp)
movl -0x3d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3d4(%rbp)
jmp 0x78985a
movq -0x3e8(%rbp), %rax
movslq -0x464(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x480(%rbp), %xmm0
movq %rax, -0x2f0(%rbp)
movdqa %xmm0, -0x300(%rbp)
movdqa -0x300(%rbp), %xmm0
movq -0x2f0(%rbp), %rax
movdqa %xmm0, (%rax)
movl -0x464(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x464(%rbp)
movl -0x3c8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c8(%rbp)
jmp 0x78982f
jmp 0x789953
movl -0x3d0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3d0(%rbp)
jmp 0x789818
movl $0x0, -0x484(%rbp)
movl $0x0, -0x3c8(%rbp)
movl -0x3c8(%rbp), %eax
cmpl -0x3e0(%rbp), %eax
jge 0x789a7a
movl $0x0, -0x3d4(%rbp)
cmpl $0x4, -0x3d4(%rbp)
jge 0x7899d9
movslq -0x3d4(%rbp), %rax
movl $0x0, -0x4a0(%rbp,%rax,4)
xorl %ecx, %ecx
subl -0x3c0(%rbp), %ecx
movslq -0x3d4(%rbp), %rax
movl %ecx, -0x4b0(%rbp,%rax,4)
movl -0x3d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3d4(%rbp)
jmp 0x789997
movq -0x3f0(%rbp), %rax
movslq -0x484(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x4a0(%rbp), %xmm0
movq %rax, -0x308(%rbp)
movdqa %xmm0, -0x320(%rbp)
movdqa -0x320(%rbp), %xmm0
movq -0x308(%rbp), %rax
movdqa %xmm0, (%rax)
movq -0x3f8(%rbp), %rax
movslq -0x484(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x4b0(%rbp), %xmm0
movq %rax, -0x328(%rbp)
movdqa %xmm0, -0x340(%rbp)
movdqa -0x340(%rbp), %xmm0
movq -0x328(%rbp), %rax
movdqa %xmm0, (%rax)
movl -0x484(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x484(%rbp)
movl -0x3c8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c8(%rbp)
jmp 0x78997b
movl $0x0, -0x3cc(%rbp)
movl -0x3cc(%rbp), %eax
cmpl -0x3bc(%rbp), %eax
jge 0x78a17f
movdqa -0x430(%rbp), %xmm0
movdqa %xmm0, -0x4c0(%rbp)
movdqa -0x440(%rbp), %xmm0
movdqa %xmm0, -0x4d0(%rbp)
movq -0x3e8(%rbp), %rax
movq 0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x3b8(%rbp), %rdx
movslq -0x3cc(%rbp), %rsi
movzbl (%rdx,%rsi), %edx
movl (%rcx,%rdx,4), %ecx
imull -0x3e0(%rbp), %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x4d8(%rbp)
movl $0x0, -0x3c8(%rbp)
movl -0x3c8(%rbp), %eax
cmpl -0x3e0(%rbp), %eax
jge 0x78a0d5
movq -0x3f0(%rbp), %rax
movslq -0x3c8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x2c8(%rbp)
movq -0x2c8(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x500(%rbp)
movq -0x3f8(%rbp), %rax
movslq -0x3c8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x2d0(%rbp)
movq -0x2d0(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x510(%rbp)
movaps -0x500(%rbp), %xmm0
psrldq $0xc, %xmm0             # xmm0 = xmm0[12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
movaps %xmm0, -0x520(%rbp)
movaps -0x500(%rbp), %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm0, -0x500(%rbp)
movaps -0x500(%rbp), %xmm1
movaps -0x4c0(%rbp), %xmm0
movaps %xmm1, -0x290(%rbp)
movaps %xmm0, -0x2a0(%rbp)
movaps -0x290(%rbp), %xmm0
movaps -0x2a0(%rbp), %xmm1
por %xmm1, %xmm0
movaps %xmm0, -0x500(%rbp)
movaps -0x520(%rbp), %xmm0
movaps %xmm0, -0x4c0(%rbp)
movq -0x4d8(%rbp), %rax
movslq -0x3c8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x2d8(%rbp)
movq -0x2d8(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x4f0(%rbp)
movaps -0x500(%rbp), %xmm1
movaps -0x4f0(%rbp), %xmm0
movaps %xmm1, -0x250(%rbp)
movaps %xmm0, -0x260(%rbp)
movaps -0x250(%rbp), %xmm0
movaps -0x260(%rbp), %xmm1
paddd %xmm1, %xmm0
movaps %xmm0, -0x500(%rbp)
movaps -0x500(%rbp), %xmm1
movaps -0x510(%rbp), %xmm0
movaps %xmm1, -0x170(%rbp)
movaps %xmm0, -0x180(%rbp)
movaps -0x170(%rbp), %xmm0
movaps -0x180(%rbp), %xmm1
pmaxsd %xmm1, %xmm0
movaps %xmm0, -0x500(%rbp)
movaps -0x500(%rbp), %xmm1
movaps -0x430(%rbp), %xmm0
movaps %xmm1, -0x190(%rbp)
movaps %xmm0, -0x1a0(%rbp)
movaps -0x190(%rbp), %xmm0
movaps -0x1a0(%rbp), %xmm1
pmaxsd %xmm1, %xmm0
movaps %xmm0, -0x500(%rbp)
movaps -0x4d0(%rbp), %xmm0
psrldq $0xc, %xmm0             # xmm0 = xmm0[12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
movaps %xmm0, -0x4d0(%rbp)
movaps -0x4d0(%rbp), %xmm1
movaps -0x500(%rbp), %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm1, -0x2b0(%rbp)
movaps %xmm0, -0x2c0(%rbp)
movaps -0x2b0(%rbp), %xmm0
movaps -0x2c0(%rbp), %xmm1
por %xmm1, %xmm0
movaps %xmm0, -0x4d0(%rbp)
movaps -0x4d0(%rbp), %xmm1
movaps -0x410(%rbp), %xmm0
movaps %xmm1, -0xd0(%rbp)
movaps %xmm0, -0xe0(%rbp)
movaps -0xd0(%rbp), %xmm0
movaps -0xe0(%rbp), %xmm1
psubd %xmm1, %xmm0
movaps %xmm0, -0x4d0(%rbp)
movaps -0x4d0(%rbp), %xmm1
movaps -0x430(%rbp), %xmm0
movaps %xmm1, -0x70(%rbp)
movaps %xmm0, -0x80(%rbp)
movaps -0x70(%rbp), %xmm0
movaps -0x80(%rbp), %xmm1
pcmpgtd %xmm1, %xmm0
movdqa %xmm0, -0xb0(%rbp)
movdqa -0xb0(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x789f41
movdqa -0x4d0(%rbp), %xmm0
movdqa %xmm0, -0x530(%rbp)
movaps -0x530(%rbp), %xmm1
movaps -0x430(%rbp), %xmm0
movaps %xmm1, -0x90(%rbp)
movaps %xmm0, -0xa0(%rbp)
movaps -0x90(%rbp), %xmm0
movaps -0xa0(%rbp), %xmm1
pcmpgtd %xmm1, %xmm0
movdqa %xmm0, -0xc0(%rbp)
movdqa -0xc0(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x789e4d
movaps -0x530(%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, -0x530(%rbp)
movdqa -0x530(%rbp), %xmm1
movdqa -0x420(%rbp), %xmm0
movdqa %xmm1, -0xf0(%rbp)
movdqa %xmm0, -0x100(%rbp)
movdqa -0xf0(%rbp), %xmm0
movdqa -0x100(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x530(%rbp)
movdqa -0x4d0(%rbp), %xmm1
movdqa -0x530(%rbp), %xmm0
movdqa %xmm1, -0x1b0(%rbp)
movdqa %xmm0, -0x1c0(%rbp)
movdqa -0x1b0(%rbp), %xmm0
movdqa -0x1c0(%rbp), %xmm1
pmaxsd %xmm1, %xmm0
movdqa %xmm0, -0x4d0(%rbp)
jmp 0x789d70
movdqa -0x500(%rbp), %xmm1
movdqa -0x4d0(%rbp), %xmm0
movdqa %xmm1, -0x1d0(%rbp)
movdqa %xmm0, -0x1e0(%rbp)
movdqa -0x1d0(%rbp), %xmm0
movdqa -0x1e0(%rbp), %xmm1
pmaxsd %xmm1, %xmm0
movdqa %xmm0, -0x500(%rbp)
movdqa -0x4d0(%rbp), %xmm1
movdqa -0x410(%rbp), %xmm0
movdqa %xmm1, -0x270(%rbp)
movdqa %xmm0, -0x280(%rbp)
movdqa -0x270(%rbp), %xmm0
movdqa -0x280(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x4d0(%rbp)
movdqa -0x4d0(%rbp), %xmm1
movdqa -0x420(%rbp), %xmm0
movdqa %xmm1, -0x110(%rbp)
movdqa %xmm0, -0x120(%rbp)
movdqa -0x110(%rbp), %xmm0
movdqa -0x120(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x4d0(%rbp)
movdqa -0x500(%rbp), %xmm1
movdqa -0x4d0(%rbp), %xmm0
movdqa %xmm1, -0x1f0(%rbp)
movdqa %xmm0, -0x200(%rbp)
movdqa -0x1f0(%rbp), %xmm0
movdqa -0x200(%rbp), %xmm1
pmaxsd %xmm1, %xmm0
movdqa %xmm0, -0x4d0(%rbp)
jmp 0x789f51
movdqa -0x500(%rbp), %xmm0
movdqa %xmm0, -0x4d0(%rbp)
movq -0x3f0(%rbp), %rax
movslq -0x3c8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x500(%rbp), %xmm0
movq %rax, -0x348(%rbp)
movdqa %xmm0, -0x360(%rbp)
movdqa -0x360(%rbp), %xmm0
movq -0x348(%rbp), %rax
movdqa %xmm0, (%rax)
movdqa -0x450(%rbp), %xmm1
movdqa -0x500(%rbp), %xmm0
movdqa %xmm1, -0x210(%rbp)
movdqa %xmm0, -0x220(%rbp)
movdqa -0x210(%rbp), %xmm0
movdqa -0x220(%rbp), %xmm1
pmaxsd %xmm1, %xmm0
movdqa %xmm0, -0x450(%rbp)
movdqa -0x500(%rbp), %xmm1
movdqa -0x410(%rbp), %xmm0
movdqa %xmm1, -0x130(%rbp)
movdqa %xmm0, -0x140(%rbp)
movdqa -0x130(%rbp), %xmm0
movdqa -0x140(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x500(%rbp)
movdqa -0x510(%rbp), %xmm1
movdqa -0x420(%rbp), %xmm0
movdqa %xmm1, -0x150(%rbp)
movdqa %xmm0, -0x160(%rbp)
movdqa -0x150(%rbp), %xmm0
movdqa -0x160(%rbp), %xmm1
psubd %xmm1, %xmm0
movdqa %xmm0, -0x510(%rbp)
movdqa -0x510(%rbp), %xmm1
movdqa -0x500(%rbp), %xmm0
movdqa %xmm1, -0x230(%rbp)
movdqa %xmm0, -0x240(%rbp)
movdqa -0x230(%rbp), %xmm0
movdqa -0x240(%rbp), %xmm1
pmaxsd %xmm1, %xmm0
movdqa %xmm0, -0x510(%rbp)
movq -0x3f8(%rbp), %rax
movslq -0x3c8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movdqa -0x510(%rbp), %xmm0
movq %rax, -0x368(%rbp)
movdqa %xmm0, -0x380(%rbp)
movdqa -0x380(%rbp), %xmm0
movq -0x368(%rbp), %rax
movdqa %xmm0, (%rax)
movl -0x3c8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c8(%rbp)
jmp 0x789afc
movq -0x3f0(%rbp), %rax
movslq -0x45c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x2e0(%rbp)
movq -0x2e0(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x540(%rbp)
movl $0x0, -0x3d0(%rbp)
movl -0x3d0(%rbp), %eax
cmpl -0x460(%rbp), %eax
jge 0x78a141
movaps -0x540(%rbp), %xmm0
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movdqa %xmm0, -0x540(%rbp)
movl -0x3d0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3d0(%rbp)
jmp 0x78a10e
movaps -0x540(%rbp), %xmm0
pextrw $0x7, %xmm0, %eax
movzwl %ax, %eax
movswl %ax, %edx
movq -0x458(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movslq -0x3cc(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x3cc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3cc(%rbp)
jmp 0x789a84
movl $0x0, -0x3c8(%rbp)
movl -0x3c8(%rbp), %eax
cmpl -0x3e0(%rbp), %eax
jge 0x78a1fe
movq -0x3f0(%rbp), %rax
movslq -0x3c8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x2e8(%rbp)
movq -0x2e8(%rbp), %rax
movdqa (%rax), %xmm0
movdqa %xmm0, -0x550(%rbp)
movq -0x458(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdi
movdqa -0x550(%rbp), %xmm0
movl -0x3c8(%rbp), %esi
movl $0x4, %edx
callq 0x78a2d0
movl -0x3c8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c8(%rbp)
jmp 0x78a189
movl $0x0, -0x3cc(%rbp)
cmpl $0x4, -0x3cc(%rbp)
jge 0x78a25c
movl -0x444(%rbp), %eax
movl %eax, -0x554(%rbp)
movl -0x554(%rbp), %eax
cmpl -0x3fc(%rbp), %eax
jle 0x78a237
movl -0x554(%rbp), %eax
movl %eax, -0x3fc(%rbp)
movaps -0x450(%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, -0x450(%rbp)
movl -0x3cc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3cc(%rbp)
jmp 0x78a208
movl -0x3fc(%rbp), %ecx
movq -0x458(%rbp), %rax
movl %ecx, (%rax)
movq -0x458(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x8202004, %ecx        # imm = 0x8202004
movl %ecx, 0xc(%rax)
movq -0x458(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40000, %ecx          # imm = 0x40000
movl %ecx, 0xc(%rax)
movq -0x3f8(%rbp), %rdi
callq 0x1c3590
movq -0x3f0(%rbp), %rdi
callq 0x1c3590
movq -0x3e8(%rbp), %rdi
callq 0x1c3590
movq -0x458(%rbp), %rax
addq $0x570, %rsp            # imm = 0x570
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop