LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/kthread.c
// Function: kt_pipeline
void kt_pipeline(int n_threads, void *(*func)(void*, int, void*), void *shared_data, int n_steps)
{
	ktp_t aux;
	pthread_t *tid;
	int i;

	if (n_threads < 1) n_threads = 1;
	aux.n_workers = n_threads;
	aux.n_steps = n_steps;
	aux.func = func;
	aux.shared = shared_data;
	aux.index = 0;
	pthread_mutex_init(&aux.mutex, 0);
	pthread_cond_init(&aux.cv, 0);

	aux.workers = (ktp_worker_t*)calloc(n_threads, sizeof(ktp_worker_t));
	for (i = 0; i < n_threads; ++i) {
		ktp_worker_t *w = &aux.workers[i];
		w->step = 0; w->pl = &aux; w->data = 0;
		w->index = aux.index++;
	}

	tid = (pthread_t*)calloc(n_threads, sizeof(pthread_t));
	for (i = 0; i < n_threads; ++i) pthread_create(&tid[i], 0, ktp_worker, &aux.workers[i]);
	for (i = 0; i < n_threads; ++i) pthread_join(tid[i], 0);
	free(tid); free(aux.workers);

	pthread_mutex_destroy(&aux.mutex);
	pthread_cond_destroy(&aux.cv);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
cmpl $0x2, %edi
movl $0x1, %r15d
cmovgel %edi, %r15d
leaq 0x30(%rsp), %rdi
movl %r15d, -0x10(%rdi)
movl %ecx, -0xc(%rdi)
movq %rsi, -0x20(%rdi)
movq %rdx, -0x28(%rdi)
movq $0x0, -0x18(%rdi)
xorl %r12d, %r12d
xorl %esi, %esi
callq 0x2370
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2240
movl $0x20, %esi
movq %r15, %rdi
callq 0x21e0
movq %rax, -0x30(%rbx)
movq -0x40(%rbx), %rcx
movq %r15, %r14
shlq $0x5, %r14
leaq 0x8(%rsp), %rdx
movl $0x0, 0x10(%rax,%r12)
movq %rdx, (%rax,%r12)
movq $0x0, 0x18(%rax,%r12)
movq %rcx, 0x8(%rax,%r12)
incq %rcx
addq $0x20, %r12
cmpq %r12, %r14
jne 0x36c0
movq %rcx, 0x18(%rsp)
movl $0x8, %esi
movq %r15, %rdi
callq 0x21e0
movq %rax, %r12
xorl %ebx, %ebx
leaq 0x72(%rip), %r13        # 0x3777
movq %rax, %rbp
movq 0x28(%rsp), %rcx
addq %rbx, %rcx
movq %rbp, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x22c0
addq $0x20, %rbx
addq $0x8, %rbp
cmpq %rbx, %r14
jne 0x3708
xorl %ebx, %ebx
movq (%r12,%rbx,8), %rdi
xorl %esi, %esi
callq 0x2360
incq %rbx
cmpq %rbx, %r15
jne 0x372c
movq %r12, %rdi
callq 0x2040
movq 0x28(%rsp), %rdi
callq 0x2040
leaq 0x30(%rsp), %rdi
callq 0x2130
leaq 0x58(%rsp), %rdi
callq 0x22f0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/kthread.c
// Function: ktp_worker
static void *ktp_worker(void *data)
{
	ktp_worker_t *w = (ktp_worker_t*)data;
	ktp_t *p = w->pl;
	while (w->step < p->n_steps) {
		// test whether we can kick off the job with this worker
		pthread_mutex_lock(&p->mutex);
		for (;;) {
			int i;
			// test whether another worker is doing the same step
			for (i = 0; i < p->n_workers; ++i) {
				if (w == &p->workers[i]) continue; // ignore itself
				if (p->workers[i].step <= w->step && p->workers[i].index < w->index)
					break;
			}
			if (i == p->n_workers) break; // no workers with smaller indices are doing w->step or the previous steps
			pthread_cond_wait(&p->cv, &p->mutex);
		}
		pthread_mutex_unlock(&p->mutex);

		// working on w->step
		w->data = p->func(p->shared, w->step, w->step? w->data : 0); // for the first step, input is NULL

		// update step and let other workers know
		pthread_mutex_lock(&p->mutex);
		w->step = w->step == p->n_steps - 1 || w->data? (w->step + 1) % p->n_steps : p->n_steps;
		if (w->step == 0) w->index = p->index++;
		pthread_cond_broadcast(&p->cv);
		pthread_mutex_unlock(&p->mutex);
	}
	pthread_exit(0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %r12
movl 0x10(%rdi), %eax
cmpl 0x1c(%r12), %eax
jge 0x3871
movq %rdi, %rbx
leaq 0x28(%r12), %r14
leaq 0x50(%r12), %r15
movq %r14, %rdi
callq 0x2380
movl 0x18(%r12), %eax
testl %eax, %eax
jle 0x37dc
movq 0x20(%r12), %rdx
xorl %ecx, %ecx
cmpq %rbx, %rdx
je 0x37cc
movl 0x10(%rdx), %esi
cmpl 0x10(%rbx), %esi
jg 0x37cc
movq 0x8(%rdx), %rsi
cmpq 0x8(%rbx), %rsi
jl 0x37de
incq %rcx
addq $0x20, %rdx
cmpq %rcx, %rax
jne 0x37b5
movl %eax, %ecx
jmp 0x37de
xorl %ecx, %ecx
cmpl %eax, %ecx
je 0x37ef
movq %r15, %rdi
movq %r14, %rsi
callq 0x2100
jmp 0x37a5
movq %r14, %rdi
callq 0x2260
movq (%r12), %rdi
movq 0x8(%r12), %rax
movl 0x10(%rbx), %esi
testl %esi, %esi
je 0x380d
movq 0x18(%rbx), %rdx
jmp 0x380f
xorl %edx, %edx
callq *%rax
movq %rax, 0x18(%rbx)
movq %r14, %rdi
callq 0x2380
movl 0x10(%rbx), %eax
movl 0x1c(%r12), %ecx
leal -0x1(%rcx), %edx
cmpl %edx, %eax
je 0x3833
cmpq $0x0, 0x18(%rbx)
je 0x383a
incl %eax
cltd
idivl %ecx
movl %edx, %ecx
movl %ecx, 0x10(%rbx)
testl %ecx, %ecx
jne 0x3853
movq 0x10(%r12), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x10(%r12)
movq %rax, 0x8(%rbx)
movq %r15, %rdi
callq 0x2080
movq %r14, %rdi
callq 0x2260
movl 0x10(%rbx), %eax
cmpl 0x1c(%r12), %eax
jl 0x379d
xorl %edi, %edi
callq 0x2270
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/algo.c
// Function: move_segs
static void move_segs(void *km, msseg_v *ret, msseg_aux_v *seg, MG_MSS_TYPE min_sc)
{
    int32_t i;
    for (i = 0; i < seg->n; ++i) {
        msseg_aux_t *p = &seg->a[i];
        if (p->R - p->L >= min_sc) {
            mg_msseg_t *q;
            kv_pushp(mg_msseg_t, km, *ret, &q);
            q->st = p->st, q->en = p->en, q->sc = p->R - p->L;
        }
    }
    seg->n = 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, (%rsp)
cmpq $0x0, (%rdx)
je 0x3bce
movl %ecx, %ebp
movq %rsi, %r14
movl $0xc, %r12d
xorl %r13d, %r13d
movq 0x10(%rbx), %r15
movl (%r15,%r12), %eax
subl -0x4(%r15,%r12), %eax
cmpl %ebp, %eax
jl 0x3bbe
movq 0x8(%r14), %rax
cmpq %rax, (%r14)
jne 0x3b8e
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x8(%r14)
movq 0x10(%r14), %rsi
shlq $0x2, %rcx
leaq (%rcx,%rcx,2), %rdx
movq (%rsp), %rdi
callq 0x32c4
movq %rax, 0x10(%r14)
movq (%r14), %rax
movq 0x10(%r14), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%r14)
leaq (%rax,%rax,2), %rax
movl -0xc(%r15,%r12), %edx
movl %edx, (%rcx,%rax,4)
movl -0x8(%r15,%r12), %edx
movl %edx, 0x4(%rcx,%rax,4)
movl (%r15,%r12), %edx
subl -0x4(%r15,%r12), %edx
movl %edx, 0x8(%rcx,%rax,4)
incq %r13
addq $0x14, %r12
cmpq %r13, (%rbx)
ja 0x3b47
movq $0x0, (%rbx)
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/algo.c
// Function: mg_intv_index
int32_t mg_intv_index(int32_t n, mg_intv_t *a)
{
	int32_t i, last_i, last, k;
	if (n <= 0) return -1;
	radix_sort_mg_intv(a, a + n);
	for (i = 0; i < n; i += 2) last_i = i, last = a[i].far = a[i].en;
	for (k = 1; 1LL<<k <= n; ++k) {
		int64_t x = 1LL<<(k-1), i0 = (x<<1) - 1, step = x<<2;
		for (i = i0; i < n; i += step) {
			int32_t el = a[i - x].far;
			int32_t er = i + x < n? a[i + x].far : last;
			int32_t e = a[i].en;
			e = e > el? e : el;
			e = e > er? e : er;
			a[i].far = e;
		}
		last_i = last_i>>k&1? last_i - x : last_i + x;
		if (last_i < n && a[last_i].far > last)
			last = a[last_i].far;
	}
	return k - 1;
}

// Assembly:
testl %edi, %edi
jle 0x3faa
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movl %edi, %ebp
movl %edi, %r14d
movq %r14, %rsi
shlq $0x4, %rsi
addq %rbx, %rsi
movq %rbx, %rdi
callq 0x3e61
leaq 0x8(%rbx), %rax
xorl %edx, %edx
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl -0x4(%rax), %esi
andl %ecx, %esi
movl %esi, (%rax)
addq $0x2, %rdx
addq $0x20, %rax
cmpq %r14, %rdx
jb 0x3eb8
xorl %eax, %eax
cmpl $0x1, %ebp
je 0x3fa1
addl $-0x2, %edx
movl $0x1, %r8d
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
movq %r8, %rax
leaq -0x1(%r8), %rcx
movl $0x1, %r8d
shlq %cl, %r8
movl $0x2, %r9d
shlq %cl, %r9
decl %r9d
cmpl %ebp, %r9d
jge 0x3f5f
movl $0x4, %r10d
shlq %cl, %r10
movslq %r9d, %r9
leaq (%r8,%r9), %r11
movl %esi, %ecx
cmpq %r14, %r11
jge 0x3f26
shlq $0x4, %r11
movl 0x8(%rbx,%r11), %ecx
movq %r9, %r11
subq %r8, %r11
shlq $0x4, %r11
movl 0x8(%rbx,%r11), %r11d
movq %r9, %r15
shlq $0x4, %r15
movl 0x4(%rbx,%r15), %r12d
andl %edi, %r12d
cmpl %r11d, %r12d
cmovlel %r11d, %r12d
cmpl %ecx, %r12d
cmovlel %ecx, %r12d
movl %r12d, 0x8(%rbx,%r15)
addl %r10d, %r9d
cmpl %ebp, %r9d
jl 0x3f0f
movq %r8, %rcx
negq %rcx
btl %eax, %edx
cmovaeq %r8, %rcx
movl %edx, %r8d
movq %rcx, %rdx
addq %r8, %rdx
cmpl %ebp, %edx
jge 0x3f89
movslq %edx, %rcx
shlq $0x4, %rcx
movl 0x8(%rbx,%rcx), %ecx
cmpl %esi, %ecx
cmovgl %ecx, %esi
leaq 0x1(%rax), %r8
movl $0x2, %r9d
movl %eax, %ecx
shlq %cl, %r9
cmpq %r14, %r9
jle 0x3ee5
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/algo.c
// Function: mg_wfa_cmp
int32_t mg_wfa_cmp(void *km, int32_t l1, const char *s1, int32_t l2, const char *s2, int32_t max_pen, int32_t *mlen, int32_t *blen)
{
	mwf_opt_t opt;
	mwf_rst_t r;
	int32_t i;
	mwf_opt_init(&opt);
	opt.max_s = max_pen;
	opt.flag |= MWF_F_CIGAR;
	mwf_wfa_exact(km, &opt, l1, s1, l2, s2, &r);
	*mlen = *blen = 0;
	for (i = 0; i < r.n_cigar; ++i) {
		int32_t op = r.cigar[i]&0xf, len = r.cigar[i]>>4;
		*blen += len;
		if (op == 7) *mlen += len;
	}
	kfree(km, r.cigar);
	return r.s < 0? -(l1 + l2) : (l1 + l2) / 2 - r.s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %r9d, %r15d
movq %r8, 0x18(%rsp)
movl %ecx, 0xc(%rsp)
movq %rdx, 0x10(%rsp)
movl %esi, %ebx
movq %rdi, %rbp
movq 0xb8(%rsp), %r12
movq 0xb0(%rsp), %r13
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x1211c
movl %r15d, 0x1c(%r14)
orb $0x1, (%r14)
leaq 0x28(%rsp), %r15
movq %r15, (%rsp)
movq %rbp, 0x20(%rsp)
movq %rbp, %rdi
movl 0xc(%rsp), %ebp
movq %r14, %rsi
movl %ebx, %edx
movq 0x10(%rsp), %rcx
movl %ebp, %r8d
movq 0x18(%rsp), %r9
callq 0x13335
xorl %eax, %eax
movl %eax, (%r12)
movl %eax, (%r13)
movslq 0x4(%r15), %rax
testq %rax, %rax
jle 0x4316
movq 0x38(%rsp), %rcx
xorl %edx, %edx
movl (%rcx,%rdx,4), %esi
movl %esi, %edi
andl $0xf, %edi
shrl $0x4, %esi
addl %esi, (%r12)
cmpl $0x7, %edi
jne 0x430e
addl %esi, (%r13)
incq %rdx
cmpq %rdx, %rax
jne 0x42f6
movq 0x38(%rsp), %rsi
movq 0x20(%rsp), %rdi
callq 0x30f6
movl 0x28(%rsp), %eax
testl %eax, %eax
js 0x433c
addl %ebx, %ebp
movl %ebp, %ebx
shrl $0x1f, %ebx
addl %ebp, %ebx
sarl %ebx
subl %eax, %ebx
jmp 0x4340
addl %ebp, %ebx
negl %ebx
movl %ebx, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-base.c
// Function: gfa_init
gfa_t *gfa_init(void)
{
	gfa_t *g;
	g = (gfa_t*)calloc(1, sizeof(gfa_t));
	g->h_names = h_s2i_init();
	g->h_snames = h_s2i_init();
	return g;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl $0x1, %edi
movl $0x60, %esi
callq 0x21e0
movq %rax, %rbx
xorl %r14d, %r14d
movl $0x1, %esi
movl $0x20, %edx
xorl %edi, %edi
callq 0x3054
movq %r14, 0x18(%rax)
movq %rax, 0x18(%rbx)
movl $0x1, %esi
movl $0x20, %edx
xorl %edi, %edi
callq 0x3054
movq %r14, 0x18(%rax)
movq %rax, 0x30(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-base.c
// Function: gfa_destroy
void gfa_destroy(gfa_t *g)
{
	uint32_t i, j;
	uint64_t k;
	if (g == 0) return;
	h_s2i_destroy((h_s2i_t*)g->h_names);
	for (i = 0; i < g->n_seg; ++i) {
		gfa_seg_t *s = &g->seg[i];
		free(s->name);
		free(s->seq);
		free(s->aux.aux);
		if (s->utg) {
			for (j = 0; j < s->utg->n; ++j)
				free(s->utg->name[j]);
			free(s->utg->name);
			free(s->utg->a);
			free(s->utg);
		}
	}
	for (i = 0; i < g->n_sseq; ++i) free(g->sseq[i].name);
	h_s2i_destroy((h_s2i_t*)g->h_snames);
	if (g->link_aux)
		for (k = 0; k < g->n_arc; ++k)
			free(g->link_aux[k].aux);
	free(g->idx); free(g->seg); free(g->arc); free(g->link_aux); free(g->sseq);
	free(g);
}

// Assembly:
testq %rdi, %rdi
je 0x4b5f
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %r14
testq %r14, %r14
je 0x49fe
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
cmpl $0x0, 0x4(%rbx)
je 0x4a96
xorl %r14d, %r14d
movq 0x10(%rbx), %r15
movq %r14, %r12
shlq $0x6, %r12
movq 0x18(%r15,%r12), %rdi
callq 0x2040
movq 0x20(%r15,%r12), %rdi
callq 0x2040
movq 0x38(%r15,%r12), %rdi
callq 0x2040
cmpq $0x0, 0x28(%r15,%r12)
je 0x4a87
addq %r12, %r15
movq 0x28(%r15), %rax
cmpl $0x0, 0x14(%rax)
je 0x4a68
xorl %r12d, %r12d
movq 0x28(%rax), %rax
movq (%rax,%r12,8), %rdi
callq 0x2040
incq %r12
movq 0x28(%r15), %rax
movl 0x14(%rax), %ecx
cmpq %rcx, %r12
jb 0x4a4c
movq 0x28(%rax), %rdi
callq 0x2040
movq 0x28(%r15), %rax
movq 0x18(%rax), %rdi
callq 0x2040
movq 0x28(%r15), %rdi
callq 0x2040
incq %r14
movl 0x4(%rbx), %eax
cmpq %rax, %r14
jb 0x4a0b
cmpl $0x0, 0x24(%rbx)
je 0x4abe
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x28(%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x2040
incq %r15
movl 0x24(%rbx), %eax
addq $0x18, %r14
cmpq %rax, %r15
jb 0x4aa2
movq 0x30(%rbx), %r14
testq %r14, %r14
je 0x4aee
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
cmpq $0x0, 0x50(%rbx)
je 0x4b1f
cmpq $0x0, 0x40(%rbx)
je 0x4b1f
movl $0x8, %r14d
xorl %r15d, %r15d
movq 0x50(%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x2040
incq %r15
addq $0x10, %r14
cmpq 0x40(%rbx), %r15
jb 0x4b05
movq 0x58(%rbx), %rdi
callq 0x2040
movq 0x10(%rbx), %rdi
callq 0x2040
movq 0x48(%rbx), %rdi
callq 0x2040
movq 0x50(%rbx), %rdi
callq 0x2040
movq 0x28(%rbx), %rdi
callq 0x2040
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/gfa-base.c
// Function: gfa_strndup
char *gfa_strndup(const char *src, size_t n)
{
	char *dst;
	GFA_MALLOC(dst, n + 1);
	strncpy(dst, src, n);
	dst[n] = 0;
	return dst;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1(%rsi), %rdi
callq 0x2280
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2060
movb $0x0, (%r15,%rbx)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-base.c
// Function: gfa_add_seg
int32_t gfa_add_seg(gfa_t *g, const char *name)
{
	khint_t k;
	int absent;
	h_s2i_t *h = (h_s2i_t*)g->h_names;
	k = h_s2i_put(h, name, &absent);
	if (absent) {
		gfa_seg_t *s;
		if (g->n_seg == g->m_seg) {
			uint32_t old_m = g->m_seg;
			g->m_seg = g->m_seg? g->m_seg<<1 : 16;
			g->seg = (gfa_seg_t*)realloc(g->seg, g->m_seg * sizeof(gfa_seg_t));
			memset(&g->seg[old_m], 0, (g->m_seg - old_m) * sizeof(gfa_seg_t));
		}
		s = &g->seg[g->n_seg++];
		kh_key(h, k) = s->name = gfa_strdup(name);
		s->del = s->len = 0;
		s->snid = s->soff = s->rank = -1;
		kh_val(h, k) = g->n_seg - 1;
	}
	return kh_val(h, k);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r13
movq %rdi, %r14
movq 0x18(%rdi), %rbx
leaq 0x14(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rdx
callq 0x4cec
cmpl $0x0, (%r12)
movl %eax, %esi
je 0x4cd1
movq %rsi, 0x8(%rsp)
movl (%r14), %r15d
cmpl %r15d, 0x4(%r14)
jne 0x4c42
leal (%r15,%r15), %eax
testq %r15, %r15
movl $0x10, %esi
cmovnel %eax, %esi
movl %esi, (%r14)
movq 0x10(%r14), %rdi
shlq $0x6, %rsi
callq 0x22b0
movq %rax, 0x10(%r14)
movq %r15, %rdi
shlq $0x6, %rdi
addq %rax, %rdi
movl (%r14), %edx
subl %r15d, %edx
shlq $0x6, %rdx
xorl %esi, %esi
callq 0x2180
movq 0x10(%r14), %rbp
movl 0x4(%r14), %r15d
leal 0x1(%r15), %eax
movl %eax, 0x4(%r14)
shlq $0x6, %r15
movq %r13, %rdi
callq 0x2110
incl %eax
movslq %eax, %r12
movq %r12, %rdi
callq 0x2280
movq %r13, %rsi
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rdx
callq 0x2230
movq %r13, 0x18(%rbp,%r15)
movq 0x10(%rbx), %rax
movq 0x8(%rsp), %rsi
leaq (,%rsi,4), %rcx
leaq (%rcx,%rcx,2), %rcx
movq %r13, (%rax,%rcx)
movl $0x0, (%rbp,%r15)
movzwl 0x6(%rbp,%r15), %eax
shll $0x10, %eax
movl %eax, 0x4(%rbp,%r15)
movl $0xffffffff, 0x10(%rbp,%r15) # imm = 0xFFFFFFFF
movq $-0x1, 0x8(%rbp,%r15)
movl 0x4(%r14), %eax
decl %eax
movq 0x10(%rbx), %rdx
movl %eax, 0x8(%rdx,%rcx)
movq 0x10(%rbx), %rax
leaq (%rsi,%rsi,2), %rcx
movl 0x8(%rax,%rcx,4), %eax
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-base.c
// Function: gfa_sseq_add
int32_t gfa_sseq_add(gfa_t *g, const char *sname)
{
	h_s2i_t *h = (h_s2i_t*)g->h_snames;
	khint_t k;
	int absent;
	k = h_s2i_put(h, sname, &absent);
	if (absent) {
		gfa_sseq_t *ss;
		if (g->n_sseq == g->m_sseq) GFA_EXPAND(g->sseq, g->m_sseq);
		ss = &g->sseq[g->n_sseq++];
		kh_val(h, k) = g->n_sseq - 1;
		kh_key(h, k) = ss->name = gfa_strdup(sname);
		ss->min = -1, ss->max = -1, ss->rank = -1;
	}
	return kh_val(h, k);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %r15
movq 0x30(%rdi), %rbx
leaq 0x14(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rdx
callq 0x4cec
cmpl $0x0, (%r12)
movl %eax, %r12d
je 0x5153
movl 0x20(%r15), %eax
cmpl %eax, 0x24(%r15)
jne 0x50d5
movl %eax, %ecx
shrl %ecx
addl %eax, %ecx
testl %eax, %eax
movl $0x10, %eax
cmovnel %ecx, %eax
movl %eax, 0x20(%r15)
movq 0x28(%r15), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x22b0
movq %rax, 0x28(%r15)
movq 0x28(%r15), %rbp
movl 0x24(%r15), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x24(%r15)
leaq (%rax,%rax,2), %r13
movq 0x10(%rbx), %rcx
leaq (,%r12,4), %rdx
leaq (%rdx,%rdx,2), %rdx
movq %rdx, (%rsp)
movl %eax, 0x8(%rcx,%rdx)
movq %r14, %rdi
callq 0x2110
incl %eax
movslq %eax, %r15
movq %r15, %rdi
callq 0x2280
movq %r12, 0x8(%rsp)
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2230
movq %r12, (%rbp,%r13,8)
movq 0x10(%rbx), %rax
movq (%rsp), %rcx
movq %r12, (%rax,%rcx)
movq 0x8(%rsp), %r12
movq $-0x1, 0x8(%rbp,%r13,8)
movl $0xffffffff, 0x10(%rbp,%r13,8) # imm = 0xFFFFFFFF
movq 0x10(%rbx), %rax
leaq (%r12,%r12,2), %rcx
movl 0x8(%rax,%rcx,4), %eax
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-base.c
// Function: gfa_sseq_get
int32_t gfa_sseq_get(const gfa_t *g, const char *sname)
{
	h_s2i_t *h = (h_s2i_t*)g->h_snames;
	khint_t k;
	k = h_s2i_get(h, sname);
	return k == kh_end(h)? -1 : kh_val(h, k);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq 0x30(%rdi), %r9
movq 0x10(%r9), %r14
xorl %esi, %esi
movl $0x0, %edx
testq %r14, %r14
je 0x5232
movl (%r9), %ecx
movl $0x1, %r8d
shll %cl, %r8d
movsbl (%rbx), %eax
testl %eax, %eax
je 0x51cc
movb 0x1(%rbx), %dl
testb %dl, %dl
je 0x51ce
leaq 0x2(%rbx), %rsi
movl %eax, %edi
shll $0x5, %edi
subl %eax, %edi
movsbl %dl, %eax
addl %edi, %eax
movb (%rsi), %dl
incq %rsi
testb %dl, %dl
jne 0x51b5
jmp 0x51ce
xorl %eax, %eax
imull $0x9e3779b9, %eax, %r12d # imm = 0x9E3779B9
negb %cl
shrl %cl, %r12d
movq %r8, 0x10(%rsp)
leal -0x1(%r8), %ebp
movq %r9, 0x8(%rsp)
movq 0x8(%r9), %r15
movl %r12d, %r13d
movl %r13d, %eax
shrl $0x5, %eax
movl (%r15,%rax,4), %eax
btl %r13d, %eax
jae 0x5221
movl %r13d, %eax
leaq (%rax,%rax,2), %rax
movq (%r14,%rax,4), %rdi
movq %rbx, %rsi
callq 0x21f0
testl %eax, %eax
je 0x5228
incl %r13d
andl %ebp, %r13d
cmpl %r12d, %r13d
jne 0x51ef
movq 0x10(%rsp), %rdx
jmp 0x522b
movl %r13d, %edx
xorl %esi, %esi
movq 0x8(%rsp), %r9
testq %r14, %r14
je 0x5241
movb (%r9), %cl
movl $0x1, %esi
shll %cl, %esi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %esi, %edx
je 0x5255
movl %edx, %eax
leaq (%rax,%rax,2), %rax
movl 0x8(%r14,%rax,4), %eax
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-base.c
// Function: gfa_sseq_update
void gfa_sseq_update(gfa_t *g, const gfa_seg_t *s)
{
	gfa_sseq_t *ps;
	if (s->snid < 0 || s->snid >= g->n_sseq) return;
	ps = &g->sseq[s->snid];
	if (ps->min < 0 || s->soff < ps->min) ps->min = s->soff;
	if (ps->max < 0 || s->soff + s->len > ps->max) ps->max = s->soff + s->len;
	if (ps->rank < 0) ps->rank = s->rank;
	else if (ps->rank != s->rank) {
		if (gfa_verbose >= 2)
			fprintf(stderr, "[W] stable sequence '%s' associated with different ranks on segment '%s': %d != %d\n", ps->name, s->name, ps->rank, s->rank);
	}
}

// Assembly:
movslq 0x8(%rsi), %rax
testq %rax, %rax
js 0x52c3
cmpl 0x24(%rdi), %eax
jae 0x52c3
movq 0x28(%rdi), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rax
movl 0x8(%rax), %ecx
testl %ecx, %ecx
js 0x528a
cmpl %ecx, 0xc(%rsi)
jge 0x5290
movl 0xc(%rsi), %ecx
movl %ecx, 0x8(%rax)
movl 0xc(%rax), %ecx
testl %ecx, %ecx
js 0x52a0
movl (%rsi), %edx
addl 0xc(%rsi), %edx
cmpl %ecx, %edx
jle 0x52a8
movl (%rsi), %ecx
addl 0xc(%rsi), %ecx
movl %ecx, 0xc(%rax)
movl 0x10(%rax), %r8d
movl 0x10(%rsi), %r9d
testl %r8d, %r8d
js 0x52c4
cmpl %r9d, %r8d
je 0x52c3
cmpl $0x2, 0x2cf2f(%rip)     # 0x321f0
jge 0x52c9
retq
movl %r9d, 0x10(%rax)
retq
movq 0x2cd28(%rip), %rcx     # 0x31ff8
movq (%rcx), %rdi
movq (%rax), %rdx
movq 0x18(%rsi), %rcx
leaq 0x22f84(%rip), %rsi     # 0x28265
xorl %eax, %eax
jmp 0x2210
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-base.c
// Function: gfa_name2id
int32_t gfa_name2id(const gfa_t *g, const char *name)
{
	h_s2i_t *h = (h_s2i_t*)g->h_names;
	khint_t k;
	k = h_s2i_get(h, name);
	return k == kh_end(h)? -1 : kh_val(h, k);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq 0x18(%rdi), %r9
movq 0x10(%r9), %r14
xorl %esi, %esi
movl $0x0, %edx
testq %r14, %r14
je 0x53ac
movl (%r9), %ecx
movl $0x1, %r8d
shll %cl, %r8d
movsbl (%rbx), %eax
testl %eax, %eax
je 0x5346
movb 0x1(%rbx), %dl
testb %dl, %dl
je 0x5348
leaq 0x2(%rbx), %rsi
movl %eax, %edi
shll $0x5, %edi
subl %eax, %edi
movsbl %dl, %eax
addl %edi, %eax
movb (%rsi), %dl
incq %rsi
testb %dl, %dl
jne 0x532f
jmp 0x5348
xorl %eax, %eax
imull $0x9e3779b9, %eax, %r12d # imm = 0x9E3779B9
negb %cl
shrl %cl, %r12d
movq %r8, 0x10(%rsp)
leal -0x1(%r8), %ebp
movq %r9, 0x8(%rsp)
movq 0x8(%r9), %r15
movl %r12d, %r13d
movl %r13d, %eax
shrl $0x5, %eax
movl (%r15,%rax,4), %eax
btl %r13d, %eax
jae 0x539b
movl %r13d, %eax
leaq (%rax,%rax,2), %rax
movq (%r14,%rax,4), %rdi
movq %rbx, %rsi
callq 0x21f0
testl %eax, %eax
je 0x53a2
incl %r13d
andl %ebp, %r13d
cmpl %r12d, %r13d
jne 0x5369
movq 0x10(%rsp), %rdx
jmp 0x53a5
movl %r13d, %edx
xorl %esi, %esi
movq 0x8(%rsp), %r9
testq %r14, %r14
je 0x53bb
movb (%r9), %cl
movl $0x1, %esi
shll %cl, %esi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %esi, %edx
je 0x53cf
movl %edx, %eax
leaq (%rax,%rax,2), %rax
movl 0x8(%r14,%rax,4), %eax
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-base.c
// Function: gfa_add_arc1
gfa_arc_t *gfa_add_arc1(gfa_t *g, uint32_t v, uint32_t w, int32_t ov, int32_t ow, int64_t link_id, int comp)
{
	gfa_arc_t *a;
	if (g->m_arc == g->n_arc) {
		uint64_t old_m = g->m_arc;
		g->m_arc = g->m_arc? g->m_arc<<1 : 16;
		g->arc = (gfa_arc_t*)realloc(g->arc, g->m_arc * sizeof(gfa_arc_t));
		memset(&g->arc[old_m], 0, (g->m_arc - old_m) * sizeof(gfa_arc_t));
		g->link_aux = (gfa_aux_t*)realloc(g->link_aux, g->m_arc * sizeof(gfa_aux_t));
		memset(&g->link_aux[old_m], 0, (g->m_arc - old_m) * sizeof(gfa_aux_t));
	}
	a = &g->arc[g->n_arc++];
	a->v_lv = (uint64_t)v << 32;
	a->w = w, a->ov = ov, a->ow = ow, a->rank = -1;
	a->link_id = link_id >= 0? link_id : g->n_arc - 1;
	if (link_id >= 0) a->rank = g->arc[link_id].rank; // TODO: this is not always correct!
	a->del = a->strong = 0;
	a->comp = comp;
	return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movl %edx, %r12d
movl %esi, %r13d
movq %rdi, %r14
movq 0x38(%rdi), %r15
cmpq 0x40(%rdi), %r15
jne 0x5487
leaq (%r15,%r15), %rax
testq %r15, %r15
movl $0x10, %esi
cmovneq %rax, %rsi
movq %rsi, 0x38(%r14)
movq 0x48(%r14), %rdi
shlq $0x5, %rsi
movl %r8d, 0x4(%rsp)
movl %ecx, (%rsp)
callq 0x22b0
movq %rax, 0x48(%r14)
movq %r15, %rdi
shlq $0x5, %rdi
addq %rax, %rdi
movq 0x38(%r14), %rbp
movq %rbp, %rdx
subq %r15, %rdx
shlq $0x5, %rdx
xorl %esi, %esi
callq 0x2180
movq 0x50(%r14), %rdi
shlq $0x4, %rbp
movq %rbp, %rsi
callq 0x22b0
movq %rax, 0x50(%r14)
movq %r15, %rdi
shlq $0x4, %rdi
addq %rax, %rdi
movq 0x38(%r14), %rdx
subq %r15, %rdx
shlq $0x4, %rdx
xorl %esi, %esi
callq 0x2180
movl (%rsp), %ecx
movl 0x4(%rsp), %r8d
movl 0x40(%rsp), %r11d
movq 0x40(%r14), %rsi
movq 0x48(%r14), %rdi
leaq 0x1(%rsi), %rax
movq %rax, 0x40(%r14)
movq %rsi, %r10
shlq $0x5, %r10
leaq (%rdi,%r10), %rax
shlq $0x20, %r13
testq %rbx, %rbx
cmovnsq %rbx, %rsi
movabsq $0x1fffffffffffffff, %rdx # imm = 0x1FFFFFFFFFFFFFFF
andq %rdx, %rsi
movabsq $-0x2000000000000000, %r9 # imm = 0xE000000000000000
andq 0x18(%rdi,%r10), %r9
orq %rsi, %r9
movq %r13, (%rdi,%r10)
movl %r12d, 0x8(%rdi,%r10)
movl %ecx, 0x10(%rdi,%r10)
movl %r8d, 0x14(%rdi,%r10)
movl $0xffffffff, 0xc(%rdi,%r10) # imm = 0xFFFFFFFF
movq %r9, 0x18(%rdi,%r10)
testq %rbx, %rbx
js 0x5506
movq 0x48(%r14), %rsi
shlq $0x5, %rbx
movl 0xc(%rsi,%rbx), %esi
movl %esi, 0xc(%rax)
andq 0x18(%rax), %rdx
shlq $0x3f, %r11
orq %r11, %rdx
movq %rdx, 0x18(%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-base.c
// Function: gfa_arc_is_sorted
int gfa_arc_is_sorted(const gfa_t *g)
{
	uint64_t e;
	for (e = 1; e < g->n_arc; ++e)
		if (g->arc[e-1].v_lv > g->arc[e].v_lv)
			break;
	return (e == g->n_arc);
}

// Assembly:
movq 0x40(%rdi), %rcx
movl $0x1, %edx
cmpq $0x2, %rcx
jb 0x5553
movq 0x48(%rdi), %rax
addq $0x20, %rax
movq -0x20(%rax), %rsi
cmpq (%rax), %rsi
ja 0x5553
incq %rdx
addq $0x20, %rax
cmpq %rdx, %rcx
jne 0x553b
movq %rcx, %rdx
xorl %eax, %eax
cmpq %rcx, %rdx
sete %al
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-base.c
// Function: gfa_arc_index_core
uint64_t *gfa_arc_index_core(size_t max_seq, size_t n, const gfa_arc_t *a)
{
	size_t i, last;
	uint64_t *idx;
	idx = (uint64_t*)calloc(max_seq * 2, 8);
	for (i = 1, last = 0; i <= n; ++i)
		if (i == n || gfa_arc_head(a[i-1]) != gfa_arc_head(a[i]))
			idx[gfa_arc_head(a[i-1])] = (uint64_t)last<<32 | (i - last), last = i;
	return idx;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
addq %rdi, %rdi
movl $0x8, %esi
callq 0x21e0
testq %r14, %r14
je 0x55d9
leaq 0x1(%r14), %rdx
cmpq $0x3, %rdx
movl $0x2, %ecx
cmovaeq %rdx, %rcx
movl $0x1, %edx
xorl %esi, %esi
cmpq %rdx, %r14
je 0x55b6
movq 0x20(%rbx), %rdi
xorq (%rbx), %rdi
shrq $0x20, %rdi
je 0x55cd
movq %rdx, %rdi
subq %rsi, %rdi
shlq $0x20, %rsi
orq %rdi, %rsi
movl 0x4(%rbx), %edi
movq %rsi, (%rax,%rdi,8)
movq %rdx, %rsi
incq %rdx
addq $0x20, %rbx
cmpq %rdx, %rcx
jne 0x55a4
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-base.c
// Function: gfa_fix_no_seg
uint32_t gfa_fix_no_seg(gfa_t *g)
{
	uint32_t i, n_err = 0;
	for (i = 0; i < g->n_seg; ++i) {
		gfa_seg_t *s = &g->seg[i];
		if (s->len == 0) {
			++n_err, s->del = 1;
			if (gfa_verbose >= 2)
				fprintf(stderr, "[W] segment '%s' is used on an L-line but not defined on an S-line\n", s->name);
		}
	}
	return n_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpl $0x0, 0x4(%rdi)
je 0x565a
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
xorl %ebp, %ebp
movq 0x10(%rbx), %rdi
cmpl $0x0, (%rdi,%r14)
jne 0x563f
incl %ebp
movw $0x1, 0x4(%rdi,%r14)
cmpl $0x2, 0x2cbb3(%rip)     # 0x321f0
jge 0x5650
incq %r15
movl 0x4(%rbx), %eax
addq $0x40, %r14
cmpq %rax, %r15
jb 0x5621
jmp 0x565c
addq %r14, %rdi
callq 0x250d
jmp 0x563f
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-base.c
// Function: gfa_fix_arc_len
void gfa_fix_arc_len(gfa_t *g)
{
	uint64_t k;
	for (k = 0; k < g->n_arc; ++k) {
		gfa_arc_t *a = &g->arc[k];
		uint32_t v = gfa_arc_head(*a), w = gfa_arc_tail(*a);
		const gfa_seg_t *sv = &g->seg[v>>1];
		if (!sv->del && sv->len < a->ov) {
			if (gfa_verbose >= 2)
				fprintf(stderr, "[W] overlap length longer than segment length for '%s': %d > %d\n", sv->name, a->ov, sv->len);
			a->ov = sv->len;
		}
		if (sv->del || g->seg[w>>1].del) {
			a->del = 1;
		} else {
			a->v_lv |= sv->len - a->ov;
		}
	}
}

// Assembly:
cmpq $0x0, 0x40(%rdi)
je 0x576c
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x2c96f(%rip), %rdx     # 0x31ff8
movabsq $0x4000000000000000, %rsi # imm = 0x4000000000000000
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x10(%rbx), %rax
movq 0x48(%rbx), %r15
movq (%r15,%r13), %rcx
movl 0x8(%r15,%r13), %r14d
shrq $0x1b, %rcx
andq $-0x40, %rcx
leaq (%rax,%rcx), %r12
cmpw $0x0, 0x4(%rax,%rcx)
jne 0x56dd
movl (%r12), %r8d
movl 0x10(%r15,%r13), %ecx
cmpl %ecx, %r8d
jge 0x56dd
cmpl $0x2, 0x2cb1e(%rip)     # 0x321f0
jge 0x5732
movl (%r12), %eax
movl %eax, 0x10(%r15,%r13)
cmpw $0x0, 0x4(%r12)
jne 0x56fa
movq 0x10(%rbx), %rax
shrl %r14d
shlq $0x6, %r14
cmpw $0x0, 0x4(%rax,%r14)
je 0x5721
movq %rbp, %rax
shlq $0x5, %rax
addq %rax, %r15
addq $0x18, %r15
movq %rsi, %rax
orq %rax, (%r15)
incq %rbp
addq $0x20, %r13
cmpq 0x40(%rbx), %rbp
jb 0x5698
jmp 0x575e
movslq (%r12), %rax
movslq 0x10(%r15,%r13), %rcx
addq %r13, %r15
subq %rcx, %rax
jmp 0x570b
movq (%rdx), %rdi
movq 0x18(%r12), %rdx
leaq 0x22bbc(%rip), %rsi     # 0x282fd
xorl %eax, %eax
callq 0x2210
movabsq $0x4000000000000000, %rsi # imm = 0x4000000000000000
movq 0x2c89f(%rip), %rdx     # 0x31ff8
jmp 0x56d4
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-base.c
// Function: gfa_arc_rm
void gfa_arc_rm(gfa_t *g)
{
	uint32_t e, n;
	for (e = n = 0; e < g->n_arc; ++e) {
		uint32_t u = g->arc[e].v_lv>>32, v = g->arc[e].w;
		if (!g->arc[e].del && !g->seg[u>>1].del && !g->seg[v>>1].del)
			g->arc[n++] = g->arc[e];
		else {
			gfa_aux_t *aux = g->arc[e].link_id < g->n_arc? &g->link_aux[g->arc[e].link_id] : 0;
			if (aux) {
				free(aux->aux);
				aux->aux = 0, aux->l_aux = aux->m_aux = 0;
			}
		}
	}
	if (n < g->n_arc) { // arc index is out of sync
		if (g->idx) free(g->idx);
		g->idx = 0;
	}
	g->n_arc = n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x40(%rdi), %rax
xorl %r14d, %r14d
testq %rax, %rax
je 0x5c60
movl $0x1, %ebp
movabsq $0x1fffffffffffffff, %r15 # imm = 0x1FFFFFFFFFFFFFFF
xorl %ecx, %ecx
movq 0x48(%rbx), %rdx
shlq $0x5, %rcx
testb $0x40, 0x1f(%rdx,%rcx)
jne 0x5c01
leaq (%rdx,%rcx), %rsi
movq (%rsi), %r8
movq 0x10(%rbx), %rdi
shrq $0x1b, %r8
andq $-0x40, %r8
cmpw $0x0, 0x4(%rdi,%r8)
jne 0x5c01
movl 0x8(%rdx,%rcx), %r8d
shrl %r8d
shlq $0x6, %r8
cmpw $0x0, 0x4(%rdi,%r8)
je 0x5c41
movq 0x18(%rdx,%rcx), %r12
andq %r15, %r12
cmpq %rax, %r12
jae 0x5c18
shlq $0x4, %r12
addq 0x50(%rbx), %r12
jmp 0x5c1b
xorl %r12d, %r12d
testq %r12, %r12
je 0x5c32
movq 0x8(%r12), %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
movl %ebp, %ecx
movq 0x40(%rbx), %rax
incl %ebp
cmpq %rcx, %rax
ja 0x5bc1
jmp 0x5c5d
movl %r14d, %eax
incl %r14d
shlq $0x5, %rax
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movups %xmm1, 0x10(%rdx,%rax)
movups %xmm0, (%rdx,%rax)
jmp 0x5c32
movl %r14d, %r14d
cmpq %r14, %rax
jbe 0x5c7b
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0x5c73
callq 0x2040
movq $0x0, 0x58(%rbx)
movq %r14, 0x40(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-base.c
// Function: gfa_cleanup
void gfa_cleanup(gfa_t *g)
{
	gfa_arc_rm(g);
	if (!gfa_arc_is_sorted(g)) {
		gfa_arc_sort(g);
		if (g->idx) free(g->idx);
		g->idx = 0;
	}
	if (g->idx == 0) gfa_arc_index(g);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x5b95
movq 0x40(%rbx), %rsi
movl $0x1, %eax
cmpq $0x2, %rsi
jb 0x5cc0
movq 0x48(%rbx), %rcx
addq $0x20, %rcx
movq -0x20(%rcx), %rdx
cmpq (%rcx), %rdx
ja 0x5cc0
incq %rax
addq $0x20, %rcx
cmpq %rax, %rsi
jne 0x5ca8
movq %rsi, %rax
cmpq %rsi, %rax
je 0x5ceb
movq 0x48(%rbx), %rdi
shlq $0x5, %rsi
addq %rdi, %rsi
callq 0x46b1
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0x5ce3
callq 0x2040
movq $0x0, 0x58(%rbx)
cmpq $0x0, 0x58(%rbx)
je 0x5cf4
popq %rbx
retq
movq %rbx, %rdi
popq %rbx
jmp 0x55e1
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-base.c
// Function: gfa_check_multi
int32_t gfa_check_multi(const gfa_t *g)
{
	uint32_t v, n_vtx = gfa_n_vtx(g);
	int32_t max_nv = -1, n_multi = 0;
	uint64_t *buf; // actually, uint32_t is enough
	for (v = 0; v < n_vtx; ++v) {
		int32_t nv = gfa_arc_n(g, v);
		max_nv = max_nv > nv? max_nv : nv;
	}
	if (max_nv == 1 || max_nv < 0) return 0;
	GFA_MALLOC(buf, max_nv);
	for (v = 0; v < n_vtx; ++v) {
		int32_t i, s, nv = gfa_arc_n(g, v);
		const gfa_arc_t *av = gfa_arc_a(g, v);
		for (i = 0; i < nv; ++i) buf[i] = av[i].w;
		radix_sort_gfa64(buf, buf + nv);
		for (s = 0, i = 1; i <= nv; ++i)
			if (i == nv || buf[i] != buf[s])
				n_multi += i - s - 1, s = i;
	}
	free(buf);
	return n_multi;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x4(%rdi), %r15d
addl %r15d, %r15d
je 0x5d34
movq 0x58(%rbx), %rcx
movl %r15d, %edx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %esi, %esi
movl (%rcx,%rsi,8), %edi
cmpl %edi, %eax
cmovlel %edi, %eax
incq %rsi
cmpq %rsi, %rdx
jne 0x5d22
jmp 0x5d39
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x1, %eax
sete %cl
testl %eax, %eax
sets %dl
xorl %ebp, %ebp
orb %cl, %dl
jne 0x5e0f
movl %eax, %edi
shlq $0x3, %rdi
callq 0x2280
movq %rax, %r14
testl %r15d, %r15d
je 0x5e05
movl %r15d, %r15d
xorl %r12d, %r12d
xorl %ebp, %ebp
movq 0x58(%rbx), %rax
movq (%rax,%r12,8), %r13
testl %r13d, %r13d
jle 0x5dac
movq 0x48(%rbx), %rcx
movq %r13, %rdx
shrq $0x20, %rdx
movl %r13d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shlq $0x5, %rdx
addq %rdx, %rcx
addq $0x8, %rcx
xorl %edx, %edx
movl (%rcx), %esi
movq %rsi, (%r14,%rdx,8)
incq %rdx
addq $0x20, %rcx
cmpq %rdx, %rax
jne 0x5d9a
movslq %r13d, %rax
leaq (%r14,%rax,8), %rsi
movq %r14, %rdi
callq 0x48ff
testl %r13d, %r13d
jle 0x5df7
movl %r13d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
incl %r13d
decq %rax
decq %r13
xorl %ecx, %ecx
xorl %edx, %edx
cmpq %rcx, %rax
je 0x5de8
movq 0x8(%r14,%rcx,8), %rsi
movslq %edx, %rdi
cmpq (%r14,%rdi,8), %rsi
je 0x5def
subl %edx, %ebp
addl %ecx, %ebp
leal 0x1(%rcx), %edx
incq %rcx
cmpq %rcx, %r13
jne 0x5dd5
incq %r12
cmpq %r15, %r12
jne 0x5d6d
jmp 0x5e07
xorl %ebp, %ebp
movq %r14, %rdi
callq 0x2040
movl %ebp, %eax
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-base.c
// Function: gfa_finalize
void gfa_finalize(gfa_t *g)
{
	gfa_fix_no_seg(g);
	gfa_arc_sort(g);
	gfa_arc_index(g);
	gfa_fix_semi_arc(g);
	gfa_fix_symm_add(g);
	gfa_fix_arc_len(g);
	gfa_cleanup(g);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x5609
movq 0x40(%rbx), %rsi
movq 0x48(%rbx), %rdi
shlq $0x5, %rsi
addq %rdi, %rsi
callq 0x46b1
movq %rbx, %rdi
callq 0x55e1
movq %rbx, %rdi
callq 0x576d
movq %rbx, %rdi
callq 0x59b1
movq %rbx, %rdi
callq 0x5669
movq %rbx, %rdi
popq %rbx
jmp 0x5c88
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-base.c
// Function: gfa_aux_get
uint8_t *gfa_aux_get(int l_data, const uint8_t *data, const char tag[2])
{
	const uint8_t *s = data;
	int y = tag[0]<<8 | tag[1];
	while (s < data + l_data) {
		int x = (int)s[0]<<8 | s[1];
		s += 2;
		if (x == y) return (uint8_t*)s;
		__skip_tag(s);
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movsbl (%rdx), %eax
shll $0x8, %eax
movsbl 0x1(%rdx), %ecx
orl %eax, %ecx
movslq %edi, %rdx
addq %rsi, %rdx
movabsq $0x120000001, %rdi      # imm = 0x120000001
movabsq $0x400000005, %r8       # imm = 0x400000005
cmpq %rdx, %rsi
jae 0x62bd
movzwl (%rsi), %r9d
rolw $0x8, %r9w
movzwl %r9w, %r9d
cmpl %ecx, %r9d
jne 0x61ed
addq $0x2, %rsi
movq %rsi, %r10
movq %rsi, %rax
jmp 0x6284
movzbl 0x2(%rsi), %r11d
leaq 0x3(%rsi), %r10
movl $0x1, %ebx
cmpl $0x42, %r11d
jle 0x621f
cmpl $0x43, %r11d
je 0x6281
cmpl $0x63, %r11d
je 0x6281
cmpl $0x5a, %r11d
jne 0x6258
cmpb $0x0, (%r10)
leaq 0x1(%r10), %r10
jne 0x6213
jmp 0x6284
cmpl $0x41, %r11d
je 0x6281
cmpl $0x42, %r11d
jne 0x6258
movzbl (%r10), %r11d
leal -0x41(%r11), %r14d
cmpl $0x22, %r14d
ja 0x6292
movl $0x1, %ebx
btq %r14, %r8
jae 0x6292
movslq 0x4(%rsi), %rsi
movl %ebx, %r11d
imulq %rsi, %r11
addq %r11, %r10
addq $0x5, %r10
jmp 0x6284
movl %r11d, %esi
andb $-0x21, %sil
movl $0x2, %ebx
cmpb $0x53, %sil
je 0x6281
addl $-0x49, %r11d
cmpl $0x20, %r11d
ja 0x627f
movl $0x4, %ebx
btq %r11, %rdi
jb 0x6281
xorl %ebx, %ebx
addq %rbx, %r10
movq %r10, %rsi
cmpl %ecx, %r9d
jne 0x61c3
jmp 0x62bf
movl %r11d, %ebp
andb $-0x21, %bpl
movl $0x2, %ebx
cmpb $0x53, %bpl
je 0x6244
addl $-0x49, %r11d
cmpl $0x20, %r11d
ja 0x62b9
movl $0x4, %ebx
btq %r11, %rdi
jb 0x6244
xorl %ebx, %ebx
jmp 0x6244
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-base.c
// Function: gfa_aux_del
int gfa_aux_del(int l_data, uint8_t *data, uint8_t *s)
{
	uint8_t *p;
	p = s - 2;
	__skip_tag(s);
	memmove(p, s, l_data - (s - data));
	return l_data - (s - p);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %rdx
movzbl (%rbx), %ecx
leaq 0x1(%rbx), %rax
movl $0x1, %esi
cmpl $0x42, %ecx
jle 0x6305
cmpl $0x43, %ecx
je 0x637a
cmpl $0x63, %ecx
je 0x637a
cmpl $0x5a, %ecx
jne 0x6349
leaq 0x1(%rax), %r14
cmpb $0x0, (%rax)
movq %r14, %rax
jne 0x62f7
jmp 0x6380
cmpl $0x41, %ecx
je 0x637a
cmpl $0x42, %ecx
jne 0x6349
movzbl (%rax), %ecx
leal -0x41(%rcx), %r8d
cmpl $0x22, %r8d
ja 0x63a7
movl $0x1, %esi
movabsq $0x400000005, %r9       # imm = 0x400000005
btq %r8, %r9
jae 0x63a7
movslq 0x2(%rbx), %rcx
movl %esi, %esi
imulq %rcx, %rsi
leaq (%rax,%rsi), %r14
addq $0x5, %r14
jmp 0x6380
movl %ecx, %r8d
andb $-0x21, %r8b
movl $0x2, %esi
cmpb $0x53, %r8b
je 0x637a
addl $-0x49, %ecx
cmpl $0x20, %ecx
ja 0x6378
movl $0x4, %esi
movabsq $0x120000001, %r8       # imm = 0x120000001
btq %rcx, %r8
jb 0x637a
xorl %esi, %esi
addq %rsi, %rax
movq %rax, %r14
addq $-0x2, %rbx
movslq %edi, %r15
addq %r15, %rdx
subq %r14, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x22d0
subl %r14d, %ebx
addl %ebx, %r15d
movl %r15d, %eax
popq %rbx
popq %r14
popq %r15
retq
movl %ecx, %r8d
andb $-0x21, %r8b
movl $0x2, %esi
cmpb $0x53, %r8b
je 0x6335
addl $-0x49, %ecx
cmpl $0x20, %ecx
ja 0x63de
movl $0x4, %esi
movabsq $0x120000001, %r8       # imm = 0x120000001
btq %rcx, %r8
jb 0x6335
xorl %esi, %esi
jmp 0x6335
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-base.c
// Function: gfa_aux_update_f
void gfa_aux_update_f(gfa_aux_t *a, const char tag[2], float x)
{
	uint8_t *p = 0;
	if (a->l_aux > 0)
		p = gfa_aux_get(a->l_aux, a->aux, "cv");
	if (p) {
		memcpy(p + 1, &x, 4);
	} else {
		kstring_t str;
		str.l = a->l_aux, str.m = a->m_aux, str.s = (char*)a->aux;
		ks_resize(&str, str.l + 7);
		kputsn_(tag, 2, &str);
		kputc_('f', &str);
		kputsn_(&x, 4, &str);
		a->l_aux = str.l, a->m_aux = str.m, a->aux = (uint8_t*)str.s;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movss %xmm0, 0x4(%rsp)
movq %rsi, %r15
movq %rdi, %rbx
movl 0x4(%rdi), %r14d
testq %r14, %r14
je 0x641a
movq 0x8(%rbx), %rsi
leaq 0x22012(%rip), %rdx     # 0x28422
movl %r14d, %edi
callq 0x6199
jmp 0x641c
xorl %eax, %eax
testq %rax, %rax
je 0x6431
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x1(%rax)
jmp 0x6586
movl (%rbx), %r12d
movq 0x8(%rbx), %rax
leaq 0x7(%r14), %r13
cmpq %r12, %r13
jbe 0x6484
leaq 0x6(%r14), %rcx
movq %rcx, %rdx
shrq %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x2, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x4, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x8, %rcx
orq %rdx, %rcx
movq %rcx, %r12
shrq $0x10, %r12
orq %rcx, %r12
incq %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x22b0
leaq 0x2(%r14), %rbp
cmpq %r12, %rbp
jbe 0x64d0
leaq 0x1(%r14), %rcx
movq %rcx, %rdx
shrq %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x2, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x4, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x8, %rcx
orq %rdx, %rcx
movq %rcx, %r12
shrq $0x10, %r12
orq %rcx, %r12
incq %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x22b0
movzwl (%r15), %ecx
movw %cx, (%rax,%r14)
leaq 0x3(%r14), %r15
cmpq %r12, %r15
jbe 0x6521
movq %rbp, %rcx
shrq %rcx
orq %rbp, %rcx
movq %rcx, %rdx
shrq $0x2, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x4, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x8, %rdx
orq %rcx, %rdx
movq %rdx, %r12
shrq $0x10, %r12
orq %rdx, %r12
incq %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x22b0
movb $0x66, 0x2(%rax,%r14)
cmpq %r12, %r13
jbe 0x656f
addq $0x6, %r14
movq %r14, %rcx
shrq %rcx
orq %r14, %rcx
movq %rcx, %rdx
shrq $0x2, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x4, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x8, %rdx
orq %rcx, %rdx
movq %rdx, %r12
shrq $0x10, %r12
orq %rdx, %r12
incq %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x22b0
movss 0x4(%rsp), %xmm0
movss %xmm0, (%rax,%r15)
movl %r13d, 0x4(%rbx)
movl %r12d, (%rbx)
movq %rax, 0x8(%rbx)
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-base.c
// Function: gfa_aux_update_cv
void gfa_aux_update_cv(gfa_t *g, const char *tag, const double *cov_seg, const double *cov_link)
{
	int64_t i;
	if (cov_seg)
		for (i = 0; i < g->n_seg; ++i)
			gfa_aux_update_f(&g->seg[i].aux, tag, cov_seg[i]);
	if (cov_link)
		for (i = 0; i < g->n_arc; ++i)
			if (g->arc[i].comp == 0)
				gfa_aux_update_f(&g->link_aux[g->arc[i].link_id], tag, cov_link[i]);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rdx, %rdx
je 0x65e8
cmpl $0x0, 0x4(%r15)
je 0x65e8
movq %rdx, %r12
movl $0x30, %r13d
xorl %ebp, %ebp
movq 0x10(%r15), %rdi
addq %r13, %rdi
xorps %xmm0, %xmm0
cvtsd2ss (%r12,%rbp,8), %xmm0
movq %r14, %rsi
callq 0x63e5
incq %rbp
movl 0x4(%r15), %eax
addq $0x40, %r13
cmpq %rax, %rbp
jb 0x65c0
testq %rbx, %rbx
je 0x6630
cmpq $0x0, 0x40(%r15)
je 0x6630
movl $0x18, %r12d
xorl %r13d, %r13d
movq 0x48(%r15), %rax
movq (%rax,%r12), %rdi
testq %rdi, %rdi
js 0x6623
shlq $0x4, %rdi
addq 0x50(%r15), %rdi
xorps %xmm0, %xmm0
cvtsd2ss (%rbx,%r13,8), %xmm0
movq %r14, %rsi
callq 0x63e5
incq %r13
addq $0x20, %r12
cmpq 0x40(%r15), %r13
jb 0x65fd
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/./kstring.h
// Function: kputw
static inline int kputw(int c, kstring_t *s)
{
	char buf[16];
	int l, x;
	if (c == 0) return kputc('0', s);
	for (l = 0, x = c < 0? -c : c; x > 0; x /= 10) buf[l++] = x%10 + '0';
	if (c < 0) buf[l++] = '-';
	if (s->l + l + 1 >= s->m) {
		s->m = s->l + l + 2;
		kroundup32(s->m);
		s->s = (char*)realloc(s->s, s->m);
	}
	for (x = l - 1; x >= 0; --x) s->s[s->l++] = buf[x];
	s->s[s->l] = 0;
	return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
testl %edi, %edi
je 0x7a67
movl %edi, %eax
negl %eax
cmovsl %edi, %eax
xorl %r14d, %r14d
movl $0xcccccccd, %ecx       # imm = 0xCCCCCCCD
movl %eax, %edx
imulq %rcx, %rdx
shrq $0x23, %rdx
leal (%rdx,%rdx), %esi
leal (%rsi,%rsi,4), %esi
movl %eax, %r8d
subl %esi, %r8d
orb $0x30, %r8b
movb %r8b, (%rsp,%r14)
incq %r14
cmpl $0x9, %eax
movl %edx, %eax
ja 0x79aa
testl %edi, %edi
jns 0x79e0
movl %r14d, %eax
incl %r14d
movb $0x2d, (%rsp,%rax)
movq (%rbx), %rax
movslq %r14d, %rcx
addq %rcx, %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x7a37
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x22b0
movq %rax, 0x10(%rbx)
movl %r14d, %eax
incl %r14d
movq %rsp, %rcx
addq %rcx, %rax
decq %rax
movb (%rax), %cl
movq (%rbx), %rdx
movq 0x10(%rbx), %rsi
leaq 0x1(%rdx), %rdi
movq %rdi, (%rbx)
movb %cl, (%rsi,%rdx)
decl %r14d
decq %rax
cmpl $0x1, %r14d
jg 0x7a46
jmp 0x7aca
movq (%rbx), %rax
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x7ab8
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x22b0
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movb $0x30, (%rcx,%rax)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-aug.c
// Function: rs_insertsort_split
static inline void create_first_arc_semi(gfa_t *g, const gfa_seg_t *seg, uint32_t v, uint32_t w, int32_t rank, uint64_t link_id, int is_comp)
{
	gfa_arc_t *a;
	if (g->n_arc == g->m_arc) GFA_EXPAND(g->arc, g->m_arc);
	a = &g->arc[g->n_arc++];
	a->v_lv = (uint64_t)v<<32 | seg[v>>1].len;
	a->w = w;
	a->rank = rank;
	a->ov = a->ow = 0;
	a->link_id = link_id;
	a->del = 0;
	a->comp = !!is_comp;
}

// Assembly:
leaq 0x8(%rdi), %rcx
cmpq %rsi, %rcx
jae 0x8d35
movq %rdi, %rdx
movq %rcx, %rax
movl 0x8(%rdx), %ecx
cmpl (%rdx), %ecx
jae 0x8d29
movl 0xc(%rdx), %edx
movq %rax, %r8
cmpq %rdi, %rax
jbe 0x8d22
movq %rax, %r9
cmpl -0x8(%r9), %ecx
jae 0x8d1f
leaq -0x8(%r9), %r8
movq -0x8(%r9), %r10
movq %r10, (%r9)
movq %r8, %r9
cmpq %rdi, %r8
ja 0x8d04
jmp 0x8d22
movq %r9, %r8
movl %ecx, (%r8)
movl %edx, 0x4(%r8)
leaq 0x8(%rax), %rcx
movq %rax, %rdx
cmpq %rsi, %rcx
jb 0x8cec
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/gfa-aug.c
// Function: gfa_ins_adj
int gfa_ins_adj(const gfa_t *g, int pen, gfa_ins_t *ins, const char *seq) // min_len is NOT used for now
{
	int32_t l, tot = 0;
	l = gfa_ins_shrink_semi(g, pen, ins->v[0], ins->voff[0], ins->coff[0], ins->v[1], ins->voff[1], ins->coff[1], seq);
	ins->voff[0] += l, ins->coff[0] += l, tot += l;
	l = gfa_ins_shrink_semi(g, pen, ins->v[1], ins->voff[1] - 1, ins->coff[1] - 1, ins->v[0], ins->voff[0] - 1, ins->coff[0] - 1, seq);
	ins->voff[1] -= l, ins->coff[1] -= l, tot += l;
	return tot;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %rax
movq %rcx, 0x20(%rsp)
movq %rdx, %rbx
movl %esi, 0x10(%rsp)
movq %rdi, 0x18(%rsp)
movl 0x8(%rdx), %ebp
movl 0x10(%rdx), %r15d
movl (%rdx), %edx
movl %edx, 0x14(%rsp)
movl 0x4(%rbx), %r9d
movl %r9d, 0xc(%rsp)
movl 0xc(%rbx), %r14d
movl 0x14(%rbx), %r12d
subq $0x8, %rsp
movl %ebp, %ecx
movl %r15d, %r8d
pushq %rax
pushq %r12
pushq %r14
callq 0x9b64
addq $0x20, %rsp
movl %eax, %r13d
leal (%r13,%rbp), %eax
movl %eax, 0x8(%rbx)
leal (%r13,%r15), %eax
movl %eax, 0x10(%rbx)
leal -0x1(%r14), %ecx
leal -0x1(%r12), %r8d
leal -0x1(%r13,%rbp), %eax
leal (%r15,%r13), %r10d
decl %r10d
subq $0x8, %rsp
movq 0x20(%rsp), %rdi
movl 0x18(%rsp), %esi
movl 0x14(%rsp), %edx
movl 0x1c(%rsp), %r9d
pushq 0x28(%rsp)
pushq %r10
pushq %rax
callq 0x9b64
addq $0x20, %rsp
subl %eax, %r14d
movl %r14d, 0xc(%rbx)
subl %eax, %r12d
movl %r12d, 0x14(%rbx)
addl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq