// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/nw_scan_avx2_256_16.c
// Function: parasail_nw_rowcol_scan_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 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;
    int16_t* restrict boundary = NULL;
    __m256i* restrict pvHt = NULL;
    __m256i* restrict pvH = NULL;
    __m256i* restrict pvGapper = NULL;
    __m256i vGapO;
    __m256i vGapE;
    int16_t NEG_LIMIT = 0;
    int16_t POS_LIMIT = 0;
    __m256i vZero;
    int16_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->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;
    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 = (__m256i*)profile->profile16.score;
    vGapO = _mm256_set1_epi16(open);
    vGapE = _mm256_set1_epi16(gap);
    NEG_LIMIT = (-open < matrix->min ? INT16_MIN + open : INT16_MIN - matrix->min) + 1;
    POS_LIMIT = INT16_MAX - matrix->max - 1;
    vZero = _mm256_setzero_si256();
    score = NEG_LIMIT;
    vNegLimit = _mm256_set1_epi16(NEG_LIMIT);
    vPosLimit = _mm256_set1_epi16(POS_LIMIT);
    vSaturationCheckMin = vPosLimit;
    vSaturationCheckMax = vNegLimit;
    vNegInfFront = vZero;
    vNegInfFront = _mm256_insert_epi16_rpl(vNegInfFront, NEG_LIMIT, 0);
    vSegLenXgap = _mm256_adds_epi16(vNegInfFront,
            _mm256_slli_si256_rpl(_mm256_set1_epi16(-segLen*gap), 2));

    /* 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_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 */
    pvE = parasail_memalign___m256i(32, segLen);
    boundary = parasail_memalign_int16_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_16_t h;
            __m256i_16_t e;
            for (segNum=0; segNum<segWidth; ++segNum) {
                int64_t tmp = -open-gap*(segNum*segLen+i);
                h.v[segNum] = tmp < INT16_MIN ? INT16_MIN : tmp;
                tmp = tmp - open;
                e.v[segNum] = tmp < INT16_MIN ? INT16_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 < INT16_MIN ? INT16_MIN : tmp;
        }
    }

    {
        __m256i vGapper = _mm256_subs_epi16(vZero,vGapO);
        for (i=segLen-1; i>=0; --i) {
            _mm256_store_si256(pvGapper+i, vGapper);
            vGapper = _mm256_subs_epi16(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, 2);
        vHp = _mm256_insert_epi16_rpl(vHp, boundary[j], 0);
        pvW = pvP + matrix->mapper[(unsigned char)s2[j]]*segLen;
        vHt = _mm256_subs_epi16(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_epi16(
                    _mm256_subs_epi16(vE, vGapE),
                    _mm256_subs_epi16(vH, vGapO));
            vHp = _mm256_adds_epi16(vHp, vW);
            vF = _mm256_max_epi16(vF, _mm256_adds_epi16(vHt, pvGapper[i]));
            vHt = _mm256_max_epi16(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, 2);
        vHt = _mm256_insert_epi16_rpl(vHt, boundary[j+1], 0);
        vF = _mm256_max_epi16(vF, _mm256_adds_epi16(vHt, pvGapper[0]));
        for (i=0; i<segWidth-2; ++i) {
            __m256i vFt = _mm256_slli_si256_rpl(vF, 2);
            vFt = _mm256_adds_epi16(vFt, vSegLenXgap);
            vF = _mm256_max_epi16(vF, vFt);
        }

        /* calculate final H */
        vF = _mm256_slli_si256_rpl(vF, 2);
        vF = _mm256_adds_epi16(vF, vNegInfFront);
        vH = _mm256_max_epi16(vHt, vF);
        for (i=0; i<segLen; ++i) {
            vHt = _mm256_load_si256(pvHt+i);
            vF = _mm256_max_epi16(
                    _mm256_subs_epi16(vF, vGapE),
                    _mm256_subs_epi16(vH, vGapO));
            vH = _mm256_max_epi16(vHt, vF);
            _mm256_store_si256(pvH+i, vH);
            vSaturationCheckMin = _mm256_min_epi16(vSaturationCheckMin, vH);
            vSaturationCheckMax = _mm256_max_epi16(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, 2);
            }
            result->rowcols->score_row[j] = (int16_t) _mm256_extract_epi16_rpl (vH, 15);
        }
#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, 2);
        }
        score = (int16_t) _mm256_extract_epi16_rpl (vH, 15);
    }

    if (_mm256_movemask_epi8(_mm256_or_si256(
            _mm256_cmplt_epi16_rpl(vSaturationCheckMin, vNegLimit),
            _mm256_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(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 $0xe0, %rsp
movq %rsi, 0x48(%rsp)
testq %rdi, %rdi
je 0x4f44f4
movq 0x30(%rdi), %rax
movq %rax, 0x68(%rsp)
testq %rax, %rax
je 0x4f4518
movq 0x10(%rdi), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x4f453c
movl 0x8(%rdi), %edi
testl %edi, %edi
jle 0x4f4560
cmpq $0x0, 0x48(%rsp)
je 0x4f4584
movl %edx, %r14d
testl %edx, %edx
jle 0x4f45a5
movl %ecx, %r13d
testl %ecx, %ecx
js 0x4f45c6
testl %r8d, %r8d
js 0x4f45e7
movl %r8d, 0x30(%rsp)
leal -0x1(%rdi), %eax
addq $0xf, %rdi
movq %rdi, %rbx
shrq $0x4, %rbx
movl %eax, 0x74(%rsp)
xorl %edx, %edx
divl %ebx
movl %eax, 0x10(%rsp)
movl %edx, %r15d
movl %r13d, %edx
negl %edx
movq 0x40(%rsp), %rcx
movl 0x20(%rcx), %eax
movl %eax, %esi
negl %esi
movl %edx, 0x28(%rsp)
cmpl %edx, %eax
cmovgl %r13d, %esi
movl %esi, 0x18(%rsp)
movw $0x7ffe, %ax            # imm = 0x7FFE
subw 0x1c(%rcx), %ax
movl %eax, (%rsp)
andl $0x7ffffff0, %edi       # imm = 0x7FFFFFF0
movl %r14d, %esi
callq 0x1ab93b
testq %rax, %rax
je 0x4f3f7c
movq %rax, %r12
movl %r13d, 0x58(%rsp)
movl %r15d, 0x60(%rsp)
orl $0x10240401, 0xc(%rax)  # imm = 0x10240401
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 0x1ab77b
movq %r14, 0x20(%rsp)
movq %rbx, %r14
movq %rax, 0x38(%rsp)
movq %r13, %rdi
movq %r13, %rbx
movq %r14, %rsi
callq 0x496aa4
movq %rax, %r13
movq %rbx, %rdi
movq %r14, %rsi
callq 0x496aa4
movq %rax, %rbx
pushq $0x20
popq %rdi
movq %r14, 0x8(%rsp)
movq %r14, %rsi
callq 0x496aa4
testq %r15, %r15
sete %cl
cmpq $0x0, 0x38(%rsp)
sete %dl
orb %cl, %dl
testq %r13, %r13
sete %cl
testq %rbx, %rbx
sete %sil
orb %cl, %sil
orb %dl, %sil
testq %rax, %rax
sete %cl
orb %sil, %cl
je 0x4f3f84
xorl %r14d, %r14d
jmp 0x4f4610
movq 0x20(%rsp), %rcx
decl %ecx
movl %ecx, 0x70(%rsp)
pushq $0xf
popq %rdx
subl 0x10(%rsp), %edx
movl 0x58(%rsp), %edi
vmovd %edi, %xmm0
vpbroadcastw %xmm0, %ymm2
movl 0x30(%rsp), %esi
vmovd %esi, %xmm0
vpbroadcastw %xmm0, %ymm3
movl 0x18(%rsp), %ecx
addl $0xffff8001, %ecx       # imm = 0xFFFF8001
vmovd %ecx, %xmm0
vpbroadcastw %xmm0, %ymm0
vmovd (%rsp), %xmm1
vpbroadcastw %xmm1, %ymm1
movzwl %cx, %ecx
vmovd %ecx, %xmm4
movq 0x8(%rsp), %r14
movl %r14d, %ecx
imull %esi, %ecx
negl %ecx
vmovd %ecx, %xmm5
vpbroadcastw %xmm5, %ymm5
vpand 0xd792e(%rip), %ymm5, %ymm5 # 0x5cb920
vpaddsw %ymm5, %ymm4, %ymm5
movl %edi, %ecx
movl %esi, %esi
movslq 0x28(%rsp), %rdi
negq %rcx
movq %r14, %r8
movq %rsi, 0x10(%rsp)
imulq %rsi, %r8
xorl %r9d, %r9d
movq $-0x7fff, %r10          # imm = 0x8001
movq $-0x8000, %r11          # imm = 0x8000
movq %r12, 0x18(%rsp)
movq %r14, %rsi
movq %rdi, %r14
cmpq %rsi, %r9
je 0x4f40a9
movq %r14, (%rsp)
xorl %esi, %esi
cmpq $0x10, %rsi
je 0x4f406d
cmpq %r10, %r14
movq $-0x8000, %r12          # imm = 0x8000
cmovgeq %r14, %r12
leaq (%rcx,%r14), %rdi
cmpq %r10, %rdi
cmovlq %r11, %rdi
movw %r12w, 0xa0(%rsp,%rsi,2)
movw %di, 0x80(%rsp,%rsi,2)
incq %rsi
subq %r8, %r14
jmp 0x4f4035
movq %r9, %rsi
shlq $0x5, %rsi
vmovaps 0xa0(%rsp), %ymm6
vmovaps %ymm6, (%rbx,%rsi)
vmovdqa 0x80(%rsp), %ymm6
vmovdqa %ymm6, (%r15,%rsi)
incq %r9
movq (%rsp), %r14
subq 0x10(%rsp), %r14
movq 0x18(%rsp), %r12
movq 0x8(%rsp), %rsi
jmp 0x4f402a
movq 0x38(%rsp), %r14
andw $0x0, (%r14)
pushq $0x1
popq %rcx
movl 0x30(%rsp), %edi
movl 0x28(%rsp), %r8d
movq 0x50(%rsp), %r9
cmpq %rcx, %r9
je 0x4f40e6
cmpl $0xffff8001, %r8d       # imm = 0xFFFF8001
movl $0xffff8000, %esi       # imm = 0xFFFF8000
cmovgel %r8d, %esi
movw %si, (%r14,%rcx,2)
incq %rcx
subl %edi, %r8d
jmp 0x4f40c4
vpxor %xmm6, %xmm6, %xmm6
vpsubsw %ymm2, %ymm6, %ymm6
movq 0x8(%rsp), %rcx
decl %ecx
movl %ecx, %esi
testl %esi, %esi
js 0x4f410e
movl %esi, %edi
shlq $0x5, %rdi
vmovdqa %ymm6, (%rax,%rdi)
vpsubsw %ymm3, %ymm6, %ymm6
decl %esi
jmp 0x4f40f7
movl %ecx, %r8d
shlq $0x5, %r8
addq %rbx, %r8
movl 0x60(%rsp), %ecx
shlq $0x5, %rcx
addq %rbx, %rcx
movq %rcx, (%rsp)
movl 0x20(%rsp), %r9d
movq 0x8(%rsp), %rdi
shlq $0x5, %rdi
xorl %r10d, %r10d
pushq $0xe
popq %r11
vmovdqa %ymm1, %ymm6
vmovdqa %ymm0, %ymm7
cmpq %r9, %r10
je 0x4f42a8
vmovdqa (%r8), %ymm8
vinserti128 $0x1, %xmm8, %ymm0, %ymm9
vpalignr $0xe, %ymm9, %ymm8, %ymm8 # ymm8 = ymm9[14,15],ymm8[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm9[30,31],ymm8[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vpinsrw $0x0, (%r14,%r10,2), %xmm8, %xmm9
vpblendd $0xf, %ymm9, %ymm8, %ymm10 # ymm10 = ymm9[0,1,2,3],ymm8[4,5,6,7]
movq 0x40(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x48(%rsp), %rsi
movzbl (%rsi,%r10), %esi
movl (%rcx,%rsi,4), %ecx
imull 0x8(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
addq 0x68(%rsp), %rcx
vpsubsw (%rax), %ymm0, %ymm9
xorl %esi, %esi
vmovdqa %ymm0, %ymm8
cmpq %rsi, %rdi
je 0x4f41e5
vpaddsw (%rcx,%rsi), %ymm10, %ymm10
vmovdqa (%rbx,%rsi), %ymm11
vmovdqa (%r15,%rsi), %ymm12
vpsubsw %ymm3, %ymm12, %ymm12
vpsubsw %ymm2, %ymm11, %ymm13
vpaddsw (%rax,%rsi), %ymm9, %ymm9
vpmaxsw %ymm13, %ymm12, %ymm12
vpmaxsw %ymm9, %ymm8, %ymm8
vmovdqa %ymm12, (%r15,%rsi)
vpmaxsw %ymm10, %ymm12, %ymm9
vmovdqa %ymm9, (%r13,%rsi)
addq $0x20, %rsi
vmovdqa %ymm11, %ymm10
jmp 0x4f419c
vinserti128 $0x1, %xmm9, %ymm0, %ymm10
vpalignr $0xe, %ymm10, %ymm9, %ymm9 # ymm9 = ymm10[14,15],ymm9[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm10[30,31],ymm9[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
leaq 0x1(%r10), %rcx
vpinsrw $0x0, 0x2(%r14,%r10,2), %xmm9, %xmm10
vpblendd $0xf, %ymm10, %ymm9, %ymm9 # ymm9 = ymm10[0,1,2,3],ymm9[4,5,6,7]
vpaddsw (%rax), %ymm9, %ymm10
vpmaxsw %ymm10, %ymm8, %ymm8
movl %r11d, %esi
vperm2i128 $0x8, %ymm8, %ymm8, %ymm10 # ymm10 = zero,zero,ymm8[0,1]
vpalignr $0xe, %ymm10, %ymm8, %ymm10 # ymm10 = ymm10[14,15],ymm8[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm10[30,31],ymm8[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
subl $0x1, %esi
jb 0x4f422b
vpaddsw %ymm5, %ymm10, %ymm10
vpmaxsw %ymm10, %ymm8, %ymm8
jmp 0x4f420f
vpaddsw %ymm4, %ymm10, %ymm8
vpmaxsw %ymm8, %ymm9, %ymm9
xorl %esi, %esi
cmpq %rsi, %rdi
je 0x4f4262
vpsubsw %ymm3, %ymm8, %ymm8
vpsubsw %ymm2, %ymm9, %ymm9
vpmaxsw %ymm9, %ymm8, %ymm8
vpmaxsw (%r13,%rsi), %ymm8, %ymm9
vmovdqa %ymm9, (%rbx,%rsi)
vpminsw %ymm6, %ymm9, %ymm6
vpmaxsw %ymm7, %ymm9, %ymm7
addq $0x20, %rsi
jmp 0x4f4236
movq (%rsp), %rsi
vmovdqa (%rsi), %ymm8
xorl %esi, %esi
cmpl %edx, %esi
jge 0x4f4280
vperm2i128 $0x28, %ymm8, %ymm8, %ymm9 # ymm9 = zero,zero,ymm8[0,1]
vpalignr $0xe, %ymm9, %ymm8, %ymm8 # ymm8 = ymm9[14,15],ymm8[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm9[30,31],ymm8[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
incl %esi
jmp 0x4f426c
vextracti128 $0x1, %ymm8, %xmm8
vpextrw $0x7, %xmm8, %esi
movswl %si, %esi
movq 0x10(%r12), %r14
movq (%r14), %r14
movl %esi, (%r14,%r10,4)
movq 0x38(%rsp), %r14
movq %rcx, %r10
jmp 0x4f4144
movq 0x8(%rsp), %r11
leal (,%r11,4), %r8d
movl %r11d, %ecx
leal (,%r11,8), %esi
movq %rsi, 0x48(%rsp)
imulq $0xc, %rcx, %rcx
movq %rcx, 0x40(%rsp)
imulq $0x3c, %r11, %rcx
movq %rcx, 0x68(%rsp)
imulq $0x38, %r11, %rcx
movq %rcx, 0x10(%rsp)
imulq $0x34, %r11, %rcx
movq %rcx, 0x30(%rsp)
imulq $0x30, %r11, %rcx
movq %rcx, 0x28(%rsp)
imulq $0x2c, %r11, %rcx
movq %rcx, 0x20(%rsp)
imulq $0x28, %r11, %rcx
movq %rcx, 0x60(%rsp)
imulq $0x24, %r11, %rcx
movq %rcx, 0x58(%rsp)
imulq $0x1c, %r11, %rcx
movq %rcx, 0x50(%rsp)
imulq $0x18, %r11, %rcx
movq %rcx, 0x78(%rsp)
imulq $0x14, %r11, %rcx
shlq $0x4, %r11
xorl %esi, %esi
cmpq %rsi, %r8
je 0x4f445d
movq 0x18(%rsp), %r9
movq 0x10(%r9), %r14
movq 0x8(%r14), %r14
vmovdqa (%rbx,%rsi,8), %xmm3
vmovdqa 0x10(%rbx,%rsi,8), %xmm2
vmovd %xmm3, %r9d
movswl %r9w, %r9d
movl %r9d, (%r14,%rsi)
addq %rsi, %r14
vpextrw $0x1, %xmm3, %r9d
movswl %r9w, %r9d
movl %r9d, (%r8,%r14)
vpextrw $0x2, %xmm3, %r9d
movswl %r9w, %r9d
movq 0x48(%rsp), %r10
movl %r9d, (%r10,%r14)
vpextrw $0x3, %xmm3, %r9d
movswl %r9w, %r9d
movq 0x40(%rsp), %r10
movl %r9d, (%r10,%r14)
vpextrw $0x4, %xmm3, %r9d
movswl %r9w, %r9d
movl %r9d, (%r11,%r14)
vpextrw $0x5, %xmm3, %r9d
movswl %r9w, %r9d
movl %r9d, (%rcx,%r14)
vpextrw $0x6, %xmm3, %r9d
movswl %r9w, %r9d
movq 0x78(%rsp), %r10
movl %r9d, (%r10,%r14)
vpextrw $0x7, %xmm3, %r9d
movswl %r9w, %r9d
movq 0x50(%rsp), %r10
movl %r9d, (%r10,%r14)
vmovd %xmm2, %r9d
movswl %r9w, %r9d
vpextrw $0x1, %xmm2, %r10d
movl %r9d, (%rdi,%r14)
movswl %r10w, %r9d
vpextrw $0x2, %xmm2, %r10d
movq 0x58(%rsp), %r12
movl %r9d, (%r12,%r14)
movswl %r10w, %r9d
vpextrw $0x3, %xmm2, %r10d
movq 0x60(%rsp), %r12
movl %r9d, (%r12,%r14)
movswl %r10w, %r9d
vpextrw $0x4, %xmm2, %r10d
movq 0x20(%rsp), %r12
movl %r9d, (%r12,%r14)
movswl %r10w, %r9d
vpextrw $0x5, %xmm2, %r10d
movq 0x28(%rsp), %r12
movl %r9d, (%r12,%r14)
movswl %r10w, %r9d
vpextrw $0x6, %xmm2, %r10d
movq 0x30(%rsp), %r12
movl %r9d, (%r12,%r14)
movswl %r10w, %r9d
vpextrw $0x7, %xmm2, %r10d
movq 0x10(%rsp), %r12
movl %r9d, (%r12,%r14)
movswl %r10w, %r9d
movq 0x68(%rsp), %r10
movl %r9d, (%r10,%r14)
addq $0x4, %rsi
jmp 0x4f4329
movq (%rsp), %rcx
vmovdqa (%rcx), %ymm2
xorl %ecx, %ecx
movq 0x18(%rsp), %r14
movl 0x70(%rsp), %esi
cmpl %edx, %ecx
jge 0x4f4484
vperm2i128 $0x28, %ymm2, %ymm2, %ymm3 # ymm3 = zero,zero,ymm2[0,1]
vpalignr $0xe, %ymm3, %ymm2, %ymm2 # ymm2 = ymm3[14,15],ymm2[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm3[30,31],ymm2[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
incl %ecx
jmp 0x4f4470
vpcmpgtw %ymm6, %ymm0, %ymm0
vpcmpgtw %ymm1, %ymm7, %ymm1
vpor %ymm0, %ymm1, %ymm0
vpmovmskb %ymm0, %ecx
testl %ecx, %ecx
je 0x4f44a5
orb $0x40, 0xc(%r14)
xorl %ecx, %ecx
xorl %esi, %esi
xorl %edx, %edx
jmp 0x4f44b4
vextracti128 $0x1, %ymm2, %xmm0
vpextrw $0x7, %xmm0, %ecx
movl 0x74(%rsp), %edx
movswl %cx, %ecx
movl %ecx, (%r14)
movl %edx, 0x4(%r14)
movl %esi, 0x8(%r14)
movq %rax, %rdi
vzeroupper
callq 0x1ab763
movq %rbx, %rdi
callq 0x1ab763
movq %r13, %rdi
callq 0x1ab763
movq 0x38(%rsp), %rdi
callq 0x1ab763
movq %r15, %rdi
callq 0x1ab763
jmp 0x4f4610
movq 0x246add(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xd2ae6(%rip), %rsi     # 0x5c6feb
leaq 0xc0678(%rip), %rdx     # 0x5b4b84
leaq 0xa8fca(%rip), %rcx     # 0x59d4dd
jmp 0x4f4606
movq 0x246ab9(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xd2ac2(%rip), %rsi     # 0x5c6feb
leaq 0xc0654(%rip), %rdx     # 0x5b4b84
leaq 0xd34e7(%rip), %rcx     # 0x5c7a1e
jmp 0x4f4606
movq 0x246a95(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xd2a9e(%rip), %rsi     # 0x5c6feb
leaq 0xc0630(%rip), %rdx     # 0x5b4b84
leaq 0xd33de(%rip), %rcx     # 0x5c7939
jmp 0x4f4606
movq 0x246a71(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xd3190(%rip), %rsi     # 0x5c7701
leaq 0xc060c(%rip), %rdx     # 0x5b4b84
leaq 0xd33ca(%rip), %rcx     # 0x5c7949
jmp 0x4f4606
movq 0x246a4d(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xd2a56(%rip), %rsi     # 0x5c6feb
leaq 0xc05e8(%rip), %rdx     # 0x5b4b84
leaq 0xd315b(%rip), %rcx     # 0x5c76fe
jmp 0x4f4606
movq 0x246a2c(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xd314b(%rip), %rsi     # 0x5c7701
leaq 0xc05c7(%rip), %rdx     # 0x5b4b84
leaq 0xd3151(%rip), %rcx     # 0x5c7715
jmp 0x4f4606
movq 0x246a0b(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xd3144(%rip), %rsi     # 0x5c771b
leaq 0xc05a6(%rip), %rdx     # 0x5b4b84
leaq 0xd314b(%rip), %rcx     # 0x5c7730
jmp 0x4f4606
movq 0x2469ea(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xd3123(%rip), %rsi     # 0x5c771b
leaq 0xc0585(%rip), %rdx     # 0x5b4b84
leaq 0xd312f(%rip), %rcx     # 0x5c7735
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x19e180
movq %r14, %rax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop