// File: chhylp123[P]hifiasm/Overlaps.cpp
// Function: asg_arc_del_complex_false_link(asg_t*, float, float, int, ma_hit_t_alloc*, long long)
int asg_arc_del_complex_false_link(asg_t *g, float drop_ratio, float o_drop_ratio, int max_dist, 
ma_hit_t_alloc* reverse_sources, long long miniedgeLen)
{
    double startTime = Get_T();
    
    kvec_t(uint64_t) b;
    memset(&b, 0, sizeof(b));


    kvec_t(uint32_t) b_f;
    memset(&b_f, 0, sizeof(b_f));

    kvec_t(uint32_t) b_r;
    memset(&b_r, 0, sizeof(b_r));


	uint32_t v, w, n_vtx = g->n_seq * 2, n_cut = 0;


    buf_t bub;
    if (!g->is_symm) asg_symm(g);
    memset(&bub, 0, sizeof(buf_t));
    bub.a = (binfo_t*)calloc(n_vtx, sizeof(binfo_t));
    
    for (v = 0; v < n_vtx; ++v) 
    {
        if(g->seq_vis[v] == 0)
        {
            asg_arc_t *av = asg_arc_a(g, v);
            uint32_t nv = asg_arc_n(g, v);

            if(nv == 1 && asg_arc_n(g, v^1) == 1) continue;

            uint64_t t_ol = 0;
            long long i;
            for (i = 0; i < nv; ++i)
            {
                t_ol += av[i].ol;
            }
            kv_push(uint64_t, b, (uint64_t)(t_ol << 32 | v));  
        }
	}


    radix_sort_arch64(b.a, b.a + b.n);

    uint32_t min_edge;
    
    
    uint64_t k, t;
    for (k = 0; k < b.n; k++)
    {
        ///v is the node
        v = (uint32_t)b.a[k];
        if (g->seq[v>>1].del) continue;
        uint32_t nv = asg_arc_n(g, v), nw, to_del;
        if (nv < 2) continue;
        uint32_t kv = get_real_length(g, v, NULL), kw;
        if (kv < 2) continue;///V must have two out-nodes
        uint32_t i;
        asg_arc_t *av = asg_arc_a(g, v), *aw;

        b_f.n = 0;
        b_r.n = 0;
        to_del = 0;
        for (i = 0; i < nv; i++)
        {
            if (av[i].del) continue;
            
            w = av[i].v^1;
            nw = asg_arc_n(g, w);
            if(nw < 2) break;
            kw = get_real_length(g, w, NULL);
            if(kw < 2) break;

            kv_push(uint32_t, b_f, av[i].v);
            kv_push(uint32_t, b_r, w);

            aw = asg_arc_a(g, w);
            min_edge = (uint32_t)-1;
            for (t = 0; t < nw; t++)
            {
                if(aw[t].del) continue;
                if((aw[t].v>>1) == (v>>1)) continue;
                if(aw[t].ol < min_edge) min_edge = aw[t].ol;
            }

            if(av[i].ol < min_edge * drop_ratio) to_del++;
        }

        if(to_del != kv) continue;

        for (i = 0; i < nv; ++i) 
        {
            if (av[i].del) continue;
            ++n_cut;
            av[i].del = 1;
            asg_arc_del(g, av[i].v^1, av[i].ul>>32^1, 1);
        }
    }


    if(n_cut > 0)
    {
        for (v = 0; v < n_vtx; ++v) 
        {
            uint32_t nv = asg_arc_n(g, v);
            if (g->seq[v>>1].del)
            {
                continue;
            } 

            if(nv < 2)
            {
                continue;
            }


            if(asg_bub_finder_without_del_advance(g, v, max_dist, &bub) == 1)
            {
                uint32_t i;
                g->seq_vis[v] = 3;
                g->seq_vis[v^1] = 3;
                for (i = 0; i < bub.b.n; i++)
                {
                    g->seq_vis[bub.b.a[i]] = 3;
                    g->seq_vis[bub.b.a[i]^1] = 3;
                }
            }
        }


        for (v = 0; v < n_vtx; ++v) 
        {
            if(g->seq_vis[v] == 3) continue;

            uint32_t nv = asg_arc_n(g, v);
            asg_arc_t *av = asg_arc_a(g, v);
            uint32_t i;
            for (i = 0; i < nv; ++i) 
            {
                if (av[i].del && g->seq_vis[av[i].v] != 3)
                {
                    av[i].del = 0;
                    asg_arc_del(g, av[i].v^1, av[i].ul>>32^1, 0);
                } 
            }
        }
    }
    


    
    free(b.a); free(b_f.a); free(b_r.a);
    free(bub.a); free(bub.S.a); free(bub.T.a); free(bub.b.a); free(bub.e.a);
	if (n_cut) 
    {
		asg_cleanup(g);
		asg_symm(g);
	}

    if(VERBOSE >= 1)
    {
        fprintf(stderr, "[M::%s] removed %d false overlaps\n", __func__, n_cut);
        fprintf(stderr, "[M::%s] takes %0.2f s\n\n", __func__, Get_T()-startTime);
    }
	return n_cut;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdi, -0x8(%rbp)
movss %xmm0, -0xc(%rbp)
movss %xmm1, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
callq 0x2510
movsd %xmm0, -0x30(%rbp)
leaq -0x48(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x2100
leaq -0x60(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x2100
leaq -0x78(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x2100
movq -0x8(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movl %eax, -0x84(%rbp)
movl $0x0, -0x88(%rbp)
movq -0x8(%rbp), %rax
movl 0x14(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
jne 0xe2694
movq -0x8(%rbp), %rdi
callq 0xce020
leaq -0xf0(%rbp), %rdi
xorl %esi, %esi
movl $0x68, %edx
callq 0x2100
movl -0x84(%rbp), %eax
movl %eax, %edi
movl $0x1c, %esi
callq 0x2140
movq %rax, -0xf0(%rbp)
movl $0x0, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x84(%rbp), %eax
jae 0xe2844
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movl -0x7c(%rbp), %ecx
movzbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jne 0xe2834
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x7c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xf8(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x7c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0xfc(%rbp)
cmpl $0x1, -0xfc(%rbp)
jne 0xe2753
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x7c(%rbp), %ecx
xorl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
cmpl $0x1, %eax
jne 0xe2753
jmp 0xe2836
movq $0x0, -0x108(%rbp)
movq $0x0, -0x110(%rbp)
movq -0x110(%rbp), %rax
movl -0xfc(%rbp), %ecx
cmpq %rcx, %rax
jge 0xe27b9
movq -0xf8(%rbp), %rax
imulq $0x18, -0x110(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
addq -0x108(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x110(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x110(%rbp)
jmp 0xe2769
jmp 0xe27bb
movq -0x48(%rbp), %rax
cmpq -0x40(%rbp), %rax
jne 0xe280a
cmpq $0x0, -0x40(%rbp)
je 0xe27dc
movq -0x40(%rbp), %rax
shlq %rax
movq %rax, -0x178(%rbp)
jmp 0xe27ea
movl $0x2, %eax
movq %rax, -0x178(%rbp)
jmp 0xe27ea
movq -0x178(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, -0x38(%rbp)
movq -0x108(%rbp), %rdx
shlq $0x20, %rdx
movl -0x7c(%rbp), %eax
orq %rax, %rdx
movq -0x38(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x48(%rbp)
movq %rdx, (%rax,%rcx,8)
jmp 0xe2834
jmp 0xe2836
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0xe26c7
movq -0x38(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
callq 0xc90e0
movq $0x0, -0x120(%rbp)
movq -0x120(%rbp), %rax
cmpq -0x48(%rbp), %rax
jae 0xe2d02
movq -0x38(%rbp), %rax
movq -0x120(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, -0x7c(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x7c(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0xe28a9
jmp 0xe2ceb
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x7c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x12c(%rbp)
cmpl $0x2, -0x12c(%rbp)
jae 0xe28cc
jmp 0xe2ceb
movq -0x8(%rbp), %rdi
movl -0x7c(%rbp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x166b50
movl %eax, -0x138(%rbp)
cmpl $0x2, -0x138(%rbp)
jae 0xe28f0
jmp 0xe2ceb
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x7c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x148(%rbp)
movq $0x0, -0x60(%rbp)
movq $0x0, -0x78(%rbp)
movl $0x0, -0x134(%rbp)
movl $0x0, -0x140(%rbp)
movl -0x140(%rbp), %eax
cmpl -0x12c(%rbp), %eax
jae 0xe2c07
movq -0x148(%rbp), %rax
movl -0x140(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0xe2973
jmp 0xe2bf3
movq -0x148(%rbp), %rax
movl -0x140(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
xorl $0x1, %eax
movl %eax, -0x80(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x80(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x130(%rbp)
cmpl $0x2, -0x130(%rbp)
jae 0xe29b3
jmp 0xe2c07
movq -0x8(%rbp), %rdi
movl -0x80(%rbp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x166b50
movl %eax, -0x13c(%rbp)
cmpl $0x2, -0x13c(%rbp)
jae 0xe29d7
jmp 0xe2c07
jmp 0xe29d9
movq -0x60(%rbp), %rax
cmpq -0x58(%rbp), %rax
jne 0xe2a28
cmpq $0x0, -0x58(%rbp)
je 0xe29fa
movq -0x58(%rbp), %rax
shlq %rax
movq %rax, -0x180(%rbp)
jmp 0xe2a08
movl $0x2, %eax
movq %rax, -0x180(%rbp)
jmp 0xe2a08
movq -0x180(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
shlq $0x2, %rsi
callq 0x2360
movq %rax, -0x50(%rbp)
movq -0x148(%rbp), %rax
movl -0x140(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %edx
movq -0x50(%rbp), %rax
movq -0x60(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x60(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0xe2a57
movq -0x78(%rbp), %rax
cmpq -0x70(%rbp), %rax
jne 0xe2aa6
cmpq $0x0, -0x70(%rbp)
je 0xe2a78
movq -0x70(%rbp), %rax
shlq %rax
movq %rax, -0x188(%rbp)
jmp 0xe2a86
movl $0x2, %eax
movq %rax, -0x188(%rbp)
jmp 0xe2a86
movq -0x188(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rdi
movq -0x70(%rbp), %rsi
shlq $0x2, %rsi
callq 0x2360
movq %rax, -0x68(%rbp)
movl -0x80(%rbp), %edx
movq -0x68(%rbp), %rax
movq -0x78(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x78(%rbp)
movl %edx, (%rax,%rcx,4)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x80(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x150(%rbp)
movl $0xffffffff, -0x114(%rbp) # imm = 0xFFFFFFFF
movq $0x0, -0x128(%rbp)
movq -0x128(%rbp), %rax
movl -0x130(%rbp), %ecx
cmpq %rcx, %rax
jae 0xe2baf
movq -0x150(%rbp), %rax
imulq $0x18, -0x128(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0xe2b32
jmp 0xe2b98
movq -0x150(%rbp), %rax
imulq $0x18, -0x128(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
shrl %eax
movl -0x7c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0xe2b54
jmp 0xe2b98
movq -0x150(%rbp), %rax
imulq $0x18, -0x128(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpl -0x114(%rbp), %eax
jae 0xe2b96
movq -0x150(%rbp), %rax
imulq $0x18, -0x128(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0x114(%rbp)
jmp 0xe2b98
movq -0x128(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x128(%rbp)
jmp 0xe2afd
movq -0x148(%rbp), %rax
movl -0x140(%rbp), %ecx
leaq (%rcx,%rcx,2), %rcx
movl 0xc(%rax,%rcx,8), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cvtsi2ss %eax, %xmm1
movl -0x114(%rbp), %eax
cvtsi2ss %rax, %xmm0
mulss -0xc(%rbp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0xe2bf1
movl -0x134(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x134(%rbp)
jmp 0xe2bf3
movl -0x140(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x140(%rbp)
jmp 0xe293d
movl -0x134(%rbp), %eax
cmpl -0x138(%rbp), %eax
je 0xe2c1a
jmp 0xe2ceb
movl $0x0, -0x140(%rbp)
movl -0x140(%rbp), %eax
cmpl -0x12c(%rbp), %eax
jae 0xe2ce9
movq -0x148(%rbp), %rax
movl -0x140(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0xe2c57
jmp 0xe2cd5
movl -0x88(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x88(%rbp)
movq -0x148(%rbp), %rax
movl -0x140(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl $0x80000000, %ecx       # imm = 0x80000000
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rdi
movq -0x148(%rbp), %rax
movl -0x140(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %esi
xorl $0x1, %esi
movq -0x148(%rbp), %rax
movl -0x140(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
xorq $0x1, %rax
movl %eax, %edx
movl $0x1, %ecx
callq 0xd6530
movl -0x140(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x140(%rbp)
jmp 0xe2c24
jmp 0xe2ceb
movq -0x120(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x120(%rbp)
jmp 0xe2867
cmpl $0x0, -0x88(%rbp)
jbe 0xe2f88
movl $0x0, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x84(%rbp), %eax
jae 0xe2e23
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x7c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x154(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x7c(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0xe2d59
jmp 0xe2e15
cmpl $0x2, -0x154(%rbp)
jae 0xe2d67
jmp 0xe2e15
movq -0x8(%rbp), %rdi
movl -0x7c(%rbp), %esi
movl -0x14(%rbp), %edx
leaq -0xf0(%rbp), %rcx
callq 0xe3010
cmpq $0x1, %rax
jne 0xe2e13
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movl -0x7c(%rbp), %ecx
movb $0x3, (%rax,%rcx)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movl -0x7c(%rbp), %ecx
xorl $0x1, %ecx
movl %ecx, %ecx
movb $0x3, (%rax,%rcx)
movl $0x0, -0x158(%rbp)
movl -0x158(%rbp), %eax
cmpq -0xb8(%rbp), %rax
jae 0xe2e11
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movq -0xa8(%rbp), %rcx
movl -0x158(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
movb $0x3, (%rax,%rcx)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movq -0xa8(%rbp), %rcx
movl -0x158(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
xorl $0x1, %ecx
movl %ecx, %ecx
movb $0x3, (%rax,%rcx)
movl -0x158(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x158(%rbp)
jmp 0xe2db4
jmp 0xe2e13
jmp 0xe2e15
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0xe2d16
movl $0x0, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x84(%rbp), %eax
jae 0xe2f86
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movl -0x7c(%rbp), %ecx
movzbl (%rax,%rcx), %eax
cmpl $0x3, %eax
jne 0xe2e52
jmp 0xe2f78
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x7c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x15c(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x7c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x168(%rbp)
movl $0x0, -0x16c(%rbp)
movl -0x16c(%rbp), %eax
cmpl -0x15c(%rbp), %eax
jae 0xe2f76
movq -0x168(%rbp), %rax
movl -0x16c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0xe2f60
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x168(%rbp), %rcx
movl -0x16c(%rbp), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
movzbl (%rax,%rcx), %eax
cmpl $0x3, %eax
je 0xe2f60
movq -0x168(%rbp), %rax
movl -0x16c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl $0x0, %ecx
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rdi
movq -0x168(%rbp), %rax
movl -0x16c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %esi
xorl $0x1, %esi
movq -0x168(%rbp), %rax
movl -0x16c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
xorq $0x1, %rax
movl %eax, %edx
xorl %ecx, %ecx
callq 0xd6530
jmp 0xe2f62
movl -0x16c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x16c(%rbp)
jmp 0xe2e9a
jmp 0xe2f78
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0xe2e2a
jmp 0xe2f88
movq -0x38(%rbp), %rdi
callq 0x2210
movq -0x50(%rbp), %rdi
callq 0x2210
movq -0x68(%rbp), %rdi
callq 0x2210
movq -0xf0(%rbp), %rdi
callq 0x2210
movq -0xd8(%rbp), %rdi
callq 0x2210
movq -0xc0(%rbp), %rdi
callq 0x2210
movq -0xa8(%rbp), %rdi
callq 0x2210
movq -0x90(%rbp), %rdi
callq 0x2210
cmpl $0x0, -0x88(%rbp)
je 0xe2ffa
movq -0x8(%rbp), %rdi
callq 0xcdd10
movq -0x8(%rbp), %rdi
callq 0xce020
movl -0x88(%rbp), %eax
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
nopl (%rax)