// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/nw_scan_sse2_128_8.c
// Function: parasail_nw_rowcol_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;

    /* 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;
    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 */
#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_NW | PARASAIL_FLAG_SCAN
        | PARASAIL_FLAG_BITS_8 | PARASAIL_FLAG_LANES_16;
#ifdef PARASAIL_TABLE
    result->flag |= PARASAIL_FLAG_TABLE;
#endif
#ifdef PARASAIL_ROWCOL
    result->flag |= PARASAIL_FLAG_ROWCOL;
#endif

    /* 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 vHt;
        __m128i vF;
        __m128i vH;
        __m128i vHp;
        __m128i *pvW;
        __m128i vW;

        /* 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);
            vE = _mm_max_epi8_rpl(
                    _mm_subs_epi8(vE, vGapE),
                    _mm_subs_epi8(vH, vGapO));
            vHp = _mm_adds_epi8(vHp, vW);
            vF = _mm_max_epi8_rpl(vF, _mm_adds_epi8(vHt, pvGapper[i]));
            vHt = _mm_max_epi8_rpl(vE, vHp);
            _mm_store_si128(pvE+i, vE);
            _mm_store_si128(pvHt+i, vHt);
            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);
        vF = _mm_max_epi8_rpl(vF, _mm_adds_epi8(vHt, pvGapper[0]));
        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(vHt, vF);
        for (i=0; i<segLen; ++i) {
            vHt = _mm_load_si128(pvHt+i);
            vF = _mm_max_epi8_rpl(
                    _mm_subs_epi8(vF, vGapE),
                    _mm_subs_epi8(vH, vGapO));
            vH = _mm_max_epi8_rpl(vHt, vF);
            _mm_store_si128(pvH+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
        } 


#ifdef PARASAIL_ROWCOL
        /* extract last value from the column */
        {
            vH = _mm_load_si128(pvH + offset);
            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(pvH+i);
        arr_store_col(result->rowcols->score_col, vH, i, segLen);
    }
#endif

    /* 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, 0x48(%rsp)
testq %rdi, %rdi
je 0x2f4799
movq 0x18(%rdi), %rax
movq %rax, 0x68(%rsp)
testq %rax, %rax
je 0x2f47bd
movq 0x10(%rdi), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x2f47e1
movl 0x8(%rdi), %edi
testl %edi, %edi
jle 0x2f4805
cmpq $0x0, 0x48(%rsp)
je 0x2f4829
movl %edx, %ebx
testl %edx, %edx
jle 0x2f484a
movl %ecx, %r15d
testl %ecx, %ecx
js 0x2f486b
testl %r8d, %r8d
js 0x2f488c
movl %r8d, 0x30(%rsp)
leal -0x1(%rdi), %r13d
addq $0xf, %rdi
movq %rdi, %r14
shrq $0x4, %r14
movl %r13d, %eax
xorl %edx, %edx
divl %r14d
movl %eax, 0x58(%rsp)
movl %edx, %ebp
movl %r15d, %r12d
negl %r12d
movq 0x40(%rsp), %rdx
movl 0x20(%rdx), %eax
movl %eax, %ecx
negb %cl
cmpl %r12d, %eax
movzbl %cl, %eax
cmovgl %r15d, %eax
movl %eax, 0x60(%rsp)
movb $0x7e, %al
subb 0x1c(%rdx), %al
movb %al, 0x18(%rsp)
andl $0x7ffffff0, %edi       # imm = 0x7FFFFFF0
movl %ebx, %esi
callq 0x1ab93b
testq %rax, %rax
je 0x2f4293
movl %r13d, 0x7c(%rsp)
movl %r15d, 0x78(%rsp)
movl %ebp, 0x50(%rsp)
movq %rax, 0x80(%rsp)
orl $0x10140401, 0xc(%rax)  # imm = 0x10140401
pushq $0x10
popq %rbp
movq %rbp, %rdi
movq %r14, %rsi
callq 0x297cd8
movq %rax, %r15
movq %rbx, 0x28(%rsp)
leal 0x1(%rbx), %esi
movq %rbp, %rdi
movq %rsi, 0x88(%rsp)
callq 0x1ab776
movq %rax, %rbx
movq %rbp, %rdi
movq %r14, %rsi
callq 0x297cd8
movq %rax, %r13
movq %rbp, %rdi
movq %r14, %rsi
callq 0x297cd8
movq %rax, %rbp
pushq $0x10
popq %rdi
movq %r14, 0x20(%rsp)
movq %r14, %rsi
callq 0x297cd8
movq %r15, %xmm0
movq %rbx, 0x38(%rsp)
movq %rbx, %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movq %r13, %xmm1
movq %rbp, %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 %ebx, %ebx
testl %ecx, %ecx
jne 0x2f48b4
testq %rax, %rax
je 0x2f48b4
movq 0x28(%rsp), %rcx
decl %ecx
movl %ecx, 0x74(%rsp)
pushq $0xf
popq %rdx
subl 0x58(%rsp), %edx
movl 0x78(%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 0x30(%rsp), %edi
movd %edi, %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 0x60(%rsp), %ecx
addb $-0x7f, %cl
movzbl %cl, %ecx
movd %ecx, %xmm4
movdqa %xmm4, %xmm0
punpcklbw %xmm4, %xmm0    # xmm0 = xmm0[0],xmm4[0],xmm0[1],xmm4[1],xmm0[2],xmm4[2],xmm0[3],xmm4[3],xmm0[4],xmm4[4],xmm0[5],xmm4[5],xmm0[6],xmm4[6],xmm0[7],xmm4[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 0x18(%rsp), %ecx
movd %ecx, %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]
movq 0x20(%rsp), %r8
movl %r8d, %ecx
imull %edi, %ecx
negb %cl
movzbl %cl, %ecx
movd %ecx, %xmm5
punpcklbw %xmm5, %xmm5    # xmm5 = xmm5[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pshuflw $0x0, %xmm5, %xmm5      # xmm5 = xmm5[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm5, %xmm5      # xmm5 = xmm5[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]
paddsb %xmm4, %xmm5
movl %esi, %esi
movl %edi, %edi
movslq %r12d, %rcx
negq %rsi
movq %rdi, 0x18(%rsp)
imulq %rdi, %r8
xorl %r9d, %r9d
pushq $-0x80
popq %r14
cmpq 0x20(%rsp), %r9
je 0x2f429a
movq %rcx, %r11
xorl %ebx, %ebx
cmpq $0x10, %rbx
je 0x2f4266
cmpq $-0x7f, %r11
movq %r14, %r10
cmovgeq %r11, %r10
leaq (%rsi,%r11), %rdi
cmpq $-0x7f, %rdi
cmovlq %r14, %rdi
movb %r10b, 0xa0(%rsp,%rbx)
movb %dil, 0x90(%rsp,%rbx)
incq %rbx
subq %r8, %r11
jmp 0x2f4231
movq %r9, %rdi
shlq $0x4, %rdi
movaps 0xa0(%rsp), %xmm6
movaps %xmm6, (%rbp,%rdi)
movdqa 0x90(%rsp), %xmm6
movdqa %xmm6, (%r15,%rdi)
incq %r9
subq 0x18(%rsp), %rcx
jmp 0x2f4225
xorl %ebx, %ebx
jmp 0x2f48b4
movq 0x38(%rsp), %rcx
movb $0x0, (%rcx)
pushq $0x1
popq %rcx
pushq $-0x80
popq %rsi
movq 0x80(%rsp), %rbx
movq 0x20(%rsp), %r14
movl 0x30(%rsp), %r9d
movq 0x88(%rsp), %r10
movq 0x38(%rsp), %r8
cmpq %rcx, %r10
je 0x2f42e2
cmpl $-0x7f, %r12d
movl %esi, %edi
cmovgel %r12d, %edi
movb %dil, (%r8,%rcx)
incq %rcx
subl %r9d, %r12d
jmp 0x2f42c7
pxor %xmm6, %xmm6
psubsb %xmm2, %xmm6
leal -0x1(%r14), %ecx
movl %ecx, %esi
movq 0x38(%rsp), %r12
testl %esi, %esi
js 0x2f430c
movl %esi, %edi
shlq $0x4, %rdi
movdqa %xmm6, (%rax,%rdi)
psubsb %xmm3, %xmm6
decl %esi
jmp 0x2f42f5
movl %ecx, %r8d
shlq $0x4, %r8
addq %rbp, %r8
movl 0x50(%rsp), %ecx
shlq $0x4, %rcx
addq %rbp, %rcx
movq %rcx, 0x18(%rsp)
movl 0x28(%rsp), %r9d
movq %r14, %rdi
shlq $0x4, %rdi
xorl %r10d, %r10d
movdqa 0x2d3762(%rip), %xmm8   # 0x5c7aa0
pushq $0xe
popq %r11
movdqa %xmm1, %xmm7
movdqa %xmm0, %xmm6
cmpq %r9, %r10
je 0x2f45b2
movdqa (%r8), %xmm9
pslldq $0x1, %xmm9             # xmm9 = zero,xmm9[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
movzbl (%r12,%r10), %ecx
movd %ecx, %xmm11
movdqa %xmm8, %xmm10
pandn %xmm11, %xmm10
por %xmm9, %xmm10
movq 0x40(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x48(%rsp), %rsi
movzbl (%rsi,%r10), %esi
movl (%rcx,%rsi,4), %ecx
imull %r14d, %ecx
movslq %ecx, %r14
shlq $0x4, %r14
addq 0x68(%rsp), %r14
movdqa %xmm0, %xmm11
psubsb (%rax), %xmm11
xorl %ecx, %ecx
movdqa %xmm0, %xmm9
cmpq %rcx, %rdi
je 0x2f4445
movdqa (%rbp,%rcx), %xmm12
movdqa (%r15,%rcx), %xmm13
psubsb %xmm3, %xmm13
movdqa %xmm12, %xmm14
psubsb %xmm2, %xmm14
movdqa %xmm13, %xmm15
pcmpgtb %xmm14, %xmm15
pand %xmm15, %xmm13
pandn %xmm14, %xmm15
paddsb (%r14,%rcx), %xmm10
paddsb (%rax,%rcx), %xmm11
por %xmm13, %xmm15
movdqa %xmm9, %xmm13
pcmpgtb %xmm11, %xmm13
pand %xmm13, %xmm9
pandn %xmm11, %xmm13
por %xmm13, %xmm9
movdqa %xmm15, %xmm11
pcmpgtb %xmm10, %xmm11
movdqa %xmm15, (%r15,%rcx)
pand %xmm11, %xmm15
pandn %xmm10, %xmm11
por %xmm15, %xmm11
movdqa %xmm11, (%r13,%rcx)
addq $0x10, %rcx
movdqa %xmm12, %xmm10
jmp 0x2f43ae
pslldq $0x1, %xmm11            # xmm11 = zero,xmm11[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
leaq 0x1(%r10), %r14
movzbl 0x1(%r12,%r10), %ecx
movd %ecx, %xmm10
movdqa %xmm8, %xmm12
pandn %xmm10, %xmm12
por %xmm11, %xmm12
movdqa (%rax), %xmm11
paddsb %xmm12, %xmm11
movdqa %xmm9, %xmm10
pcmpgtb %xmm11, %xmm10
pand %xmm10, %xmm9
pandn %xmm11, %xmm10
por %xmm9, %xmm10
movl %r11d, %ecx
movdqa %xmm10, %xmm9
pslldq $0x1, %xmm9             # xmm9 = zero,xmm9[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
subl $0x1, %ecx
jb 0x2f44bf
paddsb %xmm5, %xmm9
movdqa %xmm10, %xmm11
pcmpgtb %xmm9, %xmm11
pand %xmm11, %xmm10
pandn %xmm9, %xmm11
por %xmm11, %xmm10
jmp 0x2f448f
paddsb %xmm4, %xmm9
movdqa %xmm12, %xmm10
pcmpgtb %xmm9, %xmm10
pand %xmm10, %xmm12
pandn %xmm9, %xmm10
por %xmm12, %xmm10
xorl %ecx, %ecx
cmpq %rcx, %rdi
je 0x2f4574
movdqa (%r13,%rcx), %xmm11
psubsb %xmm3, %xmm9
psubsb %xmm2, %xmm10
movdqa %xmm9, %xmm12
pcmpgtb %xmm10, %xmm12
pand %xmm12, %xmm9
pandn %xmm10, %xmm12
por %xmm12, %xmm9
movdqa %xmm11, %xmm10
pcmpgtb %xmm9, %xmm10
pand %xmm10, %xmm11
pandn %xmm9, %xmm10
por %xmm11, %xmm10
movdqa %xmm10, (%rbp,%rcx)
movdqa %xmm7, %xmm11
pcmpgtb %xmm10, %xmm11
movdqa %xmm10, %xmm12
pand %xmm11, %xmm12
pandn %xmm7, %xmm11
por %xmm12, %xmm11
movdqa %xmm6, %xmm7
pcmpgtb %xmm10, %xmm7
pand %xmm7, %xmm6
pandn %xmm10, %xmm7
por %xmm7, %xmm6
addq $0x10, %rcx
movdqa %xmm11, %xmm7
jmp 0x2f44df
movq 0x18(%rsp), %rcx
movdqa (%rcx), %xmm9
xorl %ecx, %ecx
cmpl %edx, %ecx
jge 0x2f458e
pslldq $0x1, %xmm9             # xmm9 = zero,xmm9[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
incl %ecx
jmp 0x2f4580
pextrw $0x7, %xmm9, %ecx
shrl $0x8, %ecx
movsbl %cl, %ecx
movq 0x10(%rbx), %rsi
movq (%rsi), %rsi
movl %ecx, (%rsi,%r10,4)
movq %r14, %r10
movq 0x20(%rsp), %r14
jmp 0x2f434a
leal (,%r14,4), %r8d
movl %r14d, %ecx
leal (,%r14,8), %esi
movq %rsi, 0x20(%rsp)
imulq $0xc, %rcx, %rcx
movq %rcx, 0x48(%rsp)
imulq $0x3c, %r14, %rcx
movq %rcx, 0x40(%rsp)
imulq $0x38, %r14, %rcx
movq %rcx, 0x68(%rsp)
imulq $0x34, %r14, %rcx
movq %rcx, 0x30(%rsp)
imulq $0x30, %r14, %rcx
movq %rcx, 0x60(%rsp)
imulq $0x2c, %r14, %rcx
movq %rcx, 0x58(%rsp)
imulq $0x28, %r14, %rcx
movq %rcx, 0x28(%rsp)
imulq $0x24, %r14, %rcx
movq %rcx, 0x50(%rsp)
movq %r14, %r10
shlq $0x5, %r10
imulq $0x1c, %r14, %r11
movq %r14, %rcx
imulq $0x18, %r14, %r14
imulq $0x14, %rcx, %r12
xorl %ecx, %ecx
cmpq %rcx, %r8
je 0x2f4714
movdqa (%rbp,%rcx,4), %xmm2
movq 0x10(%rbx), %rsi
movq 0x8(%rsi), %rsi
movdqa %xmm2, (%rsp)
movsbl (%rsp), %ebx
movl %ebx, (%rsi,%rcx)
addq %rcx, %rsi
movsbl 0x1(%rsp), %ebx
movl %ebx, (%r8,%rsi)
movsbl 0x2(%rsp), %ebx
movq 0x20(%rsp), %r9
movl %ebx, (%r9,%rsi)
movsbl 0x3(%rsp), %ebx
movq 0x48(%rsp), %r9
movl %ebx, (%r9,%rsi)
movsbl 0x4(%rsp), %ebx
movl %ebx, (%rdi,%rsi)
movsbl 0x5(%rsp), %ebx
movl %ebx, (%r12,%rsi)
movsbl 0x6(%rsp), %ebx
movl %ebx, (%r14,%rsi)
movsbl 0x7(%rsp), %ebx
movl %ebx, (%r11,%rsi)
movsbl 0x8(%rsp), %ebx
movl %ebx, (%r10,%rsi)
movsbl 0x9(%rsp), %ebx
movq 0x50(%rsp), %r9
movl %ebx, (%r9,%rsi)
movsbl 0xa(%rsp), %ebx
movq 0x28(%rsp), %r9
movl %ebx, (%r9,%rsi)
movsbl 0xb(%rsp), %ebx
movq 0x58(%rsp), %r9
movl %ebx, (%r9,%rsi)
movsbl 0xc(%rsp), %ebx
movq 0x60(%rsp), %r9
movl %ebx, (%r9,%rsi)
movsbl 0xd(%rsp), %ebx
movq 0x30(%rsp), %r9
movl %ebx, (%r9,%rsi)
movsbl 0xe(%rsp), %ebx
movq 0x68(%rsp), %r9
movl %ebx, (%r9,%rsi)
movsbl 0xf(%rsp), %ebx
movq 0x40(%rsp), %r9
movl %ebx, (%r9,%rsi)
movq 0x80(%rsp), %rbx
addq $0x4, %rcx
jmp 0x2f462a
movq 0x18(%rsp), %rcx
movdqa (%rcx), %xmm2
xorl %ecx, %ecx
movl 0x7c(%rsp), %esi
movq 0x38(%rsp), %r14
cmpl %edx, %ecx
jge 0x2f4735
pslldq $0x1, %xmm2             # xmm2 = zero,xmm2[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
incl %ecx
jmp 0x2f4728
pcmpgtb %xmm7, %xmm0
pcmpgtb %xmm1, %xmm6
por %xmm0, %xmm6
pmovmskb %xmm6, %ecx
testl %ecx, %ecx
je 0x2f4755
orb $0x40, 0xc(%rbx)
xorl %ecx, %ecx
xorl %edx, %edx
xorl %esi, %esi
jmp 0x2f4761
pextrw $0x7, %xmm2, %ecx
shrl $0x8, %ecx
movl 0x74(%rsp), %edx
movsbl %cl, %ecx
movl %ecx, (%rbx)
movl %esi, 0x4(%rbx)
movl %edx, 0x8(%rbx)
movq %rax, %rdi
callq 0x1ab763
movq %rbp, %rdi
callq 0x1ab763
movq %r13, %rdi
callq 0x1ab763
movq %r14, %rdi
callq 0x1ab763
movq %r15, %rdi
callq 0x1ab763
jmp 0x2f48b4
movq 0x446838(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2d2841(%rip), %rsi    # 0x5c6feb
leaq 0x2c0067(%rip), %rdx    # 0x5b4818
leaq 0x2a8d25(%rip), %rcx    # 0x59d4dd
jmp 0x2f48ab
movq 0x446814(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2d281d(%rip), %rsi    # 0x5c6feb
leaq 0x2c0043(%rip), %rdx    # 0x5b4818
leaq 0x2d32d4(%rip), %rcx    # 0x5c7ab0
jmp 0x2f48ab
movq 0x4467f0(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2d27f9(%rip), %rsi    # 0x5c6feb
leaq 0x2c001f(%rip), %rdx    # 0x5b4818
leaq 0x2d3139(%rip), %rcx    # 0x5c7939
jmp 0x2f48ab
movq 0x4467cc(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2d2eeb(%rip), %rsi    # 0x5c7701
leaq 0x2bfffb(%rip), %rdx    # 0x5b4818
leaq 0x2d3125(%rip), %rcx    # 0x5c7949
jmp 0x2f48ab
movq 0x4467a8(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2d27b1(%rip), %rsi    # 0x5c6feb
leaq 0x2bffd7(%rip), %rdx    # 0x5b4818
leaq 0x2d2eb6(%rip), %rcx    # 0x5c76fe
jmp 0x2f48ab
movq 0x446787(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2d2ea6(%rip), %rsi    # 0x5c7701
leaq 0x2bffb6(%rip), %rdx    # 0x5b4818
leaq 0x2d2eac(%rip), %rcx    # 0x5c7715
jmp 0x2f48ab
movq 0x446766(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2d2e9f(%rip), %rsi    # 0x5c771b
leaq 0x2bff95(%rip), %rdx    # 0x5b4818
leaq 0x2d2ea6(%rip), %rcx    # 0x5c7730
jmp 0x2f48ab
movq 0x446745(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x2d2e7e(%rip), %rsi    # 0x5c771b
leaq 0x2bff74(%rip), %rdx    # 0x5b4818
leaq 0x2d2e8a(%rip), %rcx    # 0x5c7735
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x19e180
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)