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

    asmg = g->utg_asmg;

    fprintf(fo, "H\tVN:Z:1.0\n");
    for (i = 0, n = asmg->n_vtx; i < n; ++i) {
        vtx = &asmg->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 = asmg->n_arc; i < n; ++i) {
        arc = &asmg->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 -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x26867(%rip), %rsi     # 0x2d8c1
movb $0x0, %al
callq 0x2290
movq $0x0, -0x20(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x7155
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x28, -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
je 0x70ad
jmp 0x7144
movq -0x48(%rbp), %rax
movq 0x18(%rax), %rax
movl %eax, -0x2c(%rbp)
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x48(%rbp), %rax
movl 0x20(%rax), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, -0x30(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x7118
cmpl $0x0, -0x14(%rbp)
jne 0x7118
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 0x26811(%rip), %rsi     # 0x2d91c
movq %rax, (%rsp)
movb $0x1, %al
callq 0x2290
jmp 0x7142
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 0x26809(%rip), %rsi     # 0x2d944
movb $0x1, %al
callq 0x2290
jmp 0x7144
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x7074
movq $0x0, -0x20(%rbp)
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x72a4
movq -0x40(%rbp), %rax
movq 0x28(%rax), %rax
imulq $0x30, -0x20(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movl 0x20(%rax), %eax
shrl $0x1e, %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x71ac
movq -0x50(%rbp), %rax
movl 0x20(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x71b1
jmp 0x7293
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rax
movq (%rax), %rdx
shrq %rdx
movq -0x50(%rbp), %rax
movq (%rax), %rcx
andq $0x1, %rcx
leaq 0x26745(%rip), %rax     # 0x2d916
movsbl (%rax,%rcx), %ecx
movq -0x50(%rbp), %rax
movq 0x8(%rax), %r8
shrq %r8
movq -0x50(%rbp), %rax
movq 0x8(%rax), %rsi
andq $0x1, %rsi
leaq 0x26723(%rip), %rax     # 0x2d916
movsbl (%rax,%rsi), %r9d
movq -0x50(%rbp), %rax
movq 0x18(%rax), %r10
movq -0x50(%rbp), %rax
movl 0x20(%rax), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
leaq 0x266e3(%rip), %rsi     # 0x2d8f6
movq %r10, (%rsp)
movl %eax, 0x8(%rsp)
movb $0x0, %al
callq 0x2290
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rax
movq 0x8(%rax), %rdx
shrq %rdx
movq -0x50(%rbp), %rax
movq 0x8(%rax), %rcx
andq $0x1, %rcx
leaq 0x266d5(%rip), %rax     # 0x2d919
movsbl (%rax,%rcx), %ecx
movq -0x50(%rbp), %rax
movq (%rax), %r8
shrq %r8
movq -0x50(%rbp), %rax
movq (%rax), %rsi
andq $0x1, %rsi
leaq 0x266b5(%rip), %rax     # 0x2d919
movsbl (%rax,%rsi), %r9d
movq -0x50(%rbp), %rax
movq 0x18(%rax), %r10
movq -0x50(%rbp), %rax
movl 0x20(%rax), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
leaq 0x26672(%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 0x7169
addq $0x60, %rsp
popq %rbp
retq
nopw (%rax,%rax)