// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: print_integer_g(poa_g_t*, ma_ug_t*, unsigned long)
void print_integer_g(poa_g_t *g, ma_ug_t *ug, uint64_t is_gfa)
{
    uint64_t i, v, w;
    if(!is_gfa) {
        for (i = 0; i < g->seq.n; i++) {
            fprintf(stderr, "Node::[M::%s::i->%lu] utg%.6d%c(%c)\n", __func__, i, (int32_t)(g->seq.a[i].nid>>1)+1, 
            "lc"[ug->u.a[g->seq.a[i].nid>>1].circ], "+-"[g->seq.a[i].nid&1]);
        }
        for (i = 0; i < g->arc.n; i++) {
            v = g->arc.a[i].ul>>32; w = g->arc.a[i].v;
            if(v&1) continue;
            v = g->seq.a[v>>1].nid; w = g->seq.a[w>>1].nid;
            fprintf(stderr, "Arch::[M::%s::w->%u] utg%.6d%c(%c)<nid::%lu> -> utg%.6d%c(%c)<nid::%u>\n", __func__, (uint32_t)g->arc.a[i].ul, 
            (int32_t)(v>>1)+1, "lc"[ug->u.a[v>>1].circ], "+-"[v&1], g->arc.a[i].ul>>33, 
            (int32_t)(w>>1)+1, "lc"[ug->u.a[w>>1].circ], "+-"[w&1], g->arc.a[i].v>>1);
        }
        for (i = 0; i < g->seq.n; i++) {
            fprintf(stderr, "Srt::[M::%s::i->%lu] utg%.6d%c(%c)<nid::%u>\n", __func__, i, 
            (int32_t)(g->seq.a[g->srt_b.res.a[i]].nid>>1)+1, 
            "lc"[ug->u.a[g->seq.a[g->srt_b.res.a[i]].nid>>1].circ], "+-"[g->seq.a[g->srt_b.res.a[i]].nid&1], g->srt_b.res.a[i]);
        }
    } else {
        char name[32];
        for (i = 0; i < g->seq.n; i++) {
            sprintf(name, "dtg%.6d", (int)i);
            fprintf(stderr, "S\t%s\t*\tLN:i:%u\trd:i:utg%.6d%c(%c)\n", name, g->srt_b.res2nid.a[i],
            (int32_t)(g->seq.a[i].nid>>1)+1, "lc"[ug->u.a[g->seq.a[i].nid>>1].circ], "+-"[g->seq.a[i].nid&1]);
        }
        uint32_t u, nu, j; poa_arc_t *au;
        for (i = 0; i < g->seq.n; ++i) {
            u = i<<1;
            au = poa_arc_a(g, u); nu = poa_arc_n(g, u);
            for (j = 0; j < nu; j++) {
                v = au[j].v;
                fprintf(stderr, "L\tdtg%.6d\t%c\tdtg%.6d\t%c\t%dM\n", 
                (int)(u>>1), "+-"[u&1], (int)(v>>1), "+-"[v&1], asg_arc_len(au[j]));
            }

            u = (i<<1) + 1;
            au = poa_arc_a(g, u); nu = poa_arc_n(g, u);
            for (j = 0; j < nu; j++) {
                v = au[j].v;
                fprintf(stderr, "L\tdtg%.6d\t%c\tdtg%.6d\t%c\t%dM\n", 
                (int)(u>>1), "+-"[u&1], (int)(v>>1), "+-"[v&1], asg_arc_len(au[j]));
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %rbp
testq %rdx, %rdx
movq %rdi, 0x8(%rsp)
je 0x1b451c
leaq 0x441ed(%rip), %r14     # 0x1f8563
leaq 0x20(%rsp), %r12
leaq 0x32309(%rip), %r13     # 0x1e668b
xorl %r15d, %r15d
movq (%rbp), %rax
cmpq %rax, %r15
jae 0x1b4409
movq %r12, %rdi
movq %r14, %rsi
movl %r15d, %edx
xorl %eax, %eax
callq 0x2050
movq 0x9ec3b(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
movq 0x10(%rbp), %rax
movq 0xa8(%rbp), %rcx
movl (%rcx,%r15,4), %ecx
movl 0x4(%rax,%r15,8), %eax
movl %eax, %edx
shrl %edx
imulq $0x28, %rdx, %rsi
movl %edx, %r8d
incl %r8d
movq 0x10(%rbx), %rdx
movl (%rdx,%rsi), %edx
shrl $0x1f, %edx
movsbl (%rdx,%r13), %r9d
andl $0x1, %eax
leaq 0x2fe40(%rip), %rdx     # 0x1e4223
movsbl (%rax,%rdx), %r10d
subq $0x8, %rsp
leaq 0x44178(%rip), %rsi     # 0x1f856b
movq %r12, %rdx
xorl %eax, %eax
pushq %r10
callq 0x22b0
popq %rcx
popq %rdx
incq %r15
jmp 0x1b4385
xorl %r15d, %r15d
cmpq %rax, %r15
jae 0x1b46f9
leaq (%r15,%r15), %r12
movq 0x28(%rbp), %rax
movq 0x40(%rbp), %rcx
movl %r12d, %r13d
movq (%rcx,%r13,8), %rcx
shrl %r12d
movl %ecx, %ebp
shlq $0x4, %rbp
shrq $0x1c, %rcx
andq $-0x10, %rcx
leaq (%rax,%rcx), %r14
addq $0x8, %r14
xorl %ebx, %ebx
cmpq %rbx, %rbp
je 0x1b4494
movl -0x8(%r14,%rbx), %r10d
movl (%r14,%rbx), %eax
movq 0x9eb88(%rip), %rcx     # 0x252fe0
movq (%rcx), %rdi
movl %eax, %r8d
shrl %r8d
andl $0x1, %eax
leaq 0x2fdb8(%rip), %rcx     # 0x1e4223
movsbl (%rax,%rcx), %r9d
subq $0x8, %rsp
leaq 0x44113(%rip), %rsi     # 0x1f858e
movl %r12d, %edx
pushq $0x2b
popq %rcx
xorl %eax, %eax
pushq %r10
callq 0x22b0
addq $0x10, %rsp
addq $0x10, %rbx
jmp 0x1b4443
movq 0x8(%rsp), %rbp
movq 0x28(%rbp), %rax
movq 0x40(%rbp), %rcx
movq 0x8(%rcx,%r13,8), %rcx
movl %ecx, %r13d
shlq $0x4, %r13
shrq $0x1c, %rcx
andq $-0x10, %rcx
leaq (%rax,%rcx), %r14
addq $0x8, %r14
xorl %ebx, %ebx
cmpq %rbx, %r13
je 0x1b4510
movl -0x8(%r14,%rbx), %r10d
movl (%r14,%rbx), %eax
movq 0x9eb0c(%rip), %rcx     # 0x252fe0
movq (%rcx), %rdi
movl %eax, %r8d
shrl %r8d
andl $0x1, %eax
leaq 0x2fd3c(%rip), %rcx     # 0x1e4223
movsbl (%rax,%rcx), %r9d
subq $0x8, %rsp
leaq 0x44097(%rip), %rsi     # 0x1f858e
movl %r12d, %edx
pushq $0x2d
popq %rcx
xorl %eax, %eax
pushq %r10
callq 0x22b0
addq $0x10, %rsp
addq $0x10, %rbx
jmp 0x1b44bf
incq %r15
movq (%rbp), %rax
jmp 0x1b440c
movq 0x9eabd(%rip), %r14     # 0x252fe0
leaq 0x43f8f(%rip), %r15     # 0x1f84b9
leaq 0x43fad(%rip), %r12     # 0x1f84de
xorl %r13d, %r13d
cmpq (%rbp), %r13
jae 0x1b4596
movq (%r14), %rdi
movq 0x10(%rbp), %rax
movl 0x4(%rax,%r13,8), %eax
movl %eax, %ecx
shrl %ecx
imulq $0x28, %rcx, %rdx
movl %ecx, %r8d
incl %r8d
movq 0x10(%rbx), %rcx
movl (%rcx,%rdx), %ecx
shrl $0x1f, %ecx
leaq 0x32126(%rip), %rdx     # 0x1e668b
movsbl (%rcx,%rdx), %r9d
andl $0x1, %eax
leaq 0x2fcaf(%rip), %rcx     # 0x1e4223
movsbl (%rax,%rcx), %r10d
subq $0x8, %rsp
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
xorl %eax, %eax
pushq %r10
callq 0x22b0
popq %rcx
popq %rdx
incq %r13
jmp 0x1b4534
pushq $0x8
popq %r13
xorl %r15d, %r15d
movq %rbx, 0x10(%rsp)
cmpq 0x18(%rbp), %r15
jae 0x1b467d
movq 0x28(%rbp), %rax
movq -0x8(%rax,%r13), %rcx
btq $0x20, %rcx
jae 0x1b45c5
incq %r15
addq $0x10, %r13
jmp 0x1b45a2
movq %rcx, %r10
shrq $0x21, %r10
movl (%rax,%r13), %r11d
movq 0x10(%rbp), %rax
movl 0x4(%rax,%r10,8), %edx
shrl %r11d
movl 0x4(%rax,%r11,8), %r12d
movl %edx, %esi
shrl %esi
movq 0x10(%rbx), %rdi
imulq $0x28, %rsi, %r8
movl (%rdi,%r8), %r9d
movl %r12d, %eax
shrl %eax
imulq $0x28, %rax, %r8
movl (%rdi,%r8), %ebp
movq (%r14), %rdi
movl %esi, %r8d
incl %r8d
shrl $0x1f, %r9d
leaq 0x32079(%rip), %rsi     # 0x1e668b
movsbl (%r9,%rsi), %r9d
andl $0x1, %edx
leaq 0x2fc02(%rip), %rbx     # 0x1e4223
movsbl (%rdx,%rbx), %edx
movq %rdx, 0x18(%rsp)
movl %eax, %r14d
incl %r14d
shrl $0x1f, %ebp
movsbl (%rbp,%rsi), %ebp
andl $0x1, %r12d
movsbl (%r12,%rbx), %r12d
leaq 0x43ea6(%rip), %rsi     # 0x1f84ee
leaq 0x43e8f(%rip), %rdx     # 0x1f84de
xorl %eax, %eax
pushq %r11
pushq %r12
pushq %rbp
movq 0x20(%rsp), %rbp
pushq %r14
movq 0x9e97c(%rip), %r14     # 0x252fe0
pushq %r10
pushq 0x40(%rsp)
movq 0x40(%rsp), %rbx
callq 0x22b0
addq $0x30, %rsp
jmp 0x1b45bc
leaq 0x43eb2(%rip), %r15     # 0x1f8536
leaq 0x43e53(%rip), %r12     # 0x1f84de
xorl %r13d, %r13d
cmpq (%rbp), %r13
jae 0x1b46f9
movq (%r14), %rdi
movq 0x10(%rbp), %rax
movq 0x90(%rbp), %rcx
movl (%rcx,%r13,4), %r10d
movl 0x4(%rax,%r10,8), %eax
movl %eax, %ecx
shrl %ecx
imulq $0x28, %rcx, %rdx
movl %ecx, %r8d
incl %r8d
movq 0x10(%rbx), %rcx
movl (%rcx,%rdx), %ecx
shrl $0x1f, %ecx
leaq 0x31fc1(%rip), %rdx     # 0x1e668b
movsbl (%rcx,%rdx), %r9d
andl $0x1, %eax
leaq 0x2fb4a(%rip), %rcx     # 0x1e4223
movsbl (%rax,%rcx), %r11d
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
xorl %eax, %eax
pushq %r10
pushq %r11
callq 0x22b0
popq %rcx
popq %rdx
incq %r13
jmp 0x1b468e
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq