// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sg.c
// Function: parasail_sg_flags_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 F = NULL;
    int s1Len = 0;
    int i = 0;
    int j = 0;
    int score = 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_SQUARE) {
        PARASAIL_CHECK_NULL(_s1);
        PARASAIL_CHECK_GT0(_s1Len);
    }

    /* initialize stack variables */
    s1Len = matrix->type == PARASAIL_MATRIX_TYPE_SQUARE ? _s1Len : matrix->length;
    i = 0;
    j = 0;
    score = NEG_INF_32;
    end_query = s1Len;
    end_ref = 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_SG | PARASAIL_FLAG_NOVEC
        | 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 */
    s2 = parasail_memalign_int(16, s2Len);
    H = parasail_memalign_int(16, s2Len+1);
    F = parasail_memalign_int(16, s2Len+1);

    /* validate heap variables */
    if (!s2) return NULL;
    if (!H) return NULL;
    if (!F) return NULL;

    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        s1 = parasail_memalign_int(16, s1Len);
        if (!s1) 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;
    F[0] = NEG_INF_32;
    
    /* first row */
    if (s2_beg) {
        for (j=1; j<=s2Len; ++j) {
            H[j] = 0;
            F[j] = NEG_INF_32;
        }
    }
    else {
        for (j=1; j<=s2Len; ++j) {
            H[j] = -open -(j-1)*gap;
            F[j] = NEG_INF_32;
        }
    }

    /* 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 WH = s1_beg ? 0 : (-open - (i-1)*gap);
        int E = NEG_INF_32;
        H[0] = WH;
        for (j=1; j<=s2Len; ++j) {
            int H_dag;
            int E_opn;
            int E_ext;
            int F_opn;
            int F_ext;
            int NWH = NH;
            NH = H[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]);
            H[j] = WH;
#ifdef PARASAIL_TABLE
            result->tables->score_table[1LL*(i-1)*s2Len + (j-1)] = WH;
#endif
        }
#ifdef PARASAIL_ROWCOL
        result->rowcols->score_col[i-1] = WH;
#endif
        if (s1_end && WH > score) {
            score = WH;
            end_query = i-1;
            end_ref = s2Len-1;
        }
    }
    {
        /* i == s1Len */
        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 WH = s1_beg ? 0 : -open - (i-1)*gap;
        int E = NEG_INF_32;
        H[0] = WH;
        for (j=1; j<=s2Len; ++j) {
            int H_dag;
            int E_opn;
            int E_ext;
            int F_opn;
            int F_ext;
            int NWH = NH;
            NH = H[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]);
            H[j] = WH;
            if (s1_end && s2_end) {
                if (WH > score) {
                    score = WH;
                    end_query = s1Len-1;
                    end_ref = j-1;
                }
                else if (WH == score && j-1 < end_ref) {
                    end_query = s1Len-1;
                    end_ref = j-1;
                }
            }
            else if (s2_end) {
                if (WH > score) {
                    score = WH;
                    end_query = s1Len-1;
                    end_ref = j-1;
                }
            }
#ifdef PARASAIL_TABLE
            result->tables->score_table[1LL*(i-1)*s2Len + (j-1)] = WH;
#endif
#ifdef PARASAIL_ROWCOL
            result->rowcols->score_row[j-1] = H[j];
#endif
        }
        if ((s1_end && WH > score) || (!s1_end && !s2_end)) {
            score = WH;
            end_query = s1Len-1;
            end_ref = s2Len-1;
        }
#ifdef PARASAIL_ROWCOL
        result->rowcols->score_col[i-1] = WH;
#endif
    }

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

    parasail_free(F);
    parasail_free(H);
    parasail_free(s2);
    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        parasail_free(s1);
    }

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movl 0x30(%rbp), %eax
movl 0x28(%rbp), %eax
movl 0x20(%rbp), %eax
movl 0x18(%rbp), %eax
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl %r8d, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movq $0x0, -0x38(%rbp)
movq $0x0, -0x40(%rbp)
movq $0x0, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
movq $0x0, -0x58(%rbp)
movl $0x0, -0x5c(%rbp)
movl $0x0, -0x60(%rbp)
movl $0x0, -0x64(%rbp)
movl $0x0, -0x68(%rbp)
movl $0x0, -0x6c(%rbp)
movl $0x0, -0x70(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x2acc4d
movq 0xb7a3b7(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3f3c0(%rip), %rsi    # 0xcebfeb
leaq 0xa3fc22(%rip), %rdx    # 0xcec854
leaq 0xa3fac4(%rip), %rcx    # 0xcec6fd
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2ad6d6
jmp 0x2acc4f
jmp 0x2acc51
cmpl $0x0, -0x24(%rbp)
jg 0x2acc8a
movq 0xb7a37a(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3fa99(%rip), %rsi    # 0xcec701
leaq 0xa3fbe5(%rip), %rdx    # 0xcec854
leaq 0xa3fa9f(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2ad6d6
jmp 0x2acc8c
jmp 0x2acc8e
cmpl $0x0, -0x28(%rbp)
jge 0x2accc7
movq 0xb7a33d(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3fa76(%rip), %rsi    # 0xcec71b
leaq 0xa3fba8(%rip), %rdx    # 0xcec854
leaq 0xa3fa7d(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2ad6d6
jmp 0x2accc9
jmp 0x2acccb
cmpl $0x0, -0x2c(%rbp)
jge 0x2acd04
movq 0xb7a300(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3fa39(%rip), %rsi    # 0xcec71b
leaq 0xa3fb6b(%rip), %rdx    # 0xcec854
leaq 0xa3fa45(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2ad6d6
jmp 0x2acd06
jmp 0x2acd08
cmpq $0x0, 0x10(%rbp)
jne 0x2acd42
movq 0xb7a2c2(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3f2cb(%rip), %rsi    # 0xcebfeb
leaq 0xa3fb2d(%rip), %rdx    # 0xcec854
leaq 0xa3fbf7(%rip), %rcx    # 0xcec925
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2ad6d6
jmp 0x2acd44
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2acdcb
jmp 0x2acd50
cmpq $0x0, -0x10(%rbp)
jne 0x2acd8a
movq 0xb7a27a(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3f283(%rip), %rsi    # 0xcebfeb
leaq 0xa3fae5(%rip), %rdx    # 0xcec854
leaq 0xa3f9c3(%rip), %rcx    # 0xcec739
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2ad6d6
jmp 0x2acd8c
jmp 0x2acd8e
cmpl $0x0, -0x14(%rbp)
jg 0x2acdc7
movq 0xb7a23d(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3f95c(%rip), %rsi    # 0xcec701
leaq 0xa3faa8(%rip), %rdx    # 0xcec854
leaq 0xa3f98a(%rip), %rcx    # 0xcec73d
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2ad6d6
jmp 0x2acdc9
jmp 0x2acdcb
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2acde0
movl -0x14(%rbp), %eax
movl %eax, -0xd0(%rbp)
jmp 0x2acded
movq 0x10(%rbp), %rax
movl 0x34(%rax), %eax
movl %eax, -0xd0(%rbp)
movl -0xd0(%rbp), %eax
movl %eax, -0x5c(%rbp)
movl $0x0, -0x60(%rbp)
movl $0x0, -0x64(%rbp)
movl $0xc0000000, -0x68(%rbp) # imm = 0xC0000000
movl -0x5c(%rbp), %eax
movl %eax, -0x6c(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x70(%rbp)
movl -0x5c(%rbp), %edi
movl -0x24(%rbp), %esi
callq 0x1c3af0
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x2ace3a
movq $0x0, -0x8(%rbp)
jmp 0x2ad6d6
movq -0x38(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x1400102, %ecx        # imm = 0x1400102
movl %ecx, 0xc(%rax)
movl 0x18(%rbp), %edx
xorl %ecx, %ecx
movl $0x8, %eax
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq -0x38(%rbp), %rax
orl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movl 0x20(%rbp), %edx
xorl %ecx, %ecx
movl $0x10, %eax
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq -0x38(%rbp), %rax
orl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movl 0x28(%rbp), %edx
xorl %ecx, %ecx
movl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq -0x38(%rbp), %rax
orl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movl 0x30(%rbp), %edx
xorl %ecx, %ecx
movl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq -0x38(%rbp), %rax
orl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movq -0x38(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40000, %ecx          # imm = 0x40000
movl %ecx, 0xc(%rax)
movslq -0x24(%rbp), %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x48(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x50(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x2acf16
movq $0x0, -0x8(%rbp)
jmp 0x2ad6d6
cmpq $0x0, -0x50(%rbp)
jne 0x2acf2a
movq $0x0, -0x8(%rbp)
jmp 0x2ad6d6
cmpq $0x0, -0x58(%rbp)
jne 0x2acf3e
movq $0x0, -0x8(%rbp)
jmp 0x2ad6d6
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2acfac
movslq -0x5c(%rbp), %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x2acf6e
movq $0x0, -0x8(%rbp)
jmp 0x2ad6d6
movl $0x0, -0x60(%rbp)
movl -0x60(%rbp), %eax
cmpl -0x5c(%rbp), %eax
jge 0x2acfaa
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movslq -0x60(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movl (%rax,%rcx,4), %edx
movq -0x40(%rbp), %rax
movslq -0x60(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0x2acf75
jmp 0x2acfac
movl $0x0, -0x64(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x2acfe8
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x20(%rbp), %rcx
movslq -0x64(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movl (%rax,%rcx,4), %edx
movq -0x48(%rbp), %rax
movslq -0x64(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x2acfb3
movq -0x50(%rbp), %rax
movl $0x0, (%rax)
movq -0x58(%rbp), %rax
movl $0xc0000000, (%rax)     # imm = 0xC0000000
cmpl $0x0, 0x28(%rbp)
je 0x2ad03c
movl $0x1, -0x64(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x24(%rbp), %eax
jg 0x2ad03a
movq -0x50(%rbp), %rax
movslq -0x64(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movq -0x58(%rbp), %rax
movslq -0x64(%rbp), %rcx
movl $0xc0000000, (%rax,%rcx,4) # imm = 0xC0000000
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x2ad009
jmp 0x2ad083
movl $0x1, -0x64(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x24(%rbp), %eax
jg 0x2ad081
xorl %edx, %edx
subl -0x28(%rbp), %edx
movl -0x64(%rbp), %eax
subl $0x1, %eax
imull -0x2c(%rbp), %eax
subl %eax, %edx
movq -0x50(%rbp), %rax
movslq -0x64(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x58(%rbp), %rax
movslq -0x64(%rbp), %rcx
movl $0xc0000000, (%rax,%rcx,4) # imm = 0xC0000000
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x2ad043
jmp 0x2ad083
movl $0x1, -0x60(%rbp)
movl -0x60(%rbp), %eax
cmpl -0x5c(%rbp), %eax
jge 0x2ad31c
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2ad0d3
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
movq -0x40(%rbp), %rdx
movl -0x60(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imull (%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0xd8(%rbp)
jmp 0x2ad0fc
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
movl -0x60(%rbp), %edx
subl $0x1, %edx
imull %edx, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x50(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x7c(%rbp)
cmpl $0x0, 0x18(%rbp)
je 0x2ad120
xorl %eax, %eax
movl %eax, -0xdc(%rbp)
jmp 0x2ad137
xorl %eax, %eax
subl -0x28(%rbp), %eax
movl -0x60(%rbp), %ecx
subl $0x1, %ecx
imull -0x2c(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0xdc(%rbp)
movl -0xdc(%rbp), %eax
movl %eax, -0x80(%rbp)
movl $0xc0000000, -0x84(%rbp) # imm = 0xC0000000
movl -0x80(%rbp), %ecx
movq -0x50(%rbp), %rax
movl %ecx, (%rax)
movl $0x1, -0x64(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x24(%rbp), %eax
jg 0x2ad2cb
movl -0x7c(%rbp), %eax
movl %eax, -0x9c(%rbp)
movq -0x50(%rbp), %rax
movslq -0x64(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
subl -0x28(%rbp), %eax
movl %eax, -0x94(%rbp)
movq -0x58(%rbp), %rax
movslq -0x64(%rbp), %rcx
movl (%rax,%rcx,4), %eax
subl -0x2c(%rbp), %eax
movl %eax, -0x98(%rbp)
movl -0x94(%rbp), %eax
cmpl -0x98(%rbp), %eax
jle 0x2ad1b9
movl -0x94(%rbp), %eax
movl %eax, -0xe0(%rbp)
jmp 0x2ad1c5
movl -0x98(%rbp), %eax
movl %eax, -0xe0(%rbp)
movl -0xe0(%rbp), %edx
movq -0x58(%rbp), %rax
movslq -0x64(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x80(%rbp), %eax
subl -0x28(%rbp), %eax
movl %eax, -0x8c(%rbp)
movl -0x84(%rbp), %eax
subl -0x2c(%rbp), %eax
movl %eax, -0x90(%rbp)
movl -0x8c(%rbp), %eax
cmpl -0x90(%rbp), %eax
jle 0x2ad20d
movl -0x8c(%rbp), %eax
movl %eax, -0xe4(%rbp)
jmp 0x2ad219
movl -0x90(%rbp), %eax
movl %eax, -0xe4(%rbp)
movl -0xe4(%rbp), %eax
movl %eax, -0x84(%rbp)
movl -0x9c(%rbp), %eax
movq -0x78(%rbp), %rcx
movq -0x48(%rbp), %rdx
movl -0x64(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
movslq (%rdx,%rsi,4), %rdx
addl (%rcx,%rdx,4), %eax
movl %eax, -0x88(%rbp)
movl -0x88(%rbp), %eax
cmpl -0x84(%rbp), %eax
jle 0x2ad265
movl -0x88(%rbp), %eax
movl %eax, -0xe8(%rbp)
jmp 0x2ad271
movl -0x84(%rbp), %eax
movl %eax, -0xe8(%rbp)
movl -0xe8(%rbp), %eax
movl %eax, -0x80(%rbp)
movl -0x80(%rbp), %eax
movq -0x58(%rbp), %rcx
movslq -0x64(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jle 0x2ad295
movl -0x80(%rbp), %eax
movl %eax, -0xec(%rbp)
jmp 0x2ad2a6
movq -0x58(%rbp), %rax
movslq -0x64(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xec(%rbp)
movl -0xec(%rbp), %eax
movl %eax, -0x80(%rbp)
movl -0x80(%rbp), %edx
movq -0x50(%rbp), %rax
movslq -0x64(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x2ad15a
movl -0x80(%rbp), %edx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movl -0x60(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
cmpl $0x0, 0x20(%rbp)
je 0x2ad30c
movl -0x80(%rbp), %eax
cmpl -0x68(%rbp), %eax
jle 0x2ad30c
movl -0x80(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0x60(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x6c(%rbp)
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x2ad30e
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0x2ad08a
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2ad359
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
movq -0x40(%rbp), %rdx
movl -0x60(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imull (%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0xf8(%rbp)
jmp 0x2ad382
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
movl -0x60(%rbp), %edx
subl $0x1, %edx
imull %edx, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x50(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xac(%rbp)
cmpl $0x0, 0x18(%rbp)
je 0x2ad3ac
xorl %eax, %eax
movl %eax, -0xfc(%rbp)
jmp 0x2ad3c3
xorl %eax, %eax
subl -0x28(%rbp), %eax
movl -0x60(%rbp), %ecx
subl $0x1, %ecx
imull -0x2c(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0xfc(%rbp)
movl -0xfc(%rbp), %eax
movl %eax, -0xb0(%rbp)
movl $0xc0000000, -0xb4(%rbp) # imm = 0xC0000000
movl -0xb0(%rbp), %ecx
movq -0x50(%rbp), %rax
movl %ecx, (%rax)
movl $0x1, -0x64(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x24(%rbp), %eax
jg 0x2ad62d
movl -0xac(%rbp), %eax
movl %eax, -0xcc(%rbp)
movq -0x50(%rbp), %rax
movslq -0x64(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xac(%rbp)
movl -0xac(%rbp), %eax
subl -0x28(%rbp), %eax
movl %eax, -0xc4(%rbp)
movq -0x58(%rbp), %rax
movslq -0x64(%rbp), %rcx
movl (%rax,%rcx,4), %eax
subl -0x2c(%rbp), %eax
movl %eax, -0xc8(%rbp)
movl -0xc4(%rbp), %eax
cmpl -0xc8(%rbp), %eax
jle 0x2ad454
movl -0xc4(%rbp), %eax
movl %eax, -0x100(%rbp)
jmp 0x2ad460
movl -0xc8(%rbp), %eax
movl %eax, -0x100(%rbp)
movl -0x100(%rbp), %edx
movq -0x58(%rbp), %rax
movslq -0x64(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0xb0(%rbp), %eax
subl -0x28(%rbp), %eax
movl %eax, -0xbc(%rbp)
movl -0xb4(%rbp), %eax
subl -0x2c(%rbp), %eax
movl %eax, -0xc0(%rbp)
movl -0xbc(%rbp), %eax
cmpl -0xc0(%rbp), %eax
jle 0x2ad4ab
movl -0xbc(%rbp), %eax
movl %eax, -0x104(%rbp)
jmp 0x2ad4b7
movl -0xc0(%rbp), %eax
movl %eax, -0x104(%rbp)
movl -0x104(%rbp), %eax
movl %eax, -0xb4(%rbp)
movl -0xcc(%rbp), %eax
movq -0xa8(%rbp), %rcx
movq -0x48(%rbp), %rdx
movl -0x64(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
movslq (%rdx,%rsi,4), %rdx
addl (%rcx,%rdx,4), %eax
movl %eax, -0xb8(%rbp)
movl -0xb8(%rbp), %eax
cmpl -0xb4(%rbp), %eax
jle 0x2ad506
movl -0xb8(%rbp), %eax
movl %eax, -0x108(%rbp)
jmp 0x2ad512
movl -0xb4(%rbp), %eax
movl %eax, -0x108(%rbp)
movl -0x108(%rbp), %eax
movl %eax, -0xb0(%rbp)
movl -0xb0(%rbp), %eax
movq -0x58(%rbp), %rcx
movslq -0x64(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jle 0x2ad53f
movl -0xb0(%rbp), %eax
movl %eax, -0x10c(%rbp)
jmp 0x2ad550
movq -0x58(%rbp), %rax
movslq -0x64(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x10c(%rbp)
movl -0x10c(%rbp), %eax
movl %eax, -0xb0(%rbp)
movl -0xb0(%rbp), %edx
movq -0x50(%rbp), %rax
movslq -0x64(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
cmpl $0x0, 0x20(%rbp)
je 0x2ad5cd
cmpl $0x0, 0x30(%rbp)
je 0x2ad5cd
movl -0xb0(%rbp), %eax
cmpl -0x68(%rbp), %eax
jle 0x2ad5a1
movl -0xb0(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0x5c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x6c(%rbp)
movl -0x64(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x2ad5cb
movl -0xb0(%rbp), %eax
cmpl -0x68(%rbp), %eax
jne 0x2ad5c9
movl -0x64(%rbp), %eax
subl $0x1, %eax
cmpl -0x70(%rbp), %eax
jge 0x2ad5c9
movl -0x5c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x6c(%rbp)
movl -0x64(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x2ad5cb
jmp 0x2ad5fd
cmpl $0x0, 0x30(%rbp)
je 0x2ad5fb
movl -0xb0(%rbp), %eax
cmpl -0x68(%rbp), %eax
jle 0x2ad5f9
movl -0xb0(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0x5c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x6c(%rbp)
movl -0x64(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x2ad5fb
jmp 0x2ad5fd
movq -0x50(%rbp), %rax
movslq -0x64(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movl -0x64(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x2ad3ec
cmpl $0x0, 0x20(%rbp)
je 0x2ad63e
movl -0xb0(%rbp), %eax
cmpl -0x68(%rbp), %eax
jg 0x2ad64a
cmpl $0x0, 0x20(%rbp)
jne 0x2ad665
cmpl $0x0, 0x30(%rbp)
jne 0x2ad665
movl -0xb0(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0x5c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x6c(%rbp)
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x70(%rbp)
movl -0xb0(%rbp), %edx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movl -0x60(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
movl -0x68(%rbp), %ecx
movq -0x38(%rbp), %rax
movl %ecx, (%rax)
movl -0x6c(%rbp), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x70(%rbp), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x58(%rbp), %rdi
callq 0x1c3590
movq -0x50(%rbp), %rdi
callq 0x1c3590
movq -0x48(%rbp), %rdi
callq 0x1c3590
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2ad6ce
movq -0x40(%rbp), %rdi
callq 0x1c3590
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw %cs:(%rax,%rax)