// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/nw_trace_scan_sse2_128_8.c
// Function: parasail_nw_trace_scan_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 pvP = NULL;
    __m128i* restrict pvE = NULL;
    int8_t* restrict boundary = NULL;
    __m128i* restrict pvHt = NULL;
    __m128i* restrict pvH = NULL;
    __m128i* restrict pvGapper = NULL;
    __m128i vGapO;
    __m128i vGapE;
    int8_t NEG_LIMIT = 0;
    int8_t POS_LIMIT = 0;
    __m128i vZero;
    int8_t score = 0;
    __m128i vNegLimit;
    __m128i vPosLimit;
    __m128i vSaturationCheckMin;
    __m128i vSaturationCheckMax;
    __m128i vNegInfFront;
    __m128i vSegLenXgap;
    parasail_result_t *result = NULL;
    __m128i vTIns;
    __m128i vTDel;
    __m128i vTDiag;
    __m128i vTDiagE;
    __m128i vTInsE;
    __m128i vTDiagF;
    __m128i vTDelF;

    /* 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;
    pvP = (__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;
    vZero = _mm_setzero_si128();
    score = NEG_LIMIT;
    vNegLimit = _mm_set1_epi8(NEG_LIMIT);
    vPosLimit = _mm_set1_epi8(POS_LIMIT);
    vSaturationCheckMin = vPosLimit;
    vSaturationCheckMax = vNegLimit;
    vNegInfFront = vZero;
    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);
    vNegInfFront = _mm_insert_epi8_rpl(vNegInfFront, NEG_LIMIT, 0);
    vSegLenXgap = _mm_adds_epi8(vNegInfFront,
            _mm_slli_si128(_mm_set1_epi8(-segLen*gap), 1));

    /* 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_SCAN
        | PARASAIL_FLAG_TRACE
        | PARASAIL_FLAG_BITS_8 | PARASAIL_FLAG_LANES_16;

    /* initialize heap variables */
    pvE = parasail_memalign___m128i(16, segLen);
    boundary = parasail_memalign_int8_t(16, s2Len+1);
    pvHt= parasail_memalign___m128i(16, segLen);
    pvH = parasail_memalign___m128i(16, segLen);
    pvGapper = parasail_memalign___m128i(16, segLen);

    /* validate heap variables */
    if (!pvE) return NULL;
    if (!boundary) return NULL;
    if (!pvHt) return NULL;
    if (!pvH) return NULL;
    if (!pvGapper) 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(&pvH[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 = -open-gap*(i-1);
            boundary[i] = tmp < INT8_MIN ? INT8_MIN : tmp;
        }
    }

    {
        __m128i vGapper = _mm_subs_epi8(vZero,vGapO);
        for (i=segLen-1; i>=0; --i) {
            _mm_store_si128(pvGapper+i, vGapper);
            vGapper = _mm_subs_epi8(vGapper, vGapE);
        }
    }

    /* outer loop over database sequence */
    for (j=0; j<s2Len; ++j) {
        __m128i vE;
        __m128i vE_ext;
        __m128i vE_opn;
        __m128i vHt;
        __m128i vF;
        __m128i vF_ext;
        __m128i vF_opn;
        __m128i vH;
        __m128i vHp;
        __m128i *pvW;
        __m128i vW;
        __m128i case1;
        __m128i case2;
        __m128i vGapper;
        __m128i vT;
        __m128i vET;
        __m128i vFT;

        /* calculate E */
        /* calculate Ht */
        /* calculate F and H first pass */
        vHp = _mm_load_si128(pvH+(segLen-1));
        vHp = _mm_slli_si128(vHp, 1);
        vHp = _mm_insert_epi8_rpl(vHp, boundary[j], 0);
        pvW = pvP + matrix->mapper[(unsigned char)s2[j]]*segLen;
        vHt = _mm_subs_epi8(vNegLimit, pvGapper[0]);
        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);
            vGapper = _mm_load_si128(pvGapper+i);
            vE_opn = _mm_subs_epi8(vH, vGapO);
            vE_ext = _mm_subs_epi8(vE, vGapE);
            case1 = _mm_cmpgt_epi8(vE_opn, vE_ext);
            vET = _mm_blendv_epi8_rpl(vTInsE, vTDiagE, case1);
            arr_store(result->trace->trace_table, vET, i, segLen, j);
            vE = _mm_max_epi8_rpl(vE_opn, vE_ext);
            vSaturationCheckMin = _mm_min_epi8_rpl(vSaturationCheckMin, vE);
            vGapper = _mm_adds_epi8(vHt, vGapper);
            vF = _mm_max_epi8_rpl(vF, vGapper);
            vHp = _mm_adds_epi8(vHp, vW);
            vHt = _mm_max_epi8_rpl(vE, vHp);
            _mm_store_si128(pvE+i, vE);
            _mm_store_si128(pvHt+i, vHt);
            _mm_store_si128(pvH+i, vHp);
            vHp = vH;
        }

        /* pseudo prefix scan on F and H */
        vHt = _mm_slli_si128(vHt, 1);
        vHt = _mm_insert_epi8_rpl(vHt, boundary[j+1], 0);
        vGapper = _mm_load_si128(pvGapper);
        vGapper = _mm_adds_epi8(vHt, vGapper);
        vF = _mm_max_epi8_rpl(vF, vGapper);
        for (i=0; i<segWidth-2; ++i) {
            __m128i vFt = _mm_slli_si128(vF, 1);
            vFt = _mm_adds_epi8(vFt, vSegLenXgap);
            vF = _mm_max_epi8_rpl(vF, vFt);
        }

        /* calculate final H */
        vF = _mm_slli_si128(vF, 1);
        vF = _mm_adds_epi8(vF, vNegInfFront);
        vH = _mm_max_epi8_rpl(vF, vHt);
        for (i=0; i<segLen; ++i) {
            vET = arr_load(result->trace->trace_table, i, segLen, j);
            vHp = _mm_load_si128(pvH+i);
            vHt = _mm_load_si128(pvHt+i);
            vF_opn = _mm_subs_epi8(vH, vGapO);
            vF_ext = _mm_subs_epi8(vF, vGapE);
            vF = _mm_max_epi8_rpl(vF_opn, vF_ext);
            case1 = _mm_cmpgt_epi8(vF_opn, vF_ext);
            vFT = _mm_blendv_epi8_rpl(vTDelF, vTDiagF, case1);
            vH = _mm_max_epi8_rpl(vHt, vF);
            case1 = _mm_cmpeq_epi8(vH, vHp);
            case2 = _mm_cmpeq_epi8(vH, vF);
            vT = _mm_blendv_epi8_rpl(
                    _mm_blendv_epi8_rpl(vTIns, vTDel, case2),
                    vTDiag, case1);
            vT = _mm_or_si128(vT, vET);
            vT = _mm_or_si128(vT, vFT);
            arr_store(result->trace->trace_table, vT, i, segLen, j);
            _mm_store_si128(pvH+i, vH);
            vSaturationCheckMin = _mm_min_epi8_rpl(vSaturationCheckMin, vH);
            vSaturationCheckMin = _mm_min_epi8_rpl(vSaturationCheckMin, vF);
            vSaturationCheckMax = _mm_max_epi8_rpl(vSaturationCheckMax, vH);
        }
    }

    /* extract last value from the last column */
    {
        __m128i vH = _mm_load_si128(pvH + 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(pvGapper);
    parasail_free(pvH);
    parasail_free(pvHt);
    parasail_free(boundary);
    parasail_free(pvE);

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, 0x68(%rsp)
testq %rdi, %rdi
je 0x347d7a
movq 0x18(%rdi), %rax
movq %rax, 0x88(%rsp)
testq %rax, %rax
je 0x347d9e
movq 0x10(%rdi), %rax
movq %rax, 0x60(%rsp)
testq %rax, %rax
je 0x347dc2
movl 0x8(%rdi), %r12d
testl %r12d, %r12d
jle 0x347de6
cmpq $0x0, 0x68(%rsp)
je 0x347e0a
movl %edx, %r14d
testl %edx, %edx
jle 0x347e2b
movl %ecx, %r13d
testl %ecx, %ecx
js 0x347e4c
testl %r8d, %r8d
js 0x347e6d
movl %r8d, 0xc(%rsp)
leal -0x1(%r12), %eax
addq $0xf, %r12
shrq $0x4, %r12
movl %eax, 0x2c(%rsp)
xorl %edx, %edx
divl %r12d
movl %eax, 0x30(%rsp)
movl %edx, %ebx
movl %r13d, %ebp
negl %ebp
movq 0x60(%rsp), %rdx
movl 0x20(%rdx), %eax
movl %eax, %ecx
negb %cl
cmpl %ebp, %eax
movzbl %cl, %eax
cmovgl %r13d, %eax
movl %eax, 0x40(%rsp)
movb $0x7e, %al
subb 0x1c(%rdx), %al
movb %al, 0x70(%rsp)
pushq $0x10
popq %rcx
movl %r12d, %edi
movl %r14d, %esi
movq %rcx, %rdx
callq 0x1abb59
testq %rax, %rax
je 0x347949
movq %rax, %r15
movl %r13d, 0x24(%rsp)
movl %ebx, 0x28(%rsp)
orl $0x10180401, 0xc(%rax)  # imm = 0x10180401
pushq $0x10
popq %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x297cd8
movq %rax, %r13
movq %r14, 0x58(%rsp)
leal 0x1(%r14), %esi
movq %rbx, %rdi
movq %rsi, 0x80(%rsp)
callq 0x1ab776
movq %rax, (%rsp)
movq %rbx, %rdi
movq %rbx, %r14
movq %r12, %rsi
callq 0x297cd8
movq %rax, %rbx
movq %r14, %rdi
movq %r12, %rsi
callq 0x297cd8
movq %rax, %r14
pushq $0x10
popq %rdi
movq %r12, 0x10(%rsp)
movq %r12, %rsi
callq 0x297cd8
movq %r13, %xmm0
movq (%rsp), %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movq %rbx, %xmm1
movq %r14, %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
xorl %r12d, %r12d
testl %ecx, %ecx
jne 0x347e96
testq %rax, %rax
je 0x347e96
movq 0x58(%rsp), %rcx
decl %ecx
movl %ecx, 0x20(%rsp)
pushq $0xf
popq %rcx
subl 0x30(%rsp), %ecx
movl %ecx, 0x1c(%rsp)
movl 0x24(%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, %xmm2      # xmm2 = xmm0[0,0,0,0]
movl 0xc(%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 0x40(%rsp), %ecx
addb $-0x7f, %cl
movzbl %cl, %ecx
movd %ecx, %xmm1
movdqa %xmm1, %xmm0
punpcklbw %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3],xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[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, 0x40(%rsp)
movzbl 0x70(%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, %xmm9      # xmm9 = xmm0[0,0,0,0]
movq 0x10(%rsp), %r10
movl %r10d, %ecx
imull %edx, %ecx
negb %cl
movzbl %cl, %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, %xmm5      # xmm5 = xmm0[0,0,0,0]
pslldq $0x1, %xmm5             # xmm5 = zero,xmm5[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
movdqa %xmm1, 0x70(%rsp)
paddsb %xmm1, %xmm5
movl %esi, %ecx
movl %edx, %edx
movslq %ebp, %rdi
negq %rcx
movq %r10, %r8
movq %rdx, 0x30(%rsp)
imulq %rdx, %r8
xorl %r9d, %r9d
pushq $-0x80
popq %r12
cmpq %r10, %r9
je 0x347951
movq %rdi, %r11
xorl %edx, %edx
cmpq $0x10, %rdx
je 0x347916
cmpq $-0x7f, %r11
movq %r12, %r10
cmovgeq %r11, %r10
leaq (%rcx,%r11), %rsi
cmpq $-0x7f, %rsi
cmovlq %r12, %rsi
movb %r10b, 0xa0(%rsp,%rdx)
movb %sil, 0x90(%rsp,%rdx)
incq %rdx
subq %r8, %r11
jmp 0x3478e1
movq %r9, %rdx
shlq $0x4, %rdx
movaps 0xa0(%rsp), %xmm0
movaps %xmm0, (%r14,%rdx)
movdqa 0x90(%rsp), %xmm0
movdqa %xmm0, (%r13,%rdx)
incq %r9
subq 0x30(%rsp), %rdi
movq 0x10(%rsp), %r10
jmp 0x3478d7
xorl %r12d, %r12d
jmp 0x347e96
movq (%rsp), %rcx
movb $0x0, (%rcx)
pushq $0x1
popq %rcx
pushq $-0x80
popq %rdx
movl 0x2c(%rsp), %r12d
movl 0xc(%rsp), %r8d
movq 0x80(%rsp), %r9
movq (%rsp), %rdi
cmpq %rcx, %r9
je 0x34798d
cmpl $-0x7f, %ebp
movl %edx, %esi
cmovgel %ebp, %esi
movb %sil, (%rdi,%rcx)
incq %rcx
subl %r8d, %ebp
jmp 0x347974
pxor %xmm0, %xmm0
psubsb %xmm2, %xmm0
leal -0x1(%r10), %ecx
movl %ecx, %edx
testl %edx, %edx
js 0x3479b2
movl %edx, %esi
shlq $0x4, %rsi
movdqa %xmm0, (%rax,%rsi)
psubsb %xmm3, %xmm0
decl %edx
jmp 0x34799b
movl %ecx, %ecx
shlq $0x4, %rcx
movq %r14, %rsi
addq %rcx, %rsi
movl 0x58(%rsp), %edi
movq %r10, %r8
shlq $0x4, %r8
xorl %r9d, %r9d
pushq $0xe
popq %r10
movdqa 0x2207b7(%rip), %xmm12  # 0x568190
movdqa 0x281dae(%rip), %xmm13  # 0x5c9790
movdqa 0x2207c5(%rip), %xmm14  # 0x5681b0
xorl %r11d, %r11d
movdqa %xmm9, 0x30(%rsp)
movdqa 0x40(%rsp), %xmm6
cmpq %rdi, %r11
je 0x347ce3
movdqa (%rsi), %xmm0
pslldq $0x1, %xmm0             # xmm0 = zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
movq (%rsp), %rcx
movzbl (%rcx,%r11), %ecx
movd %ecx, %xmm1
movdqa 0x28007d(%rip), %xmm8   # 0x5c7aa0
pandn %xmm1, %xmm8
por %xmm0, %xmm8
movq 0x60(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x68(%rsp), %rdx
movzbl (%rdx,%r11), %edx
movl (%rcx,%rdx,4), %ecx
imull 0x10(%rsp), %ecx
movslq %ecx, %rbp
shlq $0x4, %rbp
addq 0x88(%rsp), %rbp
movdqa 0x40(%rsp), %xmm15
movdqa %xmm15, %xmm4
psubsb (%rax), %xmm4
xorl %ecx, %ecx
cmpq %rcx, %r8
je 0x347b3a
movdqa (%r14,%rcx), %xmm10
movdqa (%r13,%rcx), %xmm7
movdqa %xmm10, %xmm1
psubsb %xmm2, %xmm1
psubsb %xmm3, %xmm7
movdqa %xmm1, %xmm0
pcmpgtb %xmm7, %xmm0
movdqa %xmm0, %xmm11
pand %xmm13, %xmm11
pxor %xmm14, %xmm11
movq 0x10(%r15), %rdx
movq (%rdx), %rdx
paddsb (%rax,%rcx), %xmm4
paddsb (%rbp,%rcx), %xmm8
addq %r9, %rdx
movdqa %xmm11, (%rcx,%rdx)
pand %xmm0, %xmm1
pandn %xmm7, %xmm0
por %xmm1, %xmm0
movdqa %xmm9, %xmm7
pcmpgtb %xmm0, %xmm7
movdqa %xmm15, %xmm1
pcmpgtb %xmm4, %xmm1
pand %xmm1, %xmm15
pandn %xmm4, %xmm1
movdqa %xmm0, %xmm4
movdqa %xmm0, %xmm11
movdqa %xmm0, (%r13,%rcx)
pand %xmm7, %xmm0
pandn %xmm9, %xmm7
por %xmm0, %xmm7
por %xmm1, %xmm15
pcmpgtb %xmm8, %xmm4
pand %xmm4, %xmm11
pandn %xmm8, %xmm4
por %xmm11, %xmm4
movdqa %xmm4, (%rbx,%rcx)
movdqa %xmm8, (%r14,%rcx)
addq $0x10, %rcx
movdqa %xmm7, %xmm9
movdqa %xmm10, %xmm8
jmp 0x347a69
pslldq $0x1, %xmm4             # xmm4 = zero,xmm4[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
movq (%rsp), %rcx
movzbl 0x1(%rcx,%r11), %ecx
incq %r11
movd %ecx, %xmm0
movdqa 0x27ff47(%rip), %xmm8   # 0x5c7aa0
pandn %xmm0, %xmm8
por %xmm4, %xmm8
movdqa (%rax), %xmm1
paddsb %xmm8, %xmm1
movdqa %xmm15, %xmm0
pcmpgtb %xmm1, %xmm0
pand %xmm0, %xmm15
pandn %xmm1, %xmm0
por %xmm15, %xmm0
movl %r10d, %ecx
movdqa 0x281c11(%rip), %xmm10  # 0x5c97a0
movdqa 0x220638(%rip), %xmm11  # 0x5681d0
movdqa %xmm0, %xmm1
pslldq $0x1, %xmm1             # xmm1 = zero,xmm1[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
subl $0x1, %ecx
jb 0x347bc0
paddsb %xmm5, %xmm1
movdqa %xmm0, %xmm4
pcmpgtb %xmm1, %xmm4
pand %xmm4, %xmm0
pandn %xmm1, %xmm4
por %xmm4, %xmm0
jmp 0x347b98
paddsb 0x70(%rsp), %xmm1
movdqa %xmm1, %xmm15
pcmpgtb %xmm8, %xmm15
movdqa %xmm1, %xmm0
pand %xmm15, %xmm0
pandn %xmm8, %xmm15
por %xmm0, %xmm15
xorl %ebp, %ebp
cmpq %rbp, %r8
je 0x347cdb
movq 0x10(%r15), %rcx
movq (%rcx), %rcx
addq %r9, %rcx
movdqa (%rbx,%rbp), %xmm0
psubsb %xmm2, %xmm15
psubsb %xmm3, %xmm1
movdqa %xmm15, %xmm4
pcmpgtb %xmm1, %xmm4
movdqa %xmm4, %xmm7
pandn %xmm1, %xmm7
pand %xmm4, %xmm15
por %xmm7, %xmm15
pand %xmm10, %xmm4
pxor %xmm11, %xmm4
movdqa %xmm0, %xmm1
pcmpgtb %xmm15, %xmm1
movdqa %xmm1, %xmm7
pandn %xmm15, %xmm7
pand %xmm1, %xmm0
por %xmm7, %xmm0
movdqa (%r14,%rbp), %xmm7
pcmpeqb %xmm0, %xmm7
paddb 0x220519(%rip), %xmm1   # 0x568170
movdqa %xmm7, %xmm8
pandn %xmm1, %xmm8
pand %xmm12, %xmm7
por (%rbp,%rcx), %xmm4
por %xmm8, %xmm7
por %xmm7, %xmm4
movdqa %xmm4, (%rbp,%rcx)
movdqa %xmm0, (%r14,%rbp)
movdqa %xmm9, %xmm4
pcmpgtb %xmm0, %xmm4
movdqa %xmm0, %xmm1
pand %xmm4, %xmm1
pandn %xmm9, %xmm4
por %xmm1, %xmm4
movdqa %xmm4, %xmm9
pcmpgtb %xmm15, %xmm9
movdqa %xmm15, %xmm1
pand %xmm9, %xmm15
pandn %xmm4, %xmm9
por %xmm15, %xmm9
movdqa %xmm6, %xmm4
pcmpgtb %xmm0, %xmm4
pand %xmm4, %xmm6
pandn %xmm0, %xmm4
por %xmm4, %xmm6
addq $0x10, %rbp
movdqa %xmm0, %xmm15
jmp 0x347be5
addq %r8, %r9
jmp 0x3479fb
movl 0x28(%rsp), %ecx
shlq $0x4, %rcx
movdqa (%r14,%rcx), %xmm0
xorl %ecx, %ecx
movl 0x20(%rsp), %edx
movl 0x1c(%rsp), %esi
cmpl %esi, %ecx
jge 0x347d08
pslldq $0x1, %xmm0             # xmm0 = zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
incl %ecx
jmp 0x347cfb
movdqa 0x40(%rsp), %xmm1
pcmpgtb %xmm9, %xmm1
pcmpgtb 0x30(%rsp), %xmm6
por %xmm1, %xmm6
pmovmskb %xmm6, %ecx
testl %ecx, %ecx
je 0x347d33
orb $0x40, 0xc(%r15)
xorl %ecx, %ecx
xorl %edx, %edx
xorl %r12d, %r12d
jmp 0x347d3b
pextrw $0x7, %xmm0, %ecx
shrl $0x8, %ecx
movsbl %cl, %ecx
movl %ecx, (%r15)
movl %r12d, 0x4(%r15)
movl %edx, 0x8(%r15)
movq %rax, %rdi
callq 0x1ab763
movq %r14, %rdi
callq 0x1ab763
movq %rbx, %rdi
callq 0x1ab763
movq (%rsp), %rdi
callq 0x1ab763
movq %r13, %rdi
callq 0x1ab763
movq %r15, %r12
jmp 0x347e96
movq 0x3f3257(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x27f260(%rip), %rsi    # 0x5c6feb
leaq 0x27948b(%rip), %rdx    # 0x5c121d
leaq 0x255744(%rip), %rcx    # 0x59d4dd
jmp 0x347e8c
movq 0x3f3233(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x27f23c(%rip), %rsi    # 0x5c6feb
leaq 0x279467(%rip), %rdx    # 0x5c121d
leaq 0x27fcf3(%rip), %rcx    # 0x5c7ab0
jmp 0x347e8c
movq 0x3f320f(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x27f218(%rip), %rsi    # 0x5c6feb
leaq 0x279443(%rip), %rdx    # 0x5c121d
leaq 0x27fb58(%rip), %rcx    # 0x5c7939
jmp 0x347e8c
movq 0x3f31eb(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x27f90a(%rip), %rsi    # 0x5c7701
leaq 0x27941f(%rip), %rdx    # 0x5c121d
leaq 0x27fb44(%rip), %rcx    # 0x5c7949
jmp 0x347e8c
movq 0x3f31c7(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x27f1d0(%rip), %rsi    # 0x5c6feb
leaq 0x2793fb(%rip), %rdx    # 0x5c121d
leaq 0x27f8d5(%rip), %rcx    # 0x5c76fe
jmp 0x347e8c
movq 0x3f31a6(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x27f8c5(%rip), %rsi    # 0x5c7701
leaq 0x2793da(%rip), %rdx    # 0x5c121d
leaq 0x27f8cb(%rip), %rcx    # 0x5c7715
jmp 0x347e8c
movq 0x3f3185(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x27f8be(%rip), %rsi    # 0x5c771b
leaq 0x2793b9(%rip), %rdx    # 0x5c121d
leaq 0x27f8c5(%rip), %rcx    # 0x5c7730
jmp 0x347e8c
movq 0x3f3164(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x27f89d(%rip), %rsi    # 0x5c771b
leaq 0x279398(%rip), %rdx    # 0x5c121d
leaq 0x27f8a9(%rip), %rcx    # 0x5c7735
xorl %r12d, %r12d
xorl %eax, %eax
callq 0x19e180
movq %r12, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop