// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/sw_diag_avx2_256_64.c
// Function: parasail_sw_rowcol_diag_avx2_256_64
parasail_result_t* FNAME(
        const char * const restrict _s1, const int _s1Len,
        const char * const restrict _s2, const int s2Len,
        const int open, const int gap, const parasail_matrix_t *matrix)
{
    /* declare local variables */
    int32_t N = 0;
    int32_t PAD = 0;
    int32_t PAD2 = 0;
    int32_t s1Len = 0;
    int32_t s1Len_PAD = 0;
    int32_t s2Len_PAD = 0;
    int64_t * restrict s1 = NULL;
    int64_t * restrict s2B = NULL;
    int64_t * restrict _H_pr = NULL;
    int64_t * restrict _F_pr = NULL;
    int64_t * restrict s2 = NULL;
    int64_t * restrict H_pr = NULL;
    int64_t * restrict F_pr = NULL;
    parasail_result_t *result = NULL;
    int32_t i = 0;
    int32_t j = 0;
    int32_t end_query = 0;
    int32_t end_ref = 0;
    int64_t NEG_LIMIT = 0;
    int64_t POS_LIMIT = 0;
    int64_t score = 0;
    __m256i vNegLimit;
    __m256i vPosLimit;
    __m256i vSaturationCheckMin;
    __m256i vSaturationCheckMax;
    __m256i vNegInf;
    __m256i vNegInf0;
    __m256i vOpen;
    __m256i vGap;
    __m256i vZero;
    __m256i vOne;
    __m256i vN;
    __m256i vNegOne;
    __m256i vI;
    __m256i vJreset;
    __m256i vMaxH;
    __m256i vEndI;
    __m256i vEndJ;
    __m256i vILimit;
    __m256i vJLimit;

    /* validate inputs */
    PARASAIL_CHECK_NULL(_s2);
    PARASAIL_CHECK_GT0(s2Len);
    PARASAIL_CHECK_GE0(open);
    PARASAIL_CHECK_GE0(gap);
    PARASAIL_CHECK_NULL(matrix);
    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        PARASAIL_CHECK_NULL(_s1);
        PARASAIL_CHECK_GT0(_s1Len);
    }

    /* initialize stack variables */
    N = 4; /* number of values in vector */
    PAD = N-1;
    PAD2 = PAD*2;
    s1Len = matrix->type == PARASAIL_MATRIX_TYPE_SQUARE ? _s1Len : matrix->length;
    s1Len_PAD = s1Len+PAD;
    s2Len_PAD = s2Len+PAD;
    i = 0;
    j = 0;
    end_query = 0;
    end_ref = 0;
    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;
    vNegInf = _mm256_set1_epi64x_rpl(NEG_LIMIT);
    vNegInf0 = _mm256_srli_si256_rpl(vNegInf, 8); /* shift in a 0 */
    vOpen = _mm256_set1_epi64x_rpl(open);
    vGap  = _mm256_set1_epi64x_rpl(gap);
    vZero = _mm256_set1_epi64x_rpl(0);
    vOne = _mm256_set1_epi64x_rpl(1);
    vN = _mm256_set1_epi64x_rpl(N);
    vNegOne = _mm256_set1_epi64x_rpl(-1);
    vI = _mm256_set_epi64x_rpl(0,1,2,3);
    vJreset = _mm256_set_epi64x_rpl(0,-1,-2,-3);
    vMaxH = vNegInf;
    vEndI = vNegInf;
    vEndJ = vNegInf;
    vILimit = _mm256_set1_epi64x_rpl(s1Len);
    vJLimit = _mm256_set1_epi64x_rpl(s2Len);

    /* initialize result */
#ifdef PARASAIL_TABLE
    result = parasail_result_new_table1(s1Len, s2Len);
#else
#ifdef PARASAIL_ROWCOL
    result = parasail_result_new_rowcol1(s1Len, s2Len);
#else
    result = parasail_result_new();
#endif
#endif
    if (!result) return NULL;

    /* set known flags */
    result->flag |= PARASAIL_FLAG_SW | PARASAIL_FLAG_DIAG
        | PARASAIL_FLAG_BITS_64 | PARASAIL_FLAG_LANES_4;
#ifdef PARASAIL_TABLE
    result->flag |= PARASAIL_FLAG_TABLE;
#endif
#ifdef PARASAIL_ROWCOL
    result->flag |= PARASAIL_FLAG_ROWCOL;
#endif

    /* initialize heap variables */
    s2B= parasail_memalign_int64_t(32, s2Len+PAD2);
    _H_pr = parasail_memalign_int64_t(32, s2Len+PAD2);
    _F_pr = parasail_memalign_int64_t(32, s2Len+PAD2);
    s2 = s2B+PAD; /* will allow later for negative indices */
    H_pr = _H_pr+PAD;
    F_pr = _F_pr+PAD;

    /* validate heap variables */
    if (!s2B) return NULL;
    if (!_H_pr) return NULL;
    if (!_F_pr) return NULL;

    /* convert _s1 from char to int in range 0-23 */
    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        s1 = parasail_memalign_int64_t(32, s1Len+PAD);
        if (!s1) return NULL;
        for (i=0; i<s1Len; ++i) {
            s1[i] = matrix->mapper[(unsigned char)_s1[i]];
        }
        /* pad back of s1 with dummy values */
        for (i=s1Len; i<s1Len_PAD; ++i) {
            s1[i] = 0; /* point to first matrix row because we don't care */
        }
    }

    /* convert _s2 from char to int in range 0-23 */
    for (j=0; j<s2Len; ++j) {
        s2[j] = matrix->mapper[(unsigned char)_s2[j]];
    }
    /* pad front of s2 with dummy values */
    for (j=-PAD; j<0; ++j) {
        s2[j] = 0; /* point to first matrix row because we don't care */
    }
    /* pad back of s2 with dummy values */
    for (j=s2Len; j<s2Len_PAD; ++j) {
        s2[j] = 0; /* point to first matrix row because we don't care */
    }

    /* set initial values for stored row */
    for (j=0; j<s2Len; ++j) {
        H_pr[j] = 0;
        F_pr[j] = NEG_LIMIT;
    }
    /* pad front of stored row values */
    for (j=-PAD; j<0; ++j) {
        H_pr[j] = NEG_LIMIT;
        F_pr[j] = NEG_LIMIT;
    }
    /* pad back of stored row values */
    for (j=s2Len; j<s2Len+PAD; ++j) {
        H_pr[j] = NEG_LIMIT;
        F_pr[j] = NEG_LIMIT;
    }

    /* iterate over query sequence */
    for (i=0; i<s1Len; i+=N) {
        __m256i vNH = vNegInf0;
        __m256i vWH = vNegInf0;
        __m256i vE = vNegInf;
        __m256i vF = vNegInf;
        __m256i vJ = vJreset;
        const int * const restrict matrow0 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+0] : ((i+0 >= s1Len) ? s1Len-1 : i+0))];
        const int * const restrict matrow1 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+1] : ((i+1 >= s1Len) ? s1Len-1 : i+1))];
        const int * const restrict matrow2 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+2] : ((i+2 >= s1Len) ? s1Len-1 : i+2))];
        const int * const restrict matrow3 = &matrix->matrix[matrix->size * ((matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) ? s1[i+3] : ((i+3 >= s1Len) ? s1Len-1 : i+3))];
        __m256i vIltLimit = _mm256_cmplt_epi64_rpl(vI, vILimit);
        /* iterate over database sequence */
        for (j=0; j<s2Len+PAD; ++j) {
            __m256i vMat;
            __m256i vNWH = vNH;
            vNH = _mm256_srli_si256_rpl(vWH, 8);
            vNH = _mm256_insert_epi64_rpl(vNH, H_pr[j], 3);
            vF = _mm256_srli_si256_rpl(vF, 8);
            vF = _mm256_insert_epi64_rpl(vF, F_pr[j], 3);
            vF = _mm256_max_epi64_rpl(
                    _mm256_sub_epi64(vNH, vOpen),
                    _mm256_sub_epi64(vF, vGap));
            vE = _mm256_max_epi64_rpl(
                    _mm256_sub_epi64(vWH, vOpen),
                    _mm256_sub_epi64(vE, vGap));
            vMat = _mm256_set_epi64x_rpl(
                    matrow0[s2[j-0]],
                    matrow1[s2[j-1]],
                    matrow2[s2[j-2]],
                    matrow3[s2[j-3]]
                    );
            vNWH = _mm256_add_epi64(vNWH, vMat);
            vWH = _mm256_max_epi64_rpl(vNWH, vE);
            vWH = _mm256_max_epi64_rpl(vWH, vF);
            vWH = _mm256_max_epi64_rpl(vWH, vZero);
            /* as minor diagonal vector passes across the j=-1 boundary,
             * assign the appropriate boundary conditions */
            {
                __m256i cond = _mm256_cmpeq_epi64(vJ,vNegOne);
                vWH = _mm256_andnot_si256(cond, vWH);
                vF = _mm256_blendv_epi8(vF, vNegInf, cond);
                vE = _mm256_blendv_epi8(vE, vNegInf, cond);
            }
            /* cannot start checking sat until after J clears boundary */
            if (j > PAD) {
                vSaturationCheckMin = _mm256_min_epi64_rpl(vSaturationCheckMin, vWH);
                vSaturationCheckMax = _mm256_max_epi64_rpl(vSaturationCheckMax, vWH);
            }
#ifdef PARASAIL_TABLE
            arr_store_si256(result->tables->score_table, vWH, i, s1Len, j, s2Len);
#endif
#ifdef PARASAIL_ROWCOL
            arr_store_rowcol(result->rowcols->score_row, result->rowcols->score_col, vWH, i, s1Len, j, s2Len);
#endif
            H_pr[j-3] = (int64_t)_mm256_extract_epi64_rpl(vWH,0);
            F_pr[j-3] = (int64_t)_mm256_extract_epi64_rpl(vF,0);
            /* as minor diagonal vector passes across table, extract
             * max values within the i,j bounds */
            {
                __m256i cond_valid_J = _mm256_and_si256(
                        _mm256_cmpgt_epi64(vJ, vNegOne),
                        _mm256_cmplt_epi64_rpl(vJ, vJLimit));
                __m256i cond_valid_IJ = _mm256_and_si256(cond_valid_J, vIltLimit);
                __m256i cond_eq = _mm256_cmpeq_epi64(vWH, vMaxH);
                __m256i cond_max = _mm256_cmpgt_epi64(vWH, vMaxH);
                __m256i cond_all = _mm256_and_si256(cond_max, cond_valid_IJ);
                __m256i cond_Jlt = _mm256_cmplt_epi64_rpl(vJ, vEndJ);
                vMaxH = _mm256_blendv_epi8(vMaxH, vWH, cond_all);
                vEndI = _mm256_blendv_epi8(vEndI, vI, cond_all);
                vEndJ = _mm256_blendv_epi8(vEndJ, vJ, cond_all);
                cond_all = _mm256_and_si256(cond_Jlt, cond_eq);
                cond_all = _mm256_and_si256(cond_all, cond_valid_IJ);
                vEndI = _mm256_blendv_epi8(vEndI, vI, cond_all);
                vEndJ = _mm256_blendv_epi8(vEndJ, vJ, cond_all);
            }
            vJ = _mm256_add_epi64(vJ, vOne);
        }
        vI = _mm256_add_epi64(vI, vN);
    }

    /* alignment ending position */
    {
        int64_t *t = (int64_t*)&vMaxH;
        int64_t *i = (int64_t*)&vEndI;
        int64_t *j = (int64_t*)&vEndJ;
        int32_t k;
        for (k=0; k<N; ++k, ++t, ++i, ++j) {
            if (*t > score) {
                score = *t;
                end_query = *i;
                end_ref = *j;
            }
            else if (*t == score) {
                if (*j < end_ref) {
                    end_query = *i;
                    end_ref = *j;
                }
                else if (*j == end_ref && *i < end_query) {
                    end_query = *i;
                    end_ref = *j;
                }
            }
        }
    }

    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(_F_pr);
    parasail_free(_H_pr);
    parasail_free(s2B);
    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        parasail_free(s1);
    }

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
andq $-0x20, %rsp
subq $0x3c0, %rsp            # imm = 0x3C0
testq %rdx, %rdx
je 0x4fab6d
testl %ecx, %ecx
jle 0x4fab91
testl %r8d, %r8d
js 0x4fabb5
testl %r9d, %r9d
js 0x4fabf7
movq %rdx, %r13
movq 0x10(%rbp), %rdx
testq %rdx, %rdx
je 0x4fac18
cmpl $0x0, 0x30(%rdx)
je 0x4fa1ca
movl 0x34(%rdx), %esi
jmp 0x4fa1db
testq %rdi, %rdi
je 0x4fac39
testl %esi, %esi
jle 0x4fac5a
movq %rdi, 0x120(%rsp)
movl %r9d, 0xe0(%rsp)
movslq 0x20(%rdx), %rax
movl %r8d, %ebx
negl %r8d
movq %rbx, %rdi
btsq $0x3f, %rdi
movabsq $-0x8000000000000000, %r14 # imm = 0x8000000000000000
movq %r14, %r15
subq %rax, %r15
cmpl %r8d, %eax
cmovgq %rdi, %r15
movslq 0x1c(%rdx), %rax
movq %rax, 0x140(%rsp)
movq %rsi, 0x20(%rsp)
movl %esi, %edi
movl %ecx, %esi
movq %rcx, %r12
callq 0x1ab93b
testq %rax, %rax
je 0x4fac80
movq %rbx, 0xa0(%rsp)
movq %r13, 0xc0(%rsp)
movq %r15, 0x30(%rsp)
movq %rax, 0x38(%rsp)
orl $0x4841004, 0xc(%rax)   # imm = 0x4841004
movq %r12, 0x40(%rsp)
addl $0x6, %r12d
pushq $0x20
popq %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1ab78c
movq %rax, %r13
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1ab78c
movq %rax, %r15
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1ab78c
movq %rax, %r10
movq %r13, 0x28(%rsp)
testq %r13, %r13
sete %al
testq %r15, %r15
sete %cl
orb %al, %cl
testq %r10, %r10
sete %al
orb %cl, %al
jne 0x4fac80
movq %r15, %r9
movq 0x20(%rsp), %rcx
movslq %ecx, %r15
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
movq %r9, 0x48(%rsp)
movq %r15, 0x58(%rsp)
je 0x4faaee
xorl %eax, %eax
movq 0x30(%rsp), %r11
movq 0xc0(%rsp), %r13
movq 0xa0(%rsp), %rbx
movq 0x40(%rsp), %rdx
leal 0x3(%rdx), %r8d
incq %r11
subq 0x140(%rsp), %r14
addq $-0x2, %r14
vmovq %r11, %xmm0
vpbroadcastq %xmm0, %ymm7
vmovq %r14, %xmm0
vpbroadcastq %xmm0, %ymm0
vmovdqa %ymm0, 0x220(%rsp)
vpxor %xmm0, %xmm0, %xmm0
vpblendd $0xc0, %ymm0, %ymm7, %ymm0 # ymm0 = ymm7[0,1,2,3,4,5],ymm0[6,7]
vmovdqa %ymm0, 0x280(%rsp)
vmovq %rbx, %xmm0
vpbroadcastq %xmm0, %ymm0
vmovdqa %ymm0, 0xc0(%rsp)
movl 0xe0(%rsp), %ecx
vmovq %rcx, %xmm0
vpbroadcastq %xmm0, %ymm0
vmovdqa %ymm0, 0xa0(%rsp)
vmovq %r15, %xmm0
vpbroadcastq %xmm0, %ymm0
vmovdqa %ymm0, 0x260(%rsp)
movl %edx, %ecx
movq %rcx, 0x18(%rsp)
vmovq %rcx, %xmm0
vpbroadcastq %xmm0, %ymm0
vmovdqa %ymm0, 0x2c0(%rsp)
movq 0x10(%rbp), %rbx
movq 0x10(%rbx), %rcx
xorl %edx, %edx
movq 0x28(%rsp), %rdi
cmpq %rdx, 0x18(%rsp)
je 0x4fa3b8
movzbl (%r13,%rdx), %esi
movslq (%rcx,%rsi,4), %rsi
movq %rsi, 0x18(%rdi,%rdx,8)
incq %rdx
jmp 0x4fa39d
xorl %ecx, %ecx
movq 0x28(%rsp), %rdx
cmpq $0x3, %rcx
je 0x4fa3cf
andq $0x0, (%rdx,%rcx,8)
incq %rcx
jmp 0x4fa3bf
movq 0x18(%rsp), %rcx
movq 0x28(%rsp), %rdx
cmpl %ecx, %r8d
jle 0x4fa3e9
andq $0x0, 0x18(%rdx,%rcx,8)
incq %rcx
jmp 0x4fa3d9
xorl %ecx, %ecx
cmpq %rcx, 0x18(%rsp)
je 0x4fa402
andq $0x0, 0x18(%r9,%rcx,8)
movq %r11, 0x18(%r10,%rcx,8)
incq %rcx
jmp 0x4fa3eb
xorl %ecx, %ecx
cmpq $0x3, %rcx
je 0x4fa417
movq %r11, (%r9,%rcx,8)
movq %r11, (%r10,%rcx,8)
incq %rcx
jmp 0x4fa404
movq 0x18(%rsp), %rcx
cmpl %ecx, %r8d
jle 0x4fa430
movq %r11, 0x18(%r9,%rcx,8)
movq %r11, 0x18(%r10,%rcx,8)
incq %rcx
jmp 0x4fa41c
movq %rax, 0x50(%rsp)
movq 0x20(%rsp), %rax
decl %eax
movq %rax, 0x20(%rsp)
movq 0x40(%rsp), %rax
decl %eax
movq %rax, 0x40(%rsp)
movl %r8d, %ecx
sarl $0x1f, %ecx
andnl %r8d, %ecx, %eax
movq %rax, 0x98(%rsp)
movq 0x18(%rsp), %rax
leaq 0x2(%rax), %rcx
movq %rcx, 0x68(%rsp)
incq %rax
movq %rax, 0x60(%rsp)
vmovaps 0xd1342(%rip), %ymm0    # 0x5cb7c0
vmovaps %ymm0, 0x100(%rsp)
xorl %eax, %eax
vmovdqa %ymm7, %ymm5
vmovdqa %ymm7, %ymm9
vmovdqa %ymm7, %ymm10
vmovdqa %ymm7, 0x160(%rsp)
vmovdqa 0x220(%rsp), %ymm0
vmovdqa %ymm0, 0x180(%rsp)
movq %r11, 0x30(%rsp)
vmovdqa %ymm7, 0x2e0(%rsp)
cmpq %r15, %rax
jge 0x4fa9e7
movq %rax, %r12
orq $0x2, %r12
cmpl $0x0, 0x30(%rbx)
movq %rax, %r11
je 0x4fa512
movq %r11, %r13
orq $0x1, %r13
cmpq %r15, %r13
movl %r13d, %eax
movq 0x20(%rsp), %rsi
cmovgel %esi, %eax
cltq
cmpq %r15, %r12
movl %r12d, %ecx
cmovgel %esi, %ecx
movslq %ecx, %rcx
movq %r11, %r14
orq $0x3, %r14
cmpq %r15, %r14
movl %r14d, %edx
cmovgel %esi, %edx
movslq %edx, %rdx
movq %r11, %rsi
jmp 0x4fa537
movq 0x50(%rsp), %rdx
movq (%rdx,%r11,8), %rsi
movq 0x8(%rdx,%r11,8), %rax
movq %r11, %r13
orq $0x1, %r13
movq (%rdx,%r12,8), %rcx
movq %r11, %r14
orq $0x3, %r14
movq 0x18(%rdx,%r11,8), %rdx
movq 0x8(%rbx), %rdi
movslq 0x18(%rbx), %r8
imulq %r8, %rax
leaq (%rdi,%rax,4), %rax
movq %rax, 0x88(%rsp)
imulq %r8, %rsi
leaq (%rdi,%rsi,4), %rax
movq %rax, 0x80(%rsp)
imulq %r8, %rcx
leaq (%rdi,%rcx,4), %rax
movq %rax, 0x78(%rsp)
imulq %r8, %rdx
leaq (%rdi,%rdx,4), %rax
movq %rax, 0x70(%rsp)
vmovdqa 0x260(%rsp), %ymm0
vpcmpgtq 0x100(%rsp), %ymm0, %ymm0
vmovdqa %ymm0, 0x300(%rsp)
xorl %ebx, %ebx
vmovdqa 0x280(%rsp), %ymm12
vmovdqa %ymm12, %ymm2
vmovdqa %ymm7, %ymm6
vmovdqa %ymm7, %ymm0
vpmovsxbq 0xcf719(%rip), %ymm11 # 0x5c9cce
movq %r14, 0x90(%rsp)
cmpq %rbx, 0x98(%rsp)
je 0x4fa9b3
movq %r13, %r14
movq %r12, %r13
vmovdqa %ymm10, 0x340(%rsp)
vmovdqa %ymm9, 0x360(%rsp)
vmovdqa %ymm5, 0x1e0(%rsp)
movq %r11, %r12
vpermq $0xf9, %ymm12, %ymm1    # ymm1 = ymm12[1,2,3,3]
vmovdqa %ymm2, 0x1c0(%rsp)
vpbroadcastq 0x18(%r9,%rbx,8), %ymm2
vpblendd $0xc0, %ymm2, %ymm1, %ymm2 # ymm2 = ymm1[0,1,2,3,4,5],ymm2[6,7]
vpermq $0xf9, %ymm0, %ymm0     # ymm0 = ymm0[1,2,3,3]
movq %r10, %r15
vpbroadcastq 0x18(%r10,%rbx,8), %ymm1
vpblendd $0xc0, %ymm1, %ymm0, %ymm1 # ymm1 = ymm0[0,1,2,3,4,5],ymm1[6,7]
vmovdqa %ymm2, 0x320(%rsp)
vpsubq 0xc0(%rsp), %ymm2, %ymm0
vpsubq 0xa0(%rsp), %ymm1, %ymm1
vmovdqa %ymm11, 0x120(%rsp)
vmovdqa %ymm12, 0xe0(%rsp)
vmovdqa %ymm6, 0x1a0(%rsp)
callq 0x4fac91
vmovdqa %ymm0, 0x140(%rsp)
vmovdqa 0xe0(%rsp), %ymm0
vpsubq 0xc0(%rsp), %ymm0, %ymm0
vmovdqa 0x1a0(%rsp), %ymm1
vpsubq 0xa0(%rsp), %ymm1, %ymm1
callq 0x4fac91
vmovdqa %ymm0, %ymm3
movq 0x28(%rsp), %rsi
movq 0x18(%rsi,%rbx,8), %rax
movq 0x80(%rsp), %rcx
movslq (%rcx,%rax,4), %rax
movq 0x10(%rsi,%rbx,8), %rcx
movq 0x88(%rsp), %rdx
movslq (%rdx,%rcx,4), %rcx
movq (%rsi,%rbx,8), %rdx
movq 0x8(%rsi,%rbx,8), %rsi
movq 0x78(%rsp), %rdi
movslq (%rdi,%rsi,4), %rsi
movq 0x70(%rsp), %rdi
movslq (%rdi,%rdx,4), %rdx
vmovq %rax, %xmm0
vmovq %rcx, %xmm1
vpunpcklqdq %xmm0, %xmm1, %xmm0 # xmm0 = xmm1[0],xmm0[0]
vmovq %rsi, %xmm1
vmovq %rdx, %xmm2
vpunpcklqdq %xmm1, %xmm2, %xmm1 # xmm1 = xmm2[0],xmm1[0]
vinserti128 $0x1, %xmm0, %ymm1, %ymm0
vpaddq 0x1c0(%rsp), %ymm0, %ymm0
vmovdqa %ymm3, 0x1c0(%rsp)
vmovdqa %ymm3, %ymm1
callq 0x4fac91
vmovapd 0x140(%rsp), %ymm1
callq 0x4fac91
vxorpd %xmm1, %xmm1, %xmm1
callq 0x4fac91
vmovdqa 0x120(%rsp), %ymm11
vmovdqa %ymm0, %ymm6
vpcmpeqq 0xd1342(%rip), %ymm11, %ymm13 # 0x5cba80
vpandn %ymm0, %ymm13, %ymm12
cmpq $0x4, %rbx
jb 0x4fa7bf
vmovdqa 0x180(%rsp), %ymm1
vpcmpgtq %ymm1, %ymm12, %ymm0
vblendvpd %ymm0, %ymm1, %ymm12, %ymm1
vmovapd %ymm1, 0x180(%rsp)
vmovdqa 0x160(%rsp), %ymm0
vmovapd %ymm12, %ymm1
vmovaps %ymm12, 0xe0(%rsp)
vmovdqa %ymm13, 0x1a0(%rsp)
vmovdqa %ymm6, 0x2a0(%rsp)
callq 0x4fac91
vmovdqa 0x2a0(%rsp), %ymm6
vmovdqa 0x1a0(%rsp), %ymm13
vmovapd 0xe0(%rsp), %ymm12
vmovdqa 0x120(%rsp), %ymm11
vmovdqa %ymm0, 0x160(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %r8
movq %r12, %r11
cmpq %rdi, %r12
setne %dl
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rcx
movq 0x8(%rax), %rax
cmpq %r8, %rbx
setae %sil
orb %dl, %sil
vextractf128 $0x1, %ymm12, %xmm0
movq 0x48(%rsp), %r9
movq %r15, %r10
vmovapd 0x2e0(%rsp), %ymm7
vmovdqa 0x360(%rsp), %ymm9
vmovdqa 0x340(%rsp), %ymm10
jne 0x4fa81e
vextractps $0x2, %xmm0, (%rcx,%rbx,4)
cmpq %rbx, 0x40(%rsp)
movq 0x58(%rsp), %r15
movq %r13, %r12
jne 0x4fa834
vextractps $0x2, %xmm0, (%rax,%r11,4)
movq %r14, %r13
cmpq %rdi, %r14
setne %dl
leaq -0x1(%rbx), %rsi
cmpq %r8, %rsi
setae %sil
orb %dl, %sil
jne 0x4fa853
vmovss %xmm0, -0x4(%rcx,%rbx,4)
cmpq %r15, %r13
setge %dl
cmpq %rbx, %r8
setne %sil
orb %dl, %sil
movq 0x90(%rsp), %r14
jne 0x4fa873
vmovss %xmm0, (%rax,%r13,4)
cmpq %rdi, %r12
jne 0x4fa89a
leaq -0x2(%rbx), %rdx
cmpq $0x2, %rbx
setae %sil
cmpq %r8, %rdx
setl %dl
andb %sil, %dl
cmpb $0x1, %dl
jne 0x4fa89a
vextractps $0x2, %xmm12, -0x8(%rcx,%rbx,4)
cmpq %r15, %r12
setge %dl
cmpq %rbx, 0x60(%rsp)
setne %sil
orb %dl, %sil
jne 0x4fa8b5
vextractps $0x2, %xmm12, (%rax,%r12,4)
cmpq %rdi, %r14
setne %dl
cmpq $0x3, %rbx
setb %sil
orb %dl, %sil
jne 0x4fa8ce
vmovss %xmm12, -0xc(%rcx,%rbx,4)
vmovapd 0x140(%rsp), %ymm0
vblendvpd %ymm13, %ymm7, %ymm0, %ymm0
cmpq %r15, %r14
setge %cl
cmpq %rbx, 0x68(%rsp)
setne %dl
orb %cl, %dl
jne 0x4fa8f5
vmovss %xmm12, (%rax,%r14,4)
vpcmpeqd %ymm8, %ymm8, %ymm8
vpcmpgtq %ymm8, %ymm11, %ymm1
vmovdqa 0x2c0(%rsp), %ymm2
vpcmpgtq %ymm11, %ymm2, %ymm2
vpand 0x300(%rsp), %ymm2, %ymm2
vpand %ymm1, %ymm2, %ymm1
vextracti128 $0x1, %ymm1, %xmm2
vpackssdw %xmm2, %xmm1, %xmm2
vpcmpeqq %ymm10, %ymm12, %ymm3
vpcmpgtq %ymm10, %ymm12, %ymm4
vpand %ymm1, %ymm4, %ymm5
vblendvpd %ymm5, %ymm6, %ymm10, %ymm10
vextracti128 $0x1, %ymm5, %xmm6
vpackssdw %xmm6, %xmm5, %xmm5
vpcmpgtq %ymm11, %ymm9, %ymm6
vpand %ymm6, %ymm3, %ymm3
vextracti128 $0x1, %ymm3, %xmm6
vpackssdw %xmm6, %xmm3, %xmm6
vblendvps %xmm6, %xmm2, %xmm5, %xmm2
vmovapd 0x1c0(%rsp), %ymm5
vblendvpd %ymm13, %ymm7, %ymm5, %ymm6
vpmovsxdq %xmm2, %ymm2
vmovapd 0x1e0(%rsp), %ymm5
vblendvpd %ymm2, 0x100(%rsp), %ymm5, %ymm5
vpor %ymm4, %ymm3, %ymm2
vpand %ymm2, %ymm1, %ymm1
vblendvpd %ymm1, %ymm11, %ymm9, %ymm9
vmovq %xmm12, (%r9,%rbx,8)
vmovlpd %xmm0, (%r10,%rbx,8)
vpsubq %ymm8, %ymm11, %ymm11
incq %rbx
vmovdqa 0x320(%rsp), %ymm2
jmp 0x4fa5bd
vpbroadcastq 0xd10e4(%rip), %ymm0 # 0x5cbaa0
vmovdqa 0x100(%rsp), %ymm1
vpaddq %ymm0, %ymm1, %ymm1
vmovdqa %ymm1, 0x100(%rsp)
addq $0x4, %r11
movq 0x10(%rbp), %rbx
movq %r11, %rax
movq 0x30(%rsp), %r11
jmp 0x4fa4be
vmovdqa %ymm10, 0x380(%rsp)
vmovdqa %ymm9, 0x240(%rsp)
vmovdqa %ymm5, 0x200(%rsp)
xorl %edx, %edx
xorl %eax, %eax
xorl %ecx, %ecx
movq 0x50(%rsp), %r14
cmpl $0x4, %edx
je 0x4faa76
movq 0x380(%rsp,%rdx,8), %rsi
cmpq %r11, %rsi
jle 0x4faa2f
movl 0x200(%rsp,%rdx,8), %ecx
movl 0x240(%rsp,%rdx,8), %eax
jmp 0x4faa6e
jne 0x4faa6b
movq 0x240(%rsp,%rdx,8), %rdi
movslq %eax, %rsi
cmpq %rsi, %rdi
jge 0x4faa4f
movl 0x200(%rsp,%rdx,8), %ecx
movq %r11, %rsi
movl %edi, %eax
jmp 0x4faa6e
jne 0x4faa6b
movq 0x200(%rsp,%rdx,8), %r8
movslq %ecx, %rsi
cmpq %rsi, %r8
jge 0x4faa6b
movq %r11, %rsi
movl %edi, %eax
movl %r8d, %ecx
jmp 0x4faa6e
movq %r11, %rsi
incq %rdx
movq %rsi, %r11
jmp 0x4faa0d
vpcmpgtq 0x180(%rsp), %ymm7, %ymm0
vmovdqa 0x160(%rsp), %ymm1
vpcmpgtq 0x220(%rsp), %ymm1, %ymm1
vpor %ymm1, %ymm0, %ymm0
vtestpd %ymm0, %ymm0
movq 0x38(%rsp), %rdx
je 0x4faaae
orb $0x40, 0xc(%rdx)
xorl %r11d, %r11d
xorl %eax, %eax
xorl %ecx, %ecx
movl %r11d, (%rdx)
movl %ecx, 0x4(%rdx)
movl %eax, 0x8(%rdx)
movq %r10, %rdi
vzeroupper
callq 0x1ab763
movq 0x48(%rsp), %rdi
callq 0x1ab763
movq 0x28(%rsp), %rdi
callq 0x1ab763
cmpl $0x0, 0x30(%rbx)
jne 0x4faae4
movq %r14, %rdi
callq 0x1ab763
movq 0x38(%rsp), %rax
jmp 0x4fac82
movq %r10, %r15
leal 0x3(%rcx), %eax
movslq %eax, %rsi
pushq $0x20
popq %rdi
movq %rsi, 0x1e0(%rsp)
movq %rcx, %r12
callq 0x1ab78c
testq %rax, %rax
movq 0x30(%rsp), %r11
movq 0xc0(%rsp), %r13
movq 0xa0(%rsp), %rbx
je 0x4fac80
movl %r12d, %ecx
sarl $0x1f, %ecx
andnl %r12d, %ecx, %edi
xorl %ecx, %ecx
movq 0x48(%rsp), %r9
movq %r15, %r10
movq 0x58(%rsp), %r15
movq 0x120(%rsp), %r8
cmpq %rcx, %rdi
je 0x4fabd9
movq 0x10(%rbp), %rdx
movq 0x10(%rdx), %rdx
movzbl (%r8,%rcx), %esi
movslq (%rdx,%rsi,4), %rdx
movq %rdx, (%rax,%rcx,8)
incq %rcx
jmp 0x4fab4a
movq 0x240464(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xcc46d(%rip), %rsi     # 0x5c6feb
leaq 0x8ca67(%rip), %rdx     # 0x5875ec
leaq 0xccb71(%rip), %rcx     # 0x5c76fd
jmp 0x4fac79
movq 0x240440(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xccb5f(%rip), %rsi     # 0x5c7701
leaq 0x8ca43(%rip), %rdx     # 0x5875ec
leaq 0xccb65(%rip), %rcx     # 0x5c7715
jmp 0x4fac79
movq 0x24041c(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xccb55(%rip), %rsi     # 0x5c771b
leaq 0x8ca1f(%rip), %rdx     # 0x5875ec
leaq 0xccb5c(%rip), %rcx     # 0x5c7730
jmp 0x4fac79
movq %r15, %rcx
movq 0x1e0(%rsp), %rdx
cmpq %rdx, %rcx
jge 0x4fa2ec
andq $0x0, (%rax,%rcx,8)
incq %rcx
jmp 0x4fabe4
movq 0x2403da(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xccb13(%rip), %rsi     # 0x5c771b
leaq 0x8c9dd(%rip), %rdx     # 0x5875ec
leaq 0xccb1f(%rip), %rcx     # 0x5c7735
jmp 0x4fac79
movq 0x2403b9(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xcc3c2(%rip), %rsi     # 0x5c6feb
leaq 0x8c9bc(%rip), %rdx     # 0x5875ec
leaq 0xccd0b(%rip), %rcx     # 0x5c7942
jmp 0x4fac79
movq 0x240398(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xcc3a1(%rip), %rsi     # 0x5c6feb
leaq 0x8c99b(%rip), %rdx     # 0x5875ec
leaq 0xccae1(%rip), %rcx     # 0x5c7739
jmp 0x4fac79
movq 0x240377(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0xcca96(%rip), %rsi     # 0x5c7701
leaq 0x8c97a(%rip), %rdx     # 0x5875ec
leaq 0xccac4(%rip), %rcx     # 0x5c773d
xorl %eax, %eax
callq 0x19e180
xorl %eax, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq