// File: /workspace/github_c_makefile_star2_O0/c-zhou[P]oatk/path.c
// Function: asg_print
void asg_print(asg_t *g, FILE *fo, int no_seq)
{
    uint32_t i, cov;
    uint64_t k;
    asmg_t *asmg = g->asmg;

    fprintf(fo, "H\tVN:Z:1.0\n");
    for (i = 0; i < g->n_seg; ++i) {
        const asg_seg_t *s = &g->seg[i];
        // seg and vtx indices are interchangeable
        if (asmg && asmg->vtx[i].del) continue;
        cov = asmg? asmg->vtx[i].cov : s->cov;
        fprintf(fo, "S\t%s\t", s->name);
        if (s->seq && !no_seq) fputs(s->seq, fo);
        else fputc('*', fo);
        fprintf(fo, "\tLN:i:%u\tKC:i:%lu\tSC:f:%.3f\n", s->len, (uint64_t)s->len*cov, (double)cov);
    }

    if (asmg == 0) return;
    for (k = 0; k < asmg->n_arc; ++k) {
        const asmg_arc_t *a = &asmg->arc[k];
        if (a->del || a->comp) continue;
        fprintf(fo, "L\t%s\t%c\t%s\t%c\t%luM\tEC:i:%u\n", g->seg[a->v>>1].name, "+-"[a->v&1], 
                g->seg[a->w>>1].name, "+-"[a->w&1], a->ls, a->cov);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x17ef8(%rip), %rsi     # 0x23b82
movb $0x0, %al
callq 0x2290
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jae 0xbda3
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x18(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0xbceb
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x18(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl 0x20(%rax), %eax
shrl $0x1e, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xbceb
jmp 0xbd95
cmpq $0x0, -0x30(%rbp)
je 0xbd11
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x18(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl 0x20(%rax), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, -0x44(%rbp)
jmp 0xbd1b
movq -0x38(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rax
movq (%rax), %rdx
leaq 0x17e5b(%rip), %rsi     # 0x23b8e
movb $0x0, %al
callq 0x2290
movq -0x38(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0xbd5e
cmpl $0x0, -0x14(%rbp)
jne 0xbd5e
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x21b0
jmp 0xbd6c
movq -0x10(%rbp), %rsi
movl $0x2a, %edi
callq 0x2210
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, %ecx
movl %ecx, %edx
movl -0x1c(%rbp), %eax
imulq %rax, %rcx
cvtsi2sd %rax, %xmm0
leaq 0x17e06(%rip), %rsi     # 0x23b94
movb $0x1, %al
callq 0x2290
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0xbc98
cmpq $0x0, -0x30(%rbp)
jne 0xbdaf
jmp 0xbea9
movq $0x0, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rcx
cmpq 0x18(%rcx), %rax
jae 0xbea9
movq -0x30(%rbp), %rax
movq 0x28(%rax), %rax
imulq $0x30, -0x28(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl 0x20(%rax), %eax
shrl $0x1e, %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0xbdfe
movq -0x40(%rbp), %rax
movl 0x20(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0xbe03
jmp 0xbe98
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x40(%rbp), %rcx
movq (%rcx), %rcx
shrq %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdx
movq -0x40(%rbp), %rax
movq (%rax), %rcx
andq $0x1, %rcx
leaq 0x17947(%rip), %rax     # 0x2377c
movsbl (%rax,%rcx), %ecx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x40(%rbp), %rsi
movq 0x8(%rsi), %rsi
shrq %rsi
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
movq (%rax), %r8
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rsi
andq $0x1, %rsi
leaq 0x17913(%rip), %rax     # 0x2377c
movsbl (%rax,%rsi), %r9d
movq -0x40(%rbp), %rax
movq 0x18(%rax), %r10
movq -0x40(%rbp), %rax
movl 0x20(%rax), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
leaq 0x17d28(%rip), %rsi     # 0x23bb1
movq %r10, (%rsp)
movl %eax, 0x8(%rsp)
movb $0x0, %al
callq 0x2290
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0xbdb7
addq $0x60, %rsp
popq %rbp
retq
nop