// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sg_scan.c
// Function: parasail_sg_flags_rowcol_scan
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 HB = NULL;
    int * restrict H = NULL;
    int * restrict E = NULL;
    int * restrict HtB = NULL;
    int * restrict Ht = 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_SCAN
        | 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);
    HB = parasail_memalign_int(16, s1Len+1);
    H  = HB+1;
    E  = parasail_memalign_int(16, s1Len);
    HtB= parasail_memalign_int(16, s1Len+1);
    Ht = HtB+1;

    /* validate heap variables */
    if (!s2) return NULL;
    if (!HB) return NULL;
    if (!E) return NULL;
    if (!HtB) 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]];
    }

    /* initialize H */
    H[-1] = 0;
    Ht[-1] = 0;
    if (s1_beg) {
        for (i=0; i<s1Len; ++i) {
            H[i] = 0;
        }
    }
    else {
        for (i=0; i<s1Len; ++i) {
            H[i] = -open -i*gap;
        }
    }

    /* initialize E */
    for (i=0; i<s1Len; ++i) {
        E[i] = NEG_INF_32;
    }

    /* iterate over database */
    for (j=0; j<s2Len-1; ++j) {
        int Ft = NEG_INF_32;
        /* calculate E */
        for (i=0; i<s1Len; ++i) {
            E[i] = MAX(E[i]-gap, H[i]-open);
        }
        /* calculate Ht */
        for (i=0; i<s1Len; ++i) {
            int matval = matrix->type == PARASAIL_MATRIX_TYPE_SQUARE ?
                         matrix->matrix[matrix->size*s1[i]+s2[j]] :
                         matrix->matrix[matrix->size*i+s2[j]];
            Ht[i] = MAX(H[i-1]+matval, E[i]);
        }
        Ht[-1] = s2_beg ? 0 : (-open -j*gap);
        /* calculate H */
        for (i=0; i<s1Len; ++i) {
            int Ft_opn;
            int Ht_pre = Ht[i-1];
            int Ft_ext = Ft-gap;
            if (Ht_pre >= Ft_ext) {
                Ft = Ht_pre;
            }
            else {
                Ft = Ft_ext;
            }
            Ft_opn = Ft-open;
            H[i] = MAX(Ht[i], Ft_opn);
#ifdef PARASAIL_TABLE
            result->tables->score_table[i*s2Len + j] = H[i];
#endif
        }
        H[-1] = s2_beg ? 0 : (-open - j*gap);
#ifdef PARASAIL_ROWCOL
        result->rowcols->score_row[j] = H[s1Len-1];
#endif
        if (s2_end && H[s1Len-1] > score) {
            score = H[s1Len-1];
            end_query = s1Len-1;
            end_ref = j;
        }
    }
    j = s2Len - 1;
    {
        int Ft = NEG_INF_32;
        /* calculate E */
        for (i=0; i<s1Len; ++i) {
            E[i] = MAX(E[i]-gap, H[i]-open);
        }
        /* calculate Ht */
        for (i=0; i<s1Len; ++i) {
            int matval = matrix->type == PARASAIL_MATRIX_TYPE_SQUARE ?
                         matrix->matrix[matrix->size*s1[i]+s2[j]] :
                         matrix->matrix[matrix->size*i+s2[j]];
            Ht[i] = MAX(H[i-1]+matval, E[i]);
        }
        Ht[-1] = s2_beg ? 0 : (-open -j*gap);
        /* calculate H */
        for (i=0; i<s1Len; ++i) {
            int Ft_opn;
            int Ht_pre = Ht[i-1];
            int Ft_ext = Ft-gap;
            if (Ht_pre >= Ft_ext) {
                Ft = Ht_pre;
            }
            else {
                Ft = Ft_ext;
            }
            Ft_opn = Ft-open;
            H[i] = MAX(Ht[i], Ft_opn);
#ifdef PARASAIL_TABLE
            result->tables->score_table[i*s2Len + j] = H[i];
#endif
#ifdef PARASAIL_ROWCOL
            result->rowcols->score_col[i] = H[i];
#endif
            if (s1_end && H[i] > score) {
                score = H[i];
                end_query = i;
                end_ref = j;
            }
        }
#ifdef PARASAIL_ROWCOL
        result->rowcols->score_row[j] = H[s1Len-1];
#endif
    }
    if (s2_end && H[s1Len-1] > score) {
        score = H[s1Len-1];
        end_query = s1Len-1;
        end_ref = s2Len-1;
    }
    if (!s1_end && !s2_end) {
        score = H[s1Len-1];
        end_query = s1Len-1;
        end_ref = s2Len-1;
    }

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

    parasail_free(HtB);
    parasail_free(E);
    parasail_free(HB);
    parasail_free(s2);
    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        parasail_free(s1);
    }

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
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)
movq $0x0, -0x60(%rbp)
movq $0x0, -0x68(%rbp)
movq $0x0, -0x70(%rbp)
movl $0x0, -0x74(%rbp)
movl $0x0, -0x78(%rbp)
movl $0x0, -0x7c(%rbp)
movl $0x0, -0x80(%rbp)
movl $0x0, -0x84(%rbp)
movl $0x0, -0x88(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x2aec0b
movq 0xb783f9(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3d402(%rip), %rsi    # 0xcebfeb
leaq 0xa3dc7d(%rip), %rdx    # 0xcec86d
leaq 0xa3db06(%rip), %rcx    # 0xcec6fd
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2af77d
jmp 0x2aec0d
jmp 0x2aec0f
cmpl $0x0, -0x24(%rbp)
jg 0x2aec48
movq 0xb783bc(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3dadb(%rip), %rsi    # 0xcec701
leaq 0xa3dc40(%rip), %rdx    # 0xcec86d
leaq 0xa3dae1(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2af77d
jmp 0x2aec4a
jmp 0x2aec4c
cmpl $0x0, -0x28(%rbp)
jge 0x2aec85
movq 0xb7837f(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3dab8(%rip), %rsi    # 0xcec71b
leaq 0xa3dc03(%rip), %rdx    # 0xcec86d
leaq 0xa3dabf(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2af77d
jmp 0x2aec87
jmp 0x2aec89
cmpl $0x0, -0x2c(%rbp)
jge 0x2aecc2
movq 0xb78342(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3da7b(%rip), %rsi    # 0xcec71b
leaq 0xa3dbc6(%rip), %rdx    # 0xcec86d
leaq 0xa3da87(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2af77d
jmp 0x2aecc4
jmp 0x2aecc6
cmpq $0x0, 0x10(%rbp)
jne 0x2aed00
movq 0xb78304(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3d30d(%rip), %rsi    # 0xcebfeb
leaq 0xa3db88(%rip), %rdx    # 0xcec86d
leaq 0xa3dc39(%rip), %rcx    # 0xcec925
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2af77d
jmp 0x2aed02
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2aed89
jmp 0x2aed0e
cmpq $0x0, -0x10(%rbp)
jne 0x2aed48
movq 0xb782bc(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3d2c5(%rip), %rsi    # 0xcebfeb
leaq 0xa3db40(%rip), %rdx    # 0xcec86d
leaq 0xa3da05(%rip), %rcx    # 0xcec739
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2af77d
jmp 0x2aed4a
jmp 0x2aed4c
cmpl $0x0, -0x14(%rbp)
jg 0x2aed85
movq 0xb7827f(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3d99e(%rip), %rsi    # 0xcec701
leaq 0xa3db03(%rip), %rdx    # 0xcec86d
leaq 0xa3d9cc(%rip), %rcx    # 0xcec73d
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2af77d
jmp 0x2aed87
jmp 0x2aed89
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2aed9e
movl -0x14(%rbp), %eax
movl %eax, -0xb4(%rbp)
jmp 0x2aedab
movq 0x10(%rbp), %rax
movl 0x34(%rax), %eax
movl %eax, -0xb4(%rbp)
movl -0xb4(%rbp), %eax
movl %eax, -0x74(%rbp)
movl $0x0, -0x78(%rbp)
movl $0x0, -0x7c(%rbp)
movl $0xc0000000, -0x80(%rbp) # imm = 0xC0000000
movl -0x74(%rbp), %eax
movl %eax, -0x84(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x88(%rbp)
movl -0x74(%rbp), %edi
movl -0x24(%rbp), %esi
callq 0x1c3af0
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x2aedfe
movq $0x0, -0x8(%rbp)
jmp 0x2af77d
movq -0x38(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x1400202, %ecx        # imm = 0x1400202
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 -0x74(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x58(%rbp)
movslq -0x74(%rbp), %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x60(%rbp)
movl -0x74(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x2aef04
movq $0x0, -0x8(%rbp)
jmp 0x2af77d
cmpq $0x0, -0x50(%rbp)
jne 0x2aef18
movq $0x0, -0x8(%rbp)
jmp 0x2af77d
cmpq $0x0, -0x60(%rbp)
jne 0x2aef2c
movq $0x0, -0x8(%rbp)
jmp 0x2af77d
cmpq $0x0, -0x68(%rbp)
jne 0x2aef40
movq $0x0, -0x8(%rbp)
jmp 0x2af77d
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2aefae
movslq -0x74(%rbp), %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x2aef70
movq $0x0, -0x8(%rbp)
jmp 0x2af77d
movl $0x0, -0x78(%rbp)
movl -0x78(%rbp), %eax
cmpl -0x74(%rbp), %eax
jge 0x2aefac
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movslq -0x78(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movl (%rax,%rcx,4), %edx
movq -0x40(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x78(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x78(%rbp)
jmp 0x2aef77
jmp 0x2aefae
movl $0x0, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x2aefea
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x20(%rbp), %rcx
movslq -0x7c(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movl (%rax,%rcx,4), %edx
movq -0x48(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x2aefb5
movq -0x58(%rbp), %rax
movl $0x0, -0x4(%rax)
movq -0x70(%rbp), %rax
movl $0x0, -0x4(%rax)
cmpl $0x0, 0x18(%rbp)
je 0x2af031
movl $0x0, -0x78(%rbp)
movl -0x78(%rbp), %eax
cmpl -0x74(%rbp), %eax
jge 0x2af02f
movq -0x58(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x78(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x78(%rbp)
jmp 0x2af00d
jmp 0x2af066
movl $0x0, -0x78(%rbp)
movl -0x78(%rbp), %eax
cmpl -0x74(%rbp), %eax
jge 0x2af064
xorl %edx, %edx
subl -0x28(%rbp), %edx
movl -0x78(%rbp), %eax
imull -0x2c(%rbp), %eax
subl %eax, %edx
movq -0x58(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x78(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x78(%rbp)
jmp 0x2af038
jmp 0x2af066
movl $0x0, -0x78(%rbp)
movl -0x78(%rbp), %eax
cmpl -0x74(%rbp), %eax
jge 0x2af08f
movq -0x60(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl $0xc0000000, (%rax,%rcx,4) # imm = 0xC0000000
movl -0x78(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x78(%rbp)
jmp 0x2af06d
movl $0x0, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x2af3b5
movl $0xc0000000, -0x8c(%rbp) # imm = 0xC0000000
movl $0x0, -0x78(%rbp)
movl -0x78(%rbp), %eax
cmpl -0x74(%rbp), %eax
jge 0x2af126
movq -0x60(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl (%rax,%rcx,4), %eax
subl -0x2c(%rbp), %eax
movq -0x58(%rbp), %rcx
movslq -0x78(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
subl -0x28(%rbp), %ecx
cmpl %ecx, %eax
jle 0x2af0f6
movq -0x60(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl (%rax,%rcx,4), %eax
subl -0x2c(%rbp), %eax
movl %eax, -0xb8(%rbp)
jmp 0x2af10a
movq -0x58(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl (%rax,%rcx,4), %eax
subl -0x28(%rbp), %eax
movl %eax, -0xb8(%rbp)
movl -0xb8(%rbp), %edx
movq -0x60(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x78(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x78(%rbp)
jmp 0x2af0b8
movl $0x0, -0x78(%rbp)
movl -0x78(%rbp), %eax
cmpl -0x74(%rbp), %eax
jge 0x2af21e
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2af177
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
movq -0x40(%rbp), %rdx
movslq -0x78(%rbp), %rsi
imull (%rdx,%rsi,4), %ecx
movq -0x48(%rbp), %rdx
movslq -0x7c(%rbp), %rsi
addl (%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xbc(%rbp)
jmp 0x2af1a1
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
imull -0x78(%rbp), %ecx
movq -0x48(%rbp), %rdx
movslq -0x7c(%rbp), %rsi
addl (%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xbc(%rbp)
movl -0xbc(%rbp), %eax
movl %eax, -0x90(%rbp)
movq -0x58(%rbp), %rax
movl -0x78(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
addl -0x90(%rbp), %eax
movq -0x60(%rbp), %rcx
movslq -0x78(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jle 0x2af1ee
movq -0x58(%rbp), %rax
movl -0x78(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
addl -0x90(%rbp), %eax
movl %eax, -0xc0(%rbp)
jmp 0x2af1ff
movq -0x60(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xc0(%rbp)
movl -0xc0(%rbp), %edx
movq -0x70(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x78(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x78(%rbp)
jmp 0x2af12d
cmpl $0x0, 0x28(%rbp)
je 0x2af22e
xorl %eax, %eax
movl %eax, -0xc4(%rbp)
jmp 0x2af242
xorl %eax, %eax
subl -0x28(%rbp), %eax
movl -0x7c(%rbp), %ecx
imull -0x2c(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0xc4(%rbp)
movl -0xc4(%rbp), %ecx
movq -0x70(%rbp), %rax
movl %ecx, -0x4(%rax)
movl $0x0, -0x78(%rbp)
movl -0x78(%rbp), %eax
cmpl -0x74(%rbp), %eax
jge 0x2af30f
movq -0x70(%rbp), %rax
movl -0x78(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x98(%rbp)
movl -0x8c(%rbp), %eax
subl -0x2c(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0x98(%rbp), %eax
cmpl -0x9c(%rbp), %eax
jl 0x2af2a3
movl -0x98(%rbp), %eax
movl %eax, -0x8c(%rbp)
jmp 0x2af2af
movl -0x9c(%rbp), %eax
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %eax
subl -0x28(%rbp), %eax
movl %eax, -0x94(%rbp)
movq -0x70(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -0x94(%rbp), %eax
jle 0x2af2e4
movq -0x70(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xc8(%rbp)
jmp 0x2af2f0
movl -0x94(%rbp), %eax
movl %eax, -0xc8(%rbp)
movl -0xc8(%rbp), %edx
movq -0x58(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x78(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x78(%rbp)
jmp 0x2af256
cmpl $0x0, 0x28(%rbp)
je 0x2af31f
xorl %eax, %eax
movl %eax, -0xcc(%rbp)
jmp 0x2af333
xorl %eax, %eax
subl -0x28(%rbp), %eax
movl -0x7c(%rbp), %ecx
imull -0x2c(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0xcc(%rbp)
movl -0xcc(%rbp), %ecx
movq -0x58(%rbp), %rax
movl %ecx, -0x4(%rax)
movq -0x58(%rbp), %rax
movl -0x74(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movslq -0x7c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
cmpl $0x0, 0x30(%rbp)
je 0x2af3a5
movq -0x58(%rbp), %rax
movl -0x74(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
cmpl -0x80(%rbp), %eax
jle 0x2af3a5
movq -0x58(%rbp), %rax
movl -0x74(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x80(%rbp)
movl -0x74(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x84(%rbp)
movl -0x7c(%rbp), %eax
movl %eax, -0x88(%rbp)
jmp 0x2af3a7
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x2af096
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x7c(%rbp)
movl $0xc0000000, -0xa0(%rbp) # imm = 0xC0000000
movl $0x0, -0x78(%rbp)
movl -0x78(%rbp), %eax
cmpl -0x74(%rbp), %eax
jge 0x2af43d
movq -0x60(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl (%rax,%rcx,4), %eax
subl -0x2c(%rbp), %eax
movq -0x58(%rbp), %rcx
movslq -0x78(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
subl -0x28(%rbp), %ecx
cmpl %ecx, %eax
jle 0x2af40d
movq -0x60(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl (%rax,%rcx,4), %eax
subl -0x2c(%rbp), %eax
movl %eax, -0xd0(%rbp)
jmp 0x2af421
movq -0x58(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl (%rax,%rcx,4), %eax
subl -0x28(%rbp), %eax
movl %eax, -0xd0(%rbp)
movl -0xd0(%rbp), %edx
movq -0x60(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x78(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x78(%rbp)
jmp 0x2af3cf
movl $0x0, -0x78(%rbp)
movl -0x78(%rbp), %eax
cmpl -0x74(%rbp), %eax
jge 0x2af535
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2af48e
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
movq -0x40(%rbp), %rdx
movslq -0x78(%rbp), %rsi
imull (%rdx,%rsi,4), %ecx
movq -0x48(%rbp), %rdx
movslq -0x7c(%rbp), %rsi
addl (%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xd4(%rbp)
jmp 0x2af4b8
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
imull -0x78(%rbp), %ecx
movq -0x48(%rbp), %rdx
movslq -0x7c(%rbp), %rsi
addl (%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xd4(%rbp)
movl -0xd4(%rbp), %eax
movl %eax, -0xa4(%rbp)
movq -0x58(%rbp), %rax
movl -0x78(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
addl -0xa4(%rbp), %eax
movq -0x60(%rbp), %rcx
movslq -0x78(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jle 0x2af505
movq -0x58(%rbp), %rax
movl -0x78(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
addl -0xa4(%rbp), %eax
movl %eax, -0xd8(%rbp)
jmp 0x2af516
movq -0x60(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xd8(%rbp)
movl -0xd8(%rbp), %edx
movq -0x70(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x78(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x78(%rbp)
jmp 0x2af444
cmpl $0x0, 0x28(%rbp)
je 0x2af545
xorl %eax, %eax
movl %eax, -0xdc(%rbp)
jmp 0x2af559
xorl %eax, %eax
subl -0x28(%rbp), %eax
movl -0x7c(%rbp), %ecx
imull -0x2c(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0xdc(%rbp)
movl -0xdc(%rbp), %ecx
movq -0x70(%rbp), %rax
movl %ecx, -0x4(%rax)
movl $0x0, -0x78(%rbp)
movl -0x78(%rbp), %eax
cmpl -0x74(%rbp), %eax
jge 0x2af67c
movq -0x70(%rbp), %rax
movl -0x78(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xac(%rbp)
movl -0xa0(%rbp), %eax
subl -0x2c(%rbp), %eax
movl %eax, -0xb0(%rbp)
movl -0xac(%rbp), %eax
cmpl -0xb0(%rbp), %eax
jl 0x2af5ba
movl -0xac(%rbp), %eax
movl %eax, -0xa0(%rbp)
jmp 0x2af5c6
movl -0xb0(%rbp), %eax
movl %eax, -0xa0(%rbp)
movl -0xa0(%rbp), %eax
subl -0x28(%rbp), %eax
movl %eax, -0xa8(%rbp)
movq -0x70(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -0xa8(%rbp), %eax
jle 0x2af5fb
movq -0x70(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xe0(%rbp)
jmp 0x2af607
movl -0xa8(%rbp), %eax
movl %eax, -0xe0(%rbp)
movl -0xe0(%rbp), %edx
movq -0x58(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x58(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movslq -0x78(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
cmpl $0x0, 0x20(%rbp)
je 0x2af66c
movq -0x58(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -0x80(%rbp), %eax
jle 0x2af66c
movq -0x58(%rbp), %rax
movslq -0x78(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x80(%rbp)
movl -0x78(%rbp), %eax
movl %eax, -0x84(%rbp)
movl -0x7c(%rbp), %eax
movl %eax, -0x88(%rbp)
jmp 0x2af66e
movl -0x78(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x78(%rbp)
jmp 0x2af56d
movq -0x58(%rbp), %rax
movl -0x74(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movslq -0x7c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
cmpl $0x0, 0x30(%rbp)
je 0x2af6e4
movq -0x58(%rbp), %rax
movl -0x74(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
cmpl -0x80(%rbp), %eax
jle 0x2af6e4
movq -0x58(%rbp), %rax
movl -0x74(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x80(%rbp)
movl -0x74(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x84(%rbp)
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x88(%rbp)
cmpl $0x0, 0x20(%rbp)
jne 0x2af71b
cmpl $0x0, 0x30(%rbp)
jne 0x2af71b
movq -0x58(%rbp), %rax
movl -0x74(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x80(%rbp)
movl -0x74(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x84(%rbp)
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x88(%rbp)
movl -0x80(%rbp), %ecx
movq -0x38(%rbp), %rax
movl %ecx, (%rax)
movl -0x84(%rbp), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x88(%rbp), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x68(%rbp), %rdi
callq 0x1c3590
movq -0x60(%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 0x2af775
movq -0x40(%rbp), %rdi
callq 0x1c3590
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xe0, %rsp
popq %rbp
retq
nopw (%rax,%rax)