// File: /workspace/github_c_makefile_star2_O1/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, 0x30(%rsp)
movl %r8d, 0x2c(%rsp)
testq %rdx, %rdx
je 0x2a642d
movl %ecx, %ebx
testl %ecx, %ecx
jle 0x2a6437
cmpl $0x0, 0x2c(%rsp)
js 0x2a6441
cmpl $0x0, 0x30(%rsp)
js 0x2a644b
movl %esi, %ecx
movq 0x120(%rsp), %rsi
testq %rsi, %rsi
je 0x2a6455
movl 0x30(%rsi), %eax
cmpl $0x1, %eax
jne 0x2a5bc6
testq %rdi, %rdi
jne 0x2a5bd7
callq 0x1a18b8
jmp 0x2a65c4
testq %rdi, %rdi
je 0x2a65b8
testl %ecx, %ecx
jle 0x2a65bf
movq %rdi, 0x70(%rsp)
movq %rdx, 0x50(%rsp)
testl %eax, %eax
je 0x2a5be8
movl 0x34(%rsi), %ecx
movl %ecx, %edi
movl %ebx, %esi
movq %rcx, %r15
callq 0x20985a
testq %rax, %rax
je 0x2a65c4
movq %rbx, %r14
movq %rax, %rbx
movl 0x140(%rsp), %edi
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
movl %edi, 0x98(%rsp)
testl %edi, %edi
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)
movq %r15, 0x40(%rsp)
movslq %r15d, %rsi
movl $0x10, %edi
callq 0x2094bf
movq %rax, %r15
movl %r14d, %esi
movl $0x10, %edi
movq %rsi, 0xd0(%rsp)
callq 0x2094bf
movq %rax, %r12
movq %r14, 0x38(%rsp)
leal 0x1(%r14), %ebp
movl $0x10, %edi
movq %rbp, %rsi
callq 0x2094bf
movq %rax, %r13
movl $0x10, %edi
movq %rbp, %rsi
callq 0x2094bf
movq %rax, 0xb8(%rsp)
movl $0x10, %edi
movq %rbp, %rsi
callq 0x2094bf
movq %rax, 0x20(%rsp)
movl $0x10, %edi
movq %rbp, %rsi
callq 0x2094bf
movq %rax, 0x18(%rsp)
movl $0x10, %edi
movq %rbp, %rsi
callq 0x2094bf
movq %rax, 0x68(%rsp)
movl $0x10, %edi
movq %rbp, %rsi
callq 0x2094bf
movq %rax, 0x60(%rsp)
movl $0x10, %edi
movq %rbp, %rsi
callq 0x2094bf
movq %rax, %r14
movl $0x10, %edi
movq %rbp, %rsi
callq 0x2094bf
movq 0x60(%rsp), %rbp
movq 0x68(%rsp), %r9
movq 0x18(%rsp), %rdi
movq 0xb8(%rsp), %r11
testq %r15, %r15
sete %dl
testq %r12, %r12
sete %cl
orb %dl, %cl
testq %r13, %r13
sete %sil
testq %r11, %r11
sete %dl
orb %sil, %dl
orb %cl, %dl
cmpq $0x0, 0x20(%rsp)
sete %sil
testq %rdi, %rdi
sete %cl
orb %sil, %cl
testq %r9, %r9
sete %sil
orb %cl, %sil
orb %dl, %sil
testq %rbp, %rbp
sete %cl
testq %r14, %r14
sete %dl
orb %cl, %dl
movq %rax, 0x48(%rsp)
testq %rax, %rax
sete %cl
orb %dl, %cl
orb %sil, %cl
testb $0x1, %cl
jne 0x2a65c4
movq %r14, %r10
movq 0x40(%rsp), %rdi
testl %edi, %edi
movq 0x120(%rsp), %r8
movq 0x70(%rsp), %r14
jle 0x2a5dce
movq 0x10(%r8), %rax
movl %edi, %ecx
xorl %edx, %edx
movzbl (%r14,%rdx), %esi
movl (%rax,%rsi,4), %esi
movl %esi, (%r15,%rdx,4)
incq %rdx
cmpq %rdx, %rcx
jne 0x2a5dba
leal -0x1(%rdi), %eax
movl %eax, 0x14(%rsp)
movq 0x38(%rsp), %rdx
leal -0x1(%rdx), %eax
movl %eax, 0x28(%rsp)
movq 0x10(%r8), %rcx
cmpl $0x2, %edx
movl $0x1, %eax
cmovgel %edx, %eax
xorl %edx, %edx
movq 0x50(%rsp), %r8
movzbl (%r8,%rdx), %esi
movl (%rcx,%rsi,4), %esi
movl %esi, (%r12,%rdx,4)
incq %rdx
cmpq %rdx, %rax
jne 0x2a5df7
xorl %ecx, %ecx
movl %ecx, (%r13)
movl %ecx, (%r11)
movq 0x20(%rsp), %rdx
movl %ecx, (%rdx)
movq 0x18(%rsp), %rdx
movl %ecx, (%rdx)
movl $0xc0000000, (%r9)      # imm = 0xC0000000
movl %ecx, (%rbp)
movl %ecx, (%r10)
movq 0x48(%rsp), %rdx
movl %ecx, (%rdx)
cmpl $0x0, 0x138(%rsp)
je 0x2a5e89
shlq $0x2, %rax
xorl %edx, %edx
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdi
movq 0x48(%rsp), %r8
movl %ecx, 0x4(%r13,%rdx)
movl %ecx, 0x4(%r11,%rdx)
movl %ecx, 0x4(%rsi,%rdx)
movl %ecx, 0x4(%rdi,%rdx)
movl $0xc0000000, 0x4(%r9,%rdx) # imm = 0xC0000000
movl %ecx, 0x4(%rbp,%rdx)
movl %ecx, 0x4(%r10,%rdx)
movl %ecx, 0x4(%r8,%rdx)
addq $0x4, %rdx
cmpq %rdx, %rax
jne 0x2a5e55
jmp 0x2a5edb
movl 0x2c(%rsp), %edx
negl %edx
shlq $0x2, %rax
xorl %esi, %esi
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %r8
movq 0x48(%rsp), %r14
movl %edx, 0x4(%r13,%rsi)
movl %ecx, 0x4(%r11,%rsi)
movl %ecx, 0x4(%rdi,%rsi)
movl %ecx, 0x4(%r8,%rsi)
movl $0xc0000000, 0x4(%r9,%rsi) # imm = 0xC0000000
movl %ecx, 0x4(%rbp,%rsi)
movl %ecx, 0x4(%r10,%rsi)
movl %ecx, 0x4(%r14,%rsi)
subl 0x30(%rsp), %edx
addq $0x4, %rsi
cmpq %rsi, %rax
jne 0x2a5ea4
movq 0x40(%rsp), %rcx
testl %ecx, %ecx
movq %r10, 0x80(%rsp)
movq 0x120(%rsp), %rdi
jle 0x2a62d0
movq 0x38(%rsp), %rax
cmpl $0x2, %eax
movl $0x1, %edx
cmovgel %eax, %edx
incl %ecx
movq %rcx, 0x40(%rsp)
shlq $0x2, %rdx
movq %rdx, 0xd8(%rsp)
movl $0xc0000000, 0xc(%rsp)  # imm = 0xC0000000
movl $0x1, %r8d
movl 0x14(%rsp), %eax
movl %eax, 0x4(%rsp)
movl $0xc0000000, 0x8(%rsp)  # imm = 0xC0000000
movl $0xc0000000, 0x10(%rsp) # imm = 0xC0000000
movl $0xc0000000, %r9d       # imm = 0xC0000000
movq %rbx, 0xc0(%rsp)
movq %r15, 0xc8(%rsp)
movq %r12, 0x90(%rsp)
movq 0x20(%rsp), %rdx
movq 0x18(%rsp), %r14
movq %r13, 0xe0(%rsp)
cmpl $0x0, 0x30(%rdi)
movl %r9d, 0x34(%rsp)
je 0x2a5f86
movslq 0x18(%rdi), %rax
leaq -0x1(%r8), %rcx
jmp 0x2a5f8f
movslq 0x18(%rdi), %rax
movslq -0x4(%r15,%r8,4), %rcx
imulq %rax, %rcx
shlq $0x2, %rcx
addq 0x8(%rdi), %rcx
movq %rcx, 0x88(%rsp)
movl $0x1, %r10d
movq %r8, 0x78(%rsp)
subl %r8d, %r10d
imull 0x30(%rsp), %r10d
subl 0x2c(%rsp), %r10d
xorl %edi, %edi
cmpl $0x0, 0x128(%rsp)
movl (%r13), %esi
movl (%r11), %r15d
movl (%rdx), %r8d
cmovnel %edi, %r10d
movl (%r14), %eax
movl %eax, 0x50(%rsp)
movl %r10d, (%r13)
movl %edi, (%r11)
movl %edi, (%rdx)
movl %edi, (%r14)
movl $0xc0000000, 0x70(%rsp) # imm = 0xC0000000
xorl %eax, %eax
xorl %ebx, %ebx
xorl %r12d, %r12d
xorl %ebp, %ebp
xorl %ecx, %ecx
xorl %r9d, %r9d
movl %r12d, 0xa8(%rsp)
movl %ebx, 0xac(%rsp)
movl %eax, 0xb0(%rsp)
movl %ecx, 0xb4(%rsp)
movl %ebp, %ecx
movl %esi, %ebp
movl %r15d, 0xa4(%rsp)
movl %r8d, 0xa0(%rsp)
movl 0x50(%rsp), %eax
movl %eax, 0x9c(%rsp)
movl 0x4(%r13,%rdi), %r13d
movq %r11, %rbx
movl 0x4(%r11,%rdi), %eax
movl 0x4(%rdx,%rdi), %r8d
movl %r13d, 0x5c(%rsp)
movl 0x2c(%rsp), %esi
subl %esi, %r13d
movq 0x68(%rsp), %rdx
movl 0x4(%rdx,%rdi), %r11d
movq %r14, %r15
movl 0x30(%rsp), %r14d
subl %r14d, %r11d
cmpl %r11d, %r13d
movl %r11d, %r12d
cmovgl %r13d, %r12d
movl 0x4(%r15,%rdi), %r15d
movl %r15d, 0x50(%rsp)
movl %r12d, 0x4(%rdx,%rdi)
movl %r10d, %edx
subl %esi, %edx
movl 0x70(%rsp), %esi
subl %r14d, %esi
movl %edx, %r15d
cmpl %esi, %edx
jg 0x2a609b
movl %esi, %r15d
movq 0x90(%rsp), %r10
movslq (%r10,%rdi), %r10
movq 0x88(%rsp), %r14
addl (%r14,%r10,4), %ebp
cmpl %r15d, %ebp
movl %r15d, 0x70(%rsp)
movl %r15d, %r10d
cmovgl %ebp, %r10d
cmpl %r12d, %r10d
jg 0x2a60ca
movl %r12d, %r10d
cmpl %r11d, %r13d
movq 0x48(%rsp), %r12
movl %ecx, %r14d
movl %r9d, %ecx
movl %eax, %r15d
jle 0x2a60fd
movq 0x60(%rsp), %r11
movl %r15d, 0x4(%r11,%rdi)
movq 0x80(%rsp), %r11
movl %r8d, 0x4(%r11,%rdi)
movl 0x50(%rsp), %eax
movl %eax, 0x4(%r12,%rdi)
movl 0x4(%r12,%rdi), %r13d
incl %r13d
movl %r13d, 0x4(%r12,%rdi)
cmpl %esi, %edx
movq %rbx, %r11
movl 0xb4(%rsp), %r9d
jg 0x2a6130
movl 0xa8(%rsp), %ecx
movl 0xac(%rsp), %r9d
movl 0xb0(%rsp), %r14d
movl %r9d, %ebx
movl %ecx, %r12d
movl %r14d, %eax
incl %eax
cmpl %ebp, %r10d
jne 0x2a61a1
movq 0x90(%rsp), %rcx
movslq (%rcx,%rdi), %rcx
xorl %edx, %edx
movq 0xc8(%rsp), %rsi
movq 0x78(%rsp), %r9
cmpl %ecx, -0x4(%rsi,%r9,4)
sete %dl
movl 0xa4(%rsp), %r9d
addl %edx, %r9d
xorl %edx, %edx
movq 0x88(%rsp), %rsi
cmpl $0x0, (%rsi,%rcx,4)
setg %dl
movl 0xa0(%rsp), %ecx
addl %edx, %ecx
movl 0x9c(%rsp), %ebp
incl %ebp
movq 0x20(%rsp), %rdx
movq 0x18(%rsp), %r14
movl 0x5c(%rsp), %esi
jmp 0x2a61db
movl %r12d, %r9d
movl %ebx, %ecx
movl %eax, %ebp
movq 0x68(%rsp), %rdx
cmpl 0x4(%rdx,%rdi), %r10d
movq 0x20(%rsp), %rdx
movq 0x18(%rsp), %r14
movl 0x5c(%rsp), %esi
jne 0x2a61db
movq 0x60(%rsp), %rcx
movl 0x4(%rcx,%rdi), %r9d
movq 0x80(%rsp), %rcx
movl 0x4(%rcx,%rdi), %ecx
movl %r13d, %ebp
movq 0xe0(%rsp), %r13
movl %r10d, 0x4(%r13,%rdi)
movl %r9d, 0x4(%r11,%rdi)
movl %ecx, 0x4(%rdx,%rdi)
movl %ebp, 0x4(%r14,%rdi)
addq $0x4, %rdi
cmpq %rdi, 0xd8(%rsp)
jne 0x2a5ffd
cmpl $0x0, 0x130(%rsp)
je 0x2a624f
cmpl 0x34(%rsp), %r10d
movq 0xc0(%rsp), %rbx
movq 0x40(%rsp), %rsi
movq 0x120(%rsp), %rdi
movq 0x78(%rsp), %r8
jle 0x2a6269
leal -0x1(%r8), %eax
movl %eax, 0x4(%rsp)
movl %r10d, 0x34(%rsp)
movl %r9d, 0x10(%rsp)
movl %ecx, 0x8(%rsp)
movl %ebp, 0xc(%rsp)
jmp 0x2a6269
movq 0xc0(%rsp), %rbx
movq 0x40(%rsp), %rsi
movq 0x120(%rsp), %rdi
movq 0x78(%rsp), %r8
movq 0x10(%rbx), %rax
movq 0x10(%rax), %rax
movq 0x20(%rax), %rax
movl %r10d, -0x4(%rax,%r8,4)
movq 0x10(%rbx), %rax
movq 0x10(%rax), %rax
movq 0x28(%rax), %rax
movl %r9d, -0x4(%rax,%r8,4)
movq 0x10(%rbx), %rax
movq 0x10(%rax), %rax
movq 0x30(%rax), %rax
movl %ecx, -0x4(%rax,%r8,4)
movq 0x10(%rbx), %rax
movq 0x10(%rax), %rax
movq 0x38(%rax), %rax
movl %ebp, -0x4(%rax,%r8,4)
incq %r8
cmpq %rsi, %r8
movq 0xc8(%rsp), %r15
movq 0x90(%rsp), %r12
movl 0x34(%rsp), %r9d
jne 0x2a5f71
jmp 0x2a62f6
movl $0xc0000000, %r9d       # imm = 0xC0000000
movl $0xc0000000, 0x10(%rsp) # imm = 0xC0000000
movl $0xc0000000, 0x8(%rsp)  # imm = 0xC0000000
movl $0xc0000000, 0xc(%rsp)  # imm = 0xC0000000
movl 0x14(%rsp), %eax
movl %eax, 0x4(%rsp)
movl 0x140(%rsp), %edx
testl %edx, %edx
sete %al
cmpl $0x0, 0x130(%rsp)
sete %cl
orb %al, %cl
jne 0x2a63ca
movq 0x38(%rsp), %rax
cmpl $0x2, %eax
movl $0x1, %ecx
cmovgel %eax, %ecx
movl $0x1, %eax
xorl %edi, %edi
movl 0x28(%rsp), %edx
movq %rdi, %r8
incq %rdi
movl 0x4(%r13,%r8,4), %esi
cmpl %r9d, %esi
jle 0x2a6372
movl 0x4(%r11,%r8,4), %edx
movl %edx, 0x10(%rsp)
movq 0x20(%rsp), %rdx
movl 0x4(%rdx,%r8,4), %edx
movl %edx, 0x8(%rsp)
movq 0x18(%rsp), %rdx
movl 0x4(%rdx,%r8,4), %edx
movl %edx, 0xc(%rsp)
movl 0x14(%rsp), %edx
movl %edx, 0x4(%rsp)
movl %r8d, %edx
jmp 0x2a63b6
jne 0x2a63b3
movslq %edx, %rsi
cmpq %rsi, %rdi
jg 0x2a63b3
leal -0x1(%rax), %edx
movl 0x4(%r11,%r8,4), %esi
movl %esi, 0x10(%rsp)
movq 0x20(%rsp), %rsi
movl 0x4(%rsi,%r8,4), %esi
movl %esi, 0x8(%rsp)
movq 0x18(%rsp), %rsi
movl 0x4(%rsi,%r8,4), %esi
movl %esi, 0xc(%rsp)
movl %r9d, %esi
movl 0x14(%rsp), %r8d
movl %r8d, 0x4(%rsp)
jmp 0x2a63b6
movl %r9d, %esi
incq %rax
movl %esi, %r9d
cmpq %rdi, %rcx
jne 0x2a6330
jmp 0x2a6466
testl %edx, %edx
je 0x2a645f
movq 0x38(%rsp), %rcx
cmpl $0x2, %ecx
movl $0x1, %eax
cmovgel %ecx, %eax
xorl %ecx, %ecx
movl 0x28(%rsp), %edx
movl %r9d, %esi
movl 0x4(%r13,%rcx,4), %edi
cmpl %esi, %edi
jle 0x2a6423
movl 0x4(%r11,%rcx,4), %edx
movl %edx, 0x10(%rsp)
movq 0x20(%rsp), %rdx
movl 0x4(%rdx,%rcx,4), %edx
movl %edx, 0x8(%rsp)
movq 0x18(%rsp), %rdx
movl 0x4(%rdx,%rcx,4), %edx
movl %edx, 0xc(%rsp)
movl %edi, %esi
movl 0x14(%rsp), %edx
movl %edx, 0x4(%rsp)
movl %ecx, %edx
incq %rcx
cmpq %rcx, %rax
jne 0x2a63eb
jmp 0x2a6466
callq 0x1a196f
jmp 0x2a65c4
callq 0x1a1949
jmp 0x2a65c4
callq 0x1a1923
jmp 0x2a65c4
callq 0x1a18fd
jmp 0x2a65c4
callq 0x1a18d7
jmp 0x2a65c4
movl %r9d, %esi
movl 0x28(%rsp), %edx
movl 0x130(%rsp), %eax
orl %eax, 0x98(%rsp)
jne 0x2a64af
movq 0xd0(%rsp), %rcx
movl (%r13,%rcx,4), %esi
movl (%r11,%rcx,4), %eax
movl %eax, 0x10(%rsp)
movq 0x20(%rsp), %rax
movl (%rax,%rcx,4), %eax
movl %eax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movl (%rax,%rcx,4), %eax
movl %eax, 0xc(%rsp)
movl 0x14(%rsp), %eax
movl %eax, 0x4(%rsp)
movl 0x28(%rsp), %edx
movq 0x38(%rsp), %rcx
cmpl $0x2, %ecx
movl $0x1, %eax
cmovgel %ecx, %eax
shlq $0x2, %rax
xorl %ecx, %ecx
movq 0x20(%rsp), %rbp
movq 0x18(%rsp), %r14
movl 0x4(%r13,%rcx), %edi
movq 0x10(%rbx), %r8
movq 0x10(%r8), %r8
movq (%r8), %r8
movl %edi, (%r8,%rcx)
movl 0x4(%r11,%rcx), %edi
movq 0x10(%rbx), %r8
movq 0x10(%r8), %r8
movq 0x8(%r8), %r8
movl %edi, (%r8,%rcx)
movl 0x4(%rbp,%rcx), %edi
movq 0x10(%rbx), %r8
movq 0x10(%r8), %r8
movq 0x10(%r8), %r8
movl %edi, (%r8,%rcx)
movl 0x4(%r14,%rcx), %edi
movq 0x10(%rbx), %r8
movq 0x10(%r8), %r8
movq 0x18(%r8), %r8
movl %edi, (%r8,%rcx)
addq $0x4, %rcx
cmpq %rcx, %rax
jne 0x2a64cf
movl %esi, (%rbx)
movl 0x4(%rsp), %eax
movl %eax, 0x4(%rbx)
movl %edx, 0x8(%rbx)
movq 0x10(%rbx), %rax
movl 0x10(%rsp), %ecx
movl %ecx, (%rax)
movq 0x10(%rbx), %rax
movl 0x8(%rsp), %ecx
movl %ecx, 0x4(%rax)
movq 0x10(%rbx), %rax
movl 0xc(%rsp), %ecx
movl %ecx, 0x8(%rax)
movq 0x48(%rsp), %rdi
callq 0x2094b5
movq 0x80(%rsp), %rdi
callq 0x2094b5
movq 0x60(%rsp), %rdi
callq 0x2094b5
movq 0x68(%rsp), %rdi
callq 0x2094b5
movq %r14, %rdi
callq 0x2094b5
movq %rbp, %rdi
callq 0x2094b5
movq 0xb8(%rsp), %rdi
callq 0x2094b5
movq %r13, %rdi
callq 0x2094b5
movq %r12, %rdi
callq 0x2094b5
movq %r15, %rdi
callq 0x2094b5
jmp 0x2a65c6
callq 0x1a1892
jmp 0x2a65c4
callq 0x1a186c
xorl %ebx, %ebx
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq