// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/sw_striped_avx2_256_16.c
// Function: parasail_sw_rowcol_striped_profile_avx2_256_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 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;
    int16_t bias = 0;
    int16_t score = 0;
    __m256i vBias;
    __m256i vMaxH;
    __m256i vMaxHUnit;
    int16_t maxp = 0;
    __m256i insert_mask;
    /*int16_t stop = 0;*/
    parasail_result_t *result = NULL;

    /* 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;
    end_query = 0;
    end_ref = 0;
    s1Len = profile->s1Len;
    matrix = profile->matrix;
    segWidth = 16; /* 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->profile16.score;
    vGapO = _mm256_set1_epi16(open);
    vGapE = _mm256_set1_epi16(gap);
    vZero = _mm256_set1_epi16(0);
    bias = INT16_MIN;
    score = bias;
    vBias = _mm256_set1_epi16(bias);
    vMaxH = vBias;
    vMaxHUnit = vBias;
    maxp = INT16_MAX - (int16_t)(matrix->max+1);
    insert_mask = _mm256_cmpgt_epi16(
            _mm256_set_epi16(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1),
            vZero);
    /*stop = profile->stop == INT32_MAX ?  INT16_MAX : (int16_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_16 | 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 */
    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 2 bytes */
        vH = _mm256_slli_si256_rpl(pvHStore[segLen - 1], 2);
        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_epi16(vH, _mm256_load_si256(vP + i));
            vE = _mm256_load_si256(pvE + i);

            /* Get max from vH, vE and vF. */
            vH = _mm256_max_epi16(vH, vE);
            vH = _mm256_max_epi16(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_epi16(vH, vMaxH);

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

            /* Update vF value. */
            vF = _mm256_subs_epi16(vF, vGapE);
            vF = _mm256_max_epi16(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, 2);
            vF = _mm256_blendv_epi8(vF, vBias, insert_mask);
            for (i=0; i<segLen; ++i) {
                vH = _mm256_load_si256(pvHStore + i);
                vH = _mm256_max_epi16(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_epi16(vH, vMaxH);
                vH = _mm256_subs_epi16(vH, vGapO);
                vF = _mm256_subs_epi16(vF, vGapE);
                if (! _mm256_movemask_epi8(_mm256_cmpgt_epi16(vF, vH))) goto end;
                /*vF = _mm256_max_epi16(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, 2);
            }
            result->rowcols->score_row[j] = (int16_t) _mm256_extract_epi16_rpl (vH, 15) - bias;
        }
#endif

        {
            __m256i vCompare = _mm256_cmpgt_epi16(vMaxH, vMaxHUnit);
            if (_mm256_movemask_epi8(vCompare)) {
                score = _mm256_hmax_epi16_rpl(vMaxH);
                /* if score has potential to overflow, abort early */
                if (score > maxp) {
                    result->flag |= PARASAIL_FLAG_SATURATED;
                    break;
                }
                vMaxHUnit = _mm256_set1_epi16(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 == INT16_MAX) {
        result->flag |= PARASAIL_FLAG_SATURATED;
    }

    if (parasail_result_is_saturated(result)) {
        score = INT16_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. */
        {
            int16_t *t = (int16_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 $0xd8, %rsp
movq %rsi, 0x20(%rsp)
testq %rdi, %rdi
je 0x50de83
movq 0x30(%rdi), %rax
movq %rax, 0x48(%rsp)
testq %rax, %rax
je 0x50dea7
movq 0x10(%rdi), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x50decb
movl 0x8(%rdi), %eax
testl %eax, %eax
jle 0x50deef
cmpq $0x0, 0x20(%rsp)
je 0x50df13
movl %edx, %r12d
testl %edx, %edx
jle 0x50df34
movl %ecx, %r14d
testl %ecx, %ecx
js 0x50df55
movl %r8d, %ebx
testl %r8d, %r8d
js 0x50df76
movq %rax, %rdi
addq $0xf, %rdi
movq %rdi, %rbp
shrq $0x4, %rbp
decl %eax
movl %eax, 0x5c(%rsp)
xorl %edx, %edx
divl %ebp
movl %eax, 0xb0(%rsp)
movl %edx, %r13d
movq 0x18(%rsp), %rax
movl 0x1c(%rax), %r15d
andl $0x7ffffff0, %edi       # imm = 0x7FFFFFF0
movl %r12d, %esi
callq 0x1ab93b
testq %rax, %rax
je 0x50d8dc
movl %r13d, 0x38(%rsp)
movl %r15d, 0x40(%rsp)
movl %r14d, 0x70(%rsp)
movl %ebx, 0x90(%rsp)
movq %rax, 0x50(%rsp)
orl $0x10240804, 0xc(%rax)  # imm = 0x10240804
pushq $0x20
popq %r13
movq %r13, %rdi
movq %rbp, %rsi
callq 0x496aa4
movq %rax, %r14
movq %r13, %rdi
movq %rbp, %rsi
callq 0x496aa4
movq %rax, %rbx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x496aa4
movq %rax, %r15
movq %r13, %rdi
movq %rbp, %rsi
callq 0x496aa4
movq %rax, %r13
testq %r14, %r14
sete %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
movq %r15, 0x28(%rsp)
testq %r15, %r15
sete %al
testq %r13, %r13
sete %dl
orb %al, %dl
orb %cl, %dl
je 0x50d8e3
xorl %ebx, %ebx
jmp 0x50df9e
movq $0x0, 0x8(%rsp)
movq %r12, %r15
pushq $0xf
popq %r12
subl 0xb0(%rsp), %r12d
vmovd 0x70(%rsp), %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqu %ymm0, 0xb0(%rsp)
vmovd 0x90(%rsp), %xmm0
vpbroadcastw %xmm0, %ymm0
vmovdqu %ymm0, 0x90(%rsp)
vbroadcastsd 0xbe671(%rip), %ymm0 # 0x5cbfa0
vmovups %ymm0, 0x70(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
callq 0x496aad
movq %r13, %rdi
vmovups 0x70(%rsp), %ymm0
movq %rbp, %rsi
callq 0x496aad
vmovdqu 0x70(%rsp), %ymm9
leal -0x1(%rbp), %ecx
movl 0x38(%rsp), %edx
movl $0x7ffe, %eax           # imm = 0x7FFE
subl 0x40(%rsp), %eax
movswl %ax, %esi
movq %r15, 0x60(%rsp)
movl %r15d, %edi
movq %rbp, %rax
movq %rbp, 0x30(%rsp)
shlq $0x5, %rax
vpbroadcastw 0xbf89d(%rip), %ymm2 # 0x5cd224
movw $0x8000, %r8w           # imm = 0x8000
movl %r8d, 0x14(%rsp)
shlq $0x5, %rcx
shlq $0x5, %rdx
vpbroadcastw 0xbf882(%rip), %xmm0 # 0x5cd224
xorl %r8d, %r8d
vmovdqa %ymm9, %ymm1
movq 0x50(%rsp), %r15
vmovdqu 0xb0(%rsp), %ymm7
vmovdqu 0x90(%rsp), %ymm8
movq %r14, %rbp
cmpq %rdi, %r8
je 0x50db98
vmovdqa (%rbp,%rcx), %ymm3
vinserti128 $0x1, %xmm3, %ymm0, %ymm4
vpalignr $0xe, %ymm4, %ymm3, %ymm3 # ymm3 = ymm4[14,15],ymm3[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm4[30,31],ymm3[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vpblendw $0x1, %xmm9, %xmm3, %xmm4 # xmm4 = xmm9[0],xmm3[1,2,3,4,5,6,7]
vpblendd $0xf0, %ymm3, %ymm4, %ymm4 # ymm4 = ymm4[0,1,2,3],ymm3[4,5,6,7]
movq 0x18(%rsp), %r9
movq 0x10(%r9), %r9
movq 0x20(%rsp), %r10
movzbl (%r10,%r8), %r10d
movl (%r9,%r10,4), %r9d
imull 0x30(%rsp), %r9d
movslq %r9d, %r9
shlq $0x5, %r9
addq 0x48(%rsp), %r9
leal -0x2(%r8), %r10d
cmpl %r10d, 0x8(%rsp)
movq %rbx, %r14
cmoveq 0x28(%rsp), %r14
xorl %r11d, %r11d
vmovdqa %ymm9, %ymm3
cmpq %r11, %rax
je 0x50da7a
vpaddsw (%r9,%r11), %ymm4, %ymm4
vmovdqa (%r13,%r11), %ymm5
vpmaxsw %ymm3, %ymm5, %ymm6
vpmaxsw %ymm6, %ymm4, %ymm4
vmovdqa %ymm4, (%r14,%r11)
vpmaxsw %ymm1, %ymm4, %ymm1
vpsubsw %ymm7, %ymm4, %ymm4
vpsubsw %ymm8, %ymm5, %ymm5
vpmaxsw %ymm4, %ymm5, %ymm5
vmovdqa %ymm5, (%r13,%r11)
vpsubsw %ymm8, %ymm3, %ymm3
vpmaxsw %ymm4, %ymm3, %ymm3
vmovdqa (%rbp,%r11), %ymm4
addq $0x20, %r11
jmp 0x50da2c
cmpl %r10d, 0x8(%rsp)
movq 0x28(%rsp), %r9
cmoveq %rbx, %r9
movq %r9, 0x28(%rsp)
xorl %r9d, %r9d
cmpl $0x10, %r9d
je 0x50dae7
vinserti128 $0x1, %xmm3, %ymm0, %ymm4
vpalignr $0xe, %ymm4, %ymm3, %ymm3 # ymm3 = ymm4[14,15],ymm3[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm4[30,31],ymm3[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vpblendw $0x1, %xmm0, %xmm3, %xmm4 # xmm4 = xmm0[0],xmm3[1,2,3,4,5,6,7]
vpblendd $0xf0, %ymm3, %ymm4, %ymm3 # ymm3 = ymm4[0,1,2,3],ymm3[4,5,6,7]
xorl %r10d, %r10d
cmpq %r10, %rax
je 0x50dae2
vpmaxsw (%r14,%r10), %ymm3, %ymm4
vmovdqa %ymm4, (%r14,%r10)
vpmaxsw %ymm1, %ymm4, %ymm1
vpsubsw %ymm7, %ymm4, %ymm4
vpsubsw %ymm8, %ymm3, %ymm3
vpcmpgtw %ymm4, %ymm3, %ymm4
vpmovmskb %ymm4, %r11d
testl %r11d, %r11d
je 0x50dae7
addq $0x20, %r10
jmp 0x50dab1
incl %r9d
jmp 0x50da90
vmovdqa (%r14,%rdx), %ymm3
xorl %r9d, %r9d
cmpl %r12d, %r9d
jge 0x50db06
vperm2i128 $0x28, %ymm3, %ymm3, %ymm4 # ymm4 = zero,zero,ymm3[0,1]
vpalignr $0xe, %ymm4, %ymm3, %ymm3 # ymm3 = ymm4[14,15],ymm3[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm4[30,31],ymm3[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
incl %r9d
jmp 0x50daf0
vextracti128 $0x1, %ymm3, %xmm3
vpextrw $0x7, %xmm3, %r9d
movswl %r9w, %r9d
addl $0x8000, %r9d           # imm = 0x8000
movq 0x10(%r15), %r10
movq (%r10), %r10
movl %r9d, (%r10,%r8,4)
vpcmpgtw %ymm2, %ymm1, %ymm3
vpmovmskb %ymm3, %r9d
testl %r9d, %r9d
je 0x50db8d
vpermq $0x44, %ymm1, %ymm2     # ymm2 = ymm1[0,1,0,1]
vpmaxsw %ymm2, %ymm1, %ymm2
vpslldq $0x8, %ymm2, %ymm3      # ymm3 = zero,zero,zero,zero,zero,zero,zero,zero,ymm2[0,1,2,3,4,5,6,7],zero,zero,zero,zero,zero,zero,zero,zero,ymm2[16,17,18,19,20,21,22,23]
vpmaxsw %ymm3, %ymm2, %ymm2
vpslldq $0x4, %ymm2, %ymm3      # ymm3 = zero,zero,zero,zero,ymm2[0,1,2,3,4,5,6,7,8,9,10,11],zero,zero,zero,zero,ymm2[16,17,18,19,20,21,22,23,24,25,26,27]
vpmaxsw %ymm3, %ymm2, %ymm2
vpslldq $0x2, %ymm2, %ymm3      # ymm3 = zero,zero,ymm2[0,1,2,3,4,5,6,7,8,9,10,11,12,13],zero,zero,ymm2[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vpmaxsw %ymm3, %ymm2, %ymm2
vextracti128 $0x1, %ymm2, %xmm3
vpextrw $0x7, %xmm3, %r9d
movl %r9d, 0x14(%rsp)
movswl %r9w, %r9d
cmpl %r9d, %esi
jl 0x50dba0
vpshufhw $0xff, %ymm2, %ymm2     # ymm2 = ymm2[0,1,2,3,7,7,7,7,8,9,10,11,15,15,15,15]
vpbroadcastd 0xbde30(%rip), %ymm3 # 0x5cb9b0
vpermd %ymm2, %ymm3, %ymm2
movl %r8d, %r9d
movq %r9, 0x8(%rsp)
incq %r8
movq %rbp, %rbx
jmp 0x50d9c0
movq %rbp, %r14
movq %rbx, %rbp
jmp 0x50dbaa
orb $0x40, 0xc(%r15)
movq %r8, 0x60(%rsp)
movq 0x30(%rsp), %rdi
leal (,%rdi,4), %ecx
leal (,%rdi,8), %edx
movq %rdx, 0x20(%rsp)
movl %edi, %edx
imulq $0xc, %rdx, %rdx
movq %rdx, 0x18(%rsp)
imulq $0x3c, %rdi, %rdx
movq %rdx, 0x48(%rsp)
imulq $0x38, %rdi, %rdx
movq %rdx, 0xb0(%rsp)
imulq $0x34, %rdi, %rdx
movq %rdx, 0x90(%rsp)
imulq $0x30, %rdi, %rdx
movq %rdx, 0x70(%rsp)
imulq $0x2c, %rdi, %rdx
movq %rdx, 0x40(%rsp)
imulq $0x28, %rdi, %rdx
movq %rdx, 0x38(%rsp)
imulq $0x24, %rdi, %rdx
movq %rdx, 0x68(%rsp)
imulq $0x1c, %rdi, %r15
imulq $0x18, %rdi, %rdx
imulq $0x14, %rdi, %rsi
shlq $0x4, %rdi
xorl %r8d, %r8d
movl $0x8000, %r9d           # imm = 0x8000
cmpq %r8, %rcx
je 0x50dd8d
movq 0x50(%rsp), %r10
movq 0x10(%r10), %r10
movq 0x8(%r10), %r10
vmovdqa (%r14,%r8,8), %xmm1
vmovdqa 0x10(%r14,%r8,8), %xmm0
vmovd %xmm1, %r11d
movswl %r11w, %r11d
addl %r9d, %r11d
movl %r11d, (%r10,%r8)
addq %r8, %r10
vpextrw $0x1, %xmm1, %r11d
movswl %r11w, %r11d
addl %r9d, %r11d
movl %r11d, (%rcx,%r10)
vpextrw $0x2, %xmm1, %r11d
movswl %r11w, %r11d
addl %r9d, %r11d
vpextrw $0x3, %xmm1, %ebx
movq 0x20(%rsp), %r12
movl %r11d, (%r12,%r10)
movswl %bx, %r11d
addl %r9d, %r11d
movq 0x18(%rsp), %rbx
movl %r11d, (%rbx,%r10)
vpextrw $0x4, %xmm1, %r11d
movswl %r11w, %r11d
addl %r9d, %r11d
movl %r11d, (%rdi,%r10)
vpextrw $0x5, %xmm1, %r11d
movswl %r11w, %r11d
addl %r9d, %r11d
movl %r11d, (%rsi,%r10)
vpextrw $0x6, %xmm1, %r11d
movswl %r11w, %r11d
addl %r9d, %r11d
vpextrw $0x7, %xmm1, %ebx
movl %r11d, (%rdx,%r10)
movswl %bx, %r11d
addl %r9d, %r11d
movl %r11d, (%r15,%r10)
vmovd %xmm0, %r11d
movswl %r11w, %r11d
addl %r9d, %r11d
movl %r11d, (%rax,%r10)
vpextrw $0x1, %xmm0, %r11d
movswl %r11w, %r11d
addl %r9d, %r11d
movq 0x68(%rsp), %rbx
movl %r11d, (%rbx,%r10)
vpextrw $0x2, %xmm0, %r11d
movswl %r11w, %r11d
addl %r9d, %r11d
movq 0x38(%rsp), %rbx
movl %r11d, (%rbx,%r10)
vpextrw $0x3, %xmm0, %r11d
movswl %r11w, %r11d
addl %r9d, %r11d
vpextrw $0x4, %xmm0, %ebx
movq 0x40(%rsp), %r12
movl %r11d, (%r12,%r10)
movswl %bx, %r11d
addl %r9d, %r11d
movq 0x70(%rsp), %rbx
movl %r11d, (%rbx,%r10)
vpextrw $0x5, %xmm0, %r11d
movswl %r11w, %r11d
addl %r9d, %r11d
movq 0x90(%rsp), %rbx
movl %r11d, (%rbx,%r10)
vpextrw $0x6, %xmm0, %r11d
movswl %r11w, %r11d
addl %r9d, %r11d
movq 0xb0(%rsp), %rbx
movl %r11d, (%rbx,%r10)
vpextrw $0x7, %xmm0, %r11d
movswl %r11w, %r11d
addl %r9d, %r11d
movq 0x48(%rsp), %rbx
movl %r11d, (%rbx,%r10)
addq $0x4, %r8
jmp 0x50dc2b
movl 0x14(%rsp), %r12d
cmpw $0x7fff, %r12w          # imm = 0x7FFF
movq 0x50(%rsp), %rbx
jne 0x50dda3
orb $0x40, 0xc(%rbx)
movq %rbx, %rdi
vzeroupper
callq 0x1ace42
testl %eax, %eax
movq 0x60(%rsp), %r10
movl 0x5c(%rsp), %r11d
movq 0x28(%rsp), %r15
je 0x50ddd0
xorl %esi, %esi
movl $0xffff, %ecx           # imm = 0xFFFF
xorl %r11d, %r11d
jmp 0x50de55
leal -0x1(%r10), %ecx
addl $-0x2, %r10d
movq 0x8(%rsp), %rdx
cmpl %r10d, %edx
movq %r15, %rax
cmoveq %rbp, %rax
cmpl %ecx, %edx
movq %r14, %rdx
cmoveq %r15, %rdx
cmoveq %r14, %rax
movq 0x30(%rsp), %r14
movl %r14d, %esi
andl $0x7ffffff, %esi        # imm = 0x7FFFFFF
shll $0x4, %esi
xorl %edi, %edi
cmpl %edi, %esi
je 0x50de33
cmpw %r12w, (%rax,%rdi,2)
jne 0x50de2e
movl %edi, %r8d
shrl $0x4, %r8d
movl %edi, %r9d
andl $0xf, %r9d
imull %r14d, %r9d
addl %r8d, %r9d
cmpl %r11d, %r9d
cmovll %r9d, %r11d
incq %rdi
jmp 0x50de07
movq 0x8(%rsp), %rsi
cmpl %r10d, %esi
cmovneq %rbp, %r15
cmpl %ecx, %esi
cmovneq %r15, %rbp
movswl %r12w, %ecx
addl $0x8000, %ecx           # imm = 0x8000
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 0x50df9e
movq 0x22d14e(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xb9157(%rip), %rsi     # 0x5c6feb
leaq 0xa7b63(%rip), %rdx     # 0x5b59fe
leaq 0x8f63b(%rip), %rcx     # 0x59d4dd
jmp 0x50df95
movq 0x22d12a(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xb9133(%rip), %rsi     # 0x5c6feb
leaq 0xa7b3f(%rip), %rdx     # 0x5b59fe
leaq 0xb9b58(%rip), %rcx     # 0x5c7a1e
jmp 0x50df95
movq 0x22d106(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xb910f(%rip), %rsi     # 0x5c6feb
leaq 0xa7b1b(%rip), %rdx     # 0x5b59fe
leaq 0xb9a4f(%rip), %rcx     # 0x5c7939
jmp 0x50df95
movq 0x22d0e2(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xb9801(%rip), %rsi     # 0x5c7701
leaq 0xa7af7(%rip), %rdx     # 0x5b59fe
leaq 0xb9a3b(%rip), %rcx     # 0x5c7949
jmp 0x50df95
movq 0x22d0be(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xb90c7(%rip), %rsi     # 0x5c6feb
leaq 0xa7ad3(%rip), %rdx     # 0x5b59fe
leaq 0xb97cc(%rip), %rcx     # 0x5c76fe
jmp 0x50df95
movq 0x22d09d(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xb97bc(%rip), %rsi     # 0x5c7701
leaq 0xa7ab2(%rip), %rdx     # 0x5b59fe
leaq 0xb97c2(%rip), %rcx     # 0x5c7715
jmp 0x50df95
movq 0x22d07c(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xb97b5(%rip), %rsi     # 0x5c771b
leaq 0xa7a91(%rip), %rdx     # 0x5b59fe
leaq 0xb97bc(%rip), %rcx     # 0x5c7730
jmp 0x50df95
movq 0x22d05b(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xb9794(%rip), %rsi     # 0x5c771b
leaq 0xa7a70(%rip), %rdx     # 0x5b59fe
leaq 0xb97a0(%rip), %rcx     # 0x5c7735
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x19e180
movq %rbx, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop