// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/nw_stats_scan.c
// Function: parasail_nw_stats_rowcol_scan
parasail_result_t* ENAME(
        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 */
    parasail_result_t *result = NULL;
    int * restrict s1 = NULL;
    int * restrict s2 = NULL;
    int * restrict HB = NULL;
    int * restrict H = NULL;
    int * restrict HMB = NULL;
    int * restrict HM = NULL;
    int * restrict HSB = NULL;
    int * restrict HS = NULL;
    int * restrict HLB = NULL;
    int * restrict HL = NULL;
    int * restrict E = NULL;
    int * restrict EM = NULL;
    int * restrict ES = NULL;
    int * restrict EL = NULL;
    int * restrict HtB = NULL;
    int * restrict Ht = NULL;
    int * restrict HtMB = NULL;
    int * restrict HtM = NULL;
    int * restrict HtSB = NULL;
    int * restrict HtS = NULL;
    int * restrict HtLB = NULL;
    int * restrict HtL = NULL;
    int * restrict Ex = NULL;
    int i = 0;
    int j = 0;
    int s1Len = 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 */
    s1Len = matrix->type == PARASAIL_MATRIX_TYPE_SQUARE ? _s1Len : matrix->length;

    /* 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_NW | PARASAIL_FLAG_NOVEC_SCAN
        | PARASAIL_FLAG_STATS
        | PARASAIL_FLAG_BITS_INT | PARASAIL_FLAG_LANES_1;
#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);
    HB = parasail_memalign_int(16, s1Len+1);
    H  = HB+1;
    HMB = parasail_memalign_int(16, s1Len+1);
    HM  = HMB+1;
    HSB = parasail_memalign_int(16, s1Len+1);
    HS  = HSB+1;
    HLB = parasail_memalign_int(16, s1Len+1);
    HL  = HLB+1;
    E  = parasail_memalign_int(16, s1Len);
    EM = parasail_memalign_int(16, s1Len);
    ES = parasail_memalign_int(16, s1Len);
    EL = parasail_memalign_int(16, s1Len);
    HtB= parasail_memalign_int(16, s1Len+1);
    Ht = HtB+1;
    HtMB= parasail_memalign_int(16, s1Len+1);
    HtM = HtMB+1;
    HtSB= parasail_memalign_int(16, s1Len+1);
    HtS = HtSB+1;
    HtLB= parasail_memalign_int(16, s1Len+1);
    HtL = HtLB+1;
    Ex = parasail_memalign_int(16, s1Len);

    /* validate heap variables */
    if (!s1) return NULL;
    if (!s2) return NULL;
    if (!HB) return NULL;
    if (!HMB) return NULL;
    if (!HSB) return NULL;
    if (!HLB) return NULL;
    if (!E) return NULL;
    if (!EM) return NULL;
    if (!ES) return NULL;
    if (!EL) return NULL;
    if (!HtB) return NULL;
    if (!HtMB) return NULL;
    if (!HtSB) return NULL;
    if (!HtLB) return NULL;
    if (!Ex) 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,HM,HS,HL */
    H[-1] = 0;
    HM[-1] = 0;
    HS[-1] = 0;
    HL[-1] = 0;
    Ht[-1] = 0;
    for (i=0; i<s1Len; ++i) {
        H[i] = -open - i*gap;
        HM[i] = 0;
        HS[i] = 0;
        HL[i] = 0;
    }

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

    /* iterate over database */
    for (j=0; j<s2Len; ++j) {
        int Ft = NEG_INF_32;
        int FtM = 0;
        int FtS = 0;
        int FtL = 0;
        /* calculate E */
        for (i=0; i<s1Len; ++i) {
            int E_opn = H[i]-open;
            int E_ext = E[i]-gap;
            if (E_opn > E_ext) {
                E[i] = E_opn;
                EM[i] = HM[i];
                ES[i] = HS[i];
                EL[i] = HL[i];
            }
            else {
                E[i] = E_ext;
            }
            EL[i] += 1;
        }
        /* calculate Ht */
        Ht[-1] = -open -j*gap;
        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]];
            int H_dag = H[i-1]+matval;
            Ex[i] = (E[i] > H_dag);
            if (H_dag >= E[i]) {
                Ht[i] = H_dag;
                HtM[i] = HM[i-1] + (s1[i]==s2[j]);
                HtS[i] = HS[i-1] + (matval > 0);
                HtL[i] = HL[i-1] + 1;
            }
            else {
                Ht[i] = E[i];
                HtM[i] = EM[i];
                HtS[i] = ES[i];
                HtL[i] = EL[i];
            }
        }
        /* calculate H,HM,HS,HL */
        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;
            if (H[i-1] > Ft_ext) {
                FtM = HM[i-1];
                FtS = HS[i-1];
                FtL = HL[i-1] + 1;
            }
            else {
                FtL = FtL + 1;
            }
            if (Ht[i] > Ft_opn) {
                H[i] = Ht[i];
                HM[i] = HtM[i];
                HS[i] = HtS[i];
                HL[i] = HtL[i];
            }
            else {
                H[i] = Ft_opn;
                if (Ht[i] == Ft_opn) {
                    if (Ex[i]) {
                        /* we favor F/up/del when F and E scores tie */
                        HM[i] = FtM;
                        HS[i] = FtS;
                        HL[i] = FtL;
                    }
                    else {
                        HM[i] = HtM[i];
                        HS[i] = HtS[i];
                        HL[i] = HtL[i];
                    }
                }
                else {
                    HM[i] = FtM;
                    HS[i] = FtS;
                    HL[i] = FtL;
                }
            }
#ifdef PARASAIL_TABLE
            result->stats->tables->score_table[1LL*i*s2Len + j] = H[i];
            result->stats->tables->matches_table[1LL*i*s2Len + j] = HM[i];
            result->stats->tables->similar_table[1LL*i*s2Len + j] = HS[i];
            result->stats->tables->length_table[1LL*i*s2Len + j] = HL[i];
#endif
        }
        H[-1] = -open - j*gap;
#ifdef PARASAIL_ROWCOL
        if (j == s2Len-1) {
            for (i=0; i<s1Len; ++i) {
                result->stats->rowcols->score_col[i] = H[i];
                result->stats->rowcols->matches_col[i] = HM[i];
                result->stats->rowcols->similar_col[i] = HS[i];
                result->stats->rowcols->length_col[i] = HL[i];
            }
        }
        result->stats->rowcols->score_row[j] = H[s1Len-1];
        result->stats->rowcols->matches_row[j] = HM[s1Len-1];
        result->stats->rowcols->similar_row[j] = HS[s1Len-1];
        result->stats->rowcols->length_row[j] = HL[s1Len-1];
#endif
    }

    result->score = H[s1Len-1];
    result->end_query = s1Len-1;
    result->end_ref = s2Len-1;
    result->stats->matches = HM[s1Len-1];
    result->stats->similar = HS[s1Len-1];
    result->stats->length = HL[s1Len-1];

    parasail_free(Ex);
    parasail_free(HtLB);
    parasail_free(HtSB);
    parasail_free(HtMB);
    parasail_free(HtB);
    parasail_free(EL);
    parasail_free(ES);
    parasail_free(EM);
    parasail_free(E);
    parasail_free(HLB);
    parasail_free(HSB);
    parasail_free(HMB);
    parasail_free(HB);
    parasail_free(s2);
    parasail_free(s1);

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
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)
movq $0x0, -0x78(%rbp)
movq $0x0, -0x80(%rbp)
movq $0x0, -0x88(%rbp)
movq $0x0, -0x90(%rbp)
movq $0x0, -0x98(%rbp)
movq $0x0, -0xa0(%rbp)
movq $0x0, -0xa8(%rbp)
movq $0x0, -0xb0(%rbp)
movq $0x0, -0xb8(%rbp)
movq $0x0, -0xc0(%rbp)
movq $0x0, -0xc8(%rbp)
movq $0x0, -0xd0(%rbp)
movq $0x0, -0xd8(%rbp)
movq $0x0, -0xe0(%rbp)
movq $0x0, -0xe8(%rbp)
movq $0x0, -0xf0(%rbp)
movl $0x0, -0xf4(%rbp)
movl $0x0, -0xf8(%rbp)
movl $0x0, -0xfc(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x2b3de7
movq 0xb7321d(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa38226(%rip), %rsi    # 0xcebfeb
leaq 0x9fe873(%rip), %rdx    # 0xcb263f
leaq 0xa3892a(%rip), %rcx    # 0xcec6fd
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
jmp 0x2b3de9
jmp 0x2b3deb
cmpl $0x0, -0x24(%rbp)
jg 0x2b3e24
movq 0xb731e0(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa388ff(%rip), %rsi    # 0xcec701
leaq 0x9fe836(%rip), %rdx    # 0xcb263f
leaq 0xa38905(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
jmp 0x2b3e26
jmp 0x2b3e28
cmpl $0x0, -0x28(%rbp)
jge 0x2b3e61
movq 0xb731a3(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa388dc(%rip), %rsi    # 0xcec71b
leaq 0x9fe7f9(%rip), %rdx    # 0xcb263f
leaq 0xa388e3(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
jmp 0x2b3e63
jmp 0x2b3e65
cmpl $0x0, -0x2c(%rbp)
jge 0x2b3e9e
movq 0xb73166(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3889f(%rip), %rsi    # 0xcec71b
leaq 0x9fe7bc(%rip), %rdx    # 0xcb263f
leaq 0xa388ab(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
jmp 0x2b3ea0
jmp 0x2b3ea2
cmpq $0x0, 0x10(%rbp)
jne 0x2b3edc
movq 0xb73128(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa38131(%rip), %rsi    # 0xcebfeb
leaq 0x9fe77e(%rip), %rdx    # 0xcb263f
leaq 0xa38a5d(%rip), %rcx    # 0xcec925
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
jmp 0x2b3ede
movq 0x10(%rbp), %rax
cmpl $0x1, 0x30(%rax)
jne 0x2b3f21
jmp 0x2b3eea
cmpq $0x0, -0x10(%rbp)
jne 0x2b3f1d
movq 0xb730e0(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3886b(%rip), %rsi    # 0xcec76d
leaq 0x9fe736(%rip), %rdx    # 0xcb263f
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
jmp 0x2b3f1f
jmp 0x2b3f9e
jmp 0x2b3f23
cmpq $0x0, -0x10(%rbp)
jne 0x2b3f5d
movq 0xb730a7(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa380b0(%rip), %rsi    # 0xcebfeb
leaq 0x9fe6fd(%rip), %rdx    # 0xcb263f
leaq 0xa387f0(%rip), %rcx    # 0xcec739
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
jmp 0x2b3f5f
jmp 0x2b3f61
cmpl $0x0, -0x14(%rbp)
jg 0x2b3f9a
movq 0xb7306a(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa38789(%rip), %rsi    # 0xcec701
leaq 0x9fe6c0(%rip), %rdx    # 0xcb263f
leaq 0xa387b7(%rip), %rcx    # 0xcec73d
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
jmp 0x2b3f9c
jmp 0x2b3f9e
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2b3fb3
movl -0x14(%rbp), %eax
movl %eax, -0x12c(%rbp)
jmp 0x2b3fc0
movq 0x10(%rbp), %rax
movl 0x34(%rax), %eax
movl %eax, -0x12c(%rbp)
movl -0x12c(%rbp), %eax
movl %eax, -0xfc(%rbp)
movl -0xfc(%rbp), %edi
movl -0x24(%rbp), %esi
callq 0x1c40e0
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x2b3ff2
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
movq -0x38(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x1410201, %ecx        # imm = 0x1410201
movl %ecx, 0xc(%rax)
movq -0x38(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x40000, %ecx          # imm = 0x40000
movl %ecx, 0xc(%rax)
movslq -0xfc(%rbp), %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x40(%rbp)
movslq -0x24(%rbp), %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x48(%rbp)
movl -0xfc(%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)
movl -0xfc(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x68(%rbp)
movl -0xfc(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x78(%rbp)
movl -0xfc(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x88(%rbp)
movslq -0xfc(%rbp), %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x90(%rbp)
movslq -0xfc(%rbp), %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x98(%rbp)
movslq -0xfc(%rbp), %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0xa0(%rbp)
movslq -0xfc(%rbp), %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0xa8(%rbp)
movl -0xfc(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
addq $0x4, %rax
movq %rax, -0xb8(%rbp)
movl -0xfc(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
addq $0x4, %rax
movq %rax, -0xc8(%rbp)
movl -0xfc(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rax
addq $0x4, %rax
movq %rax, -0xd8(%rbp)
movl -0xfc(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
addq $0x4, %rax
movq %rax, -0xe8(%rbp)
movslq -0xfc(%rbp), %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0xf0(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x2b421c
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
cmpq $0x0, -0x48(%rbp)
jne 0x2b4230
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
cmpq $0x0, -0x50(%rbp)
jne 0x2b4244
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
cmpq $0x0, -0x60(%rbp)
jne 0x2b4258
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
cmpq $0x0, -0x70(%rbp)
jne 0x2b426c
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
cmpq $0x0, -0x80(%rbp)
jne 0x2b4280
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
cmpq $0x0, -0x90(%rbp)
jne 0x2b4297
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
cmpq $0x0, -0x98(%rbp)
jne 0x2b42ae
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
cmpq $0x0, -0xa0(%rbp)
jne 0x2b42c5
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
cmpq $0x0, -0xa8(%rbp)
jne 0x2b42dc
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
cmpq $0x0, -0xb0(%rbp)
jne 0x2b42f3
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
cmpq $0x0, -0xc0(%rbp)
jne 0x2b430a
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
cmpq $0x0, -0xd0(%rbp)
jne 0x2b4321
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
cmpq $0x0, -0xe0(%rbp)
jne 0x2b4338
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
cmpq $0x0, -0xf0(%rbp)
jne 0x2b434f
movq $0x0, -0x8(%rbp)
jmp 0x2b4ee8
movl $0x0, -0xf4(%rbp)
movl -0xf4(%rbp), %eax
cmpl -0xfc(%rbp), %eax
jge 0x2b43a0
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movslq -0xf4(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movl (%rax,%rcx,4), %edx
movq -0x40(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0xf4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xf4(%rbp)
jmp 0x2b4359
movl $0x0, -0xf8(%rbp)
movl -0xf8(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x2b43ee
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x20(%rbp), %rcx
movslq -0xf8(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movl (%rax,%rcx,4), %edx
movq -0x48(%rbp), %rax
movslq -0xf8(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0xf8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xf8(%rbp)
jmp 0x2b43aa
movq -0x58(%rbp), %rax
movl $0x0, -0x4(%rax)
movq -0x68(%rbp), %rax
movl $0x0, -0x4(%rax)
movq -0x78(%rbp), %rax
movl $0x0, -0x4(%rax)
movq -0x88(%rbp), %rax
movl $0x0, -0x4(%rax)
movq -0xb8(%rbp), %rax
movl $0x0, -0x4(%rax)
movl $0x0, -0xf4(%rbp)
movl -0xf4(%rbp), %eax
cmpl -0xfc(%rbp), %eax
jge 0x2b44ac
xorl %edx, %edx
subl -0x28(%rbp), %edx
movl -0xf4(%rbp), %eax
imull -0x2c(%rbp), %eax
subl %eax, %edx
movq -0x58(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x68(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movq -0x78(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movq -0x88(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0xf4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xf4(%rbp)
jmp 0x2b4435
movl $0x0, -0xf4(%rbp)
movl -0xf4(%rbp), %eax
cmpl -0xfc(%rbp), %eax
jge 0x2b4529
movq -0x90(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl $0xc0000000, (%rax,%rcx,4) # imm = 0xC0000000
movq -0x98(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movq -0xa0(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movq -0xa8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0xf4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xf4(%rbp)
jmp 0x2b44b6
movl $0x0, -0xf8(%rbp)
movl -0xf8(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x2b4dac
movl $0xc0000000, -0x100(%rbp) # imm = 0xC0000000
movl $0x0, -0x104(%rbp)
movl $0x0, -0x108(%rbp)
movl $0x0, -0x10c(%rbp)
movl $0x0, -0xf4(%rbp)
movl -0xf4(%rbp), %eax
cmpl -0xfc(%rbp), %eax
jge 0x2b4680
movq -0x58(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %eax
subl -0x28(%rbp), %eax
movl %eax, -0x110(%rbp)
movq -0x90(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %eax
subl -0x2c(%rbp), %eax
movl %eax, -0x114(%rbp)
movl -0x110(%rbp), %eax
cmpl -0x114(%rbp), %eax
jle 0x2b463e
movl -0x110(%rbp), %edx
movq -0x90(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x68(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x98(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x78(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0xa0(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x88(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0xa8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x2b4655
movl -0x114(%rbp), %edx
movq -0x90(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0xa8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
movl -0xf4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xf4(%rbp)
jmp 0x2b4574
xorl %ecx, %ecx
subl -0x28(%rbp), %ecx
movl -0xf8(%rbp), %eax
imull -0x2c(%rbp), %eax
subl %eax, %ecx
movq -0xb8(%rbp), %rax
movl %ecx, -0x4(%rax)
movl $0x0, -0xf4(%rbp)
movl -0xf4(%rbp), %eax
cmpl -0xfc(%rbp), %eax
jge 0x2b4906
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2b46fb
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
movq -0x40(%rbp), %rdx
movslq -0xf4(%rbp), %rsi
imull (%rdx,%rsi,4), %ecx
movq -0x48(%rbp), %rdx
movslq -0xf8(%rbp), %rsi
addl (%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x130(%rbp)
jmp 0x2b472b
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
imull -0xf4(%rbp), %ecx
movq -0x48(%rbp), %rdx
movslq -0xf8(%rbp), %rsi
addl (%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x130(%rbp)
movl -0x130(%rbp), %eax
movl %eax, -0x118(%rbp)
movq -0x58(%rbp), %rax
movl -0xf4(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
addl -0x118(%rbp), %eax
movl %eax, -0x11c(%rbp)
movq -0x90(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -0x11c(%rbp), %eax
setg %al
andb $0x1, %al
movzbl %al, %edx
movq -0xf0(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x11c(%rbp), %eax
movq -0x90(%rbp), %rcx
movslq -0xf4(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jl 0x2b4868
movl -0x11c(%rbp), %edx
movq -0xb8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x68(%rbp), %rax
movl -0xf4(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -0x40(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -0x48(%rbp), %rcx
movslq -0xf8(%rbp), %rsi
cmpl (%rcx,%rsi,4), %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
addl %eax, %edx
movq -0xc8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x78(%rbp), %rax
movl -0xf4(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
cmpl $0x0, -0x118(%rbp)
setg %al
andb $0x1, %al
movzbl %al, %eax
addl %eax, %edx
movq -0xd8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x88(%rbp), %rax
movl -0xf4(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movq -0xe8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x2b48f0
movq -0x90(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0xb8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x98(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0xc8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0xa0(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0xd8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0xa8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0xe8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x2b48f2
movl -0xf4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xf4(%rbp)
jmp 0x2b46a5
movl $0x0, -0xf4(%rbp)
movl -0xf4(%rbp), %eax
cmpl -0xfc(%rbp), %eax
jge 0x2b4be1
movq -0xb8(%rbp), %rax
movl -0xf4(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x124(%rbp)
movl -0x100(%rbp), %eax
subl -0x2c(%rbp), %eax
movl %eax, -0x128(%rbp)
movl -0x124(%rbp), %eax
cmpl -0x128(%rbp), %eax
jl 0x2b4969
movl -0x124(%rbp), %eax
movl %eax, -0x100(%rbp)
jmp 0x2b4975
movl -0x128(%rbp), %eax
movl %eax, -0x100(%rbp)
movl -0x100(%rbp), %eax
subl -0x28(%rbp), %eax
movl %eax, -0x120(%rbp)
movq -0x58(%rbp), %rax
movl -0xf4(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
cmpl -0x128(%rbp), %eax
jle 0x2b49f2
movq -0x68(%rbp), %rax
movl -0xf4(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x104(%rbp)
movq -0x78(%rbp), %rax
movl -0xf4(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x108(%rbp)
movq -0x88(%rbp), %rax
movl -0xf4(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
addl $0x1, %eax
movl %eax, -0x10c(%rbp)
jmp 0x2b4a01
movl -0x10c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10c(%rbp)
movq -0xb8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -0x120(%rbp), %eax
jle 0x2b4aa2
movq -0xb8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x58(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0xc8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x68(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0xd8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x78(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0xe8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x88(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x2b4bcb
movl -0x120(%rbp), %edx
movq -0x58(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0xb8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -0x120(%rbp), %eax
jne 0x2b4b8a
movq -0xf0(%rbp), %rax
movslq -0xf4(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x2b4b28
movl -0x104(%rbp), %edx
movq -0x68(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x108(%rbp), %edx
movq -0x78(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x10c(%rbp), %edx
movq -0x88(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x2b4b88
movq -0xc8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x68(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0xd8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x78(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0xe8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x88(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x2b4bc9
movl -0x104(%rbp), %edx
movq -0x68(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x108(%rbp), %edx
movq -0x78(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x10c(%rbp), %edx
movq -0x88(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x2b4bcb
jmp 0x2b4bcd
movl -0xf4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xf4(%rbp)
jmp 0x2b4910
xorl %ecx, %ecx
subl -0x28(%rbp), %ecx
movl -0xf8(%rbp), %eax
imull -0x2c(%rbp), %eax
subl %eax, %ecx
movq -0x58(%rbp), %rax
movl %ecx, -0x4(%rax)
movl -0xf8(%rbp), %eax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x2b4ce2
movl $0x0, -0xf4(%rbp)
movl -0xf4(%rbp), %eax
cmpl -0xfc(%rbp), %eax
jge 0x2b4ce0
movq -0x58(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x20(%rax), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x68(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x28(%rax), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x78(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x30(%rax), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x88(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x38(%rax), %rax
movslq -0xf4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0xf4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xf4(%rbp)
jmp 0x2b4c17
jmp 0x2b4ce2
movq -0x58(%rbp), %rax
movl -0xfc(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movslq -0xf8(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x68(%rbp), %rax
movl -0xfc(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movslq -0xf8(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x78(%rbp), %rax
movl -0xfc(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movslq -0xf8(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x88(%rbp), %rax
movl -0xfc(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x18(%rax), %rax
movslq -0xf8(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0xf8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xf8(%rbp)
jmp 0x2b4533
movq -0x58(%rbp), %rax
movl -0xfc(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %ecx
movq -0x38(%rbp), %rax
movl %ecx, (%rax)
movl -0xfc(%rbp), %ecx
subl $0x1, %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x68(%rbp), %rax
movl -0xfc(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %ecx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movl %ecx, (%rax)
movq -0x78(%rbp), %rax
movl -0xfc(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %ecx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movl %ecx, 0x4(%rax)
movq -0x88(%rbp), %rax
movl -0xfc(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %ecx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movl %ecx, 0x8(%rax)
movq -0xf0(%rbp), %rdi
callq 0x1c3590
movq -0xe0(%rbp), %rdi
callq 0x1c3590
movq -0xd0(%rbp), %rdi
callq 0x1c3590
movq -0xc0(%rbp), %rdi
callq 0x1c3590
movq -0xb0(%rbp), %rdi
callq 0x1c3590
movq -0xa8(%rbp), %rdi
callq 0x1c3590
movq -0xa0(%rbp), %rdi
callq 0x1c3590
movq -0x98(%rbp), %rdi
callq 0x1c3590
movq -0x90(%rbp), %rdi
callq 0x1c3590
movq -0x80(%rbp), %rdi
callq 0x1c3590
movq -0x70(%rbp), %rdi
callq 0x1c3590
movq -0x60(%rbp), %rdi
callq 0x1c3590
movq -0x50(%rbp), %rdi
callq 0x1c3590
movq -0x48(%rbp), %rdi
callq 0x1c3590
movq -0x40(%rbp), %rdi
callq 0x1c3590
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop