// File: /workspace/github_c_makefile_star2_O0/c-zhou[P]oatk/graph.c
// Function: asmg_print
void asmg_print(asmg_t *g, FILE *fo, int no_seq)
{
    uint64_t i, n;
    int l, c;
    char *s;
    asmg_vtx_t *vtx;
    asmg_arc_t *arc;

    fprintf(fo, "H\tVN:Z:1.0\n");
    for (i = 0, n = g->n_vtx; i < n; ++i) {
        vtx = &g->vtx[i];
        if (vtx->del) continue;
        l = vtx->len;
        s = vtx->seq;
        c = vtx->cov;
        if (s && (!no_seq))
            fprintf(fo, "S\tu%lu\t%.*s\tLN:i:%d\tKC:i:%ld\tSC:f:%.3f\n", i, l, s, l, (int64_t) l * c, (double) c);
        else
            fprintf(fo, "S\tu%lu\t*\tLN:i:%d\tKC:i:%ld\tSC:f:%.3f\n", i, l, (int64_t) l * c, (double) c);
    }

    for (i = 0, n = g->n_arc; i < n; ++i) {
        arc = &g->arc[i];
        if (arc->del || arc->comp) continue;
        fprintf(fo, "L\tu%lu\t%c\tu%lu\t%c\t%ldM\tEC:i:%u\n", arc->v>>1, "+-"[arc->v&1], arc->w>>1, "+-"[arc->w&1], arc->ls, arc->cov);
        fprintf(fo, "L\tu%lu\t%c\tu%lu\t%c\t%ldM\tEC:i:%u\n", arc->w>>1, "-+"[arc->w&1], arc->v>>1, "-+"[arc->v&1], arc->ls, arc->cov);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x10(%rbp), %rdi
leaq 0xd0a3(%rip), %rsi      # 0x2d8c1
movb $0x0, %al
callq 0x2290
movq $0x0, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x20919
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x28, -0x20(%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
je 0x20871
jmp 0x20908
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
movl %eax, -0x2c(%rbp)
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x40(%rbp), %rax
movl 0x20(%rax), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, -0x30(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x208dc
cmpl $0x0, -0x14(%rbp)
jne 0x208dc
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movl -0x2c(%rbp), %ecx
movq -0x38(%rbp), %r8
movl -0x2c(%rbp), %r9d
movslq -0x2c(%rbp), %rax
movslq -0x30(%rbp), %rsi
imulq %rsi, %rax
cvtsi2sdl -0x30(%rbp), %xmm0
leaq 0xd04d(%rip), %rsi      # 0x2d91c
movq %rax, (%rsp)
movb $0x1, %al
callq 0x2290
jmp 0x20906
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movl -0x2c(%rbp), %ecx
movslq -0x2c(%rbp), %r8
movslq -0x30(%rbp), %rax
imulq %rax, %r8
cvtsi2sdl -0x30(%rbp), %xmm0
leaq 0xd045(%rip), %rsi      # 0x2d944
movb $0x1, %al
callq 0x2290
jmp 0x20908
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x20838
movq $0x0, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x20a68
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
imulq $0x30, -0x20(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movl 0x20(%rax), %eax
shrl $0x1e, %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x20970
movq -0x48(%rbp), %rax
movl 0x20(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x20975
jmp 0x20a57
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rax
movq (%rax), %rdx
shrq %rdx
movq -0x48(%rbp), %rax
movq (%rax), %rcx
andq $0x1, %rcx
leaq 0xcf81(%rip), %rax      # 0x2d916
movsbl (%rax,%rcx), %ecx
movq -0x48(%rbp), %rax
movq 0x8(%rax), %r8
shrq %r8
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rsi
andq $0x1, %rsi
leaq 0xcf5f(%rip), %rax      # 0x2d916
movsbl (%rax,%rsi), %r9d
movq -0x48(%rbp), %rax
movq 0x18(%rax), %r10
movq -0x48(%rbp), %rax
movl 0x20(%rax), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
leaq 0xcf1f(%rip), %rsi      # 0x2d8f6
movq %r10, (%rsp)
movl %eax, 0x8(%rsp)
movb $0x0, %al
callq 0x2290
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rdx
shrq %rdx
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rcx
andq $0x1, %rcx
leaq 0xcf11(%rip), %rax      # 0x2d919
movsbl (%rax,%rcx), %ecx
movq -0x48(%rbp), %rax
movq (%rax), %r8
shrq %r8
movq -0x48(%rbp), %rax
movq (%rax), %rsi
andq $0x1, %rsi
leaq 0xcef1(%rip), %rax      # 0x2d919
movsbl (%rax,%rsi), %r9d
movq -0x48(%rbp), %rax
movq 0x18(%rax), %r10
movq -0x48(%rbp), %rax
movl 0x20(%rax), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
leaq 0xceae(%rip), %rsi      # 0x2d8f6
movq %r10, (%rsp)
movl %eax, 0x8(%rsp)
movb $0x0, %al
callq 0x2290
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x2092d
addq $0x60, %rsp
popq %rbp
retq
nop