// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/src/sg_trace_scan.c
// Function: parasail_sg_flags_trace_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;
    int8_t * restrict HT = NULL;
    int * restrict Ex = NULL;
    int i = 0;
    int j = 0;
    int s1Len = 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 */
    i = 0;
    j = 0;
    s1Len = matrix->type == PARASAIL_MATRIX_TYPE_SQUARE ? _s1Len : matrix->length;
    score = NEG_INF_32;
    end_query = s1Len;
    end_ref = s2Len;

    /* initialize result */
    result = parasail_result_new_trace(s1Len, s2Len, 16, sizeof(int8_t));
    if (!result) return NULL;

    /* set known flags */
    result->flag |= PARASAIL_FLAG_SG | PARASAIL_FLAG_NOVEC_SCAN
        | PARASAIL_FLAG_TRACE
        | 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;

    /* 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;
    Ex = parasail_memalign_int(16, s1Len);
    HT = (int8_t* restrict)result->trace->trace_table;

    /* validate heap variables */
    if (!s2) return NULL;
    if (!HB) return NULL;
    if (!E) return NULL;
    if (!HtB) return NULL;
    if (!Ex) 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) {
            int E_opn = H[i]-open;
            int E_ext = E[i]-gap;
            E[i] = MAX(E_ext, E_opn);
            HT[1LL*i*s2Len + j] = (E_opn > E_ext) ? PARASAIL_DIAG_E
                                                  : PARASAIL_INS_E;
        }
        /* calculate Ht */
        Ht[-1] = s2_beg ? 0 : (-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;
            Ht[i] = MAX(H_dag, E[i]);
            Ex[i] = (E[i] > H_dag);
        }
        /* 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;
            if (H[i-1] > Ft_ext) {
                HT[1LL*i*s2Len + j] |= PARASAIL_DIAG_F;
            }
            else {
                HT[1LL*i*s2Len + j] |= PARASAIL_DEL_F;
            }
            if (Ht[i] > Ft_opn) {
                H[i] = Ht[i];
                HT[1LL*i*s2Len + j] |= Ex[i] ? PARASAIL_INS : PARASAIL_DIAG;
            }
            else {
                H[i] = Ft_opn;
                if (Ht[i] == Ft_opn) {
                    if (Ex[i]) {
                        HT[1LL*i*s2Len + j] |= PARASAIL_DEL;
                    }
                    else {
                        HT[1LL*i*s2Len + j] |= PARASAIL_DIAG;
                    }
                }
                else {
                    HT[1LL*i*s2Len + j] |= PARASAIL_DEL;
                }
            }
        }
        H[-1] = s2_beg ? 0 : (-open - j*gap);
        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) {
            int E_opn = H[i]-open;
            int E_ext = E[i]-gap;
            E[i] = MAX(E_ext, E_opn);
            HT[1LL*i*s2Len + j] = (E_opn > E_ext) ? PARASAIL_DIAG_E
                                                  : PARASAIL_INS_E;
        }
        /* calculate Ht */
        Ht[-1] = s2_beg ? 0 : (-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;
            Ht[i] = MAX(H_dag, E[i]);
            Ex[i] = (E[i] > H_dag);
        }
        /* 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;
            if (H[i-1] > Ft_ext) {
                HT[1LL*i*s2Len + j] |= PARASAIL_DIAG_F;
            }
            else {
                HT[1LL*i*s2Len + j] |= PARASAIL_DEL_F;
            }
            if (Ht[i] > Ft_opn) {
                H[i] = Ht[i];
                HT[1LL*i*s2Len + j] |= Ex[i] ? PARASAIL_INS : PARASAIL_DIAG;
            }
            else {
                H[i] = Ft_opn;
                if (Ht[i] == Ft_opn) {
                    if (Ex[i]) {
                        HT[1LL*i*s2Len + j] |= PARASAIL_DEL;
                    }
                    else {
                        HT[1LL*i*s2Len + j] |= PARASAIL_DIAG;
                    }
                }
                else {
                    HT[1LL*i*s2Len + j] |= PARASAIL_DEL;
                }
            }
            if (s1_end && H[i] > score) {
                score = H[i];
                end_query = i;
                end_ref = j;
            }
        }
    }
    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(Ex);
    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 $0x100, %rsp            # imm = 0x100
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)
movq $0x0, -0x78(%rbp)
movq $0x0, -0x80(%rbp)
movl $0x0, -0x84(%rbp)
movl $0x0, -0x88(%rbp)
movl $0x0, -0x8c(%rbp)
movl $0x0, -0x90(%rbp)
movl $0x0, -0x94(%rbp)
movl $0x0, -0x98(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x2bace7
movq 0xb6c31d(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa31326(%rip), %rsi    # 0xcebfeb
leaq 0xa31c1a(%rip), %rdx    # 0xcec8e6
leaq 0xa31a2a(%rip), %rcx    # 0xcec6fd
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2bbd75
jmp 0x2bace9
jmp 0x2baceb
cmpl $0x0, -0x24(%rbp)
jg 0x2bad24
movq 0xb6c2e0(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa319ff(%rip), %rsi    # 0xcec701
leaq 0xa31bdd(%rip), %rdx    # 0xcec8e6
leaq 0xa31a05(%rip), %rcx    # 0xcec715
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2bbd75
jmp 0x2bad26
jmp 0x2bad28
cmpl $0x0, -0x28(%rbp)
jge 0x2bad61
movq 0xb6c2a3(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa319dc(%rip), %rsi    # 0xcec71b
leaq 0xa31ba0(%rip), %rdx    # 0xcec8e6
leaq 0xa319e3(%rip), %rcx    # 0xcec730
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2bbd75
jmp 0x2bad63
jmp 0x2bad65
cmpl $0x0, -0x2c(%rbp)
jge 0x2bad9e
movq 0xb6c266(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa3199f(%rip), %rsi    # 0xcec71b
leaq 0xa31b63(%rip), %rdx    # 0xcec8e6
leaq 0xa319ab(%rip), %rcx    # 0xcec735
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2bbd75
jmp 0x2bada0
jmp 0x2bada2
cmpq $0x0, 0x10(%rbp)
jne 0x2baddc
movq 0xb6c228(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa31231(%rip), %rsi    # 0xcebfeb
leaq 0xa31b25(%rip), %rdx    # 0xcec8e6
leaq 0xa31b5d(%rip), %rcx    # 0xcec925
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2bbd75
jmp 0x2badde
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2bae65
jmp 0x2badea
cmpq $0x0, -0x10(%rbp)
jne 0x2bae24
movq 0xb6c1e0(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa311e9(%rip), %rsi    # 0xcebfeb
leaq 0xa31add(%rip), %rdx    # 0xcec8e6
leaq 0xa31929(%rip), %rcx    # 0xcec739
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2bbd75
jmp 0x2bae26
jmp 0x2bae28
cmpl $0x0, -0x14(%rbp)
jg 0x2bae61
movq 0xb6c1a3(%rip), %rax    # 0xe26fd8
movq (%rax), %rdi
leaq 0xa318c2(%rip), %rsi    # 0xcec701
leaq 0xa31aa0(%rip), %rdx    # 0xcec8e6
leaq 0xa318f0(%rip), %rcx    # 0xcec73d
movb $0x0, %al
callq 0x19e180
movq $0x0, -0x8(%rbp)
jmp 0x2bbd75
jmp 0x2bae63
jmp 0x2bae65
movl $0x0, -0x84(%rbp)
movl $0x0, -0x88(%rbp)
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2bae8e
movl -0x14(%rbp), %eax
movl %eax, -0xdc(%rbp)
jmp 0x2bae9b
movq 0x10(%rbp), %rax
movl 0x34(%rax), %eax
movl %eax, -0xdc(%rbp)
movl -0xdc(%rbp), %eax
movl %eax, -0x8c(%rbp)
movl $0xc0000000, -0x90(%rbp) # imm = 0xC0000000
movl -0x8c(%rbp), %eax
movl %eax, -0x94(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x98(%rbp)
movl -0x8c(%rbp), %edi
movl -0x24(%rbp), %esi
movl $0x10, %edx
movl $0x1, %ecx
callq 0x1c3fa0
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x2baef6
movq $0x0, -0x8(%rbp)
jmp 0x2bbd75
movq -0x38(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x1480202, %ecx        # imm = 0x1480202
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)
movslq -0x24(%rbp), %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x48(%rbp)
movl -0x8c(%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 -0x8c(%rbp), %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x60(%rbp)
movl -0x8c(%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)
movslq -0x8c(%rbp), %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x80(%rbp)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movq %rax, -0x78(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x2bb019
movq $0x0, -0x8(%rbp)
jmp 0x2bbd75
cmpq $0x0, -0x50(%rbp)
jne 0x2bb02d
movq $0x0, -0x8(%rbp)
jmp 0x2bbd75
cmpq $0x0, -0x60(%rbp)
jne 0x2bb041
movq $0x0, -0x8(%rbp)
jmp 0x2bbd75
cmpq $0x0, -0x68(%rbp)
jne 0x2bb055
movq $0x0, -0x8(%rbp)
jmp 0x2bbd75
cmpq $0x0, -0x80(%rbp)
jne 0x2bb069
movq $0x0, -0x8(%rbp)
jmp 0x2bbd75
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2bb0ef
movslq -0x8c(%rbp), %rsi
movl $0x10, %edi
callq 0x1c35d0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x2bb09c
movq $0x0, -0x8(%rbp)
jmp 0x2bbd75
movl $0x0, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jge 0x2bb0ed
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movslq -0x84(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movl (%rax,%rcx,4), %edx
movq -0x40(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x2bb0a6
jmp 0x2bb0ef
movl $0x0, -0x88(%rbp)
movl -0x88(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x2bb13d
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x20(%rbp), %rcx
movslq -0x88(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movl (%rax,%rcx,4), %edx
movq -0x48(%rbp), %rax
movslq -0x88(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x88(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x88(%rbp)
jmp 0x2bb0f9
movq -0x58(%rbp), %rax
movl $0x0, -0x4(%rax)
movq -0x70(%rbp), %rax
movl $0x0, -0x4(%rax)
cmpl $0x0, 0x18(%rbp)
je 0x2bb196
movl $0x0, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jge 0x2bb194
movq -0x58(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x2bb163
jmp 0x2bb1e0
movl $0x0, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jge 0x2bb1de
xorl %edx, %edx
subl -0x28(%rbp), %edx
movl -0x84(%rbp), %eax
imull -0x2c(%rbp), %eax
subl %eax, %edx
movq -0x58(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x2bb1a0
jmp 0x2bb1e0
movl $0x0, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jge 0x2bb21b
movq -0x60(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl $0xc0000000, (%rax,%rcx,4) # imm = 0xC0000000
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x2bb1ea
movl $0x0, -0x88(%rbp)
movl -0x88(%rbp), %eax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x2bb77b
movl $0xc0000000, -0x9c(%rbp) # imm = 0xC0000000
movl $0x0, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jge 0x2bb31e
movq -0x58(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %eax
subl -0x28(%rbp), %eax
movl %eax, -0xa0(%rbp)
movq -0x60(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %eax
subl -0x2c(%rbp), %eax
movl %eax, -0xa4(%rbp)
movl -0xa4(%rbp), %eax
cmpl -0xa0(%rbp), %eax
jle 0x2bb2a9
movl -0xa4(%rbp), %eax
movl %eax, -0xe0(%rbp)
jmp 0x2bb2b5
movl -0xa0(%rbp), %eax
movl %eax, -0xe0(%rbp)
movl -0xe0(%rbp), %edx
movq -0x60(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0xa0(%rbp), %edx
movl -0xa4(%rbp), %esi
movl $0x10, %eax
movl $0x8, %ecx
cmpl %esi, %edx
cmovgl %ecx, %eax
movb %al, %dl
movq -0x78(%rbp), %rax
movslq -0x84(%rbp), %rcx
shlq $0x0, %rcx
movslq -0x24(%rbp), %rsi
imulq %rsi, %rcx
movslq -0x88(%rbp), %rsi
addq %rsi, %rcx
movb %dl, (%rax,%rcx)
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x2bb24d
cmpl $0x0, 0x28(%rbp)
je 0x2bb32e
xorl %eax, %eax
movl %eax, -0xe4(%rbp)
jmp 0x2bb345
xorl %eax, %eax
subl -0x28(%rbp), %eax
movl -0x88(%rbp), %ecx
imull -0x2c(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0xe4(%rbp)
movl -0xe4(%rbp), %ecx
movq -0x70(%rbp), %rax
movl %ecx, -0x4(%rax)
movl $0x0, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jge 0x2bb497
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2bb3b2
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
movq -0x40(%rbp), %rdx
movslq -0x84(%rbp), %rsi
imull (%rdx,%rsi,4), %ecx
movq -0x48(%rbp), %rdx
movslq -0x88(%rbp), %rsi
addl (%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xe8(%rbp)
jmp 0x2bb3e2
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
imull -0x84(%rbp), %ecx
movq -0x48(%rbp), %rdx
movslq -0x88(%rbp), %rsi
addl (%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xe8(%rbp)
movl -0xe8(%rbp), %eax
movl %eax, -0xa8(%rbp)
movq -0x58(%rbp), %rax
movl -0x84(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
addl -0xa8(%rbp), %eax
movl %eax, -0xac(%rbp)
movl -0xac(%rbp), %eax
movq -0x60(%rbp), %rcx
movslq -0x84(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jle 0x2bb431
movl -0xac(%rbp), %eax
movl %eax, -0xec(%rbp)
jmp 0x2bb445
movq -0x60(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xec(%rbp)
movl -0xec(%rbp), %edx
movq -0x70(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x60(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -0xac(%rbp), %eax
setg %al
andb $0x1, %al
movzbl %al, %edx
movq -0x80(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x2bb35c
movl $0x0, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jge 0x2bb6dc
movq -0x70(%rbp), %rax
movl -0x84(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xb4(%rbp)
movl -0x9c(%rbp), %eax
subl -0x2c(%rbp), %eax
movl %eax, -0xb8(%rbp)
movl -0xb4(%rbp), %eax
cmpl -0xb8(%rbp), %eax
jl 0x2bb4f7
movl -0xb4(%rbp), %eax
movl %eax, -0x9c(%rbp)
jmp 0x2bb503
movl -0xb8(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0x9c(%rbp), %eax
subl -0x28(%rbp), %eax
movl %eax, -0xb0(%rbp)
movq -0x58(%rbp), %rax
movl -0x84(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
cmpl -0xb8(%rbp), %eax
jle 0x2bb55a
movq -0x78(%rbp), %rax
movslq -0x84(%rbp), %rcx
shlq $0x0, %rcx
movslq -0x24(%rbp), %rdx
imulq %rdx, %rcx
movslq -0x88(%rbp), %rdx
addq %rdx, %rcx
movsbl (%rax,%rcx), %edx
orl $0x20, %edx
movb %dl, (%rax,%rcx)
jmp 0x2bb585
movq -0x78(%rbp), %rax
movslq -0x84(%rbp), %rcx
shlq $0x0, %rcx
movslq -0x24(%rbp), %rdx
imulq %rdx, %rcx
movslq -0x88(%rbp), %rdx
addq %rdx, %rcx
movsbl (%rax,%rcx), %edx
orl $0x40, %edx
movb %dl, (%rax,%rcx)
movq -0x70(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -0xb0(%rbp), %eax
jle 0x2bb604
movq -0x70(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x58(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x80(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %ecx
movl $0x4, %esi
movl $0x1, %eax
cmpl $0x0, %ecx
cmovnel %eax, %esi
movq -0x78(%rbp), %rax
movslq -0x84(%rbp), %rcx
shlq $0x0, %rcx
movslq -0x24(%rbp), %rdx
imulq %rdx, %rcx
movslq -0x88(%rbp), %rdx
addq %rdx, %rcx
movsbl (%rax,%rcx), %edx
orl %esi, %edx
movb %dl, (%rax,%rcx)
jmp 0x2bb6c6
movl -0xb0(%rbp), %edx
movq -0x58(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x70(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -0xb0(%rbp), %eax
jne 0x2bb699
movq -0x80(%rbp), %rax
movslq -0x84(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x2bb66c
movq -0x78(%rbp), %rax
movslq -0x84(%rbp), %rcx
shlq $0x0, %rcx
movslq -0x24(%rbp), %rdx
imulq %rdx, %rcx
movslq -0x88(%rbp), %rdx
addq %rdx, %rcx
movsbl (%rax,%rcx), %edx
orl $0x2, %edx
movb %dl, (%rax,%rcx)
jmp 0x2bb697
movq -0x78(%rbp), %rax
movslq -0x84(%rbp), %rcx
shlq $0x0, %rcx
movslq -0x24(%rbp), %rdx
imulq %rdx, %rcx
movslq -0x88(%rbp), %rdx
addq %rdx, %rcx
movsbl (%rax,%rcx), %edx
orl $0x4, %edx
movb %dl, (%rax,%rcx)
jmp 0x2bb6c4
movq -0x78(%rbp), %rax
movslq -0x84(%rbp), %rcx
shlq $0x0, %rcx
movslq -0x24(%rbp), %rdx
imulq %rdx, %rcx
movslq -0x88(%rbp), %rdx
addq %rdx, %rcx
movsbl (%rax,%rcx), %edx
orl $0x2, %edx
movb %dl, (%rax,%rcx)
jmp 0x2bb6c6
jmp 0x2bb6c8
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x2bb4a1
cmpl $0x0, 0x28(%rbp)
je 0x2bb6ec
xorl %eax, %eax
movl %eax, -0xf0(%rbp)
jmp 0x2bb703
xorl %eax, %eax
subl -0x28(%rbp), %eax
movl -0x88(%rbp), %ecx
imull -0x2c(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0xf0(%rbp)
movl -0xf0(%rbp), %ecx
movq -0x58(%rbp), %rax
movl %ecx, -0x4(%rax)
cmpl $0x0, 0x30(%rbp)
je 0x2bb765
movq -0x58(%rbp), %rax
movl -0x8c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
cmpl -0x90(%rbp), %eax
jle 0x2bb765
movq -0x58(%rbp), %rax
movl -0x8c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x90(%rbp)
movl -0x8c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x94(%rbp)
movl -0x88(%rbp), %eax
movl %eax, -0x98(%rbp)
jmp 0x2bb767
movl -0x88(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x88(%rbp)
jmp 0x2bb225
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x88(%rbp)
movl $0xc0000000, -0xbc(%rbp) # imm = 0xC0000000
movl $0x0, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jge 0x2bb86c
movq -0x58(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %eax
subl -0x28(%rbp), %eax
movl %eax, -0xc0(%rbp)
movq -0x60(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %eax
subl -0x2c(%rbp), %eax
movl %eax, -0xc4(%rbp)
movl -0xc4(%rbp), %eax
cmpl -0xc0(%rbp), %eax
jle 0x2bb7f7
movl -0xc4(%rbp), %eax
movl %eax, -0xf4(%rbp)
jmp 0x2bb803
movl -0xc0(%rbp), %eax
movl %eax, -0xf4(%rbp)
movl -0xf4(%rbp), %edx
movq -0x60(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0xc0(%rbp), %edx
movl -0xc4(%rbp), %esi
movl $0x10, %eax
movl $0x8, %ecx
cmpl %esi, %edx
cmovgl %ecx, %eax
movb %al, %dl
movq -0x78(%rbp), %rax
movslq -0x84(%rbp), %rcx
shlq $0x0, %rcx
movslq -0x24(%rbp), %rsi
imulq %rsi, %rcx
movslq -0x88(%rbp), %rsi
addq %rsi, %rcx
movb %dl, (%rax,%rcx)
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x2bb79b
cmpl $0x0, 0x28(%rbp)
je 0x2bb87c
xorl %eax, %eax
movl %eax, -0xf8(%rbp)
jmp 0x2bb893
xorl %eax, %eax
subl -0x28(%rbp), %eax
movl -0x88(%rbp), %ecx
imull -0x2c(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0xf8(%rbp)
movl -0xf8(%rbp), %ecx
movq -0x70(%rbp), %rax
movl %ecx, -0x4(%rax)
movl $0x0, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jge 0x2bb9e5
movq 0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2bb900
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
movq -0x40(%rbp), %rdx
movslq -0x84(%rbp), %rsi
imull (%rdx,%rsi,4), %ecx
movq -0x48(%rbp), %rdx
movslq -0x88(%rbp), %rsi
addl (%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xfc(%rbp)
jmp 0x2bb930
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rcx
movl 0x18(%rcx), %ecx
imull -0x84(%rbp), %ecx
movq -0x48(%rbp), %rdx
movslq -0x88(%rbp), %rsi
addl (%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xfc(%rbp)
movl -0xfc(%rbp), %eax
movl %eax, -0xc8(%rbp)
movq -0x58(%rbp), %rax
movl -0x84(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
addl -0xc8(%rbp), %eax
movl %eax, -0xcc(%rbp)
movl -0xcc(%rbp), %eax
movq -0x60(%rbp), %rcx
movslq -0x84(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jle 0x2bb97f
movl -0xcc(%rbp), %eax
movl %eax, -0x100(%rbp)
jmp 0x2bb993
movq -0x60(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x100(%rbp)
movl -0x100(%rbp), %edx
movq -0x70(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x60(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -0xcc(%rbp), %eax
setg %al
andb $0x1, %al
movzbl %al, %edx
movq -0x80(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x2bb8aa
movl $0x0, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jge 0x2bbc72
movq -0x70(%rbp), %rax
movl -0x84(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xd4(%rbp)
movl -0xbc(%rbp), %eax
subl -0x2c(%rbp), %eax
movl %eax, -0xd8(%rbp)
movl -0xd4(%rbp), %eax
cmpl -0xd8(%rbp), %eax
jl 0x2bba45
movl -0xd4(%rbp), %eax
movl %eax, -0xbc(%rbp)
jmp 0x2bba51
movl -0xd8(%rbp), %eax
movl %eax, -0xbc(%rbp)
movl -0xbc(%rbp), %eax
subl -0x28(%rbp), %eax
movl %eax, -0xd0(%rbp)
movq -0x58(%rbp), %rax
movl -0x84(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
cmpl -0xd8(%rbp), %eax
jle 0x2bbaa8
movq -0x78(%rbp), %rax
movslq -0x84(%rbp), %rcx
shlq $0x0, %rcx
movslq -0x24(%rbp), %rdx
imulq %rdx, %rcx
movslq -0x88(%rbp), %rdx
addq %rdx, %rcx
movsbl (%rax,%rcx), %edx
orl $0x20, %edx
movb %dl, (%rax,%rcx)
jmp 0x2bbad3
movq -0x78(%rbp), %rax
movslq -0x84(%rbp), %rcx
shlq $0x0, %rcx
movslq -0x24(%rbp), %rdx
imulq %rdx, %rcx
movslq -0x88(%rbp), %rdx
addq %rdx, %rcx
movsbl (%rax,%rcx), %edx
orl $0x40, %edx
movb %dl, (%rax,%rcx)
movq -0x70(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -0xd0(%rbp), %eax
jle 0x2bbb52
movq -0x70(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x58(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x80(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %ecx
movl $0x4, %esi
movl $0x1, %eax
cmpl $0x0, %ecx
cmovnel %eax, %esi
movq -0x78(%rbp), %rax
movslq -0x84(%rbp), %rcx
shlq $0x0, %rcx
movslq -0x24(%rbp), %rdx
imulq %rdx, %rcx
movslq -0x88(%rbp), %rdx
addq %rdx, %rcx
movsbl (%rax,%rcx), %edx
orl %esi, %edx
movb %dl, (%rax,%rcx)
jmp 0x2bbc14
movl -0xd0(%rbp), %edx
movq -0x58(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x70(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -0xd0(%rbp), %eax
jne 0x2bbbe7
movq -0x80(%rbp), %rax
movslq -0x84(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x2bbbba
movq -0x78(%rbp), %rax
movslq -0x84(%rbp), %rcx
shlq $0x0, %rcx
movslq -0x24(%rbp), %rdx
imulq %rdx, %rcx
movslq -0x88(%rbp), %rdx
addq %rdx, %rcx
movsbl (%rax,%rcx), %edx
orl $0x2, %edx
movb %dl, (%rax,%rcx)
jmp 0x2bbbe5
movq -0x78(%rbp), %rax
movslq -0x84(%rbp), %rcx
shlq $0x0, %rcx
movslq -0x24(%rbp), %rdx
imulq %rdx, %rcx
movslq -0x88(%rbp), %rdx
addq %rdx, %rcx
movsbl (%rax,%rcx), %edx
orl $0x4, %edx
movb %dl, (%rax,%rcx)
jmp 0x2bbc12
movq -0x78(%rbp), %rax
movslq -0x84(%rbp), %rcx
shlq $0x0, %rcx
movslq -0x24(%rbp), %rdx
imulq %rdx, %rcx
movslq -0x88(%rbp), %rdx
addq %rdx, %rcx
movsbl (%rax,%rcx), %edx
orl $0x2, %edx
movb %dl, (%rax,%rcx)
jmp 0x2bbc14
cmpl $0x0, 0x20(%rbp)
je 0x2bbc5c
movq -0x58(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -0x90(%rbp), %eax
jle 0x2bbc5c
movq -0x58(%rbp), %rax
movslq -0x84(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x90(%rbp)
movl -0x84(%rbp), %eax
movl %eax, -0x94(%rbp)
movl -0x88(%rbp), %eax
movl %eax, -0x98(%rbp)
jmp 0x2bbc5e
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x2bb9ef
cmpl $0x0, 0x30(%rbp)
je 0x2bbcc7
movq -0x58(%rbp), %rax
movl -0x8c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
cmpl -0x90(%rbp), %eax
jle 0x2bbcc7
movq -0x58(%rbp), %rax
movl -0x8c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x90(%rbp)
movl -0x8c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x94(%rbp)
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x98(%rbp)
cmpl $0x0, 0x20(%rbp)
jne 0x2bbd07
cmpl $0x0, 0x30(%rbp)
jne 0x2bbd07
movq -0x58(%rbp), %rax
movl -0x8c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x90(%rbp)
movl -0x8c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x94(%rbp)
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x98(%rbp)
movl -0x90(%rbp), %ecx
movq -0x38(%rbp), %rax
movl %ecx, (%rax)
movl -0x94(%rbp), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0x98(%rbp), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x80(%rbp), %rdi
callq 0x1c3590
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 0x2bbd6d
movq -0x40(%rbp), %rdi
callq 0x1c3590
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nopw %cs:(%rax,%rax)