// File: /workspace/github_cpp_makefile_star2_O3/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 0x18(%rdi), %rax
movq %rax, 0x78(%rsp)
movl 0x14(%rax), %eax
andq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
movq %rax, 0x80(%rsp)
je 0xf0b3f
movq %rdx, %r9
movq %rsi, %r10
xorl %ecx, %ecx
movq %rdx, 0x10(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdi, 0x8(%rsp)
movq 0x18(%rdi), %rax
movq 0x20(%rax), %rax
movq %rcx, 0x18(%rsp)
cmpl $0x0, (%rax,%rcx,8)
js 0xf09e2
movq 0x10(%rdi), %rcx
movq 0x18(%rsp), %rax
leaq (%rax,%rax,4), %r14
movl 0x10(%rcx,%r14,8), %eax
testl %eax, %eax
je 0xf09e2
leaq (%rcx,%r14,8), %r13
movl 0x4(%r13), %ecx
cmpl $-0x1, %ecx
je 0xf022d
movq 0x18(%r13), %rdx
cmpl 0x4(%rdx), %ecx
jne 0xf0a2e
movl 0x8(%r13), %ecx
cmpl $-0x1, %ecx
je 0xf024a
movq 0x18(%r13), %rdx
leal -0x1(%rax), %esi
xorl 0x4(%rdx,%rsi,8), %ecx
cmpl $0x1, %ecx
jne 0xf0a66
leal -0x1(%rax), %edx
cmpl $-0x1, 0x4(%r13)
jne 0xf0261
xorl %ecx, %ecx
cmpl $-0x1, 0x8(%r13)
sete %cl
addq %rcx, %rdx
testq %rdx, %rdx
movq %r14, 0x48(%rsp)
je 0xf040b
xorl %ebx, %ebx
xorl %r12d, %r12d
xorl %r14d, %r14d
movq %r13, 0x40(%rsp)
movq %rdx, 0x50(%rsp)
movq 0x18(%r13), %rcx
movq (%rcx,%rbx,8), %r8
movq %r8, %rax
shrq $0x20, %rax
movl 0x10(%r13), %edx
decl %edx
leal 0x1(%r14), %r15d
cmpl %edx, %r14d
movl %r15d, %edx
movl $0x0, %esi
cmovel %esi, %edx
movl 0x4(%rcx,%rdx,8), %ecx
movq 0x28(%r10), %rdx
movq (%rdx,%rax,8), %r13
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %r13d, %r13d
je 0xf02f6
movq 0x8(%r10), %rsi
movq %r13, %rdi
shrq $0x20, %rdi
movl %r13d, %edx
leaq (%rdi,%rdi,2), %rdi
leaq (%rsi,%rdi,8), %rsi
addq $0xc, %rsi
xorl %r10d, %r10d
cmpl $0x0, (%rsi)
js 0xf02e5
cmpl %ecx, -0x4(%rsi)
je 0xf02fb
incq %r10
addq $0x18, %rsi
cmpq %r10, %rdx
jne 0xf02db
movl %r13d, %r10d
jmp 0xf02fe
xorl %r10d, %r10d
jmp 0xf02fe
movl -0xc(%rsi), %ebp
testq %r9, %r9
je 0xf034d
cmpl %r13d, %r10d
jne 0xf034d
movq 0x10(%rsp), %rsi
movq (%rsi), %rdx
testq %rdx, %rdx
je 0xf034a
movq 0x10(%rsi), %rsi
xorl %r10d, %r10d
leaq (%r10,%r10,2), %rdi
cmpl $0x0, 0xc(%rsi,%rdi,8)
js 0xf0340
leaq (%rsi,%rdi,8), %r9
movq (%r9), %rdi
movq %rdi, %r11
shrq $0x20, %r11
cmpl %eax, %r11d
jne 0xf0340
cmpl %ecx, 0x8(%r9)
je 0xf037f
incl %r10d
cmpq %r10, %rdx
ja 0xf031c
jmp 0xf034d
xorl %r10d, %r10d
cmpl %r13d, %r10d
je 0xf03c5
cmpl %r8d, %ebp
jne 0xf0387
addl %ebp, %r12d
movl %r15d, %ebx
movl %r15d, %r14d
movq 0x50(%rsp), %rdx
cmpq %rbx, %rdx
movq 0x10(%rsp), %r9
movq 0x20(%rsp), %r10
movq 0x40(%rsp), %r13
ja 0xf0281
jmp 0xf03fb
leal 0x1(%r13), %r10d
movl %edi, %ebp
jmp 0xf0352
movq 0x1a4c52(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
movq 0x40(%rsp), %rax
movl (%rax), %r11d
movl 0x10(%rax), %ebx
shrl $0x1f, %r11d
leaq 0x1482e0(%rip), %rsi    # 0x238687
movq 0x18(%rsp), %rdx
movl %ebp, %ecx
movl %r14d, %r9d
xorl %eax, %eax
pushq %rbx
pushq %r11
pushq %r13
pushq %r10
callq 0x22b0
addq $0x20, %rsp
jmp 0xf0357
movq 0x1a4c14(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
leaq 0x14828e(%rip), %rsi    # 0x238664
movl %r14d, %edx
movl %r13d, %ecx
movl %r13d, %r8d
xorl %eax, %eax
callq 0x22b0
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rax
movq (%rax,%rbx,8), %r8
movl %r13d, %r10d
jmp 0xf0352
movl 0x10(%r13), %eax
movq 0x8(%rsp), %rdi
movq 0x48(%rsp), %r14
jmp 0xf0413
xorl %r15d, %r15d
xorl %r12d, %r12d
xorl %ebx, %ebx
cmpl %eax, %r15d
jae 0xf0440
movq 0x18(%r13), %rax
movq (%rax,%rbx,8), %rax
movq 0x20(%r10), %rcx
movq %rax, %rdx
shrq $0x21, %rdx
movl (%rcx,%rdx,8), %ebx
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %ebx
cmpl %eax, %ebx
jne 0xf0b0e
addl %ebx, %r12d
movl (%r13), %eax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %eax
cmpl %eax, %r12d
jne 0xf09fd
movq 0x10(%rdi), %rax
movl 0x4(%rax,%r14,8), %ebx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rbx
jne 0xf0475
leaq (%rax,%r14,8), %rax
cmpl $-0x1, 0x8(%rax)
je 0xf09e2
movq 0x18(%rsp), %rax
shlq $0x4, %rax
movq 0x18(%rdi), %rcx
movq 0x8(%rcx), %r14
movq 0x28(%rcx), %rcx
movq 0x8(%rcx,%rax), %rbp
movq %rbp, %rax
shrq $0x20, %rax
xorq $0x1, %rbx
movq 0x8(%r10), %r15
movq 0x28(%r10), %rcx
movq (%rcx,%rbx,8), %r8
movq %r8, %rcx
shrq $0x20, %rcx
leaq (%rax,%rax,2), %r12
leaq (%rcx,%rcx,2), %r13
cmpl $0x0, 0x5c(%rsp)
movq %r8, 0x28(%rsp)
je 0xf0549
xorl %eax, %eax
movq %rbp, %rsi
movl $0x0, %ecx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
andq %rdx, %rsi
je 0xf0504
leaq (%r14,%r12,8), %rdx
addq $0xc, %rdx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rsi
xorl %edi, %edi
xorl %ecx, %ecx
movl (%rdx,%rdi), %r11d
notl %r11d
shrl $0x1f, %r11d
addl %r11d, %ecx
addq $0x18, %rdi
cmpq %rdi, %rsi
jne 0xf04ed
movq %r8, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
andq %rdx, %rsi
je 0xf053c
leaq (%r15,%r13,8), %rdx
addq $0xc, %rdx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rsi
xorl %edi, %edi
xorl %eax, %eax
movl (%rdx,%rdi), %r11d
notl %r11d
shrl $0x1f, %r11d
addl %r11d, %eax
addq $0x18, %rdi
cmpq %rdi, %rsi
jne 0xf0525
cmpl %eax, %ecx
movq 0x8(%rsp), %rdi
jne 0xf0a9e
movq %rbp, 0x70(%rsp)
testl %ebp, %ebp
je 0xf0726
leaq (%r14,%r12,8), %rsi
leaq (%r15,%r13,8), %rax
movq %rax, 0x60(%rsp)
movl 0x70(%rsp), %r11d
movl %r8d, %ebp
xorl %r13d, %r13d
movq %rsi, 0x38(%rsp)
movq %r11, 0x30(%rsp)
leaq (,%r13,2), %rcx
addq %r13, %rcx
movl 0xc(%rsi,%rcx,8), %eax
testl %eax, %eax
js 0xf0672
leaq (%rsi,%rcx,8), %rcx
movq %rcx, 0x50(%rsp)
movl 0x8(%rcx), %r12d
movl %r12d, %edx
andl $0x1, %edx
shrl %r12d
leaq (%r12,%r12,4), %rcx
shlq $0x3, %rcx
addq 0x10(%rdi), %rcx
movq %rdx, 0x40(%rsp)
movl 0x4(%rcx,%rdx,4), %ecx
testl %r8d, %r8d
je 0xf05e4
movq 0x60(%rsp), %r15
xorl %r14d, %r14d
cmpl $0x0, 0xc(%r15)
js 0xf05d8
cmpl %ecx, 0x8(%r15)
je 0xf0663
incq %r14
addq $0x18, %r15
cmpq %r14, %rbp
jne 0xf05c7
testq %r9, %r9
je 0xf061c
movq (%r9), %rdx
testq %rdx, %rdx
je 0xf061c
movq 0x10(%r9), %rsi
xorl %r14d, %r14d
leaq (%r14,%r14,2), %r11
cmpl $0x0, 0xc(%rsi,%r11,8)
js 0xf0614
leaq (%rsi,%r11,8), %r15
cmpl %ebx, 0x4(%r15)
jne 0xf0614
cmpl %ecx, 0x8(%r15)
je 0xf0659
incl %r14d
cmpq %r14, %rdx
ja 0xf05f8
movq 0x1a49bd(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
leaq 0x148113(%rip), %rsi    # 0x238740
movq 0x18(%rsp), %rdx
xorl %eax, %eax
callq 0x22b0
movq 0x28(%rsp), %r8
movq 0x8(%rsp), %rdi
movq 0x20(%rsp), %r10
movq 0x10(%rsp), %r9
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %r11
jmp 0xf0672
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %r11
movl 0xc(%r15), %ecx
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl %edx, %ecx
cmpl %ecx, %eax
jne 0xf0683
incq %r13
cmpq %r11, %r13
jne 0xf0578
jmp 0xf0726
movq 0x1a4956(%rip), %rax    # 0x294fe0
movq (%rax), %rcx
movl $0x17, %esi
movl $0x1, %edx
leaq 0x1480b9(%rip), %rdi    # 0x238757
callq 0x2410
movq 0x1a4936(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
leaq 0x14807c(%rip), %rsi    # 0x238730
movq 0x70(%rsp), %rdx
movq 0x28(%rsp), %rcx
xorl %eax, %eax
callq 0x22b0
movq 0x1a4914(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
movq 0x50(%rsp), %rax
movl 0xc(%rax), %ecx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %ecx
movl 0xc(%r15), %r9d
andl %eax, %r9d
leaq 0x148083(%rip), %rsi    # 0x23876f
movl %r13d, %edx
movl %r14d, %r8d
xorl %eax, %eax
pushq 0x40(%rsp)
pushq %r12
callq 0x22b0
movq 0x40(%rsp), %r11
movq 0x48(%rsp), %rsi
movq 0x38(%rsp), %r8
movq 0x18(%rsp), %rdi
movq 0x30(%rsp), %r10
movq 0x20(%rsp), %r9
addq $0x10, %rsp
jmp 0xf0672
movq 0x18(%rsp), %rax
addq %rax, %rax
movq 0x10(%rdi), %rcx
movq 0x18(%rdi), %rdx
movq 0x8(%rdx), %r14
movq 0x28(%rdx), %rdx
movq (%rdx,%rax,8), %rbp
movq %rbp, %rax
shrq $0x20, %rax
movq 0x48(%rsp), %rdx
movl 0x8(%rcx,%rdx,8), %ebx
xorq $0x1, %rbx
movq 0x8(%r10), %r15
movq 0x28(%r10), %rcx
movq (%rcx,%rbx,8), %r8
movq %r8, %rcx
shrq $0x20, %rcx
leaq (%rax,%rax,2), %r12
leaq (%rcx,%rcx,2), %r13
cmpl $0x0, 0x5c(%rsp)
movq %r8, 0x28(%rsp)
je 0xf0805
xorl %eax, %eax
movq %rbp, %rsi
movl $0x0, %ecx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
andq %rdx, %rsi
je 0xf07c0
leaq (%r14,%r12,8), %rdx
addq $0xc, %rdx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rsi
xorl %edi, %edi
xorl %ecx, %ecx
movl (%rdx,%rdi), %r11d
notl %r11d
shrl $0x1f, %r11d
addl %r11d, %ecx
addq $0x18, %rdi
cmpq %rdi, %rsi
jne 0xf07a9
movq %r8, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
andq %rdx, %rsi
je 0xf07f8
leaq (%r15,%r13,8), %rdx
addq $0xc, %rdx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rsi
xorl %edi, %edi
xorl %eax, %eax
movl (%rdx,%rdi), %r11d
notl %r11d
shrl $0x1f, %r11d
addl %r11d, %eax
addq $0x18, %rdi
cmpq %rdi, %rsi
jne 0xf07e1
cmpl %eax, %ecx
movq 0x8(%rsp), %rdi
jne 0xf0ad6
movq %rbp, 0x48(%rsp)
testl %ebp, %ebp
je 0xf09e2
leaq (%r14,%r12,8), %rsi
leaq (%r15,%r13,8), %rax
movq %rax, 0x60(%rsp)
movl 0x48(%rsp), %r11d
movl %r8d, %ebp
xorl %r13d, %r13d
movq %rsi, 0x38(%rsp)
movq %r11, 0x30(%rsp)
leaq (,%r13,2), %rcx
addq %r13, %rcx
movl 0xc(%rsi,%rcx,8), %eax
testl %eax, %eax
js 0xf092e
leaq (%rsi,%rcx,8), %rcx
movq %rcx, 0x50(%rsp)
movl 0x8(%rcx), %r12d
movl %r12d, %edx
andl $0x1, %edx
shrl %r12d
leaq (%r12,%r12,4), %rcx
shlq $0x3, %rcx
addq 0x10(%rdi), %rcx
movq %rdx, 0x40(%rsp)
movl 0x4(%rcx,%rdx,4), %ecx
testl %r8d, %r8d
je 0xf08a0
movq 0x60(%rsp), %r15
xorl %r14d, %r14d
cmpl $0x0, 0xc(%r15)
js 0xf0894
cmpl %ecx, 0x8(%r15)
je 0xf091f
incq %r14
addq $0x18, %r15
cmpq %r14, %rbp
jne 0xf0883
testq %r9, %r9
je 0xf08d8
movq (%r9), %rdx
testq %rdx, %rdx
je 0xf08d8
movq 0x10(%r9), %rsi
xorl %r14d, %r14d
leaq (%r14,%r14,2), %r11
cmpl $0x0, 0xc(%rsi,%r11,8)
js 0xf08d0
leaq (%rsi,%r11,8), %r15
cmpl %ebx, 0x4(%r15)
jne 0xf08d0
cmpl %ecx, 0x8(%r15)
je 0xf0915
incl %r14d
cmpq %r14, %rdx
ja 0xf08b4
movq 0x1a4701(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
leaq 0x147e57(%rip), %rsi    # 0x238740
movq 0x18(%rsp), %rdx
xorl %eax, %eax
callq 0x22b0
movq 0x28(%rsp), %r8
movq 0x8(%rsp), %rdi
movq 0x20(%rsp), %r10
movq 0x10(%rsp), %r9
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %r11
jmp 0xf092e
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %r11
movl 0xc(%r15), %ecx
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl %edx, %ecx
cmpl %ecx, %eax
jne 0xf093f
incq %r13
cmpq %r11, %r13
jne 0xf0834
jmp 0xf09e2
movq 0x1a469a(%rip), %rax    # 0x294fe0
movq (%rax), %rcx
movl $0x17, %esi
movl $0x1, %edx
leaq 0x147dfd(%rip), %rdi    # 0x238757
callq 0x2410
movq 0x1a467a(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
leaq 0x147dc0(%rip), %rsi    # 0x238730
movq 0x48(%rsp), %rdx
movq 0x28(%rsp), %rcx
xorl %eax, %eax
callq 0x22b0
movq 0x1a4658(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
movq 0x50(%rsp), %rax
movl 0xc(%rax), %ecx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %ecx
movl 0xc(%r15), %r9d
andl %eax, %r9d
leaq 0x147dc7(%rip), %rsi    # 0x23876f
movl %r13d, %edx
movl %r14d, %r8d
xorl %eax, %eax
pushq 0x40(%rsp)
pushq %r12
callq 0x22b0
movq 0x40(%rsp), %r11
movq 0x48(%rsp), %rsi
movq 0x38(%rsp), %r8
movq 0x18(%rsp), %rdi
movq 0x30(%rsp), %r10
movq 0x20(%rsp), %r9
addq $0x10, %rsp
jmp 0xf092e
movq 0x18(%rsp), %rcx
incq %rcx
cmpq 0x80(%rsp), %rcx
jne 0xf01e2
jmp 0xf0b3f
movq 0x1a45dc(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
leaq 0x147cf0(%rip), %rsi    # 0x2386fe
movq 0x18(%rsp), %rdx
xorl %eax, %eax
callq 0x22b0
movq 0x8(%rsp), %rdi
movq 0x20(%rsp), %r10
movq 0x10(%rsp), %r9
jmp 0xf0454
movq 0x1a45ab(%rip), %rax    # 0x294fe0
movq (%rax), %rcx
movl $0x5, %esi
movl $0x1, %edx
leaq 0x147c0f(%rip), %rdi    # 0x238658
callq 0x2410
movq 0x8(%rsp), %rdi
movq 0x20(%rsp), %r10
movq 0x10(%rsp), %r9
movl 0x10(%r13), %eax
jmp 0xf022d
movq 0x1a4573(%rip), %rax    # 0x294fe0
movq (%rax), %rcx
movl $0x5, %esi
movl $0x1, %edx
leaq 0x147bdd(%rip), %rdi    # 0x23865e
callq 0x2410
movq 0x8(%rsp), %rdi
movq 0x20(%rsp), %r10
movq 0x10(%rsp), %r9
movl 0x10(%r13), %eax
jmp 0xf024a
movq 0x1a453b(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
leaq 0x147c6a(%rip), %rsi    # 0x238719
movq 0x18(%rsp), %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x22b0
movq 0x28(%rsp), %r8
movq 0x8(%rsp), %rdi
movq 0x20(%rsp), %r10
movq 0x10(%rsp), %r9
jmp 0xf0549
movq 0x1a4503(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
leaq 0x147cc5(%rip), %rsi    # 0x2387ac
movq 0x18(%rsp), %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x22b0
movq 0x28(%rsp), %r8
movq 0x8(%rsp), %rdi
movq 0x20(%rsp), %r10
movq 0x10(%rsp), %r9
jmp 0xf0805
movq 0x1a44cb(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
leaq 0x147bc6(%rip), %rsi    # 0x2386e5
movq 0x18(%rsp), %rdx
xorl %eax, %eax
callq 0x22b0
movq 0x8(%rsp), %rdi
movq 0x20(%rsp), %r10
movq 0x10(%rsp), %r9
jmp 0xf043d
cmpl $0x1, 0x6c(%rsp)
je 0xf0b58
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x78(%rsp), %rsi
leaq 0x14(%rsi), %rdi
callq 0x1141f
jmp 0xf0b46