// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sw_blocked_sse41_128_16.c
// Function: parasail_sw_rowcol_blocked_sse41_128_16
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 = 8; /* 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_16;
    __m128i vGapO = _mm_set1_epi16(open);
    __m128i vGapE = _mm_set1_epi16(gap);
    __m128i vZero = _mm_setzero_si128();
    __m128i vNegInf = _mm_set1_epi16(NEG_INF_16);
    __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_16_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_16_t h;
            __m128i_16_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, 14); /* rshift 3 */
            vH = _mm_slli_si128(vH, 2); /* lshift 1 */
            vH = _mm_or_si128(vH, vX);
            vX = vT1;

            vP = _mm_load_si128(pvP + i);
            vH = _mm_add_epi16(vH, vP);
            vH = _mm_max_epi16(vH, vE);
            vH = _mm_max_epi16(vH, vZero);

            vF = _mm_srli_si128(vF, 14);
            vF = _mm_or_si128(vF, _mm_slli_si128(vH, 2));
            vF = _mm_sub_epi16(vF, vGapO);
            if (_mm_movemask_epi8(_mm_cmpgt_epi16(vF, vZero))) {
                __m128i vT2 = vF;
                while (_mm_movemask_epi8(_mm_cmpgt_epi16(vT2, vZero))) {
                    vT2 = _mm_slli_si128(vT2, 2);
                    vT2 = _mm_sub_epi16(vT2, vGapE);
                    vF = _mm_max_epi16(vF, vT2);
                }
                vH = _mm_max_epi16(vH, vF);
                vF = _mm_add_epi16(vF, vGapO);
                vF = _mm_sub_epi16(vF, vGapE);
                vF = _mm_max_epi16(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_epi16(vMaxH, vH);

            vH = _mm_sub_epi16(vH, vGapO);
            vE = _mm_sub_epi16(vE, vGapE);
            vE = _mm_max_epi16(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) {
        int16_t value = (int16_t) _mm_extract_epi16(vMaxH, 7);
        if (value > score) {
            score = value;
        }
        vMaxH = _mm_slli_si128(vMaxH, 2);
    }

    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, -0x3a0(%rbp)
movl %esi, -0x3a4(%rbp)
movq %rdx, -0x3b0(%rbp)
movl %ecx, -0x3b4(%rbp)
movl %r8d, -0x3b8(%rbp)
movl %r9d, -0x3bc(%rbp)
movl $0x0, -0x3c0(%rbp)
movl $0x0, -0x3c4(%rbp)
movl $0x0, -0x3c8(%rbp)
movl $0x0, -0x3cc(%rbp)
movl $0x18, -0x3d0(%rbp)
movl $0x8, -0x3d4(%rbp)
movl -0x3a4(%rbp), %ecx
movl %ecx, %eax
addl $0x7, %eax
addl $0xe, %ecx
testl %eax, %eax
cmovsl %ecx, %eax
sarl $0x3, %eax
movl %eax, -0x3d8(%rbp)
movl -0x3d8(%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, -0x3e0(%rbp)
movslq -0x3d8(%rbp), %rsi
callq 0x381e20
movq -0x560(%rbp), %rdi
movq %rax, -0x3e8(%rbp)
movslq -0x3d8(%rbp), %rsi
callq 0x381e20
movq %rax, -0x3f0(%rbp)
movl $0xffffc000, -0x3f4(%rbp) # imm = 0xFFFFC000
movw -0x3b8(%rbp), %ax
movw %ax, -0x392(%rbp)
movw -0x392(%rbp), %ax
movw %ax, -0x558(%rbp)
movw %ax, -0x42(%rbp)
movw %ax, -0x44(%rbp)
movw %ax, -0x46(%rbp)
movw %ax, -0x48(%rbp)
movw %ax, -0x4a(%rbp)
movw %ax, -0x4c(%rbp)
movw %ax, -0x4e(%rbp)
movw %ax, -0x50(%rbp)
movzwl -0x50(%rbp), %eax
movd %eax, %xmm0
movzwl -0x4e(%rbp), %eax
pinsrw $0x1, %eax, %xmm0
movzwl -0x4c(%rbp), %eax
pinsrw $0x2, %eax, %xmm0
movzwl -0x4a(%rbp), %eax
pinsrw $0x3, %eax, %xmm0
movzwl -0x48(%rbp), %eax
pinsrw $0x4, %eax, %xmm0
movzwl -0x46(%rbp), %eax
pinsrw $0x5, %eax, %xmm0
movzwl -0x44(%rbp), %eax
pinsrw $0x6, %eax, %xmm0
movzwl -0x42(%rbp), %eax
pinsrw $0x7, %eax, %xmm0
movaps %xmm0, -0x60(%rbp)
movaps -0x60(%rbp), %xmm0
movaps %xmm0, -0x410(%rbp)
movw -0x3bc(%rbp), %ax
movw %ax, -0x394(%rbp)
movw -0x394(%rbp), %ax
movw %ax, -0x556(%rbp)
movw %ax, -0x22(%rbp)
movw %ax, -0x24(%rbp)
movw %ax, -0x26(%rbp)
movw %ax, -0x28(%rbp)
movw %ax, -0x2a(%rbp)
movw %ax, -0x2c(%rbp)
movw %ax, -0x2e(%rbp)
movw %ax, -0x30(%rbp)
movzwl -0x30(%rbp), %eax
movd %eax, %xmm0
movzwl -0x2e(%rbp), %eax
pinsrw $0x1, %eax, %xmm0
movzwl -0x2c(%rbp), %eax
pinsrw $0x2, %eax, %xmm0
movzwl -0x2a(%rbp), %eax
pinsrw $0x3, %eax, %xmm0
movzwl -0x28(%rbp), %eax
pinsrw $0x4, %eax, %xmm0
movzwl -0x26(%rbp), %eax
pinsrw $0x5, %eax, %xmm0
movzwl -0x24(%rbp), %eax
pinsrw $0x6, %eax, %xmm0
movzwl -0x22(%rbp), %eax
pinsrw $0x7, %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)
movw $0xc000, -0x396(%rbp)   # imm = 0xC000
movw -0x396(%rbp), %ax
movw %ax, -0x554(%rbp)
movw %ax, -0x2(%rbp)
movw %ax, -0x4(%rbp)
movw %ax, -0x6(%rbp)
movw %ax, -0x8(%rbp)
movw %ax, -0xa(%rbp)
movw %ax, -0xc(%rbp)
movw %ax, -0xe(%rbp)
movw %ax, -0x10(%rbp)
movzwl -0x10(%rbp), %eax
movd %eax, %xmm0
movzwl -0xe(%rbp), %eax
pinsrw $0x1, %eax, %xmm0
movzwl -0xc(%rbp), %eax
pinsrw $0x2, %eax, %xmm0
movzwl -0xa(%rbp), %eax
pinsrw $0x3, %eax, %xmm0
movzwl -0x8(%rbp), %eax
pinsrw $0x4, %eax, %xmm0
movzwl -0x6(%rbp), %eax
pinsrw $0x5, %eax, %xmm0
movzwl -0x4(%rbp), %eax
pinsrw $0x6, %eax, %xmm0
movzwl -0x2(%rbp), %eax
pinsrw $0x7, %eax, %xmm0
movdqa %xmm0, -0x20(%rbp)
movdqa -0x20(%rbp), %xmm0
movdqa %xmm0, -0x440(%rbp)
movdqa -0x430(%rbp), %xmm0
movdqa %xmm0, -0x450(%rbp)
movl -0x3d8(%rbp), %edi
shll $0x3, %edi
movl -0x3b4(%rbp), %esi
callq 0x1c3af0
movq %rax, -0x458(%rbp)
movl -0x3d8(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x45c(%rbp)
movl -0x3a4(%rbp), %eax
movl $0x8, %ecx
cltd
idivl %ecx
movl %edx, -0x460(%rbp)
movl $0x0, -0x464(%rbp)
movl $0x0, -0x3c8(%rbp)
cmpl $0x18, -0x3c8(%rbp)
jge 0x78a7d7
movl $0x0, -0x3c0(%rbp)
movl -0x3c0(%rbp), %eax
cmpl -0x3d8(%rbp), %eax
jge 0x78a7c1
movl -0x3c0(%rbp), %eax
shll $0x3, %eax
movl %eax, -0x3c4(%rbp)
movl $0x0, -0x3cc(%rbp)
cmpl $0x8, -0x3cc(%rbp)
jge 0x78a75f
movl -0x3c4(%rbp), %eax
cmpl -0x3a4(%rbp), %eax
jl 0x78a6eb
xorl %eax, %eax
movl %eax, -0x564(%rbp)
jmp 0x78a724
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 -0x3a0(%rbp), %rsi
movslq -0x3c4(%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), %eax
movw %ax, %cx
movslq -0x3cc(%rbp), %rax
movw %cx, -0x480(%rbp,%rax,2)
movl -0x3c4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c4(%rbp)
movl -0x3cc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3cc(%rbp)
jmp 0x78a6c6
movq -0x3e0(%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 -0x3c0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c0(%rbp)
jmp 0x78a69b
jmp 0x78a7c3
movl -0x3c8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c8(%rbp)
jmp 0x78a684
movl $0x0, -0x484(%rbp)
movl $0x0, -0x3c0(%rbp)
movl -0x3c0(%rbp), %eax
cmpl -0x3d8(%rbp), %eax
jge 0x78a8ed
movl $0x0, -0x3cc(%rbp)
cmpl $0x8, -0x3cc(%rbp)
jge 0x78a84c
movslq -0x3cc(%rbp), %rax
movw $0x0, -0x4a0(%rbp,%rax,2)
xorl %eax, %eax
subl -0x3b8(%rbp), %eax
movw %ax, %cx
movslq -0x3cc(%rbp), %rax
movw %cx, -0x4b0(%rbp,%rax,2)
movl -0x3cc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3cc(%rbp)
jmp 0x78a807
movq -0x3e8(%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 -0x3f0(%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 -0x3c0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c0(%rbp)
jmp 0x78a7eb
movl $0x0, -0x3c4(%rbp)
movl -0x3c4(%rbp), %eax
cmpl -0x3b4(%rbp), %eax
jge 0x78afeb
movdqa -0x430(%rbp), %xmm0
movdqa %xmm0, -0x4c0(%rbp)
movdqa -0x440(%rbp), %xmm0
movdqa %xmm0, -0x4d0(%rbp)
movq -0x3e0(%rbp), %rax
movq 0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x3b0(%rbp), %rdx
movslq -0x3c4(%rbp), %rsi
movzbl (%rdx,%rsi), %edx
movl (%rcx,%rdx,4), %ecx
imull -0x3d8(%rbp), %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x4d8(%rbp)
movl $0x0, -0x3c0(%rbp)
movl -0x3c0(%rbp), %eax
cmpl -0x3d8(%rbp), %eax
jge 0x78af41
movq -0x3e8(%rbp), %rax
movslq -0x3c0(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x2c8(%rbp)
movq -0x2c8(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x500(%rbp)
movq -0x3f0(%rbp), %rax
movslq -0x3c0(%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 $0xe, %xmm0             # xmm0 = xmm0[14,15],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
movaps %xmm0, -0x520(%rbp)
movaps -0x500(%rbp), %xmm0
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
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 -0x3c0(%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
paddw %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
pmaxsw %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
pmaxsw %xmm1, %xmm0
movaps %xmm0, -0x500(%rbp)
movaps -0x4d0(%rbp), %xmm0
psrldq $0xe, %xmm0             # xmm0 = xmm0[14,15],zero,zero,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 $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
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
psubw %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
pcmpgtw %xmm1, %xmm0
movdqa %xmm0, -0xb0(%rbp)
movdqa -0xb0(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x78adaf
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
pcmpgtw %xmm1, %xmm0
movdqa %xmm0, -0xc0(%rbp)
movdqa -0xc0(%rbp), %xmm0
pmovmskb %xmm0, %eax
cmpl $0x0, %eax
je 0x78acbd
movaps -0x530(%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, -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
psubw %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
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x4d0(%rbp)
jmp 0x78abe1
movdqa -0x500(%rbp), %xmm1
movdqa -0x4d0(%rbp), %xmm0
movdqa %xmm1, -0x1d0(%rbp)
movdqa %xmm0, -0x1e0(%rbp)
movdqa -0x1d0(%rbp), %xmm0
movdqa -0x1e0(%rbp), %xmm1
pmaxsw %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
paddw %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
psubw %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
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x4d0(%rbp)
jmp 0x78adbf
movdqa -0x500(%rbp), %xmm0
movdqa %xmm0, -0x4d0(%rbp)
movq -0x3e8(%rbp), %rax
movslq -0x3c0(%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
pmaxsw %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
psubw %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
psubw %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
pmaxsw %xmm1, %xmm0
movdqa %xmm0, -0x510(%rbp)
movq -0x3f0(%rbp), %rax
movslq -0x3c0(%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 -0x3c0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c0(%rbp)
jmp 0x78a96f
movq -0x3e8(%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, -0x3c8(%rbp)
movl -0x3c8(%rbp), %eax
cmpl -0x460(%rbp), %eax
jge 0x78afad
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 -0x3c8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c8(%rbp)
jmp 0x78af7a
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 -0x3c4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x3c4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c4(%rbp)
jmp 0x78a8f7
movl $0x0, -0x3c0(%rbp)
movl -0x3c0(%rbp), %eax
cmpl -0x3d8(%rbp), %eax
jge 0x78b06a
movq -0x3e8(%rbp), %rax
movslq -0x3c0(%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 -0x3c0(%rbp), %esi
movl $0x8, %edx
callq 0x78b140
movl -0x3c0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c0(%rbp)
jmp 0x78aff5
movl $0x0, -0x3c4(%rbp)
cmpl $0x8, -0x3c4(%rbp)
jge 0x78b0d4
movaps -0x450(%rbp), %xmm0
pextrw $0x7, %xmm0, %eax
movzwl %ax, %eax
movw %ax, -0x552(%rbp)
movswl -0x552(%rbp), %eax
cmpl -0x3f4(%rbp), %eax
jle 0x78b0af
movswl -0x552(%rbp), %eax
movl %eax, -0x3f4(%rbp)
movaps -0x450(%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, -0x450(%rbp)
movl -0x3c4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c4(%rbp)
jmp 0x78b074
movl -0x3f4(%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 -0x3f0(%rbp), %rdi
callq 0x1c3590
movq -0x3e8(%rbp), %rdi
callq 0x1c3590
movq -0x3e0(%rbp), %rdi
callq 0x1c3590
movq -0x458(%rbp), %rax
addq $0x570, %rsp            # imm = 0x570
popq %rbp
retq
nopl (%rax)