// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/sw_trace_scan_sse2_128_16.c
// Function: parasail_sw_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 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;
    __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;
    __m128i vTZero;
    __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;
    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;
    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));
    vTZero = _mm_set1_epi16(PARASAIL_ZERO);
    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);


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

    /* set known flags */
    result->flag |= PARASAIL_FLAG_SW | PARASAIL_FLAG_SCAN
        | PARASAIL_FLAG_TRACE
        | PARASAIL_FLAG_BITS_16 | PARASAIL_FLAG_LANES_8;

    /* 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 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 case0;
        __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);
        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);
            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);
            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);
        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);
        vH = _mm_max_epi16(vH, vZero);
        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);
            vH = _mm_max_epi16(vH, vZero);
            case0 = _mm_cmpeq_epi16(vH, vZero);
            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_blendv_epi8_rpl(vT, vTZero, case0);
            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);
            vSaturationCheckMax = _mm_max_epi16(vSaturationCheckMax, vH);
            {
                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);
            }
        }
    }

    /* 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;
                }
            }
        }
    }

    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 $0x118, %rsp            # imm = 0x118
movq %rsi, 0x48(%rsp)
testq %rdi, %rdi
je 0x3473a5
movq 0x30(%rdi), %rax
movq %rax, 0xb0(%rsp)
testq %rax, %rax
je 0x3473c9
movq 0x10(%rdi), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x3473ed
movl 0x8(%rdi), %r14d
testl %r14d, %r14d
jle 0x347411
cmpq $0x0, 0x48(%rsp)
je 0x347435
movl %edx, %r15d
testl %edx, %edx
jle 0x347456
testl %ecx, %ecx
js 0x347477
movl %r8d, %r13d
testl %r8d, %r8d
js 0x347498
leaq 0x7(%r14), %r12
shrq $0x3, %r12
movl %ecx, %eax
negl %eax
movq 0x40(%rsp), %rdx
movl 0x20(%rdx), %esi
movl %esi, %ebp
negl %ebp
cmpl %eax, %esi
movl %ecx, 0x10(%rsp)
cmovgl %ecx, %ebp
movw $0x7ffe, %ax            # imm = 0x7FFE
subw 0x1c(%rdx), %ax
movl %eax, 0x60(%rsp)
pushq $0x10
popq %rcx
movl %r12d, %edi
movl %r15d, %esi
movq %rcx, %rdx
callq 0x1abb59
testq %rax, %rax
je 0x346fa2
movq %rax, %rbx
movl %r13d, 0x70(%rsp)
movl %r15d, 0x80(%rsp)
movl %ebp, 0xc(%rsp)
movq %r14, 0x98(%rsp)
orl $0x8280404, 0xc(%rax)   # imm = 0x8280404
pushq $0x10
popq %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x297cd8
movq %rax, %r14
movq %r13, %rdi
movq %r12, %rsi
callq 0x297cd8
movq %rax, %r15
movq %r13, %rdi
movq %r12, %rsi
callq 0x297cd8
movq %rax, %rbp
movq %r13, %rdi
movq %r12, %rsi
callq 0x297cd8
movq %r13, %rdi
movq %r12, 0x38(%rsp)
movq %r12, %rsi
movq %rax, %r12
callq 0x297cd8
movq %r14, %xmm0
movq %r15, %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movq %rbp, %xmm1
movq %r12, %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 %r13d, %r13d
testl %ecx, %ecx
jne 0x3474c1
testq %rax, %rax
je 0x3474c1
movq %r12, 0x28(%rsp)
movd 0x10(%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, 0xf0(%rsp)
movl 0x70(%rsp), %edx
movd %edx, %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 0xc(%rsp), %r12d
addl $0xffff8001, %r12d      # imm = 0xFFFF8001
movd %r12d, %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, 0x50(%rsp)
movd 0x60(%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, 0xc0(%rsp)
movzwl %r12w, %ecx
movd %ecx, %xmm1
movq 0x38(%rsp), %r13
imull %r13d, %edx
negl %edx
movd %edx, %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, 0x100(%rsp)
paddsw %xmm1, %xmm0
movdqa %xmm0, 0xd0(%rsp)
pxor %xmm0, %xmm0
movq %rbp, %rdi
movq %r13, %rsi
movq %rax, 0x30(%rsp)
callq 0x297ce1
movq %r14, %rdi
movdqa 0x50(%rsp), %xmm0
movq %r13, %rsi
callq 0x297ce1
pxor %xmm0, %xmm0
movdqa 0xe0(%rsp), %xmm8
movdqa 0xf0(%rsp), %xmm7
movq 0x30(%rsp), %rdi
movq %r13, %r10
psubsw %xmm7, %xmm0
leal -0x1(%r13), %eax
movl %eax, %ecx
testl %ecx, %ecx
js 0x346faa
movl %ecx, %edx
shlq $0x4, %rdx
movdqa %xmm0, (%rdi,%rdx)
psubsw %xmm8, %xmm0
decl %ecx
jmp 0x346f8a
xorl %r13d, %r13d
jmp 0x3474c1
movl %r12d, 0xc(%rsp)
movl %eax, %eax
shlq $0x4, %rax
movq %rbp, %rcx
addq %rax, %rcx
movq %rcx, 0xa0(%rsp)
movq %r10, %r12
shlq $0x4, %r12
movl 0x80(%rsp), %eax
movq %rax, 0xa8(%rsp)
xorl %r13d, %r13d
pxor %xmm12, %xmm12
movdqa 0x282706(%rip), %xmm13  # 0x5c96f0
movdqa 0x28270d(%rip), %xmm14  # 0x5c9700
movdqa 0x280c24(%rip), %xmm15  # 0x5c7c20
xorl %r8d, %r8d
movdqa 0x50(%rsp), %xmm0
movdqa %xmm0, 0x60(%rsp)
movdqa %xmm0, %xmm1
movdqa %xmm0, %xmm10
movdqa 0xc0(%rsp), %xmm11
xorl %eax, %eax
movdqa 0xd0(%rsp), %xmm9
cmpq 0xa8(%rsp), %r8
je 0x3472f2
movdqa %xmm1, 0x10(%rsp)
movq 0xa0(%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 0x40(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x48(%rsp), %rdx
movzbl (%rdx,%r8), %edx
movl (%rcx,%rdx,4), %ecx
imull %r10d, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq 0xb0(%rsp), %rcx
pxor %xmm0, %xmm0
xorl %edx, %edx
movdqa 0x50(%rsp), %xmm1
cmpq %rdx, %r12
je 0x3470ff
movdqa (%rbp,%rdx), %xmm3
movdqa (%r14,%rdx), %xmm4
movdqa %xmm3, %xmm5
psubsw %xmm7, %xmm5
psubsw %xmm8, %xmm4
movdqa %xmm5, %xmm6
pcmpgtw %xmm4, %xmm6
pand 0x28262e(%rip), %xmm6   # 0x5c96e0
pxor 0x280d16(%rip), %xmm6   # 0x5c7dd0
movq 0x10(%rbx), %rsi
movq (%rsi), %rsi
addq %r13, %rsi
paddsw (%rdi,%rdx), %xmm0
paddsw (%rcx,%rdx), %xmm2
movdqa %xmm6, (%rdx,%rsi)
pmaxsw %xmm5, %xmm4
pmaxsw %xmm0, %xmm1
movdqa %xmm4, (%r14,%rdx)
pmaxsw %xmm2, %xmm4
movdqa %xmm4, (%r15,%rdx)
movdqa %xmm2, (%rbp,%rdx)
addq $0x10, %rdx
movdqa %xmm4, %xmm0
movdqa %xmm3, %xmm2
jmp 0x347084
pslldq $0x2, %xmm0             # xmm0 = zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
movdqa (%rdi), %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 0x34712c
paddsw %xmm9, %xmm2
pmaxsw %xmm2, %xmm1
jmp 0x347113
paddsw 0x100(%rsp), %xmm2
pmaxsw %xmm12, %xmm0
pmaxsw %xmm2, %xmm0
xorl %ecx, %ecx
cmpq %rcx, %r12
je 0x3471fc
psubsw %xmm7, %xmm0
psubsw %xmm8, %xmm2
movdqa %xmm0, %xmm1
pmaxsw %xmm2, %xmm1
pcmpgtw %xmm2, %xmm0
movdqa (%r15,%rcx), %xmm2
pmaxsw %xmm1, %xmm2
movdqa %xmm2, %xmm3
pmaxsw %xmm12, %xmm3
movdqa (%rbp,%rcx), %xmm4
pcmpeqw %xmm3, %xmm4
movdqa %xmm3, %xmm5
pcmpeqw %xmm1, %xmm5
movdqa %xmm15, %xmm6
psubw %xmm5, %xmm6
movdqa %xmm4, %xmm5
pandn %xmm6, %xmm5
pand 0x282584(%rip), %xmm4   # 0x5c9720
por %xmm5, %xmm4
pcmpgtw %xmm12, %xmm2
pand %xmm2, %xmm4
movq 0x10(%rbx), %rdx
movq (%rdx), %rdx
addq %r13, %rdx
pand %xmm13, %xmm0
pxor %xmm14, %xmm0
por (%rcx,%rdx), %xmm0
por %xmm4, %xmm0
movdqa %xmm0, (%rcx,%rdx)
movdqa %xmm3, (%rbp,%rcx)
pminsw %xmm3, %xmm11
pmaxsw %xmm3, %xmm10
movdqa 0x10(%rsp), %xmm0
pmaxsw %xmm3, %xmm0
movdqa %xmm0, 0x10(%rsp)
addq $0x10, %rcx
movdqa %xmm1, %xmm2
movdqa %xmm3, %xmm0
jmp 0x347140
movdqa 0x10(%rsp), %xmm1
movdqa %xmm1, %xmm0
pcmpgtw 0x60(%rsp), %xmm0
pmovmskb %xmm0, %ecx
testl %ecx, %ecx
je 0x3472e7
movdqa %xmm1, %xmm0
psrldq $0x8, %xmm0             # xmm0 = xmm0[8,9,10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero
pmaxsw %xmm1, %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, 0xc(%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, 0x60(%rsp)
movq 0x28(%rsp), %rdi
movq %rbp, %rsi
movq %r12, %rdx
movdqa %xmm10, 0x80(%rsp)
movdqa %xmm11, 0x70(%rsp)
movq %r8, 0xb8(%rsp)
callq 0x19e0c0
movdqa 0x10(%rsp), %xmm1
movq 0xb8(%rsp), %r8
movdqa 0x28098b(%rip), %xmm15  # 0x5c7c20
movdqa 0x282462(%rip), %xmm14  # 0x5c9700
movdqa 0x282449(%rip), %xmm13  # 0x5c96f0
pxor %xmm12, %xmm12
movdqa 0x70(%rsp), %xmm11
movdqa 0x80(%rsp), %xmm10
movdqa 0xd0(%rsp), %xmm9
movdqa 0xe0(%rsp), %xmm8
movdqa 0xf0(%rsp), %xmm7
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %r10
movl %r8d, %eax
incq %r8
addq %r12, %r13
jmp 0x34702a
movl %r10d, %ecx
andl $0xfffffff, %ecx        # imm = 0xFFFFFFF
shll $0x3, %ecx
xorl %edx, %edx
movq 0x98(%rsp), %r8
movl 0xc(%rsp), %r9d
movq 0x28(%rsp), %r12
cmpl %edx, %ecx
je 0x34733c
cmpw %r9w, (%r12,%rdx,2)
jne 0x347337
movl %edx, %esi
shrl $0x3, %esi
movl %edx, %r11d
andl $0x7, %r11d
imull %r10d, %r11d
addl %esi, %r11d
cmpl %r8d, %r11d
cmovll %r11d, %r8d
incq %rdx
jmp 0x347312
movdqa 0x50(%rsp), %xmm0
pcmpgtw %xmm11, %xmm0
pcmpgtw 0xc0(%rsp), %xmm10
por %xmm0, %xmm10
pmovmskb %xmm10, %ecx
testl %ecx, %ecx
je 0x34736b
orb $0x40, 0xc(%rbx)
xorl %r9d, %r9d
xorl %eax, %eax
xorl %r8d, %r8d
movswl %r9w, %ecx
movl %ecx, (%rbx)
movl %r8d, 0x4(%rbx)
movl %eax, 0x8(%rbx)
callq 0x1ab763
movq %r12, %rdi
callq 0x1ab763
movq %rbp, %rdi
callq 0x1ab763
movq %r15, %rdi
callq 0x1ab763
movq %r14, %rdi
callq 0x1ab763
movq %rbx, %r13
jmp 0x3474c1
movq 0x3f3c2c(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x27fc35(%rip), %rsi    # 0x5c6feb
leaq 0x27ab7d(%rip), %rdx    # 0x5c1f3a
leaq 0x256119(%rip), %rcx    # 0x59d4dd
jmp 0x3474b7
movq 0x3f3c08(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x27fc11(%rip), %rsi    # 0x5c6feb
leaq 0x27ab59(%rip), %rdx    # 0x5c1f3a
leaq 0x280636(%rip), %rcx    # 0x5c7a1e
jmp 0x3474b7
movq 0x3f3be4(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x27fbed(%rip), %rsi    # 0x5c6feb
leaq 0x27ab35(%rip), %rdx    # 0x5c1f3a
leaq 0x28052d(%rip), %rcx    # 0x5c7939
jmp 0x3474b7
movq 0x3f3bc0(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2802df(%rip), %rsi    # 0x5c7701
leaq 0x27ab11(%rip), %rdx    # 0x5c1f3a
leaq 0x280519(%rip), %rcx    # 0x5c7949
jmp 0x3474b7
movq 0x3f3b9c(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x27fba5(%rip), %rsi    # 0x5c6feb
leaq 0x27aaed(%rip), %rdx    # 0x5c1f3a
leaq 0x2802aa(%rip), %rcx    # 0x5c76fe
jmp 0x3474b7
movq 0x3f3b7b(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x28029a(%rip), %rsi    # 0x5c7701
leaq 0x27aacc(%rip), %rdx    # 0x5c1f3a
leaq 0x2802a0(%rip), %rcx    # 0x5c7715
jmp 0x3474b7
movq 0x3f3b5a(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x280293(%rip), %rsi    # 0x5c771b
leaq 0x27aaab(%rip), %rdx    # 0x5c1f3a
leaq 0x28029a(%rip), %rcx    # 0x5c7730
jmp 0x3474b7
movq 0x3f3b39(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x280272(%rip), %rsi    # 0x5c771b
leaq 0x27aa8a(%rip), %rdx    # 0x5c1f3a
leaq 0x28027e(%rip), %rcx    # 0x5c7735
xorl %r13d, %r13d
xorl %eax, %eax
callq 0x19e180
movq %r13, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop