LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-aug.c
// Function: gfa_ins_shrink_semi
static int32_t gfa_ins_shrink_semi(const gfa_t *g, int32_t pen, uint32_t v, int32_t voff, int32_t coff, uint32_t vv, int32_t vend, int32_t cend, const char *seq)
{
	int32_t i, j, l, dir, score, max, max_l;
	if (cend == coff) return 0;
	dir = cend > coff? +1 : -1;
	for (i = coff, j = voff, l = max_l = 0, score = max = 0; i != cend; i += dir, j += dir) {
		int32_t cg, vlen = g->seg[v>>1].len;
		if (j == vlen || j == -1) break;
		if (vv == v && j == vend) break;
		++l;
		cg = (v&1) == 0? g->seg[v>>1].seq[j] : gfa_comp_table[(uint8_t)g->seg[v>>1].seq[vlen - 1 - j]];
		score += tolower(cg) == tolower(seq[i])? +1 : -pen;
		if (score > max) max = score, max_l = l;
		if (score < max - pen * pen) break; // X-drop
	}
	return max_l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl 0x98(%rsp), %r10d
xorl %eax, %eax
subl %r8d, %r10d
je 0x9cfd
setg %al
movzbl %al, %eax
leaq -0x1(,%rax,2), %r14
movq 0x10(%rdi), %rax
movl %edx, %edi
shrl %edi
shlq $0x6, %rdi
addq %rdi, %rax
addq $0x20, %rax
movq %rax, 0x20(%rsp)
movslq -0x20(%rax), %rax
movl %esi, %edi
negl %edi
movl %edi, 0x10(%rsp)
imull %esi, %esi
movl %esi, 0x14(%rsp)
movslq %r8d, %rsi
movslq %ecx, %r8
movslq 0x90(%rsp), %r11
subq %r8, %r11
movl %r8d, %r13d
notl %r13d
addl %eax, %r13d
subq %r8, %rax
movq %rax, 0x50(%rsp)
addq 0xa0(%rsp), %rsi
movq %rsi, 0x40(%rsp)
xorl %r15d, %r15d
movl $0x0, 0xc(%rsp)
xorl %ebx, %ebx
xorl %ebp, %ebp
xorl %eax, %eax
movl %r9d, 0x1c(%rsp)
movl %edx, 0x18(%rsp)
movq %r10, 0x48(%rsp)
movq %r8, 0x38(%rsp)
movq %r11, 0x30(%rsp)
movq %r14, 0x28(%rsp)
cmpl %edx, %r9d
sete %cl
leaq (%r8,%r15), %rsi
cmpq %r15, %r11
sete %dil
xorl %r12d, %r12d
incq %rsi
je 0x9ce9
cmpq %r15, 0x50(%rsp)
je 0x9ce9
andb %dil, %cl
jne 0x9ce9
movl %eax, %r14d
testb $0x1, %dl
jne 0x9c66
movq 0x20(%rsp), %rax
movq (%rax), %rax
addq %r8, %rax
movsbl (%r15,%rax), %edi
jmp 0x9c80
movq 0x20(%rsp), %rax
movq (%rax), %rax
movslq %r13d, %rcx
movzbl (%rax,%rcx), %eax
leaq 0x28584(%rip), %rcx     # 0x32200
movzbl (%rcx,%rax), %edi
callq 0x2250
movl %eax, %r12d
callq 0x2390
movq (%rax), %rcx
movq 0x40(%rsp), %rax
movsbq (%rax,%r15), %rdx
movl $0x1, %eax
cmpl (%rcx,%rdx,4), %r12d
je 0x9ca9
movl 0x10(%rsp), %eax
movl 0xc(%rsp), %ecx
incl %ecx
addl %eax, %ebx
cmpl %ebp, %ebx
movl %r14d, %eax
movl %ecx, 0xc(%rsp)
cmovgl %ecx, %eax
cmovgl %ebx, %ebp
movl %ebp, %ecx
subl 0x14(%rsp), %ecx
cmpl %ecx, %ebx
setge %r12b
movl 0x1c(%rsp), %r9d
movl 0x18(%rsp), %edx
movq 0x48(%rsp), %r10
movq 0x38(%rsp), %r8
movq 0x30(%rsp), %r11
movq 0x28(%rsp), %r14
testb %r12b, %r12b
je 0x9cfd
addq %r14, %r15
subl %r14d, %r13d
cmpl %r15d, %r10d
jne 0x9c1b
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-bbl.c
// Function: gfa_sort_ref_arc
void gfa_sort_ref_arc(gfa_t *g)
{
	uint32_t v, n_vtx = gfa_n_vtx(g);
	for (v = 0; v < n_vtx; ++v) {
		gfa_seg_t *s = &g->seg[v>>1];
		int32_t i, nv;
		gfa_arc_t *av, b;
		if (s->rank != 0) continue;
		nv = gfa_arc_n(g, v);
		av = gfa_arc_a(g, v);
		for (i = 0; i < nv; ++i) {
			uint32_t w = av[i].w;
			gfa_seg_t *t = &g->seg[w>>1];
			if (t->rank == 0 && t->snid == s->snid && (v&1) == (w&1)) {
				if (((v&1) == 0 && s->soff + s->len == t->soff) || ((v&1) == 1 && t->soff + t->len == s->soff))
					break;
			}
		}
		if (nv > 0 && i == nv) fprintf(stderr, "X\t%c%s\t%d\t%s\t%d\n", "><"[v&1], s->name, i, g->sseq[s->snid].name, s->soff);
		assert(nv == 0 || i < nv);
		if (i > 0 && i < nv) b = av[i], av[i] = av[0], av[0] = b;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl 0x4(%rdi), %eax
addl %eax, %eax
je 0xa33b
movq %rdi, %r11
leaq 0x28(%rdi), %rcx
movq %rcx, 0x18(%rsp)
movl %eax, %edx
xorl %r15d, %r15d
movq %rdx, 0x8(%rsp)
movq 0x10(%r11), %rax
movl %r15d, %esi
shrl %esi
shlq $0x6, %rsi
cmpl $0x0, 0x10(%rax,%rsi)
jne 0xa309
addq %rax, %rsi
movq 0x48(%r11), %rbp
movq 0x58(%r11), %rcx
movq (%rcx,%r15,8), %r14
movq %r14, %rbx
shrq $0x20, %rbx
shlq $0x5, %rbx
testl %r14d, %r14d
setg %r13b
jle 0xa291
movl %r15d, %ecx
andl $0x1, %ecx
movl %r14d, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leaq (%rbx,%rbp), %rdi
addq $0x8, %rdi
xorl %r12d, %r12d
movl (%rdi), %r9d
movl %r9d, %r8d
shrl %r8d
shlq $0x6, %r8
cmpl $0x0, 0x10(%rax,%r8)
je 0xa24f
incq %r12
cmpq %rdx, %r12
setb %r13b
addq $0x20, %rdi
cmpq %r12, %rdx
jne 0xa225
jmp 0xa287
addq %rax, %r8
movl 0x8(%r8), %r10d
cmpl 0x8(%rsi), %r10d
jne 0xa23a
andl $0x1, %r9d
cmpl %r9d, %ecx
jne 0xa23a
testl %ecx, %ecx
jne 0xa278
movl (%rsi), %r9d
addl 0xc(%rsi), %r9d
cmpl 0xc(%r8), %r9d
jne 0xa23a
jmp 0xa28a
movl (%r8), %r9d
addl 0xc(%r8), %r9d
cmpl 0xc(%rsi), %r9d
jne 0xa23a
jmp 0xa28a
movl %r14d, %r12d
movq 0x8(%rsp), %rdx
jmp 0xa294
xorl %r12d, %r12d
testl %r14d, %r14d
setle %al
cmpl %r14d, %r12d
setne %cl
orb %al, %cl
je 0xa317
testl %r14d, %r14d
sete %al
orb %r13b, %al
testb $0x1, %al
je 0xa34a
testl %r12d, %r12d
sete %al
notb %r13b
orb %al, %r13b
testb $0x1, %r13b
jne 0xa309
addq %rbx, %rbp
movl %r12d, %eax
shlq $0x5, %rax
movups (%rbp,%rax), %xmm0
movups 0x10(%rbp,%rax), %xmm1
movaps %xmm1, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movups (%rbp), %xmm0
movups 0x10(%rbp), %xmm1
movups %xmm1, 0x10(%rbp,%rax)
movups %xmm0, (%rbp,%rax)
movaps 0x20(%rsp), %xmm0
movaps 0x30(%rsp), %xmm1
movups %xmm1, 0x10(%rbp)
movups %xmm0, (%rbp)
incq %r15
cmpq %rdx, %r15
jne 0xa1cc
jmp 0xa33b
movq %r15, %rdi
movq 0x18(%rsp), %rdx
movl %r12d, %ecx
movq %r11, 0x10(%rsp)
callq 0x2644
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %r11
jmp 0xa2a4
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1e3ac(%rip), %rdi     # 0x286fd
leaq 0x1e355(%rip), %rsi     # 0x286ad
leaq 0x1e3b0(%rip), %rcx     # 0x2870f
movl $0x1e, %edx
callq 0x2160
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-bbl.c
// Function: gfa_sub_print
void gfa_sub_print(FILE *fp, const gfa_t *g, const gfa_sub_t *sub)
{
	int32_t i, j;
	for (i = 0; i < sub->n_v; ++i) {
		gfa_subv_t *p = &sub->v[i];
		fprintf(fp, "[%d]\t%d\t%c%s\t%d\t%d", i, p->v, "><"[p->v&1], g->seg[p->v>>1].name, p->d, p->n);
		if (p->n > 0) {
			fputc('\t', fp);
			for (j = 0; j < p->n; ++j) {
				if (j) fputc(',', fp);
				fprintf(fp, "%d", (uint32_t)(sub->a[p->off + j]>>32));
			}
		}
		fputc('\n', fp);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, (%rsp)
cmpl $0x0, (%rdx)
jle 0xa462
movq %rdx, %rbx
movq %rdi, %r15
leaq 0x1fb92(%rip), %r13     # 0x29f20
xorl %r14d, %r14d
movq 0x10(%rbx), %r12
movq %r14, %rbp
shlq $0x4, %rbp
movl (%r12,%rbp), %ecx
movl 0x4(%r12,%rbp), %r10d
movl %ecx, %eax
andl $0x1, %eax
leaq 0x1e2f9(%rip), %rdx     # 0x286aa
movsbl (%rax,%rdx), %r8d
movq (%rsp), %rax
movq 0x10(%rax), %rax
movl %ecx, %edx
shrl %edx
shlq $0x6, %rdx
movq 0x18(%rax,%rdx), %r9
movl 0xc(%r12,%rbp), %r11d
movq %r15, %rdi
leaq 0x1e354(%rip), %rsi     # 0x2872e
movl %r14d, %edx
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x2210
addq $0x10, %rsp
cmpl $0x0, 0xc(%r12,%rbp)
jle 0xa446
addq %rbp, %r12
movl $0x9, %edi
movq %r15, %rsi
callq 0x21b0
cmpl $0x0, 0xc(%r12)
jle 0xa446
xorl %ebp, %ebp
testl %ebp, %ebp
je 0xa41f
movl $0x2c, %edi
movq %r15, %rsi
callq 0x21b0
movq 0x18(%rbx), %rax
movslq 0x8(%r12), %rcx
addq %rbp, %rcx
movl 0x4(%rax,%rcx,8), %edx
movq %r15, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x2210
incq %rbp
cmpl 0xc(%r12), %ebp
jl 0xa40e
movl $0xa, %edi
movq %r15, %rsi
callq 0x21b0
incq %r14
movslq (%rbx), %rax
cmpq %rax, %r14
jl 0xa391
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-bbl.c
// Function: gfa_scbuf_init
gfa_scbuf_t *gfa_scbuf_init(const gfa_t *g)
{
	uint32_t v, n_vtx = gfa_n_vtx(g);
	gfa_scbuf_t *b;
	GFA_CALLOC(b, 1);
	GFA_CALLOC(b->a, n_vtx);
	for (v = 0; v < n_vtx; ++v)
		b->a[v].index = b->a[v].start = (uint32_t)-1;
	return b;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl 0x4(%rdi), %r14d
addl %r14d, %r14d
movl $0x1, %edi
movl $0x40, %esi
callq 0x21e0
movq %rax, %rbx
movl $0x10, %esi
movq %r14, %rdi
callq 0x21e0
movq %rax, 0x8(%rbx)
testl %r14d, %r14d
je 0xa4c2
movl %r14d, %ecx
shlq $0x4, %rcx
xorl %edx, %edx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl %esi, 0xc(%rax,%rdx)
movl %esi, (%rax,%rdx)
addq $0x10, %rdx
cmpq %rdx, %rcx
jne 0xa4b2
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-bbl.c
// Function: gfa_scc_all
void gfa_scc_all(const gfa_t *g)
{
	uint32_t v, n_vtx = gfa_n_vtx(g);
	gfa_scbuf_t *b;
	b = gfa_scbuf_init(g);
	for (v = 0; v < n_vtx; ++v)
		if (b->a[v].index == (uint32_t)-1 && b->a[v^1].index == (uint32_t)-1) {
			gfa_sub_t *sub;
			sub = gfa_scc1(0, g, b, v);
			gfa_sub_print(stderr, g, sub);
			gfa_sub_destroy(sub);
		}
	gfa_scbuf_destroy(b);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x4(%rdi), %ebp
addl %ebp, %ebp
callq 0xa471
movq %rax, %r14
testl %ebp, %ebp
je 0xab5b
movl %ebp, %r13d
xorl %r15d, %r15d
movq 0x274f1(%rip), %rbp     # 0x31ff8
movq 0x8(%r14), %rax
movq %r15, %rcx
shlq $0x4, %rcx
cmpl $-0x1, (%rax,%rcx)
jne 0xab53
movl %r15d, %ecx
xorq $0x1, %rcx
shlq $0x4, %rcx
cmpl $-0x1, (%rax,%rcx)
jne 0xab53
xorl %edi, %edi
movq %rbx, %rsi
movq %r14, %rdx
movl %r15d, %ecx
callq 0xa4f5
movq %rax, %r12
movq (%rbp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0xa369
movq %r12, %rdi
callq 0xab71
incq %r15
cmpq %r13, %r15
jne 0xab07
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa4cd
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-bbl.c
// Function: gfa_sub_destroy
void gfa_sub_destroy(gfa_sub_t *sub)
{
	void *km;
	if (sub == 0) return;
	km = sub->km;
	kfree(km, sub->v); kfree(km, sub->a); kfree(km, sub);
}

// Assembly:
testq %rdi, %rdi
je 0xabab
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rsi
movq 0x20(%rdi), %r14
movq %r14, %rdi
callq 0x30f6
movq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0x30f6
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x30f6
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-bbl.c
// Function: bb_write_seq
static void bb_write_seq(const gfa_t *g, int32_t n, const uint32_t *v, int32_t l_seq, char *seq)
{
	int32_t k, l;
	for (k = n - 1, l = 0; k >= 0; --k) {
		const gfa_seg_t *s = &g->seg[v[k]>>1];
		if (v[k]&1) {
			int32_t p;
			for (p = s->len - 1; p >= 0; --p)
				seq[l++] = gfa_comp_table[(uint8_t)s->seq[p]];
		} else {
			memcpy(&seq[l], s->seq, s->len);
			l += s->len;
		}
	}
	assert(l == l_seq);
	seq[l] = 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, 0x8(%rsp)
movl %ecx, 0x14(%rsp)
testl %esi, %esi
jle 0xb432
movq %rdx, %r14
movq %rdi, %r15
movl %esi, %r13d
xorl %r12d, %r12d
leaq 0x26e3f(%rip), %rbp     # 0x32200
movl -0x4(%r14,%r13,4), %eax
movl %eax, %ebx
shrl %ebx
shlq $0x6, %rbx
addq 0x10(%r15), %rbx
testb $0x1, %al
jne 0xb3ef
movslq %r12d, %rdi
addq 0x8(%rsp), %rdi
movq 0x20(%rbx), %rsi
movslq (%rbx), %rdx
callq 0x2230
addl (%rbx), %r12d
jmp 0xb423
movslq (%rbx), %rdx
testq %rdx, %rdx
jle 0xb423
movslq %r12d, %rax
addq 0x8(%rsp), %rax
movq %rdx, %rcx
incq %rcx
addl %edx, %r12d
movq 0x20(%rbx), %rdx
movzbl -0x2(%rdx,%rcx), %edx
movb (%rbp,%rdx), %dl
movb %dl, (%rax)
incq %rax
decq %rcx
cmpq $0x1, %rcx
jg 0xb408
leaq -0x1(%r13), %rax
cmpq $0x1, %r13
movq %rax, %r13
jg 0xb3c1
jmp 0xb435
xorl %r12d, %r12d
cmpl 0x14(%rsp), %r12d
jne 0xb457
movslq %r12d, %rax
movq 0x8(%rsp), %rcx
movb $0x0, (%rcx,%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1d352(%rip), %rdi     # 0x287b0
leaq 0x1d248(%rip), %rsi     # 0x286ad
leaq 0x1d34f(%rip), %rcx     # 0x287bb
movl $0xda, %edx
callq 0x2160
nop
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-ed.c
// Function: gfa_edseq_init
gfa_edseq_t *gfa_edseq_init(const gfa_t *g)
{
	uint32_t i, n_vtx = gfa_n_vtx(g);
	gfa_edseq_t *es;
	GFA_MALLOC(es, n_vtx);
	for (i = 0; i < g->n_seg; ++i) {
		const gfa_seg_t *s = &g->seg[i];
		char *t;
		int32_t j;
		GFA_MALLOC(t, s->len + 1);
		for (j = 0; j < s->len; ++j)
			t[s->len - j - 1] = gfa_comp_table[(uint8_t)s->seq[j]];
		t[s->len] = 0;
		es[i<<1].seq = (char*)s->seq;
		es[i<<1|1].seq = t;
		es[i<<1].len = es[i<<1|1].len = s->len;
	}
	return es;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl 0x4(%rdi), %r15d
leal (%r15,%r15), %edi
shlq $0x4, %rdi
callq 0x2280
movq %rax, %rbx
movq %r15, (%rsp)
testq %r15, %r15
je 0xb55e
movq 0x10(%r14), %r14
xorl %r12d, %r12d
leaq 0x26d2a(%rip), %r13     # 0x32200
movq %r12, %rax
shlq $0x6, %rax
leaq (%r14,%rax), %rbp
movslq (%r14,%rax), %r15
leaq 0x1(%r15), %rdi
callq 0x2280
testq %r15, %r15
jle 0xb51f
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %edx, %edx
movq 0x20(%rbp), %rsi
movzbl (%rsi,%rdx), %esi
movb (%r13,%rsi), %sil
addl %ecx, %r15d
movslq %r15d, %rdi
movb %sil, (%rax,%rdi)
incq %rdx
movslq (%rbp), %r15
decl %ecx
cmpq %r15, %rdx
jl 0xb4fa
movslq %r15d, %rcx
movb $0x0, (%rax,%rcx)
movq 0x20(%rbp), %rcx
leal (%r12,%r12), %edx
shlq $0x4, %rdx
movq %rcx, (%rbx,%rdx)
leal 0x1(,%r12,2), %ecx
shlq $0x4, %rcx
movq %rax, (%rbx,%rcx)
movl (%rbp), %eax
movl %eax, 0x8(%rbx,%rcx)
movl %eax, 0x8(%rbx,%rdx)
incq %r12
cmpq (%rsp), %r12
jne 0xb4d6
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-ed.c
// Function: gfa_edseq_destroy
void gfa_edseq_destroy(int32_t n_seg, gfa_edseq_t *es)
{
	int32_t i;
	for (i = 0; i < n_seg; ++i)
		free((char*)es[i<<1|1].seq);
	free(es);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
testl %edi, %edi
jle 0xb5a1
movl %edi, %r14d
addq %r14, %r14
xorl %r15d, %r15d
leal 0x1(%r15), %eax
cltq
shlq $0x4, %rax
movq (%rbx,%rax), %rdi
callq 0x2040
addq $0x2, %r15
cmpq %r15, %r14
jne 0xb585
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2040
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-ed.c
// Function: rs_sort_gwf_intv
static int gwf_intv_is_sorted(int32_t n_a, const gwf_intv_t *a)
{
	int32_t i;
	for (i = 1; i < n_a; ++i)
		if (a[i-1].vd0 > a[i].vd0) break;
	return (i == n_a);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
movl %ecx, %ebx
movl %edx, %ebp
movl $0x1, %edx
movl %ebp, %ecx
shll %cl, %edx
cmpl $0x8, %ebp
jg 0xb79e
movslq %edx, %r14
decl %edx
shlq $0x4, %r14
leaq (%rsp,%r14), %rax
xorl %ecx, %ecx
movq %rdi, 0x8(%rsp,%rcx)
movq %rdi, (%rsp,%rcx)
addq $0x10, %rcx
cmpq %rcx, %r14
jne 0xb63e
movl %ebx, %ecx
movslq %edx, %rdx
cmpq %rsi, %rdi
je 0xb679
movq %rdi, %r8
movq (%r8), %r9
shrq %cl, %r9
andq %rdx, %r9
shlq $0x4, %r9
addq $0x10, 0x8(%rsp,%r9)
addq $0x10, %r8
cmpq %rsi, %r8
jne 0xb65d
testl %ebp, %ebp
je 0xb69f
movl $0x10, %esi
movq -0x8(%rsp,%rsi), %r8
movq %r8, %r9
subq %rdi, %r9
addq %r9, 0x8(%rsp,%rsi)
movq %r8, (%rsp,%rsi)
addq $0x10, %rsi
cmpq %rsi, %r14
jne 0xb682
movq %rsp, %rsi
movq (%rsi), %r9
cmpq 0x8(%rsi), %r9
je 0xb712
movq (%r9), %r8
movq %r8, %r10
shrq %cl, %r10
andq %rdx, %r10
shlq $0x4, %r10
addq %rsp, %r10
cmpq %rsi, %r10
je 0xb718
movq 0x8(%r9), %r9
movq %r8, %r11
movq %r9, %r15
movq (%r10), %r12
movq (%r12), %r8
movq 0x8(%r12), %r9
leaq 0x10(%r12), %r13
movq %r13, (%r10)
movq %r11, (%r12)
movq %r15, 0x8(%r12)
movq %r8, %r10
shrq %cl, %r10
andq %rdx, %r10
shlq $0x4, %r10
addq %rsp, %r10
cmpq %rsi, %r10
jne 0xb6c7
movq (%rsi), %r10
leaq 0x10(%r10), %r11
movq %r11, (%rsi)
movq %r8, (%r10)
movq %r9, 0x8(%r10)
jmp 0xb71f
addq $0x10, %rsi
jmp 0xb71f
addq $0x10, %r9
movq %r9, (%rsi)
cmpq %rax, %rsi
jne 0xb6a2
movq %rdi, (%rsp)
testl %ebp, %ebp
je 0xb747
movl $0x10, %eax
movq -0x8(%rsp,%rax), %rcx
movq %rcx, (%rsp,%rax)
addq $0x10, %rax
cmpq %rax, %r14
jne 0xb735
testl %ebx, %ebx
je 0xb78c
xorl %r15d, %r15d
subl %ebp, %ebx
cmovlel %r15d, %ebx
movq (%rsp,%r15), %rdi
movq 0x8(%rsp,%r15), %rsi
movq %rsi, %rax
subq %rdi, %rax
sarq $0x4, %rax
cmpq $0x41, %rax
jl 0xb778
movl %ebp, %edx
movl %ebx, %ecx
callq 0xb608
jmp 0xb783
cmpq $0x2, %rax
jl 0xb783
callq 0xb5ae
addq $0x10, %r15
cmpq %r15, %r14
jne 0xb754
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1c977(%rip), %rdi     # 0x2811c
leaq 0x1d05c(%rip), %rsi     # 0x28808
leaq 0x1d05e(%rip), %rcx     # 0x28811
movl $0x49, %edx
callq 0x2160
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-ed.c
// Function: gfa_ed_init
void *gfa_ed_init(void *km, const gfa_edopt_t *opt, const gfa_t *g, const gfa_edseq_t *es, int32_t ql, const char *q, uint32_t v0, int32_t off0)
{
	gfa_edbuf_t *z;
	KCALLOC(km, z, 1);
	z->buf.km = km;
	z->opt = opt;
	z->g = g, z->es = es;
	z->ql = ql, z->q = q;
	z->buf.ha = gwf_set64_init2(km);
	z->buf.ht = gwf_map64_init2(km);
	kv_resize(gwf_trace_t, km, z->buf.t, 16);
	KCALLOC(km, z->a, 1);
	z->a[0].vd = gwf_gen_vd(v0, -off0), z->a[0].k = off0 - 1, z->a[0].xo = 0;
	if (z->opt->traceback) z->a[0].t = gwf_trace_push(km, &z->buf.t, -1, -1, z->buf.ht);
	z->n_a = 1;
	return z;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x10(%rsp)
movl %r8d, 0xc(%rsp)
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r14
movl 0x58(%rsp), %ebp
movl $0x1, %esi
movl $0xd0, %edx
callq 0x3054
movq %rax, %rbx
movq %r14, 0x28(%rax)
movq %r15, 0x10(%rax)
movq %r13, (%rax)
movq %r12, 0x8(%rax)
movl 0xc(%rsp), %eax
movl %eax, 0x18(%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x20(%rbx)
movl $0x1, %esi
movl $0x20, %edx
movq %r14, %rdi
callq 0x3054
movq %r14, 0x18(%rax)
movq %rax, 0x30(%rbx)
movl $0x1, %esi
movl $0x20, %edx
movq %r14, %rdi
callq 0x3054
movq %r14, 0x18(%rax)
movq %rax, 0x38(%rbx)
cmpq $0xf, 0xa8(%rbx)
ja 0xbb04
movq $0x10, 0xa8(%rbx)
movq 0xb0(%rbx), %rsi
movl $0x80, %edx
movq %r14, %rdi
callq 0x32c4
movq %rax, 0xb0(%rbx)
movl $0x1, %esi
movl $0x18, %edx
movq %r14, %rdi
callq 0x3054
movq %rax, 0xc0(%rbx)
movl 0x50(%rsp), %ecx
movq %rcx, %rdx
shlq $0x20, %rdx
movl $0x40000000, %ecx       # imm = 0x40000000
subl %ebp, %ecx
movslq %ecx, %rcx
orq %rdx, %rcx
movq %rcx, (%rax)
decl %ebp
movl %ebp, 0x8(%rax)
movl $0x0, 0x10(%rax)
movq 0x10(%rbx), %rax
cmpl $0x0, (%rax)
je 0xbb77
movq %rbx, %rsi
addq $0xa0, %rsi
movq 0x38(%rbx), %r8
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0xbb93
movq 0xc0(%rbx), %rcx
movl %eax, 0x14(%rcx)
movl $0x1, 0xbc(%rbx)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-ed.c
// Function: gfa_ed_destroy
void gfa_ed_destroy(void *z_)
{
	gfa_edbuf_t *z = (gfa_edbuf_t*)z_;
	void *km = z->buf.km;
	kfree(km, z->a);
	gwf_set64_destroy(z->buf.ha);
	gwf_map64_destroy(z->buf.ht);
	kfree(km, z->buf.ooo.a);
	kfree(km, z->buf.intv.a);
	kfree(km, z->buf.tmp.a);
	kfree(km, z->buf.swap.a);
	kfree(km, z->buf.t.a);
	kfree(km, z);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x28(%rdi), %r14
movq 0xc0(%rdi), %rsi
movq %r14, %rdi
callq 0x30f6
movq 0x30(%rbx), %r15
testq %r15, %r15
je 0xe290
movq 0x10(%r15), %rsi
movq 0x18(%r15), %r12
movq %r12, %rdi
callq 0x30f6
movq 0x8(%r15), %rsi
movq %r12, %rdi
callq 0x30f6
movq %r12, %rdi
movq %r15, %rsi
callq 0x30f6
movq 0x38(%rbx), %r15
testq %r15, %r15
je 0xe2c0
movq 0x10(%r15), %rsi
movq 0x18(%r15), %r12
movq %r12, %rdi
callq 0x30f6
movq 0x8(%r15), %rsi
movq %r12, %rdi
callq 0x30f6
movq %r12, %rdi
movq %r15, %rsi
callq 0x30f6
movq 0x98(%rbx), %rsi
movq %r14, %rdi
callq 0x30f6
movq 0x50(%rbx), %rsi
movq %r14, %rdi
callq 0x30f6
movq 0x68(%rbx), %rsi
movq %r14, %rdi
callq 0x30f6
movq 0x80(%rbx), %rsi
movq %r14, %rdi
callq 0x30f6
movq 0xb0(%rbx), %rsi
movq %r14, %rdi
callq 0x30f6
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x30f6
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-ed.c
// Function: gfa_edit_dist
int32_t gfa_edit_dist(void *km, const gfa_edopt_t *opt, const gfa_t *g, const gfa_edseq_t *es, int32_t ql, const char *q, uint32_t v0, int32_t off0, gfa_edrst_t *rst)
{
	void *z;
	z = gfa_ed_init(km, opt, g, es, ql, q, v0, off0);
	gfa_ed_step(z, (uint32_t)-1, -1, -1, rst);
	gfa_ed_destroy(z);
	return rst->s;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x30(%rsp), %rbx
movl 0x20(%rsp), %eax
movl 0x28(%rsp), %r10d
pushq %r10
pushq %rax
callq 0xba47
addq $0x10, %rsp
movq %rax, %r14
movq %rax, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
callq 0xbfb9
movq %r14, %rdi
callq 0xe242
movl (%rbx), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/bseq.c
// Function: mg_bseq_open
mg_bseq_file_t *mg_bseq_open(const char *fn)
{
	mg_bseq_file_t *fp;
	gzFile f;
	f = fn && strcmp(fn, "-")? gzopen(fn, "r") : gzdopen(0, "r");
	if (f == 0) return 0;
	fp = (mg_bseq_file_t*)calloc(1, sizeof(mg_bseq_file_t));
	fp->fp = f;
	fp->ks = kseq_init(fp->fp);
	return fp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xf0b1
movq %rdi, %rbx
leaq 0x192d9(%rip), %rsi     # 0x28370
callq 0x21f0
testl %eax, %eax
je 0xf0b1
leaq 0x1b3d6(%rip), %rsi     # 0x2a47d
movq %rbx, %rdi
callq 0x22e0
jmp 0xf0bf
leaq 0x1b3c5(%rip), %rsi     # 0x2a47d
xorl %edi, %edi
callq 0x20f0
movq %rax, %r14
testq %rax, %rax
je 0xf12d
movl $0x1, %edi
movl $0x38, %esi
callq 0x21e0
movq %rax, %rbx
movq %r14, (%rax)
movl $0x1, %edi
movl $0x50, %esi
callq 0x21e0
movq %rax, %r15
movl $0x1, %edi
movl $0x20, %esi
callq 0x21e0
movq %rax, %r12
movq %r14, 0x10(%rax)
movl 0x8(%rax), %eax
andl $0x3, %eax
orl $0x40000, %eax          # imm = 0x40000
movl %eax, 0x8(%r12)
movl $0x10000, %edi          # imm = 0x10000
callq 0x2280
movq %rax, 0x18(%r12)
movq %r12, 0x48(%r15)
movq %r15, 0x8(%rbx)
jmp 0xf12f
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/bseq.c
// Function: kseq2bseq
static inline void kseq2bseq(kseq_t *ks, mg_bseq1_t *s, int with_qual, int with_comment)
{
	int i;
	if (ks->name.l == 0)
		fprintf(stderr, "[WARNING]\033[1;31m empty sequence name in the input.\033[0m\n");
	s->name = kstrdup(&ks->name);
	s->seq = kstrdup(&ks->seq);
	for (i = 0; i < (int)ks->seq.l; ++i) // convert U to T
		if (s->seq[i] == 'u' || s->seq[i] == 'U')
			--s->seq[i];
	s->qual = with_qual && ks->qual.l? kstrdup(&ks->qual) : 0;
	s->comment = with_comment && ks->comment.l? kstrdup(&ks->comment) : 0;
	s->l_seq = ks->seq.l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movl %edx, %r15d
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0x0, (%rdi)
je 0xf909
movl (%r14), %r12d
incl %r12d
movq %r12, %rdi
callq 0x2280
movq %rax, %r13
movq 0x8(%r14), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x2230
movq %r13, 0x8(%rbx)
movl 0x20(%r14), %r12d
incl %r12d
movq %r12, %rdi
callq 0x2280
movq %rax, %r13
movq 0x28(%r14), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x2230
movq %r13, 0x10(%rbx)
movl 0x20(%r14), %r13d
testl %r13d, %r13d
jle 0xf890
xorl %eax, %eax
movq 0x10(%rbx), %rcx
movzbl (%rcx,%rax), %edx
movl %edx, %esi
orl $0x20, %esi
cmpl $0x75, %esi
jne 0xf884
decb %dl
movb %dl, (%rcx,%rax)
incq %rax
movslq 0x20(%r14), %r13
cmpq %r13, %rax
jl 0xf86d
testl %r15d, %r15d
je 0xf8bd
movl 0x30(%r14), %r12d
testl %r12d, %r12d
je 0xf8bd
incl %r12d
movq %r12, %rdi
callq 0x2280
movq %rax, %r15
movq 0x38(%r14), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x2230
jmp 0xf8c0
xorl %r15d, %r15d
movq %r15, 0x18(%rbx)
testl %ebp, %ebp
je 0xf8f0
movl 0x10(%r14), %r12d
testl %r12d, %r12d
je 0xf8f0
incl %r12d
movq %r12, %rdi
callq 0x2280
movq %rax, %r15
movq 0x18(%r14), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x2230
jmp 0xf8f3
xorl %r15d, %r15d
movq %r15, 0x20(%rbx)
movl %r13d, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x26ac
jmp 0xf819
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/bseq.c
// Function: mg_bseq_read_frag
mg_bseq1_t *mg_bseq_read_frag(int n_fp, mg_bseq_file_t **fp, int64_t chunk_size, int with_qual, int with_comment, int *n_)
{
	int i;
	int64_t size = 0;
	kvec_t(mg_bseq1_t) a = {0,0,0};
	*n_ = 0;
	if (n_fp < 1) return 0;
	while (1) {
		int n_read = 0;
		for (i = 0; i < n_fp; ++i)
			if (kseq_read(fp[i]->ks) >= 0)
				++n_read;
		if (n_read < n_fp) {
			if (n_read > 0)
				fprintf(stderr, "[W::%s]\033[1;31m query files have different number of records; extra records skipped.\033[0m\n", __func__);
			break; // some file reaches the end
		}
		if (a.m == 0) kv_resize(mg_bseq1_t, 0, a, 256);
		for (i = 0; i < n_fp; ++i) {
			mg_bseq1_t *s;
			kv_pushp(mg_bseq1_t, 0, a, &s);
			kseq2bseq(fp[i]->ks, s, with_qual, with_comment);
			size += s->l_seq;
		}
		if (size >= chunk_size) break;
	}
	*n_ = a.n;
	return a.a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r8d, 0x1c(%rsp)
movl %ecx, 0x18(%rsp)
movq %rdx, 0x30(%rsp)
movq %rsi, 0x20(%rsp)
movl $0x0, (%r9)
testl %edi, %edi
jle 0xfa85
movq %r9, 0x28(%rsp)
movl %edi, 0x14(%rsp)
movl %edi, %ecx
xorl %r13d, %r13d
movq $0x0, 0x8(%rsp)
xorl %r15d, %r15d
xorl %esi, %esi
movq %rsi, (%rsp)
xorl %r12d, %r12d
xorl %ebp, %ebp
movq 0x20(%rsp), %rax
movq (%rax,%r12,8), %rax
movq 0x8(%rax), %rdi
movq %rcx, %rbx
callq 0xf4dc
movq %rbx, %rcx
notl %eax
shrl $0x1f, %eax
addl %eax, %ebp
incq %r12
cmpq %r12, %rbx
jne 0xf968
cmpl 0x14(%rsp), %ebp
jge 0xf9a8
testl %ebp, %ebp
jne 0xfa6a
xorl %eax, %eax
movq (%rsp), %rsi
jmp 0xfa60
testq %r15, %r15
je 0xf9b3
movq (%rsp), %rsi
jmp 0xf9cc
movl $0x2800, %edx           # imm = 0x2800
xorl %edi, %edi
movq (%rsp), %rsi
callq 0x32c4
movq %rax, %rsi
movl $0x100, %r15d           # imm = 0x100
movq 0x8(%rsp), %rax
leaq (,%rax,8), %rax
leaq (%rax,%rax,4), %r12
xorl %ebp, %ebp
movq 0x8(%rsp), %rax
addq %rbp, %rax
cmpq %r15, %rax
jne 0xfa14
leaq (%r15,%r15), %r14
testq %r15, %r15
movl $0x2, %eax
cmoveq %rax, %r14
leaq (,%r14,8), %rax
leaq (%rax,%rax,4), %rdx
xorl %edi, %edi
callq 0x32c4
movq %rax, %rsi
jmp 0xfa17
movq %r15, %r14
movq %rsi, %r15
addq %r12, %rsi
movq 0x20(%rsp), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rdi
movl 0x18(%rsp), %edx
movl 0x1c(%rsp), %ecx
callq 0xf7fa
movq %r15, %rsi
movslq (%r15,%r12), %rax
addq %rax, %r13
incq %rbp
addq $0x28, %r12
cmpq %rbp, %rbx
movq %r14, %r15
jne 0xf9df
movq %rbx, %rcx
cmpq 0x30(%rsp), %r13
setl %al
addq %rbp, 0x8(%rsp)
testb %al, %al
jne 0xf95f
jmp 0xfa77
callq 0x26c8
movq %rbx, %rcx
jmp 0xf99d
movq 0x28(%rsp), %rax
movq 0x8(%rsp), %rcx
movl %ecx, (%rax)
jmp 0xfa87
xorl %esi, %esi
movq %rsi, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/options.c
// Function: mg_ggopt_init
void mg_ggopt_init(mg_ggopt_t *go)
{
	memset(go, 0, sizeof(mg_ggopt_t));
	go->algo = MG_G_NONE;
	go->flag |= MG_G_NO_QOVLP;
	go->min_map_len = 100000;
	go->min_depth_len = 20000;
	go->min_mapq = 5;
	go->min_var_len = 50;
	go->match_pen = 10;
	// for ggs
	go->ggs_shrink_pen = 9;
	go->ggs_min_end_cnt = 10;
	go->ggs_min_end_frac = 0.1f;
	go->ggs_max_iden = 0.80f;
	go->ggs_min_inv_iden = 0.95f;
}

// Assembly:
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, 0x20(%rdi)
movq $0x0, 0x30(%rdi)
movq $0x1, (%rdi)
movabsq $0x4e20000186a0, %rax   # imm = 0x4E20000186A0
movq %rax, 0x10(%rdi)
movl $0x5, 0xc(%rdi)
movabsq $0xa00000032, %rax      # imm = 0xA00000032
movq %rax, 0x18(%rdi)
movabsq $0xa00000009, %rax      # imm = 0xA00000009
movq %rax, 0x20(%rdi)
movabsq $0x3f4ccccd3dcccccd, %rax # imm = 0x3F4CCCCD3DCCCCCD
movq %rax, 0x28(%rdi)
movl $0x3f733333, 0x30(%rdi) # imm = 0x3F733333
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/options.c
// Function: mg_opt_update
void mg_opt_update(const mg_idx_t *gi, mg_mapopt_t *mo, mg_ggopt_t *go)
{
	float f[2];
	int32_t q[2];
	f[0] = 0.1f, f[1] = mo->occ_max1_frac;
	mg_idx_cal_quantile(gi, 2, f, q);
	if (q[0] > mo->lc_max_occ) mo->lc_max_occ = q[0];
	if (mo->lc_max_occ > mo->occ_max1_cap) mo->lc_max_occ = mo->occ_max1_cap;
	if (q[1] > mo->occ_max1) mo->occ_max1 = q[1];
	if (mo->occ_max1 > mo->occ_max1_cap) mo->occ_max1 = mo->occ_max1_cap;
	if (mo->bw_long < mo->bw) mo->bw_long = mo->bw;
	if (mg_verbose >= 3)
		fprintf(stderr, "[M::%s::%.3f*%.2f] occ_max1=%d; lc_max_occ=%d\n", __func__,
				realtime() - mg_realtime0, cputime() / (realtime() - mg_realtime0), mo->occ_max1, mo->lc_max_occ);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
leaq 0x10(%rsp), %rdx
movl $0x3dcccccd, (%rdx)     # imm = 0x3DCCCCCD
movss 0x24(%rsi), %xmm0
movss %xmm0, 0x4(%rdx)
leaq 0x8(%rsp), %r14
movl $0x2, %esi
movq %r14, %rcx
callq 0x15203
movl (%r14), %eax
leaq 0x7c(%rbx), %rsi
cmpl 0x7c(%rbx), %eax
jle 0x100e0
movl %eax, (%rsi)
movl 0x20(%rbx), %eax
cmpl %eax, 0x7c(%rbx)
jle 0x100ea
movl %eax, (%rsi)
movl 0xc(%rsp), %ecx
leaq 0x1c(%rbx), %rdi
cmpl 0x1c(%rbx), %ecx
jle 0x100f9
movl %ecx, (%rdi)
cmpl %eax, (%rdi)
jle 0x100ff
movl %eax, (%rdi)
movl 0x28(%rbx), %eax
cmpl %eax, 0x2c(%rbx)
jge 0x1010a
movl %eax, 0x2c(%rbx)
leaq 0x222ef(%rip), %rax     # 0x32400
cmpl $0x3, (%rax)
jge 0x1011e
addq $0x18, %rsp
popq %rbx
popq %r14
retq
callq 0x2703
jmp 0x10116
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/shortk.c
// Function: mg_sub_print_path
void mg_sub_print_path(FILE *fp, const gfa_t *g, int32_t n, mg_pathv_t *path)
{
	int32_t i;
	for (i = 0; i < n; ++i) {
		mg_pathv_t *p = &path[i];
		fprintf(fp, "[%d]\t%d\t%s\t%d\t%d\n", i, p->v, g->seg[p->v>>1].name, p->d, p->pre);
	}
}

// Assembly:
testl %edx, %edx
jle 0x11b86
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl %edx, %ebp
addq $0x8, %rbx
leaq 0x171a2(%rip), %r12     # 0x28cde
xorl %r13d, %r13d
movq 0x10(%r14), %rax
movl -0x8(%rbx), %ecx
movl -0x4(%rbx), %r9d
movl %ecx, %edx
shrl %edx
shlq $0x6, %rdx
movq 0x18(%rax,%rdx), %r8
movl (%rbx), %eax
movl %eax, (%rsp)
movq %r15, %rdi
movq %r12, %rsi
movl %r13d, %edx
xorl %eax, %eax
callq 0x2210
incq %r13
addq $0xc, %rbx
cmpq %r13, %rbp
jne 0x11b3f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/miniwfa.c
// Function: mwf_opt_init
void mwf_opt_init(mwf_opt_t *opt)
{
	memset(opt, 0, sizeof(*opt));
	opt->x  = 4; // corresponding SW score: m=1, x=3, o1=4, e1=3/2, o2=15, e2=1/2
	opt->o1 = 4, opt->e1 = 2;
	opt->o2 = 15, opt->e2 = 1;
	opt->kmer = 13, opt->max_occ = 2, opt->min_len = 30;
}

// Assembly:
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, 0x20(%rdi)
movq $0x0, 0x30(%rdi)
movabsq $0x400000004, %rax      # imm = 0x400000004
movq %rax, 0x4(%rdi)
movl $0x2, 0xc(%rdi)
movabsq $0x10000000f, %rax      # imm = 0x10000000F
movq %rax, 0x10(%rdi)
movabsq $0xd00000002, %rax      # imm = 0xD00000002
movq %rax, 0x28(%rdi)
movl $0x1e, 0x30(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/miniwfa.c
// Function: wf_stripe_init
static wf_stripe_t *wf_stripe_init(void *km, int32_t max_pen)
{
	int32_t i;
	wf_stripe_t *wf;
	wf = Kcalloc(km, wf_stripe_t, 1);
	wf->max_pen = max_pen;
	wf->n = max_pen + 1;
	wf->a = Kcalloc(km, wf_slice_t, wf->n);
	wf->lo = wf->hi = 0;
	for (i = 0; i < wf->n; ++i) {
		wf_slice_t *f;
		wf_stripe_add(km, wf, 0, 0);
		f = &wf->a[wf->top];
		f->H[0] = f->E1[0] = f->E2[0] = f->F1[0] = f->F2[0] = WF_NEG_INF;
	}
	wf->s = 0;
	wf->a[wf->top].H[0] = -1;
	return wf;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movl $0x1, %esi
movl $0x20, %edx
callq 0x3054
movq %rax, %r14
movl %ebp, 0xc(%rax)
incl %ebp
movl %ebp, 0x8(%rax)
movslq %ebp, %rsi
movl $0x38, %edx
movq %rbx, %rdi
callq 0x3054
movq %rax, 0x18(%r14)
movq $0x0, 0x10(%r14)
cmpl $0x0, 0x8(%r14)
jle 0x12ed9
xorl %ebp, %ebp
movl $0xc0000000, %r15d      # imm = 0xC0000000
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x1216b
movq 0x18(%r14), %rax
movslq 0x4(%r14), %rcx
imulq $0x38, %rcx, %rcx
movq 0x30(%rax,%rcx), %rdx
movl %r15d, (%rdx)
movq 0x28(%rax,%rcx), %rdx
movl %r15d, (%rdx)
movq 0x20(%rax,%rcx), %rdx
movl %r15d, (%rdx)
movq 0x18(%rax,%rcx), %rdx
movl %r15d, (%rdx)
movq 0x10(%rax,%rcx), %rax
movl %r15d, (%rax)
incl %ebp
cmpl 0x8(%r14), %ebp
jl 0x12e8e
movl $0x0, (%r14)
movq 0x18(%r14), %rax
movslq 0x4(%r14), %rcx
imulq $0x38, %rcx, %rcx
movq 0x10(%rax,%rcx), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/miniwfa.c
// Function: wf_stripe_destroy
static void wf_stripe_destroy(void *km, wf_stripe_t *wf)
{
	int32_t i;
	for (i = 0; i < wf->n; ++i)
		kfree(km, wf->a[i].mem);
	kfree(km, wf->a);
	kfree(km, wf);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, 0x8(%rdi)
jle 0x1331b
movl $0x8, %r14d
xorl %r15d, %r15d
movq 0x18(%rbx), %rax
movq (%rax,%r14), %rsi
xorl %edi, %edi
callq 0x30f6
incq %r15
movslq 0x8(%rbx), %rax
addq $0x38, %r14
cmpq %rax, %r15
jl 0x132fc
movq 0x18(%rbx), %rsi
xorl %edi, %edi
callq 0x30f6
xorl %edi, %edi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x30f6
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/miniwfa.c
// Function: wf_cigar_push1
static void wf_cigar_push1(void *km, wf_cigar_t *c, int32_t op, int32_t len)
{
	if (c->n && op == (c->cigar[c->n-1]&0xf)) {
		c->cigar[c->n-1] += len<<4;
	} else {
		if (c->n == c->m) {
			c->m = c->m + (c->m>>1) + 4;
			c->cigar = Krealloc(km, uint32_t, c->cigar, c->m);
		}
		c->cigar[c->n++] = len<<4 | op;
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r14
movslq 0x4(%rsi), %rax
testq %rax, %rax
je 0x14b60
movq 0x8(%r14), %rcx
movl -0x4(%rcx,%rax,4), %edx
movl %edx, %esi
andl $0xf, %esi
cmpl %ebp, %esi
jne 0x14b60
shll $0x4, %ebx
addl %ebx, %edx
movl %edx, -0x4(%rcx,%rax,4)
jmp 0x14b9e
movl (%r14), %ecx
cmpl %ecx, %eax
jne 0x14b87
movl %ecx, %eax
sarl %eax
addl %ecx, %eax
addl $0x4, %eax
movl %eax, (%r14)
movq 0x8(%r14), %rsi
movslq %eax, %rdx
shlq $0x2, %rdx
callq 0x32c4
movq %rax, 0x8(%r14)
shll $0x4, %ebx
orl %ebp, %ebx
movq 0x8(%r14), %rax
movslq 0x4(%r14), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x4(%r14)
movl %ebx, (%rax,%rcx,4)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/miniwfa.c
// Function: mwf_wfa_auto
void mwf_wfa_auto(void *km, const mwf_opt_t *opt0, int32_t tl, const char *ts, int32_t ql, const char *qs, mwf_rst_t *r)
{
	mwf_opt_t opt = *opt0;
	opt.step = 0, opt.max_iter = 100000000;
	mwf_wfa_exact(km, &opt, tl, ts, ql, qs, r);
	if (r->s < 0) {
		if (opt.flag & MWF_F_CIGAR) opt.step = 5000;
		opt.max_iter = -1;
		mwf_wfa_chain(km, &opt, tl, ts, ql, qs, r);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %rbx
movl %r8d, %ebp
movq %rcx, %r14
movl %edx, %r15d
movq %rdi, %r12
movq 0x80(%rsp), %r13
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movups 0x20(%rsi), %xmm2
leaq 0x10(%rsp), %rax
movaps %xmm1, 0x10(%rax)
movaps %xmm2, 0x20(%rax)
movq 0x30(%rsi), %rcx
movq %rcx, 0x30(%rax)
movaps %xmm0, (%rax)
movl $0x0, 0x18(%rax)
movq $0x5f5e100, 0x20(%rax)  # imm = 0x5F5E100
movq %r13, (%rsp)
movq %rax, %rsi
movq %r14, %rcx
callq 0x13335
cmpl $0x0, (%r13)
jns 0x14c44
testb $0x1, 0x10(%rsp)
je 0x14c1f
movl $0x1388, 0x28(%rsp)     # imm = 0x1388
leaq 0x10(%rsp), %rsi
movq $-0x1, 0x20(%rsi)
movq %r13, (%rsp)
movq %r12, %rdi
movl %r15d, %edx
movq %r14, %rcx
movl %ebp, %r8d
movq %rbx, %r9
callq 0x14066
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/miniwfa.c
// Function: wf_next_prep
static void wf_next_prep(void *km, const mwf_opt_t *opt, wf_stripe_t *wf, int32_t lo, int32_t hi,
						 int32_t **H, int32_t **E1, int32_t **F1, int32_t **E2, int32_t **F2,
						 const int32_t **pHx, const int32_t **pHo1, const int32_t **pHo2,
						 const int32_t **pE1, const int32_t **pF1, const int32_t **pE2, const int32_t **pF2)
{
	const wf_slice_t *fx, *fo1, *fo2, *fe1, *fe2;
	wf_slice_t *ft;
	wf_stripe_add(km, wf, lo, hi);
	ft  = &wf->a[wf->top];
	fx  = wf_stripe_get(wf, opt->x);
	fo1 = wf_stripe_get(wf, opt->o1 + opt->e1);
	fo2 = wf_stripe_get(wf, opt->o2 + opt->e2);
	fe1 = wf_stripe_get(wf, opt->e1);
	fe2 = wf_stripe_get(wf, opt->e2);
	*pHx = fx->H, *pHo1 = fo1->H, *pHo2 = fo2->H, *pE1 = fe1->E1, *pE2 = fe2->E2, *pF1 = fe1->F1, *pF2 = fe2->F2;
	*H = ft->H, *E1 = ft->E1, *E2 = ft->E2, *F1 = ft->F1, *F2 = ft->F2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, (%rsp)
movq %rdx, %r14
movq %rsi, %r15
movq %rdx, %rsi
movl %ecx, %edx
movl %r8d, %ecx
callq 0x1216b
movslq 0x4(%r14), %rax
movl 0x4(%r15), %edx
movl %eax, %ecx
subl %edx, %ecx
jns 0x14c87
addl 0x8(%r14), %ecx
movl 0xc(%r15), %edi
movl 0x8(%r15), %esi
addl %edi, %esi
movl %eax, %edx
subl %esi, %edx
jns 0x14c9b
addl 0x8(%r14), %edx
movl 0x14(%r15), %r12d
movl 0x10(%r15), %r8d
addl %r12d, %r8d
movl %eax, %esi
subl %r8d, %esi
jns 0x14cb1
addl 0x8(%r14), %esi
movl %eax, %r8d
subl %edi, %r8d
jns 0x14cbd
addl 0x8(%r14), %r8d
movq 0x88(%rsp), %rbp
movq 0x80(%rsp), %r15
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %r9
movq 0x68(%rsp), %r11
movq 0x60(%rsp), %rbx
movq 0x40(%rsp), %r13
movl %eax, %r10d
subl %r12d, %r10d
movq 0x18(%r14), %r12
jns 0x14cf6
addl 0x8(%r14), %r10d
movslq %ecx, %rcx
imulq $0x38, %rcx, %rcx
movq 0x10(%r12,%rcx), %rcx
movq %rcx, (%rbx)
movslq %edx, %rcx
imulq $0x38, %rcx, %rcx
movq 0x10(%r12,%rcx), %rcx
movq %rcx, (%r11)
movslq %esi, %rcx
imulq $0x38, %rcx, %rcx
movq 0x10(%r12,%rcx), %rcx
movq %rcx, (%r9)
movslq %r8d, %rcx
imulq $0x38, %rcx, %rcx
movq 0x18(%r12,%rcx), %rdx
movq %rdx, (%rdi)
movslq %r10d, %rdx
imulq $0x38, %rdx, %rdx
movq 0x20(%r12,%rdx), %rsi
movq %rsi, (%rbp)
movq 0x28(%r12,%rcx), %rcx
movq %rcx, (%r15)
movq 0x30(%r12,%rdx), %rcx
movq 0x90(%rsp), %rdx
movq %rcx, (%rdx)
imulq $0x38, %rax, %rax
movq 0x10(%r12,%rax), %rcx
movq (%rsp), %rdx
movq %rcx, (%rdx)
movq 0x18(%r12,%rax), %rcx
movq %rcx, (%r13)
movq 0x20(%r12,%rax), %rcx
movq 0x50(%rsp), %rdx
movq %rcx, (%rdx)
movq 0x28(%r12,%rax), %rcx
movq 0x48(%rsp), %rdx
movq %rcx, (%rdx)
movq 0x30(%r12,%rax), %rax
movq 0x58(%rsp), %rcx
movq %rax, (%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/miniwfa.c
// Function: mg_fc_kmer
static int32_t mg_fc_kmer(int32_t len, const char *seq, int32_t rid, int32_t k, uint64_t *a)
{
	int32_t i, l, n;
	uint64_t x, mask = (1ULL<<k*2) - 1;
	for (i = l = 0, x = 0, n = 0; i < len; ++i) {
		int32_t c = seq_nt4_table[(uint8_t)seq[i]];
		if (c < 4) {
			x = (x << 2 | c) & mask;
			if (++l >= k) a[n++] = (x<<1|rid) << 32 | i;
		} else l = 0, x = 0;
	}
	return n;
}

// Assembly:
movl %ecx, %r9d
leal (%r9,%r9), %ecx
movq $-0x1, %r10
shlq %cl, %r10
testl %edi, %edi
jle 0x14fe1
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
notq %r10
shlq $0x20, %rdx
movl %edi, %ecx
xorl %edi, %edi
leaq 0x1d371(%rip), %r11     # 0x32300
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %eax, %eax
movzbl (%rsi,%rdi), %r15d
movzbl (%r11,%r15), %r15d
cmpq $0x3, %r15
ja 0x14fcc
leaq (%r15,%r14,4), %r14
andq %r10, %r14
incl %ebx
cmpl %r9d, %ebx
jl 0x14fd1
movq %r14, %r15
shlq $0x21, %r15
orq %rdx, %r15
addq %rdi, %r15
movslq %eax, %r12
incl %eax
movq %r15, (%r8,%r12,8)
jmp 0x14fd1
xorl %r14d, %r14d
xorl %ebx, %ebx
incq %rdi
cmpq %rdi, %rcx
jne 0x14f96
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/index.c
// Function: mg_idx_init
mg_idx_t *mg_idx_init(int k, int w, int b)
{
	mg_idx_t *gi;
	if (k*2 < b) b = k * 2;
	if (w < 1) w = 1;
	KCALLOC(0, gi, 1);
	gi->w = w, gi->k = k, gi->b = b;
	KCALLOC(0, gi->B, 1<<b);
	return gi;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebx
movl %edi, %r14d
leal (%r14,%r14), %ebp
cmpl %edx, %ebp
cmovgel %edx, %ebp
cmpl $0x2, %esi
movl $0x1, %r12d
cmovll %r12d, %ebx
movl $0x1, %esi
movl $0x30, %edx
xorl %edi, %edi
callq 0x3054
movq %rax, %r15
movl %ebx, 0x14(%rax)
movl %r14d, 0x18(%rax)
movl %ebp, 0x10(%rax)
movl %ebp, %ecx
shll %cl, %r12d
movslq %r12d, %rsi
movl $0x30, %edx
xorl %edi, %edi
callq 0x3054
movq %rax, 0x28(%r15)
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/index.c
// Function: mg_idx_destroy
void mg_idx_destroy(mg_idx_t *gi)
{
	uint32_t i;
	if (gi == 0) return;
	if (gi->B) {
		for (i = 0; i < 1U<<gi->b; ++i) {
			free(gi->B[i].p);
			free(gi->B[i].a.a);
			mg_hidx_destroy((idxhash_t*)gi->B[i].h);
		}
		free(gi->B);
	}
	gfa_edseq_destroy(gi->n_seg, gi->es);
	free(gi);
}

// Assembly:
testq %rdi, %rdi
je 0x150ff
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x28(%rdi)
je 0x150e0
movl $0x1, %r12d
leal -0x1(%r12), %eax
movq 0x28(%rbx), %rcx
shlq $0x4, %rax
leaq (%rax,%rax,2), %r14
movq 0x20(%rcx,%r14), %rdi
callq 0x2040
movq 0x28(%rbx), %rax
movq 0x10(%rax,%r14), %rdi
callq 0x2040
movq 0x28(%rbx), %rax
movq 0x28(%rax,%r14), %r14
testq %r14, %r14
je 0x150c8
movq 0x10(%r14), %rsi
movq 0x18(%r14), %r15
movq %r15, %rdi
callq 0x30f6
movq 0x8(%r14), %rsi
movq %r15, %rdi
callq 0x30f6
movq %r15, %rdi
movq %r14, %rsi
callq 0x30f6
movb 0x10(%rbx), %cl
movl %r12d, %eax
shrl %cl, %eax
incl %r12d
testl %eax, %eax
je 0x1506a
movq 0x28(%rbx), %rdi
callq 0x2040
movl 0x20(%rbx), %edi
movq 0x8(%rbx), %rsi
callq 0xb570
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2040
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/index.c
// Function: mg_idx_hget
const uint64_t *mg_idx_hget(const void *h_, const uint64_t *q, int suflen, uint64_t minier, int *n)
{
	khint_t k;
	const idxhash_t *h = (const idxhash_t*)h_;
	*n = 0;
	if (h == 0) return 0;
	k = mg_hidx_get(h, minier>>suflen<<1);
	if (k == kh_end(h)) return 0;
	if (kh_key(h, k)&1) { // special casing when there is only one k-mer
		*n = 1;
		return &kh_val(h, k);
	} else {
		*n = (uint32_t)kh_val(h, k);
		return &q[kh_val(h, k)>>32];
	}
}

// Assembly:
movl $0x0, (%r8)
xorl %eax, %eax
testq %rdi, %rdi
je 0x151cc
pushq %rbp
pushq %r14
pushq %rbx
movq %rcx, %r9
movl %edx, %ecx
shrq %cl, %r9
movq 0x10(%rdi), %rdx
testq %rdx, %rdx
je 0x15180
movb (%rdi), %cl
movl $0x1, %eax
shll %cl, %eax
imull $0x9e3779b9, %r9d, %r10d # imm = 0x9E3779B9
negb %cl
shrl %cl, %r10d
leaq (%r9,%r9), %rcx
leal -0x1(%rax), %r9d
movq 0x8(%rdi), %rbx
movl %r10d, %r11d
movl %r11d, %r14d
shrl $0x5, %r14d
movl (%rbx,%r14,4), %ebp
btl %r11d, %ebp
jae 0x15180
movl %r11d, %r14d
shlq $0x4, %r14
movq (%rdx,%r14), %r14
xorq %rcx, %r14
cmpq $0x2, %r14
jb 0x1517d
incl %r11d
andl %r9d, %r11d
cmpl %r10d, %r11d
jne 0x1514b
jmp 0x15180
movl %r11d, %eax
testq %rdx, %rdx
je 0x15190
movb (%rdi), %cl
movl $0x1, %edi
shll %cl, %edi
jmp 0x15192
xorl %edi, %edi
cmpl %edi, %eax
jne 0x1519a
xorl %eax, %eax
jmp 0x151c8
movl %eax, %eax
shlq $0x4, %rax
testb $0x1, (%rdx,%rax)
jne 0x151ba
leaq (%rdx,%rax), %rcx
movl 0x8(%rcx), %ecx
movl %ecx, (%r8)
movl 0xc(%rdx,%rax), %eax
leaq (%rsi,%rax,8), %rax
jmp 0x151c8
movl $0x1, (%r8)
addq %rdx, %rax
addq $0x8, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/index.c
// Function: mg_idx_cal_quantile
void mg_idx_cal_quantile(const mg_idx_t *gi, int32_t m, float f[], int32_t q[])
{
	int32_t i;
	uint64_t n = 0;
	khint_t *a, k;
	for (i = 0; i < 1<<gi->b; ++i)
		if (gi->B[i].h) n += kh_size((idxhash_t*)gi->B[i].h);
	a = (uint32_t*)malloc(n * 4);
	for (i = 0, n = 0; i < 1<<gi->b; ++i) {
		idxhash_t *h = (idxhash_t*)gi->B[i].h;
		if (h == 0) continue;
		for (k = 0; k < kh_end(h); ++k) {
			if (!kh_exist(h, k)) continue;
			a[n++] = kh_key(h, k)&1? 1 : (uint32_t)kh_val(h, k);
		}
	}
	for (i = 0; i < m; ++i)
		q[i] = ks_ksmall_uint32_t(n, a, (size_t)((1.0 - (double)f[i]) * n));
	free(a);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, (%rsp)
movq %rdi, %r12
movl 0x10(%rdi), %r13d
movl $0x1, %edx
movl $0x1, %ebp
movl %r13d, %ecx
shll %cl, %ebp
cmpl $0x1f, %r13d
jne 0x1523a
xorl %edi, %edi
jmp 0x1526e
movq 0x28(%r12), %rax
cmpl $0x2, %ebp
cmovgel %ebp, %edx
shlq $0x4, %rdx
leaq (%rdx,%rdx,2), %rcx
xorl %edx, %edx
xorl %edi, %edi
movq 0x28(%rax,%rdx), %rsi
testq %rsi, %rsi
je 0x15261
movl 0x4(%rsi), %esi
addq %rsi, %rdi
addq $0x30, %rdx
cmpq %rdx, %rcx
jne 0x15251
shlq $0x2, %rdi
callq 0x2280
movq %rax, %r15
cmpl $0x1f, %r13d
jne 0x15287
xorl %r12d, %r12d
movl (%rsp), %ebp
jmp 0x15312
movq 0x28(%r12), %rax
cmpl $0x2, %ebp
movl $0x1, %edx
cmovgel %ebp, %edx
xorl %esi, %esi
xorl %r12d, %r12d
movl (%rsp), %ebp
leaq (%rsi,%rsi,2), %rcx
shlq $0x4, %rcx
movq 0x28(%rax,%rcx), %rdi
testq %rdi, %rdi
je 0x1530a
movq 0x10(%rdi), %r8
leaq 0x8(%r8), %r9
xorl %r10d, %r10d
testq %r8, %r8
je 0x152ce
movb (%rdi), %cl
movl $0x1, %r11d
shlq %cl, %r11
jmp 0x152d1
xorl %r11d, %r11d
cmpq %r11, %r10
jae 0x1530a
movq 0x8(%rdi), %rcx
movl %r10d, %r11d
shrl $0x5, %r11d
movl (%rcx,%r11,4), %ecx
btl %r10d, %ecx
jae 0x15301
movl $0x1, %ecx
testb $0x1, -0x8(%r9)
jne 0x152fa
movl (%r9), %ecx
movl %ecx, (%r15,%r12,4)
incq %r12
incq %r10
addq $0x10, %r9
jmp 0x152bc
incq %rsi
cmpq %rdx, %rsi
jne 0x1529f
testl %ebp, %ebp
jle 0x15390
movq %r12, %xmm0
punpckldq 0x13d7d(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x13d85(%rip), %xmm0    # 0x290b0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, (%rsp)
movl %ebp, %r13d
xorl %ebp, %ebp
xorps %xmm0, %xmm0
cvtss2sd (%r14,%rbp,4), %xmm0
movsd 0x13d6e(%rip), %xmm1    # 0x290c0
subsd %xmm0, %xmm1
mulsd (%rsp), %xmm1
cvttsd2si %xmm1, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x13d59(%rip), %xmm1    # 0x290c8
cvttsd2si %xmm1, %rdx
andq %rcx, %rdx
orq %rax, %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0xefa8
movl %eax, (%rbx,%rbp,4)
incq %rbp
cmpq %rbp, %r13
jne 0x15341
movq %r15, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2040
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/index.c
// Function: mg_gfa_overlap
int mg_gfa_overlap(const gfa_t *g)
{
	int64_t i;
	for (i = 0; i < g->n_arc; ++i) // non-zero overlap
		if (g->arc[i].ov != 0 || g->arc[i].ow != 0)
			return 1;
	return 0;
}

// Assembly:
movq 0x40(%rdi), %rcx
testq %rcx, %rcx
je 0x157a2
movq 0x48(%rdi), %rdx
addq $0x14, %rdx
movl $0x1, %eax
cmpl $0x0, -0x4(%rdx)
jne 0x157a4
cmpl $0x0, (%rdx)
jne 0x157a4
addq $0x20, %rdx
decq %rcx
jne 0x1578e
xorl %eax, %eax
retq