// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sw_scan_avx2_256_16.c
// Function: parasail_sw_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 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 pvP = NULL;
    __m256i* restrict pvE = NULL;
    __m256i* restrict pvHt = NULL;
    __m256i* restrict pvH = NULL;
    __m256i* restrict pvHMax = 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 vMaxH;
    __m256i vMaxHUnit;
    __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;
    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
    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;
    vMaxH = vNegLimit;
    vMaxHUnit = 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_SW | 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);
    pvHt= parasail_memalign___m256i(32, segLen);
    pvH = parasail_memalign___m256i(32, segLen);
    pvHMax = parasail_memalign___m256i(32, segLen);
    pvGapper = parasail_memalign___m256i(32, segLen);

    /* validate heap variables */
    if (!pvE) return NULL;
    if (!pvHt) return NULL;
    if (!pvH) return NULL;
    if (!pvHMax) return NULL;
    if (!pvGapper) return NULL;

    parasail_memset___m256i(pvH, vZero, segLen);
    parasail_memset___m256i(pvE, vNegLimit, segLen);
    {
        __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);
        pvW = pvP + matrix->mapper[(unsigned char)s2[j]]*segLen;
        vHt = vZero;
        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);
        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);
        vH = _mm256_max_epi16(vH, vZero);
        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);
            vH = _mm256_max_epi16(vH, vZero);
            _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
            vMaxH = _mm256_max_epi16(vH, vMaxH);
        } 

        {
            __m256i vCompare = _mm256_cmpgt_epi16(vMaxH, vMaxHUnit);
            if (_mm256_movemask_epi8(vCompare)) {
                score = _mm256_hmax_epi16_rpl(vMaxH);
                vMaxHUnit = _mm256_set1_epi16(score);
                end_ref = j;
                (void)memcpy(pvHMax, pvH, sizeof(__m256i)*segLen);
            }
        }

#ifdef PARASAIL_ROWCOL
        /* extract last value from the column */
        {
            int32_t k = 0;
            __m256i 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
    }

    /* Trace the alignment ending position on read. */
    {
        int16_t *t = (int16_t*)pvHMax;
        int32_t column_len = segLen * segWidth;
        end_query = s1Len;
        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;
                }
            }
        }
    }

#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

    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(pvHMax);
    parasail_free(pvH);
    parasail_free(pvHt);
    parasail_free(pvE);

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
andq $-0x20, %rsp
subq $0xf20, %rsp            # imm = 0xF20
movq %rdi, 0x420(%rsp)
movq %rsi, 0x418(%rsp)
movl %edx, 0x414(%rsp)
movl %ecx, 0x410(%rsp)
movl %r8d, 0x40c(%rsp)
movl $0x0, 0x408(%rsp)
movl $0x0, 0x404(%rsp)
movl $0x0, 0x400(%rsp)
movl $0x0, 0x3fc(%rsp)
movl $0x0, 0x3f8(%rsp)
movq $0x0, 0x3f0(%rsp)
movl $0x0, 0x3ec(%rsp)
movl $0x0, 0x3e8(%rsp)
movl $0x0, 0x3e4(%rsp)
movl $0x0, 0x3e0(%rsp)
movq $0x0, 0x3d8(%rsp)
movq $0x0, 0x3d0(%rsp)
movq $0x0, 0x3c8(%rsp)
movq $0x0, 0x3c0(%rsp)
movq $0x0, 0x3b8(%rsp)
movq $0x0, 0x3b0(%rsp)
movw $0x0, 0x35e(%rsp)
movw $0x0, 0x35c(%rsp)
movw $0x0, 0x31e(%rsp)
movq $0x0, 0x1f8(%rsp)
cmpq $0x0, 0x420(%rsp)
jne 0xad5848
movq 0x3517c0(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x2167c9(%rip), %rsi    # 0xcebfeb
leaq 0x2050f3(%rip), %rdx    # 0xcda91c
leaq 0x1eccad(%rip), %rcx    # 0xcc24dd
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x428(%rsp)
jmp 0xad78d6
jmp 0xad584a
jmp 0xad584c
movq 0x420(%rsp), %rax
cmpq $0x0, 0x30(%rax)
jne 0xad5892
movq 0x351776(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x21677f(%rip), %rsi    # 0xcebfeb
leaq 0x2050a9(%rip), %rdx    # 0xcda91c
leaq 0x217176(%rip), %rcx    # 0xcec9f0
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x428(%rsp)
jmp 0xad78d6
jmp 0xad5894
jmp 0xad5896
movq 0x420(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jne 0xad58dc
movq 0x35172c(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x216735(%rip), %rsi    # 0xcebfeb
leaq 0x20505f(%rip), %rdx    # 0xcda91c
leaq 0x217058(%rip), %rcx    # 0xcec91c
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x428(%rsp)
jmp 0xad78d6
jmp 0xad58de
jmp 0xad58e0
movq 0x420(%rsp), %rax
cmpl $0x0, 0x8(%rax)
jg 0xad5925
movq 0x3516e3(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x216e02(%rip), %rsi    # 0xcec701
leaq 0x205016(%rip), %rdx    # 0xcda91c
leaq 0x21701f(%rip), %rcx    # 0xcec92c
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x428(%rsp)
jmp 0xad78d6
jmp 0xad5927
jmp 0xad5929
cmpq $0x0, 0x418(%rsp)
jne 0xad596b
movq 0x35169d(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x2166a6(%rip), %rsi    # 0xcebfeb
leaq 0x204fd0(%rip), %rdx    # 0xcda91c
leaq 0x216dab(%rip), %rcx    # 0xcec6fe
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x428(%rsp)
jmp 0xad78d6
jmp 0xad596d
jmp 0xad596f
cmpl $0x0, 0x414(%rsp)
jg 0xad59b0
movq 0x351658(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x216d77(%rip), %rsi    # 0xcec701
leaq 0x204f8b(%rip), %rdx    # 0xcda91c
leaq 0x216d7d(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x428(%rsp)
jmp 0xad78d6
jmp 0xad59b2
jmp 0xad59b4
cmpl $0x0, 0x410(%rsp)
jge 0xad59f5
movq 0x351613(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x216d4c(%rip), %rsi    # 0xcec71b
leaq 0x204f46(%rip), %rdx    # 0xcda91c
leaq 0x216d53(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x428(%rsp)
jmp 0xad78d6
jmp 0xad59f7
jmp 0xad59f9
cmpl $0x0, 0x40c(%rsp)
jge 0xad5a3a
movq 0x3515ce(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x216d07(%rip), %rsi    # 0xcec71b
leaq 0x204f01(%rip), %rdx    # 0xcda91c
leaq 0x216d13(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x428(%rsp)
jmp 0xad78d6
jmp 0xad5a3c
movl $0x0, 0x408(%rsp)
movl $0x0, 0x404(%rsp)
movl $0x0, 0x400(%rsp)
movl $0x0, 0x3fc(%rsp)
movq 0x420(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, 0x3f8(%rsp)
movq 0x420(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x3f0(%rsp)
movl $0x10, 0x3ec(%rsp)
movl 0x3f8(%rsp), %esi
movl 0x3ec(%rsp), %ecx
movl %ecx, %edx
movl %esi, %eax
leal -0x1(%rax,%rdx), %eax
cltd
idivl %ecx
movl %eax, 0x3e8(%rsp)
movl 0x3f8(%rsp), %eax
decl %eax
movl 0x3e8(%rsp), %ecx
cltd
idivl %ecx
movl %edx, 0x3e4(%rsp)
movl 0x3ec(%rsp), %ecx
movl 0x3f8(%rsp), %eax
decl %eax
movl 0x3e8(%rsp), %esi
cltd
idivl %esi
notl %eax
addl %ecx, %eax
movl %eax, 0x3e0(%rsp)
movq 0x420(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x3d8(%rsp)
movw 0x410(%rsp), %ax
movw %ax, 0x43e(%rsp)
movw 0x43e(%rsp), %ax
movw %ax, 0x1c(%rsp)
movw %ax, 0xd3e(%rsp)
movw %ax, 0xd3c(%rsp)
movw %ax, 0xd3a(%rsp)
movw %ax, 0xd38(%rsp)
movw %ax, 0xd36(%rsp)
movw %ax, 0xd34(%rsp)
movw %ax, 0xd32(%rsp)
movw %ax, 0xd30(%rsp)
movw %ax, 0xd2e(%rsp)
movw %ax, 0xd2c(%rsp)
movw %ax, 0xd2a(%rsp)
movw %ax, 0xd28(%rsp)
movw %ax, 0xd26(%rsp)
movw %ax, 0xd24(%rsp)
movw %ax, 0xd22(%rsp)
movw %ax, 0xd20(%rsp)
movzwl 0xd20(%rsp), %eax
vmovd %eax, %xmm0
movzwl 0xd22(%rsp), %eax
vpinsrw $0x1, %eax, %xmm0, %xmm0
movzwl 0xd24(%rsp), %eax
vpinsrw $0x2, %eax, %xmm0, %xmm0
movzwl 0xd26(%rsp), %eax
vpinsrw $0x3, %eax, %xmm0, %xmm0
movzwl 0xd28(%rsp), %eax
vpinsrw $0x4, %eax, %xmm0, %xmm0
movzwl 0xd2a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm0, %xmm0
movzwl 0xd2c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm0, %xmm0
movzwl 0xd2e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm0, %xmm0
movzwl 0xd30(%rsp), %eax
vmovd %eax, %xmm1
movzwl 0xd32(%rsp), %eax
vpinsrw $0x1, %eax, %xmm1, %xmm1
movzwl 0xd34(%rsp), %eax
vpinsrw $0x2, %eax, %xmm1, %xmm1
movzwl 0xd36(%rsp), %eax
vpinsrw $0x3, %eax, %xmm1, %xmm1
movzwl 0xd38(%rsp), %eax
vpinsrw $0x4, %eax, %xmm1, %xmm1
movzwl 0xd3a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm1, %xmm1
movzwl 0xd3c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm1, %xmm1
movzwl 0xd3e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm1, %xmm1
vmovdqa %xmm1, 0xd10(%rsp)
vmovdqa %xmm0, 0xd00(%rsp)
vmovaps 0xd00(%rsp), %ymm0
vmovaps %ymm0, 0x380(%rsp)
movw 0x40c(%rsp), %ax
movw %ax, 0x43c(%rsp)
movw 0x43c(%rsp), %ax
movw %ax, 0x1e(%rsp)
movw %ax, 0xd7e(%rsp)
movw %ax, 0xd7c(%rsp)
movw %ax, 0xd7a(%rsp)
movw %ax, 0xd78(%rsp)
movw %ax, 0xd76(%rsp)
movw %ax, 0xd74(%rsp)
movw %ax, 0xd72(%rsp)
movw %ax, 0xd70(%rsp)
movw %ax, 0xd6e(%rsp)
movw %ax, 0xd6c(%rsp)
movw %ax, 0xd6a(%rsp)
movw %ax, 0xd68(%rsp)
movw %ax, 0xd66(%rsp)
movw %ax, 0xd64(%rsp)
movw %ax, 0xd62(%rsp)
movw %ax, 0xd60(%rsp)
movzwl 0xd70(%rsp), %eax
vmovd %eax, %xmm0
movzwl 0xd72(%rsp), %eax
vpinsrw $0x1, %eax, %xmm0, %xmm0
movzwl 0xd74(%rsp), %eax
vpinsrw $0x2, %eax, %xmm0, %xmm0
movzwl 0xd76(%rsp), %eax
vpinsrw $0x3, %eax, %xmm0, %xmm0
movzwl 0xd78(%rsp), %eax
vpinsrw $0x4, %eax, %xmm0, %xmm0
movzwl 0xd7a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm0, %xmm0
movzwl 0xd7c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm0, %xmm0
movzwl 0xd7e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm0, %xmm1
movzwl 0xd60(%rsp), %eax
vmovd %eax, %xmm0
movzwl 0xd62(%rsp), %eax
vpinsrw $0x1, %eax, %xmm0, %xmm0
movzwl 0xd64(%rsp), %eax
vpinsrw $0x2, %eax, %xmm0, %xmm0
movzwl 0xd66(%rsp), %eax
vpinsrw $0x3, %eax, %xmm0, %xmm0
movzwl 0xd68(%rsp), %eax
vpinsrw $0x4, %eax, %xmm0, %xmm0
movzwl 0xd6a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm0, %xmm0
movzwl 0xd6c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm0, %xmm0
movzwl 0xd6e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm0, %xmm2
vmovaps %xmm2, %xmm0
vinserti128 $0x1, %xmm1, %ymm0, %ymm0
vmovdqa %ymm0, 0xd40(%rsp)
vmovdqa 0xd40(%rsp), %ymm0
vmovdqa %ymm0, 0x360(%rsp)
xorl %eax, %eax
subl 0x410(%rsp), %eax
movq 0x3f0(%rsp), %rcx
cmpl 0x20(%rcx), %eax
jge 0xad5e53
movl 0x410(%rsp), %eax
addl $0xffff8000, %eax       # imm = 0xFFFF8000
movl %eax, 0x18(%rsp)
jmp 0xad5e67
movq 0x3f0(%rsp), %rcx
movl $0xffff8000, %eax       # imm = 0xFFFF8000
subl 0x20(%rcx), %eax
movl %eax, 0x18(%rsp)
movl 0x18(%rsp), %eax
incl %eax
movw %ax, 0x35e(%rsp)
movq 0x3f0(%rsp), %rax
movl 0x1c(%rax), %eax
xorl $0x7fff, %eax           # imm = 0x7FFF
decl %eax
movw %ax, 0x35c(%rsp)
vxorps %xmm0, %xmm0, %xmm0
vmovaps %ymm0, 0x440(%rsp)
vmovaps 0x440(%rsp), %ymm0
vmovaps %ymm0, 0x320(%rsp)
movw 0x35e(%rsp), %ax
movw %ax, 0x31e(%rsp)
movw 0x35e(%rsp), %ax
movw %ax, 0x43a(%rsp)
movw 0x43a(%rsp), %ax
movw %ax, 0xe(%rsp)
movw %ax, 0xdbe(%rsp)
movw %ax, 0xdbc(%rsp)
movw %ax, 0xdba(%rsp)
movw %ax, 0xdb8(%rsp)
movw %ax, 0xdb6(%rsp)
movw %ax, 0xdb4(%rsp)
movw %ax, 0xdb2(%rsp)
movw %ax, 0xdb0(%rsp)
movw %ax, 0xdae(%rsp)
movw %ax, 0xdac(%rsp)
movw %ax, 0xdaa(%rsp)
movw %ax, 0xda8(%rsp)
movw %ax, 0xda6(%rsp)
movw %ax, 0xda4(%rsp)
movw %ax, 0xda2(%rsp)
movw %ax, 0xda0(%rsp)
movzwl 0xda0(%rsp), %eax
vmovd %eax, %xmm0
movzwl 0xda2(%rsp), %eax
vpinsrw $0x1, %eax, %xmm0, %xmm0
movzwl 0xda4(%rsp), %eax
vpinsrw $0x2, %eax, %xmm0, %xmm0
movzwl 0xda6(%rsp), %eax
vpinsrw $0x3, %eax, %xmm0, %xmm0
movzwl 0xda8(%rsp), %eax
vpinsrw $0x4, %eax, %xmm0, %xmm0
movzwl 0xdaa(%rsp), %eax
vpinsrw $0x5, %eax, %xmm0, %xmm0
movzwl 0xdac(%rsp), %eax
vpinsrw $0x6, %eax, %xmm0, %xmm0
movzwl 0xdae(%rsp), %eax
vpinsrw $0x7, %eax, %xmm0, %xmm0
movzwl 0xdb0(%rsp), %eax
vmovd %eax, %xmm1
movzwl 0xdb2(%rsp), %eax
vpinsrw $0x1, %eax, %xmm1, %xmm1
movzwl 0xdb4(%rsp), %eax
vpinsrw $0x2, %eax, %xmm1, %xmm1
movzwl 0xdb6(%rsp), %eax
vpinsrw $0x3, %eax, %xmm1, %xmm1
movzwl 0xdb8(%rsp), %eax
vpinsrw $0x4, %eax, %xmm1, %xmm1
movzwl 0xdba(%rsp), %eax
vpinsrw $0x5, %eax, %xmm1, %xmm1
movzwl 0xdbc(%rsp), %eax
vpinsrw $0x6, %eax, %xmm1, %xmm1
movzwl 0xdbe(%rsp), %eax
vpinsrw $0x7, %eax, %xmm1, %xmm1
vmovdqa %xmm1, 0xd90(%rsp)
vmovdqa %xmm0, 0xd80(%rsp)
vmovaps 0xd80(%rsp), %ymm0
vmovaps %ymm0, 0x2e0(%rsp)
movw 0x35c(%rsp), %ax
movw %ax, 0x438(%rsp)
movw 0x438(%rsp), %ax
movw %ax, 0x10(%rsp)
movw %ax, 0xdfe(%rsp)
movw %ax, 0xdfc(%rsp)
movw %ax, 0xdfa(%rsp)
movw %ax, 0xdf8(%rsp)
movw %ax, 0xdf6(%rsp)
movw %ax, 0xdf4(%rsp)
movw %ax, 0xdf2(%rsp)
movw %ax, 0xdf0(%rsp)
movw %ax, 0xdee(%rsp)
movw %ax, 0xdec(%rsp)
movw %ax, 0xdea(%rsp)
movw %ax, 0xde8(%rsp)
movw %ax, 0xde6(%rsp)
movw %ax, 0xde4(%rsp)
movw %ax, 0xde2(%rsp)
movw %ax, 0xde0(%rsp)
movzwl 0xde0(%rsp), %eax
vmovd %eax, %xmm0
movzwl 0xde2(%rsp), %eax
vpinsrw $0x1, %eax, %xmm0, %xmm0
movzwl 0xde4(%rsp), %eax
vpinsrw $0x2, %eax, %xmm0, %xmm0
movzwl 0xde6(%rsp), %eax
vpinsrw $0x3, %eax, %xmm0, %xmm0
movzwl 0xde8(%rsp), %eax
vpinsrw $0x4, %eax, %xmm0, %xmm0
movzwl 0xdea(%rsp), %eax
vpinsrw $0x5, %eax, %xmm0, %xmm0
movzwl 0xdec(%rsp), %eax
vpinsrw $0x6, %eax, %xmm0, %xmm0
movzwl 0xdee(%rsp), %eax
vpinsrw $0x7, %eax, %xmm0, %xmm0
movzwl 0xdf0(%rsp), %eax
vmovd %eax, %xmm1
movzwl 0xdf2(%rsp), %eax
vpinsrw $0x1, %eax, %xmm1, %xmm1
movzwl 0xdf4(%rsp), %eax
vpinsrw $0x2, %eax, %xmm1, %xmm1
movzwl 0xdf6(%rsp), %eax
vpinsrw $0x3, %eax, %xmm1, %xmm1
movzwl 0xdf8(%rsp), %eax
vpinsrw $0x4, %eax, %xmm1, %xmm1
movzwl 0xdfa(%rsp), %eax
vpinsrw $0x5, %eax, %xmm1, %xmm1
movzwl 0xdfc(%rsp), %eax
vpinsrw $0x6, %eax, %xmm1, %xmm1
movzwl 0xdfe(%rsp), %eax
vpinsrw $0x7, %eax, %xmm1, %xmm1
vmovdqa %xmm1, 0xdd0(%rsp)
vmovdqa %xmm0, 0xdc0(%rsp)
vmovaps 0xdc0(%rsp), %ymm0
vmovaps %ymm0, 0x2c0(%rsp)
vmovaps 0x2c0(%rsp), %ymm0
vmovaps %ymm0, 0x2a0(%rsp)
vmovaps 0x2e0(%rsp), %ymm0
vmovaps %ymm0, 0x280(%rsp)
vmovaps 0x2e0(%rsp), %ymm0
vmovaps %ymm0, 0x260(%rsp)
vmovaps 0x2e0(%rsp), %ymm0
vmovaps %ymm0, 0x240(%rsp)
vmovaps 0x320(%rsp), %ymm0
vmovaps %ymm0, 0x220(%rsp)
vmovaps 0x220(%rsp), %ymm0
movzwl 0x35e(%rsp), %eax
vmovdqa 0x220(%rsp), %xmm1
vpinsrw $0x0, %eax, %xmm1, %xmm2
vmovaps %xmm2, %xmm1
vblendps $0xf, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[0,1,2,3],ymm0[4,5,6,7]
vmovaps %ymm0, 0x220(%rsp)
vmovaps 0x220(%rsp), %ymm1
movl 0x3e8(%rsp), %eax
negl %eax
movl 0x40c(%rsp), %ecx
imull %ecx, %eax
movw %ax, 0x436(%rsp)
movw 0x436(%rsp), %ax
movw %ax, 0x12(%rsp)
movw %ax, 0xe3e(%rsp)
movw %ax, 0xe3c(%rsp)
movw %ax, 0xe3a(%rsp)
movw %ax, 0xe38(%rsp)
movw %ax, 0xe36(%rsp)
movw %ax, 0xe34(%rsp)
movw %ax, 0xe32(%rsp)
movw %ax, 0xe30(%rsp)
movw %ax, 0xe2e(%rsp)
movw %ax, 0xe2c(%rsp)
movw %ax, 0xe2a(%rsp)
movw %ax, 0xe28(%rsp)
movw %ax, 0xe26(%rsp)
movw %ax, 0xe24(%rsp)
movw %ax, 0xe22(%rsp)
movw %ax, 0xe20(%rsp)
movzwl 0xe20(%rsp), %eax
vmovd %eax, %xmm0
movzwl 0xe22(%rsp), %eax
vpinsrw $0x1, %eax, %xmm0, %xmm0
movzwl 0xe24(%rsp), %eax
vpinsrw $0x2, %eax, %xmm0, %xmm0
movzwl 0xe26(%rsp), %eax
vpinsrw $0x3, %eax, %xmm0, %xmm0
movzwl 0xe28(%rsp), %eax
vpinsrw $0x4, %eax, %xmm0, %xmm0
movzwl 0xe2a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm0, %xmm0
movzwl 0xe2c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm0, %xmm0
movzwl 0xe2e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm0, %xmm0
movzwl 0xe30(%rsp), %eax
vmovd %eax, %xmm2
movzwl 0xe32(%rsp), %eax
vpinsrw $0x1, %eax, %xmm2, %xmm2
movzwl 0xe34(%rsp), %eax
vpinsrw $0x2, %eax, %xmm2, %xmm2
movzwl 0xe36(%rsp), %eax
vpinsrw $0x3, %eax, %xmm2, %xmm2
movzwl 0xe38(%rsp), %eax
vpinsrw $0x4, %eax, %xmm2, %xmm2
movzwl 0xe3a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm2, %xmm2
movzwl 0xe3c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm2, %xmm2
movzwl 0xe3e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm2, %xmm2
vmovdqa %xmm2, 0xe10(%rsp)
vmovdqa %xmm0, 0xe00(%rsp)
vmovaps 0xe00(%rsp), %ymm0
movl 0x3e8(%rsp), %eax
negl %eax
movl 0x40c(%rsp), %ecx
imull %ecx, %eax
movw %ax, 0x434(%rsp)
movw 0x434(%rsp), %ax
movw %ax, 0x14(%rsp)
movw %ax, 0xe7e(%rsp)
movw %ax, 0xe7c(%rsp)
movw %ax, 0xe7a(%rsp)
movw %ax, 0xe78(%rsp)
movw %ax, 0xe76(%rsp)
movw %ax, 0xe74(%rsp)
movw %ax, 0xe72(%rsp)
movw %ax, 0xe70(%rsp)
movw %ax, 0xe6e(%rsp)
movw %ax, 0xe6c(%rsp)
movw %ax, 0xe6a(%rsp)
movw %ax, 0xe68(%rsp)
movw %ax, 0xe66(%rsp)
movw %ax, 0xe64(%rsp)
movw %ax, 0xe62(%rsp)
movw %ax, 0xe60(%rsp)
movzwl 0xe60(%rsp), %eax
vmovd %eax, %xmm2
movzwl 0xe62(%rsp), %eax
vpinsrw $0x1, %eax, %xmm2, %xmm2
movzwl 0xe64(%rsp), %eax
vpinsrw $0x2, %eax, %xmm2, %xmm2
movzwl 0xe66(%rsp), %eax
vpinsrw $0x3, %eax, %xmm2, %xmm2
movzwl 0xe68(%rsp), %eax
vpinsrw $0x4, %eax, %xmm2, %xmm2
movzwl 0xe6a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm2, %xmm2
movzwl 0xe6c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm2, %xmm2
movzwl 0xe6e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm2, %xmm2
movzwl 0xe70(%rsp), %eax
vmovd %eax, %xmm3
movzwl 0xe72(%rsp), %eax
vpinsrw $0x1, %eax, %xmm3, %xmm3
movzwl 0xe74(%rsp), %eax
vpinsrw $0x2, %eax, %xmm3, %xmm3
movzwl 0xe76(%rsp), %eax
vpinsrw $0x3, %eax, %xmm3, %xmm3
movzwl 0xe78(%rsp), %eax
vpinsrw $0x4, %eax, %xmm3, %xmm3
movzwl 0xe7a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm3, %xmm3
movzwl 0xe7c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm3, %xmm3
movzwl 0xe7e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm3, %xmm3
vmovdqa %xmm3, 0xe50(%rsp)
vmovdqa %xmm2, 0xe40(%rsp)
vmovaps 0xe40(%rsp), %ymm3
movl 0x3e8(%rsp), %eax
negl %eax
movl 0x40c(%rsp), %ecx
imull %ecx, %eax
movw %ax, 0x432(%rsp)
movw 0x432(%rsp), %ax
movw %ax, 0x16(%rsp)
movw %ax, 0xebe(%rsp)
movw %ax, 0xebc(%rsp)
movw %ax, 0xeba(%rsp)
movw %ax, 0xeb8(%rsp)
movw %ax, 0xeb6(%rsp)
movw %ax, 0xeb4(%rsp)
movw %ax, 0xeb2(%rsp)
movw %ax, 0xeb0(%rsp)
movw %ax, 0xeae(%rsp)
movw %ax, 0xeac(%rsp)
movw %ax, 0xeaa(%rsp)
movw %ax, 0xea8(%rsp)
movw %ax, 0xea6(%rsp)
movw %ax, 0xea4(%rsp)
movw %ax, 0xea2(%rsp)
movw %ax, 0xea0(%rsp)
movzwl 0xea0(%rsp), %eax
vmovd %eax, %xmm2
movzwl 0xea2(%rsp), %eax
vpinsrw $0x1, %eax, %xmm2, %xmm2
movzwl 0xea4(%rsp), %eax
vpinsrw $0x2, %eax, %xmm2, %xmm2
movzwl 0xea6(%rsp), %eax
vpinsrw $0x3, %eax, %xmm2, %xmm2
movzwl 0xea8(%rsp), %eax
vpinsrw $0x4, %eax, %xmm2, %xmm2
movzwl 0xeaa(%rsp), %eax
vpinsrw $0x5, %eax, %xmm2, %xmm2
movzwl 0xeac(%rsp), %eax
vpinsrw $0x6, %eax, %xmm2, %xmm2
movzwl 0xeae(%rsp), %eax
vpinsrw $0x7, %eax, %xmm2, %xmm2
movzwl 0xeb0(%rsp), %eax
vmovd %eax, %xmm4
movzwl 0xeb2(%rsp), %eax
vpinsrw $0x1, %eax, %xmm4, %xmm4
movzwl 0xeb4(%rsp), %eax
vpinsrw $0x2, %eax, %xmm4, %xmm4
movzwl 0xeb6(%rsp), %eax
vpinsrw $0x3, %eax, %xmm4, %xmm4
movzwl 0xeb8(%rsp), %eax
vpinsrw $0x4, %eax, %xmm4, %xmm4
movzwl 0xeba(%rsp), %eax
vpinsrw $0x5, %eax, %xmm4, %xmm4
movzwl 0xebc(%rsp), %eax
vpinsrw $0x6, %eax, %xmm4, %xmm4
movzwl 0xebe(%rsp), %eax
vpinsrw $0x7, %eax, %xmm4, %xmm4
vmovdqa %xmm4, 0xe90(%rsp)
vmovdqa %xmm2, 0xe80(%rsp)
vperm2i128 $0x28, %ymm3, %ymm2, %ymm2 # ymm2 = zero,zero,ymm3[0,1]
vpalignr $0xe, %ymm2, %ymm0, %ymm0 # ymm0 = ymm2[14,15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm2[30,31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vmovdqa %ymm1, 0x5c0(%rsp)
vmovdqa %ymm0, 0x5a0(%rsp)
vmovdqa 0x5c0(%rsp), %ymm0
vmovdqa 0x5a0(%rsp), %ymm1
vpaddsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x200(%rsp)
movl 0x3e8(%rsp), %edi
imull 0x3ec(%rsp), %edi
movl 0x414(%rsp), %esi
vzeroupper
callq 0x1c3af0
movq %rax, 0x1f8(%rsp)
cmpq $0x0, 0x1f8(%rsp)
jne 0xad679a
movq $0x0, 0x428(%rsp)
jmp 0xad78d6
movq 0x1f8(%rsp), %rax
movl 0xc(%rax), %ecx
orl $0x10200404, %ecx       # imm = 0x10200404
movl %ecx, 0xc(%rax)
movq 0x1f8(%rsp), %rax
movl 0xc(%rax), %ecx
orl $0x40000, %ecx          # imm = 0x40000
movl %ecx, 0xc(%rax)
movslq 0x3e8(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x3d0(%rsp)
movslq 0x3e8(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x3c8(%rsp)
movslq 0x3e8(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x3c0(%rsp)
movslq 0x3e8(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x3b8(%rsp)
movslq 0x3e8(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x3b0(%rsp)
cmpq $0x0, 0x3d0(%rsp)
jne 0xad6860
movq $0x0, 0x428(%rsp)
jmp 0xad78d6
cmpq $0x0, 0x3c8(%rsp)
jne 0xad687c
movq $0x0, 0x428(%rsp)
jmp 0xad78d6
cmpq $0x0, 0x3c0(%rsp)
jne 0xad6898
movq $0x0, 0x428(%rsp)
jmp 0xad78d6
cmpq $0x0, 0x3b8(%rsp)
jne 0xad68b4
movq $0x0, 0x428(%rsp)
jmp 0xad78d6
cmpq $0x0, 0x3b0(%rsp)
jne 0xad68d0
movq $0x0, 0x428(%rsp)
jmp 0xad78d6
movq 0x3c0(%rsp), %rdi
vmovdqa 0x320(%rsp), %ymm0
movslq 0x3e8(%rsp), %rsi
callq 0x992f90
movq 0x3d0(%rsp), %rdi
vmovdqa 0x2e0(%rsp), %ymm0
movslq 0x3e8(%rsp), %rsi
callq 0x992f90
vmovdqa 0x320(%rsp), %ymm1
vmovdqa 0x380(%rsp), %ymm0
vmovdqa %ymm1, 0x740(%rsp)
vmovdqa %ymm0, 0x720(%rsp)
vmovdqa 0x740(%rsp), %ymm0
vmovdqa 0x720(%rsp), %ymm1
vpsubsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x1c0(%rsp)
movl 0x3e8(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x408(%rsp)
cmpl $0x0, 0x408(%rsp)
jl 0xad6a0d
movq 0x3b0(%rsp), %rax
movslq 0x408(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0x1c0(%rsp), %ymm0
movq %rax, 0x840(%rsp)
vmovdqa %ymm0, 0x820(%rsp)
vmovdqa 0x820(%rsp), %ymm0
movq 0x840(%rsp), %rax
vmovdqa %ymm0, (%rax)
vmovdqa 0x1c0(%rsp), %ymm1
vmovdqa 0x360(%rsp), %ymm0
vmovdqa %ymm1, 0x700(%rsp)
vmovdqa %ymm0, 0x6e0(%rsp)
vmovdqa 0x700(%rsp), %ymm0
vmovdqa 0x6e0(%rsp), %ymm1
vpsubsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x1c0(%rsp)
movl 0x408(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x408(%rsp)
jmp 0xad6960
movl $0x0, 0x404(%rsp)
movl 0x404(%rsp), %eax
cmpl 0x414(%rsp), %eax
jge 0xad760e
movq 0x3c0(%rsp), %rax
movl 0x3e8(%rsp), %ecx
decl %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x878(%rsp)
movq 0x878(%rsp), %rax
vmovaps (%rax), %ymm0
vmovaps %ymm0, 0x120(%rsp)
vmovaps 0x120(%rsp), %ymm0
vperm2i128 $0x28, %ymm0, %ymm1, %ymm1 # ymm1 = zero,zero,ymm0[0,1]
vpalignr $0xe, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[14,15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm1[30,31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vmovdqa %ymm0, 0x120(%rsp)
movq 0x3d8(%rsp), %rax
movq 0x3f0(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x418(%rsp), %rdx
movslq 0x404(%rsp), %rsi
movzbl (%rdx,%rsi), %edx
movl (%rcx,%rdx,4), %ecx
imull 0x3e8(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x118(%rsp)
vmovdqa 0x320(%rsp), %ymm0
vmovdqa %ymm0, 0x180(%rsp)
vmovdqa 0x2e0(%rsp), %ymm0
vmovdqa %ymm0, 0x160(%rsp)
movl $0x0, 0x408(%rsp)
movl 0x408(%rsp), %eax
cmpl 0x3e8(%rsp), %eax
jge 0xad6e0b
movq 0x3c0(%rsp), %rax
movslq 0x408(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x870(%rsp)
movq 0x870(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0x140(%rsp)
movq 0x3d0(%rsp), %rax
movslq 0x408(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x868(%rsp)
movq 0x868(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0x1a0(%rsp)
movq 0x118(%rsp), %rax
movslq 0x408(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x860(%rsp)
movq 0x860(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0xe0(%rsp)
vmovdqa 0x1a0(%rsp), %ymm1
vmovdqa 0x360(%rsp), %ymm0
vmovdqa %ymm1, 0x6c0(%rsp)
vmovdqa %ymm0, 0x6a0(%rsp)
vmovdqa 0x6c0(%rsp), %ymm0
vmovdqa 0x6a0(%rsp), %ymm1
vpsubsw %ymm1, %ymm0, %ymm1
vmovdqa 0x140(%rsp), %ymm2
vmovdqa 0x380(%rsp), %ymm0
vmovdqa %ymm2, 0x680(%rsp)
vmovdqa %ymm0, 0x660(%rsp)
vmovdqa 0x680(%rsp), %ymm0
vmovdqa 0x660(%rsp), %ymm2
vpsubsw %ymm2, %ymm0, %ymm0
vmovdqa %ymm1, 0xb60(%rsp)
vmovdqa %ymm0, 0xb40(%rsp)
vmovdqa 0xb60(%rsp), %ymm0
vmovdqa 0xb40(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x1a0(%rsp)
vmovdqa 0x120(%rsp), %ymm1
vmovdqa 0xe0(%rsp), %ymm0
vmovdqa %ymm1, 0x580(%rsp)
vmovdqa %ymm0, 0x560(%rsp)
vmovdqa 0x580(%rsp), %ymm0
vmovdqa 0x560(%rsp), %ymm1
vpaddsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x120(%rsp)
vmovdqa 0x160(%rsp), %ymm1
vmovdqa 0x180(%rsp), %ymm2
movq 0x3b0(%rsp), %rax
movslq 0x408(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm2, 0x540(%rsp)
vmovdqa %ymm0, 0x520(%rsp)
vmovdqa 0x540(%rsp), %ymm0
vmovdqa 0x520(%rsp), %ymm2
vpaddsw %ymm2, %ymm0, %ymm0
vmovdqa %ymm1, 0xb20(%rsp)
vmovdqa %ymm0, 0xb00(%rsp)
vmovdqa 0xb20(%rsp), %ymm0
vmovdqa 0xb00(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x160(%rsp)
vmovdqa 0x1a0(%rsp), %ymm1
vmovdqa 0x120(%rsp), %ymm0
vmovdqa %ymm1, 0xae0(%rsp)
vmovdqa %ymm0, 0xac0(%rsp)
vmovdqa 0xae0(%rsp), %ymm0
vmovdqa 0xac0(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x180(%rsp)
movq 0x3d0(%rsp), %rax
movslq 0x408(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0x1a0(%rsp), %ymm0
movq %rax, 0x818(%rsp)
vmovdqa %ymm0, 0x7e0(%rsp)
vmovdqa 0x7e0(%rsp), %ymm0
movq 0x818(%rsp), %rax
vmovdqa %ymm0, (%rax)
movq 0x3c8(%rsp), %rax
movslq 0x408(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0x180(%rsp), %ymm0
movq %rax, 0x7d8(%rsp)
vmovdqa %ymm0, 0x7a0(%rsp)
vmovdqa 0x7a0(%rsp), %ymm0
movq 0x7d8(%rsp), %rax
vmovdqa %ymm0, (%rax)
vmovdqa 0x140(%rsp), %ymm0
vmovdqa %ymm0, 0x120(%rsp)
movl 0x408(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x408(%rsp)
jmp 0xad6af6
vmovaps 0x180(%rsp), %ymm0
vperm2i128 $0x28, %ymm0, %ymm1, %ymm1 # ymm1 = zero,zero,ymm0[0,1]
vpalignr $0xe, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[14,15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm1[30,31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vmovdqa %ymm0, 0x180(%rsp)
vmovdqa 0x160(%rsp), %ymm1
vmovdqa 0x180(%rsp), %ymm2
movq 0x3b0(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm2, 0x500(%rsp)
vmovdqa %ymm0, 0x4e0(%rsp)
vmovdqa 0x500(%rsp), %ymm0
vmovdqa 0x4e0(%rsp), %ymm2
vpaddsw %ymm2, %ymm0, %ymm0
vmovdqa %ymm1, 0xaa0(%rsp)
vmovdqa %ymm0, 0xa80(%rsp)
vmovdqa 0xaa0(%rsp), %ymm0
vmovdqa 0xa80(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x160(%rsp)
movl $0x0, 0x408(%rsp)
movl 0x408(%rsp), %eax
movl 0x3ec(%rsp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jge 0xad6f7e
vmovaps 0x160(%rsp), %ymm0
vperm2i128 $0x28, %ymm0, %ymm1, %ymm1 # ymm1 = zero,zero,ymm0[0,1]
vpalignr $0xe, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[14,15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm1[30,31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vmovdqa %ymm0, 0xc0(%rsp)
vmovdqa 0xc0(%rsp), %ymm1
vmovdqa 0x200(%rsp), %ymm0
vmovdqa %ymm1, 0x4c0(%rsp)
vmovdqa %ymm0, 0x4a0(%rsp)
vmovdqa 0x4c0(%rsp), %ymm0
vmovdqa 0x4a0(%rsp), %ymm1
vpaddsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0xc0(%rsp)
vmovdqa 0x160(%rsp), %ymm1
vmovdqa 0xc0(%rsp), %ymm0
vmovdqa %ymm1, 0xa60(%rsp)
vmovdqa %ymm0, 0xa40(%rsp)
vmovdqa 0xa60(%rsp), %ymm0
vmovdqa 0xa40(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x160(%rsp)
movl 0x408(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x408(%rsp)
jmp 0xad6eab
vmovaps 0x160(%rsp), %ymm0
vperm2i128 $0x28, %ymm0, %ymm1, %ymm1 # ymm1 = zero,zero,ymm0[0,1]
vpalignr $0xe, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[14,15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm1[30,31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vmovdqa %ymm0, 0x160(%rsp)
vmovdqa 0x160(%rsp), %ymm1
vmovdqa 0x220(%rsp), %ymm0
vmovdqa %ymm1, 0x480(%rsp)
vmovdqa %ymm0, 0x460(%rsp)
vmovdqa 0x480(%rsp), %ymm0
vmovdqa 0x460(%rsp), %ymm1
vpaddsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x160(%rsp)
vmovdqa 0x180(%rsp), %ymm1
vmovdqa 0x160(%rsp), %ymm0
vmovdqa %ymm1, 0xa20(%rsp)
vmovdqa %ymm0, 0xa00(%rsp)
vmovdqa 0xa20(%rsp), %ymm0
vmovdqa 0xa00(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x140(%rsp)
vmovdqa 0x140(%rsp), %ymm1
vmovdqa 0x320(%rsp), %ymm0
vmovdqa %ymm1, 0x9e0(%rsp)
vmovdqa %ymm0, 0x9c0(%rsp)
vmovdqa 0x9e0(%rsp), %ymm0
vmovdqa 0x9c0(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x140(%rsp)
movl $0x0, 0x408(%rsp)
movl 0x408(%rsp), %eax
cmpl 0x3e8(%rsp), %eax
jge 0xad7308
movq 0x3c8(%rsp), %rax
movslq 0x408(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x858(%rsp)
movq 0x858(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0x180(%rsp)
vmovdqa 0x160(%rsp), %ymm1
vmovdqa 0x360(%rsp), %ymm0
vmovdqa %ymm1, 0x640(%rsp)
vmovdqa %ymm0, 0x620(%rsp)
vmovdqa 0x640(%rsp), %ymm0
vmovdqa 0x620(%rsp), %ymm1
vpsubsw %ymm1, %ymm0, %ymm1
vmovdqa 0x140(%rsp), %ymm2
vmovdqa 0x380(%rsp), %ymm0
vmovdqa %ymm2, 0x600(%rsp)
vmovdqa %ymm0, 0x5e0(%rsp)
vmovdqa 0x600(%rsp), %ymm0
vmovdqa 0x5e0(%rsp), %ymm2
vpsubsw %ymm2, %ymm0, %ymm0
vmovdqa %ymm1, 0x9a0(%rsp)
vmovdqa %ymm0, 0x980(%rsp)
vmovdqa 0x9a0(%rsp), %ymm0
vmovdqa 0x980(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x160(%rsp)
vmovdqa 0x180(%rsp), %ymm1
vmovdqa 0x160(%rsp), %ymm0
vmovdqa %ymm1, 0x960(%rsp)
vmovdqa %ymm0, 0x940(%rsp)
vmovdqa 0x960(%rsp), %ymm0
vmovdqa 0x940(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x140(%rsp)
vmovdqa 0x140(%rsp), %ymm1
vmovdqa 0x320(%rsp), %ymm0
vmovdqa %ymm1, 0x920(%rsp)
vmovdqa %ymm0, 0x900(%rsp)
vmovdqa 0x920(%rsp), %ymm0
vmovdqa 0x900(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x140(%rsp)
movq 0x3c0(%rsp), %rax
movslq 0x408(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0x140(%rsp), %ymm0
movq %rax, 0x798(%rsp)
vmovdqa %ymm0, 0x760(%rsp)
vmovdqa 0x760(%rsp), %ymm0
movq 0x798(%rsp), %rax
vmovdqa %ymm0, (%rax)
vmovdqa 0x2a0(%rsp), %ymm1
vmovdqa 0x140(%rsp), %ymm0
vmovdqa %ymm1, 0xba0(%rsp)
vmovdqa %ymm0, 0xb80(%rsp)
vmovdqa 0xba0(%rsp), %ymm0
vmovdqa 0xb80(%rsp), %ymm1
vpminsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x2a0(%rsp)
vmovdqa 0x280(%rsp), %ymm1
vmovdqa 0x140(%rsp), %ymm0
vmovdqa %ymm1, 0x8e0(%rsp)
vmovdqa %ymm0, 0x8c0(%rsp)
vmovdqa 0x8e0(%rsp), %ymm0
vmovdqa 0x8c0(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x280(%rsp)
vmovdqa 0x140(%rsp), %ymm1
vmovdqa 0x260(%rsp), %ymm0
vmovdqa %ymm1, 0x8a0(%rsp)
vmovdqa %ymm0, 0x880(%rsp)
vmovdqa 0x8a0(%rsp), %ymm0
vmovdqa 0x880(%rsp), %ymm1
vpmaxsw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x260(%rsp)
movl 0x408(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x408(%rsp)
jmp 0xad7070
vmovaps 0x260(%rsp), %ymm1
vmovaps 0x240(%rsp), %ymm0
vmovaps %ymm1, 0xc60(%rsp)
vmovaps %ymm0, 0xc40(%rsp)
vmovaps 0xc60(%rsp), %ymm0
vmovaps 0xc40(%rsp), %ymm1
vpcmpgtw %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0xa0(%rsp)
vmovdqa 0xa0(%rsp), %ymm0
vmovdqa %ymm0, 0xca0(%rsp)
vmovdqa 0xca0(%rsp), %ymm0
vpmovmskb %ymm0, %eax
cmpl $0x0, %eax
je 0xad754b
vmovaps 0x260(%rsp), %ymm0
callq 0xad78f0
movw %ax, 0x31e(%rsp)
movw 0x31e(%rsp), %ax
movw %ax, 0x430(%rsp)
movw 0x430(%rsp), %ax
movw %ax, 0xc(%rsp)
movw %ax, 0xf0e(%rsp)
movw %ax, 0xf0c(%rsp)
movw %ax, 0xf0a(%rsp)
movw %ax, 0xf08(%rsp)
movw %ax, 0xf06(%rsp)
movw %ax, 0xf04(%rsp)
movw %ax, 0xf02(%rsp)
movw %ax, 0xf00(%rsp)
movw %ax, 0xefe(%rsp)
movw %ax, 0xefc(%rsp)
movw %ax, 0xefa(%rsp)
movw %ax, 0xef8(%rsp)
movw %ax, 0xef6(%rsp)
movw %ax, 0xef4(%rsp)
movw %ax, 0xef2(%rsp)
movw %ax, 0xef0(%rsp)
movzwl 0xf00(%rsp), %eax
vmovd %eax, %xmm0
movzwl 0xf02(%rsp), %eax
vpinsrw $0x1, %eax, %xmm0, %xmm0
movzwl 0xf04(%rsp), %eax
vpinsrw $0x2, %eax, %xmm0, %xmm0
movzwl 0xf06(%rsp), %eax
vpinsrw $0x3, %eax, %xmm0, %xmm0
movzwl 0xf08(%rsp), %eax
vpinsrw $0x4, %eax, %xmm0, %xmm0
movzwl 0xf0a(%rsp), %eax
vpinsrw $0x5, %eax, %xmm0, %xmm0
movzwl 0xf0c(%rsp), %eax
vpinsrw $0x6, %eax, %xmm0, %xmm0
movzwl 0xf0e(%rsp), %eax
vpinsrw $0x7, %eax, %xmm0, %xmm1
movzwl 0xef0(%rsp), %eax
vmovd %eax, %xmm0
movzwl 0xef2(%rsp), %eax
vpinsrw $0x1, %eax, %xmm0, %xmm0
movzwl 0xef4(%rsp), %eax
vpinsrw $0x2, %eax, %xmm0, %xmm0
movzwl 0xef6(%rsp), %eax
vpinsrw $0x3, %eax, %xmm0, %xmm0
movzwl 0xef8(%rsp), %eax
vpinsrw $0x4, %eax, %xmm0, %xmm0
movzwl 0xefa(%rsp), %eax
vpinsrw $0x5, %eax, %xmm0, %xmm0
movzwl 0xefc(%rsp), %eax
vpinsrw $0x6, %eax, %xmm0, %xmm0
movzwl 0xefe(%rsp), %eax
vpinsrw $0x7, %eax, %xmm0, %xmm2
vmovaps %xmm2, %xmm0
vinserti128 $0x1, %xmm1, %ymm0, %ymm0
vmovdqa %ymm0, 0xec0(%rsp)
vmovdqa 0xec0(%rsp), %ymm0
vmovdqa %ymm0, 0x240(%rsp)
movl 0x404(%rsp), %eax
movl %eax, 0x3fc(%rsp)
movq 0x3b8(%rsp), %rdi
movq 0x3c0(%rsp), %rsi
movslq 0x3e8(%rsp), %rdx
shlq $0x5, %rdx
vzeroupper
callq 0x19e0a0
movl $0x0, 0x9c(%rsp)
movq 0x3c0(%rsp), %rax
movslq 0x3e4(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x850(%rsp)
movq 0x850(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0x60(%rsp)
movl $0x0, 0x9c(%rsp)
movl 0x9c(%rsp), %eax
cmpl 0x3e0(%rsp), %eax
jge 0xad75cd
vmovaps 0x60(%rsp), %ymm0
vperm2i128 $0x28, %ymm0, %ymm1, %ymm1 # ymm1 = zero,zero,ymm0[0,1]
vpalignr $0xe, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[14,15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11,12,13],ymm1[30,31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27,28,29]
vmovdqa %ymm0, 0x60(%rsp)
movl 0x9c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x9c(%rsp)
jmp 0xad7592
vmovdqa 0x70(%rsp), %xmm0
vpextrw $0x7, %xmm0, %eax
movzwl %ax, %eax
movswl %ax, %edx
movq 0x1f8(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movslq 0x404(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x404(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x404(%rsp)
jmp 0xad6a18
movq 0x3b8(%rsp), %rax
movq %rax, 0x58(%rsp)
movl 0x3e8(%rsp), %eax
imull 0x3ec(%rsp), %eax
movl %eax, 0x54(%rsp)
movl 0x3f8(%rsp), %eax
movl %eax, 0x400(%rsp)
movl $0x0, 0x408(%rsp)
movl 0x408(%rsp), %eax
cmpl 0x54(%rsp), %eax
jge 0xad76e0
movq 0x58(%rsp), %rax
movswl (%rax), %eax
movswl 0x31e(%rsp), %ecx
cmpl %ecx, %eax
jne 0xad76ba
movl 0x408(%rsp), %eax
cltd
idivl 0x3ec(%rsp)
movl %eax, 0x8(%rsp)
movl 0x408(%rsp), %eax
cltd
idivl 0x3ec(%rsp)
movl 0x8(%rsp), %eax
imull 0x3e8(%rsp), %edx
addl %edx, %eax
movl %eax, 0x50(%rsp)
movl 0x50(%rsp), %eax
cmpl 0x400(%rsp), %eax
jge 0xad76b8
movl 0x50(%rsp), %eax
movl %eax, 0x400(%rsp)
jmp 0xad76ba
jmp 0xad76bc
movl 0x408(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x408(%rsp)
movq 0x58(%rsp), %rax
addq $0x2, %rax
movq %rax, 0x58(%rsp)
jmp 0xad7647
movl $0x0, 0x408(%rsp)
movl 0x408(%rsp), %eax
cmpl 0x3e8(%rsp), %eax
jge 0xad7768
movq 0x3c0(%rsp), %rax
movslq 0x408(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x848(%rsp)
movq 0x848(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0x20(%rsp)
movq 0x1f8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdi
vmovdqa 0x20(%rsp), %ymm0
movl 0x408(%rsp), %esi
movl 0x3e8(%rsp), %edx
callq 0xad79f0
movl 0x408(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x408(%rsp)
jmp 0xad76eb
vmovaps 0x2e0(%rsp), %ymm1
vmovaps 0x2a0(%rsp), %ymm0
vmovaps %ymm1, 0xc20(%rsp)
vmovaps %ymm0, 0xc00(%rsp)
vmovaps 0xc20(%rsp), %ymm0
vmovaps 0xc00(%rsp), %ymm1
vpcmpgtw %ymm1, %ymm0, %ymm1
vmovaps 0x280(%rsp), %ymm2
vmovaps 0x2c0(%rsp), %ymm0
vmovaps %ymm2, 0xbe0(%rsp)
vmovaps %ymm0, 0xbc0(%rsp)
vmovaps 0xbe0(%rsp), %ymm0
vmovaps 0xbc0(%rsp), %ymm2
vpcmpgtw %ymm2, %ymm0, %ymm0
vmovdqa %ymm1, 0xce0(%rsp)
vmovdqa %ymm0, 0xcc0(%rsp)
vmovdqa 0xce0(%rsp), %ymm0
vpor 0xcc0(%rsp), %ymm0, %ymm0
vmovdqa %ymm0, 0xc80(%rsp)
vmovdqa 0xc80(%rsp), %ymm0
vpmovmskb %ymm0, %eax
cmpl $0x0, %eax
je 0xad784c
movq 0x1f8(%rsp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
movw $0x0, 0x31e(%rsp)
movl $0x0, 0x400(%rsp)
movl $0x0, 0x3fc(%rsp)
movswl 0x31e(%rsp), %ecx
movq 0x1f8(%rsp), %rax
movl %ecx, (%rax)
movl 0x400(%rsp), %ecx
movq 0x1f8(%rsp), %rax
movl %ecx, 0x4(%rax)
movl 0x3fc(%rsp), %ecx
movq 0x1f8(%rsp), %rax
movl %ecx, 0x8(%rax)
movq 0x3b0(%rsp), %rdi
vzeroupper
callq 0x1c3590
movq 0x3b8(%rsp), %rdi
callq 0x1c3590
movq 0x3c0(%rsp), %rdi
callq 0x1c3590
movq 0x3c8(%rsp), %rdi
callq 0x1c3590
movq 0x3d0(%rsp), %rdi
callq 0x1c3590
movq 0x1f8(%rsp), %rax
movq %rax, 0x428(%rsp)
movq 0x428(%rsp), %rax
movq %rbp, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)