// File: /workspace/github_c_makefile_star2_O2/nh13[P]ksw/src/parasail/src/sg_stats.c
// Function: parasail_sg_flags_stats_rowcol
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,
        int s1_beg, int s1_end, int s2_beg, int s2_end)
{
    /* declare local variables */
    parasail_result_t *result = NULL;
    int * restrict s1 = NULL;
    int * restrict s2 = NULL;
    int * restrict H = NULL;
    int * restrict HM = NULL;
    int * restrict HS = NULL;
    int * restrict HL = NULL;
    int * restrict F = NULL;
    int * restrict FM = NULL;
    int * restrict FS = NULL;
    int * restrict FL = NULL;
    int i = 0;
    int j = 0;
    int s1Len = 0;
    int score = 0;
    int matches = 0;
    int similar = 0;
    int length = 0;
    int end_query = 0;
    int end_ref = 0;

    /* 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_PSSM) {
        PARASAIL_CHECK_NULL_PSSM_STATS(_s1);
    }
    else {
        PARASAIL_CHECK_NULL(_s1);
        PARASAIL_CHECK_GT0(_s1Len);
    }

    /* initialize stack variables */
    i = 0;
    j = 0;
    s1Len = matrix->type == PARASAIL_MATRIX_TYPE_SQUARE ? _s1Len : matrix->length;
    score = NEG_INF_32;
    matches = NEG_INF_32;
    similar = NEG_INF_32;
    length = NEG_INF_32;
    end_query = s1Len-1;
    end_ref = s2Len-1;

    /* initialize result */
#ifdef PARASAIL_TABLE
    result = parasail_result_new_table3(s1Len, s2Len);
#else
#ifdef PARASAIL_ROWCOL
    result = parasail_result_new_rowcol3(s1Len, s2Len);
#else
    result = parasail_result_new_stats();
#endif
#endif
    if (!result) return NULL;

    /* set known flags */
    result->flag |= PARASAIL_FLAG_SG | PARASAIL_FLAG_NOVEC
        | PARASAIL_FLAG_STATS
        | PARASAIL_FLAG_BITS_INT | PARASAIL_FLAG_LANES_1;
    result->flag |= s1_beg ? PARASAIL_FLAG_SG_S1_BEG : 0;
    result->flag |= s1_end ? PARASAIL_FLAG_SG_S1_END : 0;
    result->flag |= s2_beg ? PARASAIL_FLAG_SG_S2_BEG : 0;
    result->flag |= s2_end ? PARASAIL_FLAG_SG_S2_END : 0;
#ifdef PARASAIL_TABLE
    result->flag |= PARASAIL_FLAG_TABLE;
#endif
#ifdef PARASAIL_ROWCOL
    result->flag |= PARASAIL_FLAG_ROWCOL;
#endif

    /* initialize heap variables */
    s1 = parasail_memalign_int(16, s1Len);
    s2 = parasail_memalign_int(16, s2Len);
    H = parasail_memalign_int(16, s2Len+1);
    HM = parasail_memalign_int(16, s2Len+1);
    HS = parasail_memalign_int(16, s2Len+1);
    HL = parasail_memalign_int(16, s2Len+1);
    F = parasail_memalign_int(16, s2Len+1);
    FM = parasail_memalign_int(16, s2Len+1);
    FS = parasail_memalign_int(16, s2Len+1);
    FL = parasail_memalign_int(16, s2Len+1);

    /* validate heap variables */
    if (!s1) return NULL;
    if (!s2) return NULL;
    if (!H) return NULL;
    if (!HM) return NULL;
    if (!HS) return NULL;
    if (!HL) return NULL;
    if (!F) return NULL;
    if (!FM) return NULL;
    if (!FS) return NULL;
    if (!FL) return NULL;

    for (i=0; i<s1Len; ++i) {
        s1[i] = matrix->mapper[(unsigned char)_s1[i]];
    }
    for (j=0; j<s2Len; ++j) {
        s2[j] = matrix->mapper[(unsigned char)_s2[j]];
    }

    /* upper left corner */
    H[0] = 0;
    HM[0] = 0;
    HS[0] = 0;
    HL[0] = 0;
    F[0] = NEG_INF_32;
    FM[0] = 0;
    FS[0] = 0;
    FL[0] = 0;
    
    /* first row */
    if (s2_beg) {
        for (j=1; j<=s2Len; ++j) {
            H[j] = 0;
            HM[j] = 0;
            HS[j] = 0;
            HL[j] = 0;
            F[j] = NEG_INF_32;
            FM[j] = 0;
            FS[j] = 0;
            FL[j] = 0;
        }
    }
    else {
        for (j=1; j<=s2Len; ++j) {
            H[j] = -open -(j-1)*gap;
            HM[j] = 0;
            HS[j] = 0;
            HL[j] = 0;
            F[j] = NEG_INF_32;
            FM[j] = 0;
            FS[j] = 0;
            FL[j] = 0;
        }
    }


    /* iter over first sequence */
    for (i=1; i<=s1Len; ++i) {
        const int * const restrict matrow =
            matrix->type == PARASAIL_MATRIX_TYPE_SQUARE ?
            &matrix->matrix[matrix->size*s1[i-1]] :
            &matrix->matrix[matrix->size*(i-1)];
        /* init first column */
        int NH = H[0];
        int NHM = HM[0];
        int NHS = HS[0];
        int NHL = HL[0];
        int WH = s1_beg ? 0 : (-open - (i-1)*gap);
        int WHM = 0;
        int WHS = 0;
        int WHL = 0;
        int E = NEG_INF_32;
        int EM = 0;
        int ES = 0;
        int EL = 0;
        H[0] = WH;
        HM[0] = WHM;
        HS[0] = WHS;
        HL[0] = WHL;
        for (j=1; j<=s2Len; ++j) {
            int H_dag;
            int E_opn;
            int E_ext;
            int F_opn;
            int F_ext;
            int NWH = NH;
            int NWM = NHM;
            int NWS = NHS;
            int NWL = NHL;
            NH = H[j];
            NHM = HM[j];
            NHS = HS[j];
            NHL = HL[j];
            F_opn = NH - open;
            F_ext = F[j] - gap;
            F[j] = MAX(F_opn, F_ext);
            E_opn = WH - open;
            E_ext = E - gap;
            E = MAX(E_opn, E_ext);
            H_dag = NWH + matrow[s2[j-1]];
            WH = MAX(H_dag, E);
            WH = MAX(WH, F[j]);
            if (F_opn > F_ext) {
                FM[j] = NHM;
                FS[j] = NHS;
                FL[j] = NHL;
            }
            FL[j] += 1;
            if (E_opn > E_ext) {
                EM = WHM;
                ES = WHS;
                EL = WHL;
            }
            EL += 1;
            if (WH == H_dag) {
                WHM  = NWM + (s1[i-1] == s2[j-1]);
                WHS  = NWS + (matrow[s2[j-1]] > 0);
                WHL  = NWL + 1;
            }
            else if (WH == F[j]) {
                WHM  = FM[j];
                WHS  = FS[j];
                WHL  = FL[j];
            }
            else {
                WHM  = EM;
                WHS  = ES;
                WHL  = EL;
            }
            H[j] = WH;
            HM[j] = WHM;
            HS[j] = WHS;
            HL[j] = WHL;
#ifdef PARASAIL_TABLE
            result->stats->tables->score_table[1LL*(i-1)*s2Len + (j-1)] = WH;
            result->stats->tables->matches_table[1LL*(i-1)*s2Len + (j-1)] = WHM;
            result->stats->tables->similar_table[1LL*(i-1)*s2Len + (j-1)] = WHS;
            result->stats->tables->length_table[1LL*(i-1)*s2Len + (j-1)] = WHL;
#endif
        }
        if (s1_end && WH > score) {
            score = WH;
            matches = WHM;
            similar = WHS;
            length = WHL;
            end_query = i-1;
            end_ref = s2Len-1;
        }
#ifdef PARASAIL_ROWCOL
        result->stats->rowcols->score_col[i-1] = WH;
        result->stats->rowcols->matches_col[i-1] = WHM;
        result->stats->rowcols->similar_col[i-1] = WHS;
        result->stats->rowcols->length_col[i-1] = WHL;
#endif
    }
    if (s1_end && s2_end) {
        for (j=1; j<=s2Len; ++j) {
            i = s1Len;
            if (H[j] > score) {
                score = H[j];
                matches = HM[j];
                similar = HS[j];
                length = HL[j];
                end_query = i-1;
                end_ref = j-1;
            }
            else if (score == H[j] && j-1 < end_ref) {
                matches = HM[j];
                similar = HS[j];
                length = HL[j];
                end_query = i-1;
                end_ref = j-1;
            }
        }
    }
    else if (s2_end) {
        for (j=1; j<=s2Len; ++j) {
            i = s1Len;
            if (H[j] > score) {
                score = H[j];
                matches = HM[j];
                similar = HS[j];
                length = HL[j];
                end_query = i-1;
                end_ref = j-1;
            }
        }
    }
    if (!s1_end && !s2_end) {
        score = H[s2Len];
        matches = HM[s2Len];
        similar = HS[s2Len];
        length = HL[s2Len];
        end_query = s1Len-1;
        end_ref = s2Len-1;
    }
#ifdef PARASAIL_ROWCOL
    for (j=1; j<=s2Len; ++j) {
        result->stats->rowcols->score_row[j-1] = H[j];
        result->stats->rowcols->matches_row[j-1] = HM[j];
        result->stats->rowcols->similar_row[j-1] = HS[j];
        result->stats->rowcols->length_row[j-1] = HL[j];
    }
#endif

    result->score = score;
    result->end_query = end_query;
    result->end_ref = end_ref;
    result->stats->matches = matches;
    result->stats->similar = similar;
    result->stats->length = length;

    parasail_free(FL);
    parasail_free(FS);
    parasail_free(FM);
    parasail_free(F);
    parasail_free(HL);
    parasail_free(HS);
    parasail_free(HM);
    parasail_free(H);
    parasail_free(s2);
    parasail_free(s1);

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %r9d, 0x14(%rsp)
movl %r8d, 0x10(%rsp)
testq %rdx, %rdx
je 0x24a7ee
testl %ecx, %ecx
jle 0x24a812
cmpl $0x0, 0x10(%rsp)
js 0x24a836
cmpl $0x0, 0x14(%rsp)
js 0x24a85a
movq %rdx, %r15
movq 0x120(%rsp), %rdx
testq %rdx, %rdx
je 0x24a87e
movq %rdi, %r12
movl 0x30(%rdx), %eax
cmpl $0x1, %eax
jne 0x249fb4
testq %r12, %r12
jne 0x249fcc
movq 0x4f1043(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x37d7ce(%rip), %rsi    # 0x5c776d
leaq 0x37d8e5(%rip), %rdx    # 0x5c788b
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x19e180
jmp 0x24aa03
testq %r12, %r12
je 0x24a9ba
movl %esi, %r14d
testl %esi, %esi
jle 0x24a9db
testl %eax, %eax
je 0x249fd0
movl 0x34(%rdx), %r14d
movl %r14d, %edi
movl %ecx, %esi
movq %rcx, %r13
callq 0x1abc1d
testq %rax, %rax
je 0x24a1c5
movq %rax, %rbx
movq %r12, 0x70(%rsp)
movq %r15, 0x78(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x128(%rsp)
setne %al
xorl %ecx, %ecx
cmpl $0x0, 0x130(%rsp)
setne %cl
shll $0x4, %ecx
xorl %edx, %edx
cmpl $0x0, 0x138(%rsp)
setne %dl
shll $0xe, %edx
xorl %esi, %esi
cmpl $0x0, 0x140(%rsp)
setne %sil
shll $0xf, %esi
leal (%rcx,%rax,8), %eax
orl %edx, %eax
orl %esi, %eax
orl 0xc(%rbx), %eax
orl $0x1450102, %eax        # imm = 0x1450102
movl %eax, 0xc(%rbx)
movslq %r14d, %rsi
pushq $0x10
popq %rbp
movq %rbp, %rdi
callq 0x1ab76d
movq %rax, 0x48(%rsp)
movl %r13d, %esi
movq %rbp, %rdi
movq %rsi, 0xc8(%rsp)
callq 0x1ab76d
movq %rax, 0x50(%rsp)
movq %r13, 0x40(%rsp)
leal 0x1(%r13), %r15d
movq %rbp, %rdi
movq %r15, %rsi
callq 0x1ab76d
movq %rax, %r13
movq %rbp, %rdi
movq %r15, %rsi
callq 0x1ab76d
movq %rax, 0xa8(%rsp)
movq %rbp, %rdi
movq %r15, %rsi
callq 0x1ab76d
movq %rax, 0x80(%rsp)
movq %rbp, %rdi
movq %r15, %rsi
callq 0x1ab76d
movq %rax, 0x8(%rsp)
movq %rbp, %rdi
movq %r15, %rsi
callq 0x1ab76d
movq %r14, 0x98(%rsp)
movq %rax, %r14
movq %rbp, %rdi
movq %r15, %rsi
callq 0x1ab76d
movq %rax, %r12
movq %rbp, %rdi
movq %r15, %rsi
callq 0x1ab76d
movq %rax, %rbp
pushq $0x10
popq %rdi
movq %r15, 0x90(%rsp)
movq %r15, %rsi
callq 0x1ab76d
movq 0x80(%rsp), %r10
movq 0xa8(%rsp), %rdi
movq 0x48(%rsp), %xmm0
movq 0x50(%rsp), %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movq %r13, %xmm1
movq %rdi, %xmm2
punpcklqdq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0]
movq %r10, %xmm2
movq 0x8(%rsp), %xmm3
punpcklqdq %xmm3, %xmm2    # xmm2 = xmm2[0],xmm3[0]
movq %r14, 0x38(%rsp)
movq %r14, %xmm3
movq %r12, 0x28(%rsp)
movq %r12, %xmm4
punpcklqdq %xmm4, %xmm3    # xmm3 = xmm3[0],xmm4[0]
pxor %xmm4, %xmm4
movq %rbp, 0x20(%rsp)
testq %rbp, %rbp
sete %sil
movq %rax, 0x30(%rsp)
testq %rax, %rax
sete %cl
pcmpeqd %xmm4, %xmm0
pshufd $0xb1, %xmm0, %xmm5     # xmm5 = xmm0[1,0,3,2]
pand %xmm0, %xmm5
pcmpeqd %xmm4, %xmm1
pshufd $0xb1, %xmm1, %xmm0     # xmm0 = xmm1[1,0,3,2]
pand %xmm1, %xmm0
packssdw %xmm0, %xmm5
pcmpeqd %xmm4, %xmm2
pshufd $0xb1, %xmm2, %xmm0     # xmm0 = xmm2[1,0,3,2]
pand %xmm2, %xmm0
pcmpeqd %xmm4, %xmm3
pshufd $0xb1, %xmm3, %xmm1     # xmm1 = xmm3[1,0,3,2]
pand %xmm3, %xmm1
packssdw %xmm1, %xmm0
packssdw %xmm0, %xmm5
pmovmskb %xmm5, %edx
testw $0xaaaa, %dx            # imm = 0xAAAA
setne %dl
orb %sil, %cl
xorl %eax, %eax
orb %dl, %cl
je 0x24a1cc
xorl %ebx, %ebx
jmp 0x24aa03
movq 0x98(%rsp), %r11
leal -0x1(%r11), %ecx
movl %ecx, 0x58(%rsp)
movq 0x40(%rsp), %rcx
decl %ecx
movq %rcx, 0x40(%rsp)
testl %r11d, %r11d
cmovlel %eax, %r11d
movl 0x140(%rsp), %r8d
movq 0x90(%rsp), %r9
movq 0x120(%rsp), %r15
movq 0x78(%rsp), %r14
movq 0x70(%rsp), %rsi
cmpq %rax, %r11
je 0x24a22e
movq 0x10(%r15), %rcx
movzbl (%rsi,%rax), %edx
movl (%rcx,%rdx,4), %ecx
movq 0x48(%rsp), %rdx
movl %ecx, (%rdx,%rax,4)
incq %rax
jmp 0x24a211
movq 0x10(%r15), %rax
xorl %ecx, %ecx
movq 0x50(%rsp), %rsi
cmpq %rcx, 0xc8(%rsp)
je 0x24a253
movzbl (%r14,%rcx), %edx
movl (%rax,%rdx,4), %edx
movl %edx, (%rsi,%rcx,4)
incq %rcx
jmp 0x24a239
andl $0x0, (%r13)
andl $0x0, (%rdi)
andl $0x0, (%r10)
movq 0x8(%rsp), %rax
andl $0x0, (%rax)
movq 0x38(%rsp), %rax
movl $0xc0000000, (%rax)     # imm = 0xC0000000
movq 0x28(%rsp), %rax
andl $0x0, (%rax)
movq 0x20(%rsp), %rax
andl $0x0, (%rax)
movq 0x30(%rsp), %rax
andl $0x0, (%rax)
cmpl $0x0, 0x138(%rsp)
je 0x24a2e4
pushq $0x1
popq %rax
cmpq %rax, %r9
je 0x24a339
andl $0x0, (%r13,%rax,4)
andl $0x0, (%rdi,%rax,4)
andl $0x0, (%r10,%rax,4)
movq 0x8(%rsp), %rcx
andl $0x0, (%rcx,%rax,4)
movq 0x38(%rsp), %rcx
movl $0xc0000000, (%rcx,%rax,4) # imm = 0xC0000000
movq 0x28(%rsp), %rcx
andl $0x0, (%rcx,%rax,4)
movq 0x20(%rsp), %rcx
andl $0x0, (%rcx,%rax,4)
movq 0x30(%rsp), %rcx
andl $0x0, (%rcx,%rax,4)
incq %rax
jmp 0x24a297
movl 0x10(%rsp), %eax
negl %eax
pushq $0x1
popq %rcx
cmpq %rcx, %r9
je 0x24a339
movl %eax, (%r13,%rcx,4)
andl $0x0, (%rdi,%rcx,4)
andl $0x0, (%r10,%rcx,4)
movq 0x8(%rsp), %rdx
andl $0x0, (%rdx,%rcx,4)
movq 0x38(%rsp), %rdx
movl $0xc0000000, (%rdx,%rcx,4) # imm = 0xC0000000
movq 0x28(%rsp), %rdx
andl $0x0, (%rdx,%rcx,4)
movq 0x20(%rsp), %rdx
andl $0x0, (%rdx,%rcx,4)
movq 0x30(%rsp), %rdx
andl $0x0, (%rdx,%rcx,4)
incq %rcx
subl 0x14(%rsp), %eax
jmp 0x24a2ed
incl %r11d
leaq -0x1(%r9), %rax
movq %rax, 0xd0(%rsp)
movl $0xc0000000, %r12d      # imm = 0xC0000000
pushq $0x1
popq %rdx
movl $0xc0000000, 0x5c(%rsp) # imm = 0xC0000000
movl $0xc0000000, 0x1c(%rsp) # imm = 0xC0000000
movl $0xc0000000, 0x18(%rsp) # imm = 0xC0000000
movl 0x58(%rsp), %eax
movq %rax, 0x88(%rsp)
movq %rbx, 0xc0(%rsp)
movq %r11, 0x98(%rsp)
movq %r13, 0xe0(%rsp)
cmpq %r11, %rdx
je 0x24a703
cmpl $0x0, 0x30(%r15)
movslq 0x18(%r15), %rcx
movl %r12d, 0x60(%rsp)
je 0x24a3ac
leaq -0x1(%rdx), %rax
jmp 0x24a3b6
movq 0x48(%rsp), %rax
movslq -0x4(%rax,%rdx,4), %rax
imulq %rcx, %rax
movq 0x8(%r15), %rcx
pushq $0x1
popq %r11
movq %rdx, 0xa0(%rsp)
subl %edx, %r11d
imull 0x14(%rsp), %r11d
subl 0x10(%rsp), %r11d
xorl %edx, %edx
cmpl $0x0, 0x128(%rsp)
movl (%r13), %r12d
movl (%rdi), %esi
movl %esi, 0x6c(%rsp)
movl (%r10), %esi
movl %esi, 0x68(%rsp)
movq 0x8(%rsp), %rsi
movl (%rsi), %r8d
movl %r8d, 0x64(%rsp)
cmovnel %edx, %r11d
movl %r11d, (%r13)
andl $0x0, (%rdi)
andl $0x0, (%r10)
andl $0x0, (%rsi)
leaq (%rcx,%rax,4), %rax
movq %rax, 0xd8(%rsp)
movl $0xc0000000, %eax       # imm = 0xC0000000
xorl %esi, %esi
xorl %r8d, %r8d
xorl %ebp, %ebp
xorl %r14d, %r14d
xorl %r15d, %r15d
xorl %r9d, %r9d
cmpq %rdx, 0xd0(%rsp)
je 0x24a632
movl %r9d, 0xb0(%rsp)
movl %r14d, 0xb4(%rsp)
movl %r15d, 0xb8(%rsp)
movl %ebp, %r9d
movl %r8d, %r15d
movl %esi, %r14d
movl 0x4(%r13,%rdx,4), %r13d
movl 0x4(%rdi,%rdx,4), %ecx
movl %ecx, 0x80(%rsp)
movq %r10, %rbp
movl 0x4(%r10,%rdx,4), %ecx
movl %ecx, 0x78(%rsp)
movl %r13d, 0xbc(%rsp)
movl 0x10(%rsp), %r8d
subl %r8d, %r13d
movq 0x38(%rsp), %rdi
movl 0x4(%rdi,%rdx,4), %ebx
movl 0x14(%rsp), %esi
subl %esi, %ebx
cmpl %ebx, %r13d
movl %ebx, %r10d
cmovgl %r13d, %r10d
movq 0x8(%rsp), %rcx
movl 0x4(%rcx,%rdx,4), %ecx
movl %ecx, 0x70(%rsp)
movl %r10d, 0x4(%rdi,%rdx,4)
movl %r11d, %ecx
subl %r8d, %ecx
movl %eax, %edi
subl %esi, %edi
movl %ecx, %eax
cmpl %edi, %ecx
jg 0x24a4cb
movl %edi, %eax
movq 0x50(%rsp), %r11
movslq (%r11,%rdx,4), %r11
movq 0xd8(%rsp), %rsi
addl (%rsi,%r11,4), %r12d
cmpl %eax, %r12d
movl %eax, %r11d
cmovgl %r12d, %r11d
cmpl %r10d, %r11d
jg 0x24a4f2
movl %r10d, %r11d
cmpl %ebx, %r13d
jle 0x24a525
movq 0x28(%rsp), %r10
movl 0x80(%rsp), %esi
movl %esi, 0x4(%r10,%rdx,4)
movq 0x20(%rsp), %r10
movl 0x78(%rsp), %esi
movl %esi, 0x4(%r10,%rdx,4)
movl 0x70(%rsp), %r13d
movq %rbp, %r10
movq 0x30(%rsp), %rbx
jmp 0x24a532
movq 0x30(%rsp), %rbx
movl 0x4(%rbx,%rdx,4), %r13d
movq %rbp, %r10
incl %r13d
movl %r13d, 0x4(%rbx,%rdx,4)
cmpl %edi, %ecx
jg 0x24a556
movl 0xb4(%rsp), %r14d
movl 0xb8(%rsp), %r15d
movl 0xb0(%rsp), %r9d
incl %r9d
cmpl %r12d, %r11d
jne 0x24a5b5
movq 0x50(%rsp), %rcx
movslq (%rcx,%rdx,4), %rcx
xorl %esi, %esi
movq 0x48(%rsp), %rdi
movq 0xa0(%rsp), %r8
cmpl %ecx, -0x4(%rdi,%r8,4)
sete %sil
movl 0x6c(%rsp), %r8d
addl %esi, %r8d
xorl %esi, %esi
movq 0xd8(%rsp), %rdi
cmpl $0x0, (%rdi,%rcx,4)
setg %sil
movl 0x68(%rsp), %ecx
addl %esi, %ecx
movl 0x64(%rsp), %ebp
incl %ebp
movl %r8d, %esi
movl %ecx, %r8d
movq 0xa8(%rsp), %rdi
jmp 0x24a5e8
movl %r14d, %esi
movl %r15d, %r8d
movl %r9d, %ebp
movq 0x38(%rsp), %rcx
cmpl 0x4(%rcx,%rdx,4), %r11d
movq 0xa8(%rsp), %rdi
jne 0x24a5e8
movq 0x28(%rsp), %rcx
movl 0x4(%rcx,%rdx,4), %esi
movq 0x20(%rsp), %rcx
movl 0x4(%rcx,%rdx,4), %r8d
movl %r13d, %ebp
movq 0xe0(%rsp), %r13
movl %r11d, 0x4(%r13,%rdx,4)
movl %esi, 0x4(%rdi,%rdx,4)
movl %r8d, 0x4(%r10,%rdx,4)
movq 0x8(%rsp), %rcx
movl %ebp, 0x4(%rcx,%rdx,4)
incq %rdx
movl 0xbc(%rsp), %r12d
movl 0x80(%rsp), %ecx
movl %ecx, 0x6c(%rsp)
movl 0x78(%rsp), %ecx
movl %ecx, 0x68(%rsp)
movl 0x70(%rsp), %ecx
movl %ecx, 0x64(%rsp)
jmp 0x24a433
cmpl $0x0, 0x130(%rsp)
je 0x24a684
movl 0x60(%rsp), %r12d
cmpl %r12d, %r11d
movq 0xc0(%rsp), %rbx
movq 0x90(%rsp), %r9
movq 0x120(%rsp), %r15
movq 0xa0(%rsp), %rdx
jle 0x24a6a9
leaq -0x1(%rdx), %rax
movq %rax, 0x88(%rsp)
movl %r11d, %r12d
movl %esi, 0x5c(%rsp)
movl %r8d, 0x1c(%rsp)
movl %ebp, 0x18(%rsp)
jmp 0x24a6a9
movq 0xc0(%rsp), %rbx
movq 0x90(%rsp), %r9
movq 0x120(%rsp), %r15
movl 0x60(%rsp), %r12d
movq 0xa0(%rsp), %rdx
movq 0x10(%rbx), %rax
movq 0x10(%rax), %rax
movq 0x20(%rax), %rax
movl %r11d, -0x4(%rax,%rdx,4)
movq 0x10(%rbx), %rax
movq 0x10(%rax), %rax
movq 0x28(%rax), %rax
movl %esi, -0x4(%rax,%rdx,4)
movq 0x10(%rbx), %rax
movq 0x10(%rax), %rax
movq 0x30(%rax), %rax
movl %r8d, -0x4(%rax,%rdx,4)
movq 0x10(%rbx), %rax
movq 0x10(%rax), %rax
movq 0x38(%rax), %rax
movl %ebp, -0x4(%rax,%rdx,4)
incq %rdx
movl 0x140(%rsp), %r8d
movq 0x98(%rsp), %r11
jmp 0x24a38d
testl %r8d, %r8d
sete %al
cmpl $0x0, 0x130(%rsp)
sete %cl
orb %al, %cl
movl 0x58(%rsp), %esi
movl 0x5c(%rsp), %r11d
jne 0x24a794
pushq $0x1
popq %rax
movq 0x40(%rsp), %rcx
movl 0x1c(%rsp), %ebp
movl 0x18(%rsp), %r14d
movq 0x88(%rsp), %r15
cmpq %rax, %r9
je 0x24a8a2
movl (%r13,%rax,4), %edx
cmpl %r12d, %edx
jle 0x24a763
movl (%rdi,%rax,4), %r11d
movl (%r10,%rax,4), %ebp
movq 0x8(%rsp), %rcx
movl (%rcx,%rax,4), %r14d
leal -0x1(%rax), %ecx
jmp 0x24a784
jne 0x24a789
movslq %ecx, %rdx
cmpq %rdx, %rax
jg 0x24a789
movl (%rdi,%rax,4), %r11d
movl (%r10,%rax,4), %ebp
movq 0x8(%rsp), %rcx
movl (%rcx,%rax,4), %r14d
leal -0x1(%rax), %ecx
movl %r12d, %edx
movl %esi, %r15d
jmp 0x24a78c
movl %r12d, %edx
incq %rax
movl %edx, %r12d
jmp 0x24a73a
testl %r8d, %r8d
movq 0x40(%rsp), %rcx
movl 0x1c(%rsp), %ebp
movl 0x18(%rsp), %r14d
movq 0x88(%rsp), %r15
je 0x24a8a2
xorl %eax, %eax
cmpq %rax, 0xd0(%rsp)
je 0x24a8a2
movl 0x4(%r13,%rax,4), %edx
cmpl %r12d, %edx
jle 0x24a7e9
movl 0x4(%rdi,%rax,4), %r11d
movl 0x4(%r10,%rax,4), %ebp
movq 0x8(%rsp), %rcx
movl 0x4(%rcx,%rax,4), %r14d
movl %edx, %r12d
movl %esi, %r15d
movl %eax, %ecx
incq %rax
jmp 0x24a7b5
movq 0x4f07e3(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x37c7ec(%rip), %rsi    # 0x5c6feb
leaq 0x37d085(%rip), %rdx    # 0x5c788b
leaq 0x37cef0(%rip), %rcx    # 0x5c76fd
jmp 0x24a9fa
movq 0x4f07bf(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x37cede(%rip), %rsi    # 0x5c7701
leaq 0x37d061(%rip), %rdx    # 0x5c788b
leaq 0x37cee4(%rip), %rcx    # 0x5c7715
jmp 0x24a9fa
movq 0x4f079b(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x37ced4(%rip), %rsi    # 0x5c771b
leaq 0x37d03d(%rip), %rdx    # 0x5c788b
leaq 0x37cedb(%rip), %rcx    # 0x5c7730
jmp 0x24a9fa
movq 0x4f0777(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x37ceb0(%rip), %rsi    # 0x5c771b
leaq 0x37d019(%rip), %rdx    # 0x5c788b
leaq 0x37cebc(%rip), %rcx    # 0x5c7735
jmp 0x24a9fa
movq 0x4f0753(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x37c75c(%rip), %rsi    # 0x5c6feb
leaq 0x37cff5(%rip), %rdx    # 0x5c788b
leaq 0x37d0a5(%rip), %rcx    # 0x5c7942
jmp 0x24a9fa
orl 0x130(%rsp), %r8d
jne 0x24a8d4
movq 0xc8(%rsp), %rcx
movl (%r13,%rcx,4), %r12d
movl (%rdi,%rcx,4), %r11d
movl (%r10,%rcx,4), %ebp
movq 0x8(%rsp), %rax
movl (%rax,%rcx,4), %r14d
movl %esi, %r15d
movq 0x40(%rsp), %rax
movl %eax, %ecx
pushq $0x1
popq %rax
cmpq %rax, %r9
je 0x24a934
movl (%r13,%rax,4), %edx
movq 0x10(%rbx), %rsi
movq 0x10(%rsi), %rsi
movq (%rsi), %rsi
movl %edx, -0x4(%rsi,%rax,4)
movl (%rdi,%rax,4), %edx
movq 0x10(%rbx), %rsi
movq 0x10(%rsi), %rsi
movq 0x8(%rsi), %rsi
movl %edx, -0x4(%rsi,%rax,4)
movl (%r10,%rax,4), %edx
movq 0x10(%rbx), %rsi
movq 0x10(%rsi), %rsi
movq 0x10(%rsi), %rsi
movl %edx, -0x4(%rsi,%rax,4)
movq 0x8(%rsp), %rdx
movl (%rdx,%rax,4), %edx
movq 0x10(%rbx), %rsi
movq 0x10(%rsi), %rsi
movq 0x18(%rsi), %rsi
movl %edx, -0x4(%rsi,%rax,4)
incq %rax
jmp 0x24a8d7
movl %r12d, (%rbx)
movl %r15d, 0x4(%rbx)
movl %ecx, 0x8(%rbx)
movq 0x10(%rbx), %rax
movl %r11d, (%rax)
movq 0x10(%rbx), %rax
movl %ebp, 0x4(%rax)
movq 0x10(%rbx), %rax
movl %r14d, 0x8(%rax)
movq %rdi, %r14
movq 0x30(%rsp), %rdi
movq %r10, %r15
callq 0x1ab763
movq 0x20(%rsp), %rdi
callq 0x1ab763
movq 0x28(%rsp), %rdi
callq 0x1ab763
movq 0x38(%rsp), %rdi
callq 0x1ab763
movq 0x8(%rsp), %rdi
callq 0x1ab763
movq %r15, %rdi
callq 0x1ab763
movq %r14, %rdi
callq 0x1ab763
movq %r13, %rdi
callq 0x1ab763
movq 0x50(%rsp), %rdi
callq 0x1ab763
movq 0x48(%rsp), %rdi
callq 0x1ab763
jmp 0x24aa03
movq 0x4f0617(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x37c620(%rip), %rsi    # 0x5c6feb
leaq 0x37ceb9(%rip), %rdx    # 0x5c788b
leaq 0x37cd60(%rip), %rcx    # 0x5c7739
jmp 0x24a9fa
movq 0x4f05f6(%rip), %rax    # 0x73afd8
movq (%rax), %rdi
leaq 0x37cd15(%rip), %rsi    # 0x5c7701
leaq 0x37ce98(%rip), %rdx    # 0x5c788b
leaq 0x37cd43(%rip), %rcx    # 0x5c773d
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x19e180
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq