// File: /workspace/github_cpp_makefile_star2_O1/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 $0x188, %rsp            # imm = 0x188
movl %r9d, 0xa8(%rsp)
movq %r8, 0x68(%rsp)
movq %rcx, %rbx
movq %rdx, 0x108(%rsp)
movq %rsi, %r15
movq %rdi, %r14
movq $0x0, 0x110(%rsp)
movl 0x14(%rsi), %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
movl $0x1, %esi
callq 0x2120
movq %rax, 0xa0(%rsp)
movq %r14, 0x58(%rsp)
movq (%r14), %rax
testq %rax, %rax
je 0xf842c
movq 0x58(%rsp), %rcx
movq 0x18(%rcx), %rcx
movq 0x20(%rcx), %rcx
xorl %edx, %edx
movb $0x0, 0x4(%rcx,%rdx,8)
incq %rdx
movl %edx, %esi
cmpq %rsi, %rax
ja 0xf841d
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x58(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0xb0(%rsp)
testl $0x7fffffff, 0x14(%rax) # imm = 0x7FFFFFFF
je 0xf84eb
xorl %r14d, %r14d
movq 0x68(%rsp), %rbp
movq 0x58(%rsp), %rax
movq 0x10(%rax), %rax
leaq (%r14,%r14,4), %rcx
cmpl $0x0, 0xc(%rax,%rcx,8)
je 0xf84cf
movq 0xb0(%rsp), %rdx
movq 0x20(%rdx), %rdx
cmpl $0x0, (%rdx,%r14,8)
js 0xf84cf
leaq (%rax,%rcx,8), %r12
cmpl $0x0, 0x10(%r12)
je 0xf84cf
xorl %r13d, %r13d
movq 0x18(%r12), %rax
movq (%rax,%r13,8), %rsi
shrq $0x21, %rsi
movq 0x20(%r15), %rax
leaq (%rax,%rsi,8), %r8
addq $0x4, %r8
movq %rbp, %rdi
movl %r14d, %edx
movl $0x1, %ecx
callq 0xa1cd4
incq %r13
movl 0x10(%r12), %eax
cmpq %rax, %r13
jb 0xf8499
incq %r14
movq 0xb0(%rsp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %r14
jb 0xf8463
movq 0x1e0(%rsp), %rax
movq 0xc0(%rax), %rax
xorl %ecx, %ecx
cmpq $0x0, (%rax)
je 0xf929c
movl 0x1d0(%rsp), %edi
movl %edi, %r8d
addl 0x1d8(%rsp), %edi
movq $0x0, 0x78(%rsp)
xorl %r9d, %r9d
xorl %esi, %esi
movq $0x0, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x50(%rsp)
movq $0x0, 0xf0(%rsp)
xorl %r12d, %r12d
movq %rdi, 0x128(%rsp)
movq %r8, 0x120(%rsp)
movq 0x10(%rax), %rax
movq %rcx, 0x118(%rsp)
leaq (%rcx,%rcx,4), %rcx
cmpl $0x3, 0x10(%rax,%rcx,8)
jb 0xf9278
leaq (%rax,%rcx,8), %r10
cmpl $0x3, 0x10(%r10)
jb 0xf9278
movl $0x2, %r11d
movl $0x1, %r14d
movq %r10, 0x130(%rsp)
movq 0x18(%r10), %rax
movq (%rax,%r14,8), %rbp
shrq $0x21, %rbp
cmpq %r8, %rbp
setb %cl
cmpq %rdi, %rbp
setae %dl
orb %cl, %dl
jne 0xf9265
movq %r9, 0xd8(%rsp)
movq %r12, 0x8(%rsp)
movq %rsi, 0x40(%rsp)
movq %r14, 0x148(%rsp)
movq -0x8(%rax,%r14,8), %rcx
shrq $0x21, %rcx
movq %r11, 0x150(%rsp)
movq (%rax,%r11,8), %r14
shrq $0x21, %r14
movq %rbp, 0xd0(%rsp)
movq 0x1e0(%rsp), %r13
movq %r13, %rdi
movq 0x58(%rsp), %r12
movq %r12, %rsi
movq %r15, %rdx
movq %rcx, 0x138(%rsp)
movq 0xa0(%rsp), %rbp
movq %rbp, %r8
movl $0x1, %r9d
callq 0xf4de5
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, 0x140(%rsp)
movl %r14d, %ecx
movq %rbp, %r8
movl $0x1, %r9d
callq 0xf4de5
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq 0xd0(%rsp), %rcx
movq %rbp, %r8
movl $0x1, %r9d
callq 0xf4de5
subq $0x8, %rsp
movq %r13, %rdi
movq 0xd8(%rsp), %rsi
leaq 0x174(%rsp), %rdx
leaq 0x170(%rsp), %rcx
leaq 0x118(%rsp), %r8
leaq 0xb4(%rsp), %r9
pushq $0x0
callq 0x13812e
addq $0x10, %rsp
cmpl $0x0, 0xac(%rsp)
je 0xf91a4
xorl %eax, %eax
movq 0x8(%rsp), %r12
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %r11
movq %rax, %rcx
movq 0x110(%rsp), %rax
movq %rcx, 0x158(%rsp)
movl (%rax,%rcx,4), %r9d
movl %r9d, %ecx
shrl %ecx
movq 0x58(%rsp), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x160(%rsp)
leaq (%rcx,%rcx,4), %rcx
cmpl $0x0, 0xc(%rax,%rcx,8)
je 0xf9184
leaq (%rax,%rcx,8), %rbp
andl $-0x2, %r9d
movq $0x0, 0xb8(%rsp)
xorl %esi, %esi
movq $0x0, 0x98(%rsp)
movq %r9, 0xe0(%rsp)
movq %rbp, 0xc0(%rsp)
movq %rdx, %r8
movl 0x1c8(%rsp), %eax
movl %eax, 0x74(%rsp)
testq %rsi, %rsi
je 0xf8763
movq 0x98(%rsp), %rcx
notl %ecx
addl 0x10(%rbp), %ecx
cmpl %eax, %ecx
cmovael %eax, %ecx
movl %ecx, 0x74(%rsp)
movq 0xb8(%rsp), %rax
orq %r9, %rax
movq 0xb0(%rsp), %rcx
movq 0x28(%rcx), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, %rcx
andq %r14, %rcx
je 0xf87d3
movq %rsi, %r10
movq 0xb0(%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 0xf87b1
testl %esi, %esi
je 0xf87d3
movq %r10, %rsi
movq %r8, %rdx
jmp 0xf9167
cmpq $0x0, 0xb8(%rsp)
je 0xf87fc
movl $0x1, %eax
movq %rax, 0xc8(%rsp)
movl $0x1, %eax
movq %rax, 0xe8(%rsp)
xorl %ecx, %ecx
jmp 0xf8819
movl 0x10(%rbp), %ecx
decl %ecx
movq $-0x1, 0xc8(%rsp)
movq $0x0, 0xe8(%rsp)
movq %r8, %rdx
cmpl $0x0, 0x74(%rsp)
movq %r12, 0x8(%rsp)
je 0xf8a9f
movq $0x0, 0x98(%rsp)
movl 0x10(%rbp), %eax
cmpq %rax, %rcx
jge 0xf8aab
movq 0x18(%rbp), %rax
movq %rcx, 0x48(%rsp)
movq (%rax,%rcx,8), %rax
movq %rax, %r12
shrq $0x20, %r12
xorl 0xe8(%rsp), %r12d
shrq $0x21, %rax
leaq (%rax,%rax,2), %rax
movq 0x108(%rsp), %rcx
leaq (%rcx,%rax,8), %rcx
xorl %ebp, %ebp
xorl %r13d, %r13d
movq %rcx, 0xf8(%rsp)
movl 0xc(%rcx), %r14d
movb $0x1, %al
cmpl %r14d, %ebp
jae 0xf89c9
movq %r13, 0x60(%rsp)
movq %rdx, 0x18(%rsp)
movq %r11, 0x10(%rsp)
leaq 0x191eb2(%rip), %rax    # 0x28a758
movss 0x158(%rax), %xmm0
movss %xmm0, 0x100(%rsp)
movl %ebp, %eax
leaq (%rax,%rax,4), %r13
shlq $0x3, %r13
addq (%rcx), %r13
subq %rax, %r14
movl 0xc(%r13), %edx
leaq (%rdx,%rdx,2), %rcx
movl (%rbx,%rcx,4), %eax
testl %eax, %eax
js 0xf89a9
movq 0x20(%r15), %rsi
cmpl $0x0, (%rsi,%rdx,8)
js 0xf89a9
movl 0x4(%r13), %edx
leaq (%rdx,%rdx,2), %rdx
leaq (%rbx,%rdx,4), %rdx
leaq (%rbx,%rcx,4), %rcx
movl 0x4(%rdx), %esi
movl (%rdx), %edx
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
andl %edi, %edx
subl %edx, %esi
movl 0x4(%rcx), %edx
subl %eax, %edx
movq %r13, %rdi
movl 0xa8(%rsp), %ecx
movss 0x100(%rsp), %xmm0
movl 0x1c0(%rsp), %r8d
leaq 0x170(%rsp), %r9
callq 0xa159b
testl %eax, %eax
js 0xf89a9
cmpl %r12d, 0x174(%rsp)
jne 0xf89a9
movl 0x178(%rsp), %eax
shrl %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq 0x68(%rsp), %rdx
cmpq %rax, (%rdx)
jbe 0xf8974
movq 0x8(%rdx), %rdx
movl (%rdx,%rax,4), %edx
cmpl $-0x1, %edx
je 0xf8974
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
testl %edx, %edx
setns %dl
jmp 0xf8976
xorl %edx, %edx
cmpl $-0x1, %ecx
sete %sil
orb %dl, %sil
jne 0xf89a9
movq 0x58(%rsp), %rdx
movq 0x18(%rdx), %rdx
movq 0x20(%rdx), %rdx
movl %ecx, %ecx
cmpl $0x0, (%rdx,%rcx,8)
js 0xf89a9
movq 0xa0(%rsp), %rcx
cmpb $0x0, (%rcx,%rax)
jne 0xf8a37
incl %ebp
addq $0x28, %r13
decq %r14
jne 0xf88c7
movq 0x10(%rsp), %r11
movq 0x18(%rsp), %rdx
movq 0x60(%rsp), %r13
movb $0x1, %al
testb %al, %al
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jne 0xf8a4f
cmpq %rdx, %r13
jne 0xf8a02
leaq (%rdx,%rdx), %r14
testq %rdx, %rdx
movl $0x2, %eax
cmoveq %rax, %r14
leaq (,%r14,8), %rax
leaq (%rax,%rax,2), %rsi
movq %r11, %rdi
callq 0x2370
movq %rax, %r11
movq %r14, %rdx
leaq (,%r13,2), %rax
addq %r13, %rax
incq %r13
movq 0x180(%rsp), %rcx
movq %rcx, 0x10(%r11,%rax,8)
movups 0x170(%rsp), %xmm0
movups %xmm0, (%r11,%rax,8)
movq 0xf8(%rsp), %rcx
jmp 0xf8881
incl %ebp
xorl %eax, %eax
movq 0x10(%rsp), %r11
movq 0x18(%rsp), %rdx
movq 0x60(%rsp), %r13
jmp 0xf89c9
testq %r13, %r13
jne 0xf8ab0
movq 0x48(%rsp), %rcx
addq 0xc8(%rsp), %rcx
movq 0x98(%rsp), %rax
incl %eax
movq %rax, 0x98(%rsp)
cmpl 0x74(%rsp), %eax
movq 0x8(%rsp), %r12
movq 0xe0(%rsp), %r9
movq 0xc0(%rsp), %rbp
jae 0xf8aab
movl $0x0, %r13d
testq %rcx, %rcx
jns 0xf8838
jmp 0xf8aca
movq $0x0, 0x98(%rsp)
xorl %r13d, %r13d
jmp 0xf8aca
movq 0x8(%rsp), %r12
movq 0xe0(%rsp), %r9
movq 0xc0(%rsp), %rbp
movq 0x48(%rsp), %rcx
movq %rcx, 0x48(%rsp)
testq %r13, %r13
je 0xf8b25
movq %r13, 0x60(%rsp)
movq 0xd8(%rsp), %rax
cmpq %rax, 0x78(%rsp)
movq %rdx, 0x18(%rsp)
jne 0xf8b2c
leaq (%rax,%rax), %r14
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r14
leaq (,%r14,8), %rsi
movq 0x40(%rsp), %rdi
movq %r11, %r13
callq 0x2370
movq %r13, %r11
movq %r14, 0xd8(%rsp)
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0xf8b31
xorl %esi, %esi
jmp 0xf9167
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
movq 0xe8(%rsp), %rdx
shll $0x1f, %edx
orl %ecx, %edx
shlq $0x20, %rdx
addq 0x160(%rsp), %rdx
movq %rax, 0x40(%rsp)
movq 0x78(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq %r15, %rdi
movq %r11, 0x10(%rsp)
movq %r11, %rsi
movq 0x60(%rsp), %rdx
callq 0xf4f30
movq 0x48(%rsp), %rcx
subq 0xc8(%rsp), %rcx
js 0xf8fe0
movl 0x10(%rbp), %eax
cmpq %rax, %rcx
jge 0xf8fe0
movq 0x18(%rbp), %rax
movq (%rax,%rcx,8), %rax
movq %rax, 0x100(%rsp)
movq %rax, %rdx
shrq $0x20, %rdx
movq 0x28(%r15), %rax
movq %rdx, 0xf8(%rsp)
movq (%rax,%rdx,8), %rax
testl %eax, %eax
movq %rcx, 0x48(%rsp)
je 0xf8d4d
movq %rax, %rcx
shrq $0x20, %rcx
leaq (%rcx,%rcx,2), %r14
shlq $0x3, %r14
addq 0x8(%r15), %r14
movl %eax, %ebp
xorl %r13d, %r13d
leaq (,%r13,2), %r12
addq %r13, %r12
cmpl $0x0, 0xc(%r14,%r12,8)
js 0xf8d41
movq 0x28(%rsp), %rax
cmpq %rax, 0x20(%rsp)
jne 0xf8c2c
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x28(%rsp)
movq 0x30(%rsp), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x30(%rsp)
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x20(%rsp)
leaq (%rax,%rax,2), %rax
movq 0x10(%r14,%r12,8), %rdx
movq %rdx, 0x10(%rcx,%rax,8)
movups (%r14,%r12,8), %xmm0
movups %xmm0, (%rcx,%rax,8)
movl 0x8(%r14,%r12,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 0xf8cb5
movl 0x4(%r14,%r12,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 0xf8cac
movl -0x4(%r8,%rsi), %r9d
xorl %ecx, %r9d
cmpl $0x1, %r9d
je 0xf8cbc
addq $0x18, %rsi
cmpq %rsi, %rdi
jne 0xf8c97
callq 0x11daa
jmp 0xf8cd9
leaq (%rax,%rdx,8), %rax
movq 0x10(%rsi,%rax), %rcx
movq %rcx, 0x90(%rsp)
movups (%rsi,%rax), %xmm0
movaps %xmm0, 0x80(%rsp)
movq 0x28(%rsp), %rax
cmpq %rax, 0x20(%rsp)
jne 0xf8d11
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x28(%rsp)
movq 0x30(%rsp), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x30(%rsp)
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x20(%rsp)
leaq (%rax,%rax,2), %rax
movq 0x90(%rsp), %rdx
movq %rdx, 0x10(%rcx,%rax,8)
movaps 0x80(%rsp), %xmm0
movups %xmm0, (%rcx,%rax,8)
incq %r13
cmpq %rbp, %r13
jne 0xf8bdd
movq 0x28(%r15), %rax
movq 0xf8(%rsp), %rcx
xorq $0x1, %rcx
movq (%rax,%rcx,8), %rax
testl %eax, %eax
je 0xf8ef2
movq %rax, %rcx
shrq $0x20, %rcx
leaq (%rcx,%rcx,2), %r14
shlq $0x3, %r14
addq 0x8(%r15), %r14
movl %eax, %r12d
xorl %r13d, %r13d
leaq (,%r13,2), %rbp
addq %r13, %rbp
cmpl $0x0, 0xc(%r14,%rbp,8)
js 0xf8ee6
movq 0x28(%rsp), %rax
cmpq %rax, 0x20(%rsp)
jne 0xf8dd1
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x28(%rsp)
movq 0x30(%rsp), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x30(%rsp)
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x20(%rsp)
leaq (%rax,%rax,2), %rax
movq 0x10(%r14,%rbp,8), %rdx
movq %rdx, 0x10(%rcx,%rax,8)
movups (%r14,%rbp,8), %xmm0
movups %xmm0, (%rcx,%rax,8)
movl 0x8(%r14,%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 0xf8e5a
movl 0x4(%r14,%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 0xf8e51
movl -0x4(%r8,%rsi), %r9d
xorl %ecx, %r9d
cmpl $0x1, %r9d
je 0xf8e61
addq $0x18, %rsi
cmpq %rsi, %rdi
jne 0xf8e3c
callq 0x11dcc
jmp 0xf8e7e
leaq (%rax,%rdx,8), %rax
movq 0x10(%rsi,%rax), %rcx
movq %rcx, 0x90(%rsp)
movups (%rsi,%rax), %xmm0
movaps %xmm0, 0x80(%rsp)
movq 0x28(%rsp), %rax
cmpq %rax, 0x20(%rsp)
jne 0xf8eb6
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x28(%rsp)
movq 0x30(%rsp), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x30(%rsp)
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x20(%rsp)
leaq (%rax,%rax,2), %rax
movq 0x90(%rsp), %rdx
movq %rdx, 0x10(%rcx,%rax,8)
movaps 0x80(%rsp), %xmm0
movups %xmm0, (%rcx,%rax,8)
incq %r13
cmpq %r12, %r13
jne 0xf8d82
movq 0x100(%rsp), %rcx
shrq $0x21, %rcx
movq 0x20(%r15), %rax
orl $0x80000000, (%rax,%rcx,8) # imm = 0x80000000
movq %rcx, %r13
leal (%rcx,%rcx), %eax
xorl %ecx, %ecx
movq 0x8(%rsp), %r12
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
leaq (%rcx,%rax), %rdx
movq 0x28(%r15), %rsi
movq (%rsi,%rdx,8), %rdi
movq %rdi, %rsi
andq %r14, %rsi
je 0xf8fa8
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 %r14, %r9
je 0xf8fa0
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), %ebp
xorl %edx, %ebp
cmpl $0x1, %ebp
jne 0xf8f97
orb $-0x80, 0x3(%r10,%r11)
addq $0x18, %r11
cmpq %r11, %r9
jne 0xf8f85
incq %r8
cmpq %rsi, %r8
jne 0xf8f43
leaq 0x1(%rcx), %rdx
testq %rcx, %rcx
movq %rdx, %rcx
je 0xf8f1c
movq 0xa0(%rsp), %rax
movb $0x0, (%rax,%r13)
movq 0x48(%rsp), %rcx
subq 0xc8(%rsp), %rcx
movq 0xc0(%rsp), %rbp
jns 0xf8b85
incq 0x78(%rsp)
movl $0x1, %ebp
xorl %eax, %eax
movq 0x18(%rsp), %rdx
movq 0x60(%rsp), %rsi
movq 0x10(%rsp), %r11
leaq (%rax,%rax,2), %rax
movups (%r11,%rax,8), %xmm0
movaps %xmm0, 0x80(%rsp)
movq 0x10(%r11,%rax,8), %rax
movq %rax, 0x90(%rsp)
cmpl $0x0, 0x8c(%rsp)
js 0xf914a
movq 0xf0(%rsp), %rax
cmpq %rax, 0x50(%rsp)
jne 0xf905f
leaq (%rax,%rax), %r14
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r14
leaq (,%r14,8), %rax
leaq (%rax,%rax,2), %rsi
movq %r12, %rdi
callq 0x2370
movq %rax, %r12
jmp 0xf9062
movq %rax, %r14
movq 0x50(%rsp), %rax
leaq 0x1(%rax), %r13
leaq (%rax,%rax,2), %rax
movq 0x90(%rsp), %rcx
movq %rcx, 0x10(%r12,%rax,8)
movaps 0x80(%rsp), %xmm0
movups %xmm0, (%r12,%rax,8)
movl 0x84(%rsp), %eax
movl 0x88(%rsp), %r9d
xorl $0x1, %r9d
xorl $0x1, %eax
movq 0x108(%rsp), %rdi
movq %rbx, %rsi
movl 0xa8(%rsp), %ecx
movl 0x1c0(%rsp), %r8d
leaq 0x80(%rsp), %rdx
pushq %rdx
pushq %rax
callq 0xb2ced
addq $0x10, %rsp
cmpq %r14, %r13
jne 0xf9102
movq %r12, %rdi
leaq (%r14,%r14), %r12
testq %r14, %r14
movl $0x2, %eax
cmoveq %rax, %r12
leaq (,%r12,8), %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %r12, 0xf0(%rsp)
movq %rax, %r12
jmp 0xf910a
movq %r14, 0xf0(%rsp)
movq 0x18(%rsp), %rdx
movq 0x60(%rsp), %rsi
movq 0x10(%rsp), %r11
addq $0x2, 0x50(%rsp)
leaq (,%r13,2), %rax
addq %r13, %rax
movq 0x90(%rsp), %rcx
movq %rcx, 0x10(%r12,%rax,8)
movaps 0x80(%rsp), %xmm0
movups %xmm0, (%r12,%rax,8)
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movl %ebp, %eax
incl %ebp
cmpq %rax, %rsi
ja 0xf8ffb
movq 0xe0(%rsp), %r9
movq 0xc0(%rsp), %rbp
movq 0xb8(%rsp), %rcx
leaq 0x1(%rcx), %rax
testq %rcx, %rcx
movq %rax, 0xb8(%rsp)
je 0xf873a
movq 0x158(%rsp), %rcx
incq %rcx
movl 0xac(%rsp), %eax
cmpq %rax, %rcx
movq %rcx, %rax
jb 0xf86cc
jmp 0xf91b3
movq 0x8(%rsp), %r12
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %r11
movq %r11, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq %r12, 0x8(%rsp)
movq 0x1e0(%rsp), %rbp
movq %rbp, %rdi
movq 0x58(%rsp), %r12
movq %r12, %rsi
movq %r15, %rdx
movq 0x138(%rsp), %rcx
movq 0xa0(%rsp), %r14
movq %r14, %r8
xorl %r9d, %r9d
callq 0xf4de5
movq %rbp, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq 0x140(%rsp), %rcx
movq %r14, %r8
xorl %r9d, %r9d
callq 0xf4de5
movq %rbp, %rdi
movq %r12, %rsi
movq 0x8(%rsp), %r12
movq %r15, %rdx
movq 0xd0(%rsp), %rcx
movq %r14, %r8
xorl %r9d, %r9d
callq 0xf4de5
movq 0x40(%rsp), %rsi
movq 0x128(%rsp), %rdi
movq 0x120(%rsp), %r8
movq 0xd8(%rsp), %r9
movq 0x130(%rsp), %r10
movq 0x150(%rsp), %r11
movq 0x148(%rsp), %r14
incq %r11
movl 0x10(%r10), %eax
incq %r14
cmpq %rax, %r11
jb 0xf859d
movq 0x118(%rsp), %rcx
incl %ecx
movq 0x1e0(%rsp), %rax
movq 0xc0(%rax), %rax
cmpq %rcx, (%rax)
ja 0xf855f
jmp 0xf92bc
xorl %r12d, %r12d
movq $0x0, 0x50(%rsp)
movq $0x0, 0x10(%rsp)
xorl %esi, %esi
movq $0x0, 0x78(%rsp)
movq %rsi, 0x40(%rsp)
cmpq $0x0, 0x50(%rsp)
movq %r12, 0x8(%rsp)
je 0xf939b
movl $0x1, %ebx
xorl %r12d, %r12d
movl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movl $0x10, %r14d
movl 0x4(%r15), %ecx
andl %ebp, %ecx
movl (%r15), %eax
cmpl %eax, %ecx
jne 0xf9313
leal (%rax,%rax), %ecx
testl %eax, %eax
cmovel %r14d, %ecx
movl %ecx, (%r15)
movq 0x8(%r15), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%r15)
movq 0x8(%r15), %rax
movl 0x4(%r15), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%r15)
leaq (%rdx,%rdx,2), %rcx
leaq (%r12,%r12,2), %rdx
movq 0x8(%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, %r12d
incl %ebx
cmpq %r12, 0x50(%rsp)
ja 0xf92e5
movq 0x28(%r15), %rdi
callq 0x2220
movq $0x0, 0x28(%r15)
andb $0x7f, 0x7(%r15)
movq %r15, %rdi
callq 0xa02fa
movq %r15, %rdi
callq 0xa0333
movq %r15, %rdi
callq 0xa03e9
orb $-0x80, 0x17(%r15)
movq 0x8(%rsp), %r12
movq 0x1e8(%rsp), %rbx
movl $0x64, %ecx
movq %r15, %rdx
xorl %r8d, %r8d
callq 0xe7e99
testq %rax, %rax
jne 0xf93a3
movq %r15, %rdi
callq 0xa02fa
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0xa6dbe
cmpq $0x0, 0x50(%rsp)
je 0xf94d8
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
leaq (%rax,%rax,2), %rsi
movq (%r12,%rsi,8), %rdx
movq 0x20(%r15), %rdi
movq %rdx, %r8
shrq $0x21, %r8
cmpl $0x0, (%rdi,%r8,8)
js 0xf94c8
movl 0x8(%r12,%rsi,8), %esi
movl %esi, %r8d
shrl %r8d
cmpl $0x0, (%rdi,%r8,8)
js 0xf94c8
shrq $0x20, %rdx
movq 0x30(%r15), %rdi
cmpb $0x0, (%rdi,%rdx)
je 0xf9434
movq %rsi, %r8
xorq $0x1, %r8
cmpb $0x0, (%rdi,%r8)
jne 0xf94c8
movq 0x28(%r15), %rdi
movq (%rdi,%rdx,8), %r8
movq %r8, %rdi
andq %rcx, %rdi
je 0xf9479
movq 0x8(%r15), %r9
shrq $0x20, %r8
shlq $0x3, %rdi
leaq (%rdi,%rdi,2), %rdi
leaq (%r8,%r8,2), %r8
leaq (%r9,%r8,8), %r8
addq $0xc, %r8
xorl %r9d, %r9d
cmpl %esi, -0x4(%r8,%r9)
jne 0xf9470
orb $-0x80, 0x3(%r8,%r9)
addq $0x18, %r9
cmpq %r9, %rdi
jne 0xf9463
xorl $0x1, %esi
movq 0x28(%r15), %rdi
movq (%rdi,%rsi,8), %rdi
movq %rdi, %rsi
andq %rcx, %rsi
je 0xf94c8
movq 0x8(%r15), %r8
shrq $0x20, %rdi
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rsi
leaq (%rdi,%rdi,2), %rdi
leaq (%r8,%rdi,8), %rdi
addq $0xc, %rdi
xorl %r8d, %r8d
movl -0x4(%rdi,%r8), %r9d
xorl %edx, %r9d
cmpl $0x1, %r9d
jne 0xf94bf
orb $-0x80, 0x3(%rdi,%r8)
addq $0x18, %r8
cmpq %r8, %rsi
jne 0xf94ab
incq %rax
movl %eax, %edx
cmpq %rdx, 0x50(%rsp)
ja 0xf93e0
movq %r15, %rdi
callq 0xa02fa
movq %r15, %rdi
callq 0xa0333
movq %r15, %rdi
callq 0xa03e9
orb $-0x80, 0x17(%r15)
cmpq $0x0, 0x20(%rsp)
je 0xf9520
movl $0x1, %eax
xorl %ecx, %ecx
movq 0x30(%rsp), %rdx
leaq (%rcx,%rcx,2), %rcx
orl $0x80000000, 0xc(%rdx,%rcx,8) # imm = 0x80000000
movl %eax, %ecx
incl %eax
cmpq %rcx, 0x20(%rsp)
ja 0xf9504
cmpq $0x0, 0x78(%rsp)
movq 0x40(%rsp), %rax
je 0xf95f7
xorl %r14d, %r14d
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
leaq 0x20(%rsp), %rbx
movq (%rax,%r14,8), %rdi
movq %rdi, %rdx
shrq $0x3f, %rdx
movq %rdi, %rsi
shrq $0x20, %rsi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movq 0x58(%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 0xf95c7
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 0xf95a5
movl $0x1, %r9d
testl %r10d, %r10d
jg 0xf95ca
xorl %r9d, %r9d
notq %rdi
sarq $0x3f, %rdi
orq $0x1, %rdi
leaq (%rax,%rcx,8), %rdx
movq %r15, %rcx
movq %rbx, %r8
callq 0xf976b
incl %r14d
cmpq %r14, 0x78(%rsp)
movq 0x40(%rsp), %rax
ja 0xf953f
cmpq $0x0, 0x20(%rsp)
movq 0x68(%rsp), %rdx
je 0xf96f1
movl $0x1, %ebx
xorl %eax, %eax
movl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movl $0x10, %r14d
xorl %r12d, %r12d
movq 0x30(%rsp), %rcx
leaq (%rax,%rax,2), %r13
cmpl $0x0, 0xc(%rcx,%r13,8)
js 0xf96a5
movl 0x4(%r15), %ecx
andl %ebp, %ecx
movl (%r15), %eax
cmpl %eax, %ecx
jne 0xf965c
leal (%rax,%rax), %ecx
testl %eax, %eax
cmovel %r14d, %ecx
movl %ecx, (%r15)
movq 0x8(%r15), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%r15)
movq 0x8(%r15), %rax
movl 0x4(%r15), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%r15)
leaq (%rdx,%rdx,2), %rcx
movq 0x30(%rsp), %rdx
movups (%rdx,%r13,8), %xmm0
movups %xmm0, (%rax,%rcx,8)
movq 0x10(%rdx,%r13,8), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
incq %r12
movq 0x68(%rsp), %rdx
movl %ebx, %eax
incl %ebx
cmpq %rax, 0x20(%rsp)
ja 0xf961d
testq %r12, %r12
je 0xf96f1
movq 0x28(%r15), %rdi
callq 0x2220
movq $0x0, 0x28(%r15)
andb $0x7f, 0x7(%r15)
movq %r15, %rdi
callq 0xa02fa
movq %r15, %rdi
callq 0xa0333
movq %r15, %rdi
callq 0xa03e9
movq 0x68(%rsp), %rdx
orb $-0x80, 0x17(%r15)
movq (%rdx), %rax
testq %rax, %rax
movq 0x8(%rsp), %rdi
je 0xf9729
movq 0x68(%rsp), %rcx
movq 0x8(%rcx), %rcx
xorl %edx, %edx
cmpl $-0x2, (%rcx,%rdx,4)
jg 0xf971f
movq 0x68(%rsp), %rsi
movq 0x8(%rsi), %rsi
movl $0xffffffff, (%rsi,%rdx,4) # imm = 0xFFFFFFFF
incq %rdx
movl %edx, %esi
cmpq %rsi, %rax
ja 0xf9709
callq 0x2220
movq 0x10(%rsp), %rdi
callq 0x2220
movq 0x40(%rsp), %rdi
callq 0x2220
movq 0x30(%rsp), %rdi
callq 0x2220
movq 0xa0(%rsp), %rdi
callq 0x2220
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq