// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/sw_striped_avx2_256_8.c
// Function: parasail_sw_rowcol_striped_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 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;
#ifdef PARASAIL_ROWCOL
    int32_t offset = 0;
    int32_t position = 0;
#endif
    __m256i* restrict vProfile = NULL;
    __m256i* restrict pvHStore = NULL;
    __m256i* restrict pvHLoad = NULL;
    __m256i* restrict pvHMax = NULL;
    __m256i* restrict pvE = NULL;
    __m256i vGapO;
    __m256i vGapE;
    __m256i vZero;
    int8_t bias = 0;
    int8_t score = 0;
    __m256i vBias;
    __m256i vMaxH;
    __m256i vMaxHUnit;
    int8_t maxp = 0;
    __m256i insert_mask;
    /*int8_t stop = 0;*/
    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;
    end_query = 0;
    end_ref = 0;
    s1Len = profile->s1Len;
    matrix = profile->matrix;
    segWidth = 32; /* number of values in vector unit */
    segLen = (s1Len + segWidth - 1) / segWidth;
#ifdef PARASAIL_ROWCOL
    offset = (s1Len - 1) % segLen;
    position = (segWidth - 1) - (s1Len - 1) / segLen;
#endif
    vProfile = (__m256i*)profile->profile8.score;
    vGapO = _mm256_set1_epi8(open);
    vGapE = _mm256_set1_epi8(gap);
    vZero = _mm256_set1_epi8(0);
    bias = INT8_MIN;
    score = bias;
    vBias = _mm256_set1_epi8(bias);
    vMaxH = vBias;
    vMaxHUnit = vBias;
    maxp = INT8_MAX - (int8_t)(matrix->max+1);
    insert_mask = _mm256_cmpgt_epi8(
            _mm256_set_epi8(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1),
            vZero);
    /*stop = profile->stop == INT32_MAX ?  INT8_MAX : (int8_t)profile->stop-bias;*/

    /* 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_SW | PARASAIL_FLAG_STRIPED
        | 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 */
    pvHStore = parasail_memalign___m256i(32, segLen);
    pvHLoad = parasail_memalign___m256i(32, segLen);
    pvHMax = parasail_memalign___m256i(32, segLen);
    pvE = parasail_memalign___m256i(32, segLen);

    /* validate heap variables */
    if (!pvHStore) return NULL;
    if (!pvHLoad) return NULL;
    if (!pvHMax) return NULL;
    if (!pvE) return NULL;

    /* initialize H and E */
    parasail_memset___m256i(pvHStore, vBias, segLen);
    parasail_memset___m256i(pvE, vBias, segLen);

    /* outer loop over database sequence */
    for (j=0; j<s2Len; ++j) {
        __m256i vE;
        __m256i vF;
        __m256i vH;
        const __m256i* vP = NULL;
        __m256i* pv = NULL;

        /* Initialize F value to 0.  Any errors to vH values will be
         * corrected in the Lazy_F loop.  */
        vF = vBias;

        /* load final segment of pvHStore and shift left by 1 bytes */
        vH = _mm256_slli_si256_rpl(pvHStore[segLen - 1], 1);
        vH = _mm256_blendv_epi8(vH, vBias, insert_mask);

        /* Correct part of the vProfile */
        vP = vProfile + matrix->mapper[(unsigned char)s2[j]] * segLen;

        if (end_ref == j-2) {
            /* Swap in the max buffer. */
            pv = pvHMax;
            pvHMax = pvHLoad;
            pvHLoad = pvHStore;
            pvHStore = pv;
        }
        else {
            /* Swap the 2 H buffers. */
            pv = pvHLoad;
            pvHLoad = pvHStore;
            pvHStore = pv;
        }

        /* inner loop to process the query sequence */
        for (i=0; i<segLen; ++i) {
            vH = _mm256_adds_epi8(vH, _mm256_load_si256(vP + i));
            vE = _mm256_load_si256(pvE + i);

            /* Get max from vH, vE and vF. */
            vH = _mm256_max_epi8(vH, vE);
            vH = _mm256_max_epi8(vH, vF);
            /* Save vH values. */
            _mm256_store_si256(pvHStore + i, vH);
#ifdef PARASAIL_TABLE
            arr_store_si256(result->tables->score_table, vH, i, segLen, j, s2Len, bias);
#endif
            vMaxH = _mm256_max_epi8(vH, vMaxH);

            /* Update vE value. */
            vH = _mm256_subs_epi8(vH, vGapO);
            vE = _mm256_subs_epi8(vE, vGapE);
            vE = _mm256_max_epi8(vE, vH);
            _mm256_store_si256(pvE + i, vE);

            /* Update vF value. */
            vF = _mm256_subs_epi8(vF, vGapE);
            vF = _mm256_max_epi8(vF, vH);

            /* Load the next vH. */
            vH = _mm256_load_si256(pvHLoad + i);
        }

        /* Lazy_F loop: has been revised to disallow adjecent insertion and
         * then deletion, so don't update E(i, i), learn from SWPS3 */
        for (k=0; k<segWidth; ++k) {
            vF = _mm256_slli_si256_rpl(vF, 1);
            vF = _mm256_blendv_epi8(vF, vBias, insert_mask);
            for (i=0; i<segLen; ++i) {
                vH = _mm256_load_si256(pvHStore + i);
                vH = _mm256_max_epi8(vH,vF);
                _mm256_store_si256(pvHStore + i, vH);
#ifdef PARASAIL_TABLE
                arr_store_si256(result->tables->score_table, vH, i, segLen, j, s2Len, bias);
#endif
                vMaxH = _mm256_max_epi8(vH, vMaxH);
                vH = _mm256_subs_epi8(vH, vGapO);
                vF = _mm256_subs_epi8(vF, vGapE);
                if (! _mm256_movemask_epi8(_mm256_cmpgt_epi8(vF, vH))) goto end;
                /*vF = _mm256_max_epi8(vF, vH);*/
            }
        }
end:
        {
        }

#ifdef PARASAIL_ROWCOL
        /* extract last value from the column */
        {
            vH = _mm256_load_si256(pvHStore + 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) - bias;
        }
#endif

        {
            __m256i vCompare = _mm256_cmpgt_epi8(vMaxH, vMaxHUnit);
            if (_mm256_movemask_epi8(vCompare)) {
                score = _mm256_hmax_epi8_rpl(vMaxH);
                /* if score has potential to overflow, abort early */
                if (score > maxp) {
                    result->flag |= PARASAIL_FLAG_SATURATED;
                    break;
                }
                vMaxHUnit = _mm256_set1_epi8(score);
                end_ref = j;
            }
        }

        /*if (score == stop) break;*/
    }

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

    if (score == INT8_MAX) {
        result->flag |= PARASAIL_FLAG_SATURATED;
    }

    if (parasail_result_is_saturated(result)) {
        score = INT8_MAX;
        end_query = 0;
        end_ref = 0;
    }
    else {
        if (end_ref == j-1) {
            /* end_ref was the last store column */
            __m256i *pv = pvHMax;
            pvHMax = pvHStore;
            pvHStore = pv;
        }
        else if (end_ref == j-2) {
            /* end_ref was the last load column */
            __m256i *pv = pvHMax;
            pvHMax = pvHLoad;
            pvHLoad = pv;
        }
        /* Trace the alignment ending position on read. */
        {
            int8_t *t = (int8_t*)pvHMax;
            int32_t column_len = segLen * segWidth;
            end_query = s1Len - 1;
            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;
                    }
                }
            }
        }
    }

    result->score = score - bias;
    result->end_query = end_query;
    result->end_ref = end_ref;

    parasail_free(pvE);
    parasail_free(pvHMax);
    parasail_free(pvHLoad);
    parasail_free(pvHStore);

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rsi, 0x28(%rsp)
testq %rdi, %rdi
je 0x51054f
movq 0x18(%rdi), %rax
movq %rax, 0x58(%rsp)
testq %rax, %rax
je 0x510573
movq 0x10(%rdi), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x510597
movl 0x8(%rdi), %eax
testl %eax, %eax
jle 0x5105bb
cmpq $0x0, 0x28(%rsp)
je 0x5105df
movl %edx, %ebx
testl %edx, %edx
jle 0x510600
movl %ecx, %r14d
testl %ecx, %ecx
js 0x510621
movl %r8d, %ebp
testl %r8d, %r8d
js 0x510642
movq %rax, %rdi
addq $0x1f, %rdi
movq %rdi, %r15
shrq $0x5, %r15
decl %eax
movl %eax, 0x64(%rsp)
xorl %edx, %edx
divl %r15d
movl %eax, 0x130(%rsp)
movl %edx, 0x8(%rsp)
movq 0x20(%rsp), %rax
movl 0x1c(%rax), %r13d
andl $0x7fffffe0, %edi       # imm = 0x7FFFFFE0
movl %ebx, %esi
callq 0x1ab93b
testq %rax, %rax
je 0x50fd39
movq %rax, %r12
movl %r13d, 0x50(%rsp)
movl %r14d, 0xf0(%rsp)
movl %ebp, 0x110(%rsp)
movq %rbx, 0x40(%rsp)
orl $0x20140804, 0xc(%rax)  # imm = 0x20140804
pushq $0x20
popq %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x496aa4
movq %rax, %r14
movq %r13, %rdi
movq %r15, %rsi
callq 0x496aa4
movq %rax, %rbx
movq %r13, %rdi
movq %r15, %rsi
callq 0x496aa4
movq %rax, %rbp
movq %r13, %rdi
movq %r15, %rsi
callq 0x496aa4
movq %rax, %r13
testq %r14, %r14
sete %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
movq %rbp, 0x38(%rsp)
testq %rbp, %rbp
sete %al
testq %r13, %r13
sete %dl
orb %al, %dl
orb %cl, %dl
je 0x50fd40
xorl %ebx, %ebx
jmp 0x51066a
movq $0x0, 0x10(%rsp)
movq %r12, 0x30(%rsp)
pushq $0x1f
popq %r12
subl 0x130(%rsp), %r12d
vmovd 0xf0(%rsp), %xmm0
vpbroadcastb %xmm0, %ymm0
vmovdqu %ymm0, 0x130(%rsp)
vmovd 0x110(%rsp), %xmm0
vpbroadcastb %xmm0, %ymm0
vmovdqu %ymm0, 0x110(%rsp)
vbroadcastsd 0xbc2a7(%rip), %ymm0 # 0x5cc038
vmovups %ymm0, 0xf0(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x496aad
movq %r13, %rdi
vmovups 0xf0(%rsp), %ymm0
movq %r15, %rsi
callq 0x496aad
vmovdqu 0xf0(%rsp), %ymm8
leal -0x1(%r15), %ecx
movl 0x8(%rsp), %edx
movb $0x7e, %al
subb 0x50(%rsp), %al
movsbl %al, %eax
movl %eax, 0x8(%rsp)
movl 0x40(%rsp), %edi
movq %r15, %rax
movq %r15, 0x48(%rsp)
shlq $0x5, %rax
leaq 0x20(%rax), %r8
vpbroadcastb 0xbd492(%rip), %ymm1 # 0x5cd286
movb $-0x80, %sil
movl %esi, 0x1c(%rsp)
shlq $0x5, %rcx
movl $0x80, %r10d
shlq $0x5, %rdx
xorl %r9d, %r9d
vmovdqa %ymm8, %ymm0
vmovdqu 0x130(%rsp), %ymm6
vmovdqu 0x110(%rsp), %ymm7
movq %r14, %rbp
cmpq %rdi, %r9
je 0x51000b
vmovdqa (%rbp,%rcx), %ymm2
vinserti128 $0x1, %xmm2, %ymm0, %ymm3
vpalignr $0xf, %ymm3, %ymm2, %ymm2 # ymm2 = ymm3[15],ymm2[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],ymm3[31],ymm2[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
vpinsrb $0x0, %r10d, %xmm2, %xmm3
vpblendd $0xf, %ymm3, %ymm2, %ymm3 # ymm3 = ymm3[0,1,2,3],ymm2[4,5,6,7]
movq 0x20(%rsp), %rsi
movq 0x10(%rsi), %rsi
movq 0x28(%rsp), %r11
movzbl (%r11,%r9), %r11d
movl (%rsi,%r11,4), %esi
imull 0x48(%rsp), %esi
movslq %esi, %r11
shlq $0x5, %r11
addq 0x58(%rsp), %r11
leal -0x2(%r9), %r15d
cmpl %r15d, 0x10(%rsp)
movq %rbx, %r14
cmoveq 0x38(%rsp), %r14
xorl %esi, %esi
vmovdqa %ymm8, %ymm2
cmpq %rsi, %rax
je 0x50fedc
vpaddsb (%r11,%rsi), %ymm3, %ymm3
vmovdqa (%r13,%rsi), %ymm4
vpmaxsb %ymm2, %ymm4, %ymm5
vpmaxsb %ymm5, %ymm3, %ymm3
vmovdqa %ymm3, (%r14,%rsi)
vpmaxsb %ymm0, %ymm3, %ymm0
vpsubsb %ymm6, %ymm3, %ymm3
vpsubsb %ymm7, %ymm4, %ymm4
vpmaxsb %ymm3, %ymm4, %ymm4
vmovdqa %ymm4, (%r13,%rsi)
vpsubsb %ymm7, %ymm2, %ymm2
vpmaxsb %ymm3, %ymm2, %ymm2
vmovdqa (%rbp,%rsi), %ymm3
addq $0x20, %rsi
jmp 0x50fe8c
cmpl %r15d, 0x10(%rsp)
movq 0x38(%rsp), %rsi
cmoveq %rbx, %rsi
movq %rsi, 0x38(%rsp)
xorl %r11d, %r11d
cmpl $0x20, %r11d
je 0x50ff4b
vinserti128 $0x1, %xmm2, %ymm0, %ymm3
vpalignr $0xf, %ymm3, %ymm2, %ymm2 # ymm2 = ymm3[15],ymm2[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],ymm3[31],ymm2[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
vpinsrb $0x0, %r10d, %xmm2, %xmm3
vpblendd $0xf, %ymm3, %ymm2, %ymm2 # ymm2 = ymm3[0,1,2,3],ymm2[4,5,6,7]
xorl %esi, %esi
leaq 0x20(%rsi), %rbx
cmpq %rbx, %r8
je 0x50ff46
vpmaxsb (%r14,%rsi), %ymm2, %ymm3
vmovdqa %ymm3, (%r14,%rsi)
vpmaxsb %ymm0, %ymm3, %ymm0
vpsubsb %ymm6, %ymm3, %ymm3
vpsubsb %ymm7, %ymm2, %ymm2
vpcmpgtb %ymm3, %ymm2, %ymm3
vpmovmskb %ymm3, %r15d
movq %rbx, %rsi
testl %r15d, %r15d
jne 0x50ff12
jmp 0x50ff4b
incl %r11d
jmp 0x50fef2
vmovdqa (%r14,%rdx), %ymm2
xorl %esi, %esi
cmpl %r12d, %esi
jge 0x50ff68
vperm2i128 $0x28, %ymm2, %ymm2, %ymm3 # ymm3 = zero,zero,ymm2[0,1]
vpalignr $0xf, %ymm3, %ymm2, %ymm2 # ymm2 = ymm3[15],ymm2[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],ymm3[31],ymm2[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
incl %esi
jmp 0x50ff53
vextracti128 $0x1, %ymm2, %xmm2
vpextrb $0xf, %xmm2, %esi
movsbl %sil, %esi
subl $-0x80, %esi
movq 0x30(%rsp), %r11
movq 0x10(%r11), %r11
movq (%r11), %r11
movl %esi, (%r11,%r9,4)
vpcmpgtb %ymm1, %ymm0, %ymm2
vpmovmskb %ymm2, %esi
testl %esi, %esi
je 0x510000
vpermq $0x44, %ymm0, %ymm1     # ymm1 = ymm0[0,1,0,1]
vpmaxsb %ymm1, %ymm0, %ymm1
vpslldq $0x8, %ymm1, %ymm2      # ymm2 = zero,zero,zero,zero,zero,zero,zero,zero,ymm1[0,1,2,3,4,5,6,7],zero,zero,zero,zero,zero,zero,zero,zero,ymm1[16,17,18,19,20,21,22,23]
vpmaxsb %ymm2, %ymm1, %ymm1
vpslldq $0x4, %ymm1, %ymm2      # ymm2 = zero,zero,zero,zero,ymm1[0,1,2,3,4,5,6,7,8,9,10,11],zero,zero,zero,zero,ymm1[16,17,18,19,20,21,22,23,24,25,26,27]
vpmaxsb %ymm2, %ymm1, %ymm1
vpslldq $0x2, %ymm1, %ymm2      # ymm2 = zero,zero,ymm1[0,1,2,3,4,5,6,7,8,9,10,11,12,13],zero,zero,ymm1[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vpmaxsb %ymm2, %ymm1, %ymm1
vpslldq $0x1, %ymm1, %ymm2      # ymm2 = zero,ymm1[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],zero,ymm1[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
vpmaxsb %ymm2, %ymm1, %ymm1
vextracti128 $0x1, %ymm1, %xmm2
vpextrb $0xf, %xmm2, %esi
movl %esi, 0x1c(%rsp)
movsbl %sil, %esi
cmpl %esi, 0x8(%rsp)
jl 0x510013
vpbroadcastb 0xbd29a(%rip), %ymm2 # 0x5cd287
vpshufb %ymm2, %ymm1, %ymm1
vpermq $0xaa, %ymm1, %ymm1     # ymm1 = ymm1[2,2,2,2]
movl %r9d, %esi
movq %rsi, 0x10(%rsp)
incq %r9
movq %rbp, %rbx
jmp 0x50fe22
movq %rbp, %r14
movq %rbx, %rbp
jmp 0x510021
movq 0x30(%rsp), %rcx
orb $0x40, 0xc(%rcx)
movq %r9, 0x40(%rsp)
movq 0x48(%rsp), %rsi
leal (,%rsi,4), %ecx
leal (,%rsi,8), %edx
movq %rdx, 0x28(%rsp)
movl %esi, %edx
imulq $0xc, %rdx, %rdi
movq %rdi, 0x20(%rsp)
movl %esi, %edi
shll $0x4, %edi
movq %rdi, 0x58(%rsp)
imulq $0x14, %rdx, %rdi
movq %rdi, 0x130(%rsp)
imulq $0x18, %rdx, %rdi
movq %rdi, 0x110(%rsp)
imulq $0x1c, %rdx, %rdx
movq %rdx, 0x8(%rsp)
imulq $0x7c, %rsi, %rdx
movq %rdx, 0xf0(%rsp)
imulq $0x78, %rsi, %rdx
movq %rdx, 0x50(%rsp)
imulq $0x74, %rsi, %rdx
movq %rdx, 0xe8(%rsp)
imulq $0x70, %rsi, %rdx
movq %rdx, 0xe0(%rsp)
imulq $0x6c, %rsi, %rdx
movq %rdx, 0xd8(%rsp)
imulq $0x68, %rsi, %rdx
movq %rdx, 0xd0(%rsp)
imulq $0x64, %rsi, %rdx
movq %rdx, 0xc8(%rsp)
movq %rsi, %r9
shlq $0x6, %r9
imulq $0x60, %rsi, %rdx
movq %rdx, 0xc0(%rsp)
imulq $0x5c, %rsi, %rdx
movq %rdx, 0xb8(%rsp)
imulq $0x58, %rsi, %rdx
movq %rdx, 0xb0(%rsp)
imulq $0x54, %rsi, %rdx
movq %rdx, 0xa8(%rsp)
imulq $0x50, %rsi, %rdx
movq %rdx, 0xa0(%rsp)
imulq $0x4c, %rsi, %rdx
movq %rdx, 0x98(%rsp)
imulq $0x48, %rsi, %rdx
movq %rdx, 0x90(%rsp)
imulq $0x44, %rsi, %rdx
movq %rdx, 0x88(%rsp)
imulq $0x3c, %rsi, %rdx
movq %rdx, 0x80(%rsp)
imulq $0x38, %rsi, %rdx
movq %rdx, 0x78(%rsp)
imulq $0x34, %rsi, %rdx
movq %rdx, 0x70(%rsp)
imulq $0x30, %rsi, %rdx
movq %rdx, 0x68(%rsp)
imulq $0x2c, %rsi, %r12
imulq $0x28, %rsi, %r15
imulq $0x24, %rsi, %rdx
xorl %esi, %esi
movl $0x80, %r8d
cmpq %rsi, %rcx
je 0x51045f
movq 0x30(%rsp), %rdi
movq 0x10(%rdi), %rdi
movq 0x8(%rdi), %rdi
vmovdqa (%r14,%rsi,8), %xmm1
vmovdqa 0x10(%r14,%rsi,8), %xmm0
vmovd %xmm1, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movl %r10d, (%rdi,%rsi)
addq %rsi, %rdi
vpextrb $0x1, %xmm1, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movl %r10d, (%rcx,%rdi)
vpextrb $0x2, %xmm1, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
vpextrb $0x3, %xmm1, %r11d
movq 0x28(%rsp), %rbx
movl %r10d, (%rbx,%rdi)
movsbl %r11b, %r10d
addl %r8d, %r10d
movq 0x20(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0x4, %xmm1, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movq 0x58(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0x5, %xmm1, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movq 0x130(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0x6, %xmm1, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
vpextrb $0x7, %xmm1, %r11d
movq 0x110(%rsp), %rbx
movl %r10d, (%rbx,%rdi)
movsbl %r11b, %r10d
addl %r8d, %r10d
movq 0x8(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0x8, %xmm1, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movl %r10d, (%rax,%rdi)
vpextrb $0x9, %xmm1, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movl %r10d, (%rdx,%rdi)
vpextrb $0xa, %xmm1, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
vpextrb $0xb, %xmm1, %r11d
movl %r10d, (%r15,%rdi)
movsbl %r11b, %r10d
addl %r8d, %r10d
movl %r10d, (%r12,%rdi)
vpextrb $0xc, %xmm1, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movq 0x68(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0xd, %xmm1, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movq 0x70(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0xe, %xmm1, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
vpextrb $0xf, %xmm1, %r11d
movq 0x78(%rsp), %rbx
movl %r10d, (%rbx,%rdi)
movsbl %r11b, %r10d
addl %r8d, %r10d
movq 0x80(%rsp), %r11
movl %r10d, (%r11,%rdi)
vmovd %xmm0, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movl %r10d, (%r9,%rdi)
vpextrb $0x1, %xmm0, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movq 0x88(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0x2, %xmm0, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movq 0x90(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0x3, %xmm0, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
vpextrb $0x4, %xmm0, %r11d
movq 0x98(%rsp), %rbx
movl %r10d, (%rbx,%rdi)
movsbl %r11b, %r10d
addl %r8d, %r10d
movq 0xa0(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0x5, %xmm0, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movq 0xa8(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0x6, %xmm0, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movq 0xb0(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0x7, %xmm0, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
vpextrb $0x8, %xmm0, %r11d
movq 0xb8(%rsp), %rbx
movl %r10d, (%rbx,%rdi)
movsbl %r11b, %r10d
addl %r8d, %r10d
movq 0xc0(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0x9, %xmm0, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movq 0xc8(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0xa, %xmm0, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movq 0xd0(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0xb, %xmm0, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
vpextrb $0xc, %xmm0, %r11d
movq 0xd8(%rsp), %rbx
movl %r10d, (%rbx,%rdi)
movsbl %r11b, %r10d
addl %r8d, %r10d
movq 0xe0(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0xd, %xmm0, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movq 0xe8(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0xe, %xmm0, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movq 0x50(%rsp), %r11
movl %r10d, (%r11,%rdi)
vpextrb $0xf, %xmm0, %r10d
movsbl %r10b, %r10d
addl %r8d, %r10d
movq 0xf0(%rsp), %r11
movl %r10d, (%r11,%rdi)
addq $0x4, %rsi
jmp 0x510162
movl 0x1c(%rsp), %r12d
cmpb $0x7f, %r12b
movq 0x30(%rsp), %rbx
jne 0x510473
orb $0x40, 0xc(%rbx)
movq %rbx, %rdi
vzeroupper
callq 0x1ace42
testl %eax, %eax
movq 0x38(%rsp), %r15
je 0x510496
xorl %esi, %esi
movl $0xff, %ecx
xorl %r11d, %r11d
jmp 0x510521
movq 0x40(%rsp), %rax
leal -0x1(%rax), %ecx
addl $-0x2, %eax
movq %rax, %r10
movq 0x10(%rsp), %rdx
cmpl %eax, %edx
movq %r15, %rax
cmoveq %rbp, %rax
cmpl %ecx, %edx
movq %r14, %rdx
cmoveq %r15, %rdx
cmoveq %r14, %rax
movq 0x48(%rsp), %r14
movl %r14d, %esi
andl $0x3ffffff, %esi        # imm = 0x3FFFFFF
shll $0x5, %esi
xorl %edi, %edi
movl 0x64(%rsp), %r11d
cmpl %edi, %esi
je 0x510502
cmpb %r12b, (%rax,%rdi)
jne 0x5104fd
movl %edi, %r8d
shrl $0x5, %r8d
movl %edi, %r9d
andl $0x1f, %r9d
imull %r14d, %r9d
addl %r8d, %r9d
cmpl %r11d, %r9d
cmovll %r9d, %r11d
incq %rdi
jmp 0x5104d7
movq 0x10(%rsp), %rsi
cmpl %r10d, %esi
cmovneq %rbp, %r15
cmpl %ecx, %esi
cmovneq %r15, %rbp
movsbl %r12b, %ecx
subl $-0x80, %ecx
movq %rdx, %r14
movq %rax, %r15
movl %ecx, (%rbx)
movl %r11d, 0x4(%rbx)
movl %esi, 0x8(%rbx)
movq %r13, %rdi
callq 0x1ab763
movq %r15, %rdi
callq 0x1ab763
movq %rbp, %rdi
callq 0x1ab763
movq %r14, %rdi
callq 0x1ab763
jmp 0x51066a
movq 0x22aa82(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xb6a8b(%rip), %rsi     # 0x5c6feb
leaq 0xa54c6(%rip), %rdx     # 0x5b5a2d
leaq 0x8cf6f(%rip), %rcx     # 0x59d4dd
jmp 0x510661
movq 0x22aa5e(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xb6a67(%rip), %rsi     # 0x5c6feb
leaq 0xa54a2(%rip), %rdx     # 0x5b5a2d
leaq 0xb751e(%rip), %rcx     # 0x5c7ab0
jmp 0x510661
movq 0x22aa3a(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xb6a43(%rip), %rsi     # 0x5c6feb
leaq 0xa547e(%rip), %rdx     # 0x5b5a2d
leaq 0xb7383(%rip), %rcx     # 0x5c7939
jmp 0x510661
movq 0x22aa16(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xb7135(%rip), %rsi     # 0x5c7701
leaq 0xa545a(%rip), %rdx     # 0x5b5a2d
leaq 0xb736f(%rip), %rcx     # 0x5c7949
jmp 0x510661
movq 0x22a9f2(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xb69fb(%rip), %rsi     # 0x5c6feb
leaq 0xa5436(%rip), %rdx     # 0x5b5a2d
leaq 0xb7100(%rip), %rcx     # 0x5c76fe
jmp 0x510661
movq 0x22a9d1(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xb70f0(%rip), %rsi     # 0x5c7701
leaq 0xa5415(%rip), %rdx     # 0x5b5a2d
leaq 0xb70f6(%rip), %rcx     # 0x5c7715
jmp 0x510661
movq 0x22a9b0(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xb70e9(%rip), %rsi     # 0x5c771b
leaq 0xa53f4(%rip), %rdx     # 0x5b5a2d
leaq 0xb70f0(%rip), %rcx     # 0x5c7730
jmp 0x510661
movq 0x22a98f(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xb70c8(%rip), %rsi     # 0x5c771b
leaq 0xa53d3(%rip), %rdx     # 0x5b5a2d
leaq 0xb70d4(%rip), %rcx     # 0x5c7735
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x19e180
movq %rbx, %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop