// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/nw_trace_scan_sse2_128_16.c
// Function: parasail_nw_trace_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 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;
    int16_t* restrict boundary = NULL;
    __m128i* restrict pvHt = NULL;
    __m128i* restrict pvH = 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 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->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;
    k = 0;
    s1Len = profile->s1Len;
    end_query = s1Len-1;
    end_ref = s2Len-1;
    matrix = profile->matrix;
    segWidth = 8; /* number of values in vector unit */
    segLen = (s1Len + segWidth - 1) / segWidth;
    offset = (s1Len - 1) % segLen;
    position = (segWidth - 1) - (s1Len - 1) / segLen;
    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;
    vNegInfFront = vZero;
    vTIns  = _mm_set1_epi16(PARASAIL_INS);
    vTDel  = _mm_set1_epi16(PARASAIL_DEL);
    vTDiag = _mm_set1_epi16(PARASAIL_DIAG);
    vTDiagE = _mm_set1_epi16(PARASAIL_DIAG_E);
    vTInsE = _mm_set1_epi16(PARASAIL_INS_E);
    vTDiagF = _mm_set1_epi16(PARASAIL_DIAG_F);
    vTDelF = _mm_set1_epi16(PARASAIL_DEL_F);
    vNegInfFront = _mm_insert_epi16(vNegInfFront, NEG_LIMIT, 0);
    vSegLenXgap = _mm_adds_epi16(vNegInfFront,
            _mm_slli_si128(_mm_set1_epi16(-segLen*gap), 2));

    /* 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_16 | PARASAIL_FLAG_LANES_8;

    /* initialize heap variables */
    pvE = parasail_memalign___m128i(16, segLen);
    boundary = parasail_memalign_int16_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_16_t h;
            __m128i_16_t e;
            for (segNum=0; segNum<segWidth; ++segNum) {
                int64_t tmp = -open-gap*(segNum*segLen+i);
                h.v[segNum] = tmp < INT16_MIN ? INT16_MIN : tmp;
                tmp = tmp - open;
                e.v[segNum] = tmp < INT16_MIN ? INT16_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 < INT16_MIN ? INT16_MIN : tmp;
        }
    }

    {
        __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 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, 2);
        vHp = _mm_insert_epi16(vHp, boundary[j], 0);
        pvW = pvP + matrix->mapper[(unsigned char)s2[j]]*segLen;
        vHt = _mm_subs_epi16(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_epi16(vH, vGapO);
            vE_ext = _mm_subs_epi16(vE, vGapE);
            case1 = _mm_cmpgt_epi16(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_epi16(vE_opn, vE_ext);
            vSaturationCheckMin = _mm_min_epi16(vSaturationCheckMin, vE);
            vGapper = _mm_adds_epi16(vHt, vGapper);
            vF = _mm_max_epi16(vF, vGapper);
            vHp = _mm_adds_epi16(vHp, vW);
            vHt = _mm_max_epi16(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, 2);
        vHt = _mm_insert_epi16(vHt, boundary[j+1], 0);
        vGapper = _mm_load_si128(pvGapper);
        vGapper = _mm_adds_epi16(vHt, vGapper);
        vF = _mm_max_epi16(vF, vGapper);
        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(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_epi16(vH, vGapO);
            vF_ext = _mm_subs_epi16(vF, vGapE);
            vF = _mm_max_epi16(vF_opn, vF_ext);
            case1 = _mm_cmpgt_epi16(vF_opn, vF_ext);
            vFT = _mm_blendv_epi8_rpl(vTDelF, vTDiagF, case1);
            vH = _mm_max_epi16(vHt, vF);
            case1 = _mm_cmpeq_epi16(vH, vHp);
            case2 = _mm_cmpeq_epi16(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_epi16(vSaturationCheckMin, vH);
            vSaturationCheckMin = _mm_min_epi16(vSaturationCheckMin, vF);
            vSaturationCheckMax = _mm_max_epi16(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, 2);
        }
        score = (int16_t) _mm_extract_epi16 (vH, 7);
    }

    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(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 $0xc8, %rsp
movq %rsi, 0x68(%rsp)
testq %rdi, %rdi
je 0x345d29
movq 0x30(%rdi), %rax
movq %rax, 0x98(%rsp)
testq %rax, %rax
je 0x345d4d
movq 0x10(%rdi), %rax
movq %rax, 0x60(%rsp)
testq %rax, %rax
je 0x345d71
movl 0x8(%rdi), %r12d
testl %r12d, %r12d
jle 0x345d95
cmpq $0x0, 0x68(%rsp)
je 0x345db9
movl %edx, %r14d
testl %edx, %edx
jle 0x345dda
movl %ecx, %r13d
testl %ecx, %ecx
js 0x345dfb
testl %r8d, %r8d
js 0x345e1c
movl %r8d, 0x18(%rsp)
leal -0x1(%r12), %ebx
addq $0x7, %r12
shrq $0x3, %r12
movl %ebx, %eax
xorl %edx, %edx
divl %r12d
movl %eax, 0x70(%rsp)
movl %edx, %ebp
movl %r13d, %edx
negl %edx
movq 0x60(%rsp), %rcx
movl 0x20(%rcx), %eax
movl %eax, %esi
negl %esi
movl %edx, 0x14(%rsp)
cmpl %edx, %eax
cmovgl %r13d, %esi
movl %esi, 0x40(%rsp)
movw $0x7ffe, %ax            # imm = 0x7FFE
subw 0x1c(%rcx), %ax
movl %eax, 0x30(%rsp)
pushq $0x10
popq %rcx
movl %r12d, %edi
movl %r14d, %esi
movq %rcx, %rdx
callq 0x1abb59
testq %rax, %rax
je 0x3459e8
movq %rax, %r15
movl %r13d, 0x28(%rsp)
movl %ebp, 0x2c(%rsp)
movl %ebx, 0x24(%rsp)
orl $0x8280401, 0xc(%rax)   # imm = 0x8280401
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, 0x88(%rsp)
callq 0x1ab77b
movq %rax, %rbp
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, %rsi
callq 0x297cd8
movq %r13, %xmm0
movq %rbp, 0x8(%rsp)
movq %rbp, %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 %ebp, %ebp
testl %ecx, %ecx
jne 0x345e44
testq %rax, %rax
je 0x345e44
movq 0x58(%rsp), %rcx
decl %ecx
movl %ecx, 0x20(%rsp)
pushq $0x7
popq %rcx
subl 0x70(%rsp), %ecx
movl %ecx, 0x1c(%rsp)
movl 0x28(%rsp), %esi
movd %esi, %xmm0
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 0x18(%rsp), %edx
movd %edx, %xmm0
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
addl $0xffff8001, %ecx       # imm = 0xFFFF8001
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, 0x40(%rsp)
movd 0x30(%rsp), %xmm0
pshuflw $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm0, %xmm7      # xmm7 = xmm0[0,0,0,0]
movzwl %cx, %ecx
movd %ecx, %xmm1
movl %r12d, %ecx
imull %edx, %ecx
negl %ecx
movd %ecx, %xmm0
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 $0x2, %xmm5             # xmm5 = zero,zero,xmm5[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movdqa %xmm1, 0x70(%rsp)
paddsw %xmm1, %xmm5
movl %esi, %esi
movl %edx, %ecx
movslq 0x14(%rsp), %rdx
negq %rsi
movq %r12, %r9
movq %rcx, 0x30(%rsp)
imulq %rcx, %r9
xorl %r10d, %r10d
movq $-0x7fff, %rcx          # imm = 0x8001
movq $-0x8000, %r11          # imm = 0x8000
movq %r12, 0x90(%rsp)
cmpq %r12, %r10
je 0x3459ef
movq %rdx, %r8
xorl %r12d, %r12d
cmpq $0x8, %r12
je 0x3459b2
cmpq %rcx, %r8
movq $-0x8000, %rdi          # imm = 0x8000
cmovgeq %r8, %rdi
leaq (%rsi,%r8), %rbp
cmpq %rcx, %rbp
cmovlq %r11, %rbp
movw %di, 0xb0(%rsp,%r12,2)
movw %bp, 0xa0(%rsp,%r12,2)
incq %r12
subq %r9, %r8
jmp 0x345979
movq %r10, %rdi
shlq $0x4, %rdi
movaps 0xb0(%rsp), %xmm0
movaps %xmm0, (%r14,%rdi)
movdqa 0xa0(%rsp), %xmm0
movdqa %xmm0, (%r13,%rdi)
incq %r10
subq 0x30(%rsp), %rdx
movq 0x90(%rsp), %r12
jmp 0x34596e
xorl %ebp, %ebp
jmp 0x345e44
movq 0x8(%rsp), %rcx
andw $0x0, (%rcx)
pushq $0x1
popq %rcx
movl 0x18(%rsp), %edi
movl 0x14(%rsp), %r8d
movq 0x88(%rsp), %r9
movq 0x8(%rsp), %rsi
cmpq %rcx, %r9
je 0x345a32
cmpl $0xffff8001, %r8d       # imm = 0xFFFF8001
movl $0xffff8000, %edx       # imm = 0xFFFF8000
cmovgel %r8d, %edx
movw %dx, (%rsi,%rcx,2)
incq %rcx
subl %edi, %r8d
jmp 0x345a11
pxor %xmm0, %xmm0
psubsw %xmm2, %xmm0
leal -0x1(%r12), %ecx
movl %ecx, %edx
testl %edx, %edx
js 0x345a58
movl %edx, %esi
shlq $0x4, %rsi
movdqa %xmm0, (%rax,%rsi)
psubsw %xmm3, %xmm0
decl %edx
jmp 0x345a41
movl %ecx, %ecx
shlq $0x4, %rcx
movq %r14, %rsi
addq %rcx, %rsi
movl 0x58(%rsp), %edi
movq %r12, %r8
shlq $0x4, %r8
xorl %r9d, %r9d
pushq $0x6
popq %r10
movdqa 0x283c91(%rip), %xmm10  # 0x5c9710
movdqa 0x283c98(%rip), %xmm11  # 0x5c9720
movdqa 0x283c4f(%rip), %xmm12  # 0x5c96e0
movdqa 0x282336(%rip), %xmm13  # 0x5c7dd0
xorl %r11d, %r11d
movdqa %xmm7, 0x30(%rsp)
movdqa 0x40(%rsp), %xmm6
cmpq %rdi, %r11
je 0x345c92
movdqa (%rsi), %xmm1
pslldq $0x2, %xmm1             # xmm1 = zero,zero,xmm1[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movq 0x8(%rsp), %rcx
pinsrw $0x0, (%rcx,%r11,2), %xmm1
movq 0x60(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x68(%rsp), %rdx
movzbl (%rdx,%r11), %edx
movl (%rcx,%rdx,4), %ecx
imull %r12d, %ecx
movslq %ecx, %rbp
shlq $0x4, %rbp
addq 0x98(%rsp), %rbp
movdqa 0x40(%rsp), %xmm0
movdqa %xmm0, %xmm15
psubsw (%rax), %xmm15
xorl %ecx, %ecx
cmpq %rcx, %r8
je 0x345b90
movdqa (%r14,%rcx), %xmm9
movdqa (%r13,%rcx), %xmm14
movdqa %xmm9, %xmm8
psubsw %xmm2, %xmm8
psubsw %xmm3, %xmm14
movdqa %xmm8, %xmm4
pcmpgtw %xmm14, %xmm4
pand %xmm12, %xmm4
pxor %xmm13, %xmm4
movq 0x10(%r15), %rdx
movq (%rdx), %rdx
paddsw (%rax,%rcx), %xmm15
paddsw (%rbp,%rcx), %xmm1
addq %r9, %rdx
movdqa %xmm4, (%rcx,%rdx)
pmaxsw %xmm8, %xmm14
pminsw %xmm14, %xmm7
pmaxsw %xmm15, %xmm0
movdqa %xmm14, (%r13,%rcx)
pmaxsw %xmm1, %xmm14
movdqa %xmm14, (%rbx,%rcx)
movdqa %xmm1, (%r14,%rcx)
addq $0x10, %rcx
movdqa %xmm14, %xmm15
movdqa %xmm9, %xmm1
jmp 0x345b02
pslldq $0x2, %xmm15            # xmm15 = zero,zero,xmm15[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movq 0x8(%rsp), %rcx
pinsrw $0x0, 0x2(%rcx,%r11,2), %xmm15
incq %r11
movdqa (%rax), %xmm1
paddsw %xmm15, %xmm1
pmaxsw %xmm1, %xmm0
movl %r10d, %ecx
movdqa 0x283b31(%rip), %xmm14  # 0x5c96f0
movdqa %xmm0, %xmm1
pslldq $0x2, %xmm1             # xmm1 = zero,zero,xmm1[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
subl $0x1, %ecx
jb 0x345bd7
paddsw %xmm5, %xmm1
pmaxsw %xmm1, %xmm0
jmp 0x345bbf
paddsw 0x70(%rsp), %xmm1
pmaxsw %xmm1, %xmm15
xorl %ebp, %ebp
cmpq %rbp, %r8
je 0x345c8a
movq 0x10(%r15), %rcx
movq (%rcx), %rcx
addq %r9, %rcx
movdqa (%rbx,%rbp), %xmm8
psubsw %xmm2, %xmm15
psubsw %xmm3, %xmm1
movdqa %xmm15, %xmm0
pmaxsw %xmm1, %xmm0
pcmpgtw %xmm1, %xmm15
pand %xmm14, %xmm15
pxor 0x283ade(%rip), %xmm15  # 0x5c9700
movdqa %xmm8, %xmm4
pmaxsw %xmm0, %xmm4
movdqa (%r14,%rbp), %xmm1
pcmpeqw %xmm4, %xmm1
pcmpgtw %xmm0, %xmm8
paddw %xmm10, %xmm8
movdqa %xmm1, %xmm9
pandn %xmm8, %xmm9
pand %xmm11, %xmm1
por %xmm9, %xmm1
por (%rbp,%rcx), %xmm15
por %xmm1, %xmm15
movdqa %xmm15, (%rbp,%rcx)
movdqa %xmm4, (%r14,%rbp)
pminsw %xmm0, %xmm7
pminsw %xmm4, %xmm7
pmaxsw %xmm4, %xmm6
addq $0x10, %rbp
movdqa %xmm0, %xmm1
movdqa %xmm4, %xmm15
jmp 0x345be4
addq %r8, %r9
jmp 0x345aa9
movl 0x2c(%rsp), %ecx
shlq $0x4, %rcx
movdqa (%r14,%rcx), %xmm0
xorl %ecx, %ecx
movl 0x20(%rsp), %esi
movl 0x1c(%rsp), %edx
cmpl %edx, %ecx
jge 0x345cb7
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
incl %ecx
jmp 0x345caa
movdqa 0x40(%rsp), %xmm1
pcmpgtw %xmm7, %xmm1
pcmpgtw 0x30(%rsp), %xmm6
por %xmm1, %xmm6
pmovmskb %xmm6, %ecx
testl %ecx, %ecx
je 0x345ce0
orb $0x40, 0xc(%r15)
xorl %ecx, %ecx
xorl %esi, %esi
xorl %edx, %edx
jmp 0x345ce9
pextrw $0x7, %xmm0, %ecx
movl 0x24(%rsp), %edx
movswl %cx, %ecx
movl %ecx, (%r15)
movl %edx, 0x4(%r15)
movl %esi, 0x8(%r15)
movq %rax, %rdi
callq 0x1ab763
movq %r14, %rdi
callq 0x1ab763
movq %rbx, %rdi
callq 0x1ab763
movq 0x8(%rsp), %rdi
callq 0x1ab763
movq %r13, %rdi
callq 0x1ab763
movq %r15, %rbp
jmp 0x345e44
movq 0x3f52a8(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2812b1(%rip), %rsi    # 0x5c6feb
leaq 0x27b4b1(%rip), %rdx    # 0x5c11f2
leaq 0x257795(%rip), %rcx    # 0x59d4dd
jmp 0x345e3b
movq 0x3f5284(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x28128d(%rip), %rsi    # 0x5c6feb
leaq 0x27b48d(%rip), %rdx    # 0x5c11f2
leaq 0x281cb2(%rip), %rcx    # 0x5c7a1e
jmp 0x345e3b
movq 0x3f5260(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x281269(%rip), %rsi    # 0x5c6feb
leaq 0x27b469(%rip), %rdx    # 0x5c11f2
leaq 0x281ba9(%rip), %rcx    # 0x5c7939
jmp 0x345e3b
movq 0x3f523c(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x28195b(%rip), %rsi    # 0x5c7701
leaq 0x27b445(%rip), %rdx    # 0x5c11f2
leaq 0x281b95(%rip), %rcx    # 0x5c7949
jmp 0x345e3b
movq 0x3f5218(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x281221(%rip), %rsi    # 0x5c6feb
leaq 0x27b421(%rip), %rdx    # 0x5c11f2
leaq 0x281926(%rip), %rcx    # 0x5c76fe
jmp 0x345e3b
movq 0x3f51f7(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x281916(%rip), %rsi    # 0x5c7701
leaq 0x27b400(%rip), %rdx    # 0x5c11f2
leaq 0x28191c(%rip), %rcx    # 0x5c7715
jmp 0x345e3b
movq 0x3f51d6(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x28190f(%rip), %rsi    # 0x5c771b
leaq 0x27b3df(%rip), %rdx    # 0x5c11f2
leaq 0x281916(%rip), %rcx    # 0x5c7730
jmp 0x345e3b
movq 0x3f51b5(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2818ee(%rip), %rsi    # 0x5c771b
leaq 0x27b3be(%rip), %rdx    # 0x5c11f2
leaq 0x2818fa(%rip), %rcx    # 0x5c7735
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x19e180
movq %rbp, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)