// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/sg_striped_sse2_128_8.c
// Function: parasail_sg_flags_rowcol_striped_profile_sse2_128_8
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,
        int s1_beg, int s1_end, int s2_beg, int s2_end)
{
    /* declare local variables */
    int32_t i = 0;
    int32_t j = 0;
    int32_t k = 0;
    int32_t s1Len = 0;
    int32_t end_query = 0;
    int32_t end_ref = 0;
    const parasail_matrix_t *matrix = NULL;
    int32_t segWidth = 0;
    int32_t segLen = 0;
    int32_t offset = 0;
    int32_t position = 0;
    __m128i* restrict vProfile = NULL;
    __m128i* restrict pvHStore = NULL;
    __m128i* restrict pvHLoad = NULL;
    __m128i* restrict pvE = NULL;
    int8_t* restrict boundary = NULL;
    __m128i vGapO;
    __m128i vGapE;
    int8_t NEG_LIMIT = 0;
    int8_t POS_LIMIT = 0;
    int8_t score = 0;
    __m128i vNegLimit;
    __m128i vPosLimit;
    __m128i vSaturationCheckMin;
    __m128i vSaturationCheckMax;
    __m128i vMaxH;
    __m128i vPosMask;
    parasail_result_t *result = NULL;

    /* validate inputs */
    PARASAIL_CHECK_NULL(profile);
    PARASAIL_CHECK_NULL(profile->profile8.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;
    k = 0;
    s1Len = profile->s1Len;
    end_query = s1Len-1;
    end_ref = s2Len-1;
    matrix = profile->matrix;
    segWidth = 16; /* number of values in vector unit */
    segLen = (s1Len + segWidth - 1) / segWidth;
    offset = (s1Len - 1) % segLen;
    position = (segWidth - 1) - (s1Len - 1) / segLen;
    vProfile = (__m128i*)profile->profile8.score;
    vGapO = _mm_set1_epi8(open);
    vGapE = _mm_set1_epi8(gap);
    NEG_LIMIT = (-open < matrix->min ? INT8_MIN + open : INT8_MIN - matrix->min) + 1;
    POS_LIMIT = INT8_MAX - matrix->max - 1;
    score = NEG_LIMIT;
    vNegLimit = _mm_set1_epi8(NEG_LIMIT);
    vPosLimit = _mm_set1_epi8(POS_LIMIT);
    vSaturationCheckMin = vPosLimit;
    vSaturationCheckMax = vNegLimit;
    vMaxH = vNegLimit;
    vPosMask = _mm_cmpeq_epi8(_mm_set1_epi8(position),
            _mm_set_epi8(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15));

    /* 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_SG | PARASAIL_FLAG_STRIPED
        | PARASAIL_FLAG_BITS_8 | PARASAIL_FLAG_LANES_16;
    result->flag |= s1_beg ? PARASAIL_FLAG_SG_S1_BEG : 0;
    result->flag |= s1_end ? PARASAIL_FLAG_SG_S1_END : 0;
    result->flag |= s2_beg ? PARASAIL_FLAG_SG_S2_BEG : 0;
    result->flag |= s2_end ? PARASAIL_FLAG_SG_S2_END : 0;
#ifdef PARASAIL_TABLE
    result->flag |= PARASAIL_FLAG_TABLE;
#endif
#ifdef PARASAIL_ROWCOL
    result->flag |= PARASAIL_FLAG_ROWCOL;
#endif

    /* initialize heap variables */
    pvHStore = parasail_memalign___m128i(16, segLen);
    pvHLoad =  parasail_memalign___m128i(16, segLen);
    pvE      = parasail_memalign___m128i(16, segLen);
    boundary = parasail_memalign_int8_t(16, s2Len+1);

    /* validate heap variables */
    if (!pvHStore) return NULL;
    if (!pvHLoad) return NULL;
    if (!pvE) return NULL;
    if (!boundary) return NULL;

    /* initialize H and E */
    {
        int32_t index = 0;
        for (i=0; i<segLen; ++i) {
            int32_t segNum = 0;
            __m128i_8_t h;
            __m128i_8_t e;
            for (segNum=0; segNum<segWidth; ++segNum) {
                int64_t tmp = s1_beg ? 0 : (-open-gap*(segNum*segLen+i));
                h.v[segNum] = tmp < INT8_MIN ? INT8_MIN : tmp;
                tmp = tmp - open;
                e.v[segNum] = tmp < INT8_MIN ? INT8_MIN : tmp;
            }
            _mm_store_si128(&pvHStore[index], h.m);
            _mm_store_si128(&pvE[index], e.m);
            ++index;
        }
    }

    /* initialize uppder boundary */
    {
        boundary[0] = 0;
        for (i=1; i<=s2Len; ++i) {
            int64_t tmp = s2_beg ? 0 : (-open-gap*(i-1));
            boundary[i] = tmp < INT8_MIN ? INT8_MIN : tmp;
        }
    }

    /* outer loop over database sequence */
    for (j=0; j<s2Len; ++j) {
        __m128i vE;
        /* Initialize F value to -inf.  Any errors to vH values will be
         * corrected in the Lazy_F loop.  */
        __m128i vF = vNegLimit;

        /* load final segment of pvHStore and shift left by 2 bytes */
        __m128i vH = _mm_slli_si128(pvHStore[segLen - 1], 1);

        /* Correct part of the vProfile */
        const __m128i* vP = vProfile + matrix->mapper[(unsigned char)s2[j]] * segLen;

        /* Swap the 2 H buffers. */
        __m128i* pv = pvHLoad;
        pvHLoad = pvHStore;
        pvHStore = pv;

        /* insert upper boundary condition */
        vH = _mm_insert_epi8_rpl(vH, boundary[j], 0);

        /* inner loop to process the query sequence */
        for (i=0; i<segLen; ++i) {
            vH = _mm_adds_epi8(vH, _mm_load_si128(vP + i));
            vE = _mm_load_si128(pvE + i);

            /* Get max from vH, vE and vF. */
            vH = _mm_max_epi8_rpl(vH, vE);
            vH = _mm_max_epi8_rpl(vH, vF);
            /* Save vH values. */
            _mm_store_si128(pvHStore + i, vH);
            vSaturationCheckMax = _mm_max_epi8_rpl(vSaturationCheckMax, vH);
            vSaturationCheckMin = _mm_min_epi8_rpl(vSaturationCheckMin, vH);
            vSaturationCheckMin = _mm_min_epi8_rpl(vSaturationCheckMin, vE);
            vSaturationCheckMin = _mm_min_epi8_rpl(vSaturationCheckMin, vF);
#ifdef PARASAIL_TABLE
            arr_store_si128(result->tables->score_table, vH, i, segLen, j, s2Len);
#endif

            /* Update vE value. */
            vH = _mm_subs_epi8(vH, vGapO);
            vE = _mm_subs_epi8(vE, vGapE);
            vE = _mm_max_epi8_rpl(vE, vH);
            _mm_store_si128(pvE + i, vE);

            /* Update vF value. */
            vF = _mm_subs_epi8(vF, vGapE);
            vF = _mm_max_epi8_rpl(vF, vH);

            /* Load the next vH. */
            vH = _mm_load_si128(pvHLoad + i);
        }

        /* Lazy_F loop: has been revised to disallow adjecent insertion and
         * then deletion, so don't update E(i, i), learn from SWPS3 */
        for (k=0; k<segWidth; ++k) {
            int64_t tmp = s2_beg ? -open : (boundary[j+1]-open);
            int8_t tmp2 = tmp < INT8_MIN ? INT8_MIN : tmp;
            vF = _mm_slli_si128(vF, 1);
            vF = _mm_insert_epi8_rpl(vF, tmp2, 0);
            for (i=0; i<segLen; ++i) {
                vH = _mm_load_si128(pvHStore + i);
                vH = _mm_max_epi8_rpl(vH,vF);
                _mm_store_si128(pvHStore + i, vH);
                vSaturationCheckMin = _mm_min_epi8_rpl(vSaturationCheckMin, vH);
                vSaturationCheckMax = _mm_max_epi8_rpl(vSaturationCheckMax, vH);
#ifdef PARASAIL_TABLE
                arr_store_si128(result->tables->score_table, vH, i, segLen, j, s2Len);
#endif
                vH = _mm_subs_epi8(vH, vGapO);
                vF = _mm_subs_epi8(vF, vGapE);
                if (! _mm_movemask_epi8(_mm_cmpgt_epi8(vF, vH))) goto end;
                /*vF = _mm_max_epi8_rpl(vF, vH);*/
            }
        }
end:
        {
            /* extract vector containing last value from the column */
            __m128i vCompare;
            vH = _mm_load_si128(pvHStore + offset);
            vCompare = _mm_and_si128(vPosMask, _mm_cmpgt_epi8(vH, vMaxH));
            vMaxH = _mm_max_epi8_rpl(vH, vMaxH);
            if (_mm_movemask_epi8(vCompare)) {
                end_ref = j;
            }
#ifdef PARASAIL_ROWCOL
            for (k=0; k<position; ++k) {
                vH = _mm_slli_si128(vH, 1);
            }
            result->rowcols->score_row[j] = (int8_t) _mm_extract_epi8_rpl (vH, 15);
#endif
        }
    }

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

    /* max last value from all columns */
    if (s2_end)
    {
        for (k=0; k<position; ++k) {
            vMaxH = _mm_slli_si128(vMaxH, 1);
        }
        score = (int8_t) _mm_extract_epi8_rpl(vMaxH, 15);
        end_query = s1Len-1;
    }

    /* max of last column */
    if (s1_end)
    {
        /* Trace the alignment ending position on read. */
        int8_t *t = (int8_t*)pvHStore;
        int32_t column_len = segLen * segWidth;
        for (i = 0; i<column_len; ++i, ++t) {
            int32_t temp = i / segWidth + i % segWidth * segLen;
            if (temp >= s1Len) continue;
            if (*t > score) {
                score = *t;
                end_query = temp;
                end_ref = s2Len-1;
            }
            else if (*t == score && end_ref == s2Len-1 && temp < end_query) {
                end_query = temp;
            }
        }
    }

    if (!s1_end && !s2_end) {
        /* extract last value from the last column */
        {
            __m128i vH = _mm_load_si128(pvHStore + offset);
            for (k=0; k<position; ++k) {
                vH = _mm_slli_si128(vH, 1);
            }
            score = (int8_t) _mm_extract_epi8_rpl (vH, 15);
            end_ref = s2Len - 1;
            end_query = s1Len - 1;
        }
    }

    if (_mm_movemask_epi8(_mm_or_si128(
            _mm_cmplt_epi8(vSaturationCheckMin, vNegLimit),
            _mm_cmpgt_epi8(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(boundary);
    parasail_free(pvE);
    parasail_free(pvHLoad);
    parasail_free(pvHStore);

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movl %r8d, 0x28(%rsp)
movl %ecx, 0x30(%rsp)
movq %rsi, 0x60(%rsp)
testq %rdi, %rdi
je 0x309b91
movq 0x18(%rdi), %rax
movq %rax, 0x80(%rsp)
testq %rax, %rax
je 0x309bb5
movq 0x10(%rdi), %rax
movq %rax, 0x58(%rsp)
testq %rax, %rax
je 0x309c5f
movl 0x8(%rdi), %eax
testl %eax, %eax
jle 0x309c83
cmpq $0x0, 0x60(%rsp)
je 0x309ca7
movl %edx, %r14d
testl %edx, %edx
jle 0x309cc8
cmpl $0x0, 0x30(%rsp)
js 0x309ce9
cmpl $0x0, 0x28(%rsp)
js 0x309d0a
movl %r9d, %r13d
leal -0x1(%rax), %ebp
movq %rax, 0x98(%rsp)
leaq 0xf(%rax), %rdi
movq %rdi, %r12
shrq $0x4, %r12
movl %ebp, %eax
xorl %edx, %edx
divl %r12d
movl %eax, 0x70(%rsp)
movl %edx, %r15d
movl 0x30(%rsp), %edx
movl %edx, %r8d
negl %r8d
movq 0x58(%rsp), %rsi
movl 0x20(%rsi), %eax
movl %eax, %ecx
negb %cl
movl %r8d, 0x48(%rsp)
cmpl %r8d, %eax
movzbl %cl, %eax
cmovgl %edx, %eax
movl %eax, 0x24(%rsp)
movb $0x7e, %al
subb 0x1c(%rsi), %al
movb %al, 0x78(%rsp)
andl $0x7ffffff0, %edi       # imm = 0x7FFFFFF0
movl %r14d, %esi
callq 0x1ab93b
testq %rax, %rax
je 0x3094a8
movq %rax, %rbx
movl %r15d, 0x68(%rsp)
movl %ebp, 0x20(%rsp)
xorl %eax, %eax
testl %r13d, %r13d
setne %al
xorl %ecx, %ecx
cmpl $0x0, 0x100(%rsp)
setne %cl
shll $0x4, %ecx
xorl %edx, %edx
cmpl $0x0, 0x108(%rsp)
setne %dl
shll $0xe, %edx
xorl %esi, %esi
cmpl $0x0, 0x110(%rsp)
setne %sil
shll $0xf, %esi
leal (%rcx,%rax,8), %eax
orl %edx, %eax
orl %esi, %eax
orl 0xc(%rbx), %eax
orl $0x10140802, %eax       # imm = 0x10140802
movl %eax, 0xc(%rbx)
pushq $0x10
popq %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x297cd8
movq %rax, %rbp
movq %r15, %rdi
movq %r12, %rsi
callq 0x297cd8
movq %rbx, 0x88(%rsp)
movq %rax, %rbx
movq %r15, %rdi
movq %r12, 0x50(%rsp)
movq %r12, %rsi
callq 0x297cd8
movq %rax, %r12
leal 0x1(%r14), %r15d
pushq $0x10
popq %rdi
movq %r15, %rsi
callq 0x1ab776
movq %rbp, %xmm0
movq %rbx, %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movq %r12, %xmm1
movq %rax, %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, %ecx
testl %ecx, %ecx
je 0x3094af
xorl %ebx, %ebx
jmp 0x309d32
movq %r15, 0x90(%rsp)
movq %rax, 0x40(%rsp)
movq %r14, 0x38(%rsp)
leal -0x1(%r14), %eax
movl %eax, 0xc(%rsp)
pushq $0xf
popq %rdx
subl 0x70(%rsp), %edx
movl 0x30(%rsp), %ecx
movd %ecx, %xmm0
punpcklbw %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pshuflw $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm0, %xmm3      # xmm3 = xmm0[0,0,0,0]
movl 0x28(%rsp), %esi
movd %esi, %xmm0
punpcklbw %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pshuflw $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm0, %xmm4      # xmm4 = xmm0[0,0,0,0]
movl 0x24(%rsp), %r15d
addb $-0x7f, %r15b
movl %r15d, 0x24(%rsp)
movzbl %r15b, %eax
movd %eax, %xmm0
punpcklbw %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pshuflw $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movzbl 0x78(%rsp), %eax
movd %eax, %xmm1
punpcklbw %xmm1, %xmm1    # xmm1 = xmm1[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pshuflw $0x0, %xmm1, %xmm1      # xmm1 = xmm1[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm1, %xmm1      # xmm1 = xmm1[0,0,0,0]
movd %edx, %xmm2
punpcklbw %xmm2, %xmm2    # xmm2 = xmm2[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pshuflw $0x0, %xmm2, %xmm2      # xmm2 = xmm2[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm2, %xmm6      # xmm6 = xmm2[0,0,0,0]
movl %ecx, %ecx
movl %esi, %esi
movslq 0x48(%rsp), %rdi
movq 0x50(%rsp), %r11
movq %r11, %r8
imulq %rsi, %r8
xorl %r9d, %r9d
pushq $-0x80
popq %r14
cmpq %r11, %r9
je 0x3095e1
movq %rdi, %rax
xorl %r11d, %r11d
cmpq $0x10, %r11
je 0x3095b1
testl %r13d, %r13d
je 0x309580
xorl %r15d, %r15d
jmp 0x309583
movq %rax, %r15
cmpq $-0x7f, %r15
movq %r14, %r10
cmovgeq %r15, %r10
subq %rcx, %r15
cmpq $-0x7f, %r15
cmovlq %r14, %r15
movb %r10b, 0xb0(%rsp,%r11)
movb %r15b, 0xa0(%rsp,%r11)
incq %r11
subq %r8, %rax
jmp 0x309570
movq %r9, %rax
shlq $0x4, %rax
movaps 0xb0(%rsp), %xmm2
movaps %xmm2, (%rbp,%rax)
movdqa 0xa0(%rsp), %xmm2
movdqa %xmm2, (%r12,%rax)
incq %r9
subq %rsi, %rdi
movq 0x50(%rsp), %r11
jmp 0x309565
movq 0x40(%rsp), %r8
movb $0x0, (%r8)
pushq $0x1
popq %rax
pushq $-0x80
popq %r9
xorl %ecx, %ecx
movl 0x48(%rsp), %esi
movl 0x108(%rsp), %r10d
movq 0x38(%rsp), %r14
movl 0x28(%rsp), %r15d
movq 0x90(%rsp), %r13
cmpq %rax, %r13
je 0x309631
cmpl $-0x7f, %esi
movl %r9d, %edi
cmovgel %esi, %edi
testl %r10d, %r10d
cmovnel %ecx, %edi
movb %dil, (%r8,%rax)
incq %rax
subl %r15d, %esi
jmp 0x309611
leal -0x1(%r11), %r10d
movl 0x68(%rsp), %eax
movq %r11, %r8
movl %r14d, %r11d
shlq $0x4, %r8
leaq 0x10(%r8), %r13
xorl %ecx, %ecx
shlq $0x4, %r10
movdqa 0x2be44a(%rip), %xmm8   # 0x5c7aa0
pcmpeqb 0x2be472(%rip), %xmm6   # 0x5c7ad0
shlq $0x4, %rax
movq %rax, 0x28(%rsp)
movdqa %xmm1, %xmm5
movdqa %xmm0, %xmm2
movdqa %xmm0, %xmm7
movl 0xc(%rsp), %r15d
movq %rbx, %r14
cmpq %r11, %rcx
je 0x309960
movdqa (%rbp,%r10), %xmm9
pslldq $0x1, %xmm9             # xmm9 = zero,xmm9[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
movq 0x58(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x60(%rsp), %rsi
movzbl (%rsi,%rcx), %esi
movl (%rax,%rsi,4), %eax
imull 0x50(%rsp), %eax
movslq %eax, %rbx
shlq $0x4, %rbx
addq 0x80(%rsp), %rbx
movq 0x40(%rsp), %rax
movzbl (%rax,%rcx), %eax
movd %eax, %xmm11
movdqa %xmm8, %xmm10
pandn %xmm11, %xmm10
por %xmm9, %xmm10
xorl %edi, %edi
movdqa %xmm0, %xmm9
cmpq %rdi, %r8
je 0x3097f5
paddsb (%rbx,%rdi), %xmm10
movdqa (%r12,%rdi), %xmm11
movdqa %xmm10, %xmm12
pcmpgtb %xmm11, %xmm12
pand %xmm12, %xmm10
pandn %xmm11, %xmm12
por %xmm10, %xmm12
movdqa %xmm12, %xmm10
pcmpgtb %xmm9, %xmm10
pand %xmm10, %xmm12
pandn %xmm9, %xmm10
por %xmm12, %xmm10
movdqa %xmm10, (%r14,%rdi)
movdqa %xmm2, %xmm12
pcmpgtb %xmm10, %xmm12
pand %xmm12, %xmm2
pandn %xmm10, %xmm12
por %xmm12, %xmm2
movdqa %xmm5, %xmm12
pcmpgtb %xmm10, %xmm12
movdqa %xmm10, %xmm13
pand %xmm12, %xmm13
pandn %xmm5, %xmm12
por %xmm13, %xmm12
movdqa %xmm12, %xmm13
pcmpgtb %xmm11, %xmm13
movdqa %xmm11, %xmm5
pand %xmm13, %xmm5
pandn %xmm12, %xmm13
por %xmm5, %xmm13
movdqa %xmm13, %xmm5
pcmpgtb %xmm9, %xmm5
movdqa %xmm9, %xmm12
pand %xmm5, %xmm12
pandn %xmm13, %xmm5
por %xmm12, %xmm5
psubsb %xmm3, %xmm10
psubsb %xmm4, %xmm11
movdqa %xmm11, %xmm12
pcmpgtb %xmm10, %xmm12
pand %xmm12, %xmm11
pandn %xmm10, %xmm12
por %xmm11, %xmm12
movdqa %xmm12, (%r12,%rdi)
psubsb %xmm4, %xmm9
movdqa %xmm9, %xmm11
pcmpgtb %xmm10, %xmm11
pand %xmm11, %xmm9
pandn %xmm10, %xmm11
por %xmm11, %xmm9
movdqa (%rbp,%rdi), %xmm10
addq $0x10, %rdi
jmp 0x3096de
xorl %ebx, %ebx
cmpl $0x10, %ebx
je 0x3098d6
movl 0x48(%rsp), %eax
cmpl $0x0, 0x108(%rsp)
jne 0x30981c
movq 0x40(%rsp), %rax
movsbl 0x1(%rax,%rcx), %eax
subl 0x30(%rsp), %eax
cmpl $-0x7f, %eax
cmovll %r9d, %eax
pslldq $0x1, %xmm9             # xmm9 = zero,xmm9[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
movd %eax, %xmm10
movdqa %xmm8, %xmm11
pandn %xmm10, %xmm11
por %xmm11, %xmm9
xorl %esi, %esi
leaq 0x10(%rsi), %rax
cmpq %rax, %r13
je 0x3098cf
movdqa (%r14,%rsi), %xmm10
movdqa %xmm10, %xmm11
pcmpgtb %xmm9, %xmm11
pand %xmm11, %xmm10
pandn %xmm9, %xmm11
por %xmm10, %xmm11
movdqa %xmm11, (%r14,%rsi)
movdqa %xmm5, %xmm10
pcmpgtb %xmm11, %xmm10
movdqa %xmm11, %xmm12
pand %xmm10, %xmm12
pandn %xmm5, %xmm10
por %xmm12, %xmm10
movdqa %xmm2, %xmm5
pcmpgtb %xmm11, %xmm5
pand %xmm5, %xmm2
pandn %xmm11, %xmm5
por %xmm5, %xmm2
psubsb %xmm3, %xmm11
psubsb %xmm4, %xmm9
movdqa %xmm9, %xmm5
pcmpgtb %xmm11, %xmm5
pmovmskb %xmm5, %edi
movq %rax, %rsi
movdqa %xmm10, %xmm5
testl %edi, %edi
jne 0x30983f
jmp 0x3098db
incl %ebx
jmp 0x3097f7
movdqa %xmm5, %xmm10
movq 0x28(%rsp), %rax
movdqa (%r14,%rax), %xmm5
movdqa %xmm5, %xmm9
pcmpgtb %xmm7, %xmm9
movdqa %xmm9, %xmm11
pand %xmm6, %xmm11
pmovmskb %xmm11, %eax
xorl %esi, %esi
movdqa %xmm5, %xmm11
movq 0x88(%rsp), %rdi
cmpl %edx, %esi
jge 0x30991c
pslldq $0x1, %xmm11            # xmm11 = zero,xmm11[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
incl %esi
jmp 0x30990e
testw %ax, %ax
pand %xmm9, %xmm5
pandn %xmm7, %xmm9
por %xmm5, %xmm9
cmovnel %ecx, %r15d
pextrw $0x7, %xmm11, %eax
shrl $0x8, %eax
movsbl %al, %eax
movq 0x10(%rdi), %rsi
movq (%rsi), %rsi
movl %eax, (%rsi,%rcx,4)
incq %rcx
movq %rbp, %rbx
movq %r14, %rbp
movdqa %xmm10, %xmm5
movdqa %xmm9, %xmm7
jmp 0x309678
movl %r15d, 0x38(%rsp)
movq 0x50(%rsp), %rsi
leal (,%rsi,4), %ecx
leal (,%rsi,8), %eax
movq %rax, 0x48(%rsp)
movl %esi, %eax
imulq $0xc, %rax, %rax
movq %rax, 0x60(%rsp)
imulq $0x3c, %rsi, %rax
movq %rax, 0x58(%rsp)
imulq $0x38, %rsi, %rax
movq %rax, 0x30(%rsp)
imulq $0x34, %rsi, %rax
movq %rax, 0x80(%rsp)
imulq $0x30, %rsi, %rax
movq %rax, 0x78(%rsp)
imulq $0x2c, %rsi, %rax
movq %rax, 0x70(%rsp)
imulq $0x28, %rsi, %rax
movq %rax, 0x68(%rsp)
imulq $0x24, %rsi, %r15
movq %rsi, %rdi
shlq $0x5, %rdi
imulq $0x1c, %rsi, %r9
imulq $0x18, %rsi, %r10
imulq $0x14, %rsi, %r11
xorl %ebx, %ebx
cmpq %rbx, %rcx
je 0x309ac7
movdqa (%rbp,%rbx,4), %xmm3
movq 0x88(%rsp), %rsi
movq 0x10(%rsi), %r13
movq 0x8(%r13), %r13
movdqa %xmm3, 0x10(%rsp)
movsbl 0x10(%rsp), %esi
movl %esi, (%r13,%rbx)
addq %rbx, %r13
movsbl 0x11(%rsp), %esi
movl %esi, (%rcx,%r13)
movsbl 0x12(%rsp), %esi
movq 0x48(%rsp), %rax
movl %esi, (%rax,%r13)
movsbl 0x13(%rsp), %esi
movq 0x60(%rsp), %rax
movl %esi, (%rax,%r13)
movsbl 0x14(%rsp), %esi
movl %esi, (%r8,%r13)
movsbl 0x15(%rsp), %esi
movl %esi, (%r11,%r13)
movsbl 0x16(%rsp), %esi
movl %esi, (%r10,%r13)
movsbl 0x17(%rsp), %esi
movl %esi, (%r9,%r13)
movsbl 0x18(%rsp), %esi
movl %esi, (%rdi,%r13)
movsbl 0x19(%rsp), %esi
movl %esi, (%r15,%r13)
movsbl 0x1a(%rsp), %esi
movq 0x68(%rsp), %rax
movl %esi, (%rax,%r13)
movsbl 0x1b(%rsp), %esi
movq 0x70(%rsp), %rax
movl %esi, (%rax,%r13)
movsbl 0x1c(%rsp), %esi
movq 0x78(%rsp), %rax
movl %esi, (%rax,%r13)
movsbl 0x1d(%rsp), %esi
movq 0x80(%rsp), %rax
movl %esi, (%rax,%r13)
movsbl 0x1e(%rsp), %esi
movq 0x30(%rsp), %rax
movl %esi, (%rax,%r13)
movsbl 0x1f(%rsp), %esi
movq 0x58(%rsp), %rax
movl %esi, (%rax,%r13)
addq $0x4, %rbx
jmp 0x3099da
movl 0x110(%rsp), %r15d
testl %r15d, %r15d
movq 0x88(%rsp), %rbx
movq 0x98(%rsp), %r9
movl 0x24(%rsp), %r10d
movq 0x50(%rsp), %r11
movl 0x100(%rsp), %r13d
movq 0x40(%rsp), %rdi
je 0x309b14
xorl %eax, %eax
cmpl %edx, %eax
jge 0x309b0a
pslldq $0x1, %xmm7             # xmm7 = zero,xmm7[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
incl %eax
jmp 0x309afd
pextrw $0x7, %xmm7, %r10d
shrl $0x8, %r10d
testl %r13d, %r13d
je 0x309bd9
movl %r11d, %edi
andl $0x7ffffff, %edi        # imm = 0x7FFFFFF
shll $0x4, %edi
xorl %r8d, %r8d
movl 0x20(%rsp), %ecx
cmpl %r8d, %edi
je 0x309b82
movl %r8d, %esi
shrl $0x4, %esi
movl %r8d, %eax
andl $0xf, %eax
imull %r11d, %eax
addl %esi, %eax
cmpl %r9d, %eax
jge 0x309b7d
movb (%rbp,%r8), %sil
cmpb %r10b, %sil
jle 0x309b65
movl %esi, %r10d
movl 0xc(%rsp), %ecx
movl %ecx, 0x38(%rsp)
movl %eax, %ecx
jmp 0x309b7d
cmpl %ecx, %eax
cmovgel %ecx, %eax
movl 0x38(%rsp), %r13d
cmpl 0xc(%rsp), %r13d
cmovnel %ecx, %eax
cmpb %r10b, %sil
cmovel %eax, %ecx
incq %r8
jmp 0x309b30
movq 0x40(%rsp), %rdi
movl 0x100(%rsp), %r13d
jmp 0x309bdd
movq 0x431440(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2bd449(%rip), %rsi    # 0x5c6feb
leaq 0x2bf578(%rip), %rdx    # 0x5c9121
leaq 0x29392d(%rip), %rcx    # 0x59d4dd
jmp 0x309d29
movq 0x43141c(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2bd425(%rip), %rsi    # 0x5c6feb
leaq 0x2bf554(%rip), %rdx    # 0x5c9121
leaq 0x2bdedc(%rip), %rcx    # 0x5c7ab0
jmp 0x309d29
movl 0x20(%rsp), %ecx
orl %r13d, %r15d
movl 0x38(%rsp), %esi
jne 0x309c12
movq 0x28(%rsp), %rax
movdqa (%rbp,%rax), %xmm3
xorl %eax, %eax
cmpl %edx, %eax
jge 0x309c00
pslldq $0x1, %xmm3             # xmm3 = zero,xmm3[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
incl %eax
jmp 0x309bf3
pextrw $0x7, %xmm3, %r10d
shrl $0x8, %r10d
movl 0xc(%rsp), %esi
movl 0x20(%rsp), %ecx
pcmpgtb %xmm5, %xmm0
pcmpgtb %xmm1, %xmm2
por %xmm0, %xmm2
pmovmskb %xmm2, %eax
testl %eax, %eax
je 0x309c31
orb $0x40, 0xc(%rbx)
xorl %r10d, %r10d
xorl %esi, %esi
xorl %ecx, %ecx
movsbl %r10b, %eax
movl %eax, (%rbx)
movl %ecx, 0x4(%rbx)
movl %esi, 0x8(%rbx)
callq 0x1ab763
movq %r12, %rdi
callq 0x1ab763
movq %r14, %rdi
callq 0x1ab763
movq %rbp, %rdi
callq 0x1ab763
jmp 0x309d32
movq 0x431372(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2bd37b(%rip), %rsi    # 0x5c6feb
leaq 0x2bf4aa(%rip), %rdx    # 0x5c9121
leaq 0x2bdcbb(%rip), %rcx    # 0x5c7939
jmp 0x309d29
movq 0x43134e(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2bda6d(%rip), %rsi    # 0x5c7701
leaq 0x2bf486(%rip), %rdx    # 0x5c9121
leaq 0x2bdca7(%rip), %rcx    # 0x5c7949
jmp 0x309d29
movq 0x43132a(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2bd333(%rip), %rsi    # 0x5c6feb
leaq 0x2bf462(%rip), %rdx    # 0x5c9121
leaq 0x2bda38(%rip), %rcx    # 0x5c76fe
jmp 0x309d29
movq 0x431309(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2bda28(%rip), %rsi    # 0x5c7701
leaq 0x2bf441(%rip), %rdx    # 0x5c9121
leaq 0x2bda2e(%rip), %rcx    # 0x5c7715
jmp 0x309d29
movq 0x4312e8(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2bda21(%rip), %rsi    # 0x5c771b
leaq 0x2bf420(%rip), %rdx    # 0x5c9121
leaq 0x2bda28(%rip), %rcx    # 0x5c7730
jmp 0x309d29
movq 0x4312c7(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2bda00(%rip), %rsi    # 0x5c771b
leaq 0x2bf3ff(%rip), %rdx    # 0x5c9121
leaq 0x2bda0c(%rip), %rcx    # 0x5c7735
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x19e180
movq %rbx, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq