// File: /workspace/github_cpp_makefile_star2_O1/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 0x27d3c2(%rip), %rbp    # 0x289fe0
movq (%rbp), %rcx
leaq 0x21f6c5(%rip), %rdi    # 0x22c2ee
pushq $0xb
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
leaq 0x220251(%rip), %rdi    # 0x22ce8c
leaq 0x14(%rsp), %rbx
movq %rbx, %rsi
xorl %eax, %eax
callq 0x21e0
testl %eax, %eax
sete %al
movl (%rbx), %edx
cmpl $-0x1, %edx
sete %cl
orb %al, %cl
je 0xcc6a
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, 0x28(%rsp)
leal (%rdx,%rdx), %r13d
movq 0x8(%rsp), %rcx
movq 0x28(%rcx), %rax
movq (%rax,%r13,8), %r14
movq %r14, %rax
shrq $0x20, %rax
imulq $0x18, %rax, %r12
addq 0x8(%rcx), %r12
movq 0x20(%rcx), %rax
movq (%rbp), %rdi
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 0x21f640(%rip), %rsi    # 0x22c2fa
movq %rdx, 0x20(%rsp)
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x22b0
testl %r14d, %r14d
jne 0xce28
movq 0x8(%rsp), %rsi
movq 0x20(%rsi), %rax
movq 0x28(%rsi), %rcx
movl %r13d, %edx
movq 0x8(%rcx,%rdx,8), %rbx
movq %rbx, %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %r15
addq 0x8(%rsi), %r15
movq (%rbp), %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 0x21f68c(%rip), %rsi    # 0x22c3a9
pushq $0x1
popq %rcx
xorl %eax, %eax
callq 0x22b0
testl %ebx, %ebx
jne 0xcf29
movq 0x28(%rsp), %r15
testq %r15, %r15
leaq 0x21f707(%rip), %r12    # 0x22c445
je 0xcde0
movq 0x10(%r15), %r14
imulq $0x28, 0x20(%rsp), %rbx
movq (%rbp), %rdi
movl 0x10(%r14,%rbx), %edx
movl (%r14,%rbx), %ecx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %ecx
leaq 0x21f689(%rip), %rsi    # 0x22c3f2
xorl %eax, %eax
callq 0x22b0
movq (%rbp), %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 0x21f67d(%rip), %rsi    # 0x22c413
xorl %eax, %eax
callq 0x22b0
cmpl $0x0, 0x10(%r14,%rbx)
je 0xcde0
addq %rbx, %r14
xorl %ebx, %ebx
movq 0x18(%r14), %rax
movq (%rax,%rbx,8), %r9
movq %r9, %r8
shrq $0x20, %r8
movq (%rbp), %rdi
movq %r9, %rcx
shrq $0x21, %rcx
andl $0x1, %r8d
movq %r12, %rsi
movl %ebx, %edx
xorl %eax, %eax
callq 0x22b0
incq %rbx
movl 0x10(%r14), %eax
cmpq %rax, %rbx
jb 0xcdaa
movq (%rbp), %rcx
leaq 0x21f503(%rip), %rdi    # 0x22c2ee
pushq $0xb
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
leaq 0x22008f(%rip), %rdi    # 0x22ce8c
leaq 0x14(%rsp), %rsi
xorl %eax, %eax
callq 0x21e0
testl %eax, %eax
sete %al
movl 0x14(%rsp), %edx
cmpl $-0x1, %edx
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0xcc6f
jmp 0xcc5b
movl %r13d, %ebx
orl $0x1, %ebx
movl %r14d, %eax
xorl %r15d, %r15d
movq %r12, 0x18(%rsp)
movq %rax, 0x30(%rsp)
imulq $0x18, %r15, %r14
movl 0xc(%r12,%r14), %r9d
testl %r9d, %r9d
jns 0xce59
incq %r15
cmpq %rax, %r15
jne 0xce3e
jmp 0xccd1
addq %r12, %r14
movl (%r14), %eax
movl 0x8(%r14), %r12d
movq (%rbp), %rdi
movl %r12d, %ecx
shrl %ecx
movl %r12d, %r8d
andl $0x1, %r8d
movl %eax, (%rsp)
xorl %ebp, %ebp
leaq 0x21f4c4(%rip), %rsi    # 0x22c343
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 0xced5
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 0xcec7
cmpl %ebx, -0x4(%rdx)
je 0xced5
incq %rbp
addq $0x18, %rdx
cmpq %rbp, %rcx
jne 0xcebd
movl %eax, %ebp
movq 0x27d104(%rip), %r10    # 0x289fe0
movq (%r10), %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
movq %r10, %rbp
setne %sil
movl %esi, (%rsp)
leaq 0x21f45a(%rip), %rsi    # 0x22c36d
xorl %eax, %eax
callq 0x22b0
movq 0x18(%rsp), %r12
movq 0x30(%rsp), %rax
jmp 0xce4c
movl %ebx, %ebx
xorl %r12d, %r12d
movq %r15, 0x18(%rsp)
imulq $0x18, %r12, %r14
movl 0xc(%r15,%r14), %r8d
testl %r8d, %r8d
jns 0xcf4e
incq %r12
cmpq %rbx, %r12
jne 0xcf33
jmp 0xcd2f
addq %r15, %r14
movl (%r14), %r9d
movl 0x8(%r14), %r15d
movq (%rbp), %rdi
movl %r15d, %edx
shrl %edx
movl %r15d, %ecx
andl $0x1, %ecx
xorl %ebp, %ebp
leaq 0x21f3d8(%rip), %rsi    # 0x22c348
xorl %eax, %eax
callq 0x22b0
movq 0x8(%rsp), %rax
movq 0x28(%rax), %rax
xorq $0x1, %r15
movq (%rax,%r15,8), %rax
testl %eax, %eax
je 0xcfc4
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 0xcfb6
cmpl %r13d, -0x4(%rdx)
je 0xcfc4
incq %rbp
addq $0x18, %rdx
cmpq %rbp, %rcx
jne 0xcfab
movl %eax, %ebp
movq 0x27d015(%rip), %r10    # 0x289fe0
movq (%r10), %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
movq %r10, %rbp
setne %sil
movl %esi, (%rsp)
leaq 0x21f36b(%rip), %rsi    # 0x22c36d
xorl %eax, %eax
callq 0x22b0
movq 0x18(%rsp), %r15
jmp 0xcf41