// File: chhylp123[P]hifiasm/tovlp.cpp
// Function: asg_arc_decompress_mul(asg_t*, ma_ug_t*, asg_t*, unsigned int, unsigned int, ma_hit_t_alloc*, R_to_U*, utg_trans_t*)
int asg_arc_decompress_mul(asg_t *g, ma_ug_t *ug, asg_t *read_sg, uint32_t positive_flag, uint32_t negative_flag,
ma_hit_t_alloc* reverse_sources, R_to_U* ruIndex, utg_trans_t *o)
{
    double startTime = Get_T();
    asg_arc_t *as = NULL, *pm = NULL;
    u_trans_t *kt = NULL;
    uint32_t v, s, sv, nc, ns, n_vtx = g->n_seq * 2, n_reduced = 0, convex, pi, qn, tn;
    uint32_t return_flag, k, m, i, p_n, a_n, *a_a = NULL;
    uint8_t fp = 1, fa = 2, found;
    long long ll, tmp, max_stop_nodeLen, max_stop_baseLen;
    kvec_t_u32_warp tt; kv_init(tt.a);
    kvec_t_u32_warp stack; kv_init(stack.a);
    uint8_t *vis = NULL; CALLOC(vis, n_vtx);
    buf_t b;
    memset(&b, 0, sizeof(buf_t));
    pdq pq_p, pq_a;
    init_pdq(&pq_p, g->n_seq<<1);
    init_pdq(&pq_a, g->n_seq<<1);
    uint32_t *path_p = NULL, *path_q = NULL; 
    CALLOC(path_p, g->n_seq<<1);
    CALLOC(path_q, g->n_seq<<1);
    clean_mul_t *cl = init_clean_mul_t(g, ug, asm_opt.thread_num, fp, fa);
    
    while (get_min_dec(cl, positive_flag, negative_flag, o, &v))
    {
        if(g->seq[v>>1].del || g->seq[v>>1].c == ALTER_LABLE) continue;
        if(asg_arc_n(g, v) == 0 || get_real_length(g, v, NULL) != 1) continue;
        get_real_length(g, v, &s);
        if(get_real_length(g, s^1, NULL) < 2) continue;
        return_flag = get_unitig(g, ug, v^1, &convex, &ll, &tmp, &max_stop_nodeLen,&max_stop_baseLen, 1, NULL);
        if(return_flag == LOOP) continue;

        as = asg_arc_a(g, convex); ns = asg_arc_n(g, convex);
        for (i = nc = 0; i < ns; i++)
        {
            if(as[i].del) continue;
            if(get_real_length(g, as[i].v^1, NULL) < 2) break;
            nc++;
        }
        if(nc == 0 || i < ns) continue;

        tt.a.n = 0; s^=1; sv = v^1;
        dfs_set(g, sv, s>>1, &stack, &tt, vis, fp);
        p_n = tt.a.n;
        as = asg_arc_a(g, s); ns = asg_arc_n(g, s); found = 0;
        for (i = 0, pm = NULL; i < ns; i++)
        {
            if(as[i].del || as[i].v != sv) continue;
            pm = &(as[i]);
            break;
        }
 
        for (i = 0; i < ns; i++)
        {
            if(as[i].del || as[i].v == sv) continue;
            nc = dfs_set(g, as[i].v, s>>1, &stack, &tt, vis, fa);
            if(nc && check_trans_relation_by_path(sv, as[i].v, &pq_p, path_p, &(o->b0), &pq_a, path_q, &(o->b1), g, 
            vis, fp+fa, nc, 0.45, NULL))
            {
                found = 1;
            }
            a_a = tt.a.a + p_n; a_n = tt.a.n - p_n;
            for (k = 0; k < a_n; k++)
            {
                if(vis[a_a[k]]&fa) vis[a_a[k]] -= fa;
            }
            tt.a.n = p_n;
            if(found) break;
        }
        a_a = tt.a.a; a_n = p_n;
        for (k = 0; k < a_n; k++) vis[a_a[k]] = 0;

        if(found == 0) fprintf(stderr, "ERROR-found\n");
        if(found)
        {
            b.b.n = 0;
            get_unitig(g, ug, sv, &convex, &ll, &tmp, &max_stop_nodeLen, &max_stop_baseLen, 1, &b);
            for (k = 0; k < b.b.n; k++)
            {
                g->seq[b.b.a[k]>>1].c = ALTER_LABLE;
            }

            for (k = 0; k < b.b.n; k++)
            {
                asg_seq_drop(g, b.b.a[k]>>1);
            }

            // uint32_t ui;
            // fprintf(stderr, "\n");
            // for (ui = 0; ui < o->b0.b.n; ui++)
            // {
            //     fprintf(stderr, "p-utg%.6ul\n", (o->b0.b.a[ui]>>1)+1);
            // }
            // for (ui = 0; ui < o->b1.b.n; ui++)
            // {
            //     fprintf(stderr, "a-utg%.6ul\n", (o->b1.b.a[ui]>>1)+1);
            // }


            if(o->b0.b.n < b.b.n)  fprintf(stderr, "ERROR-ll\n"); 
            o->b0.b.n = b.b.n; pi = o->k_trans.n;
            collect_trans_ovlp(__func__, &(o->b0), pm->ol, &(o->b1), as[i].ol, ug, o);

            for (k = m = pi; k < o->k_trans.n; k++)
            {
                kt = &(o->k_trans.a[k]);
                if(is_hap_ovlp(ug, read_sg, reverse_sources, ruIndex, &(kt->qn), 1, &(kt->tn), 1) || 
                      is_hap_ovlp(ug, read_sg, reverse_sources, ruIndex, &(kt->tn), 1, &(kt->qn), 1))
                {
                    qn = get_dir_v(kt->qn, &(o->b0));
                    tn = get_dir_v(kt->tn, &(o->b1));

                    if(dfs_reach(o->cug->g, qn, tn, &stack, &tt, vis) || dfs_reach(o->cug->g, tn, qn, &stack, &tt, vis))
                    {
                        // fprintf(stderr, "<<<<<<DEL: q-utg%.6ul (qs: %u, qe: %u), t-utg%.6ul (ts: %u, te: %u)\n", 
                        // kt->qn + 1, kt->qs, kt->qe, kt->tn + 1, kt->ts, kt->te);
                        continue;
                    }

                    // fprintf(stderr, "q-utg%.6ul (qs: %u, qe: %u), t-utg%.6ul (ts: %u, te: %u)\n", 
                    // kt->qn + 1, kt->qs, kt->qe, kt->tn + 1, kt->ts, kt->te);
                    o->k_trans.a[m] = *kt;
                    m++;
                }
                // else
                // {
                //     fprintf(stderr, "******delete: q-utg%.6ul (qs: %u, qe: %u), t-utg%.6ul (ts: %u, te: %u)\n", 
                //     kt->qn + 1, kt->qs, kt->qe, kt->tn + 1, kt->ts, kt->te);
                // }      
            }
            o->k_trans.n = m;
        }
    }
    
    if(VERBOSE >= 1)
    {
        fprintf(stderr, "[M::%s] removed %d long tips\n", 
        __func__, n_reduced);
    }
    fprintf(stderr, "[M::%s] takes %0.2f s\n\n", __func__, Get_T()-startTime);
    asg_cleanup(g);
    asg_symm(g);
    free(b.b.a);
    kv_destroy(tt.a);
    kv_destroy(stack.a);
    free(vis);
    destory_pdq(&pq_p);
    destory_pdq(&pq_a);
    free(path_p);
    free(path_q);
    destroy_clean_mul_t(&cl);
    return n_reduced;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x2a0, %rsp            # imm = 0x2A0
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x28(%rbp)
movq %rsi, -0x30(%rbp)
movq %rdx, -0x38(%rbp)
movl %ecx, -0x3c(%rbp)
movl %r8d, -0x40(%rbp)
movq %r9, -0x48(%rbp)
callq 0x2510
movsd %xmm0, -0x50(%rbp)
movq $0x0, -0x58(%rbp)
movq $0x0, -0x60(%rbp)
movq $0x0, -0x68(%rbp)
movq -0x28(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movl %eax, -0x80(%rbp)
movl $0x0, -0x84(%rbp)
movq $0x0, -0xb8(%rbp)
movb $0x1, -0xb9(%rbp)
movb $0x2, -0xba(%rbp)
movq $0x0, -0xf8(%rbp)
movq $0x0, -0x100(%rbp)
movq $0x0, -0xf0(%rbp)
movq $0x0, -0x118(%rbp)
movq $0x0, -0x120(%rbp)
movq $0x0, -0x110(%rbp)
movq $0x0, -0x128(%rbp)
movl -0x80(%rbp), %eax
movl %eax, %edi
movl $0x1, %esi
callq 0x2140
movq %rax, -0x128(%rbp)
leaq -0x190(%rbp), %rdi
xorl %esi, %esi
movl $0x68, %edx
callq 0x2100
movq -0x28(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movslq %eax, %rsi
leaq -0x1f8(%rbp), %rdi
callq 0x1cb9c0
movq -0x28(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movslq %eax, %rsi
leaq -0x260(%rbp), %rdi
callq 0x1cb9c0
movq $0x0, -0x268(%rbp)
movq $0x0, -0x270(%rbp)
movq -0x28(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movslq %eax, %rdi
movl $0x4, %esi
callq 0x2140
movq %rax, -0x268(%rbp)
movq -0x28(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movslq %eax, %rdi
movl $0x4, %esi
callq 0x2140
movq %rax, -0x270(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq 0x1507a8(%rip), %rax    # 0x3c47f8
movslq 0x7c(%rax), %rdx
movb -0xb9(%rbp), %al
movzbl %al, %ecx
movzbl -0xba(%rbp), %r8d
callq 0x26e650
movq %rax, -0x278(%rbp)
movq -0x278(%rbp), %rdi
movl -0x3c(%rbp), %esi
movl -0x40(%rbp), %edx
movq 0x18(%rbp), %rcx
leaq -0x6c(%rbp), %r8
callq 0x2738c0
cmpl $0x0, %eax
je 0x274996
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x6c(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
jne 0x2740c7
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x6c(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movzbl 0x4(%rax,%rcx,8), %eax
cmpl $0x1, %eax
jne 0x2740c9
jmp 0x274071
movq -0x28(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x6c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
cmpl $0x0, %eax
je 0x2740f2
movq -0x28(%rbp), %rdi
movl -0x6c(%rbp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x166b50
cmpl $0x1, %eax
je 0x2740f7
jmp 0x274071
movq -0x28(%rbp), %rdi
movl -0x6c(%rbp), %esi
leaq -0x70(%rbp), %rdx
callq 0x166b50
movq -0x28(%rbp), %rdi
movl -0x70(%rbp), %esi
xorl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x166b50
cmpl $0x2, %eax
jge 0x274124
jmp 0x274071
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0x6c(%rbp), %edx
xorl $0x1, %edx
leaq -0x88(%rbp), %rcx
leaq -0xc8(%rbp), %r8
leaq -0xd0(%rbp), %r9
leaq -0xd8(%rbp), %r10
leaq -0xe0(%rbp), %rax
xorl %r11d, %r11d
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
movl $0x1, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
callq 0x166c30
movl %eax, -0x98(%rbp)
cmpl $0x7, -0x98(%rbp)
jne 0x27418b
jmp 0x274071
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x28(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x88(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x88(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x7c(%rbp)
movl $0x0, -0x78(%rbp)
movl $0x0, -0xa4(%rbp)
movl -0xa4(%rbp), %eax
cmpl -0x7c(%rbp), %eax
jae 0x274248
movq -0x58(%rbp), %rax
movl -0xa4(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x274203
jmp 0x274237
movq -0x28(%rbp), %rdi
movq -0x58(%rbp), %rax
movl -0xa4(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %esi
xorl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x166b50
cmpl $0x2, %eax
jge 0x27422e
jmp 0x274248
movl -0x78(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x78(%rbp)
movl -0xa4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa4(%rbp)
jmp 0x2741da
cmpl $0x0, -0x78(%rbp)
je 0x274259
movl -0xa4(%rbp), %eax
cmpl -0x7c(%rbp), %eax
jae 0x27425e
jmp 0x274071
movq $0x0, -0x100(%rbp)
movl -0x70(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x70(%rbp)
movl -0x6c(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x74(%rbp)
movq -0x28(%rbp), %rdi
movl -0x74(%rbp), %esi
movl -0x70(%rbp), %edx
shrl %edx
movq -0x128(%rbp), %r9
leaq -0x120(%rbp), %rcx
leaq -0x100(%rbp), %r8
movzbl -0xb9(%rbp), %eax
movl %eax, (%rsp)
callq 0x272350
movq -0x100(%rbp), %rax
movl %eax, -0xa8(%rbp)
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x28(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x70(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x70(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x7c(%rbp)
movb $0x0, -0xbb(%rbp)
movl $0x0, -0xa4(%rbp)
movq $0x0, -0x60(%rbp)
movl -0xa4(%rbp), %eax
cmpl -0x7c(%rbp), %eax
jae 0x274373
movq -0x58(%rbp), %rax
movl -0xa4(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
jne 0x274349
movq -0x58(%rbp), %rax
movl -0xa4(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
cmpl -0x74(%rbp), %eax
je 0x27434b
jmp 0x274362
movq -0x58(%rbp), %rax
movl -0xa4(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
jmp 0x274373
movl -0xa4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa4(%rbp)
jmp 0x274309
movl $0x0, -0xa4(%rbp)
movl -0xa4(%rbp), %eax
cmpl -0x7c(%rbp), %eax
jae 0x27459d
movq -0x58(%rbp), %rax
movl -0xa4(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
jne 0x2743c1
movq -0x58(%rbp), %rax
movl -0xa4(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
cmpl -0x74(%rbp), %eax
jne 0x2743c6
jmp 0x274589
movq -0x28(%rbp), %rdi
movq -0x58(%rbp), %rax
movl -0xa4(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %esi
movl -0x70(%rbp), %edx
shrl %edx
movq -0x128(%rbp), %r9
leaq -0x120(%rbp), %rcx
leaq -0x100(%rbp), %r8
movzbl -0xba(%rbp), %eax
movl %eax, (%rsp)
callq 0x272350
movl %eax, -0x78(%rbp)
cmpl $0x0, -0x78(%rbp)
je 0x2744c3
movl -0x74(%rbp), %edi
movq -0x58(%rbp), %rax
movl -0xa4(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %esi
movq -0x268(%rbp), %rcx
movq 0x18(%rbp), %r8
addq $0x160, %r8             # imm = 0x160
movq -0x270(%rbp), %r15
movq 0x18(%rbp), %r14
addq $0x1c8, %r14            # imm = 0x1C8
movq -0x28(%rbp), %rbx
movq -0x128(%rbp), %r11
movzbl -0xb9(%rbp), %eax
movzbl -0xba(%rbp), %edx
addl %edx, %eax
movb %al, %r10b
movl -0x78(%rbp), %eax
leaq -0x1f8(%rbp), %rdx
leaq -0x260(%rbp), %r9
movsd 0x11c0ea(%rip), %xmm0   # 0x390570
xorl %r12d, %r12d
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movq %r11, 0x18(%rsp)
movzbl %r10b, %r10d
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
callq 0x1ccb10
cmpl $0x0, %eax
je 0x2744c3
movb $0x1, -0xbb(%rbp)
movq -0xf0(%rbp), %rax
movl -0xa8(%rbp), %ecx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0xb8(%rbp)
movq -0x100(%rbp), %rax
movl -0xa8(%rbp), %ecx
subq %rcx, %rax
movl %eax, -0xac(%rbp)
movl $0x0, -0x9c(%rbp)
movl -0x9c(%rbp), %eax
cmpl -0xac(%rbp), %eax
jae 0x27456f
movq -0x128(%rbp), %rax
movq -0xb8(%rbp), %rcx
movl -0x9c(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
movzbl (%rax,%rcx), %eax
movzbl -0xba(%rbp), %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0x27455c
movzbl -0xba(%rbp), %esi
movq -0x128(%rbp), %rax
movq -0xb8(%rbp), %rcx
movl -0x9c(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
movzbl (%rax,%rcx), %edx
subl %esi, %edx
movb %dl, (%rax,%rcx)
jmp 0x27455e
movl -0x9c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x9c(%rbp)
jmp 0x2744fe
movl -0xa8(%rbp), %eax
movq %rax, -0x100(%rbp)
cmpb $0x0, -0xbb(%rbp)
je 0x274587
jmp 0x27459d
jmp 0x274589
movl -0xa4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa4(%rbp)
jmp 0x27437d
movq -0xf0(%rbp), %rax
movq %rax, -0xb8(%rbp)
movl -0xa8(%rbp), %eax
movl %eax, -0xac(%rbp)
movl $0x0, -0x9c(%rbp)
movl -0x9c(%rbp), %eax
cmpl -0xac(%rbp), %eax
jae 0x2745fb
movq -0x128(%rbp), %rax
movq -0xb8(%rbp), %rcx
movl -0x9c(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
movb $0x0, (%rax,%rcx)
movl -0x9c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x9c(%rbp)
jmp 0x2745c1
movzbl -0xbb(%rbp), %eax
cmpl $0x0, %eax
jne 0x27461f
movq 0x14f9d2(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x11bfba(%rip), %rsi    # 0x3905d2
movb $0x0, %al
callq 0x22a0
cmpb $0x0, -0xbb(%rbp)
je 0x274991
movq $0x0, -0x158(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0x74(%rbp), %edx
leaq -0x88(%rbp), %rcx
leaq -0xc8(%rbp), %r8
leaq -0xd0(%rbp), %r9
leaq -0xd8(%rbp), %r11
leaq -0xe0(%rbp), %r10
leaq -0x190(%rbp), %rax
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movl $0x1, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0x166c30
movl $0x0, -0x9c(%rbp)
movl -0x9c(%rbp), %eax
cmpq -0x158(%rbp), %rax
jae 0x2746d2
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x148(%rbp), %rcx
movl -0x9c(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
shrl %ecx
movl %ecx, %ecx
movb $0x1, 0x4(%rax,%rcx,8)
movl -0x9c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x9c(%rbp)
jmp 0x274691
movl $0x0, -0x9c(%rbp)
movl -0x9c(%rbp), %eax
cmpq -0x158(%rbp), %rax
jae 0x274717
movq -0x28(%rbp), %rdi
movq -0x148(%rbp), %rax
movl -0x9c(%rbp), %ecx
movl (%rax,%rcx,4), %esi
shrl %esi
callq 0x274a70
movl -0x9c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x9c(%rbp)
jmp 0x2746dc
movq 0x18(%rbp), %rax
movq 0x198(%rax), %rax
cmpq -0x158(%rbp), %rax
jae 0x274743
movq 0x14f8ae(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x11bea3(%rip), %rsi    # 0x3905df
movb $0x0, %al
callq 0x22a0
movq -0x158(%rbp), %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x198(%rax)
movq 0x18(%rbp), %rax
movq 0xb0(%rax), %rax
movl %eax, -0x8c(%rbp)
movq 0x18(%rbp), %rsi
addq $0x160, %rsi            # imm = 0x160
movq -0x60(%rbp), %rax
movl 0xc(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movl %eax, %edx
movq 0x18(%rbp), %rcx
addq $0x1c8, %rcx            # imm = 0x1C8
movq -0x58(%rbp), %rax
movl -0xa4(%rbp), %edi
imulq $0x18, %rdi, %rdi
addq %rdi, %rax
movl 0xc(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movl %eax, %r8d
movq -0x30(%rbp), %r9
movq 0x18(%rbp), %rax
leaq 0x11be30(%rip), %rdi    # 0x3905e9
movq %rax, (%rsp)
callq 0x2721e0
movl -0x8c(%rbp), %eax
movl %eax, -0xa0(%rbp)
movl %eax, -0x9c(%rbp)
movl -0x9c(%rbp), %eax
movq 0x18(%rbp), %rcx
cmpq 0xb0(%rcx), %rax
jae 0x27497e
movq 0x18(%rbp), %rax
movq 0xc0(%rax), %rax
movl -0x9c(%rbp), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq 0x10(%rbp), %rcx
movq -0x68(%rbp), %r8
addq $0x8, %r8
movq -0x68(%rbp), %rax
addq $0x14, %rax
movl $0x1, %r9d
movq %rax, (%rsp)
movl $0x1, 0x8(%rsp)
callq 0x272b80
cmpl $0x0, %eax
jne 0x274883
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq 0x10(%rbp), %rcx
movq -0x68(%rbp), %r8
addq $0x14, %r8
movq -0x68(%rbp), %rax
addq $0x8, %rax
movl $0x1, %r9d
movq %rax, (%rsp)
movl $0x1, 0x8(%rsp)
callq 0x272b80
cmpl $0x0, %eax
je 0x274968
movq -0x68(%rbp), %rax
movl 0x8(%rax), %edi
movq 0x18(%rbp), %rsi
addq $0x160, %rsi            # imm = 0x160
callq 0x272e30
movl %eax, -0x90(%rbp)
movq -0x68(%rbp), %rax
movl 0x14(%rax), %edi
movq 0x18(%rbp), %rsi
addq $0x1c8, %rsi            # imm = 0x1C8
callq 0x272e30
movl %eax, -0x94(%rbp)
movq 0x18(%rbp), %rax
movq 0x108(%rax), %rax
movq 0x18(%rax), %rdi
movl -0x90(%rbp), %esi
movl -0x94(%rbp), %edx
movq -0x128(%rbp), %r9
leaq -0x120(%rbp), %rcx
leaq -0x100(%rbp), %r8
callq 0x272810
cmpl $0x0, %eax
jne 0x274931
movq 0x18(%rbp), %rax
movq 0x108(%rax), %rax
movq 0x18(%rax), %rdi
movl -0x94(%rbp), %esi
movl -0x90(%rbp), %edx
movq -0x128(%rbp), %r9
leaq -0x120(%rbp), %rcx
leaq -0x100(%rbp), %r8
callq 0x272810
cmpl $0x0, %eax
je 0x274933
jmp 0x27496a
movq -0x68(%rbp), %rsi
movq 0x18(%rbp), %rax
movq 0xc0(%rax), %rdi
movl -0xa0(%rbp), %eax
imulq $0x30, %rax, %rax
addq %rax, %rdi
movl $0x30, %edx
callq 0x2180
movl -0xa0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa0(%rbp)
jmp 0x27496a
movl -0x9c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x9c(%rbp)
jmp 0x2747d4
movl -0xa0(%rbp), %eax
movl %eax, %ecx
movq 0x18(%rbp), %rax
movq %rcx, 0xb0(%rax)
jmp 0x274071
movq 0x14f643(%rip), %rax    # 0x3c3fe0
movq (%rax), %rax
movq %rax, -0x280(%rbp)
callq 0x2510
movq -0x280(%rbp), %rdi
subsd -0x50(%rbp), %xmm0
leaq 0x11225e(%rip), %rsi    # 0x386c1d
leaq 0x11bc23(%rip), %rdx    # 0x3905e9
movb $0x1, %al
callq 0x22a0
movq -0x28(%rbp), %rdi
callq 0xcdd10
movq -0x28(%rbp), %rdi
callq 0xce020
movq -0x148(%rbp), %rdi
callq 0x2210
movq -0xf0(%rbp), %rdi
callq 0x2210
movq -0x110(%rbp), %rdi
callq 0x2210
movq -0x128(%rbp), %rdi
callq 0x2210
leaq -0x1f8(%rbp), %rdi
callq 0x1cbb60
leaq -0x260(%rbp), %rdi
callq 0x1cbb60
movq -0x268(%rbp), %rdi
callq 0x2210
movq -0x270(%rbp), %rdi
callq 0x2210
leaq -0x278(%rbp), %rdi
callq 0x26e890
movl -0x84(%rbp), %eax
addq $0x2a0, %rsp            # imm = 0x2A0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)