// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/sw_trace_striped_avx2_256_64.c
// Function: parasail_sw_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 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;
    __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;
    __m256i* restrict pvHMax = NULL;
    __m256i vGapO;
    __m256i vGapE;
    __m256i vZero;
    int64_t score = 0;
    __m256i vMaxH;
    __m256i vMaxHUnit;
    int64_t maxp = 0;
    parasail_result_t *result = NULL;
    __m256i vTZero;
    __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;
    end_query = 0;
    end_ref = 0;
    s1Len = profile->s1Len;
    matrix = profile->matrix;
    segWidth = 4; /* number of values in vector unit */
    segLen = (s1Len + segWidth - 1) / segWidth;
    vProfile = (__m256i*)profile->profile64.score;
    vGapO = _mm256_set1_epi64x_rpl(open);
    vGapE = _mm256_set1_epi64x_rpl(gap);
    vZero = _mm256_setzero_si256();
    score = NEG_INF;
    vMaxH = vZero;
    vMaxHUnit = vZero;
    maxp = INT64_MAX - (int64_t)(matrix->max+1);
    vTZero = _mm256_set1_epi64x_rpl(PARASAIL_ZERO);
    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_SW | 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);
    pvHMax = parasail_memalign___m256i(32, segLen);

    /* 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 (!pvHMax) return NULL;

    /* initialize H and E */
    parasail_memset___m256i(pvHStore, vZero, segLen);
    parasail_memset___m256i(pvE, _mm256_set1_epi64x_rpl(-open), segLen);
    parasail_memset___m256i(pvEaStore, _mm256_set1_epi64x_rpl(-open), segLen);

    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 0.  Any errors to vH values will be
         * corrected in the Lazy_F loop. */
        vF = _mm256_sub_epi64(vZero,vGapO);

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

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

        if (end_ref == j-2) {
            /* Swap in the max buffer. */
            SWAP3(pvHMax,  pvHLoad,  pvHStore)
            SWAP(pvEaLoad,  pvEaStore)
        }
        else {
            /* 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_dag = _mm256_max_epi64_rpl(vH_dag, vZero);
            vH = _mm256_max_epi64_rpl(vH_dag, vE);
            vH = _mm256_max_epi64_rpl(vH, vF);
            /* Save vH values. */
            _mm256_store_si256(pvHStore + i, vH);

            {
                __m256i vTAll = arr_load(result->trace->trace_table, i, segLen, j);
                __m256i cond_zero = _mm256_cmpeq_epi64(vH, vZero);
                __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),
                        _mm256_blendv_epi8(vTDiag, vTZero, cond_zero),
                        case1);
                _mm256_store_si256(pvHT + i, vT);
                vT = _mm256_or_si256(vT, vTAll);
                arr_store(result->trace->trace_table, vT, i, segLen, j);
            }
            vMaxH = _mm256_max_epi64_rpl(vH, vMaxH);
            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) {
            __m256i vHp = _mm256_load_si256(&pvHLoad[segLen - 1]);
            vHp = _mm256_slli_si256_rpl(vHp, 8);
            vEF_opn = _mm256_slli_si256_rpl(vEF_opn, 8);
            vEF_opn = _mm256_insert_epi64_rpl(vEF_opn, -open, 0);
            vF_ext = _mm256_slli_si256_rpl(vF_ext, 8);
            vF_ext = _mm256_insert_epi64_rpl(vF_ext, NEG_INF, 0);
            vF = _mm256_slli_si256_rpl(vF, 8);
            vF = _mm256_insert_epi64_rpl(vF, -open, 0);
            vFa_ext = _mm256_slli_si256_rpl(vFa_ext, 8);
            vFa_ext = _mm256_insert_epi64_rpl(vFa_ext, NEG_INF, 0);
            vFa = _mm256_slli_si256_rpl(vFa, 8);
            vFa = _mm256_insert_epi64_rpl(vFa, -open, 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);
                {
                    __m256i vTAll;
                    __m256i vT;
                    __m256i case1;
                    __m256i case2;
                    __m256i cond;
                    vHp = _mm256_add_epi64(vHp, _mm256_load_si256(vP + i));
                    vHp = _mm256_max_epi64_rpl(vHp, vZero);
                    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);
                }
                vMaxH = _mm256_max_epi64_rpl(vH, vMaxH);
                /* 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:
        {
        }

        {
            __m256i vCompare = _mm256_cmpgt_epi64(vMaxH, vMaxHUnit);
            if (_mm256_movemask_epi8(vCompare)) {
                score = _mm256_hmax_epi64_rpl(vMaxH);
                /* if score has potential to overflow, abort early */
                if (score > maxp) {
                    result->flag |= PARASAIL_FLAG_SATURATED;
                    break;
                }
                vMaxHUnit = _mm256_set1_epi64x_rpl(score);
                end_ref = j;
            }
        }

        /*if (score == stop) break;*/
    }

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

    if (parasail_result_is_saturated(result)) {
        score = 0;
        end_query = 0;
        end_ref = 0;
    }
    else {
        if (end_ref == j-1) {
            /* end_ref was the last store column */
            SWAP(pvHMax,  pvHStore)
        }
        else if (end_ref == j-2) {
            /* end_ref was the last load column */
            SWAP(pvHMax,  pvHLoad)
        }
        /* Trace the alignment ending position on read. */
        {
            int64_t *t = (int64_t*)pvHMax;
            int32_t column_len = segLen * segWidth;
            end_query = s1Len - 1;
            for (i = 0; i<column_len; ++i, ++t) {
                if (*t == score) {
                    int32_t temp = i / segWidth + i % segWidth * segLen;
                    if (temp < end_query) {
                        end_query = temp;
                    }
                }
            }
        }
    }

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

    parasail_free(pvHMax);
    parasail_free(pvHT);
    parasail_free(pvEaLoad);
    parasail_free(pvEaStore);
    parasail_free(pvE);
    parasail_free(pvHLoad);
    parasail_free(pvHStore);

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %rsi, 0xf0(%rsp)
testq %rdi, %rdi
je 0x56012d
movq 0x60(%rdi), %rax
movq %rax, 0x148(%rsp)
testq %rax, %rax
je 0x560151
movq 0x10(%rdi), %rax
movq %rax, 0xe8(%rsp)
testq %rax, %rax
je 0x560175
movl 0x8(%rdi), %eax
testl %eax, %eax
jle 0x560199
cmpq $0x0, 0xf0(%rsp)
je 0x5601bd
movl %edx, %r14d
testl %edx, %edx
jle 0x5601de
movl %ecx, %r15d
testl %ecx, %ecx
js 0x5601ff
movl %r8d, %r12d
testl %r8d, %r8d
js 0x560220
movq %rax, 0x130(%rsp)
leaq 0x3(%rax), %rbp
shrq $0x2, %rbp
movq 0xe8(%rsp), %rax
movslq 0x1c(%rax), %r13
pushq $0x20
popq %rcx
movl %ebp, %edi
movl %r14d, %esi
movq %rcx, %rdx
callq 0x1abb59
testq %rax, %rax
je 0x560246
movq %rax, %rbx
movl %r12d, 0xb0(%rsp)
movl %r15d, 0x30(%rsp)
movq %r13, 0x90(%rsp)
orl $0x4880804, 0xc(%rax)   # imm = 0x4880804
pushq $0x20
popq %r13
movq %r13, %rdi
movq %rbp, %rsi
callq 0x496aa4
movq %rax, %r15
movq %r13, %rdi
movq %rbp, %rsi
callq 0x496aa4
movq %rax, 0x18(%rsp)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x496aa4
movq %rax, %r12
movq %r13, %rdi
movq %rbp, %rsi
callq 0x496aa4
movq %rax, 0x8(%rsp)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x496aa4
movq %rax, 0x20(%rsp)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x496aa4
movq %rax, 0x68(%rsp)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x496aa4
movq %rax, 0x10(%rsp)
xorl %eax, %eax
testq %r15, %r15
je 0x560248
movq 0x18(%rsp), %rcx
testq %rcx, %rcx
je 0x560248
testq %r12, %r12
je 0x560248
cmpq $0x0, 0x8(%rsp)
je 0x560248
cmpq $0x0, 0x20(%rsp)
je 0x560248
cmpq $0x0, 0x68(%rsp)
je 0x560248
cmpq $0x0, 0x10(%rsp)
je 0x560248
movabsq $0x7fffffffffffffff, %rdx # imm = 0x7FFFFFFFFFFFFFFF
movl 0x30(%rsp), %eax
vmovq %rax, %xmm0
vpbroadcastq %xmm0, %ymm0
vmovdqu %ymm0, 0x200(%rsp)
movl 0xb0(%rsp), %eax
vmovq %rax, %xmm0
vpbroadcastq %xmm0, %ymm0
vmovdqu %ymm0, 0x1a0(%rsp)
movq 0x90(%rsp), %r13
notq %r13
addq %rdx, %r13
movq %r13, 0x90(%rsp)
vpxor %xmm0, %xmm0, %xmm0
movq %r15, %rdi
movq %rbp, %rsi
movq %rcx, %r13
callq 0x496aad
movl 0x30(%rsp), %eax
negl %eax
cltq
vmovq %rax, %xmm0
vmovdqu %ymm0, 0x260(%rsp)
vpbroadcastq %xmm0, %ymm0
vmovdqu %ymm0, 0x30(%rsp)
movq %r12, %rdi
movq %rbp, %rsi
callq 0x496aad
movq 0x8(%rsp), %rdi
vmovups 0x30(%rsp), %ymm0
movq %rbp, %rsi
callq 0x496aad
movq %r13, %rdx
movq 0x20(%rsp), %r13
movq %rbp, %rax
shlq $0x5, %rax
movq %rax, 0x58(%rsp)
xorl %eax, %eax
vbroadcastsd 0x6de8a(%rip), %ymm0 # 0x5cd6d0
vmovups %ymm0, 0x1c0(%rsp)
vmovdqu 0x1c0(%rsp), %ymm0
cmpq %rax, 0x58(%rsp)
je 0x55f871
movq 0x10(%rbx), %rcx
movq (%rcx), %rcx
vmovdqa %ymm0, (%rcx,%rax)
addq $0x20, %rax
jmp 0x55f858
vpxor %xmm0, %xmm0, %xmm0
vpsubq 0x200(%rsp), %ymm0, %ymm0
vmovdqu %ymm0, 0x240(%rsp)
leal -0x1(%rbp), %eax
movl %r14d, %ecx
movq %rcx, 0x140(%rsp)
xorl %esi, %esi
movabsq $-0x4000000000000000, %rcx # imm = 0xC000000000000000
shlq $0x5, %rax
movq %rax, 0x138(%rsp)
vpxor %xmm0, %xmm0, %xmm0
vmovdqu %ymm0, 0x220(%rsp)
vmovdqu %ymm0, 0x180(%rsp)
movq %rcx, 0xd8(%rsp)
movl $0x0, 0x4(%rsp)
movq %r12, 0xf8(%rsp)
movq %rbp, 0x100(%rsp)
leaq 0x1(%rsi), %rcx
movq 0x58(%rsp), %rax
imulq %rax, %rcx
movq %rcx, 0x98(%rsp)
movq %rsi, 0x28(%rsp)
imulq %rsi, %rax
movq %rax, 0x60(%rsp)
movq %r13, %rax
movq %rdx, 0x110(%rsp)
movq %r15, %rdx
movq 0x8(%rsp), %rcx
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %rsi
cmpq 0x140(%rsp), %rsi
je 0x560006
movq %rcx, 0x20(%rsp)
movq 0x138(%rsp), %rax
leaq (%rdx,%rax), %rcx
movq %rcx, 0x150(%rsp)
vmovdqa (%rdx,%rax), %ymm0
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]
movq 0xe8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0xf0(%rsp), %rcx
movzbl (%rcx,%rsi), %ecx
movl (%rax,%rcx,4), %eax
imull %ebp, %eax
cltq
shlq $0x5, %rax
addq 0x148(%rsp), %rax
movq %rax, 0x108(%rsp)
leal -0x2(%rsi), %eax
movl %eax, 0x1e0(%rsp)
cmpl %eax, 0x4(%rsp)
movq 0x110(%rsp), %rax
cmoveq 0x10(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq %rsi, 0xe0(%rsp)
leaq 0x1(%rsi), %rax
movq %rax, 0x28(%rsp)
pushq $0x1
popq %r15
xorl %r13d, %r13d
vmovups 0x240(%rsp), %ymm1
vmovups %ymm1, 0xb0(%rsp)
movq %rdx, 0x18(%rsp)
cmpq %r13, 0x58(%rsp)
je 0x55fbf2
vmovaps (%r12,%r13), %ymm1
vmovups %ymm1, 0x70(%rsp)
movq 0x108(%rsp), %rax
vpaddq (%rax,%r13), %ymm0, %ymm0
vxorps %xmm1, %xmm1, %xmm1
callq 0x56027d
vmovdqu %ymm0, 0x30(%rsp)
vmovups 0x70(%rsp), %ymm1
callq 0x56027d
vmovups 0xb0(%rsp), %ymm1
callq 0x56027d
movq 0xa0(%rsp), %rax
vmovdqa %ymm0, (%rax,%r13)
movq 0x10(%rbx), %rax
movq (%rax), %rax
movq 0x60(%rsp), %rcx
addq %rcx, %rax
vpcmpeqq 0x30(%rsp), %ymm0, %ymm4
vpcmpeqq 0xb0(%rsp), %ymm0, %ymm1
vpbroadcastq 0x6879a(%rip), %ymm2 # 0x5c8200
vpsubq %ymm1, %ymm2, %ymm1
vpcmpeqq 0x6bdcd(%rip), %ymm0, %ymm2 # 0x5cb840
vmovdqu %ymm0, 0x160(%rsp)
vpbroadcastq 0x6c01b(%rip), %ymm3 # 0x5cbaa0
vpandn %ymm3, %ymm2, %ymm2
vblendvpd %ymm4, %ymm2, %ymm1, %ymm2
vorpd (%r13,%rax), %ymm2, %ymm1
movq 0x68(%rsp), %rax
vmovapd %ymm2, (%rax,%r13)
movq 0x10(%rbx), %rax
movq (%rax), %rax
addq %rcx, %rax
vmovapd %ymm1, (%r13,%rax)
vmovups 0x180(%rsp), %ymm1
callq 0x56027d
vmovdqu %ymm0, 0x180(%rsp)
vmovdqu 0x160(%rsp), %ymm0
vpsubq 0x200(%rsp), %ymm0, %ymm2
vmovdqu %ymm2, 0x30(%rsp)
vmovdqu 0x70(%rsp), %ymm0
vpsubq 0x1a0(%rsp), %ymm0, %ymm1
vmovdqa %ymm2, %ymm0
callq 0x56027d
vmovdqa %ymm0, (%r12,%r13)
movq 0x20(%rsp), %rax
vmovdqa (%rax,%r13), %ymm0
vpsubq 0x1a0(%rsp), %ymm0, %ymm1
vmovupd 0x30(%rsp), %ymm0
vmovdqu %ymm1, 0x70(%rsp)
callq 0x56027d
vmovdqu 0x30(%rsp), %ymm2
movq 0x8(%rsp), %rax
vmovapd %ymm0, (%rax,%r13)
cmpl %r14d, 0x28(%rsp)
jge 0x55fb6d
vpcmpgtq 0x70(%rsp), %ymm2, %ymm0
vbroadcastsd 0x6db8c(%rip), %ymm1 # 0x5cd6d8
vblendvpd %ymm0, 0x1c0(%rsp), %ymm1, %ymm0
movq 0x10(%rbx), %rax
movq (%rax), %rax
addq 0x98(%rsp), %rax
vmovapd %ymm0, (%r13,%rax)
vmovdqu 0xb0(%rsp), %ymm0
vpsubq 0x1a0(%rsp), %ymm0, %ymm1
vmovdqa %ymm2, %ymm0
vmovdqu %ymm1, 0x70(%rsp)
callq 0x56027d
vmovdqu 0x30(%rsp), %ymm3
vmovdqu %ymm0, 0xb0(%rsp)
cmpq %rbp, %r15
jae 0x55fbdb
movq 0x10(%rbx), %rax
movq (%rax), %rax
addq 0x60(%rsp), %rax
vpcmpgtq 0x70(%rsp), %ymm3, %ymm0
vbroadcastsd 0x6db22(%rip), %ymm1 # 0x5cd6e0
vbroadcastsd 0x6db21(%rip), %ymm2 # 0x5cd6e8
vblendvpd %ymm0, %ymm1, %ymm2, %ymm0
vorpd 0x20(%r13,%rax), %ymm0, %ymm0
vmovapd %ymm0, 0x20(%r13,%rax)
movq 0x18(%rsp), %rdx
vmovdqa (%rdx,%r13), %ymm0
addq $0x20, %r13
incq %r15
jmp 0x55f9e2
movl 0x1e0(%rsp), %eax
cmpl %eax, 0x4(%rsp)
movq 0x10(%rsp), %rax
cmoveq 0x110(%rsp), %rax
movq %rax, 0x10(%rsp)
xorl %eax, %eax
vmovdqu 0x70(%rsp), %ymm4
vmovdqu 0xb0(%rsp), %ymm1
cmpl $0x4, %eax
je 0x55ff88
movl %eax, 0xac(%rsp)
movq 0x150(%rsp), %rax
vmovdqa (%rax), %ymm0
vperm2i128 $0x8, %ymm0, %ymm0, %ymm2 # ymm2 = zero,zero,ymm0[0,1]
vpalignr $0x8, %ymm2, %ymm0, %ymm5 # ymm5 = ymm2[8,9,10,11,12,13,14,15],ymm0[0,1,2,3,4,5,6,7],ymm2[24,25,26,27,28,29,30,31],ymm0[16,17,18,19,20,21,22,23]
vpermq $0x90, %ymm3, %ymm0     # ymm0 = ymm3[0,0,1,2]
vmovdqu 0x260(%rsp), %ymm2
vpblendd $0x3, %ymm2, %ymm0, %ymm0 # ymm0 = ymm2[0,1],ymm0[2,3,4,5,6,7]
vmovdqu %ymm0, 0x30(%rsp)
vpermq $0x90, %ymm4, %ymm0     # ymm0 = ymm4[0,0,1,2]
movabsq $-0x4000000000000000, %rax # imm = 0xC000000000000000
vmovq %rax, %xmm3
vpblendd $0x3, %ymm3, %ymm0, %ymm4 # ymm4 = ymm3[0,1],ymm0[2,3,4,5,6,7]
vpermq $0x90, %ymm1, %ymm0     # ymm0 = ymm1[0,0,1,2]
vpblendd $0x3, %ymm2, %ymm0, %ymm1 # ymm1 = ymm2[0,1],ymm0[2,3,4,5,6,7]
vpermq $0x90, 0x70(%rsp), %ymm0 # ymm0 = mem[0,0,1,2]
vpblendd $0x3, %ymm3, %ymm0, %ymm0 # ymm0 = ymm3[0,1],ymm0[2,3,4,5,6,7]
vmovdqu %ymm0, 0x70(%rsp)
vpermq $0x90, 0xb0(%rsp), %ymm0 # ymm0 = mem[0,0,1,2]
vpblendd $0x3, %ymm2, %ymm0, %ymm0 # ymm0 = ymm2[0,1],ymm0[2,3,4,5,6,7]
vmovdqu %ymm0, 0xb0(%rsp)
xorl %r15d, %r15d
movq 0x60(%rsp), %r12
movq 0x98(%rsp), %rbp
movq 0x100(%rsp), %rax
subq $0x1, %rax
jb 0x55ff07
movq %rax, 0x158(%rsp)
movq %rbp, %r13
movq %rbx, %rbp
movq %r14, %rbx
movq 0xa0(%rsp), %r14
vmovaps (%r14,%r15), %ymm0
vmovdqu %ymm1, 0x160(%rsp)
vmovdqu %ymm5, 0x1e0(%rsp)
callq 0x56027d
vmovups %ymm0, 0x110(%rsp)
vmovaps %ymm0, (%r14,%r15)
movq %rbx, %r14
movq %rbp, %rbx
movq %r13, %rbp
movq 0x108(%rsp), %rax
vmovdqu 0x1e0(%rsp), %ymm0
vpaddq (%rax,%r15), %ymm0, %ymm0
vpxor %xmm1, %xmm1, %xmm1
callq 0x56027d
vmovdqu 0x110(%rsp), %ymm2
vpcmpeqq 0x160(%rsp), %ymm2, %ymm1
vpcmpeqq %ymm0, %ymm2, %ymm3
vmovdqa %ymm2, %ymm0
vpandn %ymm1, %ymm3, %ymm3
movq 0x10(%rbx), %rax
movq 0x68(%rsp), %rcx
vmovapd (%rcx,%r15), %ymm1
vbroadcastsd 0x6dc07(%rip), %ymm2 # 0x5cd988
vblendvpd %ymm3, %ymm2, %ymm1, %ymm2
movq (%rax), %rax
vbroadcastsd 0x6dbfd(%rip), %ymm1 # 0x5cd990
vandpd (%rax,%r12), %ymm1, %ymm1
vmovapd %ymm2, (%rcx,%r15)
vorpd %ymm1, %ymm2, %ymm1
movq 0x10(%rbx), %rax
movq (%rax), %rax
vmovapd %ymm1, (%rax,%r12)
vmovups 0x180(%rsp), %ymm1
callq 0x56027d
movq 0x10(%rbx), %rax
vmovdqu 0x30(%rsp), %ymm1
vpcmpgtq 0x70(%rsp), %ymm1, %ymm1
vbroadcastsd 0x6d908(%rip), %ymm2 # 0x5cd6e0
vbroadcastsd 0x6d907(%rip), %ymm3 # 0x5cd6e8
vblendvpd %ymm1, %ymm2, %ymm3, %ymm1
movq (%rax), %rax
vbroadcastsd 0x6dba5(%rip), %ymm2 # 0x5cd998
vandpd (%rax,%r12), %ymm2, %ymm2
vorpd %ymm1, %ymm2, %ymm1
vmovapd %ymm1, (%rax,%r12)
vmovdqu %ymm0, 0x180(%rsp)
vmovdqu 0x110(%rsp), %ymm0
vpsubq 0x200(%rsp), %ymm0, %ymm0
vmovdqu %ymm0, 0x30(%rsp)
movq 0x20(%rsp), %rax
vmovdqa (%rax,%r15), %ymm1
vpsubq 0x1a0(%rsp), %ymm1, %ymm1
vmovdqu %ymm1, 0x70(%rsp)
callq 0x56027d
vmovdqu 0x30(%rsp), %ymm3
movq 0x8(%rsp), %rax
vmovdqa %ymm0, (%rax,%r15)
cmpl %r14d, 0x28(%rsp)
jge 0x55fe82
vpcmpgtq 0x70(%rsp), %ymm3, %ymm0
vbroadcastsd 0x6d86d(%rip), %ymm1 # 0x5cd6d8
vblendvpd %ymm0, 0x1c0(%rsp), %ymm1, %ymm0
movq 0x10(%rbx), %rax
movq (%rax), %rax
vmovapd %ymm0, (%rax,%rbp)
vmovdqu 0x1a0(%rsp), %ymm1
vmovdqu 0x160(%rsp), %ymm0
vpsubq %ymm1, %ymm0, %ymm2
vpcmpgtq %ymm2, %ymm3, %ymm0
vtestpd 0x6bbda(%rip), %ymm0    # 0x5cba80
jb 0x55ff23
vmovdqu 0xb0(%rsp), %ymm0
vpsubq %ymm1, %ymm0, %ymm1
vmovdqa %ymm3, %ymm0
vmovdqu %ymm1, 0x70(%rsp)
vmovdqu %ymm2, 0x160(%rsp)
callq 0x56027d
vmovdqu 0x160(%rsp), %ymm4
vmovdqu %ymm0, 0xb0(%rsp)
movq 0x18(%rsp), %rdx
vmovdqa (%rdx,%r15), %ymm5
addq $0x20, %rbp
addq $0x20, %r12
addq $0x20, %r15
vmovdqa %ymm4, %ymm1
movq 0x158(%rsp), %rax
jmp 0x55fcd1
movl 0xac(%rsp), %eax
incl %eax
movq 0xf8(%rsp), %r12
vmovdqu 0x30(%rsp), %ymm3
jmp 0x55fc21
vmovdqu %ymm2, 0x70(%rsp)
movq 0xf8(%rsp), %r12
movq 0x18(%rsp), %rdx
vmovdqu 0x180(%rsp), %ymm0
vpcmpgtq 0x220(%rsp), %ymm0, %ymm0
movq 0x58(%rsp), %rax
addq %rax, 0x98(%rsp)
addq %rax, 0x60(%rsp)
vtestpd %ymm0, %ymm0
movq 0x20(%rsp), %r13
movq %r13, %rax
movq %rdx, 0x110(%rsp)
movq 0x100(%rsp), %rbp
movq 0xa0(%rsp), %r15
je 0x55f911
jmp 0x55ff90
vmovdqu %ymm4, 0x70(%rsp)
jmp 0x55ff36
vmovdqu %ymm3, 0x30(%rsp)
vmovdqu 0x180(%rsp), %ymm0
vpermq $0x44, %ymm0, %ymm1     # ymm1 = ymm0[0,1,0,1]
callq 0x56027d
vpslldq $0x8, %ymm0, %ymm1      # ymm1 = zero,zero,zero,zero,zero,zero,zero,zero,ymm0[0,1,2,3,4,5,6,7],zero,zero,zero,zero,zero,zero,zero,zero,ymm0[16,17,18,19,20,21,22,23]
callq 0x56027d
vextracti128 $0x1, %ymm0, %xmm1
vpextrq $0x1, %xmm1, %rax
movq %rax, 0xd8(%rsp)
cmpq 0x90(%rsp), %rax
jg 0x56025a
vpermq $0xff, %ymm0, %ymm0     # ymm0 = ymm0[3,3,3,3]
vmovdqu %ymm0, 0x220(%rsp)
movq 0xe0(%rsp), %rax
movl %eax, 0x4(%rsp)
movq 0x18(%rsp), %rdx
movq 0x28(%rsp), %rsi
vmovdqu 0x30(%rsp), %ymm3
jmp 0x55f8e3
movq 0x8(%rsp), %rax
movq %rax, 0x30(%rsp)
movq %rcx, 0x8(%rsp)
movq %rdx, %r15
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
movq 0xd8(%rsp), %r13
cmpq %rax, %r13
jne 0x560033
orb $0x40, 0xc(%rbx)
movq %rbx, %rdi
vzeroupper
callq 0x1ace42
xorl %ecx, %ecx
testl %eax, %eax
je 0x56005b
movq 0x10(%rsp), %rdi
movq 0x110(%rsp), %r14
xorl %eax, %eax
xorl %r9d, %r9d
jmp 0x5600e1
leal -0x1(%r14), %eax
addl $-0x2, %r14d
movl 0x4(%rsp), %edx
cmpl %r14d, %edx
movq 0x10(%rsp), %rcx
movq %rcx, %rdi
movq 0x110(%rsp), %rsi
cmoveq %rsi, %rdi
movq %rsi, %r14
cmoveq %rcx, %r14
cmpl %eax, %edx
cmoveq %r15, %rdi
cmoveq %rsi, %r14
movq 0x130(%rsp), %r9
decl %r9d
movl %ebp, %ecx
andl $0x1fffffff, %ecx       # imm = 0x1FFFFFFF
shll $0x2, %ecx
xorl %edx, %edx
cmpl %edx, %ecx
je 0x5600d0
cmpq %r13, (%rdi,%rdx,8)
jne 0x5600cb
movl %edx, %esi
shrl $0x2, %esi
movl %edx, %r8d
andl $0x3, %r8d
imull %ebp, %r8d
addl %esi, %r8d
cmpl %r9d, %r8d
cmovll %r8d, %r9d
incq %rdx
jmp 0x5600a7
movl 0x4(%rsp), %ecx
cmpl %eax, %ecx
movl %ecx, %eax
cmoveq 0x10(%rsp), %r15
movl %r13d, %ecx
movl %ecx, (%rbx)
movl %r9d, 0x4(%rbx)
movl %eax, 0x8(%rbx)
callq 0x1ab763
movq 0x68(%rsp), %rdi
callq 0x1ab763
movq 0x30(%rsp), %rdi
callq 0x1ab763
movq 0x8(%rsp), %rdi
callq 0x1ab763
movq %r12, %rdi
callq 0x1ab763
movq %r14, %rdi
callq 0x1ab763
movq %r15, %rdi
callq 0x1ab763
movq %rbx, %rax
jmp 0x560248
movq 0x1daea4(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x66ead(%rip), %rsi     # 0x5c6feb
leaq 0x621fa(%rip), %rdx     # 0x5c233f
leaq 0x3d391(%rip), %rcx     # 0x59d4dd
jmp 0x56023f
movq 0x1dae80(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x66e89(%rip), %rsi     # 0x5c6feb
leaq 0x621d6(%rip), %rdx     # 0x5c233f
leaq 0x677b0(%rip), %rcx     # 0x5c7920
jmp 0x56023f
movq 0x1dae5c(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x66e65(%rip), %rsi     # 0x5c6feb
leaq 0x621b2(%rip), %rdx     # 0x5c233f
leaq 0x677a5(%rip), %rcx     # 0x5c7939
jmp 0x56023f
movq 0x1dae38(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x67557(%rip), %rsi     # 0x5c7701
leaq 0x6218e(%rip), %rdx     # 0x5c233f
leaq 0x67791(%rip), %rcx     # 0x5c7949
jmp 0x56023f
movq 0x1dae14(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x66e1d(%rip), %rsi     # 0x5c6feb
leaq 0x6216a(%rip), %rdx     # 0x5c233f
leaq 0x67522(%rip), %rcx     # 0x5c76fe
jmp 0x56023f
movq 0x1dadf3(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x67512(%rip), %rsi     # 0x5c7701
leaq 0x62149(%rip), %rdx     # 0x5c233f
leaq 0x67518(%rip), %rcx     # 0x5c7715
jmp 0x56023f
movq 0x1dadd2(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x6750b(%rip), %rsi     # 0x5c771b
leaq 0x62128(%rip), %rdx     # 0x5c233f
leaq 0x67512(%rip), %rcx     # 0x5c7730
jmp 0x56023f
movq 0x1dadb1(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x674ea(%rip), %rsi     # 0x5c771b
leaq 0x62107(%rip), %rdx     # 0x5c233f
leaq 0x674f6(%rip), %rcx     # 0x5c7735
xorl %eax, %eax
callq 0x19e180
xorl %eax, %eax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
orb $0x40, 0xc(%rbx)
movq 0xe0(%rsp), %r14
movq %r13, 0x30(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x110(%rsp)
jmp 0x560018