// File: chhylp123[P]hifiasm/Overlaps.cpp
// Function: rescue_bubbles_by_missing_ovlp_backward(ma_ug_t*, asg_t*, ma_hit_t_alloc*, ma_sub_t*, R_to_U*, int, int, unsigned int, unsigned int, unsigned int, bubble_type*, bub_label_t*)
void rescue_bubbles_by_missing_ovlp_backward(ma_ug_t *i_u_g, asg_t *r_g, ma_hit_t_alloc* sources, ma_sub_t *coverage_cut, 
R_to_U* ruIndex, int max_hang, int min_ovlp, uint32_t backward_steps, uint32_t beg_idx, uint32_t occ, bubble_type* bub, bub_label_t* b_mask_t)
{
    asg_t* nsg = NULL;
    uint32_t beg_utg, sink_utg, *a = NULL, n, i, bub_i, k_i, k_v, k, uId, endRid, is_Unitig, round, cur_backward_steps;
    uint32_t v, w, mode, nv;
    uint64_t l_bub, m_bub, r_bub, /**bub_0, bub_1,**/ tmp;
    ma_ug_t* ug = i_u_g;
    ma_utg_t *nsu = NULL, *u = NULL;
    uint8_t* expect_vis = NULL; CALLOC(expect_vis, r_g->n_seq);
    long long init, step = 0;
    asg_arc_t t, r_edge, *av = NULL;

    for (v = 0; v < ug->u.n; v++) ug->g->seq[v].c = PRIMARY_LABLE;
    
    kvec_t(asg_arc_t) new_edges;
    kv_init(new_edges);

    kvec_asg_arc_t_warp recover_edges;
    kv_init(recover_edges.a);

    kvec_t(asg_arc_t) rbub_edges;
    kv_init(rbub_edges);

    kvec_t_u64_warp u_vecs;
    kv_init(u_vecs.a);


    nsg = ug->g;
    for (v = 0; v < nsg->n_seq; v++)
    {
        uId = v;
        nsu = &(ug->u.a[uId]);
        if(nsu->m == 0) continue;
        if(nsg->seq[v].del) continue;
        for (k = 0; k < nsu->n; k++) 
        {
            set_R_to_U(ruIndex, nsu->a[k]>>33, uId, 1, &(r_g->seq[nsu->a[k]>>33].c));
        }
    }


    for (i = 0; i < bub->b_ug->u.n; i++)
    {
        u = &(bub->b_ug->u.a[i]);
        if(u->n < 3) continue; ///should be at least 3
        for (bub_i = 1; bub_i+1 < u->n; bub_i++)
        {
            m_bub = u->a[bub_i]>>33; l_bub = r_bub = (uint64_t)-1;
            if(m_bub < beg_idx || m_bub >= beg_idx + occ) continue;
            l_bub = u->a[bub_i-1]>>33;
            r_bub = u->a[bub_i+1]>>33;

            set_rtg_flag_by_bubble(bub, ug, r_g, l_bub, expect_vis, 1);
            set_rtg_flag_by_bubble(bub, ug, r_g, r_bub, expect_vis, 1);
            set_rtg_flag_by_bubble(bub, ug, r_g, m_bub, expect_vis, 1);
            get_bubbles(bub, m_bub, &beg_utg, &sink_utg, &a, &n, NULL);
            for (k_i = 0; k_i < n; k_i++)
            {
                uId = a[k_i]>>1;
                nsu = &(ug->u.a[uId]);
                if(nsu->m == 0) continue;

                rbub_edges.n = round = 0;
                for (k_v = 0; k_v < 2; k_v++)
                {
                    if(rbub_edges.n > 0)
                    {
                        cur_backward_steps = nsu->n - round - 1;
                        if(cur_backward_steps > backward_steps)
                        {
                            cur_backward_steps = backward_steps;
                        }
                    }
                    else
                    {
                        cur_backward_steps = backward_steps;
                    }


                    v = (uId<<1) + k_v;
                    if(get_real_length(nsg, v, NULL) != 0) continue;
                    ///fprintf(stderr, "++++++tig-utg%.6ul\n", uId+1);
                    ///that means this unitig has been changed
                    // if(nsu->start!=((uint64_t)(nsu->a[0])>>32)) continue;
                    // if((nsu->end^1)!=((uint64_t)(nsu->a[nsu->n-1])>>32)) continue;

                    if(v&1)
                    {
                        init = 0;
                        step = 1;
                        mode = 1;
                    }
                    else
                    {
                        init = nsu->n - 1;
                        step = -1;
                        mode = 0;
                    }

                    rbub_edges.n = 0;
                    for (round = 0; round < cur_backward_steps && init >= 0 && init < (long long)nsu->n; 
                                                                            init = init + step, round++)
                    {
                        endRid = ((uint64_t)(nsu->a[init]))>>32;
                        endRid = endRid^mode;

                        k = 0; rbub_edges.n = 0;
                        while(get_edge2existing_node_advance_by_broken_bub(ug, r_g, sources, coverage_cut, 
                            ruIndex, expect_vis, max_hang, min_ovlp, endRid, &k, &r_edge, 1))
                        {
                            kv_push(asg_arc_t, rbub_edges, r_edge);
                        }

                        if(rbub_edges.n > 0) break;
                    }

                    if(rbub_edges.n > 0)
                    {
                        //save for revert
                        tmp = mode; tmp = tmp <<31; tmp = tmp | (uint64_t)(init); tmp = tmp << 32; tmp = tmp | uId;
                        kv_push(uint64_t, u_vecs.a, tmp);
                        ///need to do transitive reduction
                        ///note here is different to standard transitive reduction
                        minor_transitive_reduction_r_g(r_g, rbub_edges.a, rbub_edges.n);


                        ///modify read graph
                        for (init = init - step; init >= 0 && init < (long long)nsu->n; init = init - step)
                        {
                            w = ((uint64_t)(nsu->a[init]))>>32;
                            nv = asg_arc_n(r_g, w);
                            av = asg_arc_a(r_g, w);
                            for (k = 0; k < nv; k++)
                            {
                                if(av[k].del) continue;
                                kv_push(asg_arc_t, recover_edges.a, av[k]);
                                if(asg_get_arc(r_g, av[k].v^1, av[k].ul>>32^1, &t)==0)
                                {
                                    fprintf(stderr, "error\n");
                                } 
                                kv_push(asg_arc_t, recover_edges.a, t);
                            }
                            

                            nv = asg_arc_n(r_g, w^1);
                            av = asg_arc_a(r_g, w^1);
                            for (k = 0; k < nv; k++)
                            {
                                if(av[k].del) continue;
                                kv_push(asg_arc_t, recover_edges.a, av[k]);
                                if(asg_get_arc(r_g, av[k].v^1, av[k].ul>>32^1, &t)==0)
                                {
                                    fprintf(stderr, "error\n");
                                } 
                                kv_push(asg_arc_t, recover_edges.a, t);
                            }

                            ///w = ((uint64_t)(nsu->a[init]))>>32;
                            asg_seq_del(r_g, w>>1);
                            expect_vis[w>>1] = 0;
                        }


                        for (k = 0; k < rbub_edges.n; k++)
                        {
                            t = rbub_edges.a[k];
                            if(t.del) continue;

                            kv_push(asg_arc_t, new_edges, t);
                            get_edge_from_source(sources, coverage_cut, ruIndex, max_hang, min_ovlp, 
                            (t.v^1), ((t.ul>>32)^1), &t);
                            kv_push(asg_arc_t, new_edges, t);
                        }
                    }

                }
            }
            

            set_rtg_flag_by_bubble(bub, ug, r_g, l_bub, expect_vis, 0);
            set_rtg_flag_by_bubble(bub, ug, r_g, r_bub, expect_vis, 0);
            set_rtg_flag_by_bubble(bub, ug, r_g, m_bub, expect_vis, 0);
        }
    }

    asg_arc_t* p = NULL;
    for (k = 0; k < new_edges.n; k++)
    {
        p = asg_arc_pushp(r_g);
        *p = new_edges.a[k];
    }
    if(new_edges.n != 0)
    {
        free(r_g->idx);
        r_g->idx = 0;
        r_g->is_srt = 0;
        asg_cleanup(r_g);
        asg_symm(r_g);
    }

    pre_clean(sources, coverage_cut, r_g, 0);

    lable_all_bubbles(r_g, b_mask_t);

    for (k = 0; k < new_edges.n; k++)
    {
        v = new_edges.a[k].ul>>32;
        w = new_edges.a[k].v;

        if(r_g->seq[v>>1].del) continue;
        if(r_g->seq[w>>1].del) continue;
        ///if this edge is at a bubble
        if(r_g->seq_vis[v]!=0 && r_g->seq_vis[w^1]!=0) continue;

        asg_arc_del(r_g, v, w, 1);
        asg_arc_del(r_g, w^1, v^1, 1);
    }
    asg_cleanup(r_g);
    asg_symm(r_g);

    for (k = 0; k < recover_edges.a.n; k++)
    {
        recover_edges.a.a[k].del = 1;
    }

    for (k = 0; k < u_vecs.a.n; k++)
    {
        mode = (uint64_t)u_vecs.a.a[k]>>63;
        if(mode == 1) step = 1;
        if(mode == 0) step = -1;
        init = (uint64_t)((uint64_t)u_vecs.a.a[k]>>32)&((uint64_t)(0x7fffffff));
        uId = (uint32_t)u_vecs.a.a[k];
        nsu = &(ug->u.a[uId]);

        endRid = ((uint64_t)(nsu->a[init]))>>32;
        endRid = endRid^mode;
        if(get_real_length(r_g, endRid, NULL) > 0)
        {
            update_unitig(step, init, nsu, r_g, &recover_edges, 1);
        }
        else
        {
            update_unitig(step, init, nsu, r_g, &recover_edges, 0);
        }
        // if(get_real_length(r_g, endRid, NULL) <= 0)
        // {
        //     update_unitig(step, init, nsu, r_g, &recover_edges, 0);
        // } 
    }

    uint64_t recov_occ = 0;
    for (k = 0; k < recover_edges.a.n; k++)
    {
        if(recover_edges.a.a[k].del) continue;
        p = asg_arc_pushp(r_g);
        *p = recover_edges.a.a[k];
        recov_occ++;
    }

    if(recov_occ != 0)
    {
        free(r_g->idx);
        r_g->idx = 0;
        r_g->is_srt = 0;
        asg_cleanup(r_g);
        asg_symm(r_g);
    }

    
    for (v = 0; v < ruIndex->len; v++)
    {
        get_R_to_U(ruIndex, v, &uId, &is_Unitig);
        if(is_Unitig == 1) ruIndex->index[v] = (uint32_t)-1;
    }

    // fprintf(stderr, "M::%s has done!\n", __func__);
    // print_bubble_filling_status(ug, r_g, ruIndex, bub, beg_idx, occ, new_edges.a, new_edges.n);

    kv_destroy(new_edges);
    kv_destroy(rbub_edges);
    kv_destroy(u_vecs.a);
    kv_destroy(recover_edges.a);
    free(expect_vis);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x210, %rsp            # imm = 0x210
movq 0x38(%rbp), %rax
movq 0x30(%rbp), %rax
movl 0x28(%rbp), %eax
movl 0x20(%rbp), %eax
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movl %r9d, -0x3c(%rbp)
movq $0x0, -0x48(%rbp)
movq $0x0, -0x58(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq $0x0, -0xc8(%rbp)
movq $0x0, -0xd0(%rbp)
movq $0x0, -0xd8(%rbp)
movq -0x20(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movl %eax, %edi
movl $0x1, %esi
callq 0x2140
movq %rax, -0xd8(%rbp)
movq $0x0, -0xe8(%rbp)
movq $0x0, -0x120(%rbp)
movl $0x0, -0x88(%rbp)
movl -0x88(%rbp), %eax
movq -0xc0(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x1590e4
movq -0xc0(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movl -0x88(%rbp), %ecx
movb $0x0, 0x4(%rax,%rcx,8)
movl -0x88(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x88(%rbp)
jmp 0x1590a7
movq $0x0, -0x130(%rbp)
movq $0x0, -0x138(%rbp)
movq $0x0, -0x128(%rbp)
movq $0x0, -0x150(%rbp)
movq $0x0, -0x158(%rbp)
movq $0x0, -0x148(%rbp)
movq $0x0, -0x168(%rbp)
movq $0x0, -0x170(%rbp)
movq $0x0, -0x160(%rbp)
movq $0x0, -0x188(%rbp)
movq $0x0, -0x190(%rbp)
movq $0x0, -0x180(%rbp)
movq -0xc0(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x88(%rbp)
movl -0x88(%rbp), %eax
movq -0x48(%rbp), %rcx
movl 0x14(%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jae 0x159277
movl -0x88(%rbp), %eax
movl %eax, -0x74(%rbp)
movq -0xc0(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x74(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
cmpl $0x0, 0xc(%rax)
jne 0x1591d3
jmp 0x159263
movq -0x48(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x88(%rbp), %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x1591ee
jmp 0x159263
movl $0x0, -0x70(%rbp)
movl -0x70(%rbp), %eax
movq -0xc8(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jae 0x159261
movq -0x38(%rbp), %rdi
movq -0xc8(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x70(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq $0x21, %rax
movl %eax, %esi
movl -0x74(%rbp), %edx
movq -0x20(%rbp), %rax
movq 0x20(%rax), %r8
movq -0xc8(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x70(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq $0x21, %rax
shlq $0x3, %rax
addq %rax, %r8
addq $0x4, %r8
movl $0x1, %ecx
callq 0xd0e20
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x1591f5
jmp 0x159263
movl -0x88(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x88(%rbp)
jmp 0x159181
movl $0x0, -0x60(%rbp)
movl -0x60(%rbp), %eax
movq 0x30(%rbp), %rcx
movq 0xc0(%rcx), %rcx
cmpq (%rcx), %rax
jae 0x15a04e
movq 0x30(%rbp), %rax
movq 0xc0(%rax), %rax
movq 0x10(%rax), %rax
movl -0x60(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rax
cmpl $0x3, 0x10(%rax)
jae 0x1592c7
jmp 0x15a040
movl $0x1, -0x64(%rbp)
movl -0x64(%rbp), %eax
addl $0x1, %eax
movq -0xd0(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jae 0x15a03e
movq -0xd0(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x64(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq $0x21, %rax
movq %rax, -0xa8(%rbp)
movq $-0x1, -0xb0(%rbp)
movq $-0x1, -0xa0(%rbp)
movq -0xa8(%rbp), %rax
movl 0x20(%rbp), %ecx
cmpq %rcx, %rax
jb 0x15933a
movq -0xa8(%rbp), %rax
movl 0x20(%rbp), %ecx
addl 0x28(%rbp), %ecx
movl %ecx, %ecx
cmpq %rcx, %rax
jb 0x15933f
jmp 0x15a030
movq -0xd0(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x64(%rbp), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
shrq $0x21, %rax
movq %rax, -0xa0(%rbp)
movq -0xd0(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x64(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
shrq $0x21, %rax
movq %rax, -0xb0(%rbp)
movq 0x30(%rbp), %rdi
movq -0xc0(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0xa0(%rbp), %rax
movl %eax, %ecx
movq -0xd8(%rbp), %r8
movl $0x1, %r9d
callq 0x154b80
movq 0x30(%rbp), %rdi
movq -0xc0(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0xb0(%rbp), %rax
movl %eax, %ecx
movq -0xd8(%rbp), %r8
movl $0x1, %r9d
callq 0x154b80
movq 0x30(%rbp), %rdi
movq -0xc0(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0xa8(%rbp), %rax
movl %eax, %ecx
movq -0xd8(%rbp), %r8
movl $0x1, %r9d
callq 0x154b80
movq 0x30(%rbp), %rdi
movq -0xa8(%rbp), %rsi
leaq -0x4c(%rbp), %rdx
leaq -0x50(%rbp), %rcx
leaq -0x58(%rbp), %r8
leaq -0x5c(%rbp), %r9
xorl %eax, %eax
movq $0x0, (%rsp)
callq 0x1c4b20
movl $0x0, -0x68(%rbp)
movl -0x68(%rbp), %eax
cmpl -0x5c(%rbp), %eax
jae 0x159fbb
movq -0x58(%rbp), %rax
movl -0x68(%rbp), %ecx
movl (%rax,%rcx,4), %eax
shrl %eax
movl %eax, -0x74(%rbp)
movq -0xc0(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x74(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
cmpl $0x0, 0xc(%rax)
jne 0x15947b
jmp 0x159fad
movl $0x0, -0x80(%rbp)
movq $0x0, -0x170(%rbp)
movl $0x0, -0x6c(%rbp)
cmpl $0x2, -0x6c(%rbp)
jae 0x159fab
cmpq $0x0, -0x170(%rbp)
jbe 0x1594d4
movq -0xc8(%rbp), %rax
movl 0x10(%rax), %eax
subl -0x80(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl 0x18(%rbp), %eax
jbe 0x1594d2
movl 0x18(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x1594dd
movl 0x18(%rbp), %eax
movl %eax, -0x84(%rbp)
movl -0x74(%rbp), %eax
shll %eax
addl -0x6c(%rbp), %eax
movl %eax, -0x88(%rbp)
movq -0x48(%rbp), %rdi
movl -0x88(%rbp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x166b50
cmpl $0x0, %eax
je 0x159508
jmp 0x159f9d
movl -0x88(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x159538
movq $0x0, -0xe0(%rbp)
movq $0x1, -0xe8(%rbp)
movl $0x1, -0x90(%rbp)
jmp 0x159563
movq -0xc8(%rbp), %rax
movl 0x10(%rax), %eax
subl $0x1, %eax
movl %eax, %eax
movq %rax, -0xe0(%rbp)
movq $-0x1, -0xe8(%rbp)
movl $0x0, -0x90(%rbp)
movq $0x0, -0x170(%rbp)
movl $0x0, -0x80(%rbp)
movl -0x80(%rbp), %ecx
xorl %eax, %eax
cmpl -0x84(%rbp), %ecx
movb %al, -0x1a1(%rbp)
jae 0x1595b7
xorl %eax, %eax
cmpq $0x0, -0xe0(%rbp)
movb %al, -0x1a1(%rbp)
jl 0x1595b7
movq -0xe0(%rbp), %rax
movq -0xc8(%rbp), %rcx
movl 0x10(%rcx), %ecx
cmpq %rcx, %rax
setl %al
movb %al, -0x1a1(%rbp)
movb -0x1a1(%rbp), %al
testb $0x1, %al
jne 0x1595c6
jmp 0x159741
movq -0xc8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0xe0(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, -0x78(%rbp)
movl -0x78(%rbp), %eax
xorl -0x90(%rbp), %eax
movl %eax, -0x78(%rbp)
movl $0x0, -0x70(%rbp)
movq $0x0, -0x170(%rbp)
movq -0xc0(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq -0x38(%rbp), %r8
movq -0xd8(%rbp), %r9
movl -0x3c(%rbp), %r14d
movl 0x10(%rbp), %ebx
movl -0x78(%rbp), %r11d
leaq -0x70(%rbp), %r10
leaq -0x118(%rbp), %rax
movl %r14d, (%rsp)
movl %ebx, 0x8(%rsp)
movl %r11d, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movl $0x1, 0x28(%rsp)
callq 0x169ca0
cmpl $0x0, %eax
je 0x159710
jmp 0x159664
movq -0x170(%rbp), %rax
cmpq -0x168(%rbp), %rax
jne 0x1596c8
cmpq $0x0, -0x168(%rbp)
je 0x159691
movq -0x168(%rbp), %rax
shlq %rax
movq %rax, -0x1b0(%rbp)
jmp 0x15969f
movl $0x2, %eax
movq %rax, -0x1b0(%rbp)
jmp 0x15969f
movq -0x1b0(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x160(%rbp), %rdi
imulq $0x18, -0x168(%rbp), %rsi
callq 0x2360
movq %rax, -0x160(%rbp)
movq -0x160(%rbp), %rax
movq -0x170(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x170(%rbp)
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq -0x118(%rbp), %rcx
movq %rcx, (%rax)
movq -0x110(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x108(%rbp), %rcx
movq %rcx, 0x10(%rax)
jmp 0x159601
cmpq $0x0, -0x170(%rbp)
jbe 0x15971c
jmp 0x159741
jmp 0x15971e
movq -0xe0(%rbp), %rax
addq -0xe8(%rbp), %rax
movq %rax, -0xe0(%rbp)
movl -0x80(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x80(%rbp)
jmp 0x159575
cmpq $0x0, -0x170(%rbp)
jbe 0x159f9b
movl -0x90(%rbp), %eax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
shlq $0x1f, %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
orq -0xe0(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
shlq $0x20, %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
movl -0x74(%rbp), %ecx
orq %rcx, %rax
movq %rax, -0xb8(%rbp)
movq -0x190(%rbp), %rax
cmpq -0x188(%rbp), %rax
jne 0x159810
cmpq $0x0, -0x188(%rbp)
je 0x1597d6
movq -0x188(%rbp), %rax
shlq %rax
movq %rax, -0x1b8(%rbp)
jmp 0x1597e4
movl $0x2, %eax
movq %rax, -0x1b8(%rbp)
jmp 0x1597e4
movq -0x1b8(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x180(%rbp), %rdi
movq -0x188(%rbp), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, -0x180(%rbp)
movq -0xb8(%rbp), %rdx
movq -0x180(%rbp), %rax
movq -0x190(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x190(%rbp)
movq %rdx, (%rax,%rcx,8)
movq -0x20(%rbp), %rdi
movq -0x160(%rbp), %rsi
movq -0x170(%rbp), %rax
movl %eax, %edx
callq 0x1553d0
movq -0xe0(%rbp), %rax
subq -0xe8(%rbp), %rax
movq %rax, -0xe0(%rbp)
xorl %eax, %eax
cmpq $0x0, -0xe0(%rbp)
movb %al, -0x1b9(%rbp)
jl 0x159894
movq -0xe0(%rbp), %rax
movq -0xc8(%rbp), %rcx
movl 0x10(%rcx), %ecx
cmpq %rcx, %rax
setl %al
movb %al, -0x1b9(%rbp)
movb -0x1b9(%rbp), %al
testb $0x1, %al
jne 0x1598a3
jmp 0x159d99
movq -0xc8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0xe0(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, -0x8c(%rbp)
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x8c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x94(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x20(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x8c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x120(%rbp)
movl $0x0, -0x70(%rbp)
movl -0x70(%rbp), %eax
cmpl -0x94(%rbp), %eax
jae 0x159b09
movq -0x120(%rbp), %rax
movl -0x70(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x15993e
jmp 0x159afb
jmp 0x159940
movq -0x158(%rbp), %rax
cmpq -0x150(%rbp), %rax
jne 0x1599a4
cmpq $0x0, -0x150(%rbp)
je 0x15996d
movq -0x150(%rbp), %rax
shlq %rax
movq %rax, -0x1c8(%rbp)
jmp 0x15997b
movl $0x2, %eax
movq %rax, -0x1c8(%rbp)
jmp 0x15997b
movq -0x1c8(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x148(%rbp), %rdi
imulq $0x18, -0x150(%rbp), %rsi
callq 0x2360
movq %rax, -0x148(%rbp)
movq -0x120(%rbp), %rcx
movl -0x70(%rbp), %eax
imulq $0x18, %rax, %rax
addq %rax, %rcx
movq -0x148(%rbp), %rax
movq -0x158(%rbp), %rdx
movq %rdx, %rsi
addq $0x1, %rsi
movq %rsi, -0x158(%rbp)
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rdi
movq -0x120(%rbp), %rax
movl -0x70(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %esi
xorl $0x1, %esi
movq -0x120(%rbp), %rax
movl -0x70(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
xorq $0x1, %rax
movl %eax, %edx
leaq -0x100(%rbp), %rcx
callq 0x15a550
cmpl $0x0, %eax
jne 0x159a50
movq 0x26a5a1(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x228b9c(%rip), %rsi    # 0x3825e5
movb $0x0, %al
callq 0x22a0
jmp 0x159a52
movq -0x158(%rbp), %rax
cmpq -0x150(%rbp), %rax
jne 0x159ab6
cmpq $0x0, -0x150(%rbp)
je 0x159a7f
movq -0x150(%rbp), %rax
shlq %rax
movq %rax, -0x1d0(%rbp)
jmp 0x159a8d
movl $0x2, %eax
movq %rax, -0x1d0(%rbp)
jmp 0x159a8d
movq -0x1d0(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x148(%rbp), %rdi
imulq $0x18, -0x150(%rbp), %rsi
callq 0x2360
movq %rax, -0x148(%rbp)
movq -0x148(%rbp), %rax
movq -0x158(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x158(%rbp)
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq -0x100(%rbp), %rcx
movq %rcx, (%rax)
movq -0xf8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0xf0(%rbp), %rcx
movq %rcx, 0x10(%rax)
jmp 0x159afb
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x15990e
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x8c(%rbp), %ecx
xorl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x94(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x20(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x8c(%rbp), %edx
xorl $0x1, %edx
movl %edx, %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x120(%rbp)
movl $0x0, -0x70(%rbp)
movl -0x70(%rbp), %eax
cmpl -0x94(%rbp), %eax
jae 0x159d59
movq -0x120(%rbp), %rax
movl -0x70(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x159b8e
jmp 0x159d4b
jmp 0x159b90
movq -0x158(%rbp), %rax
cmpq -0x150(%rbp), %rax
jne 0x159bf4
cmpq $0x0, -0x150(%rbp)
je 0x159bbd
movq -0x150(%rbp), %rax
shlq %rax
movq %rax, -0x1d8(%rbp)
jmp 0x159bcb
movl $0x2, %eax
movq %rax, -0x1d8(%rbp)
jmp 0x159bcb
movq -0x1d8(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x148(%rbp), %rdi
imulq $0x18, -0x150(%rbp), %rsi
callq 0x2360
movq %rax, -0x148(%rbp)
movq -0x120(%rbp), %rcx
movl -0x70(%rbp), %eax
imulq $0x18, %rax, %rax
addq %rax, %rcx
movq -0x148(%rbp), %rax
movq -0x158(%rbp), %rdx
movq %rdx, %rsi
addq $0x1, %rsi
movq %rsi, -0x158(%rbp)
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rdi
movq -0x120(%rbp), %rax
movl -0x70(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %esi
xorl $0x1, %esi
movq -0x120(%rbp), %rax
movl -0x70(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
xorq $0x1, %rax
movl %eax, %edx
leaq -0x100(%rbp), %rcx
callq 0x15a550
cmpl $0x0, %eax
jne 0x159ca0
movq 0x26a351(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x22894c(%rip), %rsi    # 0x3825e5
movb $0x0, %al
callq 0x22a0
jmp 0x159ca2
movq -0x158(%rbp), %rax
cmpq -0x150(%rbp), %rax
jne 0x159d06
cmpq $0x0, -0x150(%rbp)
je 0x159ccf
movq -0x150(%rbp), %rax
shlq %rax
movq %rax, -0x1e0(%rbp)
jmp 0x159cdd
movl $0x2, %eax
movq %rax, -0x1e0(%rbp)
jmp 0x159cdd
movq -0x1e0(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x148(%rbp), %rdi
imulq $0x18, -0x150(%rbp), %rsi
callq 0x2360
movq %rax, -0x148(%rbp)
movq -0x148(%rbp), %rax
movq -0x158(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x158(%rbp)
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq -0x100(%rbp), %rcx
movq %rcx, (%rax)
movq -0xf8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0xf0(%rbp), %rcx
movq %rcx, 0x10(%rax)
jmp 0x159d4b
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x159b5e
movq -0x20(%rbp), %rdi
movl -0x8c(%rbp), %esi
shrl %esi
callq 0xd9510
movq -0xd8(%rbp), %rax
movl -0x8c(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movb $0x0, (%rax,%rcx)
movq -0xe0(%rbp), %rax
subq -0xe8(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0x159865
movl $0x0, -0x70(%rbp)
movl -0x70(%rbp), %eax
cmpq -0x170(%rbp), %rax
jae 0x159f99
movq -0x160(%rbp), %rax
movl -0x70(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movq %rcx, -0x100(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0xf8(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0xf0(%rbp)
movl -0xf4(%rbp), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x159df4
jmp 0x159f8b
jmp 0x159df6
movq -0x138(%rbp), %rax
cmpq -0x130(%rbp), %rax
jne 0x159e5a
cmpq $0x0, -0x130(%rbp)
je 0x159e23
movq -0x130(%rbp), %rax
shlq %rax
movq %rax, -0x1e8(%rbp)
jmp 0x159e31
movl $0x2, %eax
movq %rax, -0x1e8(%rbp)
jmp 0x159e31
movq -0x1e8(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x128(%rbp), %rdi
imulq $0x18, -0x130(%rbp), %rsi
callq 0x2360
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
movq -0x138(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x138(%rbp)
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq -0x100(%rbp), %rcx
movq %rcx, (%rax)
movq -0xf8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0xf0(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
movl -0x3c(%rbp), %ecx
movl 0x10(%rbp), %r8d
movl -0xf8(%rbp), %r9d
xorl $0x1, %r9d
movq -0x100(%rbp), %rax
shrq $0x20, %rax
xorq $0x1, %rax
movl %eax, %r10d
leaq -0x100(%rbp), %rax
movl %r10d, (%rsp)
movq %rax, 0x8(%rsp)
callq 0xe9560
movq -0x138(%rbp), %rax
cmpq -0x130(%rbp), %rax
jne 0x159f46
cmpq $0x0, -0x130(%rbp)
je 0x159f0f
movq -0x130(%rbp), %rax
shlq %rax
movq %rax, -0x1f0(%rbp)
jmp 0x159f1d
movl $0x2, %eax
movq %rax, -0x1f0(%rbp)
jmp 0x159f1d
movq -0x1f0(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x128(%rbp), %rdi
imulq $0x18, -0x130(%rbp), %rsi
callq 0x2360
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
movq -0x138(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x138(%rbp)
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq -0x100(%rbp), %rcx
movq %rcx, (%rax)
movq -0xf8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0xf0(%rbp), %rcx
movq %rcx, 0x10(%rax)
jmp 0x159f8b
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x159da0
jmp 0x159f9b
jmp 0x159f9d
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0x159494
jmp 0x159fad
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
jmp 0x159432
movq 0x30(%rbp), %rdi
movq -0xc0(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0xa0(%rbp), %rax
movl %eax, %ecx
movq -0xd8(%rbp), %r8
xorl %r9d, %r9d
callq 0x154b80
movq 0x30(%rbp), %rdi
movq -0xc0(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0xb0(%rbp), %rax
movl %eax, %ecx
movq -0xd8(%rbp), %r8
xorl %r9d, %r9d
callq 0x154b80
movq 0x30(%rbp), %rdi
movq -0xc0(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0xa8(%rbp), %rax
movl %eax, %ecx
movq -0xd8(%rbp), %r8
xorl %r9d, %r9d
callq 0x154b80
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x1592ce
jmp 0x15a040
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0x15927e
movq $0x0, -0x198(%rbp)
movl $0x0, -0x70(%rbp)
movl -0x70(%rbp), %eax
cmpq -0x138(%rbp), %rax
jae 0x15a0b5
movq -0x20(%rbp), %rdi
callq 0xd4050
movq %rax, -0x198(%rbp)
movq -0x128(%rbp), %rcx
movl -0x70(%rbp), %eax
imulq $0x18, %rax, %rax
addq %rax, %rcx
movq -0x198(%rbp), %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x15a060
cmpq $0x0, -0x138(%rbp)
je 0x15a0fd
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rdi
callq 0x2210
movq -0x20(%rbp), %rax
movq $0x0, 0x28(%rax)
movq -0x20(%rbp), %rax
movl 0x4(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl $0x0, %ecx
movl %ecx, 0x4(%rax)
movq -0x20(%rbp), %rdi
callq 0xcdd10
movq -0x20(%rbp), %rdi
callq 0xce020
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x20(%rbp), %rdx
xorl %ecx, %ecx
callq 0x150830
movq -0x20(%rbp), %rdi
movq 0x38(%rbp), %rsi
callq 0x151020
movl $0x0, -0x70(%rbp)
movl -0x70(%rbp), %eax
cmpq -0x138(%rbp), %rax
jae 0x15a22a
movq -0x128(%rbp), %rax
movl -0x70(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
movl %eax, -0x88(%rbp)
movq -0x128(%rbp), %rax
movl -0x70(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, -0x8c(%rbp)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x88(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x15a18e
jmp 0x15a21c
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x8c(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x15a1ad
jmp 0x15a21c
movq -0x20(%rbp), %rax
movq 0x30(%rax), %rax
movl -0x88(%rbp), %ecx
movzbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x15a1e2
movq -0x20(%rbp), %rax
movq 0x30(%rax), %rax
movl -0x8c(%rbp), %ecx
xorl $0x1, %ecx
movl %ecx, %ecx
movzbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x15a1e2
jmp 0x15a21c
movq -0x20(%rbp), %rdi
movl -0x88(%rbp), %esi
movl -0x8c(%rbp), %edx
movl $0x1, %ecx
callq 0xd6530
movq -0x20(%rbp), %rdi
movl -0x8c(%rbp), %esi
xorl $0x1, %esi
movl -0x88(%rbp), %edx
xorl $0x1, %edx
movl $0x1, %ecx
callq 0xd6530
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x15a124
movq -0x20(%rbp), %rdi
callq 0xcdd10
movq -0x20(%rbp), %rdi
callq 0xce020
movl $0x0, -0x70(%rbp)
movl -0x70(%rbp), %eax
cmpq -0x158(%rbp), %rax
jae 0x15a27d
movq -0x148(%rbp), %rax
movl -0x70(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl $0x80000000, %ecx       # imm = 0x80000000
movl %ecx, 0xc(%rax)
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x15a243
movl $0x0, -0x70(%rbp)
movl -0x70(%rbp), %eax
cmpq -0x190(%rbp), %rax
jae 0x15a3c3
movq -0x180(%rbp), %rax
movl -0x70(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq $0x3f, %rax
movl %eax, -0x90(%rbp)
cmpl $0x1, -0x90(%rbp)
jne 0x15a2c0
movq $0x1, -0xe8(%rbp)
cmpl $0x0, -0x90(%rbp)
jne 0x15a2d4
movq $-0x1, -0xe8(%rbp)
movq -0x180(%rbp), %rax
movl -0x70(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
andq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
movq %rax, -0xe0(%rbp)
movq -0x180(%rbp), %rax
movl -0x70(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x74(%rbp)
movq -0xc0(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x74(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0xe0(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, -0x78(%rbp)
movl -0x78(%rbp), %eax
xorl -0x90(%rbp), %eax
movl %eax, -0x78(%rbp)
movq -0x20(%rbp), %rdi
movl -0x78(%rbp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x166b50
cmpl $0x0, %eax
jle 0x15a38b
movq -0xe8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
movq -0xc8(%rbp), %rdx
movq -0x20(%rbp), %rcx
leaq -0x158(%rbp), %r8
movl $0x1, %r9d
callq 0x15a630
jmp 0x15a3b3
movq -0xe8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
movq -0xc8(%rbp), %rdx
movq -0x20(%rbp), %rcx
leaq -0x158(%rbp), %r8
xorl %r9d, %r9d
callq 0x15a630
jmp 0x15a3b5
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x15a284
movq $0x0, -0x1a0(%rbp)
movl $0x0, -0x70(%rbp)
movl -0x70(%rbp), %eax
cmpq -0x158(%rbp), %rax
jae 0x15a45d
movq -0x148(%rbp), %rax
movl -0x70(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x15a3ff
jmp 0x15a44f
movq -0x20(%rbp), %rdi
callq 0xd4050
movq %rax, -0x198(%rbp)
movq -0x148(%rbp), %rcx
movl -0x70(%rbp), %eax
imulq $0x18, %rax, %rax
addq %rax, %rcx
movq -0x198(%rbp), %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
movq -0x1a0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x1a0(%rbp)
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x15a3d5
cmpq $0x0, -0x1a0(%rbp)
je 0x15a4a5
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rdi
callq 0x2210
movq -0x20(%rbp), %rax
movq $0x0, 0x28(%rax)
movq -0x20(%rbp), %rax
movl 0x4(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl $0x0, %ecx
movl %ecx, 0x4(%rax)
movq -0x20(%rbp), %rdi
callq 0xcdd10
movq -0x20(%rbp), %rdi
callq 0xce020
movl $0x0, -0x88(%rbp)
movl -0x88(%rbp), %eax
movq -0x38(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x15a503
movq -0x38(%rbp), %rdi
movl -0x88(%rbp), %esi
leaq -0x74(%rbp), %rdx
leaq -0x7c(%rbp), %rcx
callq 0xd3d50
cmpl $0x1, -0x7c(%rbp)
jne 0x15a4f0
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x88(%rbp), %ecx
movl $0xffffffff, (%rax,%rcx,4) # imm = 0xFFFFFFFF
jmp 0x15a4f2
movl -0x88(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x88(%rbp)
jmp 0x15a4af
movq -0x128(%rbp), %rdi
callq 0x2210
movq -0x160(%rbp), %rdi
callq 0x2210
movq -0x180(%rbp), %rdi
callq 0x2210
movq -0x148(%rbp), %rdi
callq 0x2210
movq -0xd8(%rbp), %rdi
callq 0x2210
addq $0x210, %rsp            # imm = 0x210
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax,%rax)