// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/nw_trace_striped_sse2_128_8.c
// Function: parasail_nw_trace_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)
{
    /* 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;
    __m128i* restrict pvEaStore = NULL;
    __m128i* restrict pvEaLoad = NULL;
    __m128i* restrict pvHT = 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;
    parasail_result_t *result = NULL;
    __m128i vTIns;
    __m128i vTDel;
    __m128i vTDiag;
    __m128i vTDiagE;
    __m128i vTInsE;
    __m128i vTDiagF;
    __m128i vTDelF;
    __m128i vTMask;
    __m128i vFTMask;

    /* 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;
    vTIns  = _mm_set1_epi8(PARASAIL_INS);
    vTDel  = _mm_set1_epi8(PARASAIL_DEL);
    vTDiag = _mm_set1_epi8(PARASAIL_DIAG);
    vTDiagE = _mm_set1_epi8(PARASAIL_DIAG_E);
    vTInsE = _mm_set1_epi8(PARASAIL_INS_E);
    vTDiagF = _mm_set1_epi8(PARASAIL_DIAG_F);
    vTDelF = _mm_set1_epi8(PARASAIL_DEL_F);
    vTMask = _mm_set1_epi8(PARASAIL_ZERO_MASK);
    vFTMask = _mm_set1_epi8(PARASAIL_F_MASK);

    /* initialize result */
    result = parasail_result_new_trace(segLen, s2Len, 16, sizeof(__m128i));
    if (!result) return NULL;

    /* set known flags */
    result->flag |= PARASAIL_FLAG_NW | PARASAIL_FLAG_STRIPED
        | PARASAIL_FLAG_TRACE
        | PARASAIL_FLAG_BITS_8 | PARASAIL_FLAG_LANES_16;

    /* initialize heap variables */
    pvHStore = parasail_memalign___m128i(16, segLen);
    pvHLoad = parasail_memalign___m128i(16, segLen);
    pvE = parasail_memalign___m128i(16, segLen);
    pvEaStore = parasail_memalign___m128i(16, segLen);
    pvEaLoad = parasail_memalign___m128i(16, segLen);
    pvHT = 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 (!pvEaStore) return NULL;
    if (!pvEaLoad) return NULL;
    if (!pvHT) 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 = -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);
            _mm_store_si128(&pvEaStore[index], e.m);
            ++index;
        }
    }

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

    for (i=0; i<segLen; ++i) {
        arr_store(result->trace->trace_table, vTDiagE, i, segLen, 0);
    }

    /* outer loop over database sequence */
    for (j=0; j<s2Len; ++j) {
        __m128i vEF_opn;
        __m128i vE;
        __m128i vE_ext;
        __m128i vF;
        __m128i vF_ext;
        __m128i vFa;
        __m128i vFa_ext;
        __m128i vH;
        __m128i vH_dag;
        const __m128i* vP = NULL;

        /* Initialize F value to -inf.  Any errors to vH values will be
         * corrected in the Lazy_F loop.  */
        vF = vNegLimit;

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

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

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

        /* Swap the 2 H buffers. */
        SWAP(pvHLoad, pvHStore)
        SWAP(pvEaLoad, pvEaStore)

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

            /* Get max from vH, vE and vF. */
            vH_dag = _mm_adds_epi8(vH, _mm_load_si128(vP + i));
            vH = _mm_max_epi8_rpl(vH_dag, 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);

            {
                __m128i vTAll = arr_load(result->trace->trace_table, i, segLen, j);
                __m128i case1 = _mm_cmpeq_epi8(vH, vH_dag);
                __m128i case2 = _mm_cmpeq_epi8(vH, vF);
                __m128i vT = _mm_blendv_epi8_rpl(
                        _mm_blendv_epi8_rpl(vTIns, vTDel, case2),
                        vTDiag, case1);
                _mm_store_si128(pvHT + i, vT);
                vT = _mm_or_si128(vT, vTAll);
                arr_store(result->trace->trace_table, vT, i, segLen, j);
            }

            vEF_opn = _mm_subs_epi8(vH, vGapO);

            /* Update vE value. */
            vE_ext = _mm_subs_epi8(vE, vGapE);
            vE = _mm_max_epi8_rpl(vEF_opn, vE_ext);
            _mm_store_si128(pvE + i, vE);
            {
                __m128i vEa = _mm_load_si128(pvEaLoad + i);
                __m128i vEa_ext = _mm_subs_epi8(vEa, vGapE);
                vEa = _mm_max_epi8_rpl(vEF_opn, vEa_ext);
                _mm_store_si128(pvEaStore + i, vEa);
                if (j+1<s2Len) {
                    __m128i cond = _mm_cmpgt_epi8(vEF_opn, vEa_ext);
                    __m128i vT = _mm_blendv_epi8_rpl(vTInsE, vTDiagE, cond);
                    arr_store(result->trace->trace_table, vT, i, segLen, j+1);
                }
            }

            /* Update vF value. */
            vF_ext = _mm_subs_epi8(vF, vGapE);
            vF = _mm_max_epi8_rpl(vEF_opn, vF_ext);
            if (i+1<segLen) {
                __m128i vTAll = arr_load(result->trace->trace_table, i+1, segLen, j);
                __m128i cond = _mm_cmpgt_epi8(vEF_opn, vF_ext);
                __m128i vT = _mm_blendv_epi8_rpl(vTDelF, vTDiagF, cond);
                vT = _mm_or_si128(vT, vTAll);
                arr_store(result->trace->trace_table, vT, i+1, segLen, j);
            }

            /* 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 */
        vFa_ext = vF_ext;
        vFa = vF;
        for (k=0; k<segWidth; ++k) {
            int64_t tmp = boundary[j+1]-open;
            int8_t tmp2 = tmp < INT8_MIN ? INT8_MIN : tmp;
            __m128i vHp = _mm_load_si128(&pvHLoad[segLen - 1]);
            vHp = _mm_slli_si128(vHp, 1);
            vHp = _mm_insert_epi8_rpl(vHp, boundary[j], 0);
            vEF_opn = _mm_slli_si128(vEF_opn, 1);
            vEF_opn = _mm_insert_epi8_rpl(vEF_opn, tmp2, 0);
            vF_ext = _mm_slli_si128(vF_ext, 1);
            vF_ext = _mm_insert_epi8_rpl(vF_ext, NEG_LIMIT, 0);
            vF = _mm_slli_si128(vF, 1);
            vF = _mm_insert_epi8_rpl(vF, tmp2, 0);
            vFa_ext = _mm_slli_si128(vFa_ext, 1);
            vFa_ext = _mm_insert_epi8_rpl(vFa_ext, NEG_LIMIT, 0);
            vFa = _mm_slli_si128(vFa, 1);
            vFa = _mm_insert_epi8_rpl(vFa, 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);
                {
                    __m128i vTAll;
                    __m128i vT;
                    __m128i case1;
                    __m128i case2;
                    __m128i cond;
                    vHp = _mm_adds_epi8(vHp, _mm_load_si128(vP + i));
                    case1 = _mm_cmpeq_epi8(vH, vHp);
                    case2 = _mm_cmpeq_epi8(vH, vF);
                    cond = _mm_andnot_si128(case1,case2);
                    vTAll = arr_load(result->trace->trace_table, i, segLen, j);
                    vT = _mm_load_si128(pvHT + i);
                    vT = _mm_blendv_epi8_rpl(vT, vTDel, cond);
                    _mm_store_si128(pvHT + i, vT);
                    vTAll = _mm_and_si128(vTAll, vTMask);
                    vTAll = _mm_or_si128(vTAll, vT);
                    arr_store(result->trace->trace_table, vTAll, i, segLen, j);
                }
                /* Update vF value. */
                {
                    __m128i vTAll = arr_load(result->trace->trace_table, i, segLen, j);
                    __m128i cond = _mm_cmpgt_epi8(vEF_opn, vFa_ext);
                    __m128i vT = _mm_blendv_epi8_rpl(vTDelF, vTDiagF, cond);
                    vTAll = _mm_and_si128(vTAll, vFTMask);
                    vTAll = _mm_or_si128(vTAll, vT);
                    arr_store(result->trace->trace_table, vTAll, i, segLen, j);
                }
                vEF_opn = _mm_subs_epi8(vH, vGapO);
                vF_ext = _mm_subs_epi8(vF, vGapE);
                {
                    __m128i vEa = _mm_load_si128(pvEaLoad + i);
                    __m128i vEa_ext = _mm_subs_epi8(vEa, vGapE);
                    vEa = _mm_max_epi8_rpl(vEF_opn, vEa_ext);
                    _mm_store_si128(pvEaStore + i, vEa);
                    if (j+1<s2Len) {
                        __m128i cond = _mm_cmpgt_epi8(vEF_opn, vEa_ext);
                        __m128i vT = _mm_blendv_epi8_rpl(vTInsE, vTDiagE, cond);
                        arr_store(result->trace->trace_table, vT, i, segLen, j+1);
                    }
                }
                if (! _mm_movemask_epi8(
                            _mm_or_si128(
                                _mm_cmpgt_epi8(vF_ext, vEF_opn),
                                _mm_cmpeq_epi8(vF_ext, vEF_opn))))
                    goto end;
                /*vF = _mm_max_epi8_rpl(vEF_opn, vF_ext);*/
                vF = vF_ext;
                vFa_ext = _mm_subs_epi8(vFa, vGapE);
                vFa = _mm_max_epi8_rpl(vEF_opn, vFa_ext);
                vHp = _mm_load_si128(pvHLoad + i);
            }
        }
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);
    }

    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(pvHT);
    parasail_free(pvEaLoad);
    parasail_free(pvEaStore);
    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 $0xe8, %rsp
movl %r8d, 0x8(%rsp)
movl %ecx, (%rsp)
movq %rsi, 0x68(%rsp)
testq %rdi, %rdi
je 0x35eef0
movq 0x18(%rdi), %rax
movq %rax, 0x88(%rsp)
testq %rax, %rax
je 0x35ef14
movq 0x10(%rdi), %rax
movq %rax, 0x60(%rsp)
testq %rax, %rax
je 0x35ef38
movl 0x8(%rdi), %r15d
testl %r15d, %r15d
jle 0x35ef5c
cmpq $0x0, 0x68(%rsp)
je 0x35ef80
movl %edx, %r8d
testl %edx, %edx
jle 0x35efa1
cmpl $0x0, (%rsp)
js 0x35efc2
cmpl $0x0, 0x8(%rsp)
js 0x35efe3
leal -0x1(%r15), %ebp
addq $0xf, %r15
shrq $0x4, %r15
movl %ebp, %eax
xorl %edx, %edx
divl %r15d
movl %eax, 0x4(%rsp)
movl %edx, %r14d
movl (%rsp), %edx
movl %edx, %r13d
negl %r13d
movq 0x60(%rsp), %rsi
movl 0x20(%rsi), %eax
movl %eax, %ecx
negb %cl
cmpl %r13d, %eax
movzbl %cl, %eax
cmovgl %edx, %eax
movl %eax, 0x48(%rsp)
movb $0x7e, %r12b
subb 0x1c(%rsi), %r12b
pushq $0x10
popq %rcx
movl %r15d, %edi
movl %r8d, %esi
movq %rcx, %rdx
movq %r8, 0x10(%rsp)
callq 0x1abb59
testq %rax, %rax
je 0x35e6fd
movq %rax, %rbx
movb %r12b, 0x38(%rsp)
movl %r14d, 0x5c(%rsp)
movl %ebp, 0x58(%rsp)
orl $0x10180801, 0xc(%rax)  # imm = 0x10180801
pushq $0x10
popq %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x297cd8
movq %r15, %rbp
movq %rax, %r15
movq %r14, %rdi
movq %rbp, %rsi
callq 0x297cd8
movq %rax, 0x28(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
callq 0x297cd8
movq %rax, 0x30(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
callq 0x297cd8
movq %rax, %r12
movq %r14, %rdi
movq %rbp, %rsi
callq 0x297cd8
movq %rax, %r14
pushq $0x10
popq %rdi
movq %rbp, 0x20(%rsp)
movq %rbp, %rsi
callq 0x297cd8
movq %rax, %rbp
movq 0x10(%rsp), %rax
leal 0x1(%rax), %esi
pushq $0x10
popq %rdi
movq %rsi, 0x40(%rsp)
callq 0x1ab776
movq %r15, %xmm0
movq 0x28(%rsp), %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movq 0x30(%rsp), %xmm1
movq %r12, %xmm2
punpcklqdq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0]
pxor %xmm2, %xmm2
movq %r14, 0x80(%rsp)
testq %r14, %r14
sete %dil
testq %rbp, %rbp
sete %cl
movq %rax, 0x18(%rsp)
testq %rax, %rax
sete %dl
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, %esi
testl %esi, %esi
setne %sil
orb %dil, %cl
orb %dl, %cl
orb %sil, %cl
je 0x35e704
xorl %ebx, %ebx
jmp 0x35f00b
movq 0x10(%rsp), %r10
leal -0x1(%r10), %eax
movl %eax, 0x54(%rsp)
pushq $0xf
popq %rax
subl 0x4(%rsp), %eax
movl %eax, 0x50(%rsp)
movl (%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, %xmm2      # xmm2 = xmm0[0,0,0,0]
movl 0x8(%rsp), %edx
movd %edx, %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 0x48(%rsp), %eax
addb $-0x7f, %al
movzbl %al, %eax
movd %eax, %xmm0
movdqa %xmm0, 0xb0(%rsp)
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]
movdqa %xmm0, 0x70(%rsp)
movzbl 0x38(%rsp), %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, %xmm8      # xmm8 = xmm0[0,0,0,0]
movl %ecx, %eax
movl %edx, %ecx
movslq %r13d, %rdx
negq %rax
movq 0x20(%rsp), %r9
movq %r9, %rsi
imulq %rcx, %rsi
xorl %edi, %edi
pushq $-0x80
popq %r8
cmpq %r9, %rdi
je 0x35e825
movq %rdx, %r9
xorl %r10d, %r10d
cmpq $0x10, %r10
je 0x35e7e5
cmpq $-0x7f, %r9
movq %r8, %r11
cmovgeq %r9, %r11
leaq (%rax,%r9), %r14
cmpq $-0x7f, %r14
cmovlq %r8, %r14
movb %r11b, 0xd0(%rsp,%r10)
movb %r14b, 0xc0(%rsp,%r10)
incq %r10
subq %rsi, %r9
jmp 0x35e7b0
movq %rdi, %r9
shlq $0x4, %r9
movaps 0xd0(%rsp), %xmm0
movaps %xmm0, (%r15,%r9)
movdqa 0xc0(%rsp), %xmm0
movq 0x30(%rsp), %r10
movdqa %xmm0, (%r10,%r9)
movdqa %xmm0, (%r12,%r9)
incq %rdi
subq %rcx, %rdx
movq 0x10(%rsp), %r10
movq 0x20(%rsp), %r9
jmp 0x35e7a5
movq 0x18(%rsp), %rax
movb $0x0, (%rax)
pushq $0x1
popq %rax
movl 0x8(%rsp), %esi
movq 0x40(%rsp), %rdi
movq 0x18(%rsp), %rdx
cmpq %rax, %rdi
je 0x35e859
cmpl $-0x7f, %r13d
pushq $-0x80
popq %rcx
cmovgel %r13d, %ecx
movb %cl, (%rdx,%rax)
incq %rax
subl %esi, %r13d
jmp 0x35e83e
movq %r9, %rdi
shlq $0x4, %rdi
xorl %eax, %eax
movdqa 0x209936(%rip), %xmm0   # 0x5681a0
cmpq %rax, %rdi
je 0x35e881
movq 0x10(%rbx), %rcx
movq (%rcx), %rcx
movdqa %xmm0, (%rcx,%rax)
addq $0x10, %rax
jmp 0x35e86a
leal -0x1(%r9), %eax
movl %r10d, %ecx
movq %rcx, 0x40(%rsp)
xorl %edx, %edx
shlq $0x4, %rax
movq %rax, 0x38(%rsp)
movdqa 0x2098d0(%rip), %xmm7   # 0x568170
movdqa 0x26b227(%rip), %xmm15  # 0x5c9ad0
movdqa 0x26aeee(%rip), %xmm10  # 0x5c97a0
movdqa 0x26b225(%rip), %xmm12  # 0x5c9ae0
movq %rdi, 0x8(%rsp)
xorl %r11d, %r11d
movdqa 0x70(%rsp), %xmm5
movdqa %xmm8, 0x90(%rsp)
movq 0x28(%rsp), %rax
movq 0x80(%rsp), %rcx
movdqa %xmm2, 0xa0(%rsp)
movq %rax, %r13
movq %rcx, %r14
cmpq 0x40(%rsp), %r11
je 0x35ee47
movq 0x38(%rsp), %rax
leaq (%r15,%rax), %rcx
movq %rcx, 0x48(%rsp)
movdqa (%r15,%rax), %xmm0
pslldq $0x1, %xmm0             # xmm0 = zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
movq 0x18(%rsp), %rax
movzbl (%rax,%r11), %eax
movd %eax, %xmm1
movdqa 0x269176(%rip), %xmm11  # 0x5c7aa0
pandn %xmm1, %xmm11
por %xmm0, %xmm11
movq 0x60(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x68(%rsp), %rsi
movzbl (%rsi,%r11), %esi
movl (%rax,%rsi,4), %eax
imull %r9d, %eax
movslq %eax, %rsi
shlq $0x4, %rsi
addq 0x88(%rsp), %rsi
movq %r11, 0x28(%rsp)
incq %r11
pushq $0x1
popq %r8
xorl %r9d, %r9d
movdqa 0x70(%rsp), %xmm0
cmpq %r9, %rdi
je 0x35eb79
paddsb (%rsi,%r9), %xmm11
movq 0x30(%rsp), %rcx
movdqa (%rcx,%r9), %xmm4
movdqa %xmm11, %xmm1
pcmpgtb %xmm4, %xmm1
movdqa %xmm11, %xmm6
pand %xmm1, %xmm6
pandn %xmm4, %xmm1
por %xmm6, %xmm1
movdqa %xmm1, %xmm9
pcmpgtb %xmm0, %xmm9
pand %xmm9, %xmm1
movdqa %xmm9, %xmm6
pandn %xmm0, %xmm6
por %xmm1, %xmm6
movdqa %xmm6, (%r13,%r9)
movq 0x10(%rbx), %rax
movq (%rax), %rax
addq %rdx, %rax
pcmpeqb %xmm6, %xmm11
paddb %xmm7, %xmm9
movdqa %xmm11, %xmm1
pandn %xmm9, %xmm1
pand 0x2097a0(%rip), %xmm11  # 0x568190
por %xmm1, %xmm11
movdqa (%r9,%rax), %xmm1
por %xmm11, %xmm1
movdqa %xmm11, (%rbp,%r9)
movq 0x10(%rbx), %rax
movq (%rax), %rax
addq %rdx, %rax
movdqa %xmm1, (%r9,%rax)
movdqa %xmm6, %xmm14
psubsb %xmm2, %xmm14
movdqa %xmm4, %xmm1
psubsb %xmm3, %xmm1
movdqa %xmm14, %xmm9
pcmpgtb %xmm1, %xmm9
movdqa %xmm14, %xmm11
pand %xmm9, %xmm11
pandn %xmm1, %xmm9
por %xmm11, %xmm9
movdqa %xmm9, (%rcx,%r9)
movdqa (%r12,%r9), %xmm9
psubsb %xmm3, %xmm9
movdqa %xmm14, %xmm13
pcmpgtb %xmm9, %xmm13
movdqa %xmm14, %xmm11
pand %xmm13, %xmm11
movdqa %xmm13, %xmm1
pandn %xmm9, %xmm1
por %xmm11, %xmm1
movdqa %xmm1, (%r14,%r9)
cmpl %r10d, %r11d
jge 0x35eaaa
pand 0x26ad01(%rip), %xmm13  # 0x5c9790
pxor 0x209718(%rip), %xmm13  # 0x5681b0
movq 0x10(%rbx), %rax
movq (%rax), %rax
addq 0x8(%rsp), %rax
movdqa %xmm13, (%r9,%rax)
movdqa %xmm0, %xmm9
psubsb %xmm3, %xmm9
movdqa %xmm14, %xmm1
pcmpgtb %xmm9, %xmm1
cmpq 0x20(%rsp), %r8
jae 0x35eaf0
movq 0x10(%rbx), %rax
movq (%rax), %rax
addq %rdx, %rax
movdqa %xmm1, %xmm11
pand %xmm10, %xmm11
pxor 0x2096ee(%rip), %xmm11  # 0x5681d0
por 0x10(%r9,%rax), %xmm11
movdqa %xmm11, 0x10(%r9,%rax)
movdqa %xmm5, %xmm11
pcmpgtb %xmm6, %xmm11
pand %xmm11, %xmm5
pandn %xmm6, %xmm11
por %xmm11, %xmm5
movdqa %xmm8, %xmm11
pcmpgtb %xmm6, %xmm11
pand %xmm11, %xmm6
pandn %xmm8, %xmm11
por %xmm6, %xmm11
movdqa %xmm11, %xmm6
pcmpgtb %xmm4, %xmm6
pand %xmm6, %xmm4
pandn %xmm11, %xmm6
por %xmm4, %xmm6
movdqa %xmm6, %xmm8
pcmpgtb %xmm0, %xmm8
pand %xmm8, %xmm0
pandn %xmm6, %xmm8
por %xmm0, %xmm8
movdqa %xmm14, %xmm0
pand %xmm1, %xmm0
pandn %xmm9, %xmm1
por %xmm0, %xmm1
movdqa (%r15,%r9), %xmm11
addq $0x10, %r9
incq %r8
movdqa %xmm1, %xmm0
jmp 0x35e972
xorl %eax, %eax
movdqa %xmm0, %xmm6
movdqa %xmm9, %xmm4
cmpl $0x10, %eax
je 0x35ee29
movl %eax, 0x4(%rsp)
movq 0x18(%rsp), %rcx
movq 0x28(%rsp), %r9
movsbl 0x1(%rcx,%r9), %eax
subl (%rsp), %eax
cmpl $-0x7f, %eax
pushq $-0x80
popq %r8
cmovll %r8d, %eax
movq 0x48(%rsp), %r8
movdqa (%r8), %xmm1
pslldq $0x1, %xmm1             # xmm1 = zero,xmm1[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
movzbl (%rcx,%r9), %r9d
movd %r9d, %xmm13
movdqa %xmm7, %xmm2
movdqa %xmm12, %xmm7
movdqa %xmm10, %xmm12
movdqa %xmm15, %xmm10
movdqa 0x268ebc(%rip), %xmm15  # 0x5c7aa0
movdqa %xmm15, %xmm11
pandn %xmm13, %xmm11
por %xmm1, %xmm11
pslldq $0x1, %xmm14            # xmm14 = zero,xmm14[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
movd %eax, %xmm1
movdqa %xmm15, %xmm13
pandn %xmm1, %xmm13
por %xmm13, %xmm14
pslldq $0x1, %xmm9             # xmm9 = zero,xmm9[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
movdqa %xmm15, %xmm1
movdqa %xmm10, %xmm15
movdqa %xmm12, %xmm10
movdqa %xmm7, %xmm12
movdqa %xmm2, %xmm7
movdqa 0xa0(%rsp), %xmm2
pandn 0xb0(%rsp), %xmm1
por %xmm1, %xmm9
pslldq $0x1, %xmm0             # xmm0 = zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
por %xmm13, %xmm0
pslldq $0x1, %xmm4             # xmm4 = zero,xmm4[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
por %xmm1, %xmm4
pslldq $0x1, %xmm6             # xmm6 = zero,xmm6[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
por %xmm13, %xmm6
xorl %r9d, %r9d
movq %rdx, %r10
movq 0x20(%rsp), %rax
subq $0x1, %rax
jb 0x35ee0f
movdqa (%r13,%r9), %xmm1
movdqa %xmm1, %xmm13
pcmpgtb %xmm0, %xmm13
pand %xmm13, %xmm1
movdqa %xmm13, %xmm9
pandn %xmm0, %xmm9
por %xmm1, %xmm9
movdqa %xmm9, (%r13,%r9)
paddsb (%rsi,%r9), %xmm11
pcmpeqb %xmm9, %xmm11
por %xmm13, %xmm11
movq 0x10(%rbx), %r8
movq (%r8), %r8
movdqa (%r8,%r10), %xmm1
pand %xmm15, %xmm1
movdqa (%rbp,%r9), %xmm13
pand %xmm11, %xmm13
pandn %xmm7, %xmm11
por %xmm13, %xmm11
movdqa %xmm11, (%rbp,%r9)
por %xmm1, %xmm11
movq 0x10(%rbx), %r8
movq (%r8), %r8
movdqa %xmm11, (%r8,%r10)
movq 0x10(%rbx), %r8
movq (%r8), %r8
pcmpgtb %xmm4, %xmm14
pand %xmm10, %xmm14
movdqa (%r8,%r10), %xmm1
pand %xmm12, %xmm1
por %xmm14, %xmm1
pxor 0x2094b7(%rip), %xmm1   # 0x5681d0
movdqa %xmm1, (%r8,%r10)
movdqa %xmm9, %xmm14
psubsb %xmm2, %xmm14
movdqa (%r12,%r9), %xmm4
psubsb %xmm3, %xmm4
movdqa %xmm14, %xmm1
pcmpgtb %xmm4, %xmm1
movdqa %xmm14, %xmm11
pand %xmm1, %xmm11
movdqa %xmm1, %xmm13
pandn %xmm4, %xmm13
por %xmm11, %xmm13
movdqa %xmm13, (%r14,%r9)
cmpl 0x10(%rsp), %r11d
jge 0x35ed82
pand 0x26aa26(%rip), %xmm1   # 0x5c9790
pxor 0x20943e(%rip), %xmm1   # 0x5681b0
movq 0x10(%rbx), %r8
movq (%r8), %r8
addq %rdi, %r8
movdqa %xmm1, (%r10,%r8)
movdqa %xmm8, %xmm1
pcmpgtb %xmm9, %xmm1
movdqa %xmm9, %xmm4
pand %xmm1, %xmm4
pandn %xmm8, %xmm1
movdqa %xmm1, %xmm8
por %xmm4, %xmm8
movdqa %xmm5, %xmm1
pcmpgtb %xmm9, %xmm5
pand %xmm5, %xmm1
pandn %xmm9, %xmm5
por %xmm1, %xmm5
psubsb %xmm3, %xmm0
movdqa %xmm14, %xmm1
pcmpgtb %xmm0, %xmm1
pmovmskb %xmm1, %r8d
cmpl $0xffff, %r8d           # imm = 0xFFFF
je 0x35ee1f
movdqa %xmm6, %xmm4
psubsb %xmm3, %xmm4
movdqa %xmm14, %xmm6
pcmpgtb %xmm4, %xmm6
movdqa %xmm14, %xmm1
pand %xmm6, %xmm1
pandn %xmm4, %xmm6
por %xmm1, %xmm6
movdqa (%r15,%r9), %xmm11
addq $0x10, %r10
addq $0x10, %r9
movdqa %xmm0, %xmm9
jmp 0x35ec69
movl 0x4(%rsp), %eax
incl %eax
movq 0x10(%rsp), %r10
jmp 0x35eb84
movdqa %xmm0, %xmm9
movq 0x10(%rsp), %r10
addq %rdi, 0x8(%rsp)
addq %rdi, %rdx
movq %r12, %rcx
movq %r14, %r12
movq %r15, %rax
movq %r13, %r15
movq 0x20(%rsp), %r9
jmp 0x35e8e9
movl 0x5c(%rsp), %eax
shlq $0x4, %rax
movdqa (%r15,%rax), %xmm0
xorl %eax, %eax
movl 0x54(%rsp), %edx
movl 0x50(%rsp), %ecx
cmpl %ecx, %eax
jge 0x35ee6c
pslldq $0x1, %xmm0             # xmm0 = zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
incl %eax
jmp 0x35ee5f
movdqa 0x70(%rsp), %xmm1
pcmpgtb %xmm8, %xmm1
pcmpgtb 0x90(%rsp), %xmm5
por %xmm1, %xmm5
pmovmskb %xmm5, %eax
testl %eax, %eax
je 0x35ee98
orb $0x40, 0xc(%rbx)
xorl %eax, %eax
xorl %edx, %edx
xorl %ecx, %ecx
jmp 0x35eea4
pextrw $0x7, %xmm0, %eax
shrl $0x8, %eax
movl 0x58(%rsp), %ecx
movsbl %al, %eax
movl %eax, (%rbx)
movl %ecx, 0x4(%rbx)
movl %edx, 0x8(%rbx)
movq 0x18(%rsp), %rdi
callq 0x1ab763
movq %rbp, %rdi
callq 0x1ab763
movq %r14, %rdi
callq 0x1ab763
movq %r12, %rdi
callq 0x1ab763
movq 0x30(%rsp), %rdi
callq 0x1ab763
movq %r13, %rdi
callq 0x1ab763
movq %r15, %rdi
callq 0x1ab763
jmp 0x35f00b
movq 0x3dc0e1(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2680ea(%rip), %rsi    # 0x5c6feb
leaq 0x2623f5(%rip), %rdx    # 0x5c12fd
leaq 0x23e5ce(%rip), %rcx    # 0x59d4dd
jmp 0x35f002
movq 0x3dc0bd(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2680c6(%rip), %rsi    # 0x5c6feb
leaq 0x2623d1(%rip), %rdx    # 0x5c12fd
leaq 0x268b7d(%rip), %rcx    # 0x5c7ab0
jmp 0x35f002
movq 0x3dc099(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2680a2(%rip), %rsi    # 0x5c6feb
leaq 0x2623ad(%rip), %rdx    # 0x5c12fd
leaq 0x2689e2(%rip), %rcx    # 0x5c7939
jmp 0x35f002
movq 0x3dc075(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x268794(%rip), %rsi    # 0x5c7701
leaq 0x262389(%rip), %rdx    # 0x5c12fd
leaq 0x2689ce(%rip), %rcx    # 0x5c7949
jmp 0x35f002
movq 0x3dc051(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x26805a(%rip), %rsi    # 0x5c6feb
leaq 0x262365(%rip), %rdx    # 0x5c12fd
leaq 0x26875f(%rip), %rcx    # 0x5c76fe
jmp 0x35f002
movq 0x3dc030(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x26874f(%rip), %rsi    # 0x5c7701
leaq 0x262344(%rip), %rdx    # 0x5c12fd
leaq 0x268755(%rip), %rcx    # 0x5c7715
jmp 0x35f002
movq 0x3dc00f(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x268748(%rip), %rsi    # 0x5c771b
leaq 0x262323(%rip), %rdx    # 0x5c12fd
leaq 0x26874f(%rip), %rcx    # 0x5c7730
jmp 0x35f002
movq 0x3dbfee(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x268727(%rip), %rsi    # 0x5c771b
leaq 0x262302(%rip), %rdx    # 0x5c12fd
leaq 0x268733(%rip), %rcx    # 0x5c7735
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x19e180
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq