// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sw_striped_avx2_256_64.c
// Function: parasail_sw_rowcol_striped_profile_avx2_256_64
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;
    __m256i vNegInf;
    int64_t score = 0;
    __m256i vMaxH;
    __m256i vMaxHUnit;
    int64_t maxp = 0;
    /*int64_t stop = 0;*/
    parasail_result_t *result = NULL;

    /* validate inputs */
    PARASAIL_CHECK_NULL(profile);
    PARASAIL_CHECK_NULL(profile->profile64.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 = 4; /* 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->profile64.score;
    vGapO = _mm256_set1_epi64x_rpl(open);
    vGapE = _mm256_set1_epi64x_rpl(gap);
    vZero = _mm256_setzero_si256();
    vNegInf = _mm256_set1_epi64x_rpl(NEG_INF);
    score = NEG_INF;
    vMaxH = vNegInf;
    vMaxHUnit = vNegInf;
    maxp = INT64_MAX - (int64_t)(matrix->max+1);
    /*stop = profile->stop == INT32_MAX ?  INT64_MAX : (int64_t)profile->stop;*/

    /* 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_64 | PARASAIL_FLAG_LANES_4;
#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, vZero, segLen);
    parasail_memset___m256i(pvE, _mm256_set1_epi64x_rpl(-open), 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 = vZero;

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

        /* 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_add_epi64(vH, _mm256_load_si256(vP + i));
            vE = _mm256_load_si256(pvE + i);

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

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

            /* Update vF value. */
            vF = _mm256_sub_epi64(vF, vGapE);
            vF = _mm256_max_epi64_rpl(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, 8);
            for (i=0; i<segLen; ++i) {
                vH = _mm256_load_si256(pvHStore + i);
                vH = _mm256_max_epi64_rpl(vH,vF);
                _mm256_store_si256(pvHStore + i, vH);
#ifdef PARASAIL_TABLE
                arr_store_si256(result->tables->score_table, vH, i, segLen, j, s2Len);
#endif
                vMaxH = _mm256_max_epi64_rpl(vH, vMaxH);
                vH = _mm256_sub_epi64(vH, vGapO);
                vF = _mm256_sub_epi64(vF, vGapE);
                if (! _mm256_movemask_epi8(_mm256_cmpgt_epi64(vF, vH))) goto end;
                /*vF = _mm256_max_epi64_rpl(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, 8);
            }
            result->rowcols->score_row[j] = (int64_t) _mm256_extract_epi64_rpl (vH, 3);
        }
#endif

        {
            __m256i vCompare = _mm256_cmpgt_epi64(vMaxH, vMaxHUnit);
            if (_mm256_movemask_epi8(vCompare)) {
                score = _mm256_hmax_epi64_rpl(vMaxH);
                /* if score has potential to overflow, abort early */
                if (score > maxp) {
                    result->flag |= PARASAIL_FLAG_SATURATED;
                    break;
                }
                vMaxHUnit = _mm256_set1_epi64x_rpl(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);
    }
#endif

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

    if (parasail_result_is_saturated(result)) {
        score = INT64_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. */
        {
            int64_t *t = (int64_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;
    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
movq %rsp, %rbp
andq $-0x20, %rsp
subq $0x780, %rsp            # imm = 0x780
movq %rdi, 0x288(%rsp)
movq %rsi, 0x280(%rsp)
movl %edx, 0x27c(%rsp)
movl %ecx, 0x278(%rsp)
movl %r8d, 0x274(%rsp)
movl $0x0, 0x270(%rsp)
movl $0x0, 0x26c(%rsp)
movl $0x0, 0x268(%rsp)
movl $0x0, 0x264(%rsp)
movl $0x0, 0x260(%rsp)
movl $0x0, 0x25c(%rsp)
movq $0x0, 0x250(%rsp)
movl $0x0, 0x24c(%rsp)
movl $0x0, 0x248(%rsp)
movl $0x0, 0x244(%rsp)
movl $0x0, 0x240(%rsp)
movq $0x0, 0x238(%rsp)
movq $0x0, 0x230(%rsp)
movq $0x0, 0x228(%rsp)
movq $0x0, 0x220(%rsp)
movq $0x0, 0x218(%rsp)
movq $0x0, 0x178(%rsp)
movq $0x0, 0x118(%rsp)
movq $0x0, 0x110(%rsp)
cmpq $0x0, 0x288(%rsp)
jne 0xb1c851
movq 0x30a7b7(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1cf7c0(%rip), %rsi    # 0xcebfeb
leaq 0x1be16e(%rip), %rdx    # 0xcda9a0
leaq 0x1a5ca4(%rip), %rcx    # 0xcc24dd
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x290(%rsp)
jmp 0xb1da88
jmp 0xb1c853
jmp 0xb1c855
movq 0x288(%rsp), %rax
cmpq $0x0, 0x60(%rax)
jne 0xb1c89b
movq 0x30a76d(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1cf776(%rip), %rsi    # 0xcebfeb
leaq 0x1be124(%rip), %rdx    # 0xcda9a0
leaq 0x1d0080(%rip), %rcx    # 0xcec903
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x290(%rsp)
jmp 0xb1da88
jmp 0xb1c89d
jmp 0xb1c89f
movq 0x288(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jne 0xb1c8e5
movq 0x30a723(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1cf72c(%rip), %rsi    # 0xcebfeb
leaq 0x1be0da(%rip), %rdx    # 0xcda9a0
leaq 0x1d004f(%rip), %rcx    # 0xcec91c
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x290(%rsp)
jmp 0xb1da88
jmp 0xb1c8e7
jmp 0xb1c8e9
movq 0x288(%rsp), %rax
cmpl $0x0, 0x8(%rax)
jg 0xb1c92e
movq 0x30a6da(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1cfdf9(%rip), %rsi    # 0xcec701
leaq 0x1be091(%rip), %rdx    # 0xcda9a0
leaq 0x1d0016(%rip), %rcx    # 0xcec92c
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x290(%rsp)
jmp 0xb1da88
jmp 0xb1c930
jmp 0xb1c932
cmpq $0x0, 0x280(%rsp)
jne 0xb1c974
movq 0x30a694(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1cf69d(%rip), %rsi    # 0xcebfeb
leaq 0x1be04b(%rip), %rdx    # 0xcda9a0
leaq 0x1cfda2(%rip), %rcx    # 0xcec6fe
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x290(%rsp)
jmp 0xb1da88
jmp 0xb1c976
jmp 0xb1c978
cmpl $0x0, 0x27c(%rsp)
jg 0xb1c9b9
movq 0x30a64f(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1cfd6e(%rip), %rsi    # 0xcec701
leaq 0x1be006(%rip), %rdx    # 0xcda9a0
leaq 0x1cfd74(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x290(%rsp)
jmp 0xb1da88
jmp 0xb1c9bb
jmp 0xb1c9bd
cmpl $0x0, 0x278(%rsp)
jge 0xb1c9fe
movq 0x30a60a(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1cfd43(%rip), %rsi    # 0xcec71b
leaq 0x1bdfc1(%rip), %rdx    # 0xcda9a0
leaq 0x1cfd4a(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x290(%rsp)
jmp 0xb1da88
jmp 0xb1ca00
jmp 0xb1ca02
cmpl $0x0, 0x274(%rsp)
jge 0xb1ca43
movq 0x30a5c5(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1cfcfe(%rip), %rsi    # 0xcec71b
leaq 0x1bdf7c(%rip), %rdx    # 0xcda9a0
leaq 0x1cfd0a(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x290(%rsp)
jmp 0xb1da88
jmp 0xb1ca45
movl $0x0, 0x270(%rsp)
movl $0x0, 0x26c(%rsp)
movl $0x0, 0x268(%rsp)
movl $0x0, 0x264(%rsp)
movl $0x0, 0x260(%rsp)
movq 0x288(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, 0x25c(%rsp)
movq 0x288(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x250(%rsp)
movl $0x4, 0x24c(%rsp)
movl 0x25c(%rsp), %esi
movl 0x24c(%rsp), %ecx
movl %ecx, %edx
movl %esi, %eax
leal -0x1(%rax,%rdx), %eax
cltd
idivl %ecx
movl %eax, 0x248(%rsp)
movl 0x25c(%rsp), %eax
decl %eax
movl 0x248(%rsp), %ecx
cltd
idivl %ecx
movl %edx, 0x244(%rsp)
movl 0x24c(%rsp), %ecx
movl 0x25c(%rsp), %eax
decl %eax
movl 0x248(%rsp), %esi
cltd
idivl %esi
notl %eax
addl %ecx, %eax
movl %eax, 0x240(%rsp)
movq 0x288(%rsp), %rax
movq 0x60(%rax), %rax
movq %rax, 0x238(%rsp)
movslq 0x278(%rsp), %rax
movq %rax, 0x2b8(%rsp)
movq 0x2b8(%rsp), %rax
movq %rax, 0x658(%rsp)
movq %rax, 0x650(%rsp)
movq %rax, 0x648(%rsp)
movq %rax, 0x640(%rsp)
vmovq 0x648(%rsp), %xmm1
vmovq 0x640(%rsp), %xmm0
vpunpcklqdq %xmm1, %xmm0, %xmm0 # xmm0 = xmm0[0],xmm1[0]
vmovq 0x658(%rsp), %xmm2
vmovq 0x650(%rsp), %xmm1
vpunpcklqdq %xmm2, %xmm1, %xmm1 # xmm1 = xmm1[0],xmm2[0]
vmovdqa %xmm1, 0x630(%rsp)
vmovdqa %xmm0, 0x620(%rsp)
vmovaps 0x620(%rsp), %ymm0
vmovaps %ymm0, 0x1e0(%rsp)
movslq 0x274(%rsp), %rax
movq %rax, 0x2b0(%rsp)
movq 0x2b0(%rsp), %rax
movq %rax, 0x698(%rsp)
movq %rax, 0x690(%rsp)
movq %rax, 0x688(%rsp)
movq %rax, 0x680(%rsp)
vmovq 0x688(%rsp), %xmm1
vmovq 0x680(%rsp), %xmm0
vpunpcklqdq %xmm1, %xmm0, %xmm0 # xmm0 = xmm0[0],xmm1[0]
vmovq 0x698(%rsp), %xmm2
vmovq 0x690(%rsp), %xmm1
vpunpcklqdq %xmm2, %xmm1, %xmm1 # xmm1 = xmm1[0],xmm2[0]
vmovdqa %xmm1, 0x670(%rsp)
vmovdqa %xmm0, 0x660(%rsp)
vmovaps 0x660(%rsp), %ymm0
vmovaps %ymm0, 0x1c0(%rsp)
vxorps %xmm0, %xmm0, %xmm0
vmovaps %ymm0, 0x2c0(%rsp)
vmovaps 0x2c0(%rsp), %ymm0
vmovaps %ymm0, 0x1a0(%rsp)
movabsq $-0x4000000000000000, %rax # imm = 0xC000000000000000
movq %rax, 0x2a8(%rsp)
movq 0x2a8(%rsp), %rax
movq %rax, 0x6d8(%rsp)
movq %rax, 0x6d0(%rsp)
movq %rax, 0x6c8(%rsp)
movq %rax, 0x6c0(%rsp)
vmovq 0x6d8(%rsp), %xmm1
vmovq 0x6d0(%rsp), %xmm0
vpunpcklqdq %xmm1, %xmm0, %xmm1 # xmm1 = xmm0[0],xmm1[0]
vmovq 0x6c8(%rsp), %xmm2
vmovq 0x6c0(%rsp), %xmm0
vpunpcklqdq %xmm2, %xmm0, %xmm2 # xmm2 = xmm0[0],xmm2[0]
vmovaps %xmm2, %xmm0
vinserti128 $0x1, %xmm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x6a0(%rsp)
vmovdqa 0x6a0(%rsp), %ymm0
vmovdqa %ymm0, 0x180(%rsp)
movabsq $-0x4000000000000000, %rax # imm = 0xC000000000000000
movq %rax, 0x178(%rsp)
vmovdqa 0x180(%rsp), %ymm0
vmovdqa %ymm0, 0x140(%rsp)
vmovdqa 0x180(%rsp), %ymm0
vmovdqa %ymm0, 0x120(%rsp)
movq 0x250(%rsp), %rax
movl 0x1c(%rax), %eax
addl $0x1, %eax
movslq %eax, %rcx
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
subq %rcx, %rax
movq %rax, 0x118(%rsp)
movl 0x248(%rsp), %edi
imull 0x24c(%rsp), %edi
movl 0x27c(%rsp), %esi
vzeroupper
callq 0x1c3af0
movq %rax, 0x110(%rsp)
cmpq $0x0, 0x110(%rsp)
jne 0xb1cd78
movq $0x0, 0x290(%rsp)
jmp 0xb1da88
movq 0x110(%rsp), %rax
movl 0xc(%rax), %ecx
orl $0x4800804, %ecx        # imm = 0x4800804
movl %ecx, 0xc(%rax)
movq 0x110(%rsp), %rax
movl 0xc(%rax), %ecx
orl $0x40000, %ecx          # imm = 0x40000
movl %ecx, 0xc(%rax)
movslq 0x248(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x230(%rsp)
movslq 0x248(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x228(%rsp)
movslq 0x248(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x220(%rsp)
movslq 0x248(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x218(%rsp)
cmpq $0x0, 0x230(%rsp)
jne 0xb1ce24
movq $0x0, 0x290(%rsp)
jmp 0xb1da88
cmpq $0x0, 0x228(%rsp)
jne 0xb1ce40
movq $0x0, 0x290(%rsp)
jmp 0xb1da88
cmpq $0x0, 0x220(%rsp)
jne 0xb1ce5c
movq $0x0, 0x290(%rsp)
jmp 0xb1da88
cmpq $0x0, 0x218(%rsp)
jne 0xb1ce78
movq $0x0, 0x290(%rsp)
jmp 0xb1da88
movq 0x230(%rsp), %rdi
vmovaps 0x1a0(%rsp), %ymm0
movslq 0x248(%rsp), %rsi
callq 0x992f90
movq 0x218(%rsp), %rdi
movl 0x278(%rsp), %eax
negl %eax
cltq
movq %rax, 0x2a0(%rsp)
movq 0x2a0(%rsp), %rax
movq %rax, 0x718(%rsp)
movq %rax, 0x710(%rsp)
movq %rax, 0x708(%rsp)
movq %rax, 0x700(%rsp)
vmovq 0x718(%rsp), %xmm1
vmovq 0x710(%rsp), %xmm0
vpunpcklqdq %xmm1, %xmm0, %xmm1 # xmm1 = xmm0[0],xmm1[0]
vmovq 0x708(%rsp), %xmm2
vmovq 0x700(%rsp), %xmm0
vpunpcklqdq %xmm2, %xmm0, %xmm2 # xmm2 = xmm0[0],xmm2[0]
vmovaps %xmm2, %xmm0
vinserti128 $0x1, %xmm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x6e0(%rsp)
vmovdqa 0x6e0(%rsp), %ymm0
movslq 0x248(%rsp), %rsi
callq 0x992f90
movl $0x0, 0x26c(%rsp)
movl 0x26c(%rsp), %eax
cmpl 0x27c(%rsp), %eax
jge 0xb1d7c6
movq $0x0, 0x98(%rsp)
movq $0x0, 0x90(%rsp)
vmovaps 0x1a0(%rsp), %ymm0
vmovaps %ymm0, 0xc0(%rsp)
movq 0x230(%rsp), %rax
movl 0x248(%rsp), %ecx
decl %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x318(%rsp)
movq 0x318(%rsp), %rax
vmovaps (%rax), %ymm0
vmovaps %ymm0, 0xa0(%rsp)
vmovaps 0xa0(%rsp), %ymm0
vxorps %xmm1, %xmm1, %xmm1
vpermq $0x90, %ymm0, %ymm0     # ymm0 = ymm0[0,0,1,2]
vpblendd $0x3, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[0,1],ymm0[2,3,4,5,6,7]
vmovdqa %ymm0, 0xa0(%rsp)
movq 0x238(%rsp), %rax
movq 0x250(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x280(%rsp), %rdx
movslq 0x26c(%rsp), %rsi
movzbl (%rdx,%rsi), %edx
movl (%rcx,%rdx,4), %ecx
imull 0x248(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x98(%rsp)
movl 0x260(%rsp), %eax
movl 0x26c(%rsp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jne 0xb1d06d
movq 0x220(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x228(%rsp), %rax
movq %rax, 0x220(%rsp)
movq 0x230(%rsp), %rax
movq %rax, 0x228(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x230(%rsp)
jmp 0xb1d09d
movq 0x228(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x230(%rsp), %rax
movq %rax, 0x228(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x230(%rsp)
movl $0x0, 0x270(%rsp)
movl 0x270(%rsp), %eax
cmpl 0x248(%rsp), %eax
jge 0xb1d3a4
vmovdqa 0xa0(%rsp), %ymm1
movq 0x98(%rsp), %rax
movslq 0x270(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x310(%rsp)
movq 0x310(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm1, 0x340(%rsp)
vmovdqa %ymm0, 0x320(%rsp)
vmovdqa 0x340(%rsp), %ymm0
vpaddq 0x320(%rsp), %ymm0, %ymm0
vmovdqa %ymm0, 0xa0(%rsp)
movq 0x218(%rsp), %rax
movslq 0x270(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x308(%rsp)
movq 0x308(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0xe0(%rsp)
vmovdqa 0xa0(%rsp), %ymm0
vmovdqa 0xe0(%rsp), %ymm1
callq 0xb1daa0
vmovdqa %ymm0, 0xa0(%rsp)
vmovdqa 0xa0(%rsp), %ymm0
vmovdqa 0xc0(%rsp), %ymm1
callq 0xb1daa0
vmovdqa %ymm0, 0xa0(%rsp)
vmovdqa 0xa0(%rsp), %ymm0
vmovdqa 0x1a0(%rsp), %ymm1
callq 0xb1daa0
vmovdqa %ymm0, 0xa0(%rsp)
movq 0x230(%rsp), %rax
movslq 0x270(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0xa0(%rsp), %ymm0
movq %rax, 0x418(%rsp)
vmovdqa %ymm0, 0x3e0(%rsp)
vmovdqa 0x3e0(%rsp), %ymm0
movq 0x418(%rsp), %rax
vmovdqa %ymm0, (%rax)
vmovdqa 0xa0(%rsp), %ymm0
vmovdqa 0x140(%rsp), %ymm1
callq 0xb1daa0
vmovdqa %ymm0, 0x140(%rsp)
vmovdqa 0xa0(%rsp), %ymm1
vmovdqa 0x1e0(%rsp), %ymm0
vmovdqa %ymm1, 0x540(%rsp)
vmovdqa %ymm0, 0x520(%rsp)
vmovdqa 0x540(%rsp), %ymm0
vpsubq 0x520(%rsp), %ymm0, %ymm0
vmovdqa %ymm0, 0xa0(%rsp)
vmovdqa 0xe0(%rsp), %ymm1
vmovdqa 0x1c0(%rsp), %ymm0
vmovdqa %ymm1, 0x500(%rsp)
vmovdqa %ymm0, 0x4e0(%rsp)
vmovdqa 0x500(%rsp), %ymm0
vpsubq 0x4e0(%rsp), %ymm0, %ymm0
vmovdqa %ymm0, 0xe0(%rsp)
vmovdqa 0xe0(%rsp), %ymm0
vmovdqa 0xa0(%rsp), %ymm1
callq 0xb1daa0
vmovdqa %ymm0, 0xe0(%rsp)
movq 0x218(%rsp), %rax
movslq 0x270(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0xe0(%rsp), %ymm0
movq %rax, 0x3d8(%rsp)
vmovdqa %ymm0, 0x3a0(%rsp)
vmovdqa 0x3a0(%rsp), %ymm0
movq 0x3d8(%rsp), %rax
vmovdqa %ymm0, (%rax)
vmovdqa 0xc0(%rsp), %ymm1
vmovdqa 0x1c0(%rsp), %ymm0
vmovdqa %ymm1, 0x4c0(%rsp)
vmovdqa %ymm0, 0x4a0(%rsp)
vmovdqa 0x4c0(%rsp), %ymm0
vpsubq 0x4a0(%rsp), %ymm0, %ymm0
vmovdqa %ymm0, 0xc0(%rsp)
vmovdqa 0xc0(%rsp), %ymm0
vmovdqa 0xa0(%rsp), %ymm1
callq 0xb1daa0
vmovdqa %ymm0, 0xc0(%rsp)
movq 0x228(%rsp), %rax
movslq 0x270(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x300(%rsp)
movq 0x300(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0xa0(%rsp)
movl 0x270(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x270(%rsp)
jmp 0xb1d0a8
movl $0x0, 0x268(%rsp)
movl 0x268(%rsp), %eax
cmpl 0x24c(%rsp), %eax
jge 0xb1d5cc
vmovaps 0xc0(%rsp), %ymm0
vxorps %xmm1, %xmm1, %xmm1
vpermq $0x90, %ymm0, %ymm0     # ymm0 = ymm0[0,0,1,2]
vpblendd $0x3, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[0,1],ymm0[2,3,4,5,6,7]
vmovdqa %ymm0, 0xc0(%rsp)
movl $0x0, 0x270(%rsp)
movl 0x270(%rsp), %eax
cmpl 0x248(%rsp), %eax
jge 0xb1d5b4
movq 0x230(%rsp), %rax
movslq 0x270(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x2f8(%rsp)
movq 0x2f8(%rsp), %rax
vmovaps (%rax), %ymm0
vmovaps %ymm0, 0xa0(%rsp)
vmovaps 0xa0(%rsp), %ymm0
vmovaps 0xc0(%rsp), %ymm1
callq 0xb1daa0
vmovaps %ymm0, 0xa0(%rsp)
movq 0x230(%rsp), %rax
movslq 0x270(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovaps 0xa0(%rsp), %ymm0
movq %rax, 0x398(%rsp)
vmovaps %ymm0, 0x360(%rsp)
vmovaps 0x360(%rsp), %ymm0
movq 0x398(%rsp), %rax
vmovaps %ymm0, (%rax)
vmovaps 0xa0(%rsp), %ymm0
vmovaps 0x140(%rsp), %ymm1
callq 0xb1daa0
vmovaps %ymm0, 0x140(%rsp)
vmovaps 0xa0(%rsp), %ymm1
vmovaps 0x1e0(%rsp), %ymm0
vmovaps %ymm1, 0x480(%rsp)
vmovaps %ymm0, 0x460(%rsp)
vmovaps 0x480(%rsp), %ymm0
vmovaps 0x460(%rsp), %ymm1
vpsubq %ymm1, %ymm0, %ymm0
vmovaps %ymm0, 0xa0(%rsp)
vmovaps 0xc0(%rsp), %ymm1
vmovaps 0x1c0(%rsp), %ymm0
vmovaps %ymm1, 0x440(%rsp)
vmovaps %ymm0, 0x420(%rsp)
vmovaps 0x440(%rsp), %ymm0
vmovaps 0x420(%rsp), %ymm1
vpsubq %ymm1, %ymm0, %ymm0
vmovaps %ymm0, 0xc0(%rsp)
vmovaps 0xc0(%rsp), %ymm1
vmovaps 0xa0(%rsp), %ymm0
vmovaps %ymm1, 0x600(%rsp)
vmovaps %ymm0, 0x5e0(%rsp)
vmovaps 0x600(%rsp), %ymm0
vmovaps 0x5e0(%rsp), %ymm1
vpcmpgtq %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x580(%rsp)
vmovdqa 0x580(%rsp), %ymm0
vpmovmskb %ymm0, %eax
cmpl $0x0, %eax
jne 0xb1d59c
jmp 0xb1d5ce
jmp 0xb1d59e
movl 0x270(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x270(%rsp)
jmp 0xb1d3f0
jmp 0xb1d5b6
movl 0x268(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x268(%rsp)
jmp 0xb1d3af
jmp 0xb1d5ce
movq 0x230(%rsp), %rax
movslq 0x244(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x2f0(%rsp)
movq 0x2f0(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0xa0(%rsp)
movl $0x0, 0x268(%rsp)
movl 0x268(%rsp), %eax
cmpl 0x240(%rsp), %eax
jge 0xb1d652
vmovaps 0xa0(%rsp), %ymm0
vxorps %xmm1, %xmm1, %xmm1
vpermq $0x90, %ymm0, %ymm0     # ymm0 = ymm0[0,0,1,2]
vpblendd $0x3, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[0,1],ymm0[2,3,4,5,6,7]
vmovdqa %ymm0, 0xa0(%rsp)
movl 0x268(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x268(%rsp)
jmp 0xb1d60d
movl 0xb8(%rsp), %edx
movq 0x110(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movslq 0x26c(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
vmovaps 0x140(%rsp), %ymm1
vmovaps 0x120(%rsp), %ymm0
vmovaps %ymm1, 0x5c0(%rsp)
vmovaps %ymm0, 0x5a0(%rsp)
vmovaps 0x5c0(%rsp), %ymm0
vmovaps 0x5a0(%rsp), %ymm1
vpcmpgtq %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x60(%rsp)
vmovdqa 0x60(%rsp), %ymm0
vmovdqa %ymm0, 0x560(%rsp)
vmovdqa 0x560(%rsp), %ymm0
vpmovmskb %ymm0, %eax
cmpl $0x0, %eax
je 0xb1d7ae
vmovdqa 0x140(%rsp), %ymm0
callq 0xb1dba0
movq %rax, 0x178(%rsp)
movq 0x178(%rsp), %rax
cmpq 0x118(%rsp), %rax
jle 0xb1d717
movq 0x110(%rsp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
jmp 0xb1d7c6
movq 0x178(%rsp), %rax
movq %rax, 0x298(%rsp)
movq 0x298(%rsp), %rax
movq %rax, 0x768(%rsp)
movq %rax, 0x760(%rsp)
movq %rax, 0x758(%rsp)
movq %rax, 0x750(%rsp)
vmovq 0x768(%rsp), %xmm1
vmovq 0x760(%rsp), %xmm0
vpunpcklqdq %xmm1, %xmm0, %xmm1 # xmm1 = xmm0[0],xmm1[0]
vmovq 0x758(%rsp), %xmm2
vmovq 0x750(%rsp), %xmm0
vpunpcklqdq %xmm2, %xmm0, %xmm2 # xmm2 = xmm0[0],xmm2[0]
vmovaps %xmm2, %xmm0
vinserti128 $0x1, %xmm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x720(%rsp)
vmovdqa 0x720(%rsp), %ymm0
vmovdqa %ymm0, 0x120(%rsp)
movl 0x26c(%rsp), %eax
movl %eax, 0x260(%rsp)
jmp 0xb1d7b0
movl 0x26c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x26c(%rsp)
jmp 0xb1cf39
movl $0x0, 0x270(%rsp)
movl 0x270(%rsp), %eax
cmpl 0x248(%rsp), %eax
jge 0xb1d84e
movq 0x230(%rsp), %rax
movslq 0x270(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x2e8(%rsp)
movq 0x2e8(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0x40(%rsp)
movq 0x110(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdi
vmovdqa 0x40(%rsp), %ymm0
movl 0x270(%rsp), %esi
movl 0x248(%rsp), %edx
callq 0xb1dbf0
movl 0x270(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x270(%rsp)
jmp 0xb1d7d1
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rax, 0x178(%rsp)
jne 0xb1d873
movq 0x110(%rsp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
movq 0x110(%rsp), %rdi
vzeroupper
callq 0x1c6390
cmpl $0x0, %eax
je 0xb1d8b5
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
movq %rax, 0x178(%rsp)
movl $0x0, 0x264(%rsp)
movl $0x0, 0x260(%rsp)
jmp 0xb1da0c
movl 0x260(%rsp), %eax
movl 0x26c(%rsp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0xb1d8f6
movq 0x220(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x230(%rsp), %rax
movq %rax, 0x220(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x230(%rsp)
jmp 0xb1d937
movl 0x260(%rsp), %eax
movl 0x26c(%rsp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jne 0xb1d935
movq 0x220(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x228(%rsp), %rax
movq %rax, 0x220(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x228(%rsp)
jmp 0xb1d937
movq 0x220(%rsp), %rax
movq %rax, 0x28(%rsp)
movl 0x248(%rsp), %eax
imull 0x24c(%rsp), %eax
movl %eax, 0x24(%rsp)
movl 0x25c(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x264(%rsp)
movl $0x0, 0x270(%rsp)
movl 0x270(%rsp), %eax
cmpl 0x24(%rsp), %eax
jge 0xb1da0a
movq 0x28(%rsp), %rax
movq (%rax), %rax
cmpq 0x178(%rsp), %rax
jne 0xb1d9e4
movl 0x270(%rsp), %eax
cltd
idivl 0x24c(%rsp)
movl %eax, 0x1c(%rsp)
movl 0x270(%rsp), %eax
cltd
idivl 0x24c(%rsp)
movl 0x1c(%rsp), %eax
imull 0x248(%rsp), %edx
addl %edx, %eax
movl %eax, 0x20(%rsp)
movl 0x20(%rsp), %eax
cmpl 0x264(%rsp), %eax
jge 0xb1d9e2
movl 0x20(%rsp), %eax
movl %eax, 0x264(%rsp)
jmp 0xb1d9e4
jmp 0xb1d9e6
movl 0x270(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x270(%rsp)
movq 0x28(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x28(%rsp)
jmp 0xb1d973
jmp 0xb1da0c
movq 0x178(%rsp), %rax
movl %eax, %ecx
movq 0x110(%rsp), %rax
movl %ecx, (%rax)
movl 0x264(%rsp), %ecx
movq 0x110(%rsp), %rax
movl %ecx, 0x4(%rax)
movl 0x260(%rsp), %ecx
movq 0x110(%rsp), %rax
movl %ecx, 0x8(%rax)
movq 0x218(%rsp), %rdi
callq 0x1c3590
movq 0x220(%rsp), %rdi
callq 0x1c3590
movq 0x228(%rsp), %rdi
callq 0x1c3590
movq 0x230(%rsp), %rdi
callq 0x1c3590
movq 0x110(%rsp), %rax
movq %rax, 0x290(%rsp)
movq 0x290(%rsp), %rax
movq %rbp, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)