// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/nw_scan_avx2_256_8.c
// Function: parasail_nw_rowcol_scan_profile_avx2_256_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;
    __m256i* restrict pvP = NULL;
    __m256i* restrict pvE = NULL;
    int8_t* restrict boundary = NULL;
    __m256i* restrict pvHt = NULL;
    __m256i* restrict pvH = NULL;
    __m256i* restrict pvGapper = NULL;
    __m256i vGapO;
    __m256i vGapE;
    int8_t NEG_LIMIT = 0;
    int8_t POS_LIMIT = 0;
    __m256i vZero;
    int8_t score = 0;
    __m256i vNegLimit;
    __m256i vPosLimit;
    __m256i vSaturationCheckMin;
    __m256i vSaturationCheckMax;
    __m256i vNegInfFront;
    __m256i 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 = 32; /* number of values in vector unit */
    segLen = (s1Len + segWidth - 1) / segWidth;
    offset = (s1Len - 1) % segLen;
    position = (segWidth - 1) - (s1Len - 1) / segLen;
    pvP = (__m256i*)profile->profile8.score;
    vGapO = _mm256_set1_epi8(open);
    vGapE = _mm256_set1_epi8(gap);
    NEG_LIMIT = (-open < matrix->min ? INT8_MIN + open : INT8_MIN - matrix->min) + 1;
    POS_LIMIT = INT8_MAX - matrix->max - 1;
    vZero = _mm256_setzero_si256();
    score = NEG_LIMIT;
    vNegLimit = _mm256_set1_epi8(NEG_LIMIT);
    vPosLimit = _mm256_set1_epi8(POS_LIMIT);
    vSaturationCheckMin = vPosLimit;
    vSaturationCheckMax = vNegLimit;
    vNegInfFront = vZero;
    vNegInfFront = _mm256_insert_epi8_rpl(vNegInfFront, NEG_LIMIT, 0);
    vSegLenXgap = _mm256_adds_epi8(vNegInfFront,
            _mm256_slli_si256_rpl(_mm256_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_32;
#ifdef PARASAIL_TABLE
    result->flag |= PARASAIL_FLAG_TABLE;
#endif
#ifdef PARASAIL_ROWCOL
    result->flag |= PARASAIL_FLAG_ROWCOL;
#endif

    /* initialize heap variables */
    pvE = parasail_memalign___m256i(32, segLen);
    boundary = parasail_memalign_int8_t(32, s2Len+1);
    pvHt= parasail_memalign___m256i(32, segLen);
    pvH = parasail_memalign___m256i(32, segLen);
    pvGapper = parasail_memalign___m256i(32, 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;
            __m256i_8_t h;
            __m256i_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;
            }
            _mm256_store_si256(&pvH[index], h.m);
            _mm256_store_si256(&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;
        }
    }

    {
        __m256i vGapper = _mm256_subs_epi8(vZero,vGapO);
        for (i=segLen-1; i>=0; --i) {
            _mm256_store_si256(pvGapper+i, vGapper);
            vGapper = _mm256_subs_epi8(vGapper, vGapE);
        }
    }

    /* outer loop over database sequence */
    for (j=0; j<s2Len; ++j) {
        __m256i vE;
        __m256i vHt;
        __m256i vF;
        __m256i vH;
        __m256i vHp;
        __m256i *pvW;
        __m256i vW;

        /* calculate E */
        /* calculate Ht */
        /* calculate F and H first pass */
        vHp = _mm256_load_si256(pvH+(segLen-1));
        vHp = _mm256_slli_si256_rpl(vHp, 1);
        vHp = _mm256_insert_epi8_rpl(vHp, boundary[j], 0);
        pvW = pvP + matrix->mapper[(unsigned char)s2[j]]*segLen;
        vHt = _mm256_subs_epi8(vNegLimit, pvGapper[0]);
        vF = vNegLimit;
        for (i=0; i<segLen; ++i) {
            vH = _mm256_load_si256(pvH+i);
            vE = _mm256_load_si256(pvE+i);
            vW = _mm256_load_si256(pvW+i);
            vE = _mm256_max_epi8(
                    _mm256_subs_epi8(vE, vGapE),
                    _mm256_subs_epi8(vH, vGapO));
            vHp = _mm256_adds_epi8(vHp, vW);
            vF = _mm256_max_epi8(vF, _mm256_adds_epi8(vHt, pvGapper[i]));
            vHt = _mm256_max_epi8(vE, vHp);
            _mm256_store_si256(pvE+i, vE);
            _mm256_store_si256(pvHt+i, vHt);
            vHp = vH;
        }

        /* pseudo prefix scan on F and H */
        vHt = _mm256_slli_si256_rpl(vHt, 1);
        vHt = _mm256_insert_epi8_rpl(vHt, boundary[j+1], 0);
        vF = _mm256_max_epi8(vF, _mm256_adds_epi8(vHt, pvGapper[0]));
        for (i=0; i<segWidth-2; ++i) {
            __m256i vFt = _mm256_slli_si256_rpl(vF, 1);
            vFt = _mm256_adds_epi8(vFt, vSegLenXgap);
            vF = _mm256_max_epi8(vF, vFt);
        }

        /* calculate final H */
        vF = _mm256_slli_si256_rpl(vF, 1);
        vF = _mm256_adds_epi8(vF, vNegInfFront);
        vH = _mm256_max_epi8(vHt, vF);
        for (i=0; i<segLen; ++i) {
            vHt = _mm256_load_si256(pvHt+i);
            vF = _mm256_max_epi8(
                    _mm256_subs_epi8(vF, vGapE),
                    _mm256_subs_epi8(vH, vGapO));
            vH = _mm256_max_epi8(vHt, vF);
            _mm256_store_si256(pvH+i, vH);
            vSaturationCheckMin = _mm256_min_epi8(vSaturationCheckMin, vH);
            vSaturationCheckMax = _mm256_max_epi8(vSaturationCheckMax, vH);
#ifdef PARASAIL_TABLE
            arr_store_si256(result->tables->score_table, vH, i, segLen, j, s2Len);
#endif
        } 


#ifdef PARASAIL_ROWCOL
        /* extract last value from the column */
        {
            vH = _mm256_load_si256(pvH + offset);
            for (k=0; k<position; ++k) {
                vH = _mm256_slli_si256_rpl(vH, 1);
            }
            result->rowcols->score_row[j] = (int8_t) _mm256_extract_epi8_rpl (vH, 31);
        }
#endif
    }

#ifdef PARASAIL_ROWCOL
    for (i=0; i<segLen; ++i) {
        __m256i vH = _mm256_load_si256(pvH+i);
        arr_store_col(result->rowcols->score_col, vH, i, segLen);
    }
#endif

    /* extract last value from the last column */
    {
        __m256i vH = _mm256_load_si256(pvH + offset);
        for (k=0; k<position; ++k) {
            vH = _mm256_slli_si256_rpl(vH, 1);
        }
        score = (int8_t) _mm256_extract_epi8_rpl (vH, 31);
    }

    if (_mm256_movemask_epi8(_mm256_or_si256(
            _mm256_cmplt_epi8_rpl(vSaturationCheckMin, vNegLimit),
            _mm256_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
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
andq $-0x20, %rsp
subq $0x160, %rsp            # imm = 0x160
movq %rsi, 0x48(%rsp)
testq %rdi, %rdi
je 0x4f6964
movq 0x18(%rdi), %rax
movq %rax, 0x70(%rsp)
testq %rax, %rax
je 0x4f6988
movq 0x10(%rdi), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x4f69ac
movl 0x8(%rdi), %edi
testl %edi, %edi
jle 0x4f69d0
cmpq $0x0, 0x48(%rsp)
je 0x4f69f4
movl %edx, %r14d
testl %edx, %edx
jle 0x4f6a15
testl %ecx, %ecx
js 0x4f6a36
testl %r8d, %r8d
js 0x4f6a57
movl %r8d, 0x38(%rsp)
leal -0x1(%rdi), %eax
addq $0x1f, %rdi
movq %rdi, %rbx
shrq $0x5, %rbx
movl %eax, 0x7c(%rsp)
xorl %edx, %edx
divl %ebx
movl %eax, 0x68(%rsp)
movl %edx, %r15d
movq 0x40(%rsp), %rdx
movl 0x20(%rdx), %eax
movl %eax, %esi
negb %sil
movzbl %sil, %esi
movl %ecx, %r13d
negl %r13d
cmpl %r13d, %eax
movl %ecx, 0x20(%rsp)
cmovgl %ecx, %esi
movl %esi, 0x18(%rsp)
movb $0x7e, %al
subb 0x1c(%rdx), %al
movl %eax, 0x60(%rsp)
andl $0x7fffffe0, %edi       # imm = 0x7FFFFFE0
movl %r14d, %esi
callq 0x1ab93b
testq %rax, %rax
je 0x4f61db
movq %rax, %r12
movl %r13d, 0x8(%rsp)
movl %r15d, 0x58(%rsp)
orl $0x20140401, 0xc(%rax)  # imm = 0x20140401
pushq $0x20
popq %r13
movq %r13, %rdi
movq %rbx, %rsi
callq 0x496aa4
movq %rax, %r15
leal 0x1(%r14), %esi
movq %r13, %rdi
movq %rsi, 0x50(%rsp)
callq 0x1ab776
movq %rax, 0x10(%rsp)
movq %r13, %rdi
movq %rbx, %rsi
callq 0x496aa4
movq %rax, %r13
pushq $0x20
popq %rdi
movq %rbx, %rsi
callq 0x496aa4
movq %r14, 0x30(%rsp)
movq %rax, %r14
pushq $0x20
popq %rdi
movq %rbx, 0x28(%rsp)
movq %rbx, %rsi
callq 0x496aa4
testq %r15, %r15
sete %cl
cmpq $0x0, 0x10(%rsp)
sete %dl
orb %cl, %dl
testq %r13, %r13
sete %cl
testq %r14, %r14
sete %sil
orb %cl, %sil
orb %dl, %sil
testq %rax, %rax
sete %cl
orb %sil, %cl
je 0x4f61e2
xorl %ebx, %ebx
jmp 0x4f6a7f
movq 0x30(%rsp), %rcx
decl %ecx
movl %ecx, 0x78(%rsp)
pushq $0x1f
popq %rdx
subl 0x68(%rsp), %edx
movl 0x20(%rsp), %edi
vmovd %edi, %xmm0
vpbroadcastb %xmm0, %ymm4
movl 0x38(%rsp), %esi
vmovd %esi, %xmm0
vpbroadcastb %xmm0, %ymm5
movl 0x18(%rsp), %ecx
addb $-0x7f, %cl
vmovd %ecx, %xmm0
vpbroadcastb %xmm0, %ymm0
vmovd 0x60(%rsp), %xmm1
vpbroadcastb %xmm1, %ymm1
movzbl %cl, %ecx
vmovd %ecx, %xmm6
movq 0x28(%rsp), %rbx
movl %ebx, %ecx
imull %esi, %ecx
negb %cl
vmovd %ecx, %xmm2
vpbroadcastb %xmm2, %ymm2
vpand 0xd5773(%rip), %ymm2, %ymm2 # 0x5cb9c0
vpaddsb %ymm2, %ymm6, %ymm7
movl %edi, %ecx
movl %esi, %esi
movslq 0x8(%rsp), %rdi
negq %rcx
movq %rbx, %r8
movq %rsi, 0x18(%rsp)
imulq %rsi, %r8
xorl %r9d, %r9d
pushq $-0x80
popq %rsi
movq %r12, 0x20(%rsp)
cmpq %rbx, %r9
je 0x4f62ec
movq %rdi, %r11
xorl %ebx, %ebx
cmpq $0x20, %rbx
je 0x4f62b3
cmpq $-0x7f, %r11
movq %rsi, %r10
cmovgeq %r11, %r10
leaq (%rcx,%r11), %r12
cmpq $-0x7f, %r12
cmovlq %rsi, %r12
movb %r10b, 0x120(%rsp,%rbx)
movb %r12b, 0x100(%rsp,%rbx)
incq %rbx
subq %r8, %r11
jmp 0x4f627e
movq %r9, %r10
shlq $0x5, %r10
vmovaps 0x120(%rsp), %ymm2
vmovaps %ymm2, (%r14,%r10)
vmovdqa 0x100(%rsp), %ymm2
vmovdqa %ymm2, (%r15,%r10)
incq %r9
subq 0x18(%rsp), %rdi
movq 0x20(%rsp), %r12
movq 0x28(%rsp), %rbx
jmp 0x4f6274
movq 0x10(%rsp), %rcx
movb $0x0, (%rcx)
pushq $0x1
popq %rcx
pushq $-0x80
popq %rsi
movl 0x38(%rsp), %r9d
movq 0x50(%rsp), %r11
movq 0x10(%rsp), %r8
cmpq %rcx, %r11
je 0x4f632e
movl 0x8(%rsp), %r10d
cmpl $-0x7f, %r10d
movl %esi, %edi
cmovgel %r10d, %edi
movb %dil, (%r8,%rcx)
incq %rcx
subl %r9d, %r10d
movl %r10d, 0x8(%rsp)
jmp 0x4f6309
vpxor %xmm2, %xmm2, %xmm2
vpsubsb %ymm4, %ymm2, %ymm2
leal -0x1(%rbx), %ecx
movl %ecx, %esi
testl %esi, %esi
js 0x4f6352
movl %esi, %edi
shlq $0x5, %rdi
vmovdqa %ymm2, (%rax,%rdi)
vpsubsb %ymm5, %ymm2, %ymm2
decl %esi
jmp 0x4f633b
movl %ecx, %ecx
shlq $0x5, %rcx
addq %r14, %rcx
movl 0x58(%rsp), %esi
shlq $0x5, %rsi
addq %r14, %rsi
movq %rsi, 0x8(%rsp)
movl 0x30(%rsp), %esi
movq %rbx, %rdi
shlq $0x5, %rdi
xorl %r8d, %r8d
pushq $0x1e
popq %r9
vmovdqa %ymm1, %ymm2
vmovdqa %ymm0, %ymm3
cmpq %rsi, %r8
je 0x4f6501
vmovdqa (%rcx), %ymm8
vinserti128 $0x1, %xmm8, %ymm0, %ymm9
vpalignr $0xf, %ymm9, %ymm8, %ymm8 # ymm8 = ymm9[15],ymm8[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],ymm9[31],ymm8[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
movq 0x10(%rsp), %r10
vpinsrb $0x0, (%r10,%r8), %xmm8, %xmm9
vpblendd $0xf, %ymm9, %ymm8, %ymm10 # ymm10 = ymm9[0,1,2,3],ymm8[4,5,6,7]
movq 0x40(%rsp), %r10
movq 0x10(%r10), %r10
movq 0x48(%rsp), %r11
movzbl (%r11,%r8), %r11d
movl (%r10,%r11,4), %r10d
imull %ebx, %r10d
movslq %r10d, %r10
shlq $0x5, %r10
addq 0x70(%rsp), %r10
vpsubsb (%rax), %ymm0, %ymm9
xorl %r11d, %r11d
vmovdqa %ymm0, %ymm8
cmpq %r11, %rdi
je 0x4f642e
vpaddsb (%r10,%r11), %ymm10, %ymm10
vmovdqa (%r14,%r11), %ymm11
vmovdqa (%r15,%r11), %ymm12
vpsubsb %ymm5, %ymm12, %ymm12
vpsubsb %ymm4, %ymm11, %ymm13
vpaddsb (%rax,%r11), %ymm9, %ymm9
vpmaxsb %ymm13, %ymm12, %ymm12
vpmaxsb %ymm9, %ymm8, %ymm8
vmovdqa %ymm12, (%r15,%r11)
vpmaxsb %ymm10, %ymm12, %ymm9
vmovdqa %ymm9, (%r13,%r11)
addq $0x20, %r11
vmovdqa %ymm11, %ymm10
jmp 0x4f63e2
vinserti128 $0x1, %xmm9, %ymm0, %ymm10
vpalignr $0xf, %ymm10, %ymm9, %ymm9 # ymm9 = ymm10[15],ymm9[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],ymm10[31],ymm9[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
leaq 0x1(%r8), %r10
movq 0x10(%rsp), %r11
vpinsrb $0x0, 0x1(%r11,%r8), %xmm9, %xmm10
vpblendd $0xf, %ymm10, %ymm9, %ymm9 # ymm9 = ymm10[0,1,2,3],ymm9[4,5,6,7]
vpaddsb (%rax), %ymm9, %ymm10
vpmaxsb %ymm10, %ymm8, %ymm8
movl %r9d, %r11d
vperm2i128 $0x8, %ymm8, %ymm8, %ymm10 # ymm10 = zero,zero,ymm8[0,1]
vpalignr $0xf, %ymm10, %ymm8, %ymm10 # ymm10 = ymm10[15],ymm8[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],ymm10[31],ymm8[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
subl $0x1, %r11d
jb 0x4f647a
vpaddsb %ymm7, %ymm10, %ymm10
vpmaxsb %ymm10, %ymm8, %ymm8
jmp 0x4f645d
vpaddsb %ymm6, %ymm10, %ymm8
vpmaxsb %ymm8, %ymm9, %ymm9
xorl %r11d, %r11d
cmpq %r11, %rdi
je 0x4f64b5
vpsubsb %ymm5, %ymm8, %ymm8
vpsubsb %ymm4, %ymm9, %ymm9
vpmaxsb %ymm9, %ymm8, %ymm8
vpmaxsb (%r13,%r11), %ymm8, %ymm9
vmovdqa %ymm9, (%r14,%r11)
vpminsb %ymm9, %ymm2, %ymm2
vpmaxsb %ymm9, %ymm3, %ymm3
addq $0x20, %r11
jmp 0x4f6486
movq 0x8(%rsp), %r11
vmovdqa (%r11), %ymm8
xorl %r11d, %r11d
cmpl %edx, %r11d
jge 0x4f64d8
vperm2i128 $0x28, %ymm8, %ymm8, %ymm9 # ymm9 = zero,zero,ymm8[0,1]
vpalignr $0xf, %ymm9, %ymm8, %ymm8 # ymm8 = ymm9[15],ymm8[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],ymm9[31],ymm8[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
incl %r11d
jmp 0x4f64c2
vextracti128 $0x1, %ymm8, %xmm8
vpextrb $0xf, %xmm8, %r11d
movsbl %r11b, %r11d
movq 0x10(%r12), %rbx
movq (%rbx), %rbx
movl %r11d, (%rbx,%r8,4)
movq 0x28(%rsp), %rbx
movq %r10, %r8
jmp 0x4f6385
leal (,%rbx,4), %r8d
leal (,%rbx,8), %ecx
movq %rcx, 0x28(%rsp)
movl %ebx, %ecx
imulq $0xc, %rcx, %rsi
movq %rsi, 0x48(%rsp)
movl %ebx, %esi
shll $0x4, %esi
movq %rsi, 0x40(%rsp)
imulq $0x14, %rcx, %rsi
movq %rsi, 0x70(%rsp)
imulq $0x18, %rcx, %rsi
movq %rsi, 0x18(%rsp)
imulq $0x1c, %rcx, %rcx
movq %rcx, 0x38(%rsp)
imulq $0x7c, %rbx, %rcx
movq %rcx, 0x68(%rsp)
imulq $0x78, %rbx, %rcx
movq %rcx, 0x60(%rsp)
imulq $0x74, %rbx, %rcx
movq %rcx, 0x30(%rsp)
imulq $0x70, %rbx, %rcx
movq %rcx, 0x58(%rsp)
movq %rbx, %rcx
shlq $0x6, %rcx
movq %rcx, 0x50(%rsp)
imulq $0x6c, %rbx, %rcx
movq %rcx, 0xf8(%rsp)
imulq $0x68, %rbx, %rcx
movq %rcx, 0xf0(%rsp)
imulq $0x64, %rbx, %rcx
movq %rcx, 0xe8(%rsp)
imulq $0x60, %rbx, %rcx
movq %rcx, 0xe0(%rsp)
imulq $0x5c, %rbx, %rcx
movq %rcx, 0xd8(%rsp)
imulq $0x58, %rbx, %rcx
movq %rcx, 0xd0(%rsp)
imulq $0x54, %rbx, %rcx
movq %rcx, 0xc8(%rsp)
imulq $0x50, %rbx, %rcx
movq %rcx, 0xc0(%rsp)
imulq $0x4c, %rbx, %rcx
movq %rcx, 0xb8(%rsp)
imulq $0x48, %rbx, %rcx
movq %rcx, 0xb0(%rsp)
imulq $0x44, %rbx, %rcx
movq %rcx, 0xa8(%rsp)
imulq $0x3c, %rbx, %rcx
movq %rcx, 0xa0(%rsp)
imulq $0x38, %rbx, %rcx
movq %rcx, 0x98(%rsp)
imulq $0x34, %rbx, %rcx
movq %rcx, 0x90(%rsp)
imulq $0x30, %rbx, %rcx
movq %rcx, 0x88(%rsp)
imulq $0x2c, %rbx, %rcx
movq %rcx, 0x80(%rsp)
imulq $0x28, %rbx, %r10
imulq $0x24, %rbx, %rbx
xorl %r12d, %r12d
cmpq %r12, %r8
je 0x4f68cf
movq 0x20(%rsp), %rcx
movq 0x10(%rcx), %rsi
movq 0x8(%rsi), %rsi
vmovdqa (%r14,%r12,8), %xmm5
vmovdqa 0x10(%r14,%r12,8), %xmm4
vmovd %xmm5, %ecx
movsbl %cl, %ecx
movl %ecx, (%rsi,%r12)
addq %r12, %rsi
vpextrb $0x1, %xmm5, %ecx
movsbl %cl, %ecx
movl %ecx, (%r8,%rsi)
vpextrb $0x2, %xmm5, %ecx
movsbl %cl, %ecx
movq 0x28(%rsp), %r11
movl %ecx, (%r11,%rsi)
vpextrb $0x3, %xmm5, %ecx
movsbl %cl, %ecx
movq 0x48(%rsp), %r11
movl %ecx, (%r11,%rsi)
vpextrb $0x4, %xmm5, %ecx
movsbl %cl, %ecx
movq 0x40(%rsp), %r11
movl %ecx, (%r11,%rsi)
vpextrb $0x5, %xmm5, %ecx
movsbl %cl, %ecx
movq 0x70(%rsp), %r11
movl %ecx, (%r11,%rsi)
vpextrb $0x6, %xmm5, %ecx
movsbl %cl, %ecx
movq 0x18(%rsp), %r11
movl %ecx, (%r11,%rsi)
vpextrb $0x7, %xmm5, %ecx
movsbl %cl, %ecx
movq 0x38(%rsp), %r11
movl %ecx, (%r11,%rsi)
vpextrb $0x8, %xmm5, %ecx
movsbl %cl, %ecx
movl %ecx, (%rdi,%rsi)
vpextrb $0x9, %xmm5, %ecx
movsbl %cl, %ecx
movl %ecx, (%rbx,%rsi)
vpextrb $0xa, %xmm5, %ecx
movsbl %cl, %ecx
movl %ecx, (%r10,%rsi)
vpextrb $0xb, %xmm5, %ecx
movsbl %cl, %ecx
movq 0x80(%rsp), %r9
movl %ecx, (%r9,%rsi)
vpextrb $0xc, %xmm5, %ecx
movsbl %cl, %ecx
movq 0x88(%rsp), %r9
movl %ecx, (%r9,%rsi)
vpextrb $0xd, %xmm5, %ecx
movsbl %cl, %ecx
movq 0x90(%rsp), %r9
movl %ecx, (%r9,%rsi)
vpextrb $0xe, %xmm5, %ecx
movsbl %cl, %ecx
movq 0x98(%rsp), %r9
movl %ecx, (%r9,%rsi)
vpextrb $0xf, %xmm5, %ecx
movsbl %cl, %ecx
movq 0xa0(%rsp), %r9
movl %ecx, (%r9,%rsi)
vmovd %xmm4, %ecx
movsbl %cl, %ecx
vpextrb $0x1, %xmm4, %r11d
movq 0x50(%rsp), %r9
movl %ecx, (%r9,%rsi)
movsbl %r11b, %ecx
vpextrb $0x2, %xmm4, %r11d
movq 0xa8(%rsp), %r9
movl %ecx, (%r9,%rsi)
movsbl %r11b, %ecx
vpextrb $0x3, %xmm4, %r11d
movq 0xb0(%rsp), %r9
movl %ecx, (%r9,%rsi)
movsbl %r11b, %ecx
vpextrb $0x4, %xmm4, %r11d
movq 0xb8(%rsp), %r9
movl %ecx, (%r9,%rsi)
movsbl %r11b, %ecx
vpextrb $0x5, %xmm4, %r11d
movq 0xc0(%rsp), %r9
movl %ecx, (%r9,%rsi)
movsbl %r11b, %ecx
vpextrb $0x6, %xmm4, %r11d
movq 0xc8(%rsp), %r9
movl %ecx, (%r9,%rsi)
movsbl %r11b, %ecx
vpextrb $0x7, %xmm4, %r11d
movq 0xd0(%rsp), %r9
movl %ecx, (%r9,%rsi)
movsbl %r11b, %ecx
vpextrb $0x8, %xmm4, %r11d
movq 0xd8(%rsp), %r9
movl %ecx, (%r9,%rsi)
movsbl %r11b, %ecx
vpextrb $0x9, %xmm4, %r11d
movq 0xe0(%rsp), %r9
movl %ecx, (%r9,%rsi)
movsbl %r11b, %ecx
vpextrb $0xa, %xmm4, %r11d
movq 0xe8(%rsp), %r9
movl %ecx, (%r9,%rsi)
movsbl %r11b, %ecx
vpextrb $0xb, %xmm4, %r11d
movq 0xf0(%rsp), %r9
movl %ecx, (%r9,%rsi)
movsbl %r11b, %ecx
vpextrb $0xc, %xmm4, %r11d
movq 0xf8(%rsp), %r9
movl %ecx, (%r9,%rsi)
movsbl %r11b, %ecx
vpextrb $0xd, %xmm4, %r11d
movq 0x58(%rsp), %r9
movl %ecx, (%r9,%rsi)
movsbl %r11b, %ecx
vpextrb $0xe, %xmm4, %r11d
movq 0x30(%rsp), %r9
movl %ecx, (%r9,%rsi)
movsbl %r11b, %ecx
vpextrb $0xf, %xmm4, %r11d
movq 0x60(%rsp), %r9
movl %ecx, (%r9,%rsi)
movsbl %r11b, %ecx
movq 0x68(%rsp), %r11
movl %ecx, (%r11,%rsi)
addq $0x4, %r12
jmp 0x4f6640
movq 0x8(%rsp), %rcx
vmovdqa (%rcx), %ymm4
xorl %ecx, %ecx
movq 0x20(%rsp), %rbx
movl 0x78(%rsp), %esi
cmpl %edx, %ecx
jge 0x4f68f7
vperm2i128 $0x28, %ymm4, %ymm4, %ymm5 # ymm5 = zero,zero,ymm4[0,1]
vpalignr $0xf, %ymm5, %ymm4, %ymm4 # ymm4 = ymm5[15],ymm4[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],ymm5[31],ymm4[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
incl %ecx
jmp 0x4f68e3
vpcmpgtb %ymm2, %ymm0, %ymm0
vpcmpgtb %ymm1, %ymm3, %ymm1
vpor %ymm0, %ymm1, %ymm0
vpmovmskb %ymm0, %ecx
testl %ecx, %ecx
je 0x4f6917
orb $0x40, 0xc(%rbx)
xorl %ecx, %ecx
xorl %esi, %esi
xorl %edx, %edx
jmp 0x4f6927
vextracti128 $0x1, %ymm4, %xmm0
vpextrb $0xf, %xmm0, %ecx
movl 0x7c(%rsp), %edx
movsbl %cl, %ecx
movl %ecx, (%rbx)
movl %edx, 0x4(%rbx)
movl %esi, 0x8(%rbx)
movq %rax, %rdi
vzeroupper
callq 0x1ab763
movq %r14, %rdi
callq 0x1ab763
movq %r13, %rdi
callq 0x1ab763
movq 0x10(%rsp), %rdi
callq 0x1ab763
movq %r15, %rdi
callq 0x1ab763
jmp 0x4f6a7f
movq 0x24466d(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xd0676(%rip), %rsi     # 0x5c6feb
leaq 0xbe234(%rip), %rdx     # 0x5b4bb0
leaq 0xa6b5a(%rip), %rcx     # 0x59d4dd
jmp 0x4f6a76
movq 0x244649(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xd0652(%rip), %rsi     # 0x5c6feb
leaq 0xbe210(%rip), %rdx     # 0x5b4bb0
leaq 0xd1109(%rip), %rcx     # 0x5c7ab0
jmp 0x4f6a76
movq 0x244625(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xd062e(%rip), %rsi     # 0x5c6feb
leaq 0xbe1ec(%rip), %rdx     # 0x5b4bb0
leaq 0xd0f6e(%rip), %rcx     # 0x5c7939
jmp 0x4f6a76
movq 0x244601(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xd0d20(%rip), %rsi     # 0x5c7701
leaq 0xbe1c8(%rip), %rdx     # 0x5b4bb0
leaq 0xd0f5a(%rip), %rcx     # 0x5c7949
jmp 0x4f6a76
movq 0x2445dd(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xd05e6(%rip), %rsi     # 0x5c6feb
leaq 0xbe1a4(%rip), %rdx     # 0x5b4bb0
leaq 0xd0ceb(%rip), %rcx     # 0x5c76fe
jmp 0x4f6a76
movq 0x2445bc(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xd0cdb(%rip), %rsi     # 0x5c7701
leaq 0xbe183(%rip), %rdx     # 0x5b4bb0
leaq 0xd0ce1(%rip), %rcx     # 0x5c7715
jmp 0x4f6a76
movq 0x24459b(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xd0cd4(%rip), %rsi     # 0x5c771b
leaq 0xbe162(%rip), %rdx     # 0x5b4bb0
leaq 0xd0cdb(%rip), %rcx     # 0x5c7730
jmp 0x4f6a76
movq 0x24457a(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xd0cb3(%rip), %rsi     # 0x5c771b
leaq 0xbe141(%rip), %rdx     # 0x5b4bb0
leaq 0xd0cbf(%rip), %rcx     # 0x5c7735
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x19e180
movq %rbx, %rax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)