// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sg_scan_avx2_256_32.c
// Function: parasail_sg_flags_rowcol_scan_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,
        int s1_beg, int s1_end, int s2_beg, int s2_end)
{
    /* 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;
    int32_t offset = 0;
    int32_t position = 0;
    __m256i* restrict pvP = NULL;
    __m256i* restrict pvE = NULL;
    int32_t* restrict boundary = NULL;
    __m256i* restrict pvHt = NULL;
    __m256i* restrict pvH = NULL;
    __m256i* restrict pvGapper = NULL;
    __m256i vGapO;
    __m256i vGapE;
    int32_t NEG_LIMIT = 0;
    int32_t POS_LIMIT = 0;
    __m256i vZero;
    int32_t score = 0;
    __m256i vNegLimit;
    __m256i vPosLimit;
    __m256i vSaturationCheckMin;
    __m256i vSaturationCheckMax;
    __m256i vMaxH;
    __m256i vPosMask;
    __m256i vNegInfFront;
    __m256i vSegLenXgap;
    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;
    s1Len = profile->s1Len;
    end_query = s1Len-1;
    end_ref = s2Len-1;
    matrix = profile->matrix;
    segWidth = 8; /* number of values in vector unit */
    segLen = (s1Len + segWidth - 1) / segWidth;
    offset = (s1Len - 1) % segLen;
    position = (segWidth - 1) - (s1Len - 1) / segLen;
    pvP = (__m256i*)profile->profile32.score;
    vGapO = _mm256_set1_epi32(open);
    vGapE = _mm256_set1_epi32(gap);
    NEG_LIMIT = (-open < matrix->min ? INT32_MIN + open : INT32_MIN - matrix->min) + 1;
    POS_LIMIT = INT32_MAX - matrix->max - 1;
    vZero = _mm256_setzero_si256();
    score = NEG_LIMIT;
    vNegLimit = _mm256_set1_epi32(NEG_LIMIT);
    vPosLimit = _mm256_set1_epi32(POS_LIMIT);
    vSaturationCheckMin = vPosLimit;
    vSaturationCheckMax = vNegLimit;
    vMaxH = vNegLimit;
    vPosMask = _mm256_cmpeq_epi32(_mm256_set1_epi32(position),
            _mm256_set_epi32(0,1,2,3,4,5,6,7));
    vNegInfFront = vZero;
    vNegInfFront = _mm256_insert_epi32_rpl(vNegInfFront, NEG_LIMIT, 0);
    vSegLenXgap = _mm256_add_epi32(vNegInfFront,
            _mm256_slli_si256_rpl(_mm256_set1_epi32(-segLen*gap), 4));

    /* 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_SG | PARASAIL_FLAG_SCAN
        | PARASAIL_FLAG_BITS_32 | PARASAIL_FLAG_LANES_8;
    result->flag |= s1_beg ? PARASAIL_FLAG_SG_S1_BEG : 0;
    result->flag |= s1_end ? PARASAIL_FLAG_SG_S1_END : 0;
    result->flag |= s2_beg ? PARASAIL_FLAG_SG_S2_BEG : 0;
    result->flag |= s2_end ? PARASAIL_FLAG_SG_S2_END : 0;
#ifdef PARASAIL_TABLE
    result->flag |= PARASAIL_FLAG_TABLE;
#endif
#ifdef PARASAIL_ROWCOL
    result->flag |= PARASAIL_FLAG_ROWCOL;
#endif

    /* initialize heap variables */
    pvE = parasail_memalign___m256i(32, segLen);
    boundary = parasail_memalign_int32_t(32, s2Len+1);
    pvHt= parasail_memalign___m256i(32, segLen);
    pvH = parasail_memalign___m256i(32, segLen);
    pvGapper = parasail_memalign___m256i(32, segLen);

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

    /* initialize H and E */
    {
        int32_t index = 0;
        for (i=0; i<segLen; ++i) {
            int32_t segNum = 0;
            __m256i_32_t h;
            __m256i_32_t e;
            for (segNum=0; segNum<segWidth; ++segNum) {
                int64_t tmp = s1_beg ? 0 : (-open-gap*(segNum*segLen+i));
                h.v[segNum] = tmp < INT32_MIN ? INT32_MIN : tmp;
                tmp = tmp - open;
                e.v[segNum] = tmp < INT32_MIN ? INT32_MIN : tmp;
            }
            _mm256_store_si256(&pvH[index], h.m);
            _mm256_store_si256(&pvE[index], e.m);
            ++index;
        }
    }

    /* initialize uppder boundary */
    {
        boundary[0] = 0;
        for (i=1; i<=s2Len; ++i) {
            int64_t tmp = s2_beg ? 0 : (-open-gap*(i-1));
            boundary[i] = tmp < INT32_MIN ? INT32_MIN : tmp;
        }
    }

    {
        __m256i vGapper = _mm256_sub_epi32(vZero,vGapO);
        for (i=segLen-1; i>=0; --i) {
            _mm256_store_si256(pvGapper+i, vGapper);
            vGapper = _mm256_sub_epi32(vGapper, vGapE);
            /* long queries and/or large penalties will break the pseudo prefix scan */
            vSaturationCheckMin = _mm256_min_epi32(vSaturationCheckMin, vGapper);
        }
    }

    /* 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, 4);
        vHp = _mm256_insert_epi32_rpl(vHp, boundary[j], 0);
        pvW = pvP + matrix->mapper[(unsigned char)s2[j]]*segLen;
        vHt = _mm256_sub_epi32(vNegLimit, pvGapper[0]);
        vF = vNegLimit;
        for (i=0; i<segLen; ++i) {
            vH = _mm256_load_si256(pvH+i);
            vE = _mm256_load_si256(pvE+i);
            vW = _mm256_load_si256(pvW+i);
            vE = _mm256_max_epi32(
                    _mm256_sub_epi32(vE, vGapE),
                    _mm256_sub_epi32(vH, vGapO));
            vHp = _mm256_add_epi32(vHp, vW);
            vF = _mm256_max_epi32(vF, _mm256_add_epi32(vHt, pvGapper[i]));
            vHt = _mm256_max_epi32(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, 4);
        vHt = _mm256_insert_epi32_rpl(vHt, boundary[j+1], 0);
        vF = _mm256_max_epi32(vF, _mm256_add_epi32(vHt, pvGapper[0]));
        for (i=0; i<segWidth-2; ++i) {
            __m256i vFt = _mm256_slli_si256_rpl(vF, 4);
            vFt = _mm256_add_epi32(vFt, vSegLenXgap);
            vF = _mm256_max_epi32(vF, vFt);
        }

        /* calculate final H */
        vF = _mm256_slli_si256_rpl(vF, 4);
        vF = _mm256_add_epi32(vF, vNegInfFront);
        vH = _mm256_max_epi32(vHt, vF);
        for (i=0; i<segLen; ++i) {
            vHt = _mm256_load_si256(pvHt+i);
            vF = _mm256_max_epi32(
                    _mm256_sub_epi32(vF, vGapE),
                    _mm256_sub_epi32(vH, vGapO));
            vH = _mm256_max_epi32(vHt, vF);
            _mm256_store_si256(pvH+i, vH);
            vSaturationCheckMin = _mm256_min_epi32(vSaturationCheckMin, vH);
            vSaturationCheckMin = _mm256_min_epi32(vSaturationCheckMin, vF);
            vSaturationCheckMax = _mm256_max_epi32(vSaturationCheckMax, vH);
#ifdef PARASAIL_TABLE
            arr_store_si256(result->tables->score_table, vH, i, segLen, j, s2Len);
#endif
        } 

        /* extract vector containing last value from column */
        {
            __m256i vCompare;
            vH = _mm256_load_si256(pvH + offset);
            vCompare = _mm256_and_si256(vPosMask, _mm256_cmpgt_epi32(vH, vMaxH));
            vMaxH = _mm256_max_epi32(vH, vMaxH);
            if (_mm256_movemask_epi8(vCompare)) {
                end_ref = j;
            }
#ifdef PARASAIL_ROWCOL
            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
        }
    }

