// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Overlaps.cpp
// Function: debug_utg_graph(ma_ug_t*, asg_t*, kvec_asg_arc_t_warp*, int, int)
void debug_utg_graph(ma_ug_t *ug, asg_t* read_g, kvec_asg_arc_t_warp* edge, int require_equal_nv, int test_tangle)
{
    asg_t* nsg = ug->g;
    uint32_t n_vtx = nsg->n_seq, i, j, k, l, totalLen, v, nv, nw, w, untig_v, rid_v;
    asg_arc_t *aw = NULL, *av = NULL, *t_v = NULL, *t_w = NULL;
    for (i = 0; i < n_vtx; i++)
    {
        if(ug->g->seq[i].del) continue;

        totalLen = 0;
        ma_utg_t* result = &(ug->u.a[i]);
        if(result->n == 0) continue;
        v = (uint64_t)(result->a[0])>>32;
        if(result->start != UINT32_MAX && result->start != v) fprintf(stderr, "hehe\n");
        v = (uint64_t)(result->a[result->n-1])>>32;
        if(result->end != UINT32_MAX && result->end != (v^1)) fprintf(stderr, "haha\n");
        uint64_t end_index = result->n-1;
        if(result->start == UINT32_MAX && result->end == UINT32_MAX) end_index++;
        for (j = 0; j < end_index; j++)
        {
            v = (uint64_t)(result->a[j])>>32;
            if(j == result->n-1)
            {
                w = (uint64_t)(result->a[0])>>32; 
            }
            else
            {
                w = (uint64_t)(result->a[j+1])>>32; 
            }
            
            

            av = asg_arc_a(read_g, v);
            nv = asg_arc_n(read_g, v);
            l = (uint32_t)-1;
            for (k = 0; k < nv; k++)
            {
                if(av[k].del) continue;
                if(av[k].v == w) 
                {
                    l = asg_arc_len(av[k]);
                    break;
                }
            }

            if(edge && k == nv)
            {
                for (k = 0; k < edge->a.n; k++)
                {
                    if(edge->a.a[k].del) continue;
                    if((edge->a.a[k].ul>>32) == v && edge->a.a[k].v == w)
                    {
                        l = asg_arc_len(edge->a.a[k]);
                        k = nv + 1;
                        break;
                    }
                }
            }
            
            if(k == nv) fprintf(stderr ,"******error, j: %u, k: %u, nv: %u\n", j, k, nv);
            if(l != (uint32_t)(result->a[j]))
            {
                fprintf(stderr ,"(i: %u) ERROR Length, l: %u, result->a[j]: %u, j: %u, k: %u, nv: %u, circ: %u, result->n: %u\n", 
                            i, l, (uint32_t)(result->a[j]), j, k, nv, result->circ, (uint32_t)result->n);
            }
             
            totalLen = totalLen + l;
        }


        if(j < result->n)
        {
            v = (uint64_t)(result->a[j])>>32;
            l = read_g->seq[v>>1].len;
            if(l != (uint32_t)(result->a[j])) fprintf(stderr ,"*** ERROR Length, i: %u\n", i);
            totalLen = totalLen + l;
        }

        if(totalLen != result->len)
        {
            fprintf(stderr ,"ERROR Total Length, i: %u\n", i);
        } 
                


        if(ug->u.a[i].start == UINT32_MAX && ug->u.a[i].end == UINT32_MAX) continue;

        v = i<<1; v=v^1;
        av = asg_arc_a(ug->g, v);
        nv = asg_arc_n(ug->g, v);

        w = (ug->u.a[v>>1].start^1);
        aw = asg_arc_a(read_g, w);
        nw = asg_arc_n(read_g, w);


        if(require_equal_nv && get_real_length(ug->g, v, NULL) != get_real_length(read_g, w, NULL))
        {
            fprintf(stderr, "#########ERROR: i: %u, nv: %u, nw: %u\n", i, nv, nw);
        }

        for (j = 0; j < nv; j++)
        {
            if(av[j].del) continue;
            untig_v = av[j].v;
            if(untig_v&1) rid_v = ug->u.a[untig_v>>1].end;
            else rid_v = ug->u.a[untig_v>>1].start;

            t_v = t_w = NULL;
            for (k = 0; k < nw; k++)
            {
                if(aw[k].del) continue;
                if(aw[k].v == rid_v)
                {
                    t_w = &(aw[k]);
                    break;
                } 
                
            }

            if(edge && t_w == NULL)
            {
                for (k = 0; k < edge->a.n; k++)
                {
                    if(edge->a.a[k].del) continue;
                    if((edge->a.a[k].ul>>32) == w && edge->a.a[k].v == rid_v)
                    {
                        t_w = &(edge->a.a[k]);
                        break;
                    }
                }
            }
            
            if(t_w == NULL) fprintf(stderr, "#########ERROR: i: %u\n", i);
            t_v = &av[j];
            if(t_w && (t_v->ol != t_w->ol))
            {
                fprintf(stderr, "#########????????ERROR\n");
                fprintf(stderr, "nv: %u, nw: %u\n", nv, nw);
                fprintf(stderr, "av[%u].ol: %u, aw[%u].ol: %u, untig_v>>1: %u, untig_v&1: %u\n", 
                j, t_v->ol, k, t_w->ol, untig_v>>1, untig_v&1);
            }
        }






        v = v^1;
        av = asg_arc_a(ug->g, v);
        nv = asg_arc_n(ug->g, v);

        w = (ug->u.a[v>>1].end^1);
        aw = asg_arc_a(read_g, w);
        nw = asg_arc_n(read_g, w);
        if(require_equal_nv && get_real_length(ug->g, v, NULL) != get_real_length(read_g, w, NULL))
        {
            fprintf(stderr, "*******ERROR: i: %u, nv: %u, nw: %u\n", i, nv, nw);
        }
        for (j = 0; j < nv; j++)
        {
            if(av[j].del) continue;
            untig_v = av[j].v;
            if(untig_v&1) rid_v = ug->u.a[untig_v>>1].end;
            else rid_v = ug->u.a[untig_v>>1].start;
            
            t_v = t_w = NULL;
            for (k = 0; k < nw; k++)
            {
                if(aw[k].del) continue;
                if(aw[k].v == rid_v)
                {
                    t_w = &(aw[k]);
                    break;
                } 
                
            }

            if(edge && t_w == NULL)
            {
                for (k = 0; k < edge->a.n; k++)
                {
                    if(edge->a.a[k].del) continue;
                    if((edge->a.a[k].ul>>32) == w && edge->a.a[k].v == rid_v)
                    {
                        t_w = &(edge->a.a[k]);
                        break;
                    }
                }
            }
            
            if(t_w == NULL) fprintf(stderr, "#########ERROR: i: %u\n", i);
            t_v = &av[j];
            if(t_w && (t_v->ol != t_w->ol))
            {
                fprintf(stderr, "#########????????ERROR\n");
                fprintf(stderr, "nv: %u, nw: %u\n", nv, nw);
                fprintf(stderr, "av[%u].ol: %u, aw[%u].ol: %u, untig_v>>1: %u, untig_v&1: %u\n", 
                j, t_v->ol, k, t_w->ol, untig_v>>1, untig_v&1);
            }
        }

    }


    if(test_tangle != 1) return;
    fprintf(stderr, "test_tangle: %u\n", test_tangle);
    n_vtx = nsg->n_seq * 2;
    for (v = 0; v < n_vtx; ++v) 
    {
        uint32_t w1, w2, beg, end, rnw;
        if(nsg->seq[v>>1].del) continue;
        if(asg_arc_n(nsg, v) < 1 || asg_arc_n(nsg, v^1) < 1) continue;
        if(get_real_length(nsg, v, NULL) != 1 || get_real_length(nsg, v^1, NULL) != 1) continue;
        get_real_length(nsg, v, &w1); get_real_length(nsg, v^1, &w2);

        ///for simple circle
        if(w1 == (w2^1))
        {
            beg = end = 0;
            aw = asg_arc_a(nsg, w1^1);
            nw = asg_arc_n(nsg, w1^1);
            for (i = 0, rnw = 0; i < nw; i++)
            {
                if(aw[i].del) continue;
                rnw++;
                if(aw[i].v == (v^1)) continue;
                beg = aw[i].v;
            }
            if(rnw != 2) continue;

            aw = asg_arc_a(nsg, w2^1);
            nw = asg_arc_n(nsg, w2^1);
            for (i = 0, rnw = 0; i < nw; i++)
            {
                if(aw[i].del) continue;
                rnw++;
                if(aw[i].v == v) continue;
                end = aw[i].v;
            }
            if(rnw != 2) continue;

            if(get_real_length(nsg, beg^1, NULL)!=1) continue;
            if(get_real_length(nsg, end^1, NULL)!=1) continue;
            if((beg>>1) == (end>>1)) continue;
            fprintf(stderr, "\n************\n");
        }
        else if(w1 == w2)
        {
            if(get_real_length(nsg, w1^1, NULL) != 2) continue;
            if(get_real_length(nsg, w1, NULL) != 2) continue;
            end = beg = (uint32_t)-1;

            aw = asg_arc_a(nsg, w1);
            nw = asg_arc_n(nsg, w1);
            for (i = 0, rnw = 0; i < nw && rnw < 2; i++)
            {
                if(aw[i].del) continue;
                if(rnw == 0) beg = aw[i].v;
                if(rnw == 1) end = aw[i].v;
                rnw++;
            }
            if((beg>>1) == (end>>1)) continue;
            if(get_real_length(nsg, beg^1, NULL)!=1) continue;
            if(get_real_length(nsg, end^1, NULL)!=1) continue;
            fprintf(stderr, "\n#################\n");
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %r8d, 0x6c(%rsp)
movl %ecx, 0x5c(%rsp)
movq %rsi, 0x50(%rsp)
movq %rdi, 0x40(%rsp)
movq 0x18(%rdi), %rax
movq %rax, 0x70(%rsp)
movl 0x14(%rax), %eax
andq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
movq %rax, 0x80(%rsp)
je 0xeecd6
movq %rdx, %r10
xorl %ecx, %ecx
movq %rdx, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq %rcx, 0x28(%rsp)
cmpl $0x0, (%rax,%rcx,8)
js 0xeebce
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x28(%rsp), %rcx
leaq (%rcx,%rcx,4), %rbx
cmpl $0x0, 0x10(%rax,%rbx,8)
je 0xeebce
leaq (%rax,%rbx,8), %rsi
movl 0x4(%rsi), %eax
cmpl $-0x1, %eax
movq %rsi, 0x10(%rsp)
je 0xee3c4
movq 0x18(%rsi), %rcx
cmpl 0x4(%rcx), %eax
jne 0xeec10
movl 0x8(%rsi), %eax
cmpl $-0x1, %eax
je 0xee3e2
movq 0x18(%rsi), %rcx
movl 0x10(%rsi), %edx
decl %edx
xorl 0x4(%rcx,%rdx,8), %eax
cmpl $0x1, %eax
jne 0xeec24
movl 0x10(%rsi), %ecx
decl %ecx
cmpl $-0x1, 0x4(%rsi)
jne 0xee3f9
xorl %eax, %eax
cmpl $-0x1, 0x8(%rsi)
sete %al
addq %rax, %rcx
movq %rbx, 0x38(%rsp)
testq %rcx, %rcx
je 0xee5ad
xorl %ebp, %ebp
xorl %r15d, %r15d
xorl %r14d, %r14d
movq %rcx, 0x30(%rsp)
movq 0x18(%rsi), %rcx
movq (%rcx,%rbp,8), %rax
shrq $0x20, %rax
movl 0x10(%rsi), %edx
decl %edx
leal 0x1(%r14), %r12d
cmpl %edx, %r14d
movl %r12d, %edx
movl $0x0, %edi
cmovel %edi, %edx
movl 0x4(%rcx,%rdx,8), %ecx
movq 0x50(%rsp), %rdx
movq 0x28(%rdx), %rdx
movq (%rdx,%rax,8), %r13
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
testl %r13d, %r13d
je 0xee49a
movq 0x50(%rsp), %rdx
movq 0x8(%rdx), %rsi
movq %r13, %rdi
shrq $0x20, %rdi
movl %r13d, %edx
leaq (%rdi,%rdi,2), %rdi
leaq (%rsi,%rdi,8), %rsi
addq $0xc, %rsi
xorl %ebx, %ebx
cmpl $0x0, (%rsi)
js 0xee47e
cmpl %ecx, -0x4(%rsi)
je 0xee49e
incq %rbx
addq $0x18, %rsi
cmpq %rbx, %rdx
jne 0xee474
movl %r13d, %ebx
movq 0x10(%rsp), %rsi
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
jmp 0xee4a7
xorl %ebx, %ebx
jmp 0xee4a7
movl -0xc(%rsi), %r11d
movq 0x10(%rsp), %rsi
testq %r10, %r10
je 0xee4fc
cmpl %r13d, %ebx
jne 0xee4fc
movq (%r10), %rdx
testq %rdx, %rdx
je 0xee4ec
movq 0x10(%r10), %rsi
xorl %ebx, %ebx
leaq (%rbx,%rbx,2), %rdi
cmpl $0x0, 0xc(%rsi,%rdi,8)
js 0xee4e3
leaq (%rsi,%rdi,8), %r8
movq (%r8), %rdi
movq %rdi, %r9
shrq $0x20, %r9
cmpl %eax, %r9d
jne 0xee4e3
cmpl %ecx, 0x8(%r8)
je 0xee4f0
incl %ebx
cmpq %rbx, %rdx
ja 0xee4bf
jmp 0xee4f7
xorl %ebx, %ebx
jmp 0xee4fc
leal 0x1(%r13), %ebx
movl %edi, %r11d
movq 0x10(%rsp), %rsi
cmpl %r13d, %ebx
je 0xee52a
movq 0x18(%rsi), %rax
movl (%rax,%rbp,8), %r8d
cmpl %r8d, %r11d
jne 0xee560
addl %r11d, %r15d
movl %r12d, %ebp
movl %r12d, %r14d
movq 0x30(%rsp), %rcx
cmpq %rbp, %rcx
ja 0xee414
jmp 0xee5b5
movq 0x19baaf(%rip), %rax    # 0x289fe0
movl %r11d, 0x20(%rsp)
movq (%rax), %rdi
leaq 0x13df34(%rip), %rsi    # 0x22c474
movl %r14d, %edx
movl %ebx, %ecx
movl %r13d, %r8d
xorl %eax, %eax
callq 0x22b0
movl 0x20(%rsp), %r11d
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %r10
jmp 0xee501
movq 0x19ba79(%rip), %rax    # 0x289fe0
movl %r11d, %ebp
movq (%rax), %rdi
movl (%rsi), %r10d
movl 0x10(%rsi), %r11d
shrl $0x1f, %r10d
leaq 0x13df18(%rip), %rsi    # 0x22c497
movq 0x28(%rsp), %rdx
movl %ebp, %ecx
movl %r14d, %r9d
xorl %eax, %eax
pushq %r11
pushq %r10
pushq %r13
pushq %rbx
callq 0x22b0
movl %ebp, %r11d
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %r10
addq $0x20, %rsp
jmp 0xee50e
xorl %r12d, %r12d
xorl %r15d, %r15d
xorl %ebp, %ebp
cmpl 0x10(%rsi), %r12d
jae 0xee5ef
movq 0x18(%rsi), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rsp), %rcx
movq 0x20(%rcx), %rcx
movq %rax, %rdx
shrq $0x21, %rdx
movl (%rcx,%rdx,8), %ebx
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %ebx
cmpl %eax, %ebx
movq 0x38(%rsp), %r14
jne 0xeecaa
addl %ebx, %r15d
jmp 0xee5f4
movq 0x38(%rsp), %r14
movl (%rsi), %eax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %eax
cmpl %eax, %r15d
jne 0xeebe9
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
cmpl $-0x1, 0x4(%rax,%r14,8)
jne 0xee625
leaq (%rax,%r14,8), %rcx
cmpl $-0x1, 0x8(%rcx)
je 0xeebce
movq 0x28(%rsp), %rcx
shlq $0x4, %rcx
movq 0x40(%rsp), %rdx
movq 0x18(%rdx), %rdx
movq 0x8(%rdx), %rbx
movq 0x28(%rdx), %rdx
movq 0x8(%rdx,%rcx), %r13
movq %r13, %rcx
shrq $0x20, %rcx
movl 0x4(%rax,%r14,8), %r9d
xorq $0x1, %r9
movq 0x50(%rsp), %rax
movq 0x8(%rax), %r14
movq 0x28(%rax), %rax
movq (%rax,%r9,8), %r8
movq %r8, %rax
shrq $0x20, %rax
leaq (%rcx,%rcx,2), %r15
leaq (%rax,%rax,2), %r12
cmpl $0x0, 0x5c(%rsp)
movq %r9, 0x48(%rsp)
movq %r8, 0x8(%rsp)
je 0xee70f
xorl %eax, %eax
movq %r13, %rsi
movl $0x0, %ecx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
andq %rdx, %rsi
je 0xee6c8
leaq (%rbx,%r15,8), %rdx
addq $0xc, %rdx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rsi
xorl %edi, %edi
xorl %ecx, %ecx
movl (%rdx,%rdi), %r8d
notl %r8d
shrl $0x1f, %r8d
addl %r8d, %ecx
addq $0x18, %rdi
cmpq %rdi, %rsi
jne 0xee6b1
movq 0x8(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
andq %rdx, %rsi
je 0xee702
leaq (%r14,%r12,8), %rdx
addq $0xc, %rdx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rsi
xorl %edi, %edi
xorl %eax, %eax
movl (%rdx,%rdi), %r8d
notl %r8d
shrl $0x1f, %r8d
addl %r8d, %eax
addq $0x18, %rdi
cmpq %rdi, %rsi
jne 0xee6eb
cmpl %eax, %ecx
movq 0x8(%rsp), %r8
jne 0xeec38
movq %r13, 0x60(%rsp)
testl %r13d, %r13d
je 0xee8f6
leaq (%rbx,%r15,8), %rsi
leaq (%r14,%r12,8), %rax
movq %rax, 0x10(%rsp)
movl 0x60(%rsp), %edi
movl %r8d, %r14d
xorl %ebp, %ebp
movq %rsi, 0x30(%rsp)
movq %rdi, 0x20(%rsp)
leaq (,%rbp,2), %rcx
addq %rbp, %rcx
movl 0xc(%rsi,%rcx,8), %eax
testl %eax, %eax
js 0xee80d
leaq (%rsi,%rcx,8), %r11
movl 0x8(%r11), %r12d
movl %r12d, %r15d
andl $0x1, %r15d
shrl %r12d
leaq (%r12,%r12,4), %rcx
shlq $0x3, %rcx
movq 0x40(%rsp), %rdx
addq 0x10(%rdx), %rcx
movl 0x4(%rcx,%r15,4), %ecx
testl %r8d, %r8d
je 0xee7a6
movq 0x10(%rsp), %r13
xorl %ebx, %ebx
cmpl $0x0, 0xc(%r13)
js 0xee795
cmpl %ecx, 0x8(%r13)
je 0xee7ab
incq %rbx
addq $0x18, %r13
cmpq %rbx, %r14
jne 0xee788
movl %r8d, %ebx
jmp 0xee7a8
xorl %ebx, %ebx
xorl %r13d, %r13d
testq %r10, %r10
je 0xee7f9
testq %r13, %r13
jne 0xee7f9
movq (%r10), %rdx
testq %rdx, %rdx
je 0xee7f4
movq 0x10(%r10), %rsi
xorl %ebx, %ebx
leaq (%rbx,%rbx,2), %rdi
cmpl $0x0, 0xc(%rsi,%rdi,8)
js 0xee7de
leaq (%rsi,%rdi,8), %r13
cmpl %r9d, 0x4(%r13)
jne 0xee7de
cmpl %ecx, 0x8(%r13)
je 0xee7e8
incl %ebx
cmpq %rbx, %rdx
ja 0xee7c3
xorl %r13d, %r13d
movq 0x30(%rsp), %rsi
movq 0x20(%rsp), %rdi
jmp 0xee7f9
xorl %ebx, %ebx
xorl %r13d, %r13d
testq %r13, %r13
je 0xee81e
movl 0xc(%r13), %ecx
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl %edx, %ecx
cmpl %ecx, %eax
jne 0xee856
incq %rbp
cmpq %rdi, %rbp
jne 0xee73d
jmp 0xee8f6
movq 0x19b7bb(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x13dd21(%rip), %rsi    # 0x22c550
movq 0x28(%rsp), %rdx
xorl %eax, %eax
callq 0x22b0
movq 0x20(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x8(%rsp), %r8
movq 0x48(%rsp), %r9
movq 0x18(%rsp), %r10
jmp 0xee80d
movq 0x19b783(%rip), %rax    # 0x289fe0
movq (%rax), %rcx
movl $0x17, %esi
movl $0x1, %edx
leaq 0x13dcf6(%rip), %rdi    # 0x22c567
movq %r11, 0x78(%rsp)
callq 0x2410
movq 0x19b75e(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x13dcb4(%rip), %rsi    # 0x22c540
movq 0x60(%rsp), %rdx
movq 0x8(%rsp), %rcx
xorl %eax, %eax
callq 0x22b0
movq 0x19b73c(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
movq 0x78(%rsp), %rax
movl 0xc(%rax), %ecx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %ecx
movl 0xc(%r13), %r9d
andl %eax, %r9d
leaq 0x13dcbb(%rip), %rsi    # 0x22c57f
movl %ebp, %edx
movl %ebx, %r8d
xorl %eax, %eax
pushq %r15
pushq %r12
callq 0x22b0
movq 0x30(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x18(%rsp), %r8
movq 0x58(%rsp), %r9
movq 0x28(%rsp), %r10
addq $0x10, %rsp
jmp 0xee80d
movq 0x28(%rsp), %rax
addq %rax, %rax
movq 0x40(%rsp), %rdx
movq 0x10(%rdx), %rcx
movq 0x18(%rdx), %rdx
movq 0x8(%rdx), %rbx
movq 0x28(%rdx), %rdx
movq (%rdx,%rax,8), %r13
movq %r13, %rax
shrq $0x20, %rax
movq 0x38(%rsp), %rdx
movl 0x8(%rcx,%rdx,8), %r9d
xorq $0x1, %r9
movq 0x50(%rsp), %rcx
movq 0x8(%rcx), %r14
movq 0x28(%rcx), %rcx
movq (%rcx,%r9,8), %r8
movq %r8, %rcx
shrq $0x20, %rcx
leaq (%rax,%rax,2), %r15
leaq (%rcx,%rcx,2), %r12
cmpl $0x0, 0x5c(%rsp)
movq %r9, 0x38(%rsp)
movq %r8, 0x8(%rsp)
je 0xee9e7
xorl %eax, %eax
movq %r13, %rsi
movl $0x0, %ecx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
andq %rdx, %rsi
je 0xee9a0
leaq (%rbx,%r15,8), %rdx
addq $0xc, %rdx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rsi
xorl %edi, %edi
xorl %ecx, %ecx
movl (%rdx,%rdi), %r8d
notl %r8d
shrl $0x1f, %r8d
addl %r8d, %ecx
addq $0x18, %rdi
cmpq %rdi, %rsi
jne 0xee989
movq 0x8(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
andq %rdx, %rsi
je 0xee9da
leaq (%r14,%r12,8), %rdx
addq $0xc, %rdx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rsi
xorl %edi, %edi
xorl %eax, %eax
movl (%rdx,%rdi), %r8d
notl %r8d
shrl $0x1f, %r8d
addl %r8d, %eax
addq $0x18, %rdi
cmpq %rdi, %rsi
jne 0xee9c3
cmpl %eax, %ecx
movq 0x8(%rsp), %r8
jne 0xeec71
movq %r13, 0x48(%rsp)
testl %r13d, %r13d
je 0xeebce
leaq (%rbx,%r15,8), %rsi
leaq (%r14,%r12,8), %rax
movq %rax, 0x10(%rsp)
movl 0x48(%rsp), %edi
movl %r8d, %r14d
xorl %ebp, %ebp
movq %rsi, 0x30(%rsp)
movq %rdi, 0x20(%rsp)
leaq (,%rbp,2), %rcx
addq %rbp, %rcx
movl 0xc(%rsi,%rcx,8), %eax
testl %eax, %eax
js 0xeeae5
leaq (%rsi,%rcx,8), %r11
movl 0x8(%r11), %r12d
movl %r12d, %r15d
andl $0x1, %r15d
shrl %r12d
leaq (%r12,%r12,4), %rcx
shlq $0x3, %rcx
movq 0x40(%rsp), %rdx
addq 0x10(%rdx), %rcx
movl 0x4(%rcx,%r15,4), %ecx
testl %r8d, %r8d
je 0xeea7e
movq 0x10(%rsp), %r13
xorl %ebx, %ebx
cmpl $0x0, 0xc(%r13)
js 0xeea6d
cmpl %ecx, 0x8(%r13)
je 0xeea83
incq %rbx
addq $0x18, %r13
cmpq %rbx, %r14
jne 0xeea60
movl %r8d, %ebx
jmp 0xeea80
xorl %ebx, %ebx
xorl %r13d, %r13d
testq %r10, %r10
je 0xeead1
testq %r13, %r13
jne 0xeead1
movq (%r10), %rdx
testq %rdx, %rdx
je 0xeeacc
movq 0x10(%r10), %rsi
xorl %ebx, %ebx
leaq (%rbx,%rbx,2), %rdi
cmpl $0x0, 0xc(%rsi,%rdi,8)
js 0xeeab6
leaq (%rsi,%rdi,8), %r13
cmpl %r9d, 0x4(%r13)
jne 0xeeab6
cmpl %ecx, 0x8(%r13)
je 0xeeac0
incl %ebx
cmpq %rbx, %rdx
ja 0xeea9b
xorl %r13d, %r13d
movq 0x30(%rsp), %rsi
movq 0x20(%rsp), %rdi
jmp 0xeead1
xorl %ebx, %ebx
xorl %r13d, %r13d
testq %r13, %r13
je 0xeeaf6
movl 0xc(%r13), %ecx
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl %edx, %ecx
cmpl %ecx, %eax
jne 0xeeb2e
incq %rbp
cmpq %rdi, %rbp
jne 0xeea15
jmp 0xeebce
movq 0x19b4e3(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x13da49(%rip), %rsi    # 0x22c550
movq 0x28(%rsp), %rdx
xorl %eax, %eax
callq 0x22b0
movq 0x20(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x8(%rsp), %r8
movq 0x38(%rsp), %r9
movq 0x18(%rsp), %r10
jmp 0xeeae5
movq 0x19b4ab(%rip), %rax    # 0x289fe0
movq (%rax), %rcx
movl $0x17, %esi
movl $0x1, %edx
leaq 0x13da1e(%rip), %rdi    # 0x22c567
movq %r11, 0x60(%rsp)
callq 0x2410
movq 0x19b486(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x13d9dc(%rip), %rsi    # 0x22c540
movq 0x48(%rsp), %rdx
movq 0x8(%rsp), %rcx
xorl %eax, %eax
callq 0x22b0
movq 0x19b464(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
movq 0x60(%rsp), %rax
movl 0xc(%rax), %ecx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %ecx
movl 0xc(%r13), %r9d
andl %eax, %r9d
leaq 0x13d9e3(%rip), %rsi    # 0x22c57f
movl %ebp, %edx
movl %ebx, %r8d
xorl %eax, %eax
pushq %r15
pushq %r12
callq 0x22b0
movq 0x30(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x18(%rsp), %r8
movq 0x48(%rsp), %r9
movq 0x28(%rsp), %r10
addq $0x10, %rsp
jmp 0xeeae5
movq 0x28(%rsp), %rcx
incq %rcx
cmpq 0x80(%rsp), %rcx
jne 0xee36d
jmp 0xeecd6
movq 0x19b3f0(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x13d914(%rip), %rsi    # 0x22c50e
movq 0x28(%rsp), %rdx
xorl %eax, %eax
callq 0x22b0
movq 0x18(%rsp), %r10
jmp 0xee606
callq 0x116ee
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %r10
jmp 0xee3c4
callq 0x1170a
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %r10
jmp 0xee3e2
movq 0x19b3a1(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x13d8e0(%rip), %rsi    # 0x22c529
movq 0x28(%rsp), %rdx
movl %r13d, %ecx
movq 0x8(%rsp), %r8
xorl %eax, %eax
callq 0x22b0
movq 0x8(%rsp), %r8
movq 0x48(%rsp), %r9
movq 0x18(%rsp), %r10
jmp 0xee70f
movq 0x19b368(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x13d93a(%rip), %rsi    # 0x22c5bc
movq 0x28(%rsp), %rdx
movl %r13d, %ecx
movq 0x8(%rsp), %r8
xorl %eax, %eax
callq 0x22b0
movq 0x8(%rsp), %r8
movq 0x38(%rsp), %r9
movq 0x18(%rsp), %r10
jmp 0xee9e7
movq 0x19b32f(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x13d83a(%rip), %rsi    # 0x22c4f5
movq 0x28(%rsp), %rdx
xorl %eax, %eax
callq 0x22b0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %r10
jmp 0xee5ea
cmpl $0x1, 0x6c(%rsp)
je 0xeecef
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x70(%rsp), %rsi
leaq 0x14(%rsi), %rdi
callq 0x11726
jmp 0xeecdd