// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movl %r9d, 0x5c(%rsp)
movq %r8, 0xf0(%rsp)
movq %rcx, %r14
movq %rdx, %rbp
movq %rsi, %r15
movq %rdi, %rbx
movq $0x0, 0x138(%rsp)
movl 0x14(%rsi), %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
movl $0x1, %esi
callq 0x2120
movq %rax, 0xb8(%rsp)
movq (%rbx), %rax
movq %rbx, 0x60(%rsp)
movq 0x18(%rbx), %rcx
movq %rcx, 0x68(%rsp)
testq %rax, %rax
je 0xfb897
movq 0x68(%rsp), %rcx
movq 0x20(%rcx), %rcx
xorl %edx, %edx
movb $0x0, 0x4(%rcx,%rdx,8)
incq %rdx
movl %edx, %esi
cmpq %rsi, %rax
ja 0xfb888
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movq $0x0, 0x80(%rsp)
movq 0x68(%rsp), %rax
movl 0x14(%rax), %eax
testl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %r14, 0x8(%rsp)
je 0xfb954
xorl %r12d, %r12d
movq 0x60(%rsp), %rcx
movq 0x10(%rcx), %rcx
leaq (%r12,%r12,4), %rdx
cmpl $0x0, 0xc(%rcx,%rdx,8)
je 0xfb940
movq 0x68(%rsp), %rsi
movq 0x20(%rsi), %rsi
cmpl $0x0, (%rsi,%r12,8)
js 0xfb940
leaq (%rcx,%rdx,8), %rbx
cmpl $0x0, 0x10(%rbx)
je 0xfb940
xorl %r14d, %r14d
movq %r15, %r13
movq 0xf0(%rsp), %r15
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rsi
shrq $0x21, %rsi
movq 0x20(%r13), %rax
leaq (%rax,%rsi,8), %r8
addq $0x4, %r8
movq %r15, %rdi
movl %r12d, %edx
movl $0x1, %ecx
callq 0xa27e9
incq %r14
movl 0x10(%rbx), %eax
cmpq %rax, %r14
jb 0xfb902
movq 0x68(%rsp), %rax
movl 0x14(%rax), %eax
movq %r13, %r15
incq %r12
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpq %rcx, %r12
jb 0xfb8c6
movq 0x200(%rsp), %rax
movq 0xc0(%rax), %rax
movq (%rax), %rcx
movb $0x1, %dl
movl %edx, 0xd8(%rsp)
xorl %edx, %edx
testq %rcx, %rcx
je 0xfc965
movl 0x1f0(%rsp), %r9d
movl %r9d, %r10d
addl 0x1f8(%rsp), %r9d
xorl %r8d, %r8d
movq $0x0, 0x130(%rsp)
xorl %r13d, %r13d
movq $0x0, 0x120(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x38(%rsp)
movq $0x0, 0xf8(%rsp)
movq $0x0, 0x30(%rsp)
movl %esi, 0x54(%rsp)
movq %r15, 0x10(%rsp)
movq %rbp, 0x108(%rsp)
movq %r9, 0x150(%rsp)
movq %r10, 0x148(%rsp)
movq %r13, 0xb0(%rsp)
movq 0x10(%rax), %rsi
movq %rdx, 0x140(%rsp)
leaq (%rdx,%rdx,4), %rdi
movl 0x10(%rsi,%rdi,8), %edx
cmpl $0x3, %edx
jb 0xfc857
leaq (%rsi,%rdi,8), %rdi
movl $0x2, %r11d
movl $0x1, %ebx
movq %rdi, 0x158(%rsp)
movq 0x18(%rdi), %rax
movq (%rax,%rbx,8), %r12
shrq $0x21, %r12
cmpq %r10, %r12
setb %cl
cmpq %r9, %r12
setae %sil
orb %cl, %sil
jne 0xfc834
movq %r8, 0x20(%rsp)
movq %rbx, 0x178(%rsp)
movq -0x8(%rax,%rbx,8), %rcx
shrq $0x21, %rcx
movq %r11, 0x180(%rsp)
movq (%rax,%r11,8), %rbx
shrq $0x21, %rbx
movq 0x200(%rsp), %rdi
movq 0x60(%rsp), %r14
movq %r14, %rsi
movq %r15, %rdx
movq %rcx, 0x160(%rsp)
movq 0xb8(%rsp), %r13
movq %r13, %r8
movl $0x1, %r9d
callq 0xf7b3a
movq 0x200(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, 0x168(%rsp)
movl %ebx, %ecx
movq %r13, %r8
movl $0x1, %r9d
callq 0xf7b3a
movq 0x200(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %r12d, %ecx
movq %r13, %r8
movl $0x1, %r9d
callq 0xf7b3a
subq $0x8, %rsp
movq %rbx, %rdi
movq %r12, 0x178(%rsp)
movq %r12, %rsi
leaq 0x1ac(%rsp), %rdx
leaq 0x1a8(%rsp), %rcx
leaq 0x140(%rsp), %r8
leaq 0xe4(%rsp), %r9
pushq $0x0
callq 0x13df01
addq $0x10, %rsp
movl 0xdc(%rsp), %eax
testl %eax, %eax
je 0xfc795
xorl %ecx, %ecx
movq 0x20(%rsp), %r8
movq 0x8(%rsp), %r14
movq %rcx, %rdx
movq 0x138(%rsp), %rcx
movq %rdx, 0x128(%rsp)
movl (%rcx,%rdx,4), %esi
movl %esi, %edx
shrl %edx
movq 0x60(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq %rdx, 0x188(%rsp)
leaq (%rdx,%rdx,4), %rdx
cmpl $0x0, 0xc(%rcx,%rdx,8)
je 0xfc77a
leaq (%rcx,%rdx,8), %rax
movq %rax, 0xc8(%rsp)
andl $-0x2, %esi
xorl %eax, %eax
movb $0x1, %cl
movl %ecx, 0x58(%rsp)
movq $0x0, 0xd0(%rsp)
movq %rsi, %rcx
xorl %esi, %esi
movq %rcx, 0x190(%rsp)
movl 0x1e8(%rsp), %ecx
movl %ecx, %r10d
testq %rsi, %rsi
je 0xfbbe2
movq 0xd0(%rsp), %rdx
movl %edx, %r10d
notl %r10d
movq 0xc8(%rsp), %rdx
addl 0x10(%rdx), %r10d
cmpl %ecx, %r10d
cmovael %ecx, %r10d
orq 0x190(%rsp), %rax
movq 0x68(%rsp), %rcx
movq 0x28(%rcx), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, %rcx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
andq %rdx, %rcx
je 0xfbc4b
movq %rsi, %r9
movq 0x68(%rsp), %rdx
movq 0x8(%rdx), %rdx
shrq $0x20, %rax
leaq (%rax,%rax,2), %rax
leaq (%rdx,%rax,8), %rax
addq $0xc, %rax
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rcx
xorl %edx, %edx
xorl %esi, %esi
movl (%rax,%rdx), %edi
notl %edi
shrl $0x1f, %edi
addl %edi, %esi
addq $0x18, %rdx
cmpq %rdx, %rcx
jne 0xfbc2c
testl %esi, %esi
je 0xfbc4b
movq %r9, %rsi
jmp 0xfc0a0
testb $0x1, 0x58(%rsp)
je 0xfbc79
movq 0xc8(%rsp), %rax
movl 0x10(%rax), %esi
decl %esi
movq $-0x1, 0xe0(%rsp)
movq $0x0, 0xc0(%rsp)
jmp 0xfbc95
movl $0x1, %eax
movq %rax, 0xe0(%rsp)
movl $0x1, %eax
movq %rax, 0xc0(%rsp)
xorl %esi, %esi
testl %r10d, %r10d
je 0xfc092
movq $0x0, 0xd0(%rsp)
movq %r8, 0x20(%rsp)
movl %r10d, 0x114(%rsp)
movq 0xc8(%rsp), %rdx
movl 0x10(%rdx), %eax
cmpq %rax, %rsi
jae 0xfc09e
movq 0x18(%rdx), %rax
movq (%rax,%rsi,8), %rdx
movq %rdx, %rax
shrq $0x21, %rax
leaq (%rax,%rax,2), %rax
movl 0xc(%rbp,%rax,8), %edi
testl %edi, %edi
je 0xfc06b
movq %rsi, 0xe8(%rsp)
leaq (,%rax,8), %rax
addq %rbp, %rax
shrq $0x20, %rdx
xorl 0xc0(%rsp), %edx
movq %rdx, 0x100(%rsp)
movq $0x0, 0x48(%rsp)
xorl %ebp, %ebp
movq %rax, 0x198(%rsp)
movq (%rax), %rcx
leaq 0x199a2b(%rip), %rax    # 0x295758
movss 0x158(%rax), %xmm0
movl %edi, (%rsp)
movl %ebp, %eax
leaq (%rax,%rax,4), %r8
movl 0xc(%rcx,%r8,8), %r13d
leaq (,%r13,2), %rsi
addq %r13, %rsi
movl (%r14,%rsi,4), %eax
testl %eax, %eax
js 0xfbe42
movq 0x20(%r15), %rdx
cmpl $0x0, (%rdx,%r13,8)
js 0xfbe42
leaq (%rcx,%r8,8), %rdx
leaq (%r14,%rsi,4), %rsi
movl 0x4(%rsi), %edi
subl %eax, %edi
movq 0x18(%rdx), %rax
testl %eax, %eax
movq %rax, 0x28(%rsp)
js 0xfbd96
movl 0x10(%rdx), %r11d
movl 0x14(%rdx), %r10d
subl %r10d, %edi
movl %edi, %r9d
movl %r11d, %edi
jmp 0xfbda4
movl 0x10(%rdx), %r11d
movl 0x14(%rdx), %r10d
subl %r10d, %edi
movl %r11d, %r9d
movq (%rcx,%r8,8), %r8
movq %r8, %rax
shrq $0x20, %rax
leaq (%rax,%rax,2), %rax
leaq (%r14,%rax,4), %rax
movl 0x4(%rax), %r15d
movl (%rax), %eax
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl %esi, %eax
subl %eax, %r15d
cmpl %r8d, %edi
movl %r8d, %esi
cmovll %edi, %esi
movl 0x8(%rdx), %ebx
movl %r15d, %r12d
subl %ebx, %r12d
cmpl %r9d, %r12d
movl %r9d, %r14d
cmovll %r12d, %r14d
movl 0x5c(%rsp), %eax
cmpl %eax, %esi
jg 0xfbe35
cmpl %eax, %r14d
jg 0xfbe35
movl %ebx, %eax
subl %r8d, %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
addl %esi, %eax
addl %r14d, %eax
xorps %xmm2, %xmm2
cvtsi2ss %rax, %xmm2
mulss %xmm0, %xmm2
ucomiss %xmm1, %xmm2
ja 0xfbe35
subl %r11d, %r10d
xorps %xmm1, %xmm1
cvtsi2ss %r10, %xmm1
addl %esi, %r14d
addl %r10d, %r14d
xorps %xmm2, %xmm2
cvtsi2ss %r14, %xmm2
mulss %xmm0, %xmm2
ucomiss %xmm1, %xmm2
jbe 0xfbe51
movq 0x10(%rsp), %r15
movq 0x8(%rsp), %r14
movl (%rsp), %edi
incl %ebp
cmpl %edi, %ebp
jb 0xfbd38
jmp 0xfc046
cmpl %r9d, %r12d
setl %sil
setg %r11b
cmpl %edi, %r8d
setg %r12b
setl %r10b
orb %r11b, %r12b
cmpb $0x1, %r12b
jne 0xfbe35
orb %sil, %r10b
je 0xfbe35
movl 0x1e0(%rsp), %esi
cmpl %esi, %eax
jl 0xfbe35
cmpl %esi, %r14d
jl 0xfbe35
addl %ebx, %r9d
movl %r15d, %r10d
subl %r9d, %r10d
xorl %eax, %eax
movl %r8d, %r14d
subl %edi, %r14d
setle %sil
cmovlel %r10d, %r14d
movq 0x28(%rsp), %r11
movl %r11d, %r9d
shrl $0x10, %r9d
andl $0x4000, %r9d           # imm = 0x4000
movl 0x54(%rsp), %r10d
andl $0x3fff, %r10d          # imm = 0x3FFF
orl %r9d, %r10d
movzbl 0x21(%rdx), %r9d
shll $0xf, %r9d
orl %r10d, %r9d
movl %r9d, 0x54(%rsp)
testl %r14d, %r14d
js 0xfbe35
movb %sil, %al
movq %r8, %rbx
shrq $0x1f, %rbx
andl $-0x2, %ebx
orq %rax, %rbx
cmpl 0x100(%rsp), %ebx
jne 0xfbe35
movl %r13d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq 0xf0(%rsp), %rsi
cmpq %rax, (%rsi)
jbe 0xfbe35
movq 0x8(%rsi), %rsi
movl (%rsi,%rax,4), %esi
cmpl $-0x2, %esi
jg 0xfbe35
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movq 0x60(%rsp), %r9
movq 0x18(%r9), %r9
movq 0x20(%r9), %r9
cmpl $0x0, (%r9,%rsi,8)
js 0xfbe35
movq 0xb8(%rsp), %rsi
cmpb $0x0, (%rsi,%rax)
je 0xfbe35
cmpl %edi, %r8d
setg %cl
testl %r11d, %r11d
setns %sil
movb 0x20(%rdx), %dil
movq 0x48(%rsp), %r12
cmpq 0x120(%rsp), %r12
jne 0xfbfba
movb %cl, 0x28(%rsp)
leaq (%r12,%r12), %rcx
testq %r12, %r12
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x120(%rsp)
leaq (,%rcx,8), %rax
movb %sil, 0x1f(%rsp)
leaq (%rax,%rax,2), %rsi
movb %dil, (%rsp)
movq 0x40(%rsp), %rdi
callq 0x2370
movb 0x1f(%rsp), %sil
movb 0x28(%rsp), %cl
movb (%rsp), %dil
jmp 0xfbfbf
movq 0x40(%rsp), %rax
movq 0x20(%rsp), %r8
xorb %cl, %sil
movzbl %sil, %ecx
leal (%rcx,%r13,2), %esi
shlq $0x20, %rbx
movl %r14d, %ecx
orq %rbx, %rcx
subl %r14d, %r15d
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
incl %ebp
leaq (%r12,%r12,2), %rdx
incq %r12
movq %r12, 0x48(%rsp)
movq %rcx, (%rax,%rdx,8)
movl %esi, 0x8(%rax,%rdx,8)
movl %r15d, 0xc(%rax,%rdx,8)
movl 0x54(%rsp), %ecx
movw %cx, 0x10(%rax,%rdx,8)
movb %dil, 0x12(%rax,%rdx,8)
movb 0x11f(%rsp), %cl
movb %cl, 0x17(%rax,%rdx,8)
movl 0x11b(%rsp), %esi
movq %rax, 0x40(%rsp)
movl %esi, 0x13(%rax,%rdx,8)
movq 0x198(%rsp), %rax
movl 0xc(%rax), %edi
cmpl %edi, %ebp
movq 0x10(%rsp), %r15
movq 0x8(%rsp), %r14
jb 0xfbd23
jmp 0xfc04b
movq 0x20(%rsp), %r8
cmpq $0x0, 0x48(%rsp)
jne 0xfc0bd
movq 0x108(%rsp), %rbp
movq 0xe8(%rsp), %rsi
movl 0x114(%rsp), %r10d
movq 0xd0(%rsp), %rax
incl %eax
movq %rax, 0xd0(%rsp)
cmpl %r10d, %eax
jae 0xfc09e
addq 0xe0(%rsp), %rsi
jns 0xfbcb7
jmp 0xfc09e
movq $0x0, 0xd0(%rsp)
xorl %esi, %esi
movl $0x1, %eax
testb $0x1, 0x58(%rsp)
movl $0x0, 0x58(%rsp)
jne 0xfbbb2
jmp 0xfc773
cmpq 0x130(%rsp), %r8
movq 0xe8(%rsp), %r13
jne 0xfc103
leaq (%r8,%r8), %rcx
testq %r8, %r8
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x130(%rsp)
leaq (,%rcx,8), %rsi
movq 0xb0(%rsp), %rdi
callq 0x2370
movq 0x20(%rsp), %r8
jmp 0xfc10b
movq 0xb0(%rsp), %rax
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movq 0xc0(%rsp), %rcx
shll $0x1f, %ecx
orl %r13d, %ecx
shlq $0x20, %rcx
addq 0x188(%rsp), %rcx
movq %rax, 0xb0(%rsp)
movq %rcx, (%rax,%r8,8)
movq %r15, %rdi
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
callq 0xf7c90
subq 0xe0(%rsp), %r13
movq 0xc8(%rsp), %rcx
js 0xfc5ed
movl 0x10(%rcx), %eax
cmpq %rax, %r13
jae 0xfc5ed
movq 0x18(%rcx), %rax
movq (%rax,%r13,8), %rax
movq %rax, 0x100(%rsp)
movq %rax, %rsi
shrq $0x20, %rsi
movq 0x8(%r15), %rax
movq 0x28(%r15), %rcx
movq (%rcx,%rsi,8), %rdx
testl %edx, %edx
movq %r13, 0xe8(%rsp)
je 0xfc35b
movq %rsi, 0xc0(%rsp)
movq %rdx, %rcx
shrq $0x20, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %r10
movl %edx, %eax
movq %rax, (%rsp)
xorl %r14d, %r14d
movq %r10, 0x28(%rsp)
leaq (%r14,%r14,2), %rbp
cmpl $0x0, 0xc(%r10,%rbp,8)
js 0xfc338
movq 0x70(%rsp), %r13
movq 0x78(%rsp), %rbx
movq 0x80(%rsp), %r12
cmpq %rbx, %r13
jne 0xfc227
leaq (,%r13,2), %rbx
testq %r13, %r13
movl $0x2, %eax
cmoveq %rax, %rbx
movq %rbx, 0x78(%rsp)
leaq (,%rbx,8), %rax
leaq (%rax,%rax,2), %rsi
movq %r12, %rdi
callq 0x2370
movq 0x28(%rsp), %r10
movq %rax, %r12
movq %rax, 0x80(%rsp)
leaq (,%r13,2), %rax
addq %r13, %rax
movq 0x10(%r10,%rbp,8), %rcx
movq %rcx, 0x10(%r12,%rax,8)
movups (%r10,%rbp,8), %xmm0
movups %xmm0, (%r12,%rax,8)
movl 0x8(%r10,%rbp,8), %eax
xorq $0x1, %rax
movq 0x28(%r15), %rcx
movq (%rcx,%rax,8), %rdx
movq %rdx, %rsi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
andq %rax, %rsi
je 0xfc2a5
movl 0x4(%r10,%rbp,8), %ecx
movq 0x8(%r15), %rax
shrq $0x20, %rdx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rdi
leaq (%rdx,%rdx,2), %rdx
leaq (%rax,%rdx,8), %r8
addq $0xc, %r8
xorl %esi, %esi
cmpl $0x0, (%r8,%rsi)
js 0xfc29c
movl -0x4(%r8,%rsi), %r9d
xorl %ecx, %r9d
cmpl $0x1, %r9d
je 0xfc2b1
addq $0x18, %rsi
cmpq %rsi, %rdi
jne 0xfc287
callq 0x119ec
movq 0x28(%rsp), %r10
jmp 0xfc2ce
leaq (%rax,%rdx,8), %rax
movq 0x10(%rsi,%rax), %rcx
movq %rcx, 0xa0(%rsp)
movups (%rsi,%rax), %xmm0
movaps %xmm0, 0x90(%rsp)
leaq 0x1(%r13), %r15
cmpq %rbx, %r15
jne 0xfc30c
leaq (%rbx,%rbx), %rax
testq %rbx, %rbx
movl $0x2, %ecx
cmoveq %rcx, %rax
movq %rax, 0x78(%rsp)
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
movq %r12, %rdi
callq 0x2370
movq 0x28(%rsp), %r10
movq %rax, %r12
movq %rax, 0x80(%rsp)
addq $0x2, %r13
movq %r13, 0x70(%rsp)
leaq (%r15,%r15,2), %rax
movq 0xa0(%rsp), %rcx
movq %rcx, 0x10(%r12,%rax,8)
movaps 0x90(%rsp), %xmm0
movups %xmm0, (%r12,%rax,8)
movq 0x10(%rsp), %r15
incq %r14
cmpq (%rsp), %r14
jne 0xfc1c3
movq 0x8(%r15), %rax
movq 0x28(%r15), %rcx
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movq 0xc0(%rsp), %rsi
xorq $0x1, %rsi
movq (%rcx,%rsi,8), %rcx
testl %ecx, %ecx
je 0xfc510
movq %rcx, %rdx
shrq $0x20, %rdx
leaq (%rdx,%rdx,2), %rdx
leaq (%rax,%rdx,8), %r10
movl %ecx, %eax
movq %rax, (%rsp)
xorl %r14d, %r14d
movq %r10, 0x28(%rsp)
leaq (%r14,%r14,2), %r13
cmpl $0x0, 0xc(%r10,%r13,8)
js 0xfc503
movq 0x70(%rsp), %rbp
movq 0x78(%rsp), %rbx
movq 0x80(%rsp), %r12
cmpq %rbx, %rbp
jne 0xfc3ec
leaq (,%rbp,2), %rbx
testq %rbp, %rbp
movl $0x2, %eax
cmoveq %rax, %rbx
movq %rbx, 0x78(%rsp)
leaq (,%rbx,8), %rax
leaq (%rax,%rax,2), %rsi
movq %r12, %rdi
callq 0x2370
movq 0x28(%rsp), %r10
movq %rax, %r12
movq %rax, 0x80(%rsp)
leaq (,%rbp,2), %rax
addq %rbp, %rax
movq 0x10(%r10,%r13,8), %rcx
movq %rcx, 0x10(%r12,%rax,8)
movups (%r10,%r13,8), %xmm0
movups %xmm0, (%r12,%rax,8)
movl 0x8(%r10,%r13,8), %eax
xorq $0x1, %rax
movq 0x28(%r15), %rcx
movq (%rcx,%rax,8), %rdx
movq %rdx, %rsi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
andq %rax, %rsi
je 0xfc46a
movl 0x4(%r10,%r13,8), %ecx
movq 0x8(%r15), %rax
shrq $0x20, %rdx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rdi
leaq (%rdx,%rdx,2), %rdx
leaq (%rax,%rdx,8), %r8
addq $0xc, %r8
xorl %esi, %esi
cmpl $0x0, (%r8,%rsi)
js 0xfc461
movl -0x4(%r8,%rsi), %r9d
xorl %ecx, %r9d
cmpl $0x1, %r9d
je 0xfc476
addq $0x18, %rsi
cmpq %rsi, %rdi
jne 0xfc44c
callq 0x11a0e
movq 0x28(%rsp), %r10
jmp 0xfc493
leaq (%rax,%rdx,8), %rax
movq 0x10(%rsi,%rax), %rcx
movq %rcx, 0xa0(%rsp)
movups (%rsi,%rax), %xmm0
movaps %xmm0, 0x90(%rsp)
leaq 0x1(%rbp), %r15
cmpq %rbx, %r15
jne 0xfc4d1
leaq (%rbx,%rbx), %rax
testq %rbx, %rbx
movl $0x2, %ecx
cmoveq %rcx, %rax
movq %rax, 0x78(%rsp)
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
movq %r12, %rdi
callq 0x2370
movq 0x28(%rsp), %r10
movq %rax, %r12
movq %rax, 0x80(%rsp)
addq $0x2, %rbp
movq %rbp, 0x70(%rsp)
leaq (%r15,%r15,2), %rax
movq 0xa0(%rsp), %rcx
movq %rcx, 0x10(%r12,%rax,8)
movaps 0x90(%rsp), %xmm0
movups %xmm0, (%r12,%rax,8)
movq 0x10(%rsp), %r15
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
incq %r14
cmpq (%rsp), %r14
jne 0xfc388
movq 0x100(%rsp), %rcx
shrq $0x21, %rcx
movq 0x20(%r15), %rax
orl $0x80000000, (%rax,%rcx,8) # imm = 0x80000000
movq %rcx, %rbp
leal (%rcx,%rcx), %eax
movb $0x1, %cl
xorl %edx, %edx
movq 0x8(%rsp), %r14
movq 0xe8(%rsp), %r13
orq %rax, %rdx
movq 0x28(%r15), %rsi
movq (%rsi,%rdx,8), %rdi
movq %rdi, %rsi
andq %r12, %rsi
je 0xfc5c9
shrq $0x20, %rdi
leaq (%rdi,%rdi,2), %rdi
shlq $0x3, %rdi
addq 0x8(%r15), %rdi
xorl %r8d, %r8d
leaq (%r8,%r8,2), %r9
orb $-0x80, 0xf(%rdi,%r9,8)
movl 0x8(%rdi,%r9,8), %r9d
xorq $0x1, %r9
movq 0x28(%r15), %r10
movq (%r10,%r9,8), %r10
movq %r10, %r9
andq %r12, %r9
je 0xfc5c1
movq 0x8(%r15), %r11
shrq $0x20, %r10
shlq $0x3, %r9
leaq (%r9,%r9,2), %r9
leaq (%r10,%r10,2), %r10
leaq (%r11,%r10,8), %r10
addq $0xc, %r10
xorl %r11d, %r11d
movl -0x4(%r10,%r11), %ebx
xorl %edx, %ebx
cmpl $0x1, %ebx
jne 0xfc5b8
orb $-0x80, 0x3(%r10,%r11)
addq $0x18, %r11
cmpq %r11, %r9
jne 0xfc5a6
incq %r8
cmpq %rsi, %r8
jne 0xfc564
movl $0x1, %edx
testb $0x1, %cl
movl $0x0, %ecx
jne 0xfc53e
movq 0xb8(%rsp), %rax
movb $0x0, (%rax,%rbp)
jmp 0xfc149
movq 0x20(%rsp), %r8
incq %r8
movl $0x1, %ebp
xorl %eax, %eax
movq %r8, 0x20(%rsp)
movq 0x48(%rsp), %rsi
leaq (%rax,%rax,2), %rax
movq 0x40(%rsp), %rcx
movups (%rcx,%rax,8), %xmm0
movaps %xmm0, 0x90(%rsp)
movq 0x10(%rcx,%rax,8), %rax
movq %rax, 0xa0(%rsp)
cmpl $0x0, 0x9c(%rsp)
js 0xfc759
movq 0x38(%rsp), %rax
movq 0xf8(%rsp), %r13
cmpq %r13, %rax
jne 0xfc678
leaq (%rax,%rax), %r13
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r13
leaq (,%r13,8), %rax
leaq (%rax,%rax,2), %rsi
movq 0x30(%rsp), %rdi
callq 0x2370
movq %rax, %r12
movq 0x38(%rsp), %rax
jmp 0xfc67d
movq 0x30(%rsp), %r12
movl 0x5c(%rsp), %ecx
movl 0x1e0(%rsp), %r8d
leaq 0x1(%rax), %rbx
leaq (%rax,%rax,2), %rax
movq 0xa0(%rsp), %rdx
movq %rdx, 0x10(%r12,%rax,8)
movaps 0x90(%rsp), %xmm0
movups %xmm0, (%r12,%rax,8)
movl 0x94(%rsp), %eax
movl 0x98(%rsp), %r9d
xorl $0x1, %r9d
xorl $0x1, %eax
movq 0x108(%rsp), %rdi
movq %r14, %rsi
leaq 0x90(%rsp), %rdx
pushq %rdx
pushq %rax
callq 0xb3df3
addq $0x10, %rsp
cmpq %r13, %rbx
jne 0xfc71e
leaq (,%r13,2), %r14
testq %r13, %r13
movl $0x2, %eax
cmoveq %rax, %r14
leaq (,%r14,8), %rax
leaq (%rax,%rax,2), %rsi
movq %r12, %rdi
callq 0x2370
movq %rax, %r12
movq %r14, 0xf8(%rsp)
movq 0x8(%rsp), %r14
jmp 0xfc726
movq %r13, 0xf8(%rsp)
movq 0x20(%rsp), %r8
movq 0x48(%rsp), %rsi
addq $0x2, 0x38(%rsp)
leaq (%rbx,%rbx,2), %rax
movq 0xa0(%rsp), %rcx
movq %rcx, 0x10(%r12,%rax,8)
movaps 0x90(%rsp), %xmm0
movq %r12, 0x30(%rsp)
movups %xmm0, (%r12,%rax,8)
movl %ebp, %eax
incl %ebp
cmpq %rax, %rsi
ja 0xfc606
movq 0x108(%rsp), %rbp
jmp 0xfc0a0
movl 0xdc(%rsp), %eax
movq 0x128(%rsp), %rdx
incq %rdx
movl %eax, %ecx
cmpq %rcx, %rdx
movq %rdx, %rcx
jb 0xfbb48
jmp 0xfc79a
movq 0x20(%rsp), %r8
movq 0x200(%rsp), %r13
movq %r13, %rdi
movq 0x60(%rsp), %r14
movq %r14, %rsi
movq %r15, %rdx
movq 0x160(%rsp), %rcx
movq 0xb8(%rsp), %rbx
movq %r8, %r12
movq %rbx, %r8
xorl %r9d, %r9d
callq 0xf7b3a
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq 0x168(%rsp), %rcx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0xf7b3a
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq 0x170(%rsp), %rcx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0xf7b3a
movq %r12, %r8
movq 0x158(%rsp), %rdi
movl 0x10(%rdi), %edx
movq 0x150(%rsp), %r9
movq 0x148(%rsp), %r10
movq 0x180(%rsp), %r11
movq 0x178(%rsp), %rbx
incq %r11
movl %edx, %eax
incq %rbx
cmpq %rax, %r11
jb 0xfba2f
movq 0x200(%rsp), %rax
movq 0xc0(%rax), %rax
movq (%rax), %rcx
movq 0xb0(%rsp), %r13
movq 0x140(%rsp), %rdx
incl %edx
cmpq %rdx, %rcx
ja 0xfb9f3
cmpq $0x0, 0x38(%rsp)
je 0xfc987
movl $0x1, %ebx
xorl %r14d, %r14d
movl $0x10, %ebp
movl 0x4(%r15), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl (%r15), %ecx
jne 0xfc8d0
leal (%rcx,%rcx), %eax
testl %ecx, %ecx
cmovel %ebp, %eax
movl %eax, (%r15)
movq 0x8(%r15), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
movq %r8, %r12
callq 0x2370
movq %r12, %r8
movq %rax, 0x8(%r15)
movl 0x4(%r15), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0xfc8d4
movq 0x8(%r15), %rax
leal 0x1(%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movl %edx, 0x4(%r15)
movl %ecx, %ecx
leaq (%rcx,%rcx,2), %rcx
leaq (%r14,%r14,2), %rdx
movq 0x30(%rsp), %rdi
movq 0x10(%rdi,%rdx,8), %rsi
movq %rsi, 0x10(%rax,%rcx,8)
movups (%rdi,%rdx,8), %xmm0
movups %xmm0, (%rax,%rcx,8)
movl %ebx, %r14d
incl %ebx
movq 0x38(%rsp), %rax
cmpq %r14, %rax
ja 0xfc88b
movq %r8, %rbp
testq %rax, %rax
je 0xfc993
movq 0x28(%r15), %rdi
callq 0x2220
movq $0x0, 0x28(%r15)
andb $0x7f, 0x7(%r15)
movq %r15, %rdi
callq 0xa0a7d
movq %r15, %rdi
callq 0xa0ab6
movq %r15, %rdi
callq 0xa0b79
orb $-0x80, 0x17(%r15)
movl $0x0, 0xd8(%rsp)
jmp 0xfc993
movq $0x0, 0x30(%rsp)
movq $0x0, 0x38(%rsp)
movq $0x0, 0x40(%rsp)
xorl %r13d, %r13d
xorl %ebp, %ebp
jmp 0xfc993
movq %r8, %rbp
movq $0x0, 0x38(%rsp)
movq 0x208(%rsp), %r14
movl $0x64, %ecx
movq %r15, %rdx
xorl %r8d, %r8d
callq 0xe96a2
testq %rax, %rax
jne 0xfc99b
movq %r15, %rdi
callq 0xa0a7d
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xa7e08
cmpb $0x0, 0xd8(%rsp)
jne 0xfcadc
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
leaq (%rax,%rax,2), %rsi
movq 0x30(%rsp), %rdx
movq (%rdx,%rsi,8), %rdx
movq 0x20(%r15), %rdi
movq %rdx, %r8
shrq $0x21, %r8
cmpl $0x0, (%rdi,%r8,8)
js 0xfcacc
movq 0x30(%rsp), %r8
movl 0x8(%r8,%rsi,8), %esi
movl %esi, %r8d
shrl %r8d
cmpl $0x0, (%rdi,%r8,8)
js 0xfcacc
shrq $0x20, %rdx
movq 0x30(%r15), %rdi
cmpb $0x0, (%rdi,%rdx)
je 0xfca38
movq %rsi, %r8
xorq $0x1, %r8
cmpb $0x0, (%rdi,%r8)
jne 0xfcacc
movq 0x8(%r15), %rdi
movq 0x28(%r15), %r8
movq (%r8,%rdx,8), %r9
movq %r9, %r10
andq %rcx, %r10
je 0xfca85
shrq $0x20, %r9
shlq $0x3, %r10
leaq (%r10,%r10,2), %r8
leaq (%r9,%r9,2), %r9
leaq (%rdi,%r9,8), %rdi
addq $0xc, %rdi
xorl %r9d, %r9d
cmpl %esi, -0x4(%rdi,%r9)
jne 0xfca74
orb $-0x80, 0x3(%rdi,%r9)
addq $0x18, %r9
cmpq %r9, %r8
jne 0xfca67
movq 0x8(%r15), %rdi
movq 0x28(%r15), %r8
xorl $0x1, %esi
movq (%r8,%rsi,8), %r8
movq %r8, %rsi
andq %rcx, %rsi
je 0xfcacc
shrq $0x20, %r8
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rsi
leaq (%r8,%r8,2), %r8
leaq (%rdi,%r8,8), %rdi
addq $0xc, %rdi
xorl %r8d, %r8d
movl -0x4(%rdi,%r8), %r9d
xorl %edx, %r9d
cmpl $0x1, %r9d
jne 0xfcac3
orb $-0x80, 0x3(%rdi,%r8)
addq $0x18, %r8
cmpq %r8, %rsi
jne 0xfcaaf
incq %rax
movl %eax, %edx
cmpq %rdx, 0x38(%rsp)
ja 0xfc9da
movq %r15, %rdi
callq 0xa0a7d
movq %r15, %rdi
callq 0xa0ab6
movq %r15, %rdi
callq 0xa0b79
orb $-0x80, 0x17(%r15)
movq 0x70(%rsp), %rax
testq %rax, %rax
je 0xfcb25
movq 0x80(%rsp), %rcx
addq $0xc, %rcx
movl $0x1, %edx
orb $-0x80, 0x3(%rcx)
movl %edx, %esi
addq $0x18, %rcx
incl %edx
cmpq %rsi, %rax
ja 0xfcb14
testq %rbp, %rbp
je 0xfcbf8
movq %r13, %rcx
xorl %r14d, %r14d
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
leaq 0x70(%rsp), %rbx
movq (%rcx,%r14,8), %rdi
movq %rdi, %rdx
shrq $0x3f, %rdx
movq %rdi, %rsi
shrq $0x20, %rsi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movq 0x60(%rsp), %rax
movq 0x10(%rax), %rax
movl %edi, %ecx
leaq (%rcx,%rcx,4), %rcx
movq 0x18(%rax,%rcx,8), %r8
movl 0x4(%r8,%rsi,8), %r8d
xorq %rdx, %r8
movq 0x28(%r15), %rdx
movq (%rdx,%r8,8), %rdx
movq %rdx, %r8
andq %r12, %r8
je 0xfcbc7
movq 0x8(%r15), %r9
shrq $0x20, %rdx
leaq (%rdx,%rdx,2), %rdx
leaq (%r9,%rdx,8), %rdx
addq $0xc, %rdx
shlq $0x3, %r8
leaq (%r8,%r8,2), %r8
xorl %r9d, %r9d
xorl %r10d, %r10d
movl (%rdx,%r9), %r11d
notl %r11d
shrl $0x1f, %r11d
addl %r11d, %r10d
addq $0x18, %r9
cmpq %r9, %r8
jne 0xfcba5
movl $0x1, %r9d
testl %r10d, %r10d
jg 0xfcbca
xorl %r9d, %r9d
notq %rdi
sarq $0x3f, %rdi
orq $0x1, %rdi
leaq (%rax,%rcx,8), %rdx
movq %r15, %rcx
movq %rbx, %r8
callq 0xfcd66
incl %r14d
cmpq %r14, %rbp
movq %r13, %rcx
ja 0xfcb3f
movq 0x70(%rsp), %rax
testq %rax, %rax
je 0xfccee
movl $0x1, %ebx
xorl %edx, %edx
movl $0x10, %ebp
xorl %r14d, %r14d
movq 0x80(%rsp), %rcx
leaq (%rdx,%rdx,2), %r12
cmpl $0x0, 0xc(%rcx,%r12,8)
js 0xfcca9
movl 0x4(%r15), %esi
movl %esi, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
cmpl (%r15), %edx
jne 0xfcc6f
leal (%rdx,%rdx), %eax
testl %edx, %edx
cmovel %ebp, %eax
movl %eax, (%r15)
movq 0x8(%r15), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%r15)
movl 0x4(%r15), %esi
movl %esi, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movq 0x80(%rsp), %rcx
jmp 0xfcc73
movq 0x8(%r15), %rax
leal 0x1(%rsi), %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
andl $0x80000000, %esi       # imm = 0x80000000
orl %edi, %esi
movl %esi, 0x4(%r15)
movl %edx, %edx
leaq (%rdx,%rdx,2), %rdx
movq 0x10(%rcx,%r12,8), %rsi
movq %rsi, 0x10(%rax,%rdx,8)
movups (%rcx,%r12,8), %xmm0
movups %xmm0, (%rax,%rdx,8)
incq %r14
movq 0x70(%rsp), %rax
movl %ebx, %edx
incl %ebx
cmpq %rdx, %rax
ja 0xfcc10
testq %r14, %r14
je 0xfccee
movq 0x28(%r15), %rdi
callq 0x2220
movq $0x0, 0x28(%r15)
andb $0x7f, 0x7(%r15)
movq %r15, %rdi
callq 0xa0a7d
movq %r15, %rdi
callq 0xa0ab6
movq %r15, %rdi
callq 0xa0b79
orb $-0x80, 0x17(%r15)
movq 0xf0(%rsp), %rcx
movq (%rcx), %rax
testq %rax, %rax
movq 0x40(%rsp), %rbx
movq 0x30(%rsp), %rdi
je 0xfcd25
movq 0x8(%rcx), %rcx
xorl %edx, %edx
cmpl $-0x2, (%rcx,%rdx,4)
jg 0xfcd1b
movl $0xffffffff, (%rcx,%rdx,4) # imm = 0xFFFFFFFF
incq %rdx
movl %edx, %esi
cmpq %rsi, %rax
ja 0xfcd0e
callq 0x2220
movq %rbx, %rdi
callq 0x2220
movq %r13, %rdi
callq 0x2220
movq 0x80(%rsp), %rdi
callq 0x2220
movq 0xb8(%rsp), %rdi
callq 0x2220
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq