// File: /workspace/github_c_makefile_star2_O0/lh3[P]fermi-lite/mag.c
// Function: mag_v_write
void mag_v_write(const magv_t *p, kstring_t *out)
{
	int j, k;
	if (p->len <= 0) return;
	out->l = 0;
	kputc('@', out); kputl(p->k[0], out); kputc(':', out); kputl(p->k[1], out);
	kputc('\t', out); kputw(p->nsr, out);
	for (j = 0; j < 2; ++j) {
		const ku128_v *r = &p->nei[j];
		kputc('\t', out);
		for (k = 0; k < r->n; ++k) {
			if (edge_is_del(r->a[k])) continue;
			kputl(r->a[k].x, out); kputc(',', out); kputw((int32_t)r->a[k].y, out);
			kputc(';', out);
		}
		if (p->nei[j].n == 0) kputc('.', out);
	}
	kputc('\n', out);
	ks_resize(out, out->l + 2 * p->len + 5);
	for (j = 0; j < p->len; ++j)
		out->s[out->l++] = "ACGT"[(int)p->seq[j] - 1];
	out->s[out->l] = 0;
	kputsn("\n+\n", 3, out);
	kputsn(p->cov, p->len, out);
	kputc('\n', out);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, (%rax)
jg 0x1730e
jmp 0x1756f
movq -0x10(%rbp), %rax
movq $0x0, (%rax)
movq -0x10(%rbp), %rsi
movl $0x40, %edi
callq 0x17580
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x176b0
movq -0x10(%rbp), %rsi
movl $0x3a, %edi
callq 0x17580
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x176b0
movq -0x10(%rbp), %rsi
movl $0x9, %edi
callq 0x17580
movq -0x8(%rbp), %rax
movl 0x4(%rax), %edi
movq -0x10(%rbp), %rsi
callq 0x178c0
movl $0x0, -0x14(%rbp)
cmpl $0x2, -0x14(%rbp)
jge 0x1749a
movq -0x8(%rbp), %rax
addq $0x20, %rax
movslq -0x14(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rsi
movl $0x9, %edi
callq 0x17580
movl $0x0, -0x18(%rbp)
movslq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x17463
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x18(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpq $-0x2, (%rax)
je 0x173f6
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x18(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpq $0x0, 0x8(%rax)
jne 0x173f8
jmp 0x17455
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x18(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x176b0
movq -0x10(%rbp), %rsi
movl $0x2c, %edi
callq 0x17580
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x18(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movl %eax, %edi
movq -0x10(%rbp), %rsi
callq 0x178c0
movq -0x10(%rbp), %rsi
movl $0x3b, %edi
callq 0x17580
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x173b2
movq -0x8(%rbp), %rax
addq $0x20, %rax
movslq -0x14(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
jne 0x1748a
movq -0x10(%rbp), %rsi
movl $0x2e, %edi
callq 0x17580
jmp 0x1748c
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1737c
movq -0x10(%rbp), %rsi
movl $0xa, %edi
callq 0x17580
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x8(%rbp), %rax
movl (%rax), %eax
shll %eax
cltq
addq %rax, %rsi
addq $0x5, %rsi
callq 0x17ab0
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x17522
movq -0x8(%rbp), %rax
movq 0x50(%rax), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
subl $0x1, %eax
movslq %eax, %rcx
leaq 0xe512(%rip), %rax      # 0x25a0a
movb (%rax,%rcx), %dl
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rsi
movq (%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, (%rsi)
movb %dl, (%rax,%rcx)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x174d0
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
movb $0x0, (%rax,%rcx)
movq -0x10(%rbp), %rdx
leaq 0xde5b(%rip), %rdi      # 0x2539b
movl $0x3, %esi
callq 0x17ba0
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rdi
movq -0x8(%rbp), %rax
movl (%rax), %esi
movq -0x10(%rbp), %rdx
callq 0x17ba0
movq -0x10(%rbp), %rsi
movl $0xa, %edi
callq 0x17580
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)