// File: /workspace/github_cpp_makefile_star2_O3/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 $0x38, %rsp
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
je 0x200565
cmpq $0x0, (%r14)
je 0x20066e
leaq 0x10(%rsp), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ec76
jmp 0x20066e
cmpq $0x0, (%r14)
jne 0x20067d
xorl %ecx, %ecx
movq 0x18(%r14), %rax
testq %rax, %rax
je 0x200669
movl $0x8, %r13d
xorl %r12d, %r12d
movq %rbx, (%rsp)
movq 0x28(%r14), %rdx
movq -0x8(%rdx,%r13), %rcx
btq $0x20, %rcx
jae 0x2005ac
incq %r12
addq $0x10, %r13
cmpq %rax, %r12
jb 0x20058b
jmp 0x200666
movq %rcx, %r10
shrq $0x21, %r10
movl (%rdx,%r13), %r11d
movq 0x10(%r14), %rax
movl 0x4(%rax,%r10,8), %edx
shrl %r11d
movl 0x4(%rax,%r11,8), %r15d
movl %edx, %esi
shrl %esi
movq 0x10(%rbx), %rdi
leaq (%rsi,%rsi,4), %r8
movl (%rdi,%r8,8), %r9d
movl %r15d, %eax
shrl %eax
leaq (%rax,%rax,4), %r8
movl (%rdi,%r8,8), %ebx
movq 0x949f4(%rip), %rdi     # 0x294fe0
movq (%rdi), %rdi
movl %esi, %r8d
incl %r8d
shrl $0x1f, %r9d
leaq 0x3413b(%rip), %rsi     # 0x23473b
movsbl (%r9,%rsi), %r9d
andl $0x1, %edx
leaq 0x31cc4(%rip), %rbp     # 0x2322d3
movsbl (%rdx,%rbp), %edx
movq %rdx, 0x8(%rsp)
movl %eax, %ebp
incl %ebp
shrl $0x1f, %ebx
movsbl (%rbx,%rsi), %ebx
andl $0x1, %r15d
leaq 0x31ca5(%rip), %rax     # 0x2322d3
movsbl (%r15,%rax), %r15d
leaq 0x45f58(%rip), %rsi     # 0x246592
leaq 0x45f41(%rip), %rdx     # 0x246582
xorl %eax, %eax
pushq %r11
pushq %r15
pushq %rbx
movq 0x18(%rsp), %rbx
pushq %rbp
pushq %r10
pushq 0x30(%rsp)
callq 0x22b0
addq $0x30, %rsp
movq 0x18(%r14), %rax
jmp 0x20059b
movq (%r14), %rcx
testq %rcx, %rcx
jne 0x200698
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10(%rsp), %r15
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2ee57
movq (%r15), %rcx
jmp 0x200571
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2eeef
jmp 0x20066e