#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

    /* max last value from all columns */
    if (s2_end)
    {
        for (k=0; k<position; ++k) {
            vMaxH = _mm256_slli_si256_rpl(vMaxH, 4);
        }
        score = (int32_t) _mm256_extract_epi32_rpl(vMaxH, 7);
        end_query = s1Len-1;
    }

    /* max of last column */
    if (s1_end)
    {
        /* Trace the alignment ending position on read. */
        int32_t *t = (int32_t*)pvH;
        int32_t column_len = segLen * segWidth;
        for (i = 0; i<column_len; ++i, ++t) {
            int32_t temp = i / segWidth + i % segWidth * segLen;
            if (temp >= s1Len) continue;
            if (*t > score) {
                score = *t;
                end_query = temp;
                end_ref = s2Len-1;
            }
            else if (*t == score && end_ref == s2Len-1 && temp < end_query) {
                end_query = temp;
            }
        }
    }

    if (!s1_end && !s2_end) {
        /* extract last value from the last column */
        {
            __m256i vH = _mm256_load_si256(pvH + offset);
            for (k=0; k<position; ++k) {
                vH = _mm256_slli_si256_rpl(vH, 4);
            }
            score = (int32_t) _mm256_extract_epi32_rpl (vH, 7);
            end_ref = s2Len - 1;
            end_query = s1Len - 1;
        }
    }

    if (_mm256_movemask_epi8(_mm256_or_si256(
            _mm256_cmplt_epi32_rpl(vSaturationCheckMin, vNegLimit),
            _mm256_cmpgt_epi32(vSaturationCheckMax, vPosLimit)))) {
        result->flag |= PARASAIL_FLAG_SATURATED;
        score = 0;
        end_query = 0;
        end_ref = 0;
    }

    result->score = score;
    result->end_query = end_query;
    result->end_ref = end_ref;

    parasail_free(pvGapper);
    parasail_free(pvH);
    parasail_free(pvHt);
    parasail_free(boundary);
    parasail_free(pvE);

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
andq $-0x20, %rsp
subq $0x1160, %rsp           # imm = 0x1160
movl 0x20(%rbp), %eax
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, 0x4b0(%rsp)
movq %rsi, 0x4a8(%rsp)
movl %edx, 0x4a4(%rsp)
movl %ecx, 0x4a0(%rsp)
movl %r8d, 0x49c(%rsp)
movl %r9d, 0x498(%rsp)
movl $0x0, 0x494(%rsp)
movl $0x0, 0x490(%rsp)
movl $0x0, 0x48c(%rsp)
movl $0x0, 0x488(%rsp)
movl $0x0, 0x484(%rsp)
movl $0x0, 0x480(%rsp)
movq $0x0, 0x478(%rsp)
movl $0x0, 0x474(%rsp)
movl $0x0, 0x470(%rsp)
movl $0x0, 0x46c(%rsp)
movl $0x0, 0x468(%rsp)
movq $0x0, 0x460(%rsp)
movq $0x0, 0x458(%rsp)
movq $0x0, 0x450(%rsp)
movq $0x0, 0x448(%rsp)
movq $0x0, 0x440(%rsp)
movq $0x0, 0x438(%rsp)
movl $0x0, 0x3dc(%rsp)
movl $0x0, 0x3d8(%rsp)
movl $0x0, 0x39c(%rsp)
movq $0x0, 0x278(%rsp)
cmpq $0x0, 0x4b0(%rsp)
jne 0xacabb7
movq 0x35c451(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x22145a(%rip), %rsi    # 0xcebfeb
leaq 0x2264ae(%rip), %rdx    # 0xcf1046
leaq 0x1f793e(%rip), %rcx    # 0xcc24dd
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x4b8(%rsp)
jmp 0xaccca2
jmp 0xacabb9
jmp 0xacabbb
movq 0x4b0(%rsp), %rax
cmpq $0x0, 0x48(%rax)
jne 0xacac01
movq 0x35c407(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x221410(%rip), %rsi    # 0xcebfeb
leaq 0x226464(%rip), %rdx    # 0xcf1046
leaq 0x221da0(%rip), %rcx    # 0xcec989
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x4b8(%rsp)
jmp 0xaccca2
jmp 0xacac03
jmp 0xacac05
movq 0x4b0(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jne 0xacac4b
movq 0x35c3bd(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x2213c6(%rip), %rsi    # 0xcebfeb
leaq 0x22641a(%rip), %rdx    # 0xcf1046
leaq 0x221ce9(%rip), %rcx    # 0xcec91c
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x4b8(%rsp)
jmp 0xaccca2
jmp 0xacac4d
jmp 0xacac4f
movq 0x4b0(%rsp), %rax
cmpl $0x0, 0x8(%rax)
jg 0xacac94
movq 0x35c374(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x221a93(%rip), %rsi    # 0xcec701
leaq 0x2263d1(%rip), %rdx    # 0xcf1046
leaq 0x221cb0(%rip), %rcx    # 0xcec92c
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x4b8(%rsp)
jmp 0xaccca2
jmp 0xacac96
jmp 0xacac98
cmpq $0x0, 0x4a8(%rsp)
jne 0xacacda
movq 0x35c32e(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x221337(%rip), %rsi    # 0xcebfeb
leaq 0x22638b(%rip), %rdx    # 0xcf1046
leaq 0x221a3c(%rip), %rcx    # 0xcec6fe
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x4b8(%rsp)
jmp 0xaccca2
jmp 0xacacdc
jmp 0xacacde
cmpl $0x0, 0x4a4(%rsp)
jg 0xacad1f
movq 0x35c2e9(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x221a08(%rip), %rsi    # 0xcec701
leaq 0x226346(%rip), %rdx    # 0xcf1046
leaq 0x221a0e(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x4b8(%rsp)
jmp 0xaccca2
jmp 0xacad21
jmp 0xacad23
cmpl $0x0, 0x4a0(%rsp)
jge 0xacad64
movq 0x35c2a4(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x2219dd(%rip), %rsi    # 0xcec71b
leaq 0x226301(%rip), %rdx    # 0xcf1046
leaq 0x2219e4(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x4b8(%rsp)
jmp 0xaccca2
jmp 0xacad66
jmp 0xacad68
cmpl $0x0, 0x49c(%rsp)
jge 0xacada9
movq 0x35c25f(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0x221998(%rip), %rsi    # 0xcec71b
leaq 0x2262bc(%rip), %rdx    # 0xcf1046
leaq 0x2219a4(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, 0x4b8(%rsp)
jmp 0xaccca2
jmp 0xacadab
movl $0x0, 0x494(%rsp)
movl $0x0, 0x490(%rsp)
movl $0x0, 0x48c(%rsp)
movq 0x4b0(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, 0x480(%rsp)
movl 0x480(%rsp), %eax
decl %eax
movl %eax, 0x488(%rsp)
movl 0x4a4(%rsp), %eax
decl %eax
movl %eax, 0x484(%rsp)
movq 0x4b0(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x478(%rsp)
movl $0x8, 0x474(%rsp)
movl 0x480(%rsp), %esi
movl 0x474(%rsp), %ecx
movl %ecx, %edx
movl %esi, %eax
leal -0x1(%rax,%rdx), %eax
cltd
idivl %ecx
movl %eax, 0x470(%rsp)
movl 0x480(%rsp), %eax
decl %eax
movl 0x470(%rsp), %ecx
cltd
idivl %ecx
movl %edx, 0x46c(%rsp)
movl 0x474(%rsp), %ecx
movl 0x480(%rsp), %eax
decl %eax
movl 0x470(%rsp), %esi
cltd
idivl %esi
notl %eax
addl %ecx, %eax
movl %eax, 0x468(%rsp)
movq 0x4b0(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, 0x460(%rsp)
movl 0x4a0(%rsp), %eax
movl %eax, 0x4dc(%rsp)
movl 0x4dc(%rsp), %eax
movl %eax, 0x58(%rsp)
movl %eax, 0x57c(%rsp)
movl %eax, 0x578(%rsp)
movl %eax, 0x574(%rsp)
movl %eax, 0x570(%rsp)
movl %eax, 0x56c(%rsp)
movl %eax, 0x568(%rsp)
movl %eax, 0x564(%rsp)
movl %eax, 0x560(%rsp)
movl 0x564(%rsp), %r8d
movl 0x568(%rsp), %edi
movl 0x56c(%rsp), %esi
movl 0x574(%rsp), %edx
movl 0x578(%rsp), %ecx
movl 0x57c(%rsp), %eax
vmovd 0x560(%rsp), %xmm0
vpinsrd $0x1, %r8d, %xmm0, %xmm0
vpinsrd $0x2, %edi, %xmm0, %xmm0
vpinsrd $0x3, %esi, %xmm0, %xmm0
vmovd 0x570(%rsp), %xmm1
vpinsrd $0x1, %edx, %xmm1, %xmm1
vpinsrd $0x2, %ecx, %xmm1, %xmm1
vpinsrd $0x3, %eax, %xmm1, %xmm1
vmovdqa %xmm1, 0x550(%rsp)
vmovdqa %xmm0, 0x540(%rsp)
vmovaps 0x540(%rsp), %ymm0
vmovaps %ymm0, 0x400(%rsp)
movl 0x49c(%rsp), %eax
movl %eax, 0x4d8(%rsp)
movl 0x4d8(%rsp), %eax
movl %eax, 0x5c(%rsp)
movl %eax, 0x5bc(%rsp)
movl %eax, 0x5b8(%rsp)
movl %eax, 0x5b4(%rsp)
movl %eax, 0x5b0(%rsp)
movl %eax, 0x5ac(%rsp)
movl %eax, 0x5a8(%rsp)
movl %eax, 0x5a4(%rsp)
movl %eax, 0x5a0(%rsp)
movl 0x5a4(%rsp), %edx
movl 0x5a8(%rsp), %ecx
movl 0x5ac(%rsp), %eax
movl 0x5b4(%rsp), %r8d
movl 0x5b8(%rsp), %edi
movl 0x5bc(%rsp), %esi
vmovd 0x5b0(%rsp), %xmm0
vpinsrd $0x1, %r8d, %xmm0, %xmm0
vpinsrd $0x2, %edi, %xmm0, %xmm0
vpinsrd $0x3, %esi, %xmm0, %xmm1
vmovd 0x5a0(%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, 0x580(%rsp)
vmovdqa 0x580(%rsp), %ymm0
vmovdqa %ymm0, 0x3e0(%rsp)
xorl %eax, %eax
subl 0x4a0(%rsp), %eax
movq 0x478(%rsp), %rcx
cmpl 0x20(%rcx), %eax
jge 0xacb065
movl 0x4a0(%rsp), %eax
addl $0x80000000, %eax       # imm = 0x80000000
movl %eax, 0x54(%rsp)
jmp 0xacb079
movq 0x478(%rsp), %rcx
movl $0x80000000, %eax       # imm = 0x80000000
subl 0x20(%rcx), %eax
movl %eax, 0x54(%rsp)
movl 0x54(%rsp), %eax
incl %eax
movl %eax, 0x3dc(%rsp)
movq 0x478(%rsp), %rax
movl 0x1c(%rax), %ecx
movl $0x7ffffffe, %eax       # imm = 0x7FFFFFFE
subl %ecx, %eax
movl %eax, 0x3d8(%rsp)
vxorps %xmm0, %xmm0, %xmm0
vmovaps %ymm0, 0x4e0(%rsp)
vmovaps 0x4e0(%rsp), %ymm0
vmovaps %ymm0, 0x3a0(%rsp)
movl 0x3dc(%rsp), %eax
movl %eax, 0x39c(%rsp)
movl 0x3dc(%rsp), %eax
movl %eax, 0x4d4(%rsp)
movl 0x4d4(%rsp), %eax
movl %eax, 0x3c(%rsp)
movl %eax, 0x5fc(%rsp)
movl %eax, 0x5f8(%rsp)
movl %eax, 0x5f4(%rsp)
movl %eax, 0x5f0(%rsp)
movl %eax, 0x5ec(%rsp)
movl %eax, 0x5e8(%rsp)
movl %eax, 0x5e4(%rsp)
movl %eax, 0x5e0(%rsp)
movl 0x5e4(%rsp), %r8d
movl 0x5e8(%rsp), %edi
movl 0x5ec(%rsp), %esi
movl 0x5f4(%rsp), %edx
movl 0x5f8(%rsp), %ecx
movl 0x5fc(%rsp), %eax
vmovd 0x5e0(%rsp), %xmm0
vpinsrd $0x1, %r8d, %xmm0, %xmm0
vpinsrd $0x2, %edi, %xmm0, %xmm0
vpinsrd $0x3, %esi, %xmm0, %xmm0
vmovd 0x5f0(%rsp), %xmm1
vpinsrd $0x1, %edx, %xmm1, %xmm1
vpinsrd $0x2, %ecx, %xmm1, %xmm1
vpinsrd $0x3, %eax, %xmm1, %xmm1
vmovdqa %xmm1, 0x5d0(%rsp)
vmovdqa %xmm0, 0x5c0(%rsp)
vmovaps 0x5c0(%rsp), %ymm0
vmovaps %ymm0, 0x360(%rsp)
movl 0x3d8(%rsp), %eax
movl %eax, 0x4d0(%rsp)
movl 0x4d0(%rsp), %eax
movl %eax, 0x40(%rsp)
movl %eax, 0x63c(%rsp)
movl %eax, 0x638(%rsp)
movl %eax, 0x634(%rsp)
movl %eax, 0x630(%rsp)
movl %eax, 0x62c(%rsp)
movl %eax, 0x628(%rsp)
movl %eax, 0x624(%rsp)
movl %eax, 0x620(%rsp)
movl 0x624(%rsp), %r8d
movl 0x628(%rsp), %edi
movl 0x62c(%rsp), %esi
movl 0x634(%rsp), %edx
movl 0x638(%rsp), %ecx
movl 0x63c(%rsp), %eax
vmovd 0x620(%rsp), %xmm0
vpinsrd $0x1, %r8d, %xmm0, %xmm0
vpinsrd $0x2, %edi, %xmm0, %xmm0
vpinsrd $0x3, %esi, %xmm0, %xmm0
vmovd 0x630(%rsp), %xmm1
vpinsrd $0x1, %edx, %xmm1, %xmm1
vpinsrd $0x2, %ecx, %xmm1, %xmm1
vpinsrd $0x3, %eax, %xmm1, %xmm1
vmovdqa %xmm1, 0x610(%rsp)
vmovdqa %xmm0, 0x600(%rsp)
vmovaps 0x600(%rsp), %ymm0
vmovaps %ymm0, 0x340(%rsp)
vmovaps 0x340(%rsp), %ymm0
vmovaps %ymm0, 0x320(%rsp)
vmovaps 0x360(%rsp), %ymm0
vmovaps %ymm0, 0x300(%rsp)
vmovaps 0x360(%rsp), %ymm0
vmovaps %ymm0, 0x2e0(%rsp)
movl 0x468(%rsp), %eax
movl %eax, 0x4cc(%rsp)
movl 0x4cc(%rsp), %eax
movl %eax, 0x44(%rsp)
movl %eax, 0x67c(%rsp)
movl %eax, 0x678(%rsp)
movl %eax, 0x674(%rsp)
movl %eax, 0x670(%rsp)
movl %eax, 0x66c(%rsp)
movl %eax, 0x668(%rsp)
movl %eax, 0x664(%rsp)
movl %eax, 0x660(%rsp)
movl 0x664(%rsp), %r8d
movl 0x668(%rsp), %edi
movl 0x66c(%rsp), %esi
movl 0x674(%rsp), %edx
movl 0x678(%rsp), %ecx
movl 0x67c(%rsp), %eax
vmovd 0x660(%rsp), %xmm0
vpinsrd $0x1, %r8d, %xmm0, %xmm0
vpinsrd $0x2, %edi, %xmm0, %xmm0
vpinsrd $0x3, %esi, %xmm0, %xmm0
vmovd 0x670(%rsp), %xmm1
vpinsrd $0x1, %edx, %xmm1, %xmm1
vpinsrd $0x2, %ecx, %xmm1, %xmm1
vpinsrd $0x3, %eax, %xmm1, %xmm1
vmovdqa %xmm1, 0x650(%rsp)
vmovdqa %xmm0, 0x640(%rsp)
vmovaps 0x640(%rsp), %ymm1
movl $0x0, 0x77c(%rsp)
movl $0x1, 0x778(%rsp)
movl $0x2, 0x774(%rsp)
movl $0x3, 0x770(%rsp)
movl $0x4, 0x76c(%rsp)
movl $0x5, 0x768(%rsp)
movl $0x6, 0x764(%rsp)
movl $0x7, 0x760(%rsp)
movl 0x764(%rsp), %r8d
movl 0x768(%rsp), %edi
movl 0x76c(%rsp), %esi
movl 0x774(%rsp), %edx
movl 0x778(%rsp), %ecx
movl 0x77c(%rsp), %eax
vmovd 0x760(%rsp), %xmm0
vpinsrd $0x1, %r8d, %xmm0, %xmm0
vpinsrd $0x2, %edi, %xmm0, %xmm0
vpinsrd $0x3, %esi, %xmm0, %xmm0
vmovd 0x770(%rsp), %xmm2
vpinsrd $0x1, %edx, %xmm2, %xmm2
vpinsrd $0x2, %ecx, %xmm2, %xmm2
vpinsrd $0x3, %eax, %xmm2, %xmm2
vmovdqa %xmm2, 0x750(%rsp)
vmovdqa %xmm0, 0x740(%rsp)
vmovaps 0x740(%rsp), %ymm0
vmovaps %ymm1, 0x520(%rsp)
vmovaps %ymm0, 0x500(%rsp)
vmovaps 0x520(%rsp), %ymm0
vmovaps 0x500(%rsp), %ymm1
vpcmpeqd %ymm1, %ymm0, %ymm0
vmovaps %ymm0, 0x2c0(%rsp)
vmovaps 0x3a0(%rsp), %ymm0
vmovaps %ymm0, 0x2a0(%rsp)
movl 0x3dc(%rsp), %eax
movl %eax, 0x2a0(%rsp)
vmovaps 0x2a0(%rsp), %ymm1
movl 0x470(%rsp), %eax
negl %eax
movl 0x49c(%rsp), %ecx
imull %ecx, %eax
movl %eax, 0x4c8(%rsp)
movl 0x4c8(%rsp), %eax
movl %eax, 0x48(%rsp)
movl %eax, 0x6bc(%rsp)
movl %eax, 0x6b8(%rsp)
movl %eax, 0x6b4(%rsp)
movl %eax, 0x6b0(%rsp)
movl %eax, 0x6ac(%rsp)
movl %eax, 0x6a8(%rsp)
movl %eax, 0x6a4(%rsp)
movl %eax, 0x6a0(%rsp)
movl 0x6a4(%rsp), %r8d
movl 0x6a8(%rsp), %edi
movl 0x6ac(%rsp), %esi
movl 0x6b4(%rsp), %edx
movl 0x6b8(%rsp), %ecx
movl 0x6bc(%rsp), %eax
vmovd 0x6a0(%rsp), %xmm0
vpinsrd $0x1, %r8d, %xmm0, %xmm0
vpinsrd $0x2, %edi, %xmm0, %xmm0
vpinsrd $0x3, %esi, %xmm0, %xmm0
vmovd 0x6b0(%rsp), %xmm2
vpinsrd $0x1, %edx, %xmm2, %xmm2
vpinsrd $0x2, %ecx, %xmm2, %xmm2
vpinsrd $0x3, %eax, %xmm2, %xmm2
vmovdqa %xmm2, 0x690(%rsp)
vmovdqa %xmm0, 0x680(%rsp)
vmovaps 0x680(%rsp), %ymm0
movl 0x470(%rsp), %eax
negl %eax
movl 0x49c(%rsp), %ecx
imull %ecx, %eax
movl %eax, 0x4c4(%rsp)
movl 0x4c4(%rsp), %eax
movl %eax, 0x4c(%rsp)
movl %eax, 0x6fc(%rsp)
movl %eax, 0x6f8(%rsp)
movl %eax, 0x6f4(%rsp)
movl %eax, 0x6f0(%rsp)
movl %eax, 0x6ec(%rsp)
movl %eax, 0x6e8(%rsp)
movl %eax, 0x6e4(%rsp)
movl %eax, 0x6e0(%rsp)
movl 0x6e4(%rsp), %r8d
movl 0x6e8(%rsp), %edi
movl 0x6ec(%rsp), %esi
movl 0x6f4(%rsp), %edx
movl 0x6f8(%rsp), %ecx
movl 0x6fc(%rsp), %eax
vmovd 0x6e0(%rsp), %xmm2
vpinsrd $0x1, %r8d, %xmm2, %xmm2
vpinsrd $0x2, %edi, %xmm2, %xmm2
vpinsrd $0x3, %esi, %xmm2, %xmm2
vmovd 0x6f0(%rsp), %xmm3
vpinsrd $0x1, %edx, %xmm3, %xmm3
vpinsrd $0x2, %ecx, %xmm3, %xmm3
vpinsrd $0x3, %eax, %xmm3, %xmm3
vmovdqa %xmm3, 0x6d0(%rsp)
vmovdqa %xmm2, 0x6c0(%rsp)
vmovaps 0x6c0(%rsp), %ymm3
movl 0x470(%rsp), %eax
negl %eax
movl 0x49c(%rsp), %ecx
imull %ecx, %eax
movl %eax, 0x4c0(%rsp)
movl 0x4c0(%rsp), %eax
movl %eax, 0x50(%rsp)
movl %eax, 0x73c(%rsp)
movl %eax, 0x738(%rsp)
movl %eax, 0x734(%rsp)
movl %eax, 0x730(%rsp)
movl %eax, 0x72c(%rsp)
movl %eax, 0x728(%rsp)
movl %eax, 0x724(%rsp)
movl %eax, 0x720(%rsp)
movl 0x724(%rsp), %r8d
movl 0x728(%rsp), %edi
movl 0x72c(%rsp), %esi
movl 0x734(%rsp), %edx
movl 0x738(%rsp), %ecx
movl 0x73c(%rsp), %eax
vmovd 0x720(%rsp), %xmm2
vpinsrd $0x1, %r8d, %xmm2, %xmm2
vpinsrd $0x2, %edi, %xmm2, %xmm2
vpinsrd $0x3, %esi, %xmm2, %xmm2
vmovd 0x730(%rsp), %xmm4
vpinsrd $0x1, %edx, %xmm4, %xmm4
vpinsrd $0x2, %ecx, %xmm4, %xmm4
vpinsrd $0x3, %eax, %xmm4, %xmm4
vmovdqa %xmm4, 0x710(%rsp)
vmovdqa %xmm2, 0x700(%rsp)
vperm2i128 $0x28, %ymm3, %ymm2, %ymm2 # ymm2 = zero,zero,ymm3[0,1]
vpalignr $0xc, %ymm2, %ymm0, %ymm0 # ymm0 = ymm2[12,13,14,15],ymm0[0,1,2,3,4,5,6,7,8,9,10,11],ymm2[28,29,30,31],ymm0[16,17,18,19,20,21,22,23,24,25,26,27]
vmovdqa %ymm1, 0x8e0(%rsp)
vmovdqa %ymm0, 0x8c0(%rsp)
vmovdqa 0x8e0(%rsp), %ymm0
vmovdqa 0x8c0(%rsp), %ymm1
vpaddd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x280(%rsp)
movl 0x470(%rsp), %edi
imull 0x474(%rsp), %edi
movl 0x4a4(%rsp), %esi
vzeroupper
callq 0x1c3af0
movq %rax, 0x278(%rsp)
cmpq $0x0, 0x278(%rsp)
jne 0xacb7aa
movq $0x0, 0x4b8(%rsp)
jmp 0xaccca2
movq 0x278(%rsp), %rax
movl 0xc(%rax), %ecx
orl $0x8400402, %ecx        # imm = 0x8400402
movl %ecx, 0xc(%rax)
movl 0x498(%rsp), %edx
xorl %ecx, %ecx
movl $0x8, %eax
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq 0x278(%rsp), %rax
orl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movl 0x10(%rbp), %edx
xorl %ecx, %ecx
movl $0x10, %eax
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq 0x278(%rsp), %rax
orl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movl 0x18(%rbp), %edx
xorl %ecx, %ecx
movl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq 0x278(%rsp), %rax
orl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movl 0x20(%rbp), %edx
xorl %ecx, %ecx
movl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq 0x278(%rsp), %rax
orl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movq 0x278(%rsp), %rax
movl 0xc(%rax), %ecx
orl $0x40000, %ecx          # imm = 0x40000
movl %ecx, 0xc(%rax)
movslq 0x470(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x458(%rsp)
movl 0x4a4(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x20, %edi
callq 0x1c3660
movq %rax, 0x450(%rsp)
movslq 0x470(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x448(%rsp)
movslq 0x470(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x440(%rsp)
movslq 0x470(%rsp), %rsi
movl $0x20, %edi
callq 0x992f60
movq %rax, 0x438(%rsp)
cmpq $0x0, 0x458(%rsp)
jne 0xacb8f1
movq $0x0, 0x4b8(%rsp)
jmp 0xaccca2
cmpq $0x0, 0x450(%rsp)
jne 0xacb90d
movq $0x0, 0x4b8(%rsp)
jmp 0xaccca2
cmpq $0x0, 0x448(%rsp)
jne 0xacb929
movq $0x0, 0x4b8(%rsp)
jmp 0xaccca2
cmpq $0x0, 0x440(%rsp)
jne 0xacb945
movq $0x0, 0x4b8(%rsp)
jmp 0xaccca2
cmpq $0x0, 0x438(%rsp)
jne 0xacb961
movq $0x0, 0x4b8(%rsp)
jmp 0xaccca2
movl $0x0, 0x274(%rsp)
movl $0x0, 0x494(%rsp)
movl 0x494(%rsp), %eax
cmpl 0x470(%rsp), %eax
jge 0xacbb66
movl $0x0, 0x270(%rsp)
movl $0x0, 0x270(%rsp)
movl 0x270(%rsp), %eax
cmpl 0x474(%rsp), %eax
jge 0xacbab3
cmpl $0x0, 0x498(%rsp)
je 0xacb9c7
xorl %eax, %eax
movl %eax, 0x38(%rsp)
jmp 0xacb9f6
xorl %eax, %eax
subl 0x4a0(%rsp), %eax
movl 0x49c(%rsp), %ecx
movl 0x270(%rsp), %edx
imull 0x470(%rsp), %edx
addl 0x494(%rsp), %edx
imull %edx, %ecx
subl %ecx, %eax
movl %eax, 0x38(%rsp)
movl 0x38(%rsp), %eax
cltq
movq %rax, 0x218(%rsp)
cmpq $-0x80000000, 0x218(%rsp) # imm = 0x80000000
jge 0xacba20
movq $-0x80000000, %rax      # imm = 0x80000000
movq %rax, 0x30(%rsp)
jmp 0xacba2d
movq 0x218(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movl %eax, %ecx
movslq 0x270(%rsp), %rax
movl %ecx, 0x240(%rsp,%rax,4)
movq 0x218(%rsp), %rax
movslq 0x4a0(%rsp), %rcx
subq %rcx, %rax
movq %rax, 0x218(%rsp)
cmpq $-0x80000000, 0x218(%rsp) # imm = 0x80000000
jge 0xacba7a
movq $-0x80000000, %rax      # imm = 0x80000000
movq %rax, 0x28(%rsp)
jmp 0xacba87
movq 0x218(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movl %eax, %ecx
movslq 0x270(%rsp), %rax
movl %ecx, 0x220(%rsp,%rax,4)
movl 0x270(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x270(%rsp)
jmp 0xacb9a1
movq 0x440(%rsp), %rax
movslq 0x274(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0x240(%rsp), %ymm0
movq %rax, 0xa78(%rsp)
vmovdqa %ymm0, 0xa40(%rsp)
vmovdqa 0xa40(%rsp), %ymm0
movq 0xa78(%rsp), %rax
vmovdqa %ymm0, (%rax)
movq 0x458(%rsp), %rax
movslq 0x274(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0x220(%rsp), %ymm0
movq %rax, 0xa38(%rsp)
vmovdqa %ymm0, 0xa00(%rsp)
vmovdqa 0xa00(%rsp), %ymm0
movq 0xa38(%rsp), %rax
vmovdqa %ymm0, (%rax)
movl 0x274(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x274(%rsp)
movl 0x494(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x494(%rsp)
jmp 0xacb977
movq 0x450(%rsp), %rax
movl $0x0, (%rax)
movl $0x1, 0x494(%rsp)
movl 0x494(%rsp), %eax
cmpl 0x4a4(%rsp), %eax
jg 0xacbc2b
cmpl $0x0, 0x18(%rbp)
je 0xacbba1
xorl %eax, %eax
movl %eax, 0x24(%rsp)
jmp 0xacbbc4
xorl %eax, %eax
subl 0x4a0(%rsp), %eax
movl 0x49c(%rsp), %ecx
movl 0x494(%rsp), %edx
subl $0x1, %edx
imull %edx, %ecx
subl %ecx, %eax
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %eax
cltq
movq %rax, 0x210(%rsp)
cmpq $-0x80000000, 0x210(%rsp) # imm = 0x80000000
jge 0xacbbee
movq $-0x80000000, %rax      # imm = 0x80000000
movq %rax, 0x18(%rsp)
jmp 0xacbbfb
movq 0x210(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movl %eax, %edx
movq 0x450(%rsp), %rax
movslq 0x494(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x494(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x494(%rsp)
jmp 0xacbb7f
vmovdqa 0x3a0(%rsp), %ymm1
vmovdqa 0x400(%rsp), %ymm0
vmovdqa %ymm1, 0xc20(%rsp)
vmovdqa %ymm0, 0xc00(%rsp)
vmovdqa 0xc20(%rsp), %ymm0
vmovdqa 0xc00(%rsp), %ymm1
vpsubd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x1e0(%rsp)
movl 0x470(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x494(%rsp)
cmpl $0x0, 0x494(%rsp)
jl 0xacbd70
movq 0x438(%rsp), %rax
movslq 0x494(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0x1e0(%rsp), %ymm0
movq %rax, 0x9f8(%rsp)
vmovdqa %ymm0, 0x9c0(%rsp)
vmovdqa 0x9c0(%rsp), %ymm0
movq 0x9f8(%rsp), %rax
vmovdqa %ymm0, (%rax)
vmovdqa 0x1e0(%rsp), %ymm1
vmovdqa 0x3e0(%rsp), %ymm0
vmovdqa %ymm1, 0xbe0(%rsp)
vmovdqa %ymm0, 0xbc0(%rsp)
vmovdqa 0xbe0(%rsp), %ymm0
vmovdqa 0xbc0(%rsp), %ymm1
vpsubd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x1e0(%rsp)
vmovdqa 0x320(%rsp), %ymm1
vmovdqa 0x1e0(%rsp), %ymm0
vmovdqa %ymm1, 0xce0(%rsp)
vmovdqa %ymm0, 0xcc0(%rsp)
vmovdqa 0xce0(%rsp), %ymm0
vmovdqa 0xcc0(%rsp), %ymm1
vpminsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x320(%rsp)
movl 0x494(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x494(%rsp)
jmp 0xacbc7f
movl $0x0, 0x490(%rsp)
movl 0x490(%rsp), %eax
cmpl 0x4a4(%rsp), %eax
jge 0xacc824
movq 0x440(%rsp), %rax
movl 0x470(%rsp), %ecx
decl %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0xd38(%rsp)
movq 0xd38(%rsp), %rax
vmovaps (%rax), %ymm0
vmovaps %ymm0, 0x140(%rsp)
vmovaps 0x140(%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]
vmovaps %ymm0, 0x140(%rsp)
vmovaps 0x140(%rsp), %ymm0
movq 0x450(%rsp), %rax
movslq 0x490(%rsp), %rcx
vmovd (%rax,%rcx,4), %xmm2
vmovaps %xmm2, %xmm1
vpblendd $0x1, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[0],ymm0[1,2,3,4,5,6,7]
vmovdqa %ymm0, 0x140(%rsp)
movq 0x460(%rsp), %rax
movq 0x478(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x4a8(%rsp), %rdx
movslq 0x490(%rsp), %rsi
movzbl (%rdx,%rsi), %edx
movl (%rcx,%rdx,4), %ecx
imull 0x470(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x138(%rsp)
vmovdqa 0x360(%rsp), %ymm1
movq 0x438(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm1, 0xba0(%rsp)
vmovdqa %ymm0, 0xb80(%rsp)
vmovdqa 0xba0(%rsp), %ymm0
vmovdqa 0xb80(%rsp), %ymm1
vpsubd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x1a0(%rsp)
vmovdqa 0x360(%rsp), %ymm0
vmovdqa %ymm0, 0x180(%rsp)
movl $0x0, 0x494(%rsp)
movl 0x494(%rsp), %eax
cmpl 0x470(%rsp), %eax
jge 0xacc1d6
movq 0x440(%rsp), %rax
movslq 0x494(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0xd30(%rsp)
movq 0xd30(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0x160(%rsp)
movq 0x458(%rsp), %rax
movslq 0x494(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0xd28(%rsp)
movq 0xd28(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0x1c0(%rsp)
movq 0x138(%rsp), %rax
movslq 0x494(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0xd20(%rsp)
movq 0xd20(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0x100(%rsp)
vmovdqa 0x1c0(%rsp), %ymm1
vmovdqa 0x3e0(%rsp), %ymm0
vmovdqa %ymm1, 0xb60(%rsp)
vmovdqa %ymm0, 0xb40(%rsp)
vmovdqa 0xb60(%rsp), %ymm0
vmovdqa 0xb40(%rsp), %ymm1
vpsubd %ymm1, %ymm0, %ymm1
vmovdqa 0x160(%rsp), %ymm2
vmovdqa 0x400(%rsp), %ymm0
vmovdqa %ymm2, 0xb20(%rsp)
vmovdqa %ymm0, 0xb00(%rsp)
vmovdqa 0xb20(%rsp), %ymm0
vmovdqa 0xb00(%rsp), %ymm2
vpsubd %ymm2, %ymm0, %ymm0
vmovdqa %ymm1, 0xfa0(%rsp)
vmovdqa %ymm0, 0xf80(%rsp)
vmovdqa 0xfa0(%rsp), %ymm0
vmovdqa 0xf80(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x1c0(%rsp)
vmovdqa 0x140(%rsp), %ymm1
vmovdqa 0x100(%rsp), %ymm0
vmovdqa %ymm1, 0x8a0(%rsp)
vmovdqa %ymm0, 0x880(%rsp)
vmovdqa 0x8a0(%rsp), %ymm0
vmovdqa 0x880(%rsp), %ymm1
vpaddd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x140(%rsp)
vmovdqa 0x180(%rsp), %ymm1
vmovdqa 0x1a0(%rsp), %ymm2
movq 0x438(%rsp), %rax
movslq 0x494(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm2, 0x860(%rsp)
vmovdqa %ymm0, 0x840(%rsp)
vmovdqa 0x860(%rsp), %ymm0
vmovdqa 0x840(%rsp), %ymm2
vpaddd %ymm2, %ymm0, %ymm0
vmovdqa %ymm1, 0xf60(%rsp)
vmovdqa %ymm0, 0xf40(%rsp)
vmovdqa 0xf60(%rsp), %ymm0
vmovdqa 0xf40(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x180(%rsp)
vmovdqa 0x1c0(%rsp), %ymm1
vmovdqa 0x140(%rsp), %ymm0
vmovdqa %ymm1, 0xf20(%rsp)
vmovdqa %ymm0, 0xf00(%rsp)
vmovdqa 0xf20(%rsp), %ymm0
vmovdqa 0xf00(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x1a0(%rsp)
movq 0x458(%rsp), %rax
movslq 0x494(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0x1c0(%rsp), %ymm0
movq %rax, 0x9b8(%rsp)
vmovdqa %ymm0, 0x980(%rsp)
vmovdqa 0x980(%rsp), %ymm0
movq 0x9b8(%rsp), %rax
vmovdqa %ymm0, (%rax)
movq 0x448(%rsp), %rax
movslq 0x494(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0x1a0(%rsp), %ymm0
movq %rax, 0x978(%rsp)
vmovdqa %ymm0, 0x940(%rsp)
vmovdqa 0x940(%rsp), %ymm0
movq 0x978(%rsp), %rax
vmovdqa %ymm0, (%rax)
vmovdqa 0x160(%rsp), %ymm0
vmovdqa %ymm0, 0x140(%rsp)
movl 0x494(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x494(%rsp)
jmp 0xacbebe
vmovaps 0x1a0(%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]
vmovaps %ymm0, 0x1a0(%rsp)
vmovaps 0x1a0(%rsp), %ymm0
movq 0x450(%rsp), %rax
movslq 0x490(%rsp), %rcx
vmovd 0x4(%rax,%rcx,4), %xmm2
vmovaps %xmm2, %xmm1
vpblendd $0x1, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[0],ymm0[1,2,3,4,5,6,7]
vmovdqa %ymm0, 0x1a0(%rsp)
vmovdqa 0x180(%rsp), %ymm1
vmovdqa 0x1a0(%rsp), %ymm2
movq 0x438(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm2, 0x820(%rsp)
vmovdqa %ymm0, 0x800(%rsp)
vmovdqa 0x820(%rsp), %ymm0
vmovdqa 0x800(%rsp), %ymm2
vpaddd %ymm2, %ymm0, %ymm0
vmovdqa %ymm1, 0xee0(%rsp)
vmovdqa %ymm0, 0xec0(%rsp)
vmovdqa 0xee0(%rsp), %ymm0
vmovdqa 0xec0(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x180(%rsp)
movl $0x0, 0x494(%rsp)
movl 0x494(%rsp), %eax
movl 0x474(%rsp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jge 0xacc37d
vmovaps 0x180(%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, 0xe0(%rsp)
vmovdqa 0xe0(%rsp), %ymm1
vmovdqa 0x280(%rsp), %ymm0
vmovdqa %ymm1, 0x7e0(%rsp)
vmovdqa %ymm0, 0x7c0(%rsp)
vmovdqa 0x7e0(%rsp), %ymm0
vmovdqa 0x7c0(%rsp), %ymm1
vpaddd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0xe0(%rsp)
vmovdqa 0x180(%rsp), %ymm1
vmovdqa 0xe0(%rsp), %ymm0
vmovdqa %ymm1, 0xea0(%rsp)
vmovdqa %ymm0, 0xe80(%rsp)
vmovdqa 0xea0(%rsp), %ymm0
vmovdqa 0xe80(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x180(%rsp)
movl 0x494(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x494(%rsp)
jmp 0xacc2a9
vmovaps 0x180(%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, 0x180(%rsp)
vmovdqa 0x180(%rsp), %ymm1
vmovdqa 0x2a0(%rsp), %ymm0
vmovdqa %ymm1, 0x7a0(%rsp)
vmovdqa %ymm0, 0x780(%rsp)
vmovdqa 0x7a0(%rsp), %ymm0
vmovdqa 0x780(%rsp), %ymm1
vpaddd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x180(%rsp)
vmovdqa 0x1a0(%rsp), %ymm1
vmovdqa 0x180(%rsp), %ymm0
vmovdqa %ymm1, 0xe60(%rsp)
vmovdqa %ymm0, 0xe40(%rsp)
vmovdqa 0xe60(%rsp), %ymm0
vmovdqa 0xe40(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x160(%rsp)
movl $0x0, 0x494(%rsp)
movl 0x494(%rsp), %eax
cmpl 0x470(%rsp), %eax
jge 0xacc687
movq 0x448(%rsp), %rax
movslq 0x494(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0xd18(%rsp)
movq 0xd18(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0x1a0(%rsp)
vmovdqa 0x180(%rsp), %ymm1
vmovdqa 0x3e0(%rsp), %ymm0
vmovdqa %ymm1, 0xae0(%rsp)
vmovdqa %ymm0, 0xac0(%rsp)
vmovdqa 0xae0(%rsp), %ymm0
vmovdqa 0xac0(%rsp), %ymm1
vpsubd %ymm1, %ymm0, %ymm1
vmovdqa 0x160(%rsp), %ymm2
vmovdqa 0x400(%rsp), %ymm0
vmovdqa %ymm2, 0xaa0(%rsp)
vmovdqa %ymm0, 0xa80(%rsp)
vmovdqa 0xaa0(%rsp), %ymm0
vmovdqa 0xa80(%rsp), %ymm2
vpsubd %ymm2, %ymm0, %ymm0
vmovdqa %ymm1, 0xe20(%rsp)
vmovdqa %ymm0, 0xe00(%rsp)
vmovdqa 0xe20(%rsp), %ymm0
vmovdqa 0xe00(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x180(%rsp)
vmovdqa 0x1a0(%rsp), %ymm1
vmovdqa 0x180(%rsp), %ymm0
vmovdqa %ymm1, 0xde0(%rsp)
vmovdqa %ymm0, 0xdc0(%rsp)
vmovdqa 0xde0(%rsp), %ymm0
vmovdqa 0xdc0(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x160(%rsp)
movq 0x440(%rsp), %rax
movslq 0x494(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
vmovdqa 0x160(%rsp), %ymm0
movq %rax, 0x938(%rsp)
vmovdqa %ymm0, 0x900(%rsp)
vmovdqa 0x900(%rsp), %ymm0
movq 0x938(%rsp), %rax
vmovdqa %ymm0, (%rax)
vmovdqa 0x320(%rsp), %ymm1
vmovdqa 0x160(%rsp), %ymm0
vmovdqa %ymm1, 0xca0(%rsp)
vmovdqa %ymm0, 0xc80(%rsp)
vmovdqa 0xca0(%rsp), %ymm0
vmovdqa 0xc80(%rsp), %ymm1
vpminsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x320(%rsp)
vmovdqa 0x320(%rsp), %ymm1
vmovdqa 0x180(%rsp), %ymm0
vmovdqa %ymm1, 0xc60(%rsp)
vmovdqa %ymm0, 0xc40(%rsp)
vmovdqa 0xc60(%rsp), %ymm0
vmovdqa 0xc40(%rsp), %ymm1
vpminsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x320(%rsp)
vmovdqa 0x300(%rsp), %ymm1
vmovdqa 0x160(%rsp), %ymm0
vmovdqa %ymm1, 0xda0(%rsp)
vmovdqa %ymm0, 0xd80(%rsp)
vmovdqa 0xda0(%rsp), %ymm0
vmovdqa 0xd80(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x300(%rsp)
movl 0x494(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x494(%rsp)
jmp 0xacc42d
movq 0x440(%rsp), %rax
movslq 0x46c(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0xd10(%rsp)
movq 0xd10(%rsp), %rax
vmovaps (%rax), %ymm0
vmovaps %ymm0, 0x160(%rsp)
vmovaps 0x2c0(%rsp), %ymm1
vmovaps 0x160(%rsp), %ymm2
vmovaps 0x2e0(%rsp), %ymm0
vmovaps %ymm2, 0x10a0(%rsp)
vmovaps %ymm0, 0x1080(%rsp)
vmovaps 0x10a0(%rsp), %ymm0
vmovaps 0x1080(%rsp), %ymm2
vpcmpgtd %ymm2, %ymm0, %ymm0
vmovdqa %ymm1, 0xfe0(%rsp)
vmovdqa %ymm0, 0xfc0(%rsp)
vmovdqa 0xfe0(%rsp), %ymm0
vpand 0xfc0(%rsp), %ymm0, %ymm0
vmovdqa %ymm0, 0xc0(%rsp)
vmovdqa 0x160(%rsp), %ymm1
vmovdqa 0x2e0(%rsp), %ymm0
vmovdqa %ymm1, 0xd60(%rsp)
vmovdqa %ymm0, 0xd40(%rsp)
vmovdqa 0xd60(%rsp), %ymm0
vmovdqa 0xd40(%rsp), %ymm1
vpmaxsd %ymm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x2e0(%rsp)
vmovdqa 0xc0(%rsp), %ymm0
vmovdqa %ymm0, 0x10e0(%rsp)
vmovdqa 0x10e0(%rsp), %ymm0
vpmovmskb %ymm0, %eax
cmpl $0x0, %eax
je 0xacc7a1
movl 0x490(%rsp), %eax
movl %eax, 0x484(%rsp)
movl $0x0, 0x48c(%rsp)
movl 0x48c(%rsp), %eax
cmpl 0x468(%rsp), %eax
jge 0xacc7ed
vmovaps 0x160(%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, 0x160(%rsp)
movl 0x48c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x48c(%rsp)
jmp 0xacc7ac
movl 0x17c(%rsp), %edx
movq 0x278(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movslq 0x490(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x490(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x490(%rsp)
jmp 0xacbd7b
movl $0x0, 0x494(%rsp)
movl 0x494(%rsp), %eax
cmpl 0x470(%rsp), %eax
jge 0xacc8b5
movq 0x440(%rsp), %rax
movslq 0x494(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0xd08(%rsp)
movq 0xd08(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0xa0(%rsp)
movq 0x278(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdi
vmovdqa 0xa0(%rsp), %ymm0
movl 0x494(%rsp), %esi
movl 0x470(%rsp), %edx
callq 0xacccb0
movl 0x494(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x494(%rsp)
jmp 0xacc82f
cmpl $0x0, 0x20(%rbp)
je 0xacc926
movl $0x0, 0x48c(%rsp)
movl 0x48c(%rsp), %eax
cmpl 0x468(%rsp), %eax
jge 0xacc907
vmovaps 0x2e0(%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, 0x2e0(%rsp)
movl 0x48c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x48c(%rsp)
jmp 0xacc8c6
movl 0x2fc(%rsp), %eax
movl %eax, 0x39c(%rsp)
movl 0x480(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x488(%rsp)
cmpl $0x0, 0x10(%rbp)
je 0xacca7c
movq 0x440(%rsp), %rax
movq %rax, 0x98(%rsp)
movl 0x470(%rsp), %eax
imull 0x474(%rsp), %eax
movl %eax, 0x94(%rsp)
movl $0x0, 0x494(%rsp)
movl 0x494(%rsp), %eax
cmpl 0x94(%rsp), %eax
jge 0xacca7a
movl 0x494(%rsp), %eax
cltd
idivl 0x474(%rsp)
movl %eax, 0x14(%rsp)
movl 0x494(%rsp), %eax
cltd
idivl 0x474(%rsp)
movl 0x14(%rsp), %eax
imull 0x470(%rsp), %edx
addl %edx, %eax
movl %eax, 0x90(%rsp)
movl 0x90(%rsp), %eax
cmpl 0x480(%rsp), %eax
jl 0xacc9c1
jmp 0xacca50
movq 0x98(%rsp), %rax
movl (%rax), %eax
cmpl 0x39c(%rsp), %eax
jle 0xacca06
movq 0x98(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x39c(%rsp)
movl 0x90(%rsp), %eax
movl %eax, 0x488(%rsp)
movl 0x4a4(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x484(%rsp)
jmp 0xacca4e
movq 0x98(%rsp), %rax
movl (%rax), %eax
cmpl 0x39c(%rsp), %eax
jne 0xacca4c
movl 0x484(%rsp), %eax
movl 0x4a4(%rsp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0xacca4c
movl 0x90(%rsp), %eax
cmpl 0x488(%rsp), %eax
jge 0xacca4c
movl 0x90(%rsp), %eax
movl %eax, 0x488(%rsp)
jmp 0xacca4e
jmp 0xacca50
movl 0x494(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x494(%rsp)
movq 0x98(%rsp), %rax
addq $0x4, %rax
movq %rax, 0x98(%rsp)
jmp 0xacc961
jmp 0xacca7c
cmpl $0x0, 0x10(%rbp)
jne 0xaccb34
cmpl $0x0, 0x20(%rbp)
jne 0xaccb34
movq 0x440(%rsp), %rax
movslq 0x46c(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0xd00(%rsp)
movq 0xd00(%rsp), %rax
vmovdqa (%rax), %ymm0
vmovdqa %ymm0, 0x60(%rsp)
movl $0x0, 0x48c(%rsp)
movl 0x48c(%rsp), %eax
cmpl 0x468(%rsp), %eax
jge 0xaccb07
vmovaps 0x60(%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, 0x60(%rsp)
movl 0x48c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x48c(%rsp)
jmp 0xaccacc
movl 0x7c(%rsp), %eax
movl %eax, 0x39c(%rsp)
movl 0x4a4(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x484(%rsp)
movl 0x480(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x488(%rsp)
vmovaps 0x360(%rsp), %ymm1
vmovaps 0x320(%rsp), %ymm0
vmovaps %ymm1, 0x1060(%rsp)
vmovaps %ymm0, 0x1040(%rsp)
vmovaps 0x1060(%rsp), %ymm0
vmovaps 0x1040(%rsp), %ymm1
vpcmpgtd %ymm1, %ymm0, %ymm1
vmovaps 0x300(%rsp), %ymm2
vmovaps 0x340(%rsp), %ymm0
vmovaps %ymm2, 0x1020(%rsp)
vmovaps %ymm0, 0x1000(%rsp)
vmovaps 0x1020(%rsp), %ymm0
vmovaps 0x1000(%rsp), %ymm2
vpcmpgtd %ymm2, %ymm0, %ymm0
vmovdqa %ymm1, 0x1120(%rsp)
vmovdqa %ymm0, 0x1100(%rsp)
vmovdqa 0x1120(%rsp), %ymm0
vpor 0x1100(%rsp), %ymm0, %ymm0
vmovdqa %ymm0, 0x10c0(%rsp)
vmovdqa 0x10c0(%rsp), %ymm0
vpmovmskb %ymm0, %eax
cmpl $0x0, %eax
je 0xaccc19
movq 0x278(%rsp), %rax
movl 0xc(%rax), %ecx
orl $0x40, %ecx
movl %ecx, 0xc(%rax)
movl $0x0, 0x39c(%rsp)
movl $0x0, 0x488(%rsp)
movl $0x0, 0x484(%rsp)
movl 0x39c(%rsp), %ecx
movq 0x278(%rsp), %rax
movl %ecx, (%rax)
movl 0x488(%rsp), %ecx
movq 0x278(%rsp), %rax
movl %ecx, 0x4(%rax)
movl 0x484(%rsp), %ecx
movq 0x278(%rsp), %rax
movl %ecx, 0x8(%rax)
movq 0x438(%rsp), %rdi
vzeroupper
callq 0x1c3590
movq 0x440(%rsp), %rdi
callq 0x1c3590
movq 0x448(%rsp), %rdi
callq 0x1c3590
movq 0x450(%rsp), %rdi
callq 0x1c3590
movq 0x458(%rsp), %rdi
callq 0x1c3590
movq 0x278(%rsp), %rax
movq %rax, 0x4b8(%rsp)
movq 0x4b8(%rsp), %rax
movq %rbp, %rsp
popq %rbp
retq
nop