// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncasm.c
// Function: scg_print_unitig_syncmer_list
void scg_print_unitig_syncmer_list(scg_t *g, FILE *fo)
{
    uint64_t i, j, n, m, *a;
    asmg_t *utg;
    syncmer_t *scm;
    uint64_t *hap_info;
    utg = g->utg_asmg;
    hap_info = g->scm_db->h;
    scm = scg_a_scm(g);
    for (i = 0, n = utg->n_vtx; i < n; ++i) {
        if (utg->vtx[i].del)
            continue;
        a = utg->vtx[i].a;
        m = utg->vtx[i].n;
        fprintf(fo, "u%lu syncmer list:", i);
        for (j = 0; j < m; ++j)
            fprintf(fo, " %lu%c[%u]", a[j]>>1, "+-"[a[j]&1], scm[a[j]>>1].cov);
        fprintf(fo, "\n");
        if (hap_info) {
            fprintf(fo, "u%lu syncmer hap list:", i);
            for (j = 0; j < m; ++j)
                fprintf(fo, " %u:%u%c[%u]", 
                        (uint32_t) (hap_info[a[j]>>1] >> 33), 
                        (uint32_t) (hap_info[a[j]>>1] >> 1), 
                        "+-"[hap_info[a[j]>>1] & 1],
                        scm[a[j]>>1].cov);
            fprintf(fo, "\n");
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, 0x8(%rsp)
movq 0x8(%rdi), %rax
movq %rax, 0x30(%rsp)
movq (%rax), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x6e7f
movq (%rdi), %rax
movq 0x10(%rax), %r10
movq 0x20(%rax), %r9
leaq 0x16c59(%rip), %r8      # 0x1d976
leaq 0x16cb8(%rip), %rbx     # 0x1d9dc
xorl %edx, %edx
movq %r9, 0x20(%rsp)
movq %r10, 0x18(%rsp)
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
leaq (%rdx,%rdx,4), %rcx
testb $0x40, 0x23(%rax,%rcx,8)
jne 0x6e71
leaq (%rax,%rcx,8), %rax
movq (%rax), %rbp
movq 0x8(%rax), %r14
movq 0x8(%rsp), %r12
movq %r12, %rdi
leaq 0x16c67(%rip), %rsi     # 0x1d9c9
movq %r8, %r15
movq %rdx, 0x10(%rsp)
xorl %eax, %eax
callq 0x2290
testq %rbp, %rbp
je 0x6db9
xorl %r13d, %r13d
movq (%r14,%r13,8), %rax
movq %rax, %rdx
shrq %rdx
andl $0x1, %eax
movsbl (%rax,%r15), %ecx
movq %rdx, %rax
shlq $0x5, %rax
movq 0x18(%rsp), %rsi
movl 0x10(%rsi,%rax), %r8d
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %r8d
movq %r12, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2290
incq %r13
cmpq %r13, %rbp
jne 0x6d79
movq %rbp, %r13
movl $0xa, %edi
movq %r12, %rsi
callq 0x2210
movq 0x20(%rsp), %r9
testq %r9, %r9
movq %r15, %r8
movq 0x10(%rsp), %rdx
je 0x6e71
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x16bf9(%rip), %rsi     # 0x1d9e7
movq %r9, %r15
movq %r8, %rbp
xorl %eax, %eax
callq 0x2290
testq %r13, %r13
je 0x6e55
movq %r13, %r12
xorl %r13d, %r13d
movq (%r14,%r13,8), %rax
shrq %rax
movq (%r15,%rax,8), %rsi
movq %rsi, %rdx
shrq $0x21, %rdx
movq %rsi, %rcx
shrq %rcx
andl $0x1, %esi
movsbl (%rsi,%rbp), %r8d
shlq $0x5, %rax
movq 0x18(%rsp), %rsi
movl 0x10(%rsi,%rax), %r9d
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %r9d
movq %rbx, %rdi
leaq 0x16bb8(%rip), %rsi     # 0x1d9fe
xorl %eax, %eax
callq 0x2290
incq %r13
cmpq %r13, %r12
jne 0x6e06
movl $0xa, %edi
movq %rbx, %rsi
callq 0x2210
movq %rbp, %r8
leaq 0x16b70(%rip), %rbx     # 0x1d9dc
movq 0x10(%rsp), %rdx
incq %rdx
cmpq 0x28(%rsp), %rdx
jne 0x6d30
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq