// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: print_node(asg_t*, ma_ug_t*)
void print_node(asg_t* g, ma_ug_t *ug)
{
    int input_iv;
    uint32_t iv, v;
    asg_arc_t *av, *aw;
    uint32_t nv, nw, i, k, w;
    while (1)
    {
        fprintf(stderr, "\n\ninput v: ");
        if(scanf("%d", &input_iv) == 0) break;
        if(input_iv == -1) break;
        iv = input_iv;
        iv = iv << 1;

        v = iv;
        av = asg_arc_a(g, v);
        nv = asg_arc_n(g, v);
        fprintf(stderr, "0**************v>>1: %u, v&1: %u, c: %u, del: %u, len: %u**************\n", 
        v>>1, v&1, (uint32_t)g->seq[v>>1].c, (uint32_t)g->seq[v>>1].del, g->seq[v>>1].len);
        for (i = 0; i < nv; i++)
        {
            if(av[i].del) continue;
            w = av[i].v;
            fprintf(stderr, "(%u) w>>1: %u, w&1: %u, ol: %u, eLen: %u\n", 
            i, w>>1, w&1, av[i].ol, (uint32_t)av[i].ul);
            

            aw = asg_arc_a(g, w^1);
            nw = asg_arc_n(g, w^1);
            for (k = 0; k < nw; k++)
            {
                if(aw[k].del) continue;
                if(aw[k].v == (v^1)) break;
            }

            fprintf(stderr, "self>>1: %u, self&1: %u, out>>1: %u, out^1: %u, is_sym: %u\n", 
            (uint32_t)(av[i].ul>>33), (uint32_t)((av[i].ul>>32)&1), av[i].v>>1, av[i].v&1, 
            (uint32_t)(k != nw));

        }






        v = iv^1;
        av = asg_arc_a(g, v);
        nv = asg_arc_n(g, v);
        fprintf(stderr, "1**************v>>1: %u, v&1: %u, c: %u, del: %u, len: %u**************\n", 
        v>>1, v&1, (uint32_t)g->seq[v>>1].c, (uint32_t)g->seq[v>>1].del, (uint32_t)g->seq[v>>1].len);
        for (i = 0; i < nv; i++)
        {
            if(av[i].del) continue;
            w = av[i].v;
            fprintf(stderr, "w>>1: %u, w&1: %u, ol: %u, eLen: %u\n", 
            w>>1, w&1, (uint32_t)av[i].ol, (uint32_t)av[i].ul);
            

            aw = asg_arc_a(g, w^1);
            nw = asg_arc_n(g, w^1);
            for (k = 0; k < nw; k++)
            {
                if(aw[k].del) continue;
                if(aw[k].v == (v^1)) break;
            }

            fprintf(stderr, "self>>1: %u, self&1: %u, out>>1: %u, out^1: %u, is_sym: %u\n", 
            (uint32_t)(av[i].ul>>33), (uint32_t)((av[i].ul>>32)&1), av[i].v>>1, av[i].v&1, 
            (uint32_t)(k != nw));

        }

        if(ug != NULL)
        {
            ma_utg_t *ma_v = &(ug->u.a[v>>1]);
            fprintf(stderr, "\n###\nma_v->n: %u, ma_v->len: %u\n", ma_v->n, ma_v->len);
            fprintf(stderr, "start>>1: %u, start&1: %u, end>>1: %u, end&1: %u\n", 
            ma_v->start>>1, ma_v->start&1, ma_v->end>>1, ma_v->end&1);
            for (i = 0; i < ma_v->n; i++)
            {
                v = ma_v->a[i]>>32;
                fprintf(stderr, "i: %u, v>>1: %u, v&1: %u, len: %u\n", 
                i, v>>1, v&1, (uint32_t)ma_v->a[i]);
            }
            
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r15
movq %rdi, 0x8(%rsp)
movq 0x288473(%rip), %r12    # 0x294fe0
movq (%r12), %rcx
leaq 0x22b966(%rip), %rdi    # 0x2384de
pushq $0xb
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
leaq 0x22c4f2(%rip), %rdi    # 0x23907c
leaq 0x14(%rsp), %rbx
movq %rbx, %rsi
xorl %eax, %eax
callq 0x21e0
testl %eax, %eax
sete %al
movl (%rbx), %r14d
cmpl $-0x1, %r14d
sete %cl
orb %al, %cl
je 0xcbbb
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, 0x28(%rsp)
leal (%r14,%r14), %r13d
movq 0x8(%rsp), %rdx
movq 0x20(%rdx), %rax
movq 0x28(%rdx), %rcx
movq (%rcx,%r13,8), %rbx
movq %rbx, %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %r15
addq 0x8(%rdx), %r15
movq (%r12), %rdi
movl %r14d, %edx
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %edx
movzbl 0x4(%rax,%rdx,8), %r8d
movl (%rax,%rdx,8), %eax
movl %eax, %r9d
shrl $0x1f, %r9d
andl %ecx, %eax
movl %eax, (%rsp)
leaq 0x22b8dc(%rip), %rsi    # 0x2384ea
movq %rdx, 0x20(%rsp)
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x22b0
leal 0x1(,%r14,2), %ebp
testl %ebx, %ebx
jne 0xcd8b
movq 0x8(%rsp), %rsi
movq 0x20(%rsi), %rax
movq 0x28(%rsi), %rcx
movl %ebp, %edx
movq (%rcx,%rdx,8), %r14
movq %r14, %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rbx
addq 0x8(%rsi), %rbx
movq (%r12), %rdi
movq 0x20(%rsp), %rdx
movzbl 0x4(%rax,%rdx,8), %r8d
movl (%rax,%rdx,8), %eax
movl %eax, %r9d
shrl $0x1f, %r9d
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, (%rsp)
leaq 0x22b923(%rip), %rsi    # 0x238599
pushq $0x1
popq %rcx
xorl %eax, %eax
callq 0x22b0
testl %r14d, %r14d
jne 0xce88
movq 0x28(%rsp), %r15
testq %r15, %r15
movq 0x288348(%rip), %r12    # 0x294fe0
leaq 0x22b996(%rip), %r13    # 0x238635
je 0xcd41
movq 0x10(%r15), %r14
imulq $0x28, 0x20(%rsp), %rbx
movq (%r12), %rdi
movl 0x10(%r14,%rbx), %edx
movl (%r14,%rbx), %ecx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %ecx
leaq 0x22b918(%rip), %rsi    # 0x2385e2
xorl %eax, %eax
callq 0x22b0
movq (%r12), %rdi
movl 0x4(%r14,%rbx), %ecx
movl 0x8(%r14,%rbx), %r9d
movl %ecx, %edx
shrl %edx
andl $0x1, %ecx
movl %r9d, %r8d
shrl %r8d
andl $0x1, %r9d
leaq 0x22b90c(%rip), %rsi    # 0x238603
xorl %eax, %eax
callq 0x22b0
cmpl $0x0, 0x10(%r14,%rbx)
je 0xcd41
addq %rbx, %r14
xorl %ebx, %ebx
movq 0x18(%r14), %rax
movq (%rax,%rbx,8), %r9
movq %r9, %r8
shrq $0x20, %r8
movq (%r12), %rdi
movq %r9, %rcx
shrq $0x21, %rcx
andl $0x1, %r8d
movq %r13, %rsi
movl %ebx, %edx
xorl %eax, %eax
callq 0x22b0
incq %rbx
movl 0x10(%r14), %eax
cmpq %rax, %rbx
jb 0xcd0b
movq (%r12), %rcx
leaq 0x22b792(%rip), %rdi    # 0x2384de
pushq $0xb
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
leaq 0x22c31e(%rip), %rdi    # 0x23907c
leaq 0x14(%rsp), %rsi
xorl %eax, %eax
callq 0x21e0
testl %eax, %eax
sete %al
movl 0x14(%rsp), %r14d
cmpl $-0x1, %r14d
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0xcbc0
jmp 0xcbac
movq %r15, %rax
movl %ebx, %ecx
xorl %r15d, %r15d
movq %rax, 0x18(%rsp)
movq %rcx, 0x30(%rsp)
imulq $0x18, %r15, %r14
movl 0xc(%rax,%r14), %r9d
testl %r9d, %r9d
jns 0xcdb8
incq %r15
cmpq %rcx, %r15
jne 0xcd9d
jmp 0xcc2c
addq %rax, %r14
movl (%r14), %eax
movq %r12, %rcx
movl 0x8(%r14), %r12d
movq (%rcx), %rdi
movl %r12d, %ecx
shrl %ecx
movl %r12d, %r8d
andl $0x1, %r8d
movl %eax, (%rsp)
xorl %ebx, %ebx
leaq 0x22b753(%rip), %rsi    # 0x238533
movl %r15d, %edx
xorl %eax, %eax
callq 0x22b0
movq 0x8(%rsp), %rax
movq 0x28(%rax), %rax
xorq $0x1, %r12
movq (%rax,%r12,8), %rax
testl %eax, %eax
je 0xce36
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rdx
movq %rax, %rsi
shrq $0x20, %rsi
movl %eax, %ecx
imulq $0x18, %rsi, %rsi
addq %rsi, %rdx
addq $0xc, %rdx
xorl %ebx, %ebx
cmpl $0x0, (%rdx)
js 0xce28
cmpl %ebp, -0x4(%rdx)
je 0xce36
incq %rbx
addq $0x18, %rdx
cmpq %rbx, %rcx
jne 0xce1e
movl %eax, %ebx
movq 0x2881a3(%rip), %r12    # 0x294fe0
movq (%r12), %rdi
movq (%r14), %rcx
movq %rcx, %rdx
shrq $0x21, %rdx
shrq $0x20, %rcx
andl $0x1, %ecx
movl 0x8(%r14), %r9d
movl %r9d, %r8d
shrl %r8d
andl $0x1, %r9d
xorl %esi, %esi
cmpl %eax, %ebx
setne %sil
movl %esi, (%rsp)
leaq 0x22b6eb(%rip), %rsi    # 0x23855d
xorl %eax, %eax
callq 0x22b0
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
jmp 0xcdab
movl %r14d, %r15d
xorl %r12d, %r12d
movq %rbx, 0x18(%rsp)
imulq $0x18, %r12, %r14
movl 0xc(%rbx,%r14), %r8d
testl %r8d, %r8d
jns 0xceae
incq %r12
cmpq %r15, %r12
jne 0xce93
jmp 0xcc89
addq %rbx, %r14
movl (%r14), %r9d
movl 0x8(%r14), %ebx
movq 0x288121(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
movl %ebx, %edx
shrl %edx
movl %ebx, %ecx
andl $0x1, %ecx
xorl %ebp, %ebp
leaq 0x22b664(%rip), %rsi    # 0x238538
xorl %eax, %eax
callq 0x22b0
movq 0x8(%rsp), %rax
movq 0x28(%rax), %rax
xorq $0x1, %rbx
movq (%rax,%rbx,8), %rax
testl %eax, %eax
je 0xcf28
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rdx
movq %rax, %rsi
shrq $0x20, %rsi
movl %eax, %ecx
imulq $0x18, %rsi, %rsi
addq %rsi, %rdx
addq $0xc, %rdx
xorl %ebp, %ebp
cmpl $0x0, (%rdx)
js 0xcf1a
cmpl %r13d, -0x4(%rdx)
je 0xcf28
incq %rbp
addq $0x18, %rdx
cmpq %rbp, %rcx
jne 0xcf0f
movl %eax, %ebp
movq 0x2880b1(%rip), %rcx    # 0x294fe0
movq (%rcx), %rdi
movq (%r14), %rcx
movq %rcx, %rdx
shrq $0x21, %rdx
shrq $0x20, %rcx
andl $0x1, %ecx
movl 0x8(%r14), %r9d
movl %r9d, %r8d
shrl %r8d
andl $0x1, %r9d
xorl %esi, %esi
cmpl %eax, %ebp
setne %sil
movl %esi, (%rsp)
leaq 0x22b5fa(%rip), %rsi    # 0x23855d
xorl %eax, %eax
callq 0x22b0
movq 0x18(%rsp), %rbx
jmp 0xcea1