// File: /workspace/github_c_makefile_star2_O0/c-zhou[P]yahs/graph.c
// Function: graph_print
void graph_print(const graph_t *g, FILE *fp, int no_seq)
{
    uint32_t i, n;
    uint64_t k;
    sd_aseq_t *s;

    n = g->sdict->n;
    for (i = 0; i < n; ++i) {
        s = &g->sdict->s[i];
        fprintf(fp, "S\t%s\t", s->name);
        if (!no_seq) {
            char *seq = 0;//get_asm_seq(g->sdict, s->name);
            if (seq) {
                fputs(seq, fp);
                free(seq);
            } else {
                fputc('*', fp);
            }
        } else {
            fputc('*', fp);
        }
        fprintf(fp, "\tLN:i:%lu", s->len);
        fputc('\n', fp);
    }
    
    for (k = 0; k < g->n_arc; ++k) {
        const graph_arc_t *a = &g->arc[k];
        if (a->del || a->comp) 
            continue;
        fprintf(fp, "L\t%s\t%c\t%s\t%c\t0M\tWT:f:%.6f", g->sdict->s[a->v>>1].name, "+-"[a->v&1], g->sdict->s[a->w>>1].name, "+-"[a->w&1], a->wt);
        if (a->rank >= 0) 
            fprintf(fp, "\tSR:i:%d", a->rank);
        fputc('\n', fp);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movl (%rax), %eax
movl %eax, -0x1c(%rbp)
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jae 0x81f7
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movl -0x18(%rbp), %ecx
imulq $0x58, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rax
movq (%rax), %rdx
leaq 0x2916e(%rip), %rsi     # 0x312dd
movb $0x0, %al
callq 0x22c0
cmpl $0x0, -0x14(%rbp)
jne 0x81b3
movq $0x0, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x81a3
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x21d0
movq -0x38(%rbp), %rdi
callq 0x2050
jmp 0x81b1
movq -0x10(%rbp), %rsi
movl $0x2a, %edi
callq 0x2270
jmp 0x81c1
movq -0x10(%rbp), %rsi
movl $0x2a, %edi
callq 0x2270
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rdx
leaq 0x2910f(%rip), %rsi     # 0x312e3
movb $0x0, %al
callq 0x22c0
movq -0x10(%rbp), %rsi
movl $0xa, %edi
callq 0x2270
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x8137
movq $0x0, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x18(%rcx), %rax
jae 0x8323
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x28(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
shrq $0x3e, %rax
andq $0x1, %rax
cmpl $0x0, %eax
jne 0x824e
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
shrq $0x3f, %rax
cmpl $0x0, %eax
je 0x8253
jmp 0x8312
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq -0x40(%rbp), %rcx
movl (%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x58, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdx
movq -0x40(%rbp), %rax
movl (%rax), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0x2907d(%rip), %rax     # 0x31308
movsbl (%rax,%rcx), %ecx
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq -0x40(%rbp), %rsi
movl 0x4(%rsi), %esi
shrl %esi
movl %esi, %esi
imulq $0x58, %rsi, %rsi
addq %rsi, %rax
movq (%rax), %r8
movq -0x40(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
leaq 0x29043(%rip), %rax     # 0x31308
movsbl (%rax,%rsi), %r9d
movq -0x40(%rbp), %rax
movsd 0x10(%rax), %xmm0
leaq 0x29013(%rip), %rsi     # 0x312ed
movb $0x1, %al
callq 0x22c0
movq -0x40(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jl 0x8304
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rax
movl 0x8(%rax), %edx
leaq 0x2900e(%rip), %rsi     # 0x3130b
movb $0x0, %al
callq 0x22c0
movq -0x10(%rbp), %rsi
movl $0xa, %edi
callq 0x2270
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x81ff
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)