// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/nw_trace_striped_avx2_256_64.c
// Function: parasail_nw_trace_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 s1Len = 0;
    int32_t end_query = 0;
    int32_t end_ref = 0;
    const parasail_matrix_t *matrix = NULL;
    int32_t segWidth = 0;
    int32_t segLen = 0;
    int32_t offset = 0;
    int32_t position = 0;
    __m256i* restrict vProfile = NULL;
    __m256i* restrict pvHStore = NULL;
    __m256i* restrict pvHLoad = NULL;
    __m256i* restrict pvE = NULL;
    __m256i* restrict pvEaStore = NULL;
    __m256i* restrict pvEaLoad = NULL;
    __m256i* restrict pvHT = NULL;
    int64_t* restrict boundary = NULL;
    __m256i vGapO;
    __m256i vGapE;
    int64_t NEG_LIMIT = 0;
    int64_t POS_LIMIT = 0;
    int64_t score = 0;
    __m256i vNegLimit;
    __m256i vPosLimit;
    __m256i vSaturationCheckMin;
    __m256i vSaturationCheckMax;
    parasail_result_t *result = NULL;
    __m256i vTIns;
    __m256i vTDel;
    __m256i vTDiag;
    __m256i vTDiagE;
    __m256i vTInsE;
    __m256i vTDiagF;
    __m256i vTDelF;
    __m256i vTMask;
    __m256i vFTMask;

    /* 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;
    s1Len = profile->s1Len;
    end_query = s1Len-1;
    end_ref = s2Len-1;
    matrix = profile->matrix;
    segWidth = 4; /* number of values in vector unit */
    segLen = (s1Len + segWidth - 1) / segWidth;
    offset = (s1Len - 1) % segLen;
    position = (segWidth - 1) - (s1Len - 1) / segLen;
    vProfile = (__m256i*)profile->profile64.score;
    vGapO = _mm256_set1_epi64x_rpl(open);
    vGapE = _mm256_set1_epi64x_rpl(gap);
    NEG_LIMIT = (-open < matrix->min ? INT64_MIN + open : INT64_MIN - matrix->min) + 1;
    POS_LIMIT = INT64_MAX - matrix->max - 1;
    score = NEG_LIMIT;
    vNegLimit = _mm256_set1_epi64x_rpl(NEG_LIMIT);
    vPosLimit = _mm256_set1_epi64x_rpl(POS_LIMIT);
    vSaturationCheckMin = vPosLimit;
    vSaturationCheckMax = vNegLimit;
    vTIns  = _mm256_set1_epi64x_rpl(PARASAIL_INS);
    vTDel  = _mm256_set1_epi64x_rpl(PARASAIL_DEL);
    vTDiag = _mm256_set1_epi64x_rpl(PARASAIL_DIAG);
    vTDiagE = _mm256_set1_epi64x_rpl(PARASAIL_DIAG_E);
    vTInsE = _mm256_set1_epi64x_rpl(PARASAIL_INS_E);
    vTDiagF = _mm256_set1_epi64x_rpl(PARASAIL_DIAG_F);
    vTDelF = _mm256_set1_epi64x_rpl(PARASAIL_DEL_F);
    vTMask = _mm256_set1_epi64x_rpl(PARASAIL_ZERO_MASK);
    vFTMask = _mm256_set1_epi64x_rpl(PARASAIL_F_MASK);

    /* initialize result */
    result = parasail_result_new_trace(segLen, s2Len, 32, sizeof(__m256i));
    if (!result) return NULL;

    /* set known flags */
    result->flag |= PARASAIL_FLAG_NW | PARASAIL_FLAG_STRIPED
        | PARASAIL_FLAG_TRACE
        | PARASAIL_FLAG_BITS_64 | PARASAIL_FLAG_LANES_4;

    /* initialize heap variables */
    pvHStore = parasail_memalign___m256i(32, segLen);
    pvHLoad = parasail_memalign___m256i(32, segLen);
    pvE = parasail_memalign___m256i(32, segLen);
    pvEaStore = parasail_memalign___m256i(32, segLen);
    pvEaLoad = parasail_memalign___m256i(32, segLen);
    pvHT = parasail_memalign___m256i(32, segLen);
    boundary = parasail_memalign_int64_t(32, s2Len+1);

    /* validate heap variables */
    if (!pvHStore) return NULL;
    if (!pvHLoad) return NULL;
    if (!pvE) return NULL;
    if (!pvEaStore) return NULL;
    if (!pvEaLoad) return NULL;
    if (!pvHT) return NULL;
    if (!boundary) return NULL;

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

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

    for (i=0; i<segLen; ++i) {
        arr_store(result->trace->trace_table, vTDiagE, i, segLen, 0);
    }

    /* outer loop over database sequence */
    for (j=0; j<s2Len; ++j) {
        __m256i vEF_opn;
        __m256i vE;
        __m256i vE_ext;
        __m256i vF;
        __m256i vF_ext;
        __m256i vFa;
        __m256i vFa_ext;
        __m256i vH;
        __m256i vH_dag;
        const __m256i* vP = NULL;

        /* Initialize F value to -inf.  Any errors to vH values will be
         * corrected in the Lazy_F loop.  */
        vF = vNegLimit;

        /* 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);

        /* insert upper boundary condition */
        vH = _mm256_insert_epi64_rpl(vH, boundary[j], 0);

        /* Correct part of the vProfile */
        vP = vProfile + matrix->mapper[(unsigned char)s2[j]] * segLen;

        /* Swap the 2 H buffers. */
        SWAP(pvHLoad, pvHStore)
        SWAP(pvEaLoad, pvEaStore)

        /* inner loop to process the query sequence */
        for (i=0; i<segLen; ++i) {
            vE = _mm256_load_si256(pvE + i);

            /* Get max from vH, vE and vF. */
            vH_dag = _mm256_add_epi64(vH, _mm256_load_si256(vP + i));
            vH = _mm256_max_epi64_rpl(vH_dag, vE);
            vH = _mm256_max_epi64_rpl(vH, vF);
            /* Save vH values. */
            _mm256_store_si256(pvHStore + i, vH);
            vSaturationCheckMax = _mm256_max_epi64_rpl(vSaturationCheckMax, vH);
            vSaturationCheckMin = _mm256_min_epi64_rpl(vSaturationCheckMin, vH);
            vSaturationCheckMin = _mm256_min_epi64_rpl(vSaturationCheckMin, vE);
            vSaturationCheckMin = _mm256_min_epi64_rpl(vSaturationCheckMin, vF);

            {
                __m256i vTAll = arr_load(result->trace->trace_table, i, segLen, j);
                __m256i case1 = _mm256_cmpeq_epi64(vH, vH_dag);
                __m256i case2 = _mm256_cmpeq_epi64(vH, vF);
                __m256i vT = _mm256_blendv_epi8(
                        _mm256_blendv_epi8(vTIns, vTDel, case2),
                        vTDiag, case1);
                _mm256_store_si256(pvHT + i, vT);
                vT = _mm256_or_si256(vT, vTAll);
                arr_store(result->trace->trace_table, vT, i, segLen, j);
            }

            vEF_opn = _mm256_sub_epi64(vH, vGapO);

            /* Update vE value. */
            vE_ext = _mm256_sub_epi64(vE, vGapE);
            vE = _mm256_max_epi64_rpl(vEF_opn, vE_ext);
            _mm256_store_si256(pvE + i, vE);
            {
                __m256i vEa = _mm256_load_si256(pvEaLoad + i);
                __m256i vEa_ext = _mm256_sub_epi64(vEa, vGapE);
                vEa = _mm256_max_epi64_rpl(vEF_opn, vEa_ext);
                _mm256_store_si256(pvEaStore + i, vEa);
                if (j+1<s2Len) {
                    __m256i cond = _mm256_cmpgt_epi64(vEF_opn, vEa_ext);
                    __m256i vT = _mm256_blendv_epi8(vTInsE, vTDiagE, cond);
                    arr_store(result->trace->trace_table, vT, i, segLen, j+1);
                }
            }

            /* Update vF value. */
            vF_ext = _mm256_sub_epi64(vF, vGapE);
            vF = _mm256_max_epi64_rpl(vEF_opn, vF_ext);
            if (i+1<segLen) {
                __m256i vTAll = arr_load(result->trace->trace_table, i+1, segLen, j);
                __m256i cond = _mm256_cmpgt_epi64(vEF_opn, vF_ext);
                __m256i vT = _mm256_blendv_epi8(vTDelF, vTDiagF, cond);
                vT = _mm256_or_si256(vT, vTAll);
                arr_store(result->trace->trace_table, vT, i+1, segLen, j);
            }

            /* 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 */
        vFa_ext = vF_ext;
        vFa = vF;
        for (k=0; k<segWidth; ++k) {
            int64_t tmp = boundary[j+1]-open;
            int64_t tmp2 = tmp < INT64_MIN ? INT64_MIN : tmp;
            __m256i vHp = _mm256_load_si256(&pvHLoad[segLen - 1]);
            vHp = _mm256_slli_si256_rpl(vHp, 8);
            vHp = _mm256_insert_epi64_rpl(vHp, boundary[j], 0);
            vEF_opn = _mm256_slli_si256_rpl(vEF_opn, 8);
            vEF_opn = _mm256_insert_epi64_rpl(vEF_opn, tmp2, 0);
            vF_ext = _mm256_slli_si256_rpl(vF_ext, 8);
            vF_ext = _mm256_insert_epi64_rpl(vF_ext, NEG_LIMIT, 0);
            vF = _mm256_slli_si256_rpl(vF, 8);
            vF = _mm256_insert_epi64_rpl(vF, tmp2, 0);
            vFa_ext = _mm256_slli_si256_rpl(vFa_ext, 8);
            vFa_ext = _mm256_insert_epi64_rpl(vFa_ext, NEG_LIMIT, 0);
            vFa = _mm256_slli_si256_rpl(vFa, 8);
            vFa = _mm256_insert_epi64_rpl(vFa, tmp2, 0);
            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);
                vSaturationCheckMin = _mm256_min_epi64_rpl(vSaturationCheckMin, vH);
                vSaturationCheckMax = _mm256_max_epi64_rpl(vSaturationCheckMax, vH);
                {
                    __m256i vTAll;
                    __m256i vT;
                    __m256i case1;
                    __m256i case2;
                    __m256i cond;
                    vHp = _mm256_add_epi64(vHp, _mm256_load_si256(vP + i));
                    case1 = _mm256_cmpeq_epi64(vH, vHp);
                    case2 = _mm256_cmpeq_epi64(vH, vF);
                    cond = _mm256_andnot_si256(case1,case2);
                    vTAll = arr_load(result->trace->trace_table, i, segLen, j);
                    vT = _mm256_load_si256(pvHT + i);
                    vT = _mm256_blendv_epi8(vT, vTDel, cond);
                    _mm256_store_si256(pvHT + i, vT);
                    vTAll = _mm256_and_si256(vTAll, vTMask);
                    vTAll = _mm256_or_si256(vTAll, vT);
                    arr_store(result->trace->trace_table, vTAll, i, segLen, j);
                }
                /* Update vF value. */
                {
                    __m256i vTAll = arr_load(result->trace->trace_table, i, segLen, j);
                    __m256i cond = _mm256_cmpgt_epi64(vEF_opn, vFa_ext);
                    __m256i vT = _mm256_blendv_epi8(vTDelF, vTDiagF, cond);
                    vTAll = _mm256_and_si256(vTAll, vFTMask);
                    vTAll = _mm256_or_si256(vTAll, vT);
                    arr_store(result->trace->trace_table, vTAll, i, segLen, j);
                }
                vEF_opn = _mm256_sub_epi64(vH, vGapO);
                vF_ext = _mm256_sub_epi64(vF, vGapE);
                {
                    __m256i vEa = _mm256_load_si256(pvEaLoad + i);
                    __m256i vEa_ext = _mm256_sub_epi64(vEa, vGapE);
                    vEa = _mm256_max_epi64_rpl(vEF_opn, vEa_ext);
                    _mm256_store_si256(pvEaStore + i, vEa);
                    if (j+1<s2Len) {
                        __m256i cond = _mm256_cmpgt_epi64(vEF_opn, vEa_ext);
                        __m256i vT = _mm256_blendv_epi8(vTInsE, vTDiagE, cond);
                        arr_store(result->trace->trace_table, vT, i, segLen, j+1);
                    }
                }
                if (! _mm256_movemask_epi8(
                            _mm256_or_si256(
                                _mm256_cmpgt_epi64(vF_ext, vEF_opn),
                                _mm256_cmpeq_epi64(vF_ext, vEF_opn))))
                    goto end;
                /*vF = _mm256_max_epi64_rpl(vEF_opn, vF_ext);*/
                vF = vF_ext;
                vFa_ext = _mm256_sub_epi64(vFa, vGapE);
                vFa = _mm256_max_epi64_rpl(vEF_opn, vFa_ext);
                vHp = _mm256_load_si256(pvHLoad + i);
            }
        }
end:
        {
        }
    }

    /* extract last value from the last column */
    {
        __m256i vH = _mm256_load_si256(pvHStore + offset);
        for (k=0; k<position; ++k) {
            vH = _mm256_slli_si256_rpl (vH, 8);
        }
        score = (int64_t) _mm256_extract_epi64_rpl (vH, 3);
    }

    if (_mm256_movemask_epi8(_mm256_or_si256(
            _mm256_cmplt_epi64_rpl(vSaturationCheckMin, vNegLimit),
            _mm256_cmpgt_epi64(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(boundary);
    parasail_free(pvHT);
    parasail_free(pvEaLoad);
    parasail_free(pvEaStore);
    parasail_free(pvE);
    parasail_free(pvHLoad);
    parasail_free(pvHStore);

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
andq $-0x20, %rsp
subq $0x320, %rsp            # imm = 0x320
movq %rsi, 0xe0(%rsp)
testq %rdi, %rdi
je 0x55dfd4
movq 0x60(%rdi), %rax
movq %rax, 0x1a8(%rsp)
testq %rax, %rax
je 0x55dff8
movq 0x10(%rdi), %rax
movq %rax, 0xd8(%rsp)
testq %rax, %rax
je 0x55e01c
movl 0x8(%rdi), %eax
testl %eax, %eax
jle 0x55e040
cmpq $0x0, 0xe0(%rsp)
je 0x55e064
movl %edx, %r15d
testl %edx, %edx
jle 0x55e085
movl %ecx, %r9d
testl %ecx, %ecx
js 0x55e0a6
testl %r8d, %r8d
js 0x55e0c7
movq %rax, %r12
movl %r8d, 0x160(%rsp)
leal -0x1(%rax), %r14d
addq $0x3, %r12
shrq $0x2, %r12
movl %r14d, %eax
xorl %edx, %edx
divl %r12d
movl %eax, 0x140(%rsp)
movl %edx, %r13d
movl %r9d, %ecx
negl %r9d
movq 0xd8(%rsp), %rdx
movslq 0x20(%rdx), %rax
movq %rcx, 0xe8(%rsp)
btsq $0x3f, %rcx
movabsq $-0x8000000000000000, %rdi # imm = 0x8000000000000000
movq %r15, %rsi
movq %rdi, %r15
subq %rax, %r15
movl %r9d, 0xa0(%rsp)
cmpl %r9d, %eax
cmovgq %rcx, %r15
movslq 0x1c(%rdx), %rax
movq %rax, 0x120(%rsp)
pushq $0x20
popq %rcx
movl %r12d, %edi
movq %rsi, 0x30(%rsp)
movq %rcx, %rdx
callq 0x1abb59
testq %rax, %rax
je 0x55d6ab
movq %rax, %rbx
movl %r13d, 0x74(%rsp)
movl %r14d, 0x78(%rsp)
orl $0x4880801, 0xc(%rax)   # imm = 0x4880801
pushq $0x20
popq %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x496aa4
movq %rax, 0x10(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x496aa4
movq %rax, %r13
movq %r14, %rdi
movq %r12, %rsi
callq 0x496aa4
movq %rax, 0x38(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x496aa4
movq %rax, 0x18(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x496aa4
movq %rax, 0x80(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x496aa4
movq %rax, 0x48(%rsp)
movq 0x30(%rsp), %rax
leal 0x1(%rax), %r14d
pushq $0x20
popq %rdi
movq %r14, %rsi
callq 0x1ab78c
cmpq $0x0, 0x10(%rsp)
sete %dl
testq %r13, %r13
sete %cl
orb %dl, %cl
cmpq $0x0, 0x38(%rsp)
sete %sil
cmpq $0x0, 0x18(%rsp)
sete %dl
orb %sil, %dl
orb %cl, %dl
cmpq $0x0, 0x80(%rsp)
sete %sil
cmpq $0x0, 0x48(%rsp)
sete %cl
orb %sil, %cl
movq %rax, 0x20(%rsp)
testq %rax, %rax
sete %al
orb %cl, %al
orb %dl, %al
testb $0x1, %al
je 0x55d6b2
xorl %ebx, %ebx
jmp 0x55e0ef
movq 0x30(%rsp), %rax
decl %eax
movl %eax, 0x70(%rsp)
pushq $0x3
popq %rax
subl 0x140(%rsp), %eax
movl %eax, 0x6c(%rsp)
movq 0xe8(%rsp), %rdx
vmovq %rdx, %xmm0
vpbroadcastq %xmm0, %ymm0
vmovdqa %ymm0, 0x240(%rsp)
movl 0x160(%rsp), %eax
vmovq %rax, %xmm0
vpbroadcastq %xmm0, %ymm1
incq %r15
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
subq 0x120(%rsp), %rcx
addq $-0x2, %rcx
vmovq %r15, %xmm0
vmovdqa %ymm0, 0x260(%rsp)
vpbroadcastq %xmm0, %ymm0
vmovdqa %ymm0, 0x1e0(%rsp)
vmovq %rcx, %xmm0
vpbroadcastq %xmm0, %ymm0
vmovdqa %ymm0, 0x220(%rsp)
movslq 0xa0(%rsp), %rcx
negq %rdx
movq %r12, %rsi
imulq %rax, %rsi
xorl %edi, %edi
movq %rcx, %r8
cmpq %r12, %rdi
je 0x55d7c5
movq %r8, %r9
xorl %r10d, %r10d
cmpq $0x4, %r10
je 0x55d783
movq %r9, 0x2e0(%rsp,%r10,8)
leaq (%rdx,%r9), %r11
movq %r11, 0x2c0(%rsp,%r10,8)
incq %r10
subq %rsi, %r9
jmp 0x55d761
movq %rdi, %r9
shlq $0x5, %r9
vmovaps 0x2e0(%rsp), %ymm0
movq 0x10(%rsp), %r10
vmovaps %ymm0, (%r10,%r9)
vmovdqa 0x2c0(%rsp), %ymm0
movq 0x38(%rsp), %r10
vmovdqa %ymm0, (%r10,%r9)
movq 0x18(%rsp), %r10
vmovdqa %ymm0, (%r10,%r9)
incq %rdi
subq %rax, %r8
jmp 0x55d756
movq 0x20(%rsp), %rdx
andq $0x0, (%rdx)
pushq $0x1
popq %rdx
movq 0x20(%rsp), %rsi
cmpq %rdx, %r14
je 0x55d7e7
movq %rcx, (%rsi,%rdx,8)
incq %rdx
subq %rax, %rcx
jmp 0x55d7d6
movq %r12, %rax
shlq $0x5, %rax
movq %rax, 0x28(%rsp)
xorl %eax, %eax
vbroadcastsd 0x6fed2(%rip), %ymm0 # 0x5cd6d0
vmovaps %ymm0, 0x200(%rsp)
movq 0x80(%rsp), %rdx
vmovaps 0x200(%rsp), %ymm0
cmpq %rax, 0x28(%rsp)
je 0x55d831
movq 0x10(%rbx), %rcx
movq (%rcx), %rcx
vmovaps %ymm0, (%rcx,%rax)
addq $0x20, %rax
jmp 0x55d818
leal -0x1(%r12), %eax
movl 0x30(%rsp), %ecx
movq %rcx, 0x1a0(%rsp)
movq $0x0, 0x40(%rsp)
shlq $0x5, %rax
movq %rax, 0x198(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0xf0(%rsp)
xorl %ecx, %ecx
vmovaps 0x1e0(%rsp), %ymm0
vmovaps %ymm0, 0x120(%rsp)
vmovdqa 0x220(%rsp), %ymm0
vmovdqa %ymm0, 0x140(%rsp)
movq %r12, 0x60(%rsp)
vmovdqa %ymm1, 0x160(%rsp)
movq %r13, %r14
movq %rdx, 0x50(%rsp)
cmpq 0x1a0(%rsp), %rcx
je 0x55df03
movq %rcx, %rdx
movq 0x10(%rsp), %rax
movq 0x198(%rsp), %rcx
leaq (%rax,%rcx), %rsi
movq %rsi, 0x1b0(%rsp)
vmovdqa (%rax,%rcx), %ymm0
vinserti128 $0x1, %xmm0, %ymm0, %ymm1
vpalignr $0x8, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[8,9,10,11,12,13,14,15],ymm0[0,1,2,3,4,5,6,7],ymm1[24,25,26,27,28,29,30,31],ymm0[16,17,18,19,20,21,22,23]
movq 0x20(%rsp), %rax
vmovq (%rax,%rdx,8), %xmm1
vpblendd $0x3, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[0,1],ymm0[2,3,4,5,6,7]
movq 0xd8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0xe0(%rsp), %rcx
movzbl (%rcx,%rdx), %ecx
movl (%rax,%rcx,4), %eax
imull %r12d, %eax
cltq
shlq $0x5, %rax
addq 0x1a8(%rsp), %rax
movq %rax, 0xf8(%rsp)
movq %rdx, 0x1b8(%rsp)
leaq 0x1(%rdx), %rax
movq %rax, 0x58(%rsp)
pushq $0x1
popq %r13
xorl %r15d, %r15d
vmovdqa 0x1e0(%rsp), %ymm4
cmpq %r15, 0x28(%rsp)
je 0x55dba5
movq 0x38(%rsp), %r12
vmovaps (%r12,%r15), %ymm1
vmovaps %ymm1, 0x100(%rsp)
movq 0xf8(%rsp), %rax
vpaddq (%rax,%r15), %ymm0, %ymm0
vmovdqa %ymm0, 0x1c0(%rsp)
vmovdqa %ymm4, 0x80(%rsp)
callq 0x55e101
vmovaps 0x80(%rsp), %ymm1
callq 0x55e101
vmovdqa %ymm0, %ymm1
vmovdqa %ymm0, 0xa0(%rsp)
vmovdqa %ymm0, (%r14,%r15)
vmovaps 0x120(%rsp), %ymm0
callq 0x55e101
vmovaps %ymm0, 0x120(%rsp)
vmovaps 0x140(%rsp), %ymm0
vmovaps 0xa0(%rsp), %ymm1
callq 0x55e10d
vmovaps 0x100(%rsp), %ymm1
callq 0x55e10d
vmovaps 0x80(%rsp), %ymm1
callq 0x55e10d
movq 0x10(%rbx), %rax
movq (%rax), %rax
movq 0x40(%rsp), %rcx
addq %rcx, %rax
vmovdqa 0xa0(%rsp), %ymm3
vpcmpeqq 0x1c0(%rsp), %ymm3, %ymm1
vpcmpeqq 0x80(%rsp), %ymm3, %ymm2
vmovdqa %ymm3, %ymm4
vpbroadcastq 0x6a7d7(%rip), %ymm3 # 0x5c8200
vpsubq %ymm2, %ymm3, %ymm2
vbroadcastsd 0x6e06a(%rip), %ymm3 # 0x5cbaa0
vblendvpd %ymm1, %ymm3, %ymm2, %ymm1
vorpd (%r15,%rax), %ymm1, %ymm2
movq 0x48(%rsp), %rax
vmovapd %ymm1, (%rax,%r15)
vmovaps %ymm0, 0x140(%rsp)
movq 0x10(%rbx), %rax
movq (%rax), %rax
addq %rcx, %rax
vmovapd %ymm2, (%r15,%rax)
vpsubq 0x240(%rsp), %ymm4, %ymm2
vmovdqa %ymm2, 0xa0(%rsp)
vmovdqa 0x100(%rsp), %ymm0
vpsubq 0x160(%rsp), %ymm0, %ymm1
vmovdqa %ymm2, %ymm0
callq 0x55e101
vmovdqa %ymm0, (%r12,%r15)
movq 0x18(%rsp), %rax
vmovdqa (%rax,%r15), %ymm0
vpsubq 0x160(%rsp), %ymm0, %ymm1
vmovapd 0xa0(%rsp), %ymm0
vmovdqa %ymm1, 0x100(%rsp)
callq 0x55e101
vmovdqa 0xa0(%rsp), %ymm2
movq 0x50(%rsp), %rax
vmovapd %ymm0, (%rax,%r15)
movq 0x30(%rsp), %rax
cmpl %eax, 0x58(%rsp)
jge 0x55db16
vpcmpgtq 0x100(%rsp), %ymm2, %ymm0
vbroadcastsd 0x6fbe2(%rip), %ymm1 # 0x5cd6d8
vblendvpd %ymm0, 0x200(%rsp), %ymm1, %ymm0
movq 0x10(%rbx), %rax
movq (%rax), %rax
addq 0xf0(%rsp), %rax
vmovapd %ymm0, (%r15,%rax)
vmovdqa 0x80(%rsp), %ymm0
vpsubq 0x160(%rsp), %ymm0, %ymm1
vmovdqa %ymm1, 0x80(%rsp)
vmovdqa %ymm2, %ymm0
callq 0x55e101
vmovdqa 0x80(%rsp), %ymm5
vmovdqa 0xa0(%rsp), %ymm3
vmovdqa %ymm0, %ymm4
cmpq 0x60(%rsp), %r13
jae 0x55db8e
movq 0x10(%rbx), %rax
movq (%rax), %rax
addq 0x40(%rsp), %rax
vpcmpgtq %ymm5, %ymm3, %ymm0
vbroadcastsd 0x6fb6f(%rip), %ymm1 # 0x5cd6e0
vbroadcastsd 0x6fb6e(%rip), %ymm2 # 0x5cd6e8
vblendvpd %ymm0, %ymm1, %ymm2, %ymm0
vorpd 0x20(%r15,%rax), %ymm0, %ymm0
vmovapd %ymm0, 0x20(%r15,%rax)
movq 0x10(%rsp), %rax
vmovdqa (%rax,%r15), %ymm0
addq $0x20, %r15
incq %r13
jmp 0x55d941
xorl %eax, %eax
vmovdqa %ymm4, %ymm6
vmovdqa %ymm5, %ymm7
cmpl $0x4, %eax
movq 0x1b8(%rsp), %rdx
je 0x55dec9
movl %eax, 0x7c(%rsp)
movq 0x20(%rsp), %rcx
movq 0x58(%rsp), %rax
movq (%rcx,%rax,8), %rax
subq 0xe8(%rsp), %rax
movq 0x1b0(%rsp), %rsi
vmovdqa (%rsi), %ymm0
vinserti128 $0x1, %xmm0, %ymm0, %ymm1
vpalignr $0x8, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[8,9,10,11,12,13,14,15],ymm0[0,1,2,3,4,5,6,7],ymm1[24,25,26,27,28,29,30,31],ymm0[16,17,18,19,20,21,22,23]
vmovq (%rcx,%rdx,8), %xmm1
vpblendd $0x3, %ymm1, %ymm0, %ymm8 # ymm8 = ymm1[0,1],ymm0[2,3,4,5,6,7]
vpermq $0x90, %ymm3, %ymm0     # ymm0 = ymm3[0,0,1,2]
vmovq %rax, %xmm1
vpblendd $0x3, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[0,1],ymm0[2,3,4,5,6,7]
vmovdqa %ymm0, 0xa0(%rsp)
vpermq $0x90, %ymm5, %ymm0     # ymm0 = ymm5[0,0,1,2]
vmovdqa 0x260(%rsp), %ymm2
vpblendd $0x3, %ymm2, %ymm0, %ymm5 # ymm5 = ymm2[0,1],ymm0[2,3,4,5,6,7]
vpermq $0x90, %ymm4, %ymm0     # ymm0 = ymm4[0,0,1,2]
vpblendd $0x3, %ymm1, %ymm0, %ymm4 # ymm4 = ymm1[0,1],ymm0[2,3,4,5,6,7]
vpermq $0x90, %ymm7, %ymm0     # ymm0 = ymm7[0,0,1,2]
vpblendd $0x3, %ymm2, %ymm0, %ymm0 # ymm0 = ymm2[0,1],ymm0[2,3,4,5,6,7]
vmovdqa %ymm0, 0x1c0(%rsp)
vpermq $0x90, %ymm6, %ymm0     # ymm0 = ymm6[0,0,1,2]
vpblendd $0x3, %ymm1, %ymm0, %ymm6 # ymm6 = ymm1[0,1],ymm0[2,3,4,5,6,7]
xorl %r15d, %r15d
movq 0x40(%rsp), %r13
movq 0x60(%rsp), %r12
subq $0x1, %r12
jb 0x55dea8
vmovdqa %ymm6, 0x2a0(%rsp)
vmovaps (%r14,%r15), %ymm0
vmovdqa %ymm4, %ymm1
vmovdqa %ymm4, 0x80(%rsp)
vmovdqa %ymm8, 0x280(%rsp)
callq 0x55e101
vmovaps %ymm0, %ymm1
vmovaps %ymm0, 0x100(%rsp)
vmovaps %ymm0, (%r14,%r15)
vmovaps 0x140(%rsp), %ymm0
callq 0x55e10d
vmovaps %ymm0, 0x140(%rsp)
vmovaps 0x120(%rsp), %ymm0
vmovaps 0x100(%rsp), %ymm1
callq 0x55e101
movq 0xf8(%rsp), %rax
vmovdqa 0x280(%rsp), %ymm1
vpaddq (%rax,%r15), %ymm1, %ymm1
vmovdqa 0x100(%rsp), %ymm3
vpcmpeqq 0x80(%rsp), %ymm3, %ymm2
vpcmpeqq %ymm1, %ymm3, %ymm1
vmovdqa %ymm3, %ymm4
vpandn %ymm2, %ymm1, %ymm1
movq 0x10(%rbx), %rax
movq (%rax), %rax
movq 0x48(%rsp), %rcx
vmovapd (%rcx,%r15), %ymm2
vbroadcastsd 0x6fc5b(%rip), %ymm3 # 0x5cd988
vblendvpd %ymm1, %ymm3, %ymm2, %ymm1
vbroadcastsd 0x6fc54(%rip), %ymm2 # 0x5cd990
vandpd (%rax,%r13), %ymm2, %ymm2
vmovapd %ymm1, (%rcx,%r15)
vorpd %ymm2, %ymm1, %ymm1
movq 0x10(%rbx), %rax
movq (%rax), %rax
vmovapd %ymm1, (%rax,%r13)
movq 0x10(%rbx), %rax
vmovdqa 0xa0(%rsp), %ymm1
vpcmpgtq 0x1c0(%rsp), %ymm1, %ymm1
vbroadcastsd 0x6f967(%rip), %ymm2 # 0x5cd6e0
vbroadcastsd 0x6f966(%rip), %ymm3 # 0x5cd6e8
vblendvpd %ymm1, %ymm2, %ymm3, %ymm1
movq (%rax), %rax
vbroadcastsd 0x6fc04(%rip), %ymm2 # 0x5cd998
vandpd (%rax,%r13), %ymm2, %ymm2
vorpd %ymm1, %ymm2, %ymm1
vmovapd %ymm1, (%rax,%r13)
vmovaps %ymm0, 0x120(%rsp)
vpsubq 0x240(%rsp), %ymm4, %ymm0
vmovdqa %ymm0, 0xa0(%rsp)
movq 0x18(%rsp), %rax
vmovdqa (%rax,%r15), %ymm1
vpsubq 0x160(%rsp), %ymm1, %ymm1
vmovdqa %ymm1, 0x100(%rsp)
callq 0x55e101
vmovdqa 0xa0(%rsp), %ymm3
movq 0x50(%rsp), %rax
vmovdqa %ymm0, (%rax,%r15)
movq 0x58(%rsp), %rax
cmpl 0x30(%rsp), %eax
jge 0x55de31
vpcmpgtq 0x100(%rsp), %ymm3, %ymm0
vbroadcastsd 0x6f8c5(%rip), %ymm1 # 0x5cd6d8
vblendvpd %ymm0, 0x200(%rsp), %ymm1, %ymm0
movq 0x10(%rbx), %rax
movq (%rax), %rax
addq 0x28(%rsp), %rax
vmovapd %ymm0, (%r13,%rax)
vmovdqa 0x160(%rsp), %ymm1
vmovdqa 0x80(%rsp), %ymm2
vpsubq %ymm1, %ymm2, %ymm2
vpcmpgtq %ymm2, %ymm3, %ymm0
vtestpd 0x6dc2b(%rip), %ymm0    # 0x5cba80
vmovdqa 0x2a0(%rsp), %ymm0
jb 0x55dec5
vpsubq %ymm1, %ymm0, %ymm1
vmovdqa %ymm3, %ymm0
vmovdqa %ymm1, 0x1c0(%rsp)
vmovdqa %ymm2, 0x80(%rsp)
callq 0x55e101
vmovdqa 0x80(%rsp), %ymm4
vmovdqa %ymm0, %ymm6
movq 0x10(%rsp), %rax
vmovdqa (%rax,%r15), %ymm8
addq $0x20, %r13
addq $0x20, %r15
vmovdqa %ymm4, %ymm5
jmp 0x55dc66
movl 0x7c(%rsp), %eax
incl %eax
vmovdqa 0xa0(%rsp), %ymm3
vmovdqa 0x1c0(%rsp), %ymm7
jmp 0x55dbaf
vmovdqa %ymm2, %ymm5
movq 0x28(%rsp), %rax
addq %rax, 0xf0(%rsp)
addq %rax, 0x40(%rsp)
movq 0x58(%rsp), %rcx
movq 0x18(%rsp), %rdx
movq 0x50(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rsp), %r13
movq %r14, 0x10(%rsp)
movq 0x60(%rsp), %r12
jmp 0x55d898
movl 0x74(%rsp), %eax
shlq $0x5, %rax
movq 0x10(%rsp), %rcx
vmovdqa (%rcx,%rax), %ymm0
xorl %eax, %eax
movl 0x78(%rsp), %ecx
movl 0x70(%rsp), %edx
movl 0x6c(%rsp), %esi
cmpl %esi, %eax
jge 0x55df37
vperm2i128 $0x8, %ymm0, %ymm0, %ymm1 # ymm1 = zero,zero,ymm0[0,1]
vpalignr $0x8, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[8,9,10,11,12,13,14,15],ymm0[0,1,2,3,4,5,6,7],ymm1[24,25,26,27,28,29,30,31],ymm0[16,17,18,19,20,21,22,23]
incl %eax
jmp 0x55df23
vmovdqa 0x1e0(%rsp), %ymm1
vpcmpgtq 0x140(%rsp), %ymm1, %ymm1
vmovdqa 0x120(%rsp), %ymm2
vpcmpgtq 0x220(%rsp), %ymm2, %ymm2
vpor %ymm2, %ymm1, %ymm1
vtestpd %ymm1, %ymm1
je 0x55df74
orb $0x40, 0xc(%rbx)
xorl %eax, %eax
xorl %edx, %edx
xorl %ecx, %ecx
jmp 0x55df80
vextracti128 $0x1, %ymm0, %xmm0
vpextrq $0x1, %xmm0, %rax
movl %eax, (%rbx)
movl %ecx, 0x4(%rbx)
movl %edx, 0x8(%rbx)
movq 0x20(%rsp), %rdi
vzeroupper
callq 0x1ab763
movq 0x48(%rsp), %rdi
callq 0x1ab763
movq 0x50(%rsp), %rdi
callq 0x1ab763
movq 0x18(%rsp), %rdi
callq 0x1ab763
movq 0x38(%rsp), %rdi
callq 0x1ab763
movq %r14, %rdi
callq 0x1ab763
movq 0x10(%rsp), %rdi
callq 0x1ab763
jmp 0x55e0ef
movq 0x1dcffd(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x69006(%rip), %rsi     # 0x5c6feb
leaq 0x6360b(%rip), %rdx     # 0x5c15f7
leaq 0x3f4ea(%rip), %rcx     # 0x59d4dd
jmp 0x55e0e6
movq 0x1dcfd9(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x68fe2(%rip), %rsi     # 0x5c6feb
leaq 0x635e7(%rip), %rdx     # 0x5c15f7
leaq 0x69909(%rip), %rcx     # 0x5c7920
jmp 0x55e0e6
movq 0x1dcfb5(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x68fbe(%rip), %rsi     # 0x5c6feb
leaq 0x635c3(%rip), %rdx     # 0x5c15f7
leaq 0x698fe(%rip), %rcx     # 0x5c7939
jmp 0x55e0e6
movq 0x1dcf91(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x696b0(%rip), %rsi     # 0x5c7701
leaq 0x6359f(%rip), %rdx     # 0x5c15f7
leaq 0x698ea(%rip), %rcx     # 0x5c7949
jmp 0x55e0e6
movq 0x1dcf6d(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x68f76(%rip), %rsi     # 0x5c6feb
leaq 0x6357b(%rip), %rdx     # 0x5c15f7
leaq 0x6967b(%rip), %rcx     # 0x5c76fe
jmp 0x55e0e6
movq 0x1dcf4c(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x6966b(%rip), %rsi     # 0x5c7701
leaq 0x6355a(%rip), %rdx     # 0x5c15f7
leaq 0x69671(%rip), %rcx     # 0x5c7715
jmp 0x55e0e6
movq 0x1dcf2b(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x69664(%rip), %rsi     # 0x5c771b
leaq 0x63539(%rip), %rdx     # 0x5c15f7
leaq 0x6966b(%rip), %rcx     # 0x5c7730
jmp 0x55e0e6
movq 0x1dcf0a(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x69643(%rip), %rsi     # 0x5c771b
leaq 0x63518(%rip), %rdx     # 0x5c15f7
leaq 0x6964f(%rip), %rcx     # 0x5c7735
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x19e180
movq %rbx, %rax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq