// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/nw_trace_scan_avx2_256_64.c
// Function: parasail_nw_trace_scan_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 pvP = NULL;
    __m256i* restrict pvE = NULL;
    int64_t* restrict boundary = NULL;
    __m256i* restrict pvHt = NULL;
    __m256i* restrict pvH = NULL;
    __m256i* restrict pvGapper = NULL;
    __m256i vGapO;
    __m256i vGapE;
    int64_t NEG_LIMIT = 0;
    int64_t POS_LIMIT = 0;
    __m256i vZero;
    int64_t score = 0;
    __m256i vNegLimit;
    __m256i vPosLimit;
    __m256i vSaturationCheckMin;
    __m256i vSaturationCheckMax;
    __m256i vNegInfFront;
    __m256i vSegLenXgap;
    parasail_result_t *result = NULL;
    __m256i vTIns;
    __m256i vTDel;
    __m256i vTDiag;
    __m256i vTDiagE;
    __m256i vTInsE;
    __m256i vTDiagF;
    __m256i vTDelF;

    /* 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;
    pvP = (__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;
    vZero = _mm256_setzero_si256();
    score = NEG_LIMIT;
    vNegLimit = _mm256_set1_epi64x_rpl(NEG_LIMIT);
    vPosLimit = _mm256_set1_epi64x_rpl(POS_LIMIT);
    vSaturationCheckMin = vPosLimit;
    vSaturationCheckMax = vNegLimit;
    vNegInfFront = vZero;
    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);
    vNegInfFront = _mm256_insert_epi64_rpl(vNegInfFront, NEG_LIMIT, 0);
    vSegLenXgap = _mm256_add_epi64(vNegInfFront,
            _mm256_slli_si256_rpl(_mm256_set1_epi64x_rpl(-segLen*gap), 8));

    /* 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_SCAN
        | PARASAIL_FLAG_TRACE
        | PARASAIL_FLAG_BITS_64 | PARASAIL_FLAG_LANES_4;

    /* initialize heap variables */
    pvE = parasail_memalign___m256i(32, segLen);
    boundary = parasail_memalign_int64_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_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(&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 = -open-gap*(i-1);
            boundary[i] = tmp < INT64_MIN ? INT64_MIN : tmp;
        }
    }

    {
        __m256i vGapper = _mm256_sub_epi64(vZero,vGapO);
        for (i=segLen-1; i>=0; --i) {
            _mm256_store_si256(pvGapper+i, vGapper);
            vGapper = _mm256_sub_epi64(vGapper, vGapE);
        }
    }

    /* outer loop over database sequence */
    for (j=0; j<s2Len; ++j) {
        __m256i vE;
        __m256i vE_ext;
        __m256i vE_opn;
        __m256i vHt;
        __m256i vF;
        __m256i vF_ext;
        __m256i vF_opn;
        __m256i vH;
        __m256i vHp;
        __m256i *pvW;
        __m256i vW;
        __m256i case1;
        __m256i case2;
        __m256i vGapper;
        __m256i vT;
        __m256i vET;
        __m256i vFT;

        /* calculate E */
        /* calculate Ht */
        /* calculate F and H first pass */
        vHp = _mm256_load_si256(pvH+(segLen-1));
        vHp = _mm256_slli_si256_rpl(vHp, 8);
        vHp = _mm256_insert_epi64_rpl(vHp, boundary[j], 0);
        pvW = pvP + matrix->mapper[(unsigned char)s2[j]]*segLen;
        vHt = _mm256_sub_epi64(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);
            vGapper = _mm256_load_si256(pvGapper+i);
            vE_opn = _mm256_sub_epi64(vH, vGapO);
            vE_ext = _mm256_sub_epi64(vE, vGapE);
            case1 = _mm256_cmpgt_epi64(vE_opn, vE_ext);
            vET = _mm256_blendv_epi8(vTInsE, vTDiagE, case1);
            arr_store(result->trace->trace_table, vET, i, segLen, j);
            vE = _mm256_max_epi64_rpl(vE_opn, vE_ext);
            vSaturationCheckMin = _mm256_min_epi64_rpl(vSaturationCheckMin, vE);
            vGapper = _mm256_add_epi64(vHt, vGapper);
            vF = _mm256_max_epi64_rpl(vF, vGapper);
            vHp = _mm256_add_epi64(vHp, vW);
            vHt = _mm256_max_epi64_rpl(vE, vHp);
            _mm256_store_si256(pvE+i, vE);
            _mm256_store_si256(pvHt+i, vHt);
            _mm256_store_si256(pvH+i, vHp);
            vHp = vH;
        }

        /* pseudo prefix scan on F and H */
        vHt = _mm256_slli_si256_rpl(vHt, 8);
        vHt = _mm256_insert_epi64_rpl(vHt, boundary[j+1], 0);
        vGapper = _mm256_load_si256(pvGapper);
        vGapper = _mm256_add_epi64(vHt, vGapper);
        vF = _mm256_max_epi64_rpl(vF, vGapper);
        for (i=0; i<segWidth-2; ++i) {
            __m256i vFt = _mm256_slli_si256_rpl(vF, 8);
            vFt = _mm256_add_epi64(vFt, vSegLenXgap);
            vF = _mm256_max_epi64_rpl(vF, vFt);
        }

        /* calculate final H */
        vF = _mm256_slli_si256_rpl(vF, 8);
        vF = _mm256_add_epi64(vF, vNegInfFront);
        vH = _mm256_max_epi64_rpl(vF, vHt);
        for (i=0; i<segLen; ++i) {
            vET = arr_load(result->trace->trace_table, i, segLen, j);
            vHp = _mm256_load_si256(pvH+i);
            vHt = _mm256_load_si256(pvHt+i);
            vF_opn = _mm256_sub_epi64(vH, vGapO);
            vF_ext = _mm256_sub_epi64(vF, vGapE);
            vF = _mm256_max_epi64_rpl(vF_opn, vF_ext);
            case1 = _mm256_cmpgt_epi64(vF_opn, vF_ext);
            vFT = _mm256_blendv_epi8(vTDelF, vTDiagF, case1);
            vH = _mm256_max_epi64_rpl(vHt, vF);
            case1 = _mm256_cmpeq_epi64(vH, vHp);
            case2 = _mm256_cmpeq_epi64(vH, vF);
            vT = _mm256_blendv_epi8(
                    _mm256_blendv_epi8(vTIns, vTDel, case2),
                    vTDiag, case1);
            vT = _mm256_or_si256(vT, vET);
            vT = _mm256_or_si256(vT, vFT);
            arr_store(result->trace->trace_table, vT, i, segLen, j);
            _mm256_store_si256(pvH+i, vH);
            vSaturationCheckMin = _mm256_min_epi64_rpl(vSaturationCheckMin, vH);
            vSaturationCheckMin = _mm256_min_epi64_rpl(vSaturationCheckMin, vF);
            vSaturationCheckMax = _mm256_max_epi64_rpl(vSaturationCheckMax, vH);
        }
    }

    /* 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, 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(pvGapper);
    parasail_free(pvH);
    parasail_free(pvHt);
    parasail_free(boundary);
    parasail_free(pvE);

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
andq $-0x20, %rsp
subq $0x2a0, %rsp            # imm = 0x2A0
movq %rsi, 0x58(%rsp)
testq %rdi, %rdi
je 0x54650b
movq 0x60(%rdi), %rax
movq %rax, 0x110(%rsp)
testq %rax, %rax
je 0x54652f
movq 0x10(%rdi), %rax
movq %rax, 0x50(%rsp)
testq %rax, %rax
je 0x546553
movl 0x8(%rdi), %r15d
testl %r15d, %r15d
jle 0x546577
cmpq $0x0, 0x58(%rsp)
je 0x54659b
movl %edx, %r13d
testl %edx, %edx
jle 0x5465bc
testl %ecx, %ecx
js 0x5465dd
testl %r8d, %r8d
js 0x5465fe
movl %r8d, 0xc0(%rsp)
leal -0x1(%r15), %r14d
addq $0x3, %r15
shrq $0x2, %r15
movl %r14d, %eax
xorl %edx, %edx
divl %r15d
movl %eax, 0x60(%rsp)
movl %edx, 0x4c(%rsp)
movl %ecx, %ebx
negl %ecx
movq 0x50(%rsp), %rdx
movslq 0x20(%rdx), %rax
movq %rbx, %rsi
btsq $0x3f, %rsi
movabsq $-0x8000000000000000, %r12 # imm = 0x8000000000000000
subq %rax, %r12
movl %ecx, 0x80(%rsp)
cmpl %ecx, %eax
cmovgq %rsi, %r12
movslq 0x1c(%rdx), %rax
movq %rax, 0x20(%rsp)
pushq $0x20
popq %rcx
movl %r15d, %edi
movl %r13d, %esi
movq %rcx, %rdx
callq 0x1abb59
testq %rax, %rax
je 0x545eba
movl %r14d, 0x48(%rsp)
movq %rax, 0x30(%rsp)
orl $0x4880401, 0xc(%rax)   # imm = 0x4880401
pushq $0x20
popq %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x496aa4
movq %rax, 0x28(%rsp)
leal 0x1(%r13), %esi
movq %r14, %rdi
movq %rsi, 0xa0(%rsp)
callq 0x1ab78c
movq %rax, 0x10(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x496aa4
movq %r13, 0x120(%rsp)
movq %rax, %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0x496aa4
movq %rax, %r14
pushq $0x20
popq %rdi
movq %r15, %rsi
callq 0x496aa4
cmpq $0x0, 0x28(%rsp)
sete %dl
cmpq $0x0, 0x10(%rsp)
sete %cl
orb %dl, %cl
movq %r13, 0x38(%rsp)
testq %r13, %r13
sete %sil
testq %r14, %r14
sete %dl
orb %sil, %dl
orb %cl, %dl
movq %rax, 0x18(%rsp)
testq %rax, %rax
sete %al
orb %dl, %al
je 0x545ec1
xorl %ebx, %ebx
jmp 0x546626
movq 0x120(%rsp), %r11
leal -0x1(%r11), %eax
movl %eax, 0x44(%rsp)
pushq $0x3
popq %rax
subl 0x60(%rsp), %eax
movl %eax, 0x40(%rsp)
vmovq %rbx, %xmm0
vpbroadcastq %xmm0, %ymm0
vmovdqa %ymm0, 0x1a0(%rsp)
movl 0xc0(%rsp), %ecx
movl %ecx, %eax
vmovq %rax, %xmm0
vpbroadcastq %xmm0, %ymm0
vmovdqa %ymm0, 0x1c0(%rsp)
incq %r12
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
subq 0x20(%rsp), %rdx
addq $-0x2, %rdx
vmovq %r12, %xmm0
vpbroadcastq %xmm0, %ymm1
vmovq %rdx, %xmm0
vpbroadcastq %xmm0, %ymm0
vmovdqa %ymm0, 0x1e0(%rsp)
vmovdqa %ymm1, 0x140(%rsp)
vmovq %xmm1, %xmm2            # xmm2 = xmm1[0],zero
imull %r15d, %ecx
negl %ecx
movslq %ecx, %rcx
vmovq %rcx, %xmm0
vpbroadcastq %xmm0, %ymm0
vpxor %xmm1, %xmm1, %xmm1
vpblendd $0x3, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[0,1],ymm0[2,3,4,5,6,7]
vmovdqa %ymm2, 0x200(%rsp)
vpaddq %ymm0, %ymm2, %ymm0
vmovdqa %ymm0, 0x220(%rsp)
movslq 0x80(%rsp), %rcx
negq %rbx
movq %r15, %rdx
imulq %rax, %rdx
xorl %esi, %esi
movq %rcx, %rdi
cmpq %r15, %rsi
je 0x545ff4
movq %rdi, %r8
xorl %r9d, %r9d
cmpq $0x4, %r9
je 0x545fc2
movq %r8, 0x260(%rsp,%r9,8)
leaq (%rbx,%r8), %r10
movq %r10, 0x240(%rsp,%r9,8)
incq %r9
subq %rdx, %r8
jmp 0x545fa0
movq %rsi, %r8
shlq $0x5, %r8
vmovaps 0x260(%rsp), %ymm0
vmovaps %ymm0, (%r14,%r8)
vmovdqa 0x240(%rsp), %ymm0
movq 0x28(%rsp), %r9
vmovdqa %ymm0, (%r9,%r8)
incq %rsi
subq %rax, %rdi
jmp 0x545f95
movq 0x10(%rsp), %rdx
andq $0x0, (%rdx)
pushq $0x1
popq %rdx
movq 0xa0(%rsp), %rdi
movq 0x10(%rsp), %rsi
cmpq %rdx, %rdi
je 0x54601e
movq %rcx, (%rsi,%rdx,8)
incq %rdx
subq %rax, %rcx
jmp 0x54600d
vpxor %xmm0, %xmm0, %xmm0
vpsubq 0x1a0(%rsp), %ymm0, %ymm0
leal -0x1(%r15), %eax
movl %eax, %ecx
movq 0x18(%rsp), %rsi
testl %ecx, %ecx
js 0x546052
movl %ecx, %edx
shlq $0x5, %rdx
vmovdqa %ymm0, (%rsi,%rdx)
vpsubq 0x1c0(%rsp), %ymm0, %ymm0
decl %ecx
jmp 0x546036
movl %eax, %eax
shlq $0x5, %rax
movq %r14, %rcx
addq %rax, %rcx
movq %rcx, 0xf8(%rsp)
movl %r11d, %eax
movq %rax, 0x108(%rsp)
movq %r15, %rax
shlq $0x5, %rax
movq %rax, 0x20(%rsp)
xorl %ebx, %ebx
xorl %edx, %edx
vmovaps 0x1e0(%rsp), %ymm0
vmovaps %ymm0, 0xc0(%rsp)
vmovaps 0x140(%rsp), %ymm0
vmovaps %ymm0, 0x120(%rsp)
movq %r15, 0x100(%rsp)
cmpq 0x108(%rsp), %rdx
je 0x546448
movq %rbx, %r12
movq 0xf8(%rsp), %rax
vmovdqa (%rax), %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 0x10(%rsp), %rax
vmovq (%rax,%rdx,8), %xmm1
vpblendd $0x3, %ymm1, %ymm0, %ymm3 # ymm3 = ymm1[0,1],ymm0[2,3,4,5,6,7]
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x58(%rsp), %rcx
movq %rdx, 0x118(%rsp)
movzbl (%rcx,%rdx), %ecx
movl (%rax,%rcx,4), %eax
imull %r15d, %eax
movslq %eax, %r13
shlq $0x5, %r13
addq 0x110(%rsp), %r13
movq 0x18(%rsp), %rax
vmovdqa 0x140(%rsp), %ymm1
vpsubq (%rax), %ymm1, %ymm0
xorl %r15d, %r15d
vmovdqa %ymm1, 0xa0(%rsp)
cmpq %r15, 0x20(%rsp)
je 0x546257
vmovdqa (%r14,%r15), %ymm2
vmovdqa %ymm2, 0x180(%rsp)
movq 0x28(%rsp), %rbx
vmovdqa (%rbx,%r15), %ymm1
vpsubq 0x1a0(%rsp), %ymm2, %ymm2
vpsubq 0x1c0(%rsp), %ymm1, %ymm1
vpcmpgtq %ymm1, %ymm2, %ymm4
vbroadcastsd 0x87557(%rip), %ymm5 # 0x5cd6d0
vbroadcastsd 0x87556(%rip), %ymm6 # 0x5cd6d8
vblendvpd %ymm4, %ymm5, %ymm6, %ymm4
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
addq %r12, %rax
movq 0x18(%rsp), %rcx
vpaddq (%rcx,%r15), %ymm0, %ymm0
vmovdqa %ymm0, 0x160(%rsp)
vpaddq (%r13,%r15), %ymm3, %ymm0
vmovdqa %ymm0, 0x80(%rsp)
vmovapd %ymm4, (%r15,%rax)
vmovdqa %ymm2, %ymm0
callq 0x546638
vmovdqa %ymm0, %ymm1
vmovdqa %ymm0, 0x60(%rsp)
vmovaps 0xc0(%rsp), %ymm0
callq 0x546644
vmovaps %ymm0, 0xc0(%rsp)
vmovaps 0xa0(%rsp), %ymm0
vmovaps 0x160(%rsp), %ymm1
callq 0x546638
vmovaps %ymm0, 0xa0(%rsp)
vmovdqa 0x60(%rsp), %ymm0
vmovaps 0x80(%rsp), %ymm1
callq 0x546638
vmovaps 0x60(%rsp), %ymm1
vmovaps %ymm1, (%rbx,%r15)
movq 0x38(%rsp), %rax
vmovdqa %ymm0, (%rax,%r15)
vmovdqa 0x80(%rsp), %ymm1
vmovdqa %ymm1, (%r14,%r15)
addq $0x20, %r15
vmovdqa 0x180(%rsp), %ymm3
jmp 0x546134
vpermq $0x90, %ymm0, %ymm0     # ymm0 = ymm0[0,0,1,2]
movq 0x10(%rsp), %rax
movq 0x118(%rsp), %r13
vmovq 0x8(%rax,%r13,8), %xmm1
incq %r13
vpblendd $0x3, %ymm1, %ymm0, %ymm0 # ymm0 = ymm1[0,1],ymm0[2,3,4,5,6,7]
movq 0x18(%rsp), %rax
vmovdqa %ymm0, 0x60(%rsp)
vpaddq (%rax), %ymm0, %ymm1
vmovdqa 0xa0(%rsp), %ymm0
callq 0x546638
pushq $0x2
popq %r15
movq %r12, %rbx
vperm2i128 $0x8, %ymm0, %ymm0, %ymm1 # ymm1 = zero,zero,ymm0[0,1]
vpalignr $0x8, %ymm1, %ymm0, %ymm1 # ymm1 = 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]
subl $0x1, %r15d
jb 0x5462c0
vpaddq 0x220(%rsp), %ymm1, %ymm1
callq 0x546638
jmp 0x54629e
movq %r13, %r12
vpaddq 0x200(%rsp), %ymm1, %ymm0
vmovdqa %ymm0, 0x80(%rsp)
vmovdqa 0x60(%rsp), %ymm1
callq 0x546638
vmovdqa %ymm0, 0x60(%rsp)
xorl %r13d, %r13d
cmpq %r13, 0x20(%rsp)
je 0x546433
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %r15
addq %rbx, %r15
vmovaps (%r14,%r13), %ymm0
vmovaps %ymm0, 0xa0(%rsp)
movq 0x38(%rsp), %rax
vmovaps (%rax,%r13), %ymm0
vmovaps %ymm0, 0x160(%rsp)
vmovdqa 0x60(%rsp), %ymm0
vpsubq 0x1a0(%rsp), %ymm0, %ymm0
vmovdqa 0x80(%rsp), %ymm1
vpsubq 0x1c0(%rsp), %ymm1, %ymm1
vpcmpgtq %ymm1, %ymm0, %ymm2
vbroadcastsd 0x8738b(%rip), %ymm3 # 0x5cd6e0
vbroadcastsd 0x8738a(%rip), %ymm4 # 0x5cd6e8
vblendvpd %ymm2, %ymm3, %ymm4, %ymm2
vorpd (%r13,%r15), %ymm2, %ymm2
vmovapd %ymm2, 0x180(%rsp)
callq 0x546638
vmovdqa %ymm0, %ymm1
vmovdqa %ymm0, 0x80(%rsp)
vmovdqa 0x160(%rsp), %ymm0
callq 0x546638
vmovdqa %ymm0, %ymm3
vmovdqa %ymm0, 0x60(%rsp)
vpcmpeqq 0xa0(%rsp), %ymm0, %ymm0
vpcmpeqq 0x80(%rsp), %ymm3, %ymm1
vpbroadcastq 0x81e45(%rip), %ymm2 # 0x5c8200
vpsubq %ymm1, %ymm2, %ymm1
vbroadcastsd 0x856d8(%rip), %ymm2 # 0x5cbaa0
vblendvpd %ymm0, %ymm2, %ymm1, %ymm0
vorpd 0x180(%rsp), %ymm0, %ymm0
vmovapd %ymm0, (%r13,%r15)
vmovdqa %ymm3, (%r14,%r13)
vmovaps 0xc0(%rsp), %ymm0
vmovdqa %ymm3, %ymm1
callq 0x546644
vmovaps 0x80(%rsp), %ymm1
callq 0x546644
vmovaps %ymm0, 0xc0(%rsp)
vmovdqa 0x120(%rsp), %ymm0
vmovdqa 0x60(%rsp), %ymm1
callq 0x546638
vmovdqa %ymm0, 0x120(%rsp)
addq $0x20, %r13
jmp 0x5462e9
addq 0x20(%rsp), %rbx
movq 0x100(%rsp), %r15
movq %r12, %rdx
jmp 0x5460ad
movl 0x4c(%rsp), %eax
shlq $0x5, %rax
vmovdqa (%r14,%rax), %ymm0
xorl %eax, %eax
movl 0x44(%rsp), %edx
movl 0x40(%rsp), %ecx
cmpl %ecx, %eax
jge 0x546474
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 0x546460
vmovdqa 0x140(%rsp), %ymm1
vpcmpgtq 0xc0(%rsp), %ymm1, %ymm1
vmovdqa 0x120(%rsp), %ymm2
vpcmpgtq 0x1e0(%rsp), %ymm2, %ymm2
vpor %ymm1, %ymm2, %ymm1
vtestpd %ymm1, %ymm1
je 0x5464b6
movq 0x30(%rsp), %rbx
orb $0x40, 0xc(%rbx)
xorl %eax, %eax
xorl %edx, %edx
xorl %ecx, %ecx
jmp 0x5464cb
vextracti128 $0x1, %ymm0, %xmm0
vpextrq $0x1, %xmm0, %rax
movq 0x30(%rsp), %rbx
movl 0x48(%rsp), %ecx
movl %eax, (%rbx)
movl %ecx, 0x4(%rbx)
movl %edx, 0x8(%rbx)
movq 0x18(%rsp), %rdi
vzeroupper
callq 0x1ab763
movq %r14, %rdi
callq 0x1ab763
movq 0x38(%rsp), %rdi
callq 0x1ab763
movq 0x10(%rsp), %rdi
callq 0x1ab763
movq 0x28(%rsp), %rdi
callq 0x1ab763
jmp 0x546626
movq 0x1f4ac6(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x80acf(%rip), %rsi     # 0x5c6feb
leaq 0x7affd(%rip), %rdx     # 0x5c1520
leaq 0x56fb3(%rip), %rcx     # 0x59d4dd
jmp 0x54661d
movq 0x1f4aa2(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x80aab(%rip), %rsi     # 0x5c6feb
leaq 0x7afd9(%rip), %rdx     # 0x5c1520
leaq 0x813d2(%rip), %rcx     # 0x5c7920
jmp 0x54661d
movq 0x1f4a7e(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x80a87(%rip), %rsi     # 0x5c6feb
leaq 0x7afb5(%rip), %rdx     # 0x5c1520
leaq 0x813c7(%rip), %rcx     # 0x5c7939
jmp 0x54661d
movq 0x1f4a5a(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x81179(%rip), %rsi     # 0x5c7701
leaq 0x7af91(%rip), %rdx     # 0x5c1520
leaq 0x813b3(%rip), %rcx     # 0x5c7949
jmp 0x54661d
movq 0x1f4a36(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x80a3f(%rip), %rsi     # 0x5c6feb
leaq 0x7af6d(%rip), %rdx     # 0x5c1520
leaq 0x81144(%rip), %rcx     # 0x5c76fe
jmp 0x54661d
movq 0x1f4a15(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x81134(%rip), %rsi     # 0x5c7701
leaq 0x7af4c(%rip), %rdx     # 0x5c1520
leaq 0x8113a(%rip), %rcx     # 0x5c7715
jmp 0x54661d
movq 0x1f49f4(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x8112d(%rip), %rsi     # 0x5c771b
leaq 0x7af2b(%rip), %rdx     # 0x5c1520
leaq 0x81134(%rip), %rcx     # 0x5c7730
jmp 0x54661d
movq 0x1f49d3(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x8110c(%rip), %rsi     # 0x5c771b
leaq 0x7af0a(%rip), %rdx     # 0x5c1520
leaq 0x81118(%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