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

    /* validate inputs */
    PARASAIL_CHECK_NULL(profile);
    PARASAIL_CHECK_NULL(profile->profile32.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 = 8; /* 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->profile32.score;
    vGapO = _mm256_set1_epi32(open);
    vGapE = _mm256_set1_epi32(gap);
    vZero = _mm256_setzero_si256();
    vNegInf = _mm256_set1_epi32(NEG_INF);
    score = NEG_INF;
    vMaxH = vNegInf;
    vMaxHUnit = vNegInf;
    maxp = INT32_MAX - (int32_t)(matrix->max+1);
    /*stop = profile->stop == INT32_MAX ?  INT32_MAX : (int32_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_32 | PARASAIL_FLAG_LANES_8;
#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_epi32(-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 4 bytes */
        vH = _mm256_load_si256(&pvHStore[segLen - 1]);
        vH = _mm256_slli_si256_rpl(vH, 4);

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

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

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

            /* Update vF value. */
            vF = _mm256_sub_epi32(vF, vGapE);
            vF = _mm256_max_epi32(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, 4);
            for (i=0; i<segLen; ++i) {
                vH = _mm256_load_si256(pvHStore + i);
                vH = _mm256_max_epi32(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_epi32(vH, vMaxH);
                vH = _mm256_sub_epi32(vH, vGapO);
                vF = _mm256_sub_epi32(vF, vGapE);
                if (! _mm256_movemask_epi8(_mm256_cmpgt_epi32(vF, vH))) goto end;
                /*vF = _mm256_max_epi32(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, 4);
            }
            result->rowcols->score_row[j] = (int32_t) _mm256_extract_epi32_rpl (vH, 7);
        }
#endif

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

    if (parasail_result_is_saturated(result)) {
        score = INT32_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. */
        {
            int32_t *t = (int32_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 $0x960, %rsp            # imm = 0x960
movq %rdi, 0x278(%rsp)
movq %rsi, 0x270(%rsp)
movl %edx, 0x26c(%rsp)
movl %ecx, 0x268(%rsp)
movl %r8d, 0x264(%rsp)
movl $0x0, 0x260(%rsp)
movl $0x0, 0x25c(%rsp)
movl $0x0, 0x258(%rsp)
movl $0x0, 0x254(%rsp)
movl $0x0, 0x250(%rsp)
movl $0x0, 0x24c(%rsp)
movq $0x0, 0x240(%rsp)
movl $0x0, 0x23c(%rsp)
movl $0x0, 0x238(%rsp)
movl $0x0, 0x234(%rsp)
movl $0x0, 0x230(%rsp)
movq $0x0, 0x228(%rsp)
movq $0x0, 0x220(%rsp)
movq $0x0, 0x218(%rsp)
movq $0x0, 0x210(%rsp)
movq $0x0, 0x208(%rsp)
movl $0x0, 0x17c(%rsp)
movl $0x0, 0x11c(%rsp)
movq $0x0, 0x110(%rsp)
cmpq $0x0, 0x278(%rsp)
jne 0xb2256f
movq 0x304a99(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1c9aa2(%rip), %rsi    # 0xcebfeb
leaq 0x1b847f(%rip), %rdx    # 0xcda9cf
leaq 0x19ff86(%rip), %rcx    # 0xcc24dd
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x280(%rsp)
jmp 0xb23a22
jmp 0xb22571
jmp 0xb22573
movq 0x278(%rsp), %rax
cmpq $0x0, 0x48(%rax)
jne 0xb225b9
movq 0x304a4f(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1c9a58(%rip), %rsi    # 0xcebfeb
leaq 0x1b8435(%rip), %rdx    # 0xcda9cf
leaq 0x1ca3e8(%rip), %rcx    # 0xcec989
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x280(%rsp)
jmp 0xb23a22
jmp 0xb225bb
jmp 0xb225bd
movq 0x278(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jne 0xb22603
movq 0x304a05(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1c9a0e(%rip), %rsi    # 0xcebfeb
leaq 0x1b83eb(%rip), %rdx    # 0xcda9cf
leaq 0x1ca331(%rip), %rcx    # 0xcec91c
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x280(%rsp)
jmp 0xb23a22
jmp 0xb22605
jmp 0xb22607
movq 0x278(%rsp), %rax
cmpl $0x0, 0x8(%rax)
jg 0xb2264c
movq 0x3049bc(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1ca0db(%rip), %rsi    # 0xcec701
leaq 0x1b83a2(%rip), %rdx    # 0xcda9cf
leaq 0x1ca2f8(%rip), %rcx    # 0xcec92c
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x280(%rsp)
jmp 0xb23a22
jmp 0xb2264e
jmp 0xb22650
cmpq $0x0, 0x270(%rsp)
jne 0xb22692
movq 0x304976(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1c997f(%rip), %rsi    # 0xcebfeb
leaq 0x1b835c(%rip), %rdx    # 0xcda9cf
leaq 0x1ca084(%rip), %rcx    # 0xcec6fe
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x280(%rsp)
jmp 0xb23a22
jmp 0xb22694
jmp 0xb22696
cmpl $0x0, 0x26c(%rsp)
jg 0xb226d7
movq 0x304931(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1ca050(%rip), %rsi    # 0xcec701
leaq 0x1b8317(%rip), %rdx    # 0xcda9cf
leaq 0x1ca056(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x280(%rsp)
jmp 0xb23a22
jmp 0xb226d9
jmp 0xb226db
cmpl $0x0, 0x268(%rsp)
jge 0xb2271c
movq 0x3048ec(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1ca025(%rip), %rsi    # 0xcec71b
leaq 0x1b82d2(%rip), %rdx    # 0xcda9cf
leaq 0x1ca02c(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x280(%rsp)
jmp 0xb23a22
jmp 0xb2271e
jmp 0xb22720
cmpl $0x0, 0x264(%rsp)
jge 0xb22761
movq 0x3048a7(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x1c9fe0(%rip), %rsi    # 0xcec71b
leaq 0x1b828d(%rip), %rdx    # 0xcda9cf
leaq 0x1c9fec(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x280(%rsp)
jmp 0xb23a22
jmp 0xb22763
movl $0x0, 0x260(%rsp)
movl $0x0, 0x25c(%rsp)
movl $0x0, 0x258(%rsp)
movl $0x0, 0x254(%rsp)
movl $0x0, 0x250(%rsp)
movq 0x278(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, 0x24c(%rsp)
movq 0x278(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x240(%rsp)
movl $0x8, 0x23c(%rsp)
movl 0x24c(%rsp), %esi
movl 0x23c(%rsp), %ecx
movl %ecx, %edx
movl %esi, %eax
leal -0x1(%rax,%rdx), %eax
cltd
idivl %ecx
movl %eax, 0x238(%rsp)
movl 0x24c(%rsp), %eax
decl %eax
movl 0x238(%rsp), %ecx
cltd
idivl %ecx
movl %edx, 0x234(%rsp)
movl 0x23c(%rsp), %ecx
movl 0x24c(%rsp), %eax
decl %eax
movl 0x238(%rsp), %esi
cltd
idivl %esi
notl %eax
addl %ecx, %eax
movl %eax, 0x230(%rsp)
movq 0x278(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, 0x228(%rsp)
movl 0x268(%rsp), %eax
movl %eax, 0x29c(%rsp)
movl 0x29c(%rsp), %eax
movl %eax, 0x14(%rsp)
movl %eax, 0x83c(%rsp)
movl %eax, 0x838(%rsp)
movl %eax, 0x834(%rsp)
movl %eax, 0x830(%rsp)
movl %eax, 0x82c(%rsp)
movl %eax, 0x828(%rsp)
movl %eax, 0x824(%rsp)
movl %eax, 0x820(%rsp)
movl 0x824(%rsp), %r8d
movl 0x828(%rsp), %edi
movl 0x82c(%rsp), %esi
movl 0x834(%rsp), %edx
movl 0x838(%rsp), %ecx
movl 0x83c(%rsp), %eax
vmovd 0x820(%rsp), %xmm0
vpinsrd $0x1, %r8d, %xmm0, %xmm0
vpinsrd $0x2, %edi, %xmm0, %xmm0
vpinsrd $0x3, %esi, %xmm0, %xmm0
vmovd 0x830(%rsp), %xmm1
vpinsrd $0x1, %edx, %xmm1, %xmm1
vpinsrd $0x2, %ecx, %xmm1, %xmm1
vpinsrd $0x3, %eax, %xmm1, %xmm1
vmovdqa %xmm1, 0x810(%rsp)
vmovdqa %xmm0, 0x800(%rsp)
vmovaps 0x800(%rsp), %ymm0
vmovaps %ymm0, 0x1e0(%rsp)
movl 0x264(%rsp), %eax
movl %eax, 0x298(%rsp)
movl 0x298(%rsp), %eax
movl %eax, 0x18(%rsp)
movl %eax, 0x87c(%rsp)
movl %eax, 0x878(%rsp)
movl %eax, 0x874(%rsp)
movl %eax, 0x870(%rsp)
movl %eax, 0x86c(%rsp)
movl %eax, 0x868(%rsp)
movl %eax, 0x864(%rsp)
movl %eax, 0x860(%rsp)
movl 0x864(%rsp), %r8d
movl 0x868(%rsp), %edi
movl 0x86c(%rsp), %esi
movl 0x874(%rsp), %edx
movl 0x878(%rsp), %ecx
movl 0x87c(%rsp), %eax
vmovd 0x860(%rsp), %xmm0
vpinsrd $0x1, %r8d, %xmm0, %xmm0
vpinsrd $0x2, %edi, %xmm0, %xmm0
vpinsrd $0x3, %esi, %xmm0, %xmm0
vmovd 0x870(%rsp), %xmm1
vpinsrd $0x1, %edx, %xmm1, %xmm1
vpinsrd $0x2, %ecx, %xmm1, %xmm1
vpinsrd $0x3, %eax, %xmm1, %xmm1
vmovdqa %xmm1, 0x850(%rsp)
vmovdqa %xmm0, 0x840(%rsp)
vmovaps 0x840(%rsp), %ymm0
vmovaps %ymm0, 0x1c0(%rsp)
vxorps %xmm0, %xmm0, %xmm0
vmovaps %ymm0, 0x2a0(%rsp)
vmovaps 0x2a0(%rsp), %ymm0
vmovaps %ymm0, 0x1a0(%rsp)
movl $0xc0000000, 0x294(%rsp) # imm = 0xC0000000
movl 0x294(%rsp), %eax
movl %eax, 0x1c(%rsp)
movl %eax, 0x8bc(%rsp)
movl %eax, 0x8b8(%rsp)
movl %eax, 0x8b4(%rsp)
movl %eax, 0x8b0(%rsp)
movl %eax, 0x8ac(%rsp)
movl %eax, 0x8a8(%rsp)
movl %eax, 0x8a4(%rsp)
movl %eax, 0x8a0(%rsp)
movl 0x8a4(%rsp), %edx
movl 0x8a8(%rsp), %ecx
movl 0x8ac(%rsp), %eax
movl 0x8b4(%rsp), %r8d
movl 0x8b8(%rsp), %edi
movl 0x8bc(%rsp), %esi
vmovd 0x8b0(%rsp), %xmm0
vpinsrd $0x1, %r8d, %xmm0, %xmm0
vpinsrd $0x2, %edi, %xmm0, %xmm0
vpinsrd $0x3, %esi, %xmm0, %xmm1
vmovd 0x8a0(%rsp), %xmm0
vpinsrd $0x1, %edx, %xmm0, %xmm0
vpinsrd $0x2, %ecx, %xmm0, %xmm0
vpinsrd $0x3, %eax, %xmm0, %xmm2
vmovaps %xmm2, %xmm0
vinserti128 $0x1, %xmm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x880(%rsp)
vmovdqa 0x880(%rsp), %ymm0
vmovdqa %ymm0, 0x180(%rsp)
movl $0xc0000000, 0x17c(%rsp) # imm = 0xC0000000
vmovdqa 0x180(%rsp), %ymm0
vmovdqa %ymm0, 0x140(%rsp)
vmovdqa 0x180(%rsp), %ymm0
vmovdqa %ymm0, 0x120(%rsp)
movq 0x240(%rsp), %rax
movl 0x1c(%rax), %ecx
addl $0x1, %ecx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subl %ecx, %eax
movl %eax, 0x11c(%rsp)
movl 0x238(%rsp), %edi
imull 0x23c(%rsp), %edi
movl 0x26c(%rsp), %esi
vzeroupper
callq 0x1c3af0
movq %rax, 0x110(%rsp)
cmpq $0x0, 0x110(%rsp)
jne 0xb22b6a
movq $0x0, 0x280(%rsp)
jmp 0xb23a22
movq 0x110(%rsp), %rax
movl 0xc(%rax), %ecx
orl $0x8400804, %ecx        # imm = 0x8400804
movl %ecx, 0xc(%rax)
movq 0x110(%rsp), %rax
movl 0xc(%rax), %ecx
orl $0x40000, %ecx          # imm = 0x40000
movl %ecx, 0xc(%rax)
movslq 0x238(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x220(%rsp)
movslq 0x238(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x218(%rsp)
movslq 0x238(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x210(%rsp)
movslq 0x238(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x208(%rsp)
cmpq $0x0, 0x220(%rsp)
jne 0xb22c16
movq $0x0, 0x280(%rsp)
jmp 0xb23a22
cmpq $0x0, 0x218(%rsp)
jne 0xb22c32
movq $0x0, 0x280(%rsp)
jmp 0xb23a22
cmpq $0x0, 0x210(%rsp)
jne 0xb22c4e
movq $0x0, 0x280(%rsp)
jmp 0xb23a22
cmpq $0x0, 0x208(%rsp)
jne 0xb22c6a
movq $0x0, 0x280(%rsp)
jmp 0xb23a22
movq 0x220(%rsp), %rdi
vmovaps 0x1a0(%rsp), %ymm0
movslq 0x238(%rsp), %rsi
callq 0x992f90
movq 0x208(%rsp), %rdi
movl 0x268(%rsp), %eax
negl %eax
movl %eax, 0x290(%rsp)
movl 0x290(%rsp), %eax
movl %eax, 0x10(%rsp)
movl %eax, 0x8fc(%rsp)
movl %eax, 0x8f8(%rsp)
movl %eax, 0x8f4(%rsp)
movl %eax, 0x8f0(%rsp)
movl %eax, 0x8ec(%rsp)
movl %eax, 0x8e8(%rsp)
movl %eax, 0x8e4(%rsp)
movl %eax, 0x8e0(%rsp)
movl 0x8e4(%rsp), %edx
movl 0x8e8(%rsp), %ecx
movl 0x8ec(%rsp), %eax
movl 0x8f4(%rsp), %r9d
movl 0x8f8(%rsp), %r8d
movl 0x8fc(%rsp), %esi
vmovd 0x8f0(%rsp), %xmm0
vpinsrd $0x1, %r9d, %xmm0, %xmm0
vpinsrd $0x2, %r8d, %xmm0, %xmm0
vpinsrd $0x3, %esi, %xmm0, %xmm1
vmovd 0x8e0(%rsp), %xmm0
vpinsrd $0x1, %edx, %xmm0, %xmm0
vpinsrd $0x2, %ecx, %xmm0, %xmm0
vpinsrd $0x3, %eax, %xmm0, %xmm2
vmovaps %xmm2, %xmm0
vinserti128 $0x1, %xmm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x8c0(%rsp)
vmovdqa 0x8c0(%rsp), %ymm0
movslq 0x238(%rsp), %rsi
callq 0x992f90
movl $0x0, 0x25c(%rsp)
movl 0x25c(%rsp), %eax
cmpl 0x26c(%rsp), %eax
jge 0xb23773
movq $0x0, 0x98(%rsp)
movq $0x0, 0x90(%rsp)
vmovaps 0x1a0(%rsp), %ymm0
vmovaps %ymm0, 0xc0(%rsp)
movq 0x220(%rsp), %rax
movl 0x238(%rsp), %ecx
decl %ecx
movslq %ecx, %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
vperm2i128 $0x28, %ymm0, %ymm1, %ymm1 # ymm1 = zero,zero,ymm0[0,1]
vpalignr $0xc, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[12,13,14,15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11],ymm1[28,29,30,31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27]
vmovdqa %ymm0, 0xa0(%rsp)
movq 0x228(%rsp), %rax
movq 0x240(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x270(%rsp), %rdx
movslq 0x25c(%rsp), %rsi
movzbl (%rdx,%rsi), %edx
movl (%rcx,%rdx,4), %ecx
imull 0x238(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x98(%rsp)
movl 0x250(%rsp), %eax
movl 0x25c(%rsp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jne 0xb22ea9
movq 0x210(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x218(%rsp), %rax
movq %rax, 0x210(%rsp)
movq 0x220(%rsp), %rax
movq %rax, 0x218(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0xb22ed9
movq 0x218(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x220(%rsp), %rax
movq %rax, 0x218(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x220(%rsp)
movl $0x0, 0x260(%rsp)
movl 0x260(%rsp), %eax
cmpl 0x238(%rsp), %eax
jge 0xb232c8
vmovdqa 0xa0(%rsp), %ymm1
movq 0x98(%rsp), %rax
movslq 0x260(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x2f0(%rsp)
movq 0x2f0(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm1, 0x320(%rsp)
vmovdqa %ymm0, 0x300(%rsp)
vmovdqa 0x320(%rsp), %ymm0
vmovdqa 0x300(%rsp), %ymm1
vpaddd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0xa0(%rsp)
movq 0x208(%rsp), %rax
movslq 0x260(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x2e8(%rsp)
movq 0x2e8(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0xe0(%rsp)
vmovdqa 0xa0(%rsp), %ymm1
vmovdqa 0xe0(%rsp), %ymm0
vmovdqa %ymm1, 0x520(%rsp)
vmovdqa %ymm0, 0x500(%rsp)
vmovdqa 0x520(%rsp), %ymm0
vmovdqa 0x500(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0xa0(%rsp)
vmovdqa 0xa0(%rsp), %ymm1
vmovdqa 0xc0(%rsp), %ymm0
vmovdqa %ymm1, 0x4e0(%rsp)
vmovdqa %ymm0, 0x4c0(%rsp)
vmovdqa 0x4e0(%rsp), %ymm0
vmovdqa 0x4c0(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0xa0(%rsp)
vmovdqa 0xa0(%rsp), %ymm1
vmovdqa 0x1a0(%rsp), %ymm0
vmovdqa %ymm1, 0x4a0(%rsp)
vmovdqa %ymm0, 0x480(%rsp)
vmovdqa 0x4a0(%rsp), %ymm0
vmovdqa 0x480(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0xa0(%rsp)
movq 0x220(%rsp), %rax
movslq 0x260(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0xa0(%rsp), %ymm0
movq %rax, 0x5f8(%rsp)
vmovdqa %ymm0, 0x5c0(%rsp)
vmovdqa 0x5c0(%rsp), %ymm0
movq 0x5f8(%rsp), %rax
vmovdqa %ymm0, (%rax)
vmovdqa 0xa0(%rsp), %ymm1
vmovdqa 0x140(%rsp), %ymm0
vmovdqa %ymm1, 0x460(%rsp)
vmovdqa %ymm0, 0x440(%rsp)
vmovdqa 0x460(%rsp), %ymm0
vmovdqa 0x440(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x140(%rsp)
vmovdqa 0xa0(%rsp), %ymm1
vmovdqa 0x1e0(%rsp), %ymm0
vmovdqa %ymm1, 0x720(%rsp)
vmovdqa %ymm0, 0x700(%rsp)
vmovdqa 0x720(%rsp), %ymm0
vmovdqa 0x700(%rsp), %ymm1
vpsubd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0xa0(%rsp)
vmovdqa 0xe0(%rsp), %ymm1
vmovdqa 0x1c0(%rsp), %ymm0
vmovdqa %ymm1, 0x6e0(%rsp)
vmovdqa %ymm0, 0x6c0(%rsp)
vmovdqa 0x6e0(%rsp), %ymm0
vmovdqa 0x6c0(%rsp), %ymm1
vpsubd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0xe0(%rsp)
vmovdqa 0xe0(%rsp), %ymm1
vmovdqa 0xa0(%rsp), %ymm0
vmovdqa %ymm1, 0x420(%rsp)
vmovdqa %ymm0, 0x400(%rsp)
vmovdqa 0x420(%rsp), %ymm0
vmovdqa 0x400(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0xe0(%rsp)
movq 0x208(%rsp), %rax
movslq 0x260(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0xe0(%rsp), %ymm0
movq %rax, 0x5b8(%rsp)
vmovdqa %ymm0, 0x580(%rsp)
vmovdqa 0x580(%rsp), %ymm0
movq 0x5b8(%rsp), %rax
vmovdqa %ymm0, (%rax)
vmovdqa 0xc0(%rsp), %ymm1
vmovdqa 0x1c0(%rsp), %ymm0
vmovdqa %ymm1, 0x6a0(%rsp)
vmovdqa %ymm0, 0x680(%rsp)
vmovdqa 0x6a0(%rsp), %ymm0
vmovdqa 0x680(%rsp), %ymm1
vpsubd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0xc0(%rsp)
vmovdqa 0xc0(%rsp), %ymm1
vmovdqa 0xa0(%rsp), %ymm0
vmovdqa %ymm1, 0x3e0(%rsp)
vmovdqa %ymm0, 0x3c0(%rsp)
vmovdqa 0x3e0(%rsp), %ymm0
vmovdqa 0x3c0(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0xc0(%rsp)
movq 0x218(%rsp), %rax
movslq 0x260(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x2e0(%rsp)
movq 0x2e0(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0xa0(%rsp)
movl 0x260(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x260(%rsp)
jmp 0xb22ee4
movl $0x0, 0x258(%rsp)
movl 0x258(%rsp), %eax
cmpl 0x23c(%rsp), %eax
jge 0xb23533
vmovaps 0xc0(%rsp), %ymm0
vperm2i128 $0x28, %ymm0, %ymm1, %ymm1 # ymm1 = zero,zero,ymm0[0,1]
vpalignr $0xc, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[12,13,14,15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11],ymm1[28,29,30,31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27]
vmovdqa %ymm0, 0xc0(%rsp)
movl $0x0, 0x260(%rsp)
movl 0x260(%rsp), %eax
cmpl 0x238(%rsp), %eax
jge 0xb2351b
movq 0x220(%rsp), %rax
movslq 0x260(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x2d8(%rsp)
movq 0x2d8(%rsp), %rax
vmovaps (%rax), %ymm0
vmovaps %ymm0, 0xa0(%rsp)
vmovaps 0xa0(%rsp), %ymm1
vmovaps 0xc0(%rsp), %ymm0
vmovaps %ymm1, 0x3a0(%rsp)
vmovaps %ymm0, 0x380(%rsp)
vmovaps 0x3a0(%rsp), %ymm0
vmovaps 0x380(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovaps %ymm0, 0xa0(%rsp)
movq 0x220(%rsp), %rax
movslq 0x260(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovaps 0xa0(%rsp), %ymm0
movq %rax, 0x578(%rsp)
vmovaps %ymm0, 0x540(%rsp)
vmovaps 0x540(%rsp), %ymm0
movq 0x578(%rsp), %rax
vmovaps %ymm0, (%rax)
vmovaps 0xa0(%rsp), %ymm1
vmovaps 0x140(%rsp), %ymm0
vmovaps %ymm1, 0x360(%rsp)
vmovaps %ymm0, 0x340(%rsp)
vmovaps 0x360(%rsp), %ymm0
vmovaps 0x340(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovaps %ymm0, 0x140(%rsp)
vmovaps 0xa0(%rsp), %ymm1
vmovaps 0x1e0(%rsp), %ymm0
vmovaps %ymm1, 0x660(%rsp)
vmovaps %ymm0, 0x640(%rsp)
vmovaps 0x660(%rsp), %ymm0
vmovaps 0x640(%rsp), %ymm1
vpsubd %ymm1, %ymm0, %ymm0
vmovaps %ymm0, 0xa0(%rsp)
vmovaps 0xc0(%rsp), %ymm1
vmovaps 0x1c0(%rsp), %ymm0
vmovaps %ymm1, 0x620(%rsp)
vmovaps %ymm0, 0x600(%rsp)
vmovaps 0x620(%rsp), %ymm0
vmovaps 0x600(%rsp), %ymm1
vpsubd %ymm1, %ymm0, %ymm0
vmovaps %ymm0, 0xc0(%rsp)
vmovaps 0xc0(%rsp), %ymm1
vmovaps 0xa0(%rsp), %ymm0
vmovaps %ymm1, 0x7e0(%rsp)
vmovaps %ymm0, 0x7c0(%rsp)
vmovaps 0x7e0(%rsp), %ymm0
vmovaps 0x7c0(%rsp), %ymm1
vpcmpgtd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x760(%rsp)
vmovdqa 0x760(%rsp), %ymm0
vpmovmskb %ymm0, %eax
cmpl $0x0, %eax
jne 0xb23503
jmp 0xb23535
jmp 0xb23505
movl 0x260(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x260(%rsp)
jmp 0xb23310
jmp 0xb2351d
movl 0x258(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x258(%rsp)
jmp 0xb232d3
jmp 0xb23535
movq 0x220(%rsp), %rax
movslq 0x234(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x2d0(%rsp)
movq 0x2d0(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0xa0(%rsp)
movl $0x0, 0x258(%rsp)
movl 0x258(%rsp), %eax
cmpl 0x230(%rsp), %eax
jge 0xb235b5
vmovaps 0xa0(%rsp), %ymm0
vperm2i128 $0x28, %ymm0, %ymm1, %ymm1 # ymm1 = zero,zero,ymm0[0,1]
vpalignr $0xc, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[12,13,14,15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11],ymm1[28,29,30,31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27]
vmovdqa %ymm0, 0xa0(%rsp)
movl 0x258(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x258(%rsp)
jmp 0xb23574
movl 0xbc(%rsp), %edx
movq 0x110(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movslq 0x25c(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
vmovaps 0x140(%rsp), %ymm1
vmovaps 0x120(%rsp), %ymm0
vmovaps %ymm1, 0x7a0(%rsp)
vmovaps %ymm0, 0x780(%rsp)
vmovaps 0x7a0(%rsp), %ymm0
vmovaps 0x780(%rsp), %ymm1
vpcmpgtd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x60(%rsp)
vmovdqa 0x60(%rsp), %ymm0
vmovdqa %ymm0, 0x740(%rsp)
vmovdqa 0x740(%rsp), %ymm0
vpmovmskb %ymm0, %eax
cmpl $0x0, %eax
je 0xb2375b
vmovdqa 0x140(%rsp), %ymm0
callq 0xb23a30
movl %eax, 0x17c(%rsp)
movl 0x17c(%rsp), %eax
cmpl 0x11c(%rsp), %eax
jle 0xb23676
movq 0x110(%rsp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
jmp 0xb23773
movl 0x17c(%rsp), %eax
movl %eax, 0x28c(%rsp)
movl 0x28c(%rsp), %eax
movl %eax, 0xc(%rsp)
movl %eax, 0x94c(%rsp)
movl %eax, 0x948(%rsp)
movl %eax, 0x944(%rsp)
movl %eax, 0x940(%rsp)
movl %eax, 0x93c(%rsp)
movl %eax, 0x938(%rsp)
movl %eax, 0x934(%rsp)
movl %eax, 0x930(%rsp)
movl 0x934(%rsp), %edx
movl 0x938(%rsp), %ecx
movl 0x93c(%rsp), %eax
movl 0x944(%rsp), %r8d
movl 0x948(%rsp), %edi
movl 0x94c(%rsp), %esi
vmovd 0x940(%rsp), %xmm0
vpinsrd $0x1, %r8d, %xmm0, %xmm0
vpinsrd $0x2, %edi, %xmm0, %xmm0
vpinsrd $0x3, %esi, %xmm0, %xmm1
vmovd 0x930(%rsp), %xmm0
vpinsrd $0x1, %edx, %xmm0, %xmm0
vpinsrd $0x2, %ecx, %xmm0, %xmm0
vpinsrd $0x3, %eax, %xmm0, %xmm2
vmovaps %xmm2, %xmm0
vinserti128 $0x1, %xmm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x900(%rsp)
vmovdqa 0x900(%rsp), %ymm0
vmovdqa %ymm0, 0x120(%rsp)
movl 0x25c(%rsp), %eax
movl %eax, 0x250(%rsp)
jmp 0xb2375d
movl 0x25c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x25c(%rsp)
jmp 0xb22d79
movl $0x0, 0x260(%rsp)
movl 0x260(%rsp), %eax
cmpl 0x238(%rsp), %eax
jge 0xb237fb
movq 0x220(%rsp), %rax
movslq 0x260(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x2c8(%rsp)
movq 0x2c8(%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 0x260(%rsp), %esi
movl 0x238(%rsp), %edx
callq 0xb23af0
movl 0x260(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x260(%rsp)
jmp 0xb2377e
cmpl $0x7fffffff, 0x17c(%rsp) # imm = 0x7FFFFFFF
jne 0xb23819
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 0xb23854
movl $0x7fffffff, 0x17c(%rsp) # imm = 0x7FFFFFFF
movl $0x0, 0x254(%rsp)
movl $0x0, 0x250(%rsp)
jmp 0xb239a9
movl 0x250(%rsp), %eax
movl 0x25c(%rsp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0xb23895
movq 0x210(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x220(%rsp), %rax
movq %rax, 0x210(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0xb238d6
movl 0x250(%rsp), %eax
movl 0x25c(%rsp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jne 0xb238d4
movq 0x210(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x218(%rsp), %rax
movq %rax, 0x210(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x218(%rsp)
jmp 0xb238d6
movq 0x210(%rsp), %rax
movq %rax, 0x28(%rsp)
movl 0x238(%rsp), %eax
imull 0x23c(%rsp), %eax
movl %eax, 0x24(%rsp)
movl 0x24c(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x254(%rsp)
movl $0x0, 0x260(%rsp)
movl 0x260(%rsp), %eax
cmpl 0x24(%rsp), %eax
jge 0xb239a7
movq 0x28(%rsp), %rax
movl (%rax), %eax
cmpl 0x17c(%rsp), %eax
jne 0xb23981
movl 0x260(%rsp), %eax
cltd
idivl 0x23c(%rsp)
movl %eax, 0x8(%rsp)
movl 0x260(%rsp), %eax
cltd
idivl 0x23c(%rsp)
movl 0x8(%rsp), %eax
imull 0x238(%rsp), %edx
addl %edx, %eax
movl %eax, 0x20(%rsp)
movl 0x20(%rsp), %eax
cmpl 0x254(%rsp), %eax
jge 0xb2397f
movl 0x20(%rsp), %eax
movl %eax, 0x254(%rsp)
jmp 0xb23981
jmp 0xb23983
movl 0x260(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x260(%rsp)
movq 0x28(%rsp), %rax
addq $0x4, %rax
movq %rax, 0x28(%rsp)
jmp 0xb23912
jmp 0xb239a9
movl 0x17c(%rsp), %ecx
movq 0x110(%rsp), %rax
movl %ecx, (%rax)
movl 0x254(%rsp), %ecx
movq 0x110(%rsp), %rax
movl %ecx, 0x4(%rax)
movl 0x250(%rsp), %ecx
movq 0x110(%rsp), %rax
movl %ecx, 0x8(%rax)
movq 0x208(%rsp), %rdi
callq 0x1c3590
movq 0x210(%rsp), %rdi
callq 0x1c3590
movq 0x218(%rsp), %rdi
callq 0x1c3590
movq 0x220(%rsp), %rdi
callq 0x1c3590
movq 0x110(%rsp), %rax
movq %rax, 0x280(%rsp)
movq 0x280(%rsp), %rax
movq %rbp, %rsp
popq %rbp
retq
nop