// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: rescue_no_coverage_aggressive(asg_t*, ma_hit_t_alloc*, ma_hit_t_alloc*, ma_sub_t**, R_to_U*, int, int, long long, unsigned int, bub_label_t*)
void rescue_no_coverage_aggressive(asg_t *r_g, ma_hit_t_alloc* sources_count, 
ma_hit_t_alloc* reverse_source, ma_sub_t **coverage_cut, R_to_U* ruIndex, int max_hang, int min_ovlp, 
long long bubble_dist, uint32_t chainLenThres, bub_label_t* b_mask_t)
{
    uint32_t n_vtx, v, k, kv, is_Unitig, uId, rId, endRid, w;
    uint32_t ava_max, ava_ol_max, ava_min_chain, ava_cur, ava_chainLen, test_oLen, is_update;
    uint64_t interval_beg, intervalLen;
    asg_t* nsg = NULL;
    ma_utg_t* nsu = NULL;
    asg_arc_t t, t_max, r_edge;
    t_max.v = t_max.ul = t.v = t.ul = (uint32_t)-1;
    ma_hit_t *h = NULL, *h_max = NULL;
    ma_hit_t_alloc* x = NULL;
    ma_ug_t* ug = NULL;
    ma_sub_t *sq = NULL;
    ma_sub_t *st = NULL;
    int32_t r;
    
    kvec_t(asg_arc_t) new_utg_edges;
    kv_init(new_utg_edges);

    kvec_t(asg_arc_t) new_rtg_edges;
    kv_init(new_rtg_edges);

    kvec_t(asg_arc_t) hap_edges;
    kv_init(hap_edges);

    kvec_t(asg_arc_t) rbub_edges;
    kv_init(rbub_edges);

    kvec_t_u64_warp u_vecs;
    kv_init(u_vecs.a);

    kvec_t_u64_warp intervals;
    kv_init(intervals.a);

    kvec_t_u32_warp chain_buffer;
    kv_init(chain_buffer.a);

    kvec_asg_arc_t_warp chain_edges;
    kv_init(chain_edges.a);


    ug = ma_ug_gen(r_g);
    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;
        nsg->seq[v].c = PRIMARY_LABLE;
        for (k = 0; k < nsu->n; k++)
        {
            rId = nsu->a[k]>>33;
            set_R_to_U(ruIndex, rId, uId, 1, &(r_g->seq[rId].c));
        }
    }




    n_vtx = nsg->n_seq * 2;
    for (v = 0; v < n_vtx; v++)
    {
        uId = v>>1;
        if(nsg->seq[uId].del) continue;
        nsu = &(ug->u.a[uId]);
        if(nsu->m == 0) continue;
        if(nsu->circ || nsu->start == UINT32_MAX || nsu->end == UINT32_MAX) continue;
        if(get_real_length(nsg, v, NULL) != 0) continue;
        ///we probably don't need this line
        ///if(get_real_length(nsg, v^1, NULL) == 0) continue;
        if(v&1)
        {
            endRid = nsu->start^1;
        }
        else
        {
            endRid = nsu->end^1;
        }


        x = &(sources_count[(endRid>>1)]);
        for (k = 0; k < x->length; k++)
        {
            ///h is the edge of endRid
            h = &(x->buffer[k]);
            sq = &((*coverage_cut)[Get_qn(*h)]);
            st = &((*coverage_cut)[Get_tn(*h)]);
            ///sq, st, and h cannot be deleted
            if(sq->del || st->del || h->del) continue;
            r = ma_hit2arc(h, sq->e - sq->s, st->e - st->s, max_hang, 
                                            asm_opt.max_hang_rate, min_ovlp, &t);
            if(r < 0) continue;
            if((t.ul>>32) != endRid) continue;
            break;
        }
        ///means there is >0 edges
        if(k != x->length) continue;

        ///x is the end read of a tip
        ///find all overlap of x
        x = &(reverse_source[(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 = &(x->buffer[k]);
            ///means we found a contained read
            if(get_no_coverage_reads_chain_simple(h, sources_count, reverse_source, *coverage_cut, 
            ruIndex, ug, r_g, max_hang, min_ovlp, endRid, uId, &chain_buffer, NULL, &ava_cur, 
            &test_oLen, &ava_chainLen, chainLenThres))
            {
                
                is_update = 0;
                if(ava_chainLen < ava_min_chain)
                {
                    is_update = 1;
                }
                else if(ava_chainLen == ava_min_chain)
                {
                    if(ava_cur > ava_max)
                    {
                        is_update = 1;
                    }
                    else if(ava_cur == ava_max && 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)
        {

            //get all edges between contained reads
            get_no_coverage_reads_chain_simple(h_max, sources_count, reverse_source, 
            *coverage_cut, ruIndex, ug, r_g, max_hang, min_ovlp, endRid, uId, &chain_buffer, 
            &chain_edges, &ava_cur, &test_oLen, &ava_chainLen, chainLenThres);
            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(ug, r_g, reverse_source, *coverage_cut, ruIndex, 
                    max_hang, min_ovlp, t_max.v, chain_buffer.a.a, chain_buffer.a.n, &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(ug, ruIndex, rbub_edges.a, rbub_edges.n);

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

            if(kv != 1) continue;

            interval_beg = hap_edges.n;
            
            //just saves all nodes here
            ///note that only the first edge is generated from reverse_source, 
            ///others are generated from source
            for (k = 0; k < chain_edges.a.n; k++)
            {
                kv_push(asg_arc_t, hap_edges, chain_edges.a.a[k]);
            }

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


            if(check_if_no_coverage(r_g, hap_edges.a+interval_beg, hap_edges.n - interval_beg) == 0)
            {
                hap_edges.n = interval_beg;
                continue;
            }

            ///there is just one edge
            ///connect multiple edges is too difficult
            for (k = 0; k < rbub_edges.n; k++)
            {
                t = rbub_edges.a[k];
                if(t.del) continue;

                w = get_corresponding_uId(ug, ruIndex, t.v);
                if(w == ((uint32_t)(-1))) continue;
                kv_push(asg_arc_t, new_rtg_edges, t);

                get_edge_from_source(reverse_source, *coverage_cut, ruIndex, max_hang, min_ovlp, 
                (t.v^1), ((t.ul>>32)^1), &t);
                kv_push(asg_arc_t, new_rtg_edges, t);


                ///for unitig graph
                asg_append_edges_to_srt(nsg, v, ug->u.a[v>>1].len, w, 0, 0, 0, 0);
                asg_append_edges_to_srt(nsg, w^1, ug->u.a[w>>1].len, v^1, 0, 0, 0, 0);

                t.ul = v; t.ul = t.ul<<32; t.v = w;
                kv_push(asg_arc_t, new_utg_edges, t);

                t.ul = w^1; t.ul = t.ul<<32; t.v = v^1;
                kv_push(asg_arc_t, new_utg_edges, t);

            }

            kv_push(uint64_t, u_vecs.a, v);

            intervalLen = hap_edges.n - interval_beg;
            interval_beg = interval_beg << 32;
            interval_beg = interval_beg | intervalLen;
            kv_push(uint64_t, intervals.a, interval_beg);
        }
    }

    nsg->seq_vis = (uint8_t*)calloc(nsg->n_seq*2, sizeof(uint8_t));    
    lable_all_bubbles(nsg, b_mask_t);


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

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

        asg_arc_del(nsg, v, w, 1);
        asg_arc_del(nsg, w^1, v^1, 1);
        new_rtg_edges.a[k].del = 1;
    }
    free(nsg->seq_vis); nsg->seq_vis = NULL;


    new_utg_edges.n = 0;
    asg_arc_t* list = NULL;
    uint32_t nextNode, curNode, pre_num_nodes = r_g->n_seq;
    ///u_vecs saves the unitig Id
    for (k = 0; k < u_vecs.a.n; k++)
    {
        w = (uint32_t)u_vecs.a.a[k];
        ///do nothing
        if(get_real_length(r_g, w, NULL) == 0) continue;

        interval_beg = intervals.a.a[k]>>32;
        intervalLen = intervals.a.a[k] & ((uint64_t)0xffffffff);
        list = hap_edges.a + interval_beg;
        if(intervalLen < 2) continue;///fprintf(stderr, "No enough edges\n");
        fprintf(stderr, "\n(%u) w>>1: %u, w&1: %u\n", k, w>>1, w&1);
        ///continue;


        if(create_fake_read(r_g, list, intervalLen) == 0) continue;


        curNode = list[0].ul>>32;
        nextNode = (r_g->n_seq - 1)<<1;
        /*****************for debug**********************/
        generate_edge(r_g, curNode, nextNode, 0, 0, 0, 0, 0, &t);
        kv_push(asg_arc_t, new_utg_edges, t);

        generate_edge(r_g, nextNode^1, curNode^1, 0, 0, 0, 0, 0, &t);
        kv_push(asg_arc_t, new_utg_edges, t);
        /*****************for debug**********************/
        // fprintf(stderr, "curNode>>1: %u, curNode&1: %u, nextNode>>1: %u, nextNode&1: %u\n", 
        // curNode>>1, curNode&1, nextNode>>1, nextNode&1);


        curNode = (r_g->n_seq - 1)<<1;
        nextNode = list[intervalLen - 1].v;
        /*****************for debug**********************/
        generate_edge(r_g, curNode, nextNode, 0, 0, 0, 0, 0, &t);
        kv_push(asg_arc_t, new_utg_edges, t);

        generate_edge(r_g, nextNode^1, curNode^1, 0, 0, 0, 0, 0, &t);
        kv_push(asg_arc_t, new_utg_edges, t);
        /*****************for debug**********************/
        // fprintf(stderr, "curNode>>1: %u, curNode&1: %u, nextNode>>1: %u, nextNode&1: %u\n", 
        // curNode>>1, curNode&1, nextNode>>1, nextNode&1);
    }

    


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

    
    free(r_g->idx);
    r_g->idx = 0;
    r_g->is_srt = 0;
    asg_cleanup(r_g);

    if(r_g->n_seq > pre_num_nodes)
    {
        (*coverage_cut) = (ma_sub_t*)realloc((*coverage_cut), r_g->n_seq*sizeof(ma_sub_t));
        R_INF.trio_flag = (uint8_t*)realloc(R_INF.trio_flag, r_g->n_seq*sizeof(uint8_t));
        ruIndex->index = (uint32_t*)realloc(ruIndex->index, r_g->n_seq*sizeof(uint32_t));
        ruIndex->len = r_g->n_seq;
        for (k = pre_num_nodes; k < r_g->n_seq; k++)
        {
            ruIndex->index[k] = (uint32_t)-1;
            R_INF.trio_flag[k] = AMBIGU;
            (*coverage_cut)[k].del = 0;
            (*coverage_cut)[k].c = PRIMARY_LABLE;
            (*coverage_cut)[k].s = 0;
            (*coverage_cut)[k].e = r_g->seq[k].len;
        }
    }
    

    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;
    }


    ma_ug_destroy(ug);
    kv_destroy(new_utg_edges);
    kv_destroy(hap_edges);
    kv_destroy(new_rtg_edges);
    kv_destroy(rbub_edges);
    kv_destroy(u_vecs.a);
    kv_destroy(chain_buffer.a);
    kv_destroy(chain_edges.a);
    kv_destroy(intervals.a);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %r9, 0xd0(%rsp)
movq %r8, %r12
movq %rcx, 0x88(%rsp)
movq %rdx, 0xc8(%rsp)
movq %rsi, 0x158(%rsp)
movq %rdi, %r13
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x10(%rsp)
orl $-0x1, 0x18(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x160(%rsp)
andq $0x0, 0x170(%rsp)
movaps %xmm0, 0x120(%rsp)
andq $0x0, 0x130(%rsp)
callq 0x76d91
movq %rax, 0x78(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x38(%rsp)
xorl %r14d, %r14d
pushq $0x1
popq %rbp
movq 0x38(%rsp), %rax
movl 0x14(%rax), %r15d
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
cmpq %r15, %r14
jae 0xbe980
movq 0x78(%rsp), %rax
movq 0x10(%rax), %rbx
imulq $0x28, %r14, %rax
cmpl $0x0, 0xc(%rbx,%rax)
je 0xbe978
movq 0x38(%rsp), %rcx
movq 0x20(%rcx), %rcx
cmpl $0x0, (%rcx,%r14,8)
js 0xbe978
addq %rax, %rbx
movb $0x0, 0x4(%rcx,%r14,8)
xorl %r15d, %r15d
movl %r15d, 0x4(%rsp)
movl 0x10(%rbx), %eax
cmpq %rax, %r15
jae 0xbe978
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %rsi
shrq $0x21, %rsi
movq 0x20(%r13), %rax
leaq (%rax,%rsi,8), %r8
addq $0x4, %r8
movq %r12, %rdi
movl %r14d, %edx
movl %ebp, %ecx
callq 0x6ab56
incq %r15
jmp 0xbe941
incq %r14
jmp 0xbe8fc
addl %r15d, %r15d
xorl %ebp, %ebp
movl $0x0, %ebx
movl $0x0, %eax
movq %rax, 0x98(%rsp)
movl $0x0, %eax
movq %rax, 0xb0(%rsp)
movl $0x0, %eax
movq %rax, 0xa8(%rsp)
movl $0x0, %eax
movq %rax, 0xe0(%rsp)
movl $0x0, %eax
movq %rax, 0x100(%rsp)
movq $0x0, 0x68(%rsp)
xorl %edx, %edx
xorl %r14d, %r14d
xorl %edi, %edi
movq $0x0, 0x118(%rsp)
movq $0x0, 0xc0(%rsp)
movq $0x0, 0x108(%rsp)
movq $0x0, 0xe8(%rsp)
movq $0x0, 0xb8(%rsp)
movq $0x0, 0xf0(%rsp)
movq $0x0, 0xf8(%rsp)
movq %r12, 0x58(%rsp)
movq %r13, 0x70(%rsp)
movq %r15, 0x80(%rsp)
cmpq %r15, %rbp
je 0xbf45f
movq %r14, 0x30(%rsp)
movl %ebp, %r14d
shrl %r14d
movq 0x38(%rsp), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%r14,8)
js 0xbead6
movq %rbx, 0x48(%rsp)
movq 0x78(%rsp), %rax
movq 0x10(%rax), %rbx
imulq $0x28, %r14, %rax
cmpl $0x0, 0xc(%rbx,%rax)
je 0xbeaca
addq %rax, %rbx
cmpl $0x0, (%rbx)
js 0xbeaca
cmpl $-0x1, 0x4(%rbx)
je 0xbeaca
cmpl $-0x1, 0x8(%rbx)
je 0xbeaca
movq %rax, 0x110(%rsp)
movq %rdx, 0x50(%rsp)
movq %rdi, 0x8(%rsp)
movq 0x38(%rsp), %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0xc2e7a
testl %eax, %eax
je 0xbeae3
movq 0x30(%rsp), %r14
movq 0x8(%rsp), %rdi
movq 0x48(%rsp), %rbx
jmp 0xbef91
movq 0x30(%rsp), %r14
movq 0x48(%rsp), %rbx
jmp 0xbeadb
movq 0x30(%rsp), %r14
incq %rbp
jmp 0xbea41
leaq 0x4(%rbx), %rax
addq $0x8, %rbx
movq %rbp, 0x60(%rsp)
testb $0x1, %bpl
cmovneq %rax, %rbx
movl (%rbx), %eax
movq %rax, %rcx
xorq $0x1, %rcx
movq %rcx, 0xa0(%rsp)
shrl %eax
imulq $0x18, %rax, %rbx
movq 0x158(%rsp), %rax
leaq (%rax,%rbx), %r12
movl 0xc(%rax,%rbx), %r15d
leaq 0x194c31(%rip), %rax    # 0x253758
movss 0x158(%rax), %xmm0
movss %xmm0, 0x44(%rsp)
xorl %ebp, %ebp
xorl %r13d, %r13d
movl %r13d, 0x4(%rsp)
cmpq %r13, %r15
je 0xbebda
movq (%r12), %rdi
movq 0x88(%rsp), %rax
movq (%rax), %rax
movl 0x4(%rdi,%rbp), %ecx
imulq $0xc, %rcx, %rdx
movl (%rax,%rdx), %ecx
testl %ecx, %ecx
js 0xbebc5
movl 0xc(%rdi,%rbp), %esi
imulq $0xc, %rsi, %r8
addq %rax, %r8
movl (%r8), %r9d
testl %r9d, %r9d
js 0xbebc5
cmpq $0x0, 0x18(%rdi,%rbp)
js 0xbebc5
addq %rbp, %rdi
addq %rdx, %rax
movl 0x4(%rax), %esi
subl %ecx, %esi
movl 0x4(%r8), %edx
subl %r9d, %edx
movq 0xd0(%rsp), %rcx
movss 0x44(%rsp), %xmm0
movl 0x1d0(%rsp), %r8d
leaq 0x10(%rsp), %r9
callq 0x6a4a7
testl %eax, %eax
js 0xbebc5
movq 0xa0(%rsp), %rax
cmpl %eax, 0x14(%rsp)
je 0xbebd1
incq %r13
addq $0x28, %rbp
jmp 0xbeb3a
cmpl %r13d, %r15d
jne 0xbee6b
addq 0xc8(%rsp), %rbx
xorl %edx, %edx
movl $0x0, 0x44(%rsp)
xorl %r12d, %r12d
pushq $-0x1
popq %r13
xorl %r15d, %r15d
movl %edx, 0x4(%rsp)
cmpl 0xc(%rbx), %edx
jae 0xbece5
movl %edx, %eax
imulq $0x28, %rax, %rbp
addq (%rbx), %rbp
movq 0x88(%rsp), %rax
movq (%rax), %rcx
subq $0x10, %rsp
movq %rbp, %rdi
movq 0xd8(%rsp), %rdx
movq 0x68(%rsp), %r8
movq 0x88(%rsp), %r9
leaq 0xec(%rsp), %rax
pushq %rax
leaq 0xa8(%rsp), %rax
pushq %rax
leaq 0xb4(%rsp), %rax
pushq %rax
pushq $0x0
leaq 0x190(%rsp), %rax
pushq %rax
pushq %r14
pushq 0xe0(%rsp)
movl 0x218(%rsp), %eax
pushq %rax
pushq 0x120(%rsp)
pushq 0xc8(%rsp)
callq 0xbdf88
addq $0x60, %rsp
testl %eax, %eax
je 0xbecc8
movl 0xdc(%rsp), %eax
cmpl %r13d, %eax
jae 0xbeca5
movl 0x94(%rsp), %ecx
movl %ecx, 0x44(%rsp)
movl 0x90(%rsp), %ecx
jmp 0xbecd1
jne 0xbecc8
movl 0x94(%rsp), %edx
movl 0x90(%rsp), %ecx
cmpl 0x44(%rsp), %edx
jbe 0xbecc1
movl %edx, 0x44(%rsp)
jmp 0xbecd1
jne 0xbecc8
cmpl %r12d, %ecx
ja 0xbecd1
movl %r12d, %ecx
movl %r13d, %eax
movq %r15, %rbp
movl 0x4(%rsp), %edx
incl %edx
movl %ecx, %r12d
movl %eax, %r13d
movq %rbp, %r15
jmp 0xbebf6
cmpl $0x0, 0x44(%rsp)
je 0xbee6b
movq 0x88(%rsp), %rax
movq (%rax), %rcx
subq $0x10, %rsp
movq %r15, %rdi
movq 0xd8(%rsp), %rdx
movq 0x68(%rsp), %r12
movq %r12, %r8
movq 0x88(%rsp), %r9
leaq 0xec(%rsp), %rax
pushq %rax
leaq 0xa8(%rsp), %rax
pushq %rax
leaq 0xb4(%rsp), %rax
pushq %rax
leaq 0x148(%rsp), %rax
pushq %rax
leaq 0x190(%rsp), %rax
pushq %rax
pushq %r14
pushq 0xe0(%rsp)
movl 0x218(%rsp), %eax
pushq %rax
pushq 0x120(%rsp)
movq 0xc8(%rsp), %r13
pushq %r13
callq 0xbdf88
addq $0x60, %rsp
movq 0x120(%rsp), %rax
testq %rax, %rax
pushq $0x2
popq %rbp
je 0xbef75
movq 0x130(%rsp), %rcx
imulq $0x18, %rax, %rax
movl -0x10(%rcx,%rax), %ebx
andl $0x0, 0x4(%rsp)
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x88(%rsp), %rax
movq (%rax), %rcx
movl 0x160(%rsp), %eax
subq $0x8, %rsp
movq 0x80(%rsp), %rdi
movq %r13, %rsi
movq 0xd0(%rsp), %rdx
movq %r12, %r8
movq 0xd8(%rsp), %r9
pushq $0x1
leaq 0x190(%rsp), %r10
pushq %r10
leaq 0x1c(%rsp), %r10
pushq %r10
pushq %rax
pushq 0x198(%rsp)
pushq %rbx
movl 0x208(%rsp), %eax
pushq %rax
callq 0xc47e9
addq $0x40, %rsp
testl %eax, %eax
je 0xbee7f
movq 0x118(%rsp), %rax
cmpq %rax, %r15
jne 0xbee3b
leaq (%rax,%rax), %r12
testq %rax, %rax
cmoveq %rbp, %r12
imulq $0x18, %r12, %rsi
movq 0x8(%rsp), %rdi
callq 0x2370
movq %r12, 0x118(%rsp)
movq 0x58(%rsp), %r12
jmp 0xbee40
movq 0x8(%rsp), %rax
incq %r15
movq 0x190(%rsp), %rcx
movq %rcx, 0x10(%rax,%r14)
movups 0x180(%rsp), %xmm0
movq %rax, 0x8(%rsp)
movups %xmm0, (%rax,%r14)
addq $0x18, %r14
jmp 0xbeda1
movq 0x30(%rsp), %r14
movq 0x58(%rsp), %r12
movq 0x70(%rsp), %r13
jmp 0xbef7a
movq 0x78(%rsp), %rdi
movq %r12, %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdx
movl %r15d, %ecx
callq 0xb5486
movq %rbx, %rdi
xorl %eax, %eax
xorl %ecx, %ecx
movq 0x48(%rsp), %rbx
movq 0x30(%rsp), %r14
movl %eax, %edx
cmpq %rdx, %r15
jbe 0xbeed5
imulq $0x18, %rdx, %rdx
movups (%rdi,%rdx), %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x10(%rdi,%rdx), %rdx
movq %rdx, 0x20(%rsp)
movl 0x1c(%rsp), %edx
notl %edx
shrl $0x1f, %edx
addl %edx, %ecx
incl %eax
jmp 0xbeea8
movl %eax, 0x4(%rsp)
cmpl $0x1, %ecx
jne 0xbef84
imulq $0x18, %r14, %rbx
xorl %r8d, %r8d
movq 0x50(%rsp), %rax
movl %r8d, 0x4(%rsp)
movl %r8d, %ecx
cmpq %rcx, 0x120(%rsp)
jbe 0xbef9b
cmpq %rax, %r14
jne 0xbef38
leaq (%rax,%rax), %r12
testq %rax, %rax
cmoveq %rbp, %r12
imulq $0x18, %r12, %rsi
movq 0x68(%rsp), %rdi
callq 0x2370
movq 0x8(%rsp), %rdi
movl 0x4(%rsp), %ecx
movl %ecx, %r8d
movq %r12, %r9
movq 0x58(%rsp), %r12
jmp 0xbef40
movq %rax, %r9
movq 0x68(%rsp), %rax
movq 0x130(%rsp), %rdx
imulq $0x18, %rcx, %rcx
incq %r14
movq 0x10(%rdx,%rcx), %rsi
movq %rsi, 0x10(%rax,%rbx)
movups (%rdx,%rcx), %xmm0
movq %rax, 0x68(%rsp)
movups %xmm0, (%rax,%rbx)
incl %r8d
addq $0x18, %rbx
movq %r9, %rax
jmp 0xbeeee
movq 0x30(%rsp), %r14
movq 0x8(%rsp), %rdi
movq 0x48(%rsp), %rbx
movq 0x80(%rsp), %r15
movq 0x60(%rsp), %rbp
movq 0x50(%rsp), %rdx
jmp 0xbeadb
xorl %esi, %esi
movq 0x48(%rsp), %rbx
movl %esi, 0x4(%rsp)
movl %esi, %ecx
cmpq %rcx, %r15
jbe 0xbf031
imulq $0x18, %rcx, %rcx
movups (%rdi,%rcx), %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x10(%rdi,%rcx), %rcx
movq %rcx, 0x20(%rsp)
cmpl $0x0, 0x1c(%rsp)
js 0xbf02a
cmpq %rax, %r14
jne 0xbf000
leaq (%rax,%rax), %rbx
testq %rax, %rax
cmoveq %rbp, %rbx
imulq $0x18, %rbx, %rsi
movq 0x68(%rsp), %rdi
callq 0x2370
movq 0x8(%rsp), %rdi
movl 0x4(%rsp), %esi
movq %rbx, %r8
movq 0x48(%rsp), %rbx
jmp 0xbf008
movq %rax, %r8
movq 0x68(%rsp), %rax
imulq $0x18, %r14, %rcx
incq %r14
movq 0x20(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx)
movaps 0x10(%rsp), %xmm0
movq %rax, 0x68(%rsp)
movups %xmm0, (%rax,%rcx)
movq %r8, %rax
incl %esi
jmp 0xbefa2
movq %rax, 0x50(%rsp)
movq 0x30(%rsp), %rax
imulq $0x18, %rax, %rsi
addq 0x68(%rsp), %rsi
movq %r14, %rdx
subq %rax, %rdx
movq %r13, %rdi
movq %rdx, 0x148(%rsp)
callq 0xbe59b
testl %eax, %eax
je 0xbf38f
movq 0x60(%rsp), %rax
movl %eax, %ecx
xorl $0x1, %ecx
movl %ecx, 0xa0(%rsp)
shlq $0x20, %rax
movq %rax, 0x150(%rsp)
xorl %ebx, %ebx
movq 0x8(%rsp), %rdx
movl %ebx, 0x4(%rsp)
movl %ebx, %eax
cmpq %rax, %r15
jbe 0xbf353
imulq $0x18, %rax, %rax
movups (%rdx,%rax), %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x10(%rdx,%rax), %rax
movq %rax, 0x20(%rsp)
cmpl $0x0, 0x1c(%rsp)
js 0xbf34c
movl 0x18(%rsp), %edx
movq 0x78(%rsp), %rdi
movq %r12, %rsi
callq 0xb542c
cmpl $-0x1, %eax
je 0xbf107
movq 0xe0(%rsp), %rcx
cmpq %rcx, 0x100(%rsp)
movl %eax, 0x44(%rsp)
jne 0xbf111
leaq (%rcx,%rcx), %rbx
testq %rcx, %rcx
cmoveq %rbp, %rbx
imulq $0x18, %rbx, %rsi
movq 0xa8(%rsp), %rdi
callq 0x2370
movq %rax, %rbp
movq %rbx, %r12
jmp 0xbf121
movq 0x8(%rsp), %rdx
jmp 0xbf34c
movq 0xa8(%rsp), %rbp
movq 0xe0(%rsp), %r12
movq 0x100(%rsp), %rax
leaq 0x1(%rax), %rbx
imulq $0x18, %rax, %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rbp,%rax)
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rbp,%rax)
movq 0x88(%rsp), %rax
movq (%rax), %rsi
movl 0x14(%rsp), %eax
movl 0x18(%rsp), %r9d
xorl $0x1, %r9d
xorl $0x1, %eax
movq 0xc8(%rsp), %rdi
movq 0xd0(%rsp), %rcx
movl 0x1d0(%rsp), %r8d
leaq 0x10(%rsp), %rdx
pushq %rdx
pushq %rax
callq 0x79204
popq %rcx
popq %rdx
cmpq %r12, %rbx
jne 0xbf1aa
movq %r12, %rax
addq %r12, %r12
testq %rax, %rax
pushq $0x2
popq %rax
cmoveq %rax, %r12
imulq $0x18, %r12, %rsi
movq %rbp, %rdi
callq 0x2370
movq %rax, %rbp
movq %r12, 0xe0(%rsp)
movq 0x110(%rsp), %rdx
imulq $0x18, %rbx, %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rbp,%rax)
movaps 0x10(%rsp), %xmm0
movq %rbp, 0xa8(%rsp)
movups %xmm0, (%rbp,%rax)
movq 0x78(%rsp), %rbx
movq 0x10(%rbx), %rax
movl (%rax,%rdx), %edx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %edx
movq 0x38(%rsp), %rdi
movq 0x60(%rsp), %rsi
movl 0x44(%rsp), %r12d
movl %r12d, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq $0x0
pushq $0x0
callq 0xac072
popq %rcx
popq %rdx
movl %r12d, %ebp
xorl $0x1, %ebp
movq 0x10(%rbx), %rax
movl %r12d, %ecx
shrl %ecx
imulq $0x28, %rcx, %rcx
movl (%rax,%rcx), %edx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %edx
movq 0x38(%rsp), %rdi
movl %ebp, %esi
movl 0xa0(%rsp), %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq $0x0
pushq $0x0
callq 0xac072
addq $0x10, %rsp
movq 0x150(%rsp), %rax
movq %rax, 0x10(%rsp)
movl %r12d, 0x18(%rsp)
movq 0x98(%rsp), %rdx
cmpq %rdx, 0xb0(%rsp)
jne 0xbf296
leaq (%rdx,%rdx), %rbx
testq %rdx, %rdx
pushq $0x2
popq %rax
cmoveq %rax, %rbx
imulq $0x18, %rbx, %rsi
movq 0x48(%rsp), %rdi
callq 0x2370
movq %rax, %rdi
movq %rbx, %rdx
jmp 0xbf29b
movq 0x48(%rsp), %rdi
movq 0xb0(%rsp), %rax
leaq 0x1(%rax), %rbx
imulq $0x18, %rax, %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rdi,%rax)
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rdi,%rax)
shlq $0x20, %rbp
movq %rbp, 0x10(%rsp)
movl 0xa0(%rsp), %eax
movl %eax, 0x18(%rsp)
cmpq %rdx, %rbx
jne 0xbf305
leaq (%rdx,%rdx), %r12
testq %rdx, %rdx
pushq $0x2
popq %rbp
cmoveq %rbp, %r12
imulq $0x18, %r12, %rsi
callq 0x2370
movq %rax, %rdi
movq %r12, 0x98(%rsp)
movq 0x58(%rsp), %r12
movq 0x8(%rsp), %rdx
jmp 0xbf31a
movq %rdx, 0x98(%rsp)
movq 0x58(%rsp), %r12
movq 0x8(%rsp), %rdx
pushq $0x2
popq %rbp
addq $0x2, 0x100(%rsp)
addq $0x2, 0xb0(%rsp)
imulq $0x18, %rbx, %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rdi,%rax)
movaps 0x10(%rsp), %xmm0
movq %rdi, 0x48(%rsp)
movups %xmm0, (%rdi,%rax)
movl 0x4(%rsp), %ebx
incl %ebx
jmp 0xbf086
movq 0x108(%rsp), %rax
cmpq %rax, 0xe8(%rsp)
jne 0xbf39e
leaq (%rax,%rax), %rbx
testq %rax, %rax
cmoveq %rbp, %rbx
leaq (,%rbx,8), %rsi
movq 0xc0(%rsp), %rdi
callq 0x2370
movq %rbx, 0x108(%rsp)
jmp 0xbf3a6
movq 0x30(%rsp), %r14
movq 0x8(%rsp), %rdi
jmp 0xbef84
movq 0xc0(%rsp), %rax
movq 0x80(%rsp), %r15
movq 0xf0(%rsp), %rsi
movq %rax, 0xc0(%rsp)
movq 0xe8(%rsp), %rcx
movq 0x60(%rsp), %rdx
movq %rdx, (%rax,%rcx,8)
cmpq %rsi, 0xf8(%rsp)
jne 0xbf403
leaq (%rsi,%rsi), %rbx
testq %rsi, %rsi
cmoveq %rbp, %rbx
leaq (,%rbx,8), %rsi
movq 0xb8(%rsp), %rdi
callq 0x2370
movq %rbx, 0xf0(%rsp)
jmp 0xbf40b
movq 0xb8(%rsp), %rax
movq 0x8(%rsp), %rdi
movq 0x48(%rsp), %rbx
movq 0x50(%rsp), %rdx
incq 0xe8(%rsp)
movq 0x30(%rsp), %rcx
shlq $0x20, %rcx
movq 0x148(%rsp), %rsi
orq %rcx, %rsi
movq %rax, 0xb8(%rsp)
movq 0xf8(%rsp), %rcx
movq %rsi, (%rax,%rcx,8)
incq %rcx
movq %rcx, 0xf8(%rsp)
movq 0x60(%rsp), %rbp
jmp 0xbeadb
movq %rdi, 0x8(%rsp)
movq 0x38(%rsp), %r14
movl 0x14(%r14), %edi
addl %edi, %edi
pushq $0x1
popq %rsi
callq 0x2120
movq %rax, 0x30(%r14)
movq %r14, %rdi
movq 0x1e8(%rsp), %rsi
callq 0xb5068
xorl %eax, %eax
movq 0xb0(%rsp), %rdi
movq 0x38(%rsp), %rbp
movl %eax, 0x4(%rsp)
movl %eax, %ecx
cmpq %rcx, %rdi
jbe 0xbf545
imulq $0x18, %rcx, %rdx
movq (%rbx,%rdx), %r14
movq 0x38(%rsp), %rcx
movq 0x20(%rcx), %rcx
movq %r14, %rsi
shrq $0x21, %rsi
cmpl $0x0, (%rcx,%rsi,8)
js 0xbf53e
movl 0x8(%rbx,%rdx), %edx
movl %edx, %esi
shrl %esi
cmpl $0x0, (%rcx,%rsi,8)
js 0xbf53e
shrq $0x20, %r14
movq 0x38(%rsp), %rcx
movq 0x30(%rcx), %rcx
movq %rdx, %r15
xorq $0x1, %r15
cmpb $0x0, (%rcx,%r14)
je 0xbf4f7
cmpb $0x0, (%rcx,%r15)
jne 0xbf53e
movq %rbp, %rdi
movl %r14d, %esi
pushq $0x1
popq %rcx
callq 0x6db50
xorl $0x1, %r14d
movq %rbp, %rdi
movl %r15d, %esi
movl %r14d, %edx
pushq $0x1
popq %rcx
callq 0x6db50
movq 0xb0(%rsp), %rdi
movl 0x4(%rsp), %eax
imulq $0x18, %rax, %rax
movq 0xa8(%rsp), %rcx
orl $0x80000000, 0xc(%rcx,%rax) # imm = 0x80000000
movl 0x4(%rsp), %eax
incl %eax
jmp 0xbf49a
movq 0x38(%rsp), %r14
movq 0x30(%r14), %rdi
callq 0x2220
andq $0x0, 0x30(%r14)
movl 0x14(%r13), %r14d
xorl %eax, %eax
movq $0x0, 0x38(%rsp)
movl %eax, 0x4(%rsp)
movl %eax, %eax
cmpq %rax, 0xe8(%rsp)
jbe 0xbf874
movq 0xc0(%rsp), %rcx
movl (%rcx,%rax,8), %ebp
movq %r13, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0xc2e7a
testl %eax, %eax
je 0xbf5ba
movq %rbx, %r15
movl 0x4(%rsp), %edx
movq 0xb8(%rsp), %rax
movq (%rax,%rdx,8), %r13
movl %r13d, %ebx
cmpq $0x2, %rbx
jae 0xbf5c2
movq 0x70(%rsp), %r13
movq %r15, %rbx
movl 0x4(%rsp), %eax
incl %eax
jmp 0xbf567
movq %r13, %rax
shrq $0x20, %rax
imulq $0x18, %rax, %rax
addq 0x68(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x193a02(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
movl %ebp, %ecx
shrl %ecx
andl $0x1, %ebp
leaq 0x12b79c(%rip), %rsi    # 0x1ead8b
movl %ebp, %r8d
xorl %eax, %eax
callq 0x22b0
movq 0x70(%rsp), %rbp
movq %rbp, %rdi
movq 0x30(%rsp), %rsi
movl %r13d, %edx
callq 0xbe68a
testl %eax, %eax
je 0xbf699
movq 0x30(%rsp), %rax
movq (%rax), %r12
movl 0x14(%rbp), %eax
leal -0x2(,%rax,2), %r13d
movq 0x20(%rbp), %rax
movq %r12, %rcx
shrq $0x21, %rcx
movl (%rax,%rcx,8), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %r12, %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
andq %rdx, %rcx
orq %rax, %rcx
movq %rcx, 0x10(%rsp)
movl %r13d, 0x18(%rsp)
andl $0x0, 0x1c(%rsp)
movb $0x0, 0x22(%rsp)
andb $0x3f, 0x21(%rsp)
movq 0x98(%rsp), %rdx
cmpq %rdx, 0x38(%rsp)
jne 0xbf6a1
leaq (%rdx,%rdx), %rbp
testq %rdx, %rdx
pushq $0x2
popq %rax
cmoveq %rax, %rbp
imulq $0x18, %rbp, %rsi
movq %r15, %rdi
callq 0x2370
movq %rax, %rdi
movq %rbp, %rdx
jmp 0xbf6a4
movq %rbp, %r13
jmp 0xbf5b7
movq %r15, %rdi
shrq $0x20, %r12
movq 0x38(%rsp), %rax
leaq 0x1(%rax), %rbp
imulq $0x18, %rax, %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rdi,%rax)
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rdi,%rax)
movl %r13d, %eax
orl $0x1, %eax
xorl $0x1, %r12d
movq 0x70(%rsp), %rcx
movq 0x20(%rcx), %rcx
shrl %r13d
movl (%rcx,%r13,8), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
shlq $0x20, %rax
orq %rcx, %rax
movq %rax, 0x10(%rsp)
movl %r12d, 0x18(%rsp)
andl $0x0, 0x1c(%rsp)
movb $0x0, 0x22(%rsp)
andb $0x3f, 0x21(%rsp)
cmpq %rdx, %rbp
jne 0xbf72a
leaq (%rdx,%rdx), %r12
testq %rdx, %rdx
pushq $0x2
popq %rax
cmoveq %rax, %r12
imulq $0x18, %r12, %rsi
callq 0x2370
movq %rax, %rdi
movq %r12, %rdx
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rax
leaq 0x2(%rax), %r13
imulq $0x18, %rbp, %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rdi,%rax)
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rdi,%rax)
movq 0x70(%rsp), %rcx
movl 0x14(%rcx), %eax
leal -0x2(,%rax,2), %r12d
imulq $0x18, %rbx, %rax
movl -0x10(%rsi,%rax), %ebx
movq 0x20(%rcx), %rax
movl %r12d, %ecx
shrl %ecx
movl (%rax,%rcx,8), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %r12, %rcx
shlq $0x20, %rcx
orq %rax, %rcx
movq %rcx, 0x10(%rsp)
movl %ebx, 0x18(%rsp)
andl $0x0, 0x1c(%rsp)
movb $0x0, 0x22(%rsp)
andb $0x3f, 0x21(%rsp)
cmpq %rdx, %r13
jne 0xbf7bc
leaq (%rdx,%rdx), %rbp
testq %rdx, %rdx
pushq $0x2
popq %rax
cmoveq %rax, %rbp
imulq $0x18, %rbp, %rsi
callq 0x2370
movq %rax, %rdi
movq %rbp, %rdx
movq 0x38(%rsp), %rax
leaq 0x3(%rax), %rbp
imulq $0x18, %r13, %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rdi,%rax)
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rdi,%rax)
movl %ebx, %eax
xorl $0x1, %eax
orl $0x1, %r12d
movq 0x70(%rsp), %r13
movq 0x20(%r13), %rcx
shrl %ebx
movl (%rcx,%rbx,8), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
shlq $0x20, %rax
orq %rcx, %rax
movq %rax, 0x10(%rsp)
movl %r12d, 0x18(%rsp)
andl $0x0, 0x1c(%rsp)
movb $0x0, 0x22(%rsp)
andb $0x3f, 0x21(%rsp)
cmpq %rdx, %rbp
jne 0xbf842
leaq (%rdx,%rdx), %rbx
testq %rdx, %rdx
pushq $0x2
popq %rax
cmoveq %rax, %rbx
imulq $0x18, %rbx, %rsi
callq 0x2370
movq %rax, %rdi
movq %rbx, 0x98(%rsp)
jmp 0xbf84a
movq %rdx, 0x98(%rsp)
movq 0x58(%rsp), %r12
addq $0x4, 0x38(%rsp)
imulq $0x18, %rbp, %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rdi,%rax)
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rdi,%rax)
movq %rdi, %rbx
jmp 0xbf5ba
xorl %eax, %eax
movl %eax, 0x4(%rsp)
movl %eax, %eax
cmpq %rax, 0x38(%rsp)
jbe 0xbf8a8
movq %r13, %rdi
callq 0x6c45d
movl 0x4(%rsp), %ecx
imulq $0x18, %rcx, %rdx
movq 0x10(%rbx,%rdx), %rsi
movq %rsi, 0x10(%rax)
movups (%rbx,%rdx), %xmm0
movups %xmm0, (%rax)
leal 0x1(%rcx), %eax
jmp 0xbf876
movq %rbx, %rbp
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
movq 0x28(%r13), %rdi
callq 0x2220
andq $0x0, 0x28(%r13)
andb $0x7f, 0x7(%r13)
movq %r13, %rdi
callq 0x694eb
movl 0x14(%r13), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpl %r14d, %eax
jbe 0xbf9b8
movq 0x88(%rsp), %rbx
movq (%rbx), %rdi
imulq $0xc, %rax, %rsi
callq 0x2370
movq %rax, (%rbx)
leaq 0x194933(%rip), %rbx    # 0x254230
movq 0x28(%rbx), %rdi
movl 0x14(%r13), %esi
movl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
andq %r15, %rsi
callq 0x2370
movq %rax, 0x28(%rbx)
movq 0x8(%r12), %rdi
movl 0x14(%r13), %esi
andq %r15, %rsi
shlq $0x2, %rsi
callq 0x2370
movq %rax, 0x8(%r12)
movl 0x14(%r13), %eax
andq %r15, %rax
movq %rax, (%r12)
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %ecx, %ecx
movl %r14d, 0x4(%rsp)
movl 0x14(%r13), %edx
andl %eax, %edx
cmpl %edx, %r14d
jae 0xbf9b8
movq 0x8(%r12), %rdx
movl %r14d, %esi
orl $-0x1, (%rdx,%rsi,4)
movq 0x28(%rbx), %rdx
movl 0x4(%rsp), %esi
movb %cl, (%rdx,%rsi)
movq 0x88(%rsp), %rdi
movq (%rdi), %rdx
movl 0x4(%rsp), %esi
imulq $0xc, %rsi, %rsi
andl %eax, (%rdx,%rsi)
movq (%rdi), %rdx
movl 0x4(%rsp), %esi
imulq $0xc, %rsi, %rsi
movb %cl, 0x8(%rdx,%rsi)
andl $0x80000000, (%rdx,%rsi) # imm = 0x80000000
movq 0x20(%r13), %rdx
movl 0x4(%rsp), %esi
movl (%rdx,%rsi,8), %edx
andl %eax, %edx
movq (%rdi), %rdi
imulq $0xc, %rsi, %rsi
movl %edx, 0x4(%rdi,%rsi)
movl 0x4(%rsp), %r14d
incl %r14d
jmp 0xbf943
movq (%r12), %rax
xorl %ecx, %ecx
movq 0xb8(%rsp), %rbx
movq 0xc0(%rsp), %r14
movq 0x68(%rsp), %r15
movl %ecx, %ecx
cmpq %rcx, %rax
jbe 0xbf9ed
movq 0x8(%r12), %rdx
cmpl $-0x2, (%rdx,%rcx,4)
jg 0xbf9e9
orl $-0x1, (%rdx,%rcx,4)
incl %ecx
jmp 0xbf9d3
movq 0x78(%rsp), %rdi
callq 0x6921d
movq %rbp, %rdi
callq 0x2220
movq %r15, %rdi
callq 0x2220
movq 0xa8(%rsp), %rdi
callq 0x2220
movq 0x8(%rsp), %rdi
callq 0x2220
movq %r14, %rdi
callq 0x2220
movq 0x170(%rsp), %rdi
callq 0x2220
movq 0x130(%rsp), %rdi
callq 0x2220
movq %rbx, %rdi
callq 0x2220
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq