// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: rescue_bubbles_by_cmk_reads(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*, unsigned char*)
void rescue_bubbles_by_cmk_reads(ma_ug_t *i_u_g, asg_t *rg, ma_hit_t_alloc* sources, ma_sub_t *coverage_cut, R_to_U* ruIndex, int max_hang, int min_ovlp, uint32_t chainLenThres, uint32_t beg_idx, uint32_t occ, bubble_type* bub, bub_label_t* b_mask_t, uint8_t *cmk)
{
    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, contain_rId;
    uint32_t ava_max, ava_ol_max, ava_min_chain, ava_cur, test_oLen, ava_chainLen, is_update, v, w;
    uint64_t l_bub, m_bub, r_bub, a_nodes; ma_ug_t* ug = i_u_g;
    ma_utg_t *nsu = NULL, *u = NULL; ma_hit_t_alloc* x = NULL; ma_hit_t *h = NULL, *h_max = NULL;
    uint8_t* expect_vis = NULL; CALLOC(expect_vis, rg->n_seq);
    uint8_t* circle_vis = NULL; CALLOC(circle_vis, rg->n_seq);
    uint8_t* utg_vis = NULL; CALLOC(utg_vis, ug->g->n_seq); asg_arc_t t, t_max, r_edge;

    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_t(asg_arc_t) rbub_edges; kv_init(rbub_edges);

    kvec_t_u64_warp u_vecs; kv_init(u_vecs.a);

    kvec_asg_arc_t_warp chain_edges; kv_init(chain_edges.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, &(rg->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, rg, l_bub, expect_vis, 1);
            set_rtg_flag_by_bubble(bub, ug, rg, r_bub, expect_vis, 1);
            set_rtg_flag_by_bubble(bub, ug, rg, 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;
                for (k_v = 0; k_v < 2; k_v++) {
                    v = (uId<<1) + k_v;
                    if(get_real_length(nsg, v, NULL) != 0) continue;

                    if(v&1) endRid = nsu->start^1;
                    else endRid = nsu->end^1;

                    //x is the end read of a tip
                    ///find all overlap of x
                    x = &(sources[(endRid>>1)]);
                    ava_ol_max = ava_max = 0; ava_min_chain = (uint32_t)-1;
                    h_max = NULL;
                    for (k = 0; k < x->length; k++) {
                        ///h is the edge of endRid
                        h = &(x->buffer[k]);
                        ///means we found a contained read
                        if(get_chimeric_reads_chain_by_broken_bub(h, sources, coverage_cut, ruIndex, ug, rg, max_hang, min_ovlp, endRid, uId, &chain_edges, &ava_cur, &test_oLen, &ava_chainLen, expect_vis, circle_vis, utg_vis, chainLenThres, 1, cmk)) {
                            is_update = 0;

                            if(ava_cur > ava_max) {
                                is_update = 1;
                            } else if(ava_cur == ava_max) {
                                if(ava_chainLen < ava_min_chain) {
                                    is_update = 1;
                                } else if(ava_chainLen == ava_min_chain && test_oLen > ava_ol_max) {
                                    is_update = 1;
                                }
                            }

                            if(is_update) {
                                ava_min_chain = ava_chainLen;
                                ava_max = ava_cur;
                                ava_ol_max = test_oLen;
                                h_max = h;
                            }
                        }
                    }

                    if(ava_max > 0) {
                        ///fprintf(stderr, "ava_max: %u\n", ava_max);
                        get_chimeric_reads_chain_by_broken_bub(h_max, sources, coverage_cut, ruIndex, ug, rg, max_hang, min_ovlp, endRid, uId, &chain_edges, &ava_cur, &test_oLen, &ava_chainLen, expect_vis, circle_vis, NULL, chainLenThres, 1, cmk);
                        if(chain_edges.a.n < 1) continue;
                        ///the last cantained read
                        t_max = chain_edges.a.a[chain_edges.a.n-1];

                        k = 0; rbub_edges.n = 0;
                        ///edges from the last contained read to other unitigs

                        while(get_edge2existing_node_advance_by_broken_bub(ug, rg, sources, coverage_cut, ruIndex, expect_vis, max_hang, min_ovlp, t_max.v, &k, &r_edge, 1)) {
                            kv_push(asg_arc_t, rbub_edges, r_edge);
                        }

                        ///need to do transitive reduction
                        ///note here is different to standard transitive reduction
                        minor_transitive_reduction_r_g(rg, rbub_edges.a, rbub_edges.n);

                        for (k = 0; k < chain_edges.a.n; k++) {
                            t_max = chain_edges.a.a[k];
                            ///save all infor for reverting
                            get_R_to_U(ruIndex, t_max.v>>1, &contain_rId, &is_Unitig);
                            if((is_Unitig == 1) || (is_Unitig == ((uint32_t)-1))) contain_rId = ((uint32_t)-1);///shouldn't be possible
                            a_nodes=contain_rId; 
                            a_nodes=a_nodes<<32; 
                            a_nodes=a_nodes|((uint64_t)(t_max.v>>1));
                            kv_push(uint64_t, u_vecs.a, a_nodes);

                            rg->seq[t_max.v>>1].del = 0;
                            coverage_cut[t_max.v>>1].del = 0;
                            coverage_cut[t_max.v>>1].c = PRIMARY_LABLE;

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

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


                        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, rg, l_bub, expect_vis, 0);
            set_rtg_flag_by_bubble(bub, ug, rg, r_bub, expect_vis, 0);
            set_rtg_flag_by_bubble(bub, ug, rg, m_bub, expect_vis, 0);
        }
    }

    asg_arc_t* p = NULL;
    for (k = 0; k < new_edges.n; k++) {
        p = asg_arc_pushp(rg);
        *p = new_edges.a[k];
    }

    if(new_edges.n != 0) {
        free(rg->idx);
        rg->idx = 0;
        rg->is_srt = 0;
        asg_cleanup(rg);
        asg_symm(rg);
    }

    pre_clean(sources, coverage_cut, rg, 0);

    lable_all_bubbles(rg, 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(rg->seq[v>>1].del) continue;
        if(rg->seq[w>>1].del) continue;
        ///if this edge is at a bubble
        if(rg->seq_vis[v]!=0 && rg->seq_vis[w^1]!=0) continue;

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

    for (k = 0; k < u_vecs.a.n; k++) {
        w = (uint32_t)u_vecs.a.a[k];
        w = w<<1;
        if((!rg->seq[w>>1].del) && (get_real_length(rg, w, NULL)!=0 || get_real_length(rg, (w^1), NULL)!=0)) {
            w=w>>1;
            ruIndex->index[w] = (uint32_t)-1;
        } else {
            w=w>>1;
            rg->seq[w].del = 1; coverage_cut[w].del = 1;
        }
    }
    
    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(chain_edges.a);
    free(expect_vis);
    free(circle_vis);
    free(utg_vis);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movl %r9d, 0x9c(%rsp)
movq %r8, %rbp
movq %rcx, 0xc0(%rsp)
movq %rdx, 0xa8(%rsp)
movq %rdi, %r14
movq $0x0, 0x188(%rsp)
movq %rsi, %r13
movl 0x14(%rsi), %r12d
movl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
andq %r15, %r12
movl $0x1, %esi
movq %r12, %rdi
callq 0x2120
movq %rax, 0x100(%rsp)
movl $0x1, %esi
movq %r12, %rdi
callq 0x2120
movq %rax, 0x148(%rsp)
movq 0x18(%r14), %r12
movl 0x14(%r12), %ebx
andq %rbx, %r15
movl $0x1, %esi
movq %r15, %rdi
callq 0x2120
movq %rax, 0x180(%rsp)
movq %r14, 0xd0(%rsp)
movq (%r14), %rax
testq %rax, %rax
movq %r12, 0x138(%rsp)
je 0xf96ad
movq 0x20(%r12), %rcx
xorl %edx, %edx
movb $0x0, 0x4(%rcx,%rdx,8)
incq %rdx
movl %edx, %esi
cmpq %rsi, %rax
ja 0xf968f
movl 0x14(%r12), %ebx
movl %ebx, %r15d
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
movq %r13, %r10
xorps %xmm0, %xmm0
movaps %xmm0, 0x190(%rsp)
movq $0x0, 0x1a0(%rsp)
testl %r15d, %r15d
je 0xf975f
xorl %r15d, %r15d
movq 0xd0(%rsp), %rax
movq 0x10(%rax), %rax
leaq (%r15,%r15,4), %rcx
cmpl $0x0, 0xc(%rax,%rcx,8)
je 0xf974c
movq 0x138(%rsp), %rdx
movq 0x20(%rdx), %rdx
cmpl $0x0, (%rdx,%r15,8)
js 0xf974c
leaq (%rax,%rcx,8), %r14
cmpl $0x0, 0x10(%r14)
je 0xf974c
xorl %ebx, %ebx
movq 0x18(%r14), %rax
movq (%rax,%rbx,8), %rsi
shrq $0x21, %rsi
movq 0x20(%r10), %rax
leaq (%rax,%rsi,8), %r8
addq $0x4, %r8
movq %rbp, %rdi
movl %r15d, %edx
movl $0x1, %ecx
callq 0xa27e9
movq %r13, %r10
incq %rbx
movl 0x10(%r14), %eax
cmpq %rax, %rbx
jb 0xf970a
movq 0x138(%rsp), %rax
movl 0x14(%rax), %ebx
incq %r15
movl %ebx, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %r15
jb 0xf96d3
movq 0x260(%rsp), %rax
movq 0xc0(%rax), %rax
movq (%rax), %rcx
movb $0x1, %dl
movl %edx, 0x114(%rsp)
xorl %edx, %edx
testq %rcx, %rcx
movq %rbp, 0xb0(%rsp)
je 0xfa7db
movl 0x250(%rsp), %r9d
movl %r9d, %r11d
addl 0x258(%rsp), %r9d
xorl %r12d, %r12d
movq $0x0, 0x178(%rsp)
movq $0x0, 0xf0(%rsp)
movq $0x0, 0x158(%rsp)
movq $0x0, 0xc8(%rsp)
xorl %r8d, %r8d
movq $0x0, 0xf8(%rsp)
movq $0x0, 0x78(%rsp)
movl %esi, 0xdc(%rsp)
movq %r10, 0x90(%rsp)
movq %r9, 0x1c8(%rsp)
movq %r11, 0x1c0(%rsp)
movq 0x10(%rax), %rsi
movq %rdx, 0x1b8(%rsp)
leaq (%rdx,%rdx,4), %rdi
movl 0x10(%rsi,%rdi,8), %edx
cmpl $0x3, %edx
jb 0xfa6c0
leaq (%rsi,%rdi,8), %rdi
movl $0x2, %ebx
movl $0x1, %r14d
movq %rdi, 0x1d0(%rsp)
movq 0x18(%rdi), %rax
movq (%rax,%r14,8), %r13
shrq $0x21, %r13
cmpq %r11, %r13
setb %cl
cmpq %r9, %r13
setae %sil
orb %cl, %sil
jne 0xfa69d
movq %r8, 0xa0(%rsp)
movq %r12, 0x88(%rsp)
movq %r14, 0x1e8(%rsp)
movq -0x8(%rax,%r14,8), %rcx
shrq $0x21, %rcx
movq %rbx, 0x1f0(%rsp)
movq (%rax,%rbx,8), %r15
shrq $0x21, %r15
movq 0x260(%rsp), %r12
movq %r12, %rdi
movq %r13, 0x160(%rsp)
movq 0xd0(%rsp), %r13
movq %r13, %rsi
movq %r10, %rdx
movq %rcx, 0x1d8(%rsp)
movq 0x100(%rsp), %rbx
movq %rbx, %r8
movl $0x1, %r9d
movq %r10, %r14
callq 0xf7b3a
movq %r12, %rdi
movq %r13, %rsi
movq %r14, %rdx
movq %r15, 0x1e0(%rsp)
movl %r15d, %ecx
movq %rbx, %r8
movl $0x1, %r9d
callq 0xf7b3a
movq %r12, %rdi
movq %r13, %rsi
movq 0x160(%rsp), %r13
movq %r14, %rdx
movl %r13d, %ecx
movq %rbx, %r8
movl $0x1, %r9d
callq 0xf7b3a
movq $0x0, (%rsp)
movq %r12, %rdi
movq %r13, %rsi
leaq 0x204(%rsp), %rdx
leaq 0x200(%rsp), %rcx
leaq 0x188(%rsp), %r8
leaq 0x11c(%rsp), %r9
callq 0x13df01
movl 0x11c(%rsp), %eax
testl %eax, %eax
je 0xfa5c1
xorl %edx, %edx
movq 0x88(%rsp), %r9
movq 0xa0(%rsp), %r10
movq 0xa8(%rsp), %rbx
movq 0x78(%rsp), %r15
movq 0x188(%rsp), %rcx
movq %rdx, 0x170(%rsp)
movl (%rcx,%rdx,4), %esi
movl %esi, %edx
shrl %edx
movq 0xd0(%rsp), %rcx
movq 0x10(%rcx), %rcx
leaq (%rdx,%rdx,4), %rdx
cmpl $0x0, 0xc(%rcx,%rdx,8)
je 0xfa5a9
leaq (%rcx,%rdx,8), %rax
movq %rax, 0x1f8(%rsp)
andl $-0x2, %esi
movb $0x1, %dl
movl $0x8, %eax
xorl %ecx, %ecx
movq %rsi, 0xe8(%rsp)
movl %edx, 0x98(%rsp)
orq %rsi, %rcx
movq 0x138(%rsp), %rdx
movq 0x28(%rdx), %rdx
movq (%rdx,%rcx,8), %rcx
movq %rcx, %rdx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
andq %rsi, %rdx
je 0xf9a38
movq 0x138(%rsp), %rsi
movq 0x8(%rsi), %rsi
shrq $0x20, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rsi,%rcx,8), %rcx
addq $0xc, %rcx
shlq $0x3, %rdx
leaq (%rdx,%rdx,2), %rdx
xorl %esi, %esi
xorl %edi, %edi
movl (%rcx,%rsi), %r8d
notl %r8d
shrl $0x1f, %r8d
addl %r8d, %edi
addq $0x18, %rsi
cmpq %rsi, %rdx
jne 0xf9a19
testl %edi, %edi
jne 0xfa56f
movq 0x1f8(%rsp), %rcx
movl (%rcx,%rax), %esi
movl %esi, %eax
shrl %eax
leaq (%rax,%rax,2), %rax
cmpl $0x0, 0xc(%rbx,%rax,8)
je 0xfa56f
movq %r10, 0xa0(%rsp)
movq %r9, 0x88(%rsp)
movq %r15, 0x78(%rsp)
xorl $0x1, %esi
leaq (%rbx,%rax,8), %r14
xorl %r15d, %r15d
movl $0xffffffff, 0x80(%rsp) # imm = 0xFFFFFFFF
xorl %r13d, %r13d
movq $0x0, 0xb8(%rsp)
xorl %ebx, %ebx
movl $0x0, 0x74(%rsp)
movq (%r14), %rbp
addq %r15, %rbp
movq 0x180(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x148(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x100(%rsp), %rax
movq %rax, 0x40(%rsp)
leaq 0xe0(%rsp), %rax
movq %rax, 0x38(%rsp)
leaq 0xe4(%rsp), %rax
movq %rax, 0x30(%rsp)
leaq 0x118(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x190(%rsp), %rax
movq %rax, 0x20(%rsp)
movl %esi, %r12d
movl %esi, 0x10(%rsp)
movl 0x240(%rsp), %eax
movl %eax, 0x8(%rsp)
movl 0x9c(%rsp), %eax
movl %eax, (%rsp)
movl $0x1, 0x60(%rsp)
movq %rbp, %rdi
movq 0xa8(%rsp), %rsi
movq 0xc0(%rsp), %rdx
movq 0xb0(%rsp), %rcx
movq 0xd0(%rsp), %r8
movq 0x90(%rsp), %r9
callq 0xf5f6d
testl %eax, %eax
je 0xf9b85
movl 0x118(%rsp), %ecx
cmpl 0x74(%rsp), %ecx
movl %r12d, %esi
jbe 0xf9b8c
movl 0xe0(%rsp), %eax
movl %eax, 0x80(%rsp)
movl 0xe4(%rsp), %eax
movl %ecx, 0x74(%rsp)
movq %rbp, 0xb8(%rsp)
jmp 0xf9bba
movl %ebx, %eax
movl %r12d, %esi
jmp 0xf9bba
jne 0xf9bb8
movl 0xe0(%rsp), %edx
movl 0xe4(%rsp), %eax
cmpl 0x80(%rsp), %edx
jae 0xf9bb2
movl %ecx, 0x74(%rsp)
movl %edx, 0x80(%rsp)
jmp 0xf9b7b
jne 0xf9bb8
cmpl %ebx, %eax
ja 0xf9b77
movl %ebx, %eax
incq %r13
movl 0xc(%r14), %ecx
addq $0x28, %r15
movl %eax, %ebx
cmpq %rcx, %r13
jb 0xf9a99
cmpl $0x0, 0x74(%rsp)
movl 0x9c(%rsp), %ecx
je 0xfa07b
movq 0x148(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x100(%rsp), %rax
movq %rax, 0x40(%rsp)
leaq 0xe0(%rsp), %rax
movq %rax, 0x38(%rsp)
leaq 0xe4(%rsp), %rax
movq %rax, 0x30(%rsp)
leaq 0x118(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x190(%rsp), %rax
movq %rax, 0x20(%rsp)
movl %esi, 0x10(%rsp)
movl 0x240(%rsp), %eax
movl %eax, 0x8(%rsp)
movl %ecx, (%rsp)
movl $0x1, 0x60(%rsp)
movq $0x0, 0x50(%rsp)
movq 0xb8(%rsp), %rdi
movq 0xa8(%rsp), %rbx
movq %rbx, %rsi
movq 0xc0(%rsp), %rdx
movq 0xb0(%rsp), %rbp
movq %rbp, %rcx
movq 0xd0(%rsp), %r8
movq 0x90(%rsp), %r9
callq 0xf5f6d
movq 0x190(%rsp), %rax
testq %rax, %rax
movq 0x78(%rsp), %r15
je 0xfa0af
movq 0x1a0(%rsp), %rcx
leaq (%rax,%rax,2), %rax
movl -0x10(%rcx,%rax,8), %ecx
movl %ecx, %eax
shrl %eax
leaq (%rax,%rax,2), %rax
movl 0xc(%rbx,%rax,8), %r9d
testl %r9d, %r9d
je 0xfa0c4
movq %rcx, 0x140(%rsp)
leaq (%rbx,%rax,8), %r8
xorl %r12d, %r12d
xorl %ebp, %ebp
movq 0x90(%rsp), %rcx
movq %r8, 0x168(%rsp)
movq %r12, 0x108(%rsp)
movq (%r8), %rbx
leaq 0x19ba5b(%rip), %rax    # 0x295758
movss 0x158(%rax), %xmm0
movl %r9d, 0x74(%rsp)
movq %rbx, 0x80(%rsp)
movl %ebp, %eax
leaq (%rax,%rax,4), %r8
movl 0xc(%rbx,%r8,8), %r12d
leaq (%r12,%r12,2), %rsi
movq 0xc0(%rsp), %rax
movl (%rax,%rsi,4), %eax
testl %eax, %eax
js 0xf9e3b
movq 0x20(%rcx), %rdx
cmpl $0x0, (%rdx,%r12,8)
js 0xf9e3b
leaq (%rbx,%r8,8), %rdx
movq 0xc0(%rsp), %rdi
leaq (%rdi,%rsi,4), %rsi
movl 0x4(%rsi), %r11d
subl %eax, %r11d
movq 0x18(%rdx), %rsi
testl %esi, %esi
js 0xf9d74
movl 0x10(%rdx), %edi
movl 0x14(%rdx), %r10d
subl %r10d, %r11d
movl %r11d, %r9d
movl %edi, %r11d
jmp 0xf9d81
movl 0x10(%rdx), %edi
movl 0x14(%rdx), %r10d
subl %r10d, %r11d
movl %edi, %r9d
movq (%rbx,%r8,8), %r8
movq %r8, %rax
shrq $0x20, %rax
leaq (%rax,%rax,2), %rax
movq 0xc0(%rsp), %rbx
leaq (%rbx,%rax,4), %rax
movl 0x4(%rax), %r14d
movl (%rax), %eax
movl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
andl %ebx, %eax
subl %eax, %r14d
cmpl %r8d, %r11d
movl %r8d, %eax
cmovll %r11d, %eax
movl 0x8(%rdx), %ebx
movl %r14d, 0xb8(%rsp)
subl %ebx, %r14d
cmpl %r9d, %r14d
movl %r9d, %r15d
cmovll %r14d, %r15d
movl 0x9c(%rsp), %r13d
cmpl %r13d, %eax
jg 0xf9e29
cmpl %r13d, %r15d
jg 0xf9e29
movl %ebx, %r13d
subl %r8d, %r13d
cvtsi2ss %r13, %xmm1
addl %eax, %r13d
addl %r15d, %r13d
cvtsi2ss %r13, %xmm2
mulss %xmm0, %xmm2
ucomiss %xmm1, %xmm2
ja 0xf9e21
subl %edi, %r10d
xorps %xmm1, %xmm1
cvtsi2ss %r10, %xmm1
addl %eax, %r15d
addl %r10d, %r15d
xorps %xmm2, %xmm2
cvtsi2ss %r15, %xmm2
mulss %xmm0, %xmm2
ucomiss %xmm1, %xmm2
jbe 0xf9e4b
movq 0x90(%rsp), %rcx
movq 0x78(%rsp), %r15
movl 0x74(%rsp), %r9d
movq 0x80(%rsp), %rbx
incl %ebp
cmpl %r9d, %ebp
jb 0xf9d12
jmp 0xfa09d
cmpl %r9d, %r14d
setl %al
setg %cl
cmpl %r11d, %r8d
setg %r14b
setl %r10b
orb %cl, %r14b
cmpb $0x1, %r14b
jne 0xf9e21
orb %al, %r10b
je 0xf9e21
movl 0x240(%rsp), %eax
cmpl %eax, %r13d
jl 0xf9e21
cmpl %eax, %r15d
movq 0x90(%rsp), %rcx
jl 0xf9e29
movq %rcx, %r14
addl %ebx, %r9d
movl 0xb8(%rsp), %r10d
subl %r9d, %r10d
xorl %r9d, %r9d
movl %r8d, %ebx
subl %r11d, %ebx
setle %al
cmovlel %r10d, %ebx
movl %esi, %r10d
shrl $0x10, %r10d
andl $0x4000, %r10d          # imm = 0x4000
movl 0xdc(%rsp), %ecx
andl $0x3fff, %ecx           # imm = 0x3FFF
orl %r10d, %ecx
movzbl 0x21(%rdx), %r10d
shll $0xf, %r10d
orl %ecx, %r10d
movl %r10d, 0xdc(%rsp)
testl %ebx, %ebx
js 0xf9f63
movb %al, %r9b
movq %r8, %r15
shrq $0x1f, %r15
andl $-0x2, %r15d
orq %r9, %r15
cmpl 0x140(%rsp), %r15d
movq %r14, %rcx
jne 0xf9e29
movl %r12d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq 0xb0(%rsp), %r9
cmpq %rax, (%r9)
jbe 0xf9e29
movq 0x8(%r9), %r9
movl (%r9,%rax,4), %r9d
cmpl $-0x2, %r9d
jg 0xf9e29
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
movq 0xd0(%rsp), %r10
movq 0x18(%r10), %r10
movq 0x20(%r10), %r10
cmpl $0x0, (%r10,%r9,8)
js 0xf9f63
movq 0x100(%rsp), %r9
cmpb $0x0, (%r9,%rax)
jne 0xf9f70
movq %r14, %rcx
jmp 0xf9e29
movq 0x78(%rsp), %r15
movq %r14, %rcx
jmp 0xf9e2e
cmpl %r11d, %r8d
setg %cl
testl %esi, %esi
setns %r13b
movb 0x20(%rdx), %r9b
movq 0x108(%rsp), %r14
cmpq 0x158(%rsp), %r14
jne 0xf9fdd
movb %cl, 0x80(%rsp)
leaq (%r14,%r14), %rcx
testq %r14, %r14
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x158(%rsp)
leaq (,%rcx,8), %rax
leaq (%rax,%rax,2), %rsi
movq 0xc8(%rsp), %rdi
movb %r9b, 0x74(%rsp)
callq 0x2370
movb 0x80(%rsp), %cl
movb 0x74(%rsp), %r9b
jmp 0xf9fe5
movq 0xc8(%rsp), %rax
movq 0x168(%rsp), %r8
xorb %cl, %r13b
movzbl %r13b, %ecx
leal (%rcx,%r12,2), %esi
shlq $0x20, %r15
movl %ebx, %ecx
orq %r15, %rcx
movl 0xb8(%rsp), %edi
subl %ebx, %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
incl %ebp
leaq (%r14,%r14,2), %rdx
incq %r14
movq %rcx, (%rax,%rdx,8)
movl %esi, 0x8(%rax,%rdx,8)
movl %edi, 0xc(%rax,%rdx,8)
movl 0xdc(%rsp), %ecx
movw %cx, 0x10(%rax,%rdx,8)
movb %r9b, 0x12(%rax,%rdx,8)
movb 0x157(%rsp), %cl
movb %cl, 0x17(%rax,%rdx,8)
movl 0x153(%rsp), %esi
movq %rax, 0xc8(%rsp)
movl %esi, 0x13(%rax,%rdx,8)
movl 0xc(%r8), %r9d
cmpl %r9d, %ebp
movq 0x90(%rsp), %rcx
movq 0x78(%rsp), %r15
movq 0xa8(%rsp), %rbx
movq %r14, %r12
jb 0xf9ceb
jmp 0xfa0cf
movq 0xb0(%rsp), %rbp
movq 0x78(%rsp), %r15
movq 0x88(%rsp), %r9
movq 0xa0(%rsp), %r10
jmp 0xfa567
movq 0xa8(%rsp), %rbx
movq 0x108(%rsp), %r12
jmp 0xfa0cf
movq 0x88(%rsp), %r9
movq 0xa0(%rsp), %r10
jmp 0xfa56f
xorl %r12d, %r12d
movq 0x90(%rsp), %rcx
movq %rcx, %rdi
movq 0xc8(%rsp), %rsi
movl %r12d, %edx
callq 0xf7c90
cmpq $0x0, 0x190(%rsp)
movq %r12, 0x108(%rsp)
je 0xfa3d7
movq 0x88(%rsp), %r9
leaq (%r9,%r9), %rax
movq %rax, 0x140(%rsp)
leaq (,%r9,8), %rax
movq %rax, 0xb8(%rsp)
movq 0xa0(%rsp), %r10
leaq (%r10,%r10), %rax
movq %rax, 0x80(%rsp)
leaq (,%r10,8), %rax
leaq (%rax,%rax,2), %r14
movl $0x1, %ecx
xorl %r13d, %r13d
xorl %eax, %eax
movq 0xb0(%rsp), %rbp
movq 0xf8(%rsp), %rdx
movl %ecx, 0x74(%rsp)
movq %rdx, 0xf8(%rsp)
movq %r15, 0x78(%rsp)
movq 0x1a0(%rsp), %rcx
leaq (%rax,%rax,2), %rax
movl 0x8(%rcx,%rax,8), %r12d
movl %r12d, %ebx
shrl %ebx
cmpq %rbx, (%rbp)
jbe 0xfa191
movq 0x8(%rbp), %rdx
movl (%rdx,%rbx,4), %r15d
testl %r15d, %r15d
jns 0xfa197
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq (%rcx,%rax,8), %rbp
cmpq 0x178(%rsp), %r9
movq %r9, 0x88(%rsp)
jne 0xfa1ec
movq 0x140(%rsp), %rax
leaq (%rax,%r13), %rcx
testq %r9, %r9
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x178(%rsp)
leaq (,%rcx,8), %rsi
movq 0xf0(%rsp), %rdi
callq 0x2370
movq 0xa0(%rsp), %r10
jmp 0xfa1f4
movq 0xf0(%rsp), %rax
shlq $0x20, %r15
orq %rbx, %r15
movq %rax, 0xf0(%rsp)
movq 0xb8(%rsp), %rcx
addq %rcx, %rax
movq %r15, (%rax,%r13,4)
movq 0x90(%rsp), %rax
movq 0x20(%rax), %rax
andl $0x7fffffff, (%rax,%rbx,8) # imm = 0x7FFFFFFF
leaq (%rbx,%rbx,2), %rax
movq 0xc0(%rsp), %rsi
andb $0x7f, 0x3(%rsi,%rax,4)
leaq (%r10,%r13), %rbx
movb $0x0, 0x8(%rsi,%rax,4)
shrq $0x20, %rbp
leaq 0x120(%rsp), %rax
movq %rax, 0x8(%rsp)
movl %r12d, (%rsp)
movq 0xa8(%rsp), %rdi
movl 0x9c(%rsp), %ecx
movl 0x240(%rsp), %r8d
movl %ebp, %r9d
callq 0xb3df3
movq 0xf8(%rsp), %r15
cmpq %r15, %rbx
jne 0xfa2af
testq %rbx, %rbx
movq 0x80(%rsp), %r15
movl $0x2, %eax
cmoveq %rax, %r15
leaq (,%r15,8), %rax
leaq (%rax,%rax,2), %rsi
movq 0x78(%rsp), %rdi
callq 0x2370
movq %rax, %rdx
jmp 0xfa2b4
movq 0x78(%rsp), %rdx
movq 0xa0(%rsp), %rax
leaq (%rax,%r13), %rbx
incq %rbx
movq 0x130(%rsp), %rax
movq %rax, 0x10(%rdx,%r14)
movups 0x120(%rsp), %xmm0
movups %xmm0, (%rdx,%r14)
xorl $0x1, %r12d
xorl $0x1, %ebp
leaq 0x120(%rsp), %rax
movq %rax, 0x8(%rsp)
movl %ebp, (%rsp)
movq 0xa8(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movl 0x9c(%rsp), %ecx
movl 0x240(%rsp), %r8d
movl %r12d, %r9d
movq %rdx, %r12
callq 0xb3df3
cmpq %r15, %rbx
movq %r15, %rdx
jne 0xfa362
leaq (%rdx,%rdx), %rbx
testq %rdx, %rdx
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,8), %rax
leaq (%rax,%rax,2), %rsi
movq %r12, %rdi
callq 0x2370
movq %rax, %r15
movq %rbx, %rdx
movq 0xb0(%rsp), %rbp
movq 0x88(%rsp), %r9
jmp 0xfa375
movq 0xb0(%rsp), %rbp
movq 0x88(%rsp), %r9
movq %r12, %r15
movl 0x74(%rsp), %ecx
movq 0x130(%rsp), %rax
movq %rax, 0x28(%r15,%r14)
movups 0x120(%rsp), %xmm0
movups %xmm0, 0x18(%r15,%r14)
movl %ecx, %eax
addq $0x2, %r13
addq $0x4, 0x80(%rsp)
addq $0x30, %r14
incl %ecx
incq %r9
cmpq %rax, 0x190(%rsp)
movq 0xa0(%rsp), %r10
ja 0xfa157
addq %r13, %r10
movq 0xa8(%rsp), %rbx
movq 0x108(%rsp), %r12
jmp 0xfa3f7
movq 0xb0(%rsp), %rbp
movq 0x88(%rsp), %r9
movq 0xa0(%rsp), %r10
movq 0xf8(%rsp), %rdx
testq %r12, %r12
je 0xfa598
movl $0x1, %ebx
xorl %eax, %eax
movq %r9, 0x88(%rsp)
leaq (%rax,%rax,2), %rax
movq 0xc8(%rsp), %rcx
movups (%rcx,%rax,8), %xmm0
movaps %xmm0, 0x120(%rsp)
movq 0x10(%rcx,%rax,8), %rax
movq %rax, 0x130(%rsp)
cmpl $0x0, 0x12c(%rsp)
js 0xfa552
movq %rbp, %r12
cmpq %rdx, %r10
movq %r10, %r13
jne 0xfa479
leaq (%r10,%r10), %rbp
testq %r10, %r10
movl $0x2, %eax
cmoveq %rax, %rbp
leaq (,%rbp,8), %rax
leaq (%rax,%rax,2), %rsi
movq %r15, %rdi
callq 0x2370
movq %r13, %r10
movq %rax, %r15
jmp 0xfa47c
movq %rdx, %rbp
leaq 0x1(%r10), %r14
leaq (%r10,%r10,2), %rax
movq 0x130(%rsp), %rcx
movq %rcx, 0x10(%r15,%rax,8)
movaps 0x120(%rsp), %xmm0
movups %xmm0, (%r15,%rax,8)
movl 0x124(%rsp), %eax
movl 0x128(%rsp), %r9d
xorl $0x1, %r9d
xorl $0x1, %eax
leaq 0x120(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movl %eax, (%rsp)
movq 0xa8(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movl 0x9c(%rsp), %ecx
movl 0x240(%rsp), %r8d
callq 0xb3df3
cmpq %rbp, %r14
movq %rbp, %rdx
jne 0xfa51a
movq %r15, %rdi
leaq (%rdx,%rdx), %r15
testq %rdx, %rdx
movl $0x2, %eax
cmoveq %rax, %r15
leaq (,%r15,8), %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %r15, %rdx
movq %rax, %r15
movq 0x88(%rsp), %r9
movq %r12, %rbp
movq %r13, %r10
addq $0x2, %r10
leaq (%r14,%r14,2), %rax
movq 0x130(%rsp), %rcx
movq %rcx, 0x10(%r15,%rax,8)
movaps 0x120(%rsp), %xmm0
movups %xmm0, (%r15,%rax,8)
movq 0x108(%rsp), %r12
movl %ebx, %eax
incl %ebx
cmpq %rax, %r12
ja 0xfa40f
movq %rdx, 0xf8(%rsp)
movq 0xa8(%rsp), %rbx
movq 0xe8(%rsp), %rsi
movl 0x98(%rsp), %edx
movl $0x1, %ecx
movl $0x4, %eax
testb $0x1, %dl
movl $0x0, %edx
jne 0xf99ca
jmp 0xfa5a2
movq %rdx, 0xf8(%rsp)
jmp 0xfa56f
movl 0x11c(%rsp), %eax
movq 0x170(%rsp), %rdx
incq %rdx
movl %eax, %ecx
cmpq %rcx, %rdx
jb 0xf9978
jmp 0xfa5d6
movq 0x88(%rsp), %r9
movq 0xa0(%rsp), %r10
movq 0x78(%rsp), %r15
movq %r15, 0x78(%rsp)
movq %r10, 0xa0(%rsp)
movq %r9, 0x88(%rsp)
movq 0x260(%rsp), %r12
movq %r12, %rdi
movq 0xd0(%rsp), %r13
movq %r13, %rsi
movq 0x90(%rsp), %r14
movq %r14, %rdx
movq 0x1d8(%rsp), %rcx
movq 0x100(%rsp), %rbx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0xf7b3a
movq %r12, %rdi
movq %r13, %rsi
movq %r14, %rdx
movq 0x1e0(%rsp), %rcx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0xf7b3a
movq %r12, %rdi
movq %r13, %rsi
movq %r14, %rdx
movq 0x160(%rsp), %rcx
movq %rbx, %r8
xorl %r9d, %r9d
callq 0xf7b3a
movq %r14, %r10
movq 0xa0(%rsp), %r8
movq 0x88(%rsp), %r12
movq 0x1d0(%rsp), %rdi
movl 0x10(%rdi), %edx
movq 0x1c8(%rsp), %r9
movq 0x1c0(%rsp), %r11
movq 0x1f0(%rsp), %rbx
movq 0x1e8(%rsp), %r14
incq %rbx
movl %edx, %eax
incq %r14
cmpq %rax, %rbx
jb 0xf983e
movq 0x260(%rsp), %rax
movq 0xc0(%rax), %rax
movq (%rax), %rcx
movq 0x1b8(%rsp), %rdx
incl %edx
cmpq %rdx, %rcx
ja 0xf980a
testq %r8, %r8
je 0xfa804
movl $0x1, %ebx
xorl %r14d, %r14d
movl $0x10, %r15d
movq 0x78(%rsp), %rdi
movl 0x4(%r10), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl (%r10), %ecx
jne 0xfa73f
leal (%rcx,%rcx), %eax
testl %ecx, %ecx
cmovel %r15d, %eax
movl %eax, (%r10)
movq 0x8(%r10), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
movq %r8, %r13
movq %r10, %rbp
callq 0x2370
movq 0x78(%rsp), %rdi
movq %rbp, %r10
movq %r13, %r8
movq %rax, 0x8(%rbp)
movl 0x4(%rbp), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0xfa743
movq 0x8(%r10), %rax
leal 0x1(%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movl %edx, 0x4(%r10)
movl %ecx, %ecx
leaq (%rcx,%rcx,2), %rcx
leaq (%r14,%r14,2), %rdx
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
cmpq %r14, %r8
ja 0xfa6ef
testq %r8, %r8
movq 0xb0(%rsp), %rbp
je 0xfa807
movq 0x28(%r10), %rdi
movq %r8, %rbx
movq %r10, %r14
callq 0x2220
movq $0x0, 0x28(%r14)
andb $0x7f, 0x7(%r14)
movq %r14, %rdi
callq 0xa0a7d
movq %r14, %rdi
callq 0xa0ab6
movq %r14, %rdi
callq 0xa0b79
movq %r14, %r10
movq %rbx, %r8
orb $-0x80, 0x17(%r14)
movl $0x0, 0x114(%rsp)
jmp 0xfa807
movq $0x0, 0x78(%rsp)
xorl %r8d, %r8d
movq $0x0, 0xc8(%rsp)
movq $0x0, 0xf0(%rsp)
xorl %r12d, %r12d
jmp 0xfa807
xorl %r8d, %r8d
movq %r8, %r14
movq 0x268(%rsp), %rbx
movl $0x64, %ecx
movq %r10, %rdx
xorl %r8d, %r8d
movq %r10, %r13
callq 0xe96a2
movq %r13, %r10
testq %rax, %rax
jne 0xfa812
movq %r10, %rdi
callq 0xa0a7d
movq %r13, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0xa7e08
movq %r13, %rdi
cmpb $0x0, 0x114(%rsp)
jne 0xfa966
movq %r14, %r11
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
leaq (%rax,%rax,2), %rsi
movq 0x78(%rsp), %rdx
movq (%rdx,%rsi,8), %rdx
movq 0x20(%rdi), %r9
movq %rdx, %r8
shrq $0x21, %r8
cmpl $0x0, (%r9,%r8,8)
js 0xfa958
movq 0x78(%rsp), %r8
movl 0x8(%r8,%rsi,8), %esi
movl %esi, %r8d
shrl %r8d
cmpl $0x0, (%r9,%r8,8)
js 0xfa958
shrq $0x20, %rdx
movq 0x30(%rdi), %r9
cmpb $0x0, (%r9,%rdx)
je 0xfa8bc
movq %rsi, %r8
xorq $0x1, %r8
cmpb $0x0, (%r9,%r8)
jne 0xfa958
movq 0x8(%rdi), %rbx
movq 0x28(%rdi), %r8
movq (%r8,%rdx,8), %r9
movq %r9, %r10
andq %rcx, %r10
je 0xfa90e
shrq $0x20, %r9
shlq $0x3, %r10
leaq (%r10,%r10,2), %r8
leaq (%r9,%r9,2), %r9
leaq (%rbx,%r9,8), %r10
addq $0xc, %r10
xorl %r9d, %r9d
movq %r13, %rdi
cmpl %esi, -0x4(%r10,%r9)
jne 0xfa8fb
orb $-0x80, 0x3(%r10,%r9)
addq $0x18, %r9
cmpq %r9, %r8
jne 0xfa8ee
movq 0x8(%rdi), %rbx
movq 0x28(%rdi), %r8
jmp 0xfa911
movq %r13, %rdi
xorl $0x1, %esi
movq (%r8,%rsi,8), %r8
movq %r8, %rsi
andq %rcx, %rsi
je 0xfa958
shrq $0x20, %r8
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rsi
leaq (%r8,%r8,2), %r8
leaq (%rbx,%r8,8), %r10
addq $0xc, %r10
xorl %r8d, %r8d
movl -0x4(%r10,%r8), %r9d
xorl %edx, %r9d
cmpl $0x1, %r9d
jne 0xfa94f
orb $-0x80, 0x3(%r10,%r8)
addq $0x18, %r8
cmpq %r8, %rsi
jne 0xfa93b
incq %rax
movl %eax, %edx
cmpq %rdx, %r11
ja 0xfa85d
callq 0xa0a7d
movq %r13, %rdi
callq 0xa0ab6
movq %r13, %rdi
callq 0xa0b79
orb $-0x80, 0x17(%r13)
testq %r12, %r12
je 0xfaa91
movq %r13, %rsi
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq 0xf0(%rsp), %rdx
movq (%rdx,%rax,8), %r9
movq 0x20(%rsi), %rsi
movl %r9d, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movl (%rsi,%rdx,8), %edi
testl %edi, %edi
js 0xfaa66
addl %r9d, %r9d
movq 0x28(%r13), %r8
movl %r9d, %r9d
movq (%r8,%r9,8), %r10
movq %r10, %r11
andq %rcx, %r11
je 0xfaa10
movq 0x8(%r13), %rbx
shrq $0x20, %r10
leaq (%r10,%r10,2), %r10
leaq (%rbx,%r10,8), %r10
addq $0xc, %r10
shlq $0x3, %r11
leaq (%r11,%r11,2), %r11
xorl %ebx, %ebx
xorl %ebp, %ebp
movl (%r10,%rbx), %r14d
notl %r14d
shrl $0x1f, %r14d
addl %r14d, %ebp
addq $0x18, %rbx
cmpq %rbx, %r11
jne 0xfa9ed
testl %ebp, %ebp
movq 0xb0(%rsp), %rbp
jne 0xfaa59
movq 0x8(%r8,%r9,8), %r8
movq %r8, %r9
andq %rcx, %r9
je 0xfaa66
movq 0x8(%r13), %r10
shrq $0x20, %r8
leaq (%r8,%r8,2), %r8
leaq (%r10,%r8,8), %r8
addq $0xc, %r8
shlq $0x3, %r9
leaq (%r9,%r9,2), %r9
xorl %r10d, %r10d
xorl %r11d, %r11d
movl (%r8,%r10), %ebx
notl %ebx
shrl $0x1f, %ebx
addl %ebx, %r11d
addq $0x18, %r10
cmpq %r10, %r9
jne 0xfaa3f
testl %r11d, %r11d
je 0xfaa66
movq 0x8(%rbp), %rsi
movl $0xffffffff, (%rsi,%rdx,4) # imm = 0xFFFFFFFF
jmp 0xfaa80
orl $0x80000000, %edi       # imm = 0x80000000
movl %edi, (%rsi,%rdx,8)
leaq (%rdx,%rdx,2), %rdx
movq 0xc0(%rsp), %rsi
orb $-0x80, 0x3(%rsi,%rdx,4)
incq %rax
movl %eax, %edx
cmpq %rdx, %r12
movq %r13, %rsi
ja 0xfa993
movq (%rbp), %rax
testq %rax, %rax
movq 0xc8(%rsp), %rbx
movq 0x78(%rsp), %rdi
je 0xfaac4
movq 0x8(%rbp), %rcx
xorl %edx, %edx
cmpl $-0x2, (%rcx,%rdx,4)
jg 0xfaaba
movl $0xffffffff, (%rcx,%rdx,4) # imm = 0xFFFFFFFF
incq %rdx
movl %edx, %esi
cmpq %rsi, %rax
ja 0xfaaad
callq 0x2220
movq %rbx, %rdi
callq 0x2220
movq 0xf0(%rsp), %rdi
callq 0x2220
movq 0x1a0(%rsp), %rdi
callq 0x2220
movq 0x100(%rsp), %rdi
callq 0x2220
movq 0x148(%rsp), %rdi
callq 0x2220
movq 0x180(%rsp), %rdi
callq 0x2220
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq