// File: /workspace/github_cpp_makefile_star2_O1/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 $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
testq %rdx, %rdx
je 0x1f5073
cmpq $0x0, (%rbx)
jne 0x1f50d0
cmpq $0x0, (%rbx)
je 0x1f50c1
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x40(%rbx), %rax
movl %r14d, %r12d
andl $-0x2, %r12d
movq (%rax,%r12,8), %rsi
testl %esi, %esi
jne 0x1f5041
movq 0x40(%rbx), %rax
movq 0x8(%rax,%r12,8), %rsi
testl %esi, %esi
jne 0x1f505a
incq %r15
addq $0x2, %r14
cmpq (%rbx), %r15
jb 0x1f5010
jmp 0x1f50c1
movq %rsi, %rdx
shrq $0x1c, %rdx
andq $-0x10, %rdx
addq 0x28(%rbx), %rdx
movl %r14d, %edi
callq 0x2f9c0
jmp 0x1f5023
movq %rsi, %rdx
shrq $0x1c, %rdx
andq $-0x10, %rdx
addq 0x28(%rbx), %rdx
movl %r14d, %edi
callq 0x2fa32
jmp 0x1f5030
cmpq $0x0, (%rbx)
jne 0x1f50e3
cmpq $0x0, 0x18(%rbx)
je 0x1f50bb
leaq 0x10(%rbx), %r15
leaq 0x10(%r14), %r12
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x28(%rbx), %rsi
movq (%rsi,%r13), %rdi
btq $0x20, %rdi
jae 0x1f50ab
incq %rbp
addq $0x10, %r13
cmpq 0x18(%rbx), %rbp
jb 0x1f508d
jmp 0x1f50bb
addq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x2fb35
jmp 0x1f509c
cmpq $0x0, (%rbx)
jne 0x1f50f0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsp, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2f91a
jmp 0x1f5000
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2faa4
jmp 0x1f5079
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2fbe7
jmp 0x1f50c1