// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/sw_scan_sse2_128_16.c
// Function: parasail_sw_rowcol_scan_profile_sse2_128_16
parasail_result_t* PNAME(
        const parasail_profile_t * const restrict profile,
        const char * const restrict s2, const int s2Len,
        const int open, const int gap)
{
    /* declare local variables */
    int32_t i = 0;
    int32_t j = 0;
    int32_t end_query = 0;
    int32_t end_ref = 0;
    int32_t s1Len = 0;
    const parasail_matrix_t *matrix = NULL;
    int32_t segWidth = 0;
    int32_t segLen = 0;
#ifdef PARASAIL_ROWCOL
    int32_t offset = 0;
    int32_t position = 0;
#endif
    __m128i* restrict pvP = NULL;
    __m128i* restrict pvE = NULL;
    __m128i* restrict pvHt = NULL;
    __m128i* restrict pvH = NULL;
    __m128i* restrict pvHMax = NULL;
    __m128i* restrict pvGapper = NULL;
    __m128i vGapO;
    __m128i vGapE;
    int16_t NEG_LIMIT = 0;
    int16_t POS_LIMIT = 0;
    __m128i vZero;
    int16_t score = 0;
    __m128i vNegLimit;
    __m128i vPosLimit;
    __m128i vSaturationCheckMin;
    __m128i vSaturationCheckMax;
    __m128i vMaxH;
    __m128i vMaxHUnit;
    __m128i vNegInfFront;
    __m128i vSegLenXgap;
    parasail_result_t *result = NULL;

    /* validate inputs */
    PARASAIL_CHECK_NULL(profile);
    PARASAIL_CHECK_NULL(profile->profile16.score);
    PARASAIL_CHECK_NULL(profile->matrix);
    PARASAIL_CHECK_GT0(profile->s1Len);
    PARASAIL_CHECK_NULL(s2);
    PARASAIL_CHECK_GT0(s2Len);
    PARASAIL_CHECK_GE0(open);
    PARASAIL_CHECK_GE0(gap);

    /* initialize stack variables */
    i = 0;
    j = 0;
    end_query = 0;
    end_ref = 0;
    s1Len = profile->s1Len;
    matrix = profile->matrix;
    segWidth = 8; /* number of values in vector unit */
    segLen = (s1Len + segWidth - 1) / segWidth;
#ifdef PARASAIL_ROWCOL
    offset = (s1Len - 1) % segLen;
    position = (segWidth - 1) - (s1Len - 1) / segLen;
#endif
    pvP = (__m128i*)profile->profile16.score;
    vGapO = _mm_set1_epi16(open);
    vGapE = _mm_set1_epi16(gap);
    NEG_LIMIT = (-open < matrix->min ? INT16_MIN + open : INT16_MIN - matrix->min) + 1;
    POS_LIMIT = INT16_MAX - matrix->max - 1;
    vZero = _mm_setzero_si128();
    score = NEG_LIMIT;
    vNegLimit = _mm_set1_epi16(NEG_LIMIT);
    vPosLimit = _mm_set1_epi16(POS_LIMIT);
    vSaturationCheckMin = vPosLimit;
    vSaturationCheckMax = vNegLimit;
    vMaxH = vNegLimit;
    vMaxHUnit = vNegLimit;
    vNegInfFront = vZero;
    vNegInfFront = _mm_insert_epi16(vNegInfFront, NEG_LIMIT, 0);
    vSegLenXgap = _mm_adds_epi16(vNegInfFront,
            _mm_slli_si128(_mm_set1_epi16(-segLen*gap), 2));

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

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

    /* initialize heap variables */
    pvE = parasail_memalign___m128i(16, segLen);
    pvHt= parasail_memalign___m128i(16, segLen);
    pvH = parasail_memalign___m128i(16, segLen);
    pvHMax = parasail_memalign___m128i(16, segLen);
    pvGapper = parasail_memalign___m128i(16, segLen);

    /* validate heap variables */
    if (!pvE) return NULL;
    if (!pvHt) return NULL;
    if (!pvH) return NULL;
    if (!pvHMax) return NULL;
    if (!pvGapper) return NULL;

    parasail_memset___m128i(pvH, vZero, segLen);
    parasail_memset___m128i(pvE, vNegLimit, segLen);
    {
        __m128i vGapper = _mm_subs_epi16(vZero,vGapO);
        for (i=segLen-1; i>=0; --i) {
            _mm_store_si128(pvGapper+i, vGapper);
            vGapper = _mm_subs_epi16(vGapper, vGapE);
        }
    }

    /* outer loop over database sequence */
    for (j=0; j<s2Len; ++j) {
        __m128i vE;
        __m128i vHt;
        __m128i vF;
        __m128i vH;
        __m128i vHp;
        __m128i *pvW;
        __m128i vW;

        /* calculate E */
        /* calculate Ht */
        /* calculate F and H first pass */
        vHp = _mm_load_si128(pvH+(segLen-1));
        vHp = _mm_slli_si128(vHp, 2);
        pvW = pvP + matrix->mapper[(unsigned char)s2[j]]*segLen;
        vHt = vZero;
        vF = vNegLimit;
        for (i=0; i<segLen; ++i) {
            vH = _mm_load_si128(pvH+i);
            vE = _mm_load_si128(pvE+i);
            vW = _mm_load_si128(pvW+i);
            vE = _mm_max_epi16(
                    _mm_subs_epi16(vE, vGapE),
                    _mm_subs_epi16(vH, vGapO));
            vHp = _mm_adds_epi16(vHp, vW);
            vF = _mm_max_epi16(vF, _mm_adds_epi16(vHt, pvGapper[i]));
            vHt = _mm_max_epi16(vE, vHp);
            _mm_store_si128(pvE+i, vE);
            _mm_store_si128(pvHt+i, vHt);
            vHp = vH;
        }

        /* pseudo prefix scan on F and H */
        vHt = _mm_slli_si128(vHt, 2);
        vF = _mm_max_epi16(vF, _mm_adds_epi16(vHt, pvGapper[0]));
        for (i=0; i<segWidth-2; ++i) {
            __m128i vFt = _mm_slli_si128(vF, 2);
            vFt = _mm_adds_epi16(vFt, vSegLenXgap);
            vF = _mm_max_epi16(vF, vFt);
        }

        /* calculate final H */
        vF = _mm_slli_si128(vF, 2);
        vF = _mm_adds_epi16(vF, vNegInfFront);
        vH = _mm_max_epi16(vHt, vF);
        vH = _mm_max_epi16(vH, vZero);
        for (i=0; i<segLen; ++i) {
            vHt = _mm_load_si128(pvHt+i);
            vF = _mm_max_epi16(
                    _mm_subs_epi16(vF, vGapE),
                    _mm_subs_epi16(vH, vGapO));
            vH = _mm_max_epi16(vHt, vF);
            vH = _mm_max_epi16(vH, vZero);
            _mm_store_si128(pvH+i, vH);
            vSaturationCheckMin = _mm_min_epi16(vSaturationCheckMin, vH);
            vSaturationCheckMax = _mm_max_epi16(vSaturationCheckMax, vH);
#ifdef PARASAIL_TABLE
            arr_store_si128(result->tables->score_table, vH, i, segLen, j, s2Len);
#endif
            vMaxH = _mm_max_epi16(vH, vMaxH);
        } 

        {
            __m128i vCompare = _mm_cmpgt_epi16(vMaxH, vMaxHUnit);
            if (_mm_movemask_epi8(vCompare)) {
                score = _mm_hmax_epi16_rpl(vMaxH);
                vMaxHUnit = _mm_set1_epi16(score);
                end_ref = j;
                (void)memcpy(pvHMax, pvH, sizeof(__m128i)*segLen);
            }
        }

#ifdef PARASAIL_ROWCOL
        /* extract last value from the column */
        {
            int32_t k = 0;
            __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
    }

    /* Trace the alignment ending position on read. */
    {
        int16_t *t = (int16_t*)pvHMax;
        int32_t column_len = segLen * segWidth;
        end_query = s1Len;
        for (i = 0; i<column_len; ++i, ++t) {
            if (*t == score) {
                int32_t temp = i / segWidth + i % segWidth * segLen;
                if (temp < end_query) {
                    end_query = temp;
                }
            }
        }
    }

#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, segLen);
    }
#endif

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

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

    parasail_free(pvGapper);
    parasail_free(pvHMax);
    parasail_free(pvH);
    parasail_free(pvHt);
    parasail_free(pvE);

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, 0x10(%rsp)
testq %rdi, %rdi
je 0x2f3d07
movq 0x30(%rdi), %rax
movq %rax, 0xa8(%rsp)
testq %rax, %rax
je 0x2f3d2b
movq 0x10(%rdi), %rax
movq %rax, 0x48(%rsp)
testq %rax, %rax
je 0x2f3d4f
movl 0x8(%rdi), %ebx
testl %ebx, %ebx
jle 0x2f3d73
cmpq $0x0, 0x10(%rsp)
je 0x2f3d97
movl %edx, %ebp
testl %edx, %edx
jle 0x2f3db8
movl %ecx, %r13d
testl %ecx, %ecx
js 0x2f3dd9
movl %r8d, %r12d
testl %r8d, %r8d
js 0x2f3dfa
leaq 0x7(%rbx), %rdi
movq %rdi, %r15
shrq $0x3, %r15
leal -0x1(%rbx), %eax
xorl %edx, %edx
divl %r15d
movl %eax, 0x70(%rsp)
movl %edx, %r14d
movl %r13d, %eax
negl %eax
movq 0x48(%rsp), %rsi
movl 0x20(%rsi), %ecx
movl %ecx, %edx
negl %edx
cmpl %eax, %ecx
cmovgl %r13d, %edx
movl %edx, 0x4(%rsp)
movw $0x7ffe, %ax            # imm = 0x7FFE
subw 0x1c(%rsi), %ax
movl %eax, 0x80(%rsp)
andl $0x7ffffff8, %edi       # imm = 0x7FFFFFF8
movl %ebp, %esi
callq 0x1ab93b
testq %rax, %rax
je 0x2f38e7
movl %r13d, 0x30(%rsp)
movl %r12d, 0x50(%rsp)
movl %r14d, 0x60(%rsp)
movl %ebp, 0x28(%rsp)
movq %rbx, 0x8(%rsp)
movq %rax, 0x18(%rsp)
orl $0x8240404, 0xc(%rax)   # imm = 0x8240404
pushq $0x10
popq %rbp
movq %rbp, %rdi
movq %r15, %rsi
callq 0x297cd8
movq %rax, %r14
movq %rbp, %rdi
movq %r15, %rsi
callq 0x297cd8
movq %rax, %r12
movq %rbp, %rdi
movq %r15, %rsi
callq 0x297cd8
movq %rax, %r13
movq %rbp, %rdi
movq %r15, %rsi
callq 0x297cd8
movq %rax, %rbx
movq %rbp, %rdi
movq %r15, 0x40(%rsp)
movq %r15, %rsi
callq 0x297cd8
movq %rax, %rbp
movq %r14, %xmm0
movq %r12, %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movq %r13, %xmm1
movq %rbx, %xmm2
punpcklqdq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0]
pxor %xmm2, %xmm2
pcmpeqd %xmm2, %xmm0
pcmpeqd %xmm2, %xmm1
movdqa %xmm0, %xmm2
shufps $0xdd, %xmm1, %xmm2     # xmm2 = xmm2[1,3],xmm1[1,3]
shufps $0x88, %xmm1, %xmm0     # xmm0 = xmm0[0,2],xmm1[0,2]
andps %xmm2, %xmm0
movmskps %xmm0, %eax
xorl %r15d, %r15d
testl %eax, %eax
jne 0x2f3e23
testq %rbp, %rbp
je 0x2f3e23
movq %rbx, 0x20(%rsp)
pushq $0x7
popq %rbx
subl 0x70(%rsp), %ebx
movd 0x30(%rsp), %xmm0
pshuflw $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqa %xmm0, 0xe0(%rsp)
movl 0x50(%rsp), %ecx
movd %ecx, %xmm0
pshuflw $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqa %xmm0, 0xd0(%rsp)
movl 0x4(%rsp), %eax
addl $0xffff8001, %eax       # imm = 0xFFFF8001
movd %eax, %xmm0
pshuflw $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqa %xmm0, 0x30(%rsp)
movd 0x80(%rsp), %xmm0
pshuflw $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqa %xmm0, 0xb0(%rsp)
movl %eax, 0x4(%rsp)
movzwl %ax, %eax
movd %eax, %xmm1
movq 0x40(%rsp), %r15
imull %r15d, %ecx
negl %ecx
movd %ecx, %xmm0
pshuflw $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movdqa %xmm1, 0xf0(%rsp)
paddsw %xmm1, %xmm0
movdqa %xmm0, 0xc0(%rsp)
pxor %xmm0, %xmm0
movq %r13, %rdi
movq %r15, %rsi
callq 0x297ce1
movq %r14, %rdi
movdqa 0x30(%rsp), %xmm0
movq %r15, %rsi
callq 0x297ce1
pxor %xmm0, %xmm0
movdqa 0xd0(%rsp), %xmm9
movdqa 0xe0(%rsp), %xmm8
movq %r15, %r9
psubsw %xmm8, %xmm0
leal -0x1(%r15), %eax
movl %eax, %ecx
movq 0x18(%rsp), %r10
testl %ecx, %ecx
js 0x2f38ef
movl %ecx, %edx
shlq $0x4, %rdx
movdqa %xmm0, (%rbp,%rdx)
psubsw %xmm9, %xmm0
decl %ecx
jmp 0x2f38ce
xorl %r15d, %r15d
jmp 0x2f3e23
movl %eax, %eax
shlq $0x4, %rax
addq %r13, %rax
movq %rax, 0x98(%rsp)
movq %r9, %r15
shlq $0x4, %r15
movl 0x60(%rsp), %eax
shlq $0x4, %rax
addq %r13, %rax
movq %rax, 0x90(%rsp)
movl 0x28(%rsp), %eax
movq %rax, 0xa0(%rsp)
xorl %edi, %edi
pxor %xmm11, %xmm11
movdqa 0xb0(%rsp), %xmm7
movdqa 0x30(%rsp), %xmm0
movdqa %xmm0, %xmm6
movdqa %xmm0, %xmm12
movdqa %xmm0, %xmm13
xorl %esi, %esi
movl 0x4(%rsp), %eax
movdqa 0xc0(%rsp), %xmm10
cmpq 0xa0(%rsp), %rdi
je 0x2f3b86
movq 0x98(%rsp), %rcx
movdqa (%rcx), %xmm2
pslldq $0x2, %xmm2             # xmm2 = zero,zero,xmm2[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movq 0x48(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x10(%rsp), %rdx
movzbl (%rdx,%rdi), %edx
movl (%rcx,%rdx,4), %ecx
imull %r9d, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq 0xa8(%rsp), %rcx
pxor %xmm0, %xmm0
xorl %edx, %edx
movdqa 0x30(%rsp), %xmm1
cmpq %rdx, %r15
je 0x2f39fe
movdqa (%r13,%rdx), %xmm3
movdqa (%r14,%rdx), %xmm4
psubsw %xmm9, %xmm4
movdqa %xmm3, %xmm5
psubsw %xmm8, %xmm5
paddsw (%rcx,%rdx), %xmm2
paddsw (%rbp,%rdx), %xmm0
pmaxsw %xmm4, %xmm5
pmaxsw %xmm0, %xmm1
pmaxsw %xmm5, %xmm2
movdqa %xmm5, (%r14,%rdx)
movdqa %xmm2, (%r12,%rdx)
addq $0x10, %rdx
movdqa %xmm2, %xmm0
movdqa %xmm3, %xmm2
jmp 0x2f39ad
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movdqa (%rbp), %xmm2
paddsw %xmm0, %xmm2
pmaxsw %xmm2, %xmm1
pushq $0x6
popq %rcx
movdqa %xmm1, %xmm2
pslldq $0x2, %xmm2             # xmm2 = zero,zero,xmm2[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
subl $0x1, %ecx
jb 0x2f3a2c
paddsw %xmm10, %xmm2
pmaxsw %xmm2, %xmm1
jmp 0x2f3a13
paddsw 0xf0(%rsp), %xmm2
pmaxsw %xmm11, %xmm0
pmaxsw %xmm2, %xmm0
xorl %ecx, %ecx
cmpq %rcx, %r15
je 0x2f3a7c
psubsw %xmm9, %xmm2
psubsw %xmm8, %xmm0
pmaxsw %xmm0, %xmm2
movdqa (%r12,%rcx), %xmm0
pmaxsw %xmm2, %xmm0
pmaxsw %xmm11, %xmm0
movdqa %xmm0, (%r13,%rcx)
pminsw %xmm0, %xmm7
pmaxsw %xmm0, %xmm6
pmaxsw %xmm0, %xmm12
addq $0x10, %rcx
jmp 0x2f3a40
movdqa %xmm12, %xmm0
pcmpgtw %xmm13, %xmm0
pmovmskb %xmm0, %ecx
testl %ecx, %ecx
je 0x2f3b51
movdqa %xmm12, %xmm0
psrldq $0x8, %xmm0             # xmm0 = xmm0[8,9,10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero
pmaxsw %xmm12, %xmm0
movdqa %xmm0, %xmm1
psrldq $0x4, %xmm1             # xmm1 = xmm1[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero
pmaxsw %xmm0, %xmm1
movdqa %xmm1, %xmm0
psrldq $0x2, %xmm0             # xmm0 = xmm0[2,3,4,5,6,7,8,9,10,11,12,13,14,15],zero,zero
pmaxsw %xmm1, %xmm0
movd %xmm0, 0x4(%rsp)
pshuflw $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqa %xmm0, 0x50(%rsp)
movq %rdi, 0x28(%rsp)
movq 0x20(%rsp), %rdi
movq %r13, %rsi
movq %r15, %rdx
movdqa %xmm6, 0x80(%rsp)
movdqa %xmm7, 0x70(%rsp)
movdqa %xmm12, 0x60(%rsp)
callq 0x19e0c0
movdqa 0x50(%rsp), %xmm13
movdqa 0x60(%rsp), %xmm12
pxor %xmm11, %xmm11
movq 0x28(%rsp), %rdi
movdqa 0xc0(%rsp), %xmm10
movdqa 0xd0(%rsp), %xmm9
movdqa 0xe0(%rsp), %xmm8
movdqa 0x70(%rsp), %xmm7
movdqa 0x80(%rsp), %xmm6
movl 0x4(%rsp), %eax
movq 0x40(%rsp), %r9
movq 0x18(%rsp), %r10
movl %edi, %esi
movq 0x90(%rsp), %rcx
movdqa (%rcx), %xmm0
xorl %ecx, %ecx
cmpl %ebx, %ecx
jge 0x2f3b6c
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
incl %ecx
jmp 0x2f3b5f
pextrw $0x7, %xmm0, %ecx
movswl %cx, %ecx
movq 0x10(%r10), %rdx
movq (%rdx), %rdx
movl %ecx, (%rdx,%rdi,4)
incq %rdi
jmp 0x2f395a
movl %esi, 0x10(%rsp)
movl %r9d, %ecx
andl $0xfffffff, %ecx        # imm = 0xFFFFFFF
shll $0x3, %ecx
xorl %edx, %edx
movq 0x20(%rsp), %r8
cmpl %edx, %ecx
je 0x2f3bcc
cmpw %ax, (%r8,%rdx,2)
jne 0x2f3bc7
movl %edx, %esi
shrl $0x3, %esi
movl %edx, %edi
andl $0x7, %edi
imull %r9d, %edi
addl %esi, %edi
movq 0x8(%rsp), %rsi
cmpl %esi, %edi
cmovll %edi, %esi
movq %rsi, 0x8(%rsp)
incq %rdx
jmp 0x2f3b9d
movl %eax, 0x4(%rsp)
leal (,%r9,4), %ecx
imulq $0x1c, %r9, %rdx
imulq $0x18, %r9, %rsi
imulq $0x14, %r9, %rdi
imulq $0xc, %r9, %r8
shlq $0x3, %r9
movq %r9, %rax
xorl %r9d, %r9d
cmpq %r9, %rcx
je 0x2f3c89
movdqa (%r13,%r9,4), %xmm0
movq 0x18(%rsp), %r10
movq 0x10(%r10), %r10
movq 0x8(%r10), %r10
movd %xmm0, %r11d
movswl %r11w, %r11d
movl %r11d, (%r10,%r9)
pextrw $0x1, %xmm0, %r11d
addq %r9, %r10
movswl %r11w, %r11d
pextrw $0x2, %xmm0, %ebx
movl %r11d, (%rcx,%r10)
movswl %bx, %r11d
pextrw $0x3, %xmm0, %ebx
movl %r11d, (%rax,%r10)
movswl %bx, %r11d
pextrw $0x4, %xmm0, %ebx
movl %r11d, (%r8,%r10)
movswl %bx, %r11d
pextrw $0x5, %xmm0, %ebx
movl %r11d, (%r15,%r10)
movswl %bx, %r11d
pextrw $0x6, %xmm0, %ebx
movl %r11d, (%rdi,%r10)
movswl %bx, %r11d
pextrw $0x7, %xmm0, %ebx
movl %r11d, (%rsi,%r10)
movswl %bx, %r11d
movl %r11d, (%rdx,%r10)
movq 0x18(%rsp), %r10
addq $0x4, %r9
jmp 0x2f3bf2
movdqa 0x30(%rsp), %xmm0
pcmpgtw %xmm7, %xmm0
pcmpgtw 0xb0(%rsp), %xmm6
por %xmm0, %xmm6
pmovmskb %xmm6, %ecx
testl %ecx, %ecx
movl 0x4(%rsp), %eax
movl 0x10(%rsp), %edx
je 0x2f3cc2
orb $0x40, 0xc(%r10)
xorl %eax, %eax
xorl %edx, %edx
movq $0x0, 0x8(%rsp)
movswl %ax, %ecx
movl %ecx, (%r10)
movq 0x8(%rsp), %rcx
movl %ecx, 0x4(%r10)
movl %edx, 0x8(%r10)
movq %rbp, %rdi
movq %r10, %r15
callq 0x1ab763
movq 0x20(%rsp), %rdi
callq 0x1ab763
movq %r13, %rdi
callq 0x1ab763
movq %r12, %rdi
callq 0x1ab763
movq %r14, %rdi
callq 0x1ab763
jmp 0x2f3e23
movq 0x4472ca(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2d32d3(%rip), %rsi    # 0x5c6feb
leaq 0x2c1865(%rip), %rdx    # 0x5b5584
leaq 0x2a97b7(%rip), %rcx    # 0x59d4dd
jmp 0x2f3e19
movq 0x4472a6(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2d32af(%rip), %rsi    # 0x5c6feb
leaq 0x2c1841(%rip), %rdx    # 0x5b5584
leaq 0x2d3cd4(%rip), %rcx    # 0x5c7a1e
jmp 0x2f3e19
movq 0x447282(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2d328b(%rip), %rsi    # 0x5c6feb
leaq 0x2c181d(%rip), %rdx    # 0x5b5584
leaq 0x2d3bcb(%rip), %rcx    # 0x5c7939
jmp 0x2f3e19
movq 0x44725e(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2d397d(%rip), %rsi    # 0x5c7701
leaq 0x2c17f9(%rip), %rdx    # 0x5b5584
leaq 0x2d3bb7(%rip), %rcx    # 0x5c7949
jmp 0x2f3e19
movq 0x44723a(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2d3243(%rip), %rsi    # 0x5c6feb
leaq 0x2c17d5(%rip), %rdx    # 0x5b5584
leaq 0x2d3948(%rip), %rcx    # 0x5c76fe
jmp 0x2f3e19
movq 0x447219(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2d3938(%rip), %rsi    # 0x5c7701
leaq 0x2c17b4(%rip), %rdx    # 0x5b5584
leaq 0x2d393e(%rip), %rcx    # 0x5c7715
jmp 0x2f3e19
movq 0x4471f8(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2d3931(%rip), %rsi    # 0x5c771b
leaq 0x2c1793(%rip), %rdx    # 0x5b5584
leaq 0x2d3938(%rip), %rcx    # 0x5c7730
jmp 0x2f3e19
movq 0x4471d7(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2d3910(%rip), %rsi    # 0x5c771b
leaq 0x2c1772(%rip), %rdx    # 0x5b5584
leaq 0x2d391c(%rip), %rcx    # 0x5c7735
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x19e180
movq %r15, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq