// File: /workspace/github_cpp_makefile_star2_O1/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, 0xa0(%rsp)
movq %r8, %r15
movq %rcx, %r14
movq %rdx, 0xd0(%rsp)
movq %rsi, 0x158(%rsp)
movq %rdi, %r12
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x10(%rsp)
movl $0xffffffff, 0x18(%rsp) # imm = 0xFFFFFFFF
xorl %eax, %eax
movq %rax, 0x170(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x160(%rsp)
movq %rax, 0x140(%rsp)
movaps %xmm0, 0x130(%rsp)
callq 0xb0285
movq %rax, %rbp
movq 0x18(%rax), %r13
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl 0x14(%r13), %esi
movq %r14, 0x40(%rsp)
je 0xfd435
xorl %r14d, %r14d
movq 0x10(%rbp), %rax
leaq (%r14,%r14,4), %rcx
cmpl $0x0, 0xc(%rax,%rcx,8)
je 0xfd41e
movq 0x20(%r13), %rdx
cmpl $0x0, (%rdx,%r14,8)
js 0xfd41e
leaq (%rax,%rcx,8), %rbx
movb $0x0, 0x4(%rdx,%r14,8)
movl $0x0, 0xc(%rsp)
cmpl $0x0, 0x10(%rbx)
je 0xfd41e
xorl %eax, %eax
movq 0x18(%rbx), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %rsi
shrq $0x21, %rsi
movq 0x20(%r12), %rax
leaq (%rax,%rsi,8), %r8
addq $0x4, %r8
movq %r15, %rdi
movl %r14d, %edx
movl $0x1, %ecx
callq 0xa1cd4
movl 0xc(%rsp), %eax
incl %eax
movl %eax, 0xc(%rsp)
cmpl 0x10(%rbx), %eax
jb 0xfd3e4
incq %r14
movl 0x14(%r13), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
cmpq %rsi, %r14
jb 0xfd3b0
movq 0x40(%rsp), %r14
movq %r13, 0x50(%rsp)
testl %esi, %esi
movq %r15, 0xb8(%rsp)
movq %rbp, 0x108(%rsp)
je 0xfe0aa
addl %esi, %esi
movl $0x0, %edx
movl $0x0, %eax
movq %rax, 0xe8(%rsp)
movl $0x0, %eax
movq %rax, 0x118(%rsp)
movl $0x0, %ebx
movl $0x0, %eax
movq %rax, 0xc0(%rsp)
movl $0x0, %eax
movq %rax, 0x110(%rsp)
movl $0x0, %eax
movq %rax, 0x78(%rsp)
movq $0x0, 0x128(%rsp)
movq $0x0, 0x90(%rsp)
xorl %ecx, %ecx
movq $0x0, 0xf0(%rsp)
movq $0x0, 0x60(%rsp)
movq $0x0, 0x100(%rsp)
movq $0x0, 0xf8(%rsp)
movq $0x0, 0xb0(%rsp)
xorl %r15d, %r15d
movq $0x0, 0x98(%rsp)
movq $0x0, 0x68(%rsp)
movq %rsi, 0x70(%rsp)
movl %edx, %r13d
shrl %r13d
movq 0x50(%rsp), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%r13,8)
js 0xfd5d8
movq 0x10(%rbp), %rax
leaq (,%r13,4), %rdi
addq %r13, %rdi
cmpl $0x0, 0xc(%rax,%rdi,8)
je 0xfd5d8
leaq (%rax,%rdi,8), %rax
cmpl $0x0, (%rax)
js 0xfd5d8
cmpl $-0x1, 0x4(%rax)
je 0xfd5d8
cmpl $-0x1, 0x8(%rax)
je 0xfd5d8
movq %rdi, 0x120(%rsp)
movq %rcx, 0x48(%rsp)
movq 0x50(%rsp), %rcx
movq 0x28(%rcx), %rcx
movq %rdx, 0x28(%rsp)
movq (%rcx,%rdx,8), %rcx
movq %rcx, %rdx
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
andq %rdi, %rdx
je 0xfd5ef
movq 0x50(%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 0xfd5ae
testl %edi, %edi
movq 0x70(%rsp), %rsi
je 0xfd5ef
movq 0x48(%rsp), %r13
jmp 0xfdff8
movq %rcx, %r13
incq %rdx
movq %r13, %rcx
cmpq %rsi, %rdx
jne 0xfd50c
jmp 0xfe0fa
movq %r15, 0x58(%rsp)
movq %rbx, 0x38(%rsp)
leaq 0x4(%rax), %rcx
addq $0x8, %rax
movq 0x28(%rsp), %rdx
testb $0x1, %dl
cmovneq %rcx, %rax
movl (%rax), %eax
movq %rax, %rcx
xorq $0x1, %rcx
movq %rcx, 0x88(%rsp)
shrl %eax
leaq (%rax,%rax,2), %rdi
movq 0x158(%rsp), %rax
movl 0xc(%rax,%rdi,8), %r15d
movl $0x0, 0xc(%rsp)
testq %r15, %r15
je 0xfd720
movq %rdi, 0x80(%rsp)
leaq (%rax,%rdi,8), %rax
movq %r14, %rcx
movq (%rax), %r14
movq (%rcx), %rbp
leaq 0x18d0fa(%rip), %rax    # 0x28a758
movss 0x158(%rax), %xmm0
movss %xmm0, 0x34(%rsp)
xorl %ebx, %ebx
movl 0x4(%r14), %eax
leaq (%rax,%rax,2), %rcx
movl (%rbp,%rcx,4), %eax
testl %eax, %eax
js 0xfd6ed
movl 0xc(%r14), %edx
leaq (%rdx,%rdx,2), %rdx
leaq (,%rdx,4), %rdx
addq %rbp, %rdx
movl (%rdx), %edi
testl %edi, %edi
js 0xfd6ed
cmpq $0x0, 0x18(%r14)
js 0xfd6ed
leaq (,%rcx,4), %rcx
addq %rbp, %rcx
movl 0x4(%rcx), %esi
subl %eax, %esi
movl 0x4(%rdx), %edx
subl %edi, %edx
movq %r14, %rdi
movq 0xa0(%rsp), %rcx
movss 0x34(%rsp), %xmm0
movl 0x1d0(%rsp), %r8d
leaq 0x10(%rsp), %r9
callq 0xa159b
movq 0x70(%rsp), %rsi
testl %eax, %eax
js 0xfd6ed
movq 0x88(%rsp), %rax
cmpl %eax, 0x14(%rsp)
je 0xfd704
incq %rbx
movl %ebx, 0xc(%rsp)
addq $0x28, %r14
cmpq %rbx, %r15
jne 0xfd66e
movl %r15d, %ebx
movq 0x108(%rsp), %rbp
movq 0x40(%rsp), %r14
movq 0x28(%rsp), %rdx
movq 0x80(%rsp), %rdi
jmp 0xfd722
xorl %ebx, %ebx
cmpl %r15d, %ebx
movq 0x48(%rsp), %rcx
jne 0xfd89a
movl $0x0, 0xc(%rsp)
movq 0xd0(%rsp), %rax
cmpl $0x0, 0xc(%rax,%rdi,8)
movq 0xb8(%rsp), %r15
je 0xfd8a4
leaq (%rax,%rdi,8), %rbx
movq $0x0, 0xc8(%rsp)
movl $0xffffffff, 0x34(%rsp) # imm = 0xFFFFFFFF
movl $0x0, 0xe0(%rsp)
movl $0x0, 0x80(%rsp)
xorl %eax, %eax
movl %eax, %eax
leaq (%rax,%rax,4), %r14
shlq $0x3, %r14
addq (%rbx), %r14
movq 0x40(%rsp), %rax
movq (%rax), %rcx
subq $0x10, %rsp
movq %r14, %rdi
movq 0xe0(%rsp), %rdx
movq %r15, %r8
movq %rbp, %r9
leaq 0xec(%rsp), %rax
pushq %rax
leaq 0xc0(%rsp), %rax
pushq %rax
leaq 0xcc(%rsp), %rax
pushq %rax
pushq $0x0
leaq 0x190(%rsp), %rax
pushq %rax
pushq %r13
pushq 0xc8(%rsp)
movl 0x218(%rsp), %eax
pushq %rax
pushq 0xf0(%rsp)
pushq %r12
callq 0xfc9a6
addq $0x60, %rsp
testl %eax, %eax
je 0xfd83b
movl 0xdc(%rsp), %eax
cmpl 0x34(%rsp), %eax
movq 0x28(%rsp), %rdx
movq 0x48(%rsp), %rcx
jae 0xfd847
movl 0xac(%rsp), %esi
movl %esi, 0x80(%rsp)
movl 0xa8(%rsp), %esi
movl %esi, 0xe0(%rsp)
movl %eax, 0x34(%rsp)
movq %r14, 0xc8(%rsp)
jmp 0xfd86b
movq 0x28(%rsp), %rdx
movq 0x48(%rsp), %rcx
jmp 0xfd86b
jne 0xfd86b
movl 0x80(%rsp), %esi
cmpl %esi, 0xac(%rsp)
ja 0xfd811
jne 0xfd86b
movl 0xe0(%rsp), %esi
cmpl %esi, 0xa8(%rsp)
ja 0xfd811
movl 0xc(%rsp), %eax
incl %eax
movl %eax, 0xc(%rsp)
cmpl 0xc(%rbx), %eax
jb 0xfd783
cmpl $0x0, 0x80(%rsp)
sete %al
movq 0x40(%rsp), %r14
movq 0x38(%rsp), %rbx
movq 0x70(%rsp), %rsi
jmp 0xfd8b7
movq %rcx, %r13
movq 0x38(%rsp), %rbx
jmp 0xfd8be
movb $0x1, %al
movq $0x0, 0xc8(%rsp)
movq 0x38(%rsp), %rbx
testb %al, %al
je 0xfd8c8
movq %rcx, %r13
movq 0x58(%rsp), %r15
jmp 0xfd5db
movq (%r14), %rcx
subq $0x10, %rsp
movq 0xd8(%rsp), %rdi
movq 0xe0(%rsp), %rdx
movq %r15, %r8
movq %rbp, %r9
leaq 0xec(%rsp), %rax
pushq %rax
leaq 0xc0(%rsp), %rax
pushq %rax
leaq 0xcc(%rsp), %rax
pushq %rax
leaq 0x158(%rsp), %rax
pushq %rax
leaq 0x190(%rsp), %rax
pushq %rax
pushq %r13
pushq 0xc8(%rsp)
movl 0x218(%rsp), %eax
pushq %rax
pushq 0xf0(%rsp)
pushq %r12
callq 0xfc9a6
addq $0x60, %rsp
movq 0x130(%rsp), %rax
testq %rax, %rax
je 0xfdb64
movq 0x140(%rsp), %rcx
leaq (%rax,%rax,2), %rax
movl -0x10(%rcx,%rax,8), %ebx
movl $0x0, 0xc(%rsp)
xorl %r13d, %r13d
xorl %r14d, %r14d
movq 0x40(%rsp), %rax
movq (%rax), %rcx
movl 0x160(%rsp), %eax
subq $0x8, %rsp
movq %rbp, %rdi
movq %r12, %rsi
movq 0xd8(%rsp), %rdx
movq %r15, %r8
movq 0xa8(%rsp), %r9
pushq $0x1
leaq 0x190(%rsp), %r10
pushq %r10
leaq 0x24(%rsp), %r10
pushq %r10
pushq %rax
pushq 0x198(%rsp)
pushq %rbx
movl 0x208(%rsp), %eax
pushq %rax
callq 0x102d41
addq $0x40, %rsp
testl %eax, %eax
je 0xfda3f
movq 0x128(%rsp), %rax
cmpq %rax, %r14
jne 0xfda09
leaq (%rax,%rax), %r15
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r15
leaq (,%r15,8), %rax
leaq (%rax,%rax,2), %rsi
movq 0x90(%rsp), %rdi
callq 0x2370
movq %r15, 0x128(%rsp)
movq 0xb8(%rsp), %r15
jmp 0xfda11
movq 0x90(%rsp), %rax
incq %r14
movq 0x190(%rsp), %rcx
movq %rcx, 0x10(%rax,%r13)
movups 0x180(%rsp), %xmm0
movq %rax, 0x90(%rsp)
movups %xmm0, (%rax,%r13)
addq $0x18, %r13
jmp 0xfd964
movq %rbp, %rdi
movq %r15, %rsi
movq 0x90(%rsp), %r13
movq %r13, %rdx
movl %r14d, %ecx
callq 0xf24f6
testq %r14, %r14
je 0xfdb6e
xorl %eax, %eax
xorl %ecx, %ecx
movq 0x38(%rsp), %rbx
leaq (%rax,%rax,2), %rdx
movups (%r13,%rdx,8), %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x10(%r13,%rdx,8), %rdx
movq %rdx, 0x20(%rsp)
movl 0x1c(%rsp), %edx
notl %edx
shrl $0x1f, %edx
addl %edx, %ecx
incl %eax
cmpq %rax, %r14
ja 0xfda6a
movl %eax, 0xc(%rsp)
cmpl $0x1, %ecx
movq 0x70(%rsp), %rsi
movq 0x28(%rsp), %rdx
jne 0xfdb8a
movl $0x0, 0xc(%rsp)
cmpq $0x0, 0x130(%rsp)
movq 0x48(%rsp), %r13
je 0xfdb99
leaq (,%r13,8), %rax
leaq (%rax,%rax,2), %rbx
movq 0xf0(%rsp), %rsi
cmpq %rsi, %r13
jne 0xfdb14
leaq (%rsi,%rsi), %r15
testq %rsi, %rsi
movl $0x2, %eax
cmoveq %rax, %r15
leaq (,%r15,8), %rax
leaq (%rax,%rax,2), %rsi
movq 0x60(%rsp), %rdi
callq 0x2370
movq %r15, %r8
movq 0xb8(%rsp), %r15
jmp 0xfdb1c
movq %rsi, %r8
movq 0x60(%rsp), %rax
movq 0x140(%rsp), %rdi
movl 0xc(%rsp), %ecx
leaq (%rcx,%rcx,2), %rdx
incq %r13
movq 0x10(%rdi,%rdx,8), %rsi
movq %rsi, 0x10(%rax,%rbx)
movups (%rdi,%rdx,8), %xmm0
movq %rax, 0x60(%rsp)
movups %xmm0, (%rax,%rbx)
leal 0x1(%rcx), %eax
movl %eax, 0xc(%rsp)
addq $0x18, %rbx
cmpq %rax, 0x130(%rsp)
movq %r8, %rsi
ja 0xfdadc
jmp 0xfdba1
movq 0x48(%rsp), %r13
jmp 0xfdfee
movl $0x0, 0xc(%rsp)
movq 0x48(%rsp), %r13
movq 0x40(%rsp), %r14
movq 0x38(%rsp), %rbx
jmp 0xfdfee
movq 0x48(%rsp), %r13
movq 0x40(%rsp), %r14
jmp 0xfd8be
movq 0xf0(%rsp), %rsi
movl $0x0, 0xc(%rsp)
xorl %eax, %eax
movq 0x38(%rsp), %rbx
leaq (%rax,%rax,2), %rax
movq 0x90(%rsp), %rcx
movups (%rcx,%rax,8), %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x10(%rcx,%rax,8), %rax
movq %rax, 0x20(%rsp)
cmpl $0x0, 0x1c(%rsp)
js 0xfdc36
cmpq %rsi, %r13
jne 0xfdc0b
leaq (%rsi,%rsi), %rbx
testq %rsi, %rsi
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,8), %rax
leaq (%rax,%rax,2), %rsi
movq 0x60(%rsp), %rdi
callq 0x2370
movq %rbx, %rsi
movq 0x38(%rsp), %rbx
jmp 0xfdc10
movq 0x60(%rsp), %rax
leaq (,%r13,2), %rdx
addq %r13, %rdx
incq %r13
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rax,%rdx,8)
movaps 0x10(%rsp), %xmm0
movq %rax, 0x60(%rsp)
movups %xmm0, (%rax,%rdx,8)
movl 0xc(%rsp), %eax
incl %eax
movl %eax, 0xc(%rsp)
cmpq %rax, %r14
ja 0xfdbb0
movq %rsi, 0xf0(%rsp)
movq 0x48(%rsp), %rdi
leaq (%rdi,%rdi,2), %rax
movq 0x60(%rsp), %rcx
leaq (%rcx,%rax,8), %rsi
movq %r13, %rdx
subq %rdi, %rdx
movq %r12, %rdi
movq %rdx, 0xc8(%rsp)
callq 0xfd025
testl %eax, %eax
je 0xfdfe4
movl $0x0, 0xc(%rsp)
movq 0x28(%rsp), %rdx
movl %edx, %eax
xorl $0x1, %eax
movl %eax, 0x34(%rsp)
movq %rdx, %rax
shlq $0x20, %rax
movq %rax, 0xe0(%rsp)
xorl %eax, %eax
leaq (%rax,%rax,2), %rax
movq 0x90(%rsp), %rcx
movups (%rcx,%rax,8), %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x10(%rcx,%rax,8), %rax
movq %rax, 0x20(%rsp)
cmpl $0x0, 0x1c(%rsp)
js 0xfdf89
movl 0x18(%rsp), %edx
movq %rbp, %rdi
movq %r15, %rsi
callq 0xf2482
cmpl $-0x1, %eax
je 0xfdf84
movq 0xf8(%rsp), %r15
cmpq %r15, 0x100(%rsp)
movl %eax, 0x80(%rsp)
jne 0xfdd33
movq %r15, %rax
addq %r15, %r15
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r15
leaq (,%r15,8), %rax
leaq (%rax,%rax,2), %rsi
movq 0xb0(%rsp), %rdi
callq 0x2370
movq %rax, %rbx
jmp 0xfdd3b
movq 0xb0(%rsp), %rbx
movq 0x100(%rsp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x88(%rsp)
leaq (%rax,%rax,2), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rbx,%rax,8)
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rbx,%rax,8)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movl 0x14(%rsp), %eax
movl 0x18(%rsp), %r9d
xorl $0x1, %r9d
xorl $0x1, %eax
movq 0xd0(%rsp), %rdi
movq 0xa0(%rsp), %rcx
movl 0x1d0(%rsp), %r8d
leaq 0x10(%rsp), %rdx
pushq %rdx
pushq %rax
callq 0xb2ced
addq $0x10, %rsp
movq 0x88(%rsp), %rax
cmpq %r15, %rax
jne 0xfdddc
movq %r15, %rax
addq %r15, %r15
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r15
leaq (,%r15,8), %rax
leaq (%rax,%rax,2), %rsi
movq %rbx, %rdi
callq 0x2370
movq %rax, %rbx
movq %r15, 0xf8(%rsp)
movq 0x120(%rsp), %rdx
movq 0x88(%rsp), %rax
leaq (%rax,%rax,2), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rbx,%rax,8)
movaps 0x10(%rsp), %xmm0
movq %rbx, 0xb0(%rsp)
movups %xmm0, (%rbx,%rax,8)
movq 0x10(%rbp), %rax
movl (%rax,%rdx,8), %edx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %edx
movq 0x50(%rsp), %rbx
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
movl 0x80(%rsp), %r15d
movl %r15d, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq %rax
pushq %rax
callq 0xe907b
addq $0x10, %rsp
movl %r15d, %esi
xorl $0x1, %esi
movq 0x10(%rbp), %rax
movl %r15d, %ecx
shrl %ecx
leaq (%rcx,%rcx,4), %rcx
movl (%rax,%rcx,8), %edx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %edx
movq %rbx, %rdi
movq %rsi, 0x88(%rsp)
movl 0x34(%rsp), %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq %rax
pushq %rax
callq 0xe907b
addq $0x10, %rsp
movq 0xe0(%rsp), %rax
movq %rax, 0x10(%rsp)
movl %r15d, 0x18(%rsp)
movq 0x98(%rsp), %rdx
movq 0x58(%rsp), %r15
cmpq %rdx, %r15
jne 0xfdedd
leaq (%rdx,%rdx), %rbx
testq %rdx, %rdx
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,8), %rax
leaq (%rax,%rax,2), %rsi
movq 0x68(%rsp), %rdi
callq 0x2370
movq %rax, %rdi
movq %rbx, %rdx
jmp 0xfdee2
movq 0x68(%rsp), %rdi
leaq 0x1(%r15), %rbx
leaq (%r15,%r15,2), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rdi,%rax,8)
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rdi,%rax,8)
movq 0x88(%rsp), %rax
shlq $0x20, %rax
movq %rax, 0x10(%rsp)
movl 0x34(%rsp), %eax
movl %eax, 0x18(%rsp)
cmpq %rdx, %rbx
jne 0xfdf49
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 %rax, %rdi
movq %r15, 0x98(%rsp)
jmp 0xfdf51
movq %rdx, 0x98(%rsp)
movq 0xb8(%rsp), %r15
addq $0x2, 0x100(%rsp)
addq $0x2, 0x58(%rsp)
leaq (%rbx,%rbx,2), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rdi,%rax,8)
movaps 0x10(%rsp), %xmm0
movq %rdi, 0x68(%rsp)
movups %xmm0, (%rdi,%rax,8)
movq 0x28(%rsp), %rdx
movl 0xc(%rsp), %eax
incl %eax
movl %eax, 0xc(%rsp)
cmpq %rax, %r14
ja 0xfdca8
movq 0x110(%rsp), %rax
cmpq %rax, 0xc0(%rsp)
jne 0xfe002
leaq (%rax,%rax), %rbx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,8), %rsi
movq 0x78(%rsp), %rdi
callq 0x2370
movq 0x28(%rsp), %rdx
movq %rbx, 0x110(%rsp)
movq 0x40(%rsp), %r14
jmp 0xfe00c
movq 0x48(%rsp), %r13
movq 0x40(%rsp), %r14
movq 0x58(%rsp), %r15
movq 0x70(%rsp), %rsi
movq 0x28(%rsp), %rdx
jmp 0xfd5db
movq 0x40(%rsp), %r14
movq 0x78(%rsp), %rax
movq 0x58(%rsp), %r15
movq %rax, 0x78(%rsp)
movq 0xc0(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x118(%rsp), %rax
cmpq %rax, 0xe8(%rsp)
jne 0xfe065
leaq (%rax,%rax), %rbx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,8), %rsi
movq 0x38(%rsp), %rdi
callq 0x2370
movq 0x28(%rsp), %rdx
movq %rbx, 0x118(%rsp)
jmp 0xfe06a
movq 0x38(%rsp), %rax
movq 0x70(%rsp), %rsi
movq 0x48(%rsp), %rcx
incq 0xc0(%rsp)
shlq $0x20, %rcx
movq 0xc8(%rsp), %rdi
orq %rcx, %rdi
movq 0xe8(%rsp), %rcx
movq %rdi, (%rax,%rcx,8)
incq %rcx
movq %rcx, 0xe8(%rsp)
movq %rax, %rbx
jmp 0xfd5db
movq $0x0, 0x68(%rsp)
movq $0x0, 0x98(%rsp)
xorl %r15d, %r15d
movq $0x0, 0xb0(%rsp)
movq $0x0, 0x60(%rsp)
movq $0x0, 0x90(%rsp)
movq $0x0, 0x78(%rsp)
movq $0x0, 0xc0(%rsp)
xorl %ebx, %ebx
movq 0x50(%rsp), %r14
movl 0x14(%r14), %edi
addl %edi, %edi
movl $0x1, %esi
callq 0x2120
movq %rax, 0x30(%r14)
movq %r14, %rdi
callq 0xa02fa
movq %r14, %rdi
movq 0x1e8(%rsp), %rsi
xorl %edx, %edx
callq 0xa6dbe
movl $0x0, 0xc(%rsp)
testq %r15, %r15
movq 0xb0(%rsp), %r9
movq 0x68(%rsp), %r10
je 0xfe257
xorl %ecx, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
leaq (%rcx,%rcx,2), %rdx
movq (%r10,%rdx,8), %rcx
movq 0x20(%r14), %rsi
movq %rcx, %rdi
shrq $0x21, %rdi
cmpl $0x0, (%rsi,%rdi,8)
js 0xfe244
movl 0x8(%r10,%rdx,8), %edx
movl %edx, %edi
shrl %edi
cmpl $0x0, (%rsi,%rdi,8)
js 0xfe244
shrq $0x20, %rcx
movq 0x30(%r14), %rsi
cmpb $0x0, (%rsi,%rcx)
je 0xfe1a1
movq %rdx, %rdi
xorq $0x1, %rdi
cmpb $0x0, (%rsi,%rdi)
jne 0xfe244
movq 0x28(%r14), %rsi
movq (%rsi,%rcx,8), %rdi
movq %rdi, %rsi
andq %rax, %rsi
je 0xfe1e6
movq 0x8(%r14), %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
cmpl %edx, -0x4(%rdi,%r8)
jne 0xfe1dd
orb $-0x80, 0x3(%rdi,%r8)
addq $0x18, %r8
cmpq %r8, %rsi
jne 0xfe1d0
xorl $0x1, %edx
movq 0x28(%r14), %rsi
movq (%rsi,%rdx,8), %rsi
movq %rsi, %rdx
andq %rax, %rdx
je 0xfe233
movq 0x8(%r14), %rdi
shrq $0x20, %rsi
shlq $0x3, %rdx
leaq (%rdx,%rdx,2), %rdx
leaq (%rsi,%rsi,2), %rsi
leaq (%rdi,%rsi,8), %rsi
addq $0xc, %rsi
xorl %edi, %edi
movl -0x4(%rsi,%rdi), %r8d
xorl %ecx, %r8d
cmpl $0x1, %r8d
jne 0xfe22a
orb $-0x80, 0x3(%rsi,%rdi)
addq $0x18, %rdi
cmpq %rdi, %rdx
jne 0xfe217
movl 0xc(%rsp), %ecx
leaq (%rcx,%rcx,2), %rcx
orl $0x80000000, 0xc(%r9,%rcx,8) # imm = 0x80000000
movl 0xc(%rsp), %ecx
incl %ecx
movl %ecx, 0xc(%rsp)
cmpq %rcx, %r15
ja 0xfe152
movq 0x30(%r14), %rdi
callq 0x2220
movq $0x0, 0x30(%r14)
movl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
andl 0x14(%r12), %ebp
movl $0x0, 0xc(%rsp)
cmpq $0x0, 0xc0(%rsp)
movq %rbx, 0x38(%rsp)
je 0xfe625
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
xorl %eax, %eax
xorl %r14d, %r14d
xorl %edx, %edx
movq 0x78(%rsp), %r13
movq (%r13,%rax,8), %r8
movl %r8d, %ecx
movq 0x28(%r12), %rsi
movq (%rsi,%rcx,8), %rcx
movq %rcx, %rsi
andq %r11, %rsi
je 0xfe309
movq 0x8(%r12), %rdi
shrq $0x20, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rdi,%rcx,8), %rcx
addq $0xc, %rcx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rsi
xorl %edi, %edi
xorl %r9d, %r9d
movl (%rcx,%rdi), %r10d
notl %r10d
shrl $0x1f, %r10d
addl %r10d, %r9d
addq $0x18, %rdi
cmpq %rdi, %rsi
jne 0xfe2db
testl %r9d, %r9d
je 0xfe309
movq (%rbx,%rax,8), %r13
movl %r13d, %r15d
cmpq $0x2, %r15
jae 0xfe324
movq 0x78(%rsp), %r13
movl 0xc(%rsp), %eax
incl %eax
movl %eax, 0xc(%rsp)
movl %eax, %edx
cmpq %rax, 0xc0(%rsp)
ja 0xfe2a0
jmp 0xfe62d
movq %r13, %rax
shrq $0x20, %rax
leaq (%rax,%rax,2), %rax
movq 0x60(%rsp), %rcx
leaq (%rcx,%rax,8), %rbx
movq 0x18bca1(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
movl %r8d, %ecx
shrl %ecx
andl $0x1, %r8d
leaq 0x12e949(%rip), %rsi    # 0x22cc9b
xorl %eax, %eax
callq 0x22b0
movq %r12, %rdi
movq %rbx, 0x50(%rsp)
movq %rbx, %rsi
movl %r13d, %edx
callq 0xfd134
testl %eax, %eax
je 0xfe414
movq 0x50(%rsp), %rax
movq (%rax), %rbx
movl 0x14(%r12), %eax
leal -0x2(,%rax,2), %r13d
movq 0x20(%r12), %rax
movq %rbx, %rcx
shrq $0x21, %rcx
movl (%rax,%rcx,8), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rbx, %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
andq %rdx, %rcx
orq %rax, %rcx
movq %rcx, 0x10(%rsp)
movl %r13d, 0x18(%rsp)
movl $0x0, 0x1c(%rsp)
movb $0x0, 0x22(%rsp)
andb $0x3f, 0x21(%rsp)
movq 0x98(%rsp), %rdx
cmpq %rdx, %r14
jne 0xfe429
leaq (%rdx,%rdx), %rcx
testq %rdx, %rdx
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0xa0(%rsp)
leaq (,%rcx,8), %rax
leaq (%rax,%rax,2), %rsi
movq 0x68(%rsp), %rdi
callq 0x2370
movq %rax, %rdi
movq 0xa0(%rsp), %rdx
jmp 0xfe42e
movq 0x78(%rsp), %r13
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
movq 0x38(%rsp), %rbx
jmp 0xfe309
movq 0x68(%rsp), %rdi
shrq $0x20, %rbx
leaq 0x1(%r14), %r9
leaq (%r14,%r14,2), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rdi,%rax,8)
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rdi,%rax,8)
movl %r13d, %eax
orl $0x1, %eax
xorl $0x1, %ebx
movq 0x20(%r12), %rcx
shrl %r13d
movl (%rcx,%r13,8), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
shlq $0x20, %rax
orq %rcx, %rax
movq %rax, 0x10(%rsp)
movl %ebx, 0x18(%rsp)
movl $0x0, 0x1c(%rsp)
movb $0x0, 0x22(%rsp)
andb $0x3f, 0x21(%rsp)
cmpq %rdx, %r9
jne 0xfe4bc
leaq (%rdx,%rdx), %rbx
testq %rdx, %rdx
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,8), %rax
leaq (%rax,%rax,2), %rsi
movq %r9, %r13
callq 0x2370
movq %r13, %r9
movq %rax, %rdi
movq %rbx, %rdx
movq 0x50(%rsp), %rsi
leaq 0x2(%r14), %r8
leaq (%r9,%r9,2), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rdi,%rax,8)
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rdi,%rax,8)
movl 0x14(%r12), %eax
leal -0x2(%rax,%rax), %ebx
leaq (%r15,%r15,2), %rax
movl -0x10(%rsi,%rax,8), %r15d
movq 0x20(%r12), %rax
movl %ebx, %ecx
shrl %ecx
movl (%rax,%rcx,8), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rbx, %rcx
shlq $0x20, %rcx
orq %rax, %rcx
movq %rcx, 0x10(%rsp)
movl %r15d, 0x18(%rsp)
movl $0x0, 0x1c(%rsp)
movb $0x0, 0x22(%rsp)
andb $0x3f, 0x21(%rsp)
cmpq %rdx, %r8
jne 0xfe55b
leaq (%rdx,%rdx), %r13
testq %rdx, %rdx
movl $0x2, %eax
cmoveq %rax, %r13
leaq (,%r13,8), %rax
leaq (%rax,%rax,2), %rsi
movq %r8, 0x50(%rsp)
callq 0x2370
movq 0x50(%rsp), %r8
movq %rax, %rdi
movq %r13, %rdx
leaq 0x3(%r14), %r13
leaq (%r8,%r8,2), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rdi,%rax,8)
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rdi,%rax,8)
movl %r15d, %eax
xorl $0x1, %eax
orl $0x1, %ebx
movq 0x20(%r12), %rcx
shrl %r15d
movl (%rcx,%r15,8), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
shlq $0x20, %rax
orq %rcx, %rax
movq %rax, 0x10(%rsp)
movl %ebx, 0x18(%rsp)
movl $0x0, 0x1c(%rsp)
movb $0x0, 0x22(%rsp)
andb $0x3f, 0x21(%rsp)
cmpq %rdx, %r13
jne 0xfe5e6
leaq (%rdx,%rdx), %rbx
testq %rdx, %rdx
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,8), %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, %rdi
movq %rbx, 0x98(%rsp)
jmp 0xfe5ee
movq %rdx, 0x98(%rsp)
movq 0x38(%rsp), %rbx
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
addq $0x4, %r14
leaq (,%r13,2), %rax
addq %r13, %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rdi,%rax,8)
movaps 0x10(%rsp), %xmm0
movq %rdi, 0x68(%rsp)
movups %xmm0, (%rdi,%rax,8)
jmp 0xfe304
xorl %r14d, %r14d
movq 0x78(%rsp), %r13
movl $0x0, 0xc(%rsp)
testq %r14, %r14
je 0xfe6d7
movl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
movl $0x10, %r15d
movl 0x4(%r12), %ecx
andl %ebx, %ecx
movl (%r12), %eax
cmpl %eax, %ecx
jne 0xfe67c
leal (%rax,%rax), %ecx
testl %eax, %eax
cmovel %r15d, %ecx
movl %ecx, (%r12)
movq 0x8(%r12), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%r12)
movq 0x8(%r12), %rax
movl 0x4(%r12), %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(%r12)
leaq (%rdx,%rdx,2), %rcx
movl 0xc(%rsp), %edx
leaq (%rdx,%rdx,2), %rsi
movq 0x68(%rsp), %rdi
movups (%rdi,%rsi,8), %xmm0
movups %xmm0, (%rax,%rcx,8)
movq 0x10(%rdi,%rsi,8), %rsi
movq %rsi, 0x10(%rax,%rcx,8)
leal 0x1(%rdx), %eax
movl %eax, 0xc(%rsp)
cmpq %rax, %r14
ja 0xfe649
movq 0x28(%r12), %rdi
callq 0x2220
movq $0x0, 0x28(%r12)
andb $0x7f, 0x7(%r12)
movq %r12, %rdi
callq 0xa02fa
movl 0x14(%r12), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpl %ebp, %eax
movq 0xb8(%rsp), %r15
movq 0x40(%rsp), %rbx
jbe 0xfe7f5
movq (%rbx), %rdi
shlq $0x2, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, (%rbx)
leaq 0x18caff(%rip), %rbx    # 0x28b230
movq 0x28(%rbx), %rdi
movl 0x14(%r12), %esi
movl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
andq %r14, %rsi
callq 0x2370
movq %rax, 0x28(%rbx)
movq 0x8(%r15), %rdi
movl 0x14(%r12), %esi
andq %r14, %rsi
shlq $0x2, %rsi
callq 0x2370
movq %rax, 0x8(%r15)
movl 0x14(%r12), %eax
andq %r14, %rax
movq 0x40(%rsp), %r8
movq %rax, (%r15)
movl %ebp, 0xc(%rsp)
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl 0x14(%r12), %ecx
andl %eax, %ecx
cmpl %ecx, %ebp
jae 0xfe7f5
xorl %ecx, %ecx
movq 0x8(%r15), %rdx
movl %ebp, %esi
movl $0xffffffff, (%rdx,%rsi,4) # imm = 0xFFFFFFFF
movq 0x28(%rbx), %rdx
movl 0xc(%rsp), %esi
movb %cl, (%rdx,%rsi)
movq (%r8), %rdx
movl 0xc(%rsp), %esi
leaq (%rsi,%rsi,2), %rsi
andl %eax, (%rdx,%rsi,4)
movq (%r8), %rdx
movl 0xc(%rsp), %esi
leaq (%rsi,%rsi,2), %rsi
movb %cl, 0x8(%rdx,%rsi,4)
andl $0x80000000, (%rdx,%rsi,4) # imm = 0x80000000
movq 0x20(%r12), %rdx
movl 0xc(%rsp), %esi
movl (%rdx,%rsi,8), %edx
andl %eax, %edx
movq (%r8), %rdi
leaq (%rsi,%rsi,2), %rsi
movl %edx, 0x4(%rdi,%rsi,4)
movl 0xc(%rsp), %ebp
incl %ebp
movl %ebp, 0xc(%rsp)
movl 0x14(%r12), %edx
andl %eax, %edx
cmpl %edx, %ebp
jb 0xfe78b
movq (%r15), %rax
testq %rax, %rax
movq 0x108(%rsp), %rdi
movq 0x38(%rsp), %rbx
movq 0xb0(%rsp), %r14
movq 0x60(%rsp), %r12
je 0xfe838
movq 0x8(%r15), %rcx
xorl %edx, %edx
cmpl $-0x2, (%rcx,%rdx,4)
jg 0xfe82e
movq 0x8(%r15), %rsi
movl $0xffffffff, (%rsi,%rdx,4) # imm = 0xFFFFFFFF
incq %rdx
movl %edx, %esi
cmpq %rsi, %rax
ja 0xfe81d
callq 0xa0004
movq 0x68(%rsp), %rdi
callq 0x2220
movq %r12, %rdi
callq 0x2220
movq %r14, %rdi
callq 0x2220
movq 0x90(%rsp), %rdi
callq 0x2220
movq %r13, %rdi
callq 0x2220
movq 0x170(%rsp), %rdi
callq 0x2220
movq 0x140(%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