LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/lh3[P]minigraph/kalloc.c
// Function: km_stat
void km_stat(const void *_km, km_stat_t *s)
{
	kmem_t *km = (kmem_t*)_km;
	header_t *p;
	memset(s, 0, sizeof(km_stat_t));
	if (km == NULL || km->loop_head == NULL) return;
	for (p = km->loop_head;; p = p->ptr) {
		s->available += p->size * sizeof(header_t);
		if (p->size != 0) ++s->n_blocks; /* &kmem_t::base is always one of the cores. It is zero-sized. */
		if (p->ptr > p && p + p->size > p->ptr)
			panic("[km_stat] The end of a free block enters another free block.");
		if (p->ptr == km->loop_head) break;
	}
	for (p = km->core_head; p != NULL; p = p->ptr) {
		size_t size = p->size * sizeof(header_t);
		++s->n_cores;
		s->capacity += size;
		s->largest = s->largest > size? s->largest : size;
	}
}

// Assembly:
pushq %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsi)
movups %xmm0, (%rsi)
movq $0x0, 0x20(%rsi)
testq %rdi, %rdi
je 0x3393
movq 0x20(%rdi), %rdx
testq %rdx, %rdx
je 0x3393
leaq 0x8(%rsi), %rax
xorl %r8d, %r8d
xorl %ecx, %ecx
movq %rdx, %r9
movq (%r9), %r10
testq %r10, %r10
je 0x332a
incq %r8
movq %r8, 0x10(%rsi)
shlq $0x4, %r10
addq %r10, %rcx
movq 0x8(%r9), %r11
cmpq %r9, %r11
seta %bl
addq %r9, %r10
cmpq %r11, %r10
seta %r9b
andb %bl, %r9b
cmpb $0x1, %r9b
je 0x3395
movq %r11, %r9
cmpq %rdx, %r11
jne 0x331b
movq %rcx, (%rax)
movq 0x28(%rdi), %rax
testq %rax, %rax
je 0x3393
xorl %ecx, %ecx
xorl %edx, %edx
xorl %edi, %edi
movq %rcx, %r8
movq (%rax), %rcx
movq 0x8(%rax), %rax
shlq $0x4, %rcx
incq %rdi
addq %rcx, %rdx
cmpq %rcx, %r8
cmovaq %r8, %rcx
testq %rax, %rax
jne 0x3368
movq %rdi, 0x18(%rsi)
movq %rdx, (%rsi)
movq %rcx, 0x20(%rsi)
popq %rbx
retq
movq %rcx, %rdi
movq %rax, %rsi
callq 0x2476
// File: /workspace/github_c_makefile_star2_O3/lh3[P]minigraph/kthread.c
// Function: kt_for
void kt_for(int n_threads, void (*func)(void*,long,int), void *data, long n)
{
	if (n_threads > 1) {
		int i;
		kt_for_t t;
		pthread_t *tid;
		t.func = func, t.data = data, t.n_threads = n_threads, t.n = n;
		t.w = (ktf_worker_t*)calloc(n_threads, sizeof(ktf_worker_t));
		tid = (pthread_t*)calloc(n_threads, sizeof(pthread_t));
		for (i = 0; i < n_threads; ++i)
			t.w[i].t = &t, t.w[i].i = i;
		for (i = 0; i < n_threads; ++i) pthread_create(&tid[i], 0, ktf_worker, &t.w[i]);
		for (i = 0; i < n_threads; ++i) pthread_join(tid[i], 0);
		free(tid); free(t.w);
	} else {
		long j;
		for (j = 0; j < n; ++j) func(data, j, 0);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
cmpl $0x1, %edi
jle 0x3475
movq %rsp, %r12
movq %r15, 0x18(%r12)
movq %r14, 0x20(%r12)
movl %edi, (%r12)
movq %rbx, 0x8(%r12)
movl %edi, %ebx
movl $0x10, %esi
movq %rbx, %rdi
callq 0x21e0
movq %rax, %r15
movq %rax, 0x10(%r12)
movl $0x8, %esi
movq %rbx, %rdi
callq 0x21e0
movq %rax, %r14
addq $0x8, %r15
xorl %eax, %eax
movq %r12, -0x8(%r15)
movq %rax, (%r15)
incq %rax
addq $0x10, %r15
cmpq %rax, %rbx
jne 0x3403
movq %rbx, %r13
shlq $0x4, %r13
xorl %ebp, %ebp
leaq 0x79(%rip), %r15        # 0x349f
movq %r14, %r12
movq 0x10(%rsp), %rcx
addq %rbp, %rcx
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x22c0
addq $0x10, %rbp
addq $0x8, %r12
cmpq %rbp, %r13
jne 0x3429
xorl %r15d, %r15d
movq (%r14,%r15,8), %rdi
xorl %esi, %esi
callq 0x2360
incq %r15
cmpq %r15, %rbx
jne 0x344e
movq %r14, %rdi
callq 0x2040
movq 0x10(%rsp), %rdi
callq 0x2040
jmp 0x3490
testq %rbx, %rbx
jle 0x3490
xorl %r12d, %r12d
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq *%r15
incq %r12
cmpq %r12, %rbx
jne 0x347d
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x378c
movq %rdi, %rbx
leaq 0x28(%r12), %r14
leaq 0x50(%r12), %r15
movq %r14, %rdi
callq 0x2380
movslq 0x18(%r12), %rax
testq %rax, %rax
jle 0x36f7
movq 0x20(%r12), %rdx
xorl %ecx, %ecx
cmpq %rbx, %rdx
je 0x36e9
movl 0x10(%rdx), %esi
cmpl 0x10(%rbx), %esi
jg 0x36e9
movq 0x8(%rdx), %rsi
cmpq 0x8(%rbx), %rsi
jl 0x36f9
incq %rcx
addq $0x20, %rdx
cmpq %rcx, %rax
jne 0x36d2
jmp 0x370a
xorl %ecx, %ecx
cmpl %eax, %ecx
je 0x370a
movq %r15, %rdi
movq %r14, %rsi
callq 0x2100
jmp 0x36c1
movq %r14, %rdi
callq 0x2260
movq (%r12), %rdi
movq 0x8(%r12), %rax
movl 0x10(%rbx), %esi
testl %esi, %esi
je 0x3728
movq 0x18(%rbx), %rdx
jmp 0x372a
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 0x374e
cmpq $0x0, 0x18(%rbx)
je 0x3755
incl %eax
cltd
idivl %ecx
movl %edx, %ecx
movl %ecx, 0x10(%rbx)
testl %ecx, %ecx
jne 0x376e
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 0x36b9
xorl %edi, %edi
callq 0x2270
nop
// File: /workspace/github_c_makefile_star2_O3/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)
movq (%rdx), %rax
testq %rax, %rax
je 0x3ac0
movl %ecx, %ebp
movq %rsi, %r14
movl $0xc, %r12d
xorl %r13d, %r13d
movq 0x10(%rbx), %r15
movl (%r15,%r12), %ecx
subl -0x4(%r15,%r12), %ecx
cmpl %ebp, %ecx
jl 0x3ab4
movq (%r14), %rdx
movq 0x10(%r14), %rax
cmpq 0x8(%r14), %rdx
jne 0x3a99
leaq (%rdx,%rdx), %rcx
testq %rdx, %rdx
movl $0x2, %edx
cmoveq %rdx, %rcx
movq %rcx, 0x8(%r14)
shlq $0x2, %rcx
leaq (%rcx,%rcx,2), %rdx
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x31ed
movq %rax, 0x10(%r14)
movq (%r14), %rdx
movl (%r15,%r12), %ecx
subl -0x4(%r15,%r12), %ecx
leaq 0x1(%rdx), %rsi
movq %rsi, (%r14)
leaq (%rdx,%rdx,2), %rdx
movq -0xc(%r15,%r12), %rsi
movq %rsi, (%rax,%rdx,4)
movl %ecx, 0x8(%rax,%rdx,4)
movq (%rbx), %rax
incq %r13
addq $0x14, %r12
cmpq %r13, %rax
ja 0x3a43
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_O3/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 0x3e92
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 0x3d50
leaq 0x8(%rbx), %rax
xorl %esi, %esi
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl -0x4(%rax), %edi
andl %ecx, %edi
movl %edi, (%rax)
addq $0x2, %rsi
addq $0x20, %rax
cmpq %r14, %rsi
jb 0x3da7
xorl %eax, %eax
cmpl $0x1, %ebp
je 0x3e89
addl $-0x2, %esi
movl $0x1, %edx
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
leaq -0x1(%rdx), %rcx
movl $0x1, %r9d
shlq %cl, %r9
movl $0x2, %eax
shlq %cl, %rax
decl %eax
cmpl %ebp, %eax
jge 0x3e46
movl $0x4, %r10d
shlq %cl, %r10
cltq
leaq (%r9,%rax), %r11
movl %edi, %ecx
cmpq %r14, %r11
jge 0x3e0e
shlq $0x4, %r11
movl 0x8(%rbx,%r11), %ecx
movq %rax, %r11
subq %r9, %r11
shlq $0x4, %r11
movl 0x8(%rbx,%r11), %r11d
movq %rax, %r15
shlq $0x4, %r15
movl 0x4(%rbx,%r15), %r12d
andl %r8d, %r12d
cmpl %r11d, %r12d
cmovlel %r11d, %r12d
cmpl %ecx, %r12d
cmovlel %ecx, %r12d
movl %r12d, 0x8(%rbx,%r15)
addl %r10d, %eax
cmpl %ebp, %eax
jl 0x3df8
movl %edx, %eax
movq %r9, %rcx
negq %rcx
btl %edx, %esi
cmovaeq %r9, %rcx
movl %esi, %r9d
movq %rcx, %rsi
addq %r9, %rsi
cmpl %ebp, %esi
jge 0x3e72
movslq %esi, %rcx
shlq $0x4, %rcx
movl 0x8(%rbx,%rcx), %ecx
cmpl %edi, %ecx
cmovgl %ecx, %edi
movl $0x2, %r9d
movl %edx, %ecx
shlq %cl, %r9
incq %rdx
cmpq %r14, %r9
jle 0x3dd4
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x12458
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 0x1351f
xorl %eax, %eax
movl %eax, (%r12)
movl %eax, (%r13)
movslq 0x4(%r15), %rax
movq 0x10(%r15), %rsi
testq %rax, %rax
jle 0x4205
xorl %ecx, %ecx
movl (%rsi,%rcx,4), %edx
movl %edx, %edi
andl $0xf, %edi
shrl $0x4, %edx
addl %edx, (%r12)
cmpl $0x7, %edi
jne 0x41fd
addl %edx, (%r13)
incq %rcx
cmpq %rcx, %rax
jne 0x41e5
movq 0x20(%rsp), %rdi
callq 0x301f
movl 0x28(%rsp), %eax
testl %eax, %eax
js 0x4226
addl %ebx, %ebp
movl %ebp, %ebx
shrl $0x1f, %ebx
addl %ebp, %ebx
sarl %ebx
subl %eax, %ebx
jmp 0x422a
addl %ebp, %ebx
negl %ebx
movl %ebx, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x4a42
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %r14
testq %r14, %r14
je 0x48e3
movq 0x10(%r14), %rsi
movq 0x18(%r14), %r15
movq %r15, %rdi
callq 0x301f
movq 0x8(%r14), %rsi
movq %r15, %rdi
callq 0x301f
movq %r15, %rdi
movq %r14, %rsi
callq 0x301f
cmpl $0x0, 0x4(%rbx)
je 0x4979
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
movq 0x28(%r15,%r12), %rax
testq %rax, %rax
je 0x496a
addq %r12, %r15
cmpl $0x0, 0x14(%rax)
je 0x494b
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 0x492f
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 0x48f0
cmpl $0x0, 0x24(%rbx)
je 0x49a1
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 0x4985
movq 0x30(%rbx), %r14
testq %r14, %r14
je 0x49d1
movq 0x10(%r14), %rsi
movq 0x18(%r14), %r15
movq %r15, %rdi
callq 0x301f
movq 0x8(%r14), %rsi
movq %r15, %rdi
callq 0x301f
movq %r15, %rdi
movq %r14, %rsi
callq 0x301f
cmpq $0x0, 0x50(%rbx)
je 0x4a02
cmpq $0x0, 0x40(%rbx)
je 0x4a02
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 0x49e8
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_O3/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, %r15
movq %rdi, %r14
movq 0x18(%rdi), %rbx
leaq 0x14(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rdx
callq 0x4bdf
cmpl $0x0, (%r12)
je 0x4b30
movl %eax, 0x4(%rsp)
movl 0x4(%r14), %r13d
cmpl (%r14), %r13d
movq %rbx, 0x8(%rsp)
jne 0x4b43
leal (,%r13,2), %eax
testl %r13d, %r13d
movl $0x10, %esi
cmovnel %eax, %esi
movl %esi, (%r14)
movq 0x10(%r14), %rdi
shlq $0x6, %rsi
callq 0x22b0
movq %rax, %r12
movq %rax, 0x10(%r14)
movq %r13, %rdi
shlq $0x6, %rdi
addq %rax, %rdi
movl (%r14), %edx
subl %r13d, %edx
shlq $0x6, %rdx
xorl %esi, %esi
callq 0x2180
movl 0x4(%r14), %r13d
jmp 0x4b47
movq 0x10(%rbx), %rdx
movl %eax, %ecx
leaq (%rcx,%rcx,2), %rcx
movl 0x8(%rdx,%rcx,4), %eax
jmp 0x4bd0
movq 0x10(%r14), %r12
leal 0x1(%r13), %eax
movl %eax, 0x4(%r14)
movl %r13d, %ebx
shlq $0x6, %rbx
movq %r15, %rdi
callq 0x2110
incl %eax
movslq %eax, %r13
movq %r13, %rdi
callq 0x2280
movq %rax, %rbp
movq %rax, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x2230
movq %rbp, 0x18(%r12,%rbx)
movq 0x8(%rsp), %rdx
movq 0x10(%rdx), %rax
movl 0x4(%rsp), %ecx
shlq $0x2, %rcx
leaq (%rcx,%rcx,2), %rcx
movq %rbp, (%rax,%rcx)
movl $0x0, (%r12,%rbx)
movzwl 0x6(%r12,%rbx), %eax
shll $0x10, %eax
movl %eax, 0x4(%r12,%rbx)
movl $0xffffffff, 0x10(%r12,%rbx) # imm = 0xFFFFFFFF
movq $-0x1, 0x8(%r12,%rbx)
movl 0x4(%r14), %eax
decl %eax
movq 0x10(%rdx), %rdx
movl %eax, 0x8(%rdx,%rcx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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, %rbx
movq %rdi, %r12
movq 0x30(%rdi), %r15
leaq 0x14(%rsp), %r14
movq %r15, %rdi
movq %r14, %rdx
callq 0x4bdf
movl %eax, %ecx
cmpl $0x0, (%r14)
je 0x4fef
movl 0x24(%r12), %r14d
cmpl 0x20(%r12), %r14d
jne 0x5000
movl %r14d, %eax
shrl %eax
addl %r14d, %eax
testl %r14d, %r14d
movl %ecx, %ebp
movl $0x10, %ecx
cmovnel %eax, %ecx
movl %ecx, 0x20(%r12)
movq 0x28(%r12), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x22b0
movl %ebp, %ecx
movq %rax, %r13
movq %rax, 0x28(%r12)
movl 0x24(%r12), %r14d
jmp 0x5005
movq 0x10(%r15), %rax
movl %ecx, %ecx
leaq (%rcx,%rcx,2), %rcx
movl 0x8(%rax,%rcx,4), %r14d
jmp 0x5077
movq 0x28(%r12), %r13
leal 0x1(%r14), %eax
movl %eax, 0x24(%r12)
movl %r14d, %eax
leaq (%rax,%rax,2), %rbp
movq 0x10(%r15), %rdx
movq %rdx, (%rsp)
movl %ecx, %eax
leaq (%rax,%rax,2), %rax
movq %rax, 0x8(%rsp)
movl %r14d, 0x8(%rdx,%rax,4)
movq %rbx, %rdi
callq 0x2110
incl %eax
movslq %eax, %r15
movq %r15, %rdi
callq 0x2280
movq %rax, %r12
movq %rax, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2230
movq %r12, (%r13,%rbp,8)
movq 0x8(%rsp), %rax
movq (%rsp), %rcx
movq %r12, (%rcx,%rax,4)
movq $-0x1, 0x8(%r13,%rbp,8)
movl $0xffffffff, 0x10(%r13,%rbp,8) # imm = 0xFFFFFFFF
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x30(%rdi), %r9
movq 0x10(%r9), %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rcx, 0x8(%rsp)
testq %rcx, %rcx
je 0x5144
movq %rsi, %r14
movl (%r9), %ecx
movl $0x1, %eax
shll %cl, %eax
movsbl (%rsi), %edx
testl %edx, %edx
je 0x50f1
movb 0x1(%r14), %sil
testb %sil, %sil
je 0x50f3
leaq 0x2(%r14), %rdi
movl %edx, %r8d
shll $0x5, %r8d
subl %edx, %r8d
movsbl %sil, %edx
addl %r8d, %edx
movb (%rdi), %sil
incq %rdi
testb %sil, %sil
jne 0x50d3
jmp 0x50f3
xorl %edx, %edx
imull $0x9e3779b9, %edx, %ebx # imm = 0x9E3779B9
negb %cl
shrl %cl, %ebx
movq %rax, 0x10(%rsp)
leal -0x1(%rax), %r13d
movq 0x8(%r9), %r12
movl %ebx, %ebp
movl %ebp, %eax
shrl $0x5, %eax
movl (%r12,%rax,4), %eax
btl %ebp, %eax
jae 0x513f
movl %ebp, %r15d
leaq (%r15,%r15,2), %rax
movq 0x8(%rsp), %rcx
movq (%rcx,%rax,4), %rdi
movq %r14, %rsi
callq 0x21f0
testl %eax, %eax
je 0x5153
incl %ebp
andl %r13d, %ebp
cmpl %ebx, %ebp
jne 0x510c
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl 0x10(%rsp), %ebp
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
je 0x5144
leaq (%r15,%r15,2), %rax
movq 0x8(%rsp), %rcx
movl 0x8(%rcx,%rax,4), %eax
jmp 0x5144
// File: /workspace/github_c_makefile_star2_O3/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 0x51d9
cmpl 0x24(%rdi), %eax
jae 0x51d9
movq 0x28(%rdi), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rax
movl 0x8(%rax), %edx
testl %edx, %edx
sets %dil
movl 0xc(%rsi), %ecx
cmpl %edx, %ecx
setl %dl
orb %dil, %dl
cmpb $0x1, %dl
jne 0x51a3
movl %ecx, 0x8(%rax)
movl 0xc(%rax), %edx
testl %edx, %edx
sets %dil
addl (%rsi), %ecx
cmpl %edx, %ecx
setg %dl
orb %dil, %dl
cmpb $0x1, %dl
jne 0x51be
movl %ecx, 0xc(%rax)
movl 0x10(%rax), %r8d
movl 0x10(%rsi), %r9d
testl %r8d, %r8d
js 0x51da
cmpl %r9d, %r8d
je 0x51d9
cmpl $0x2, 0x2d019(%rip)     # 0x321f0
jge 0x51df
retq
movl %r9d, 0x10(%rax)
retq
movq 0x2ce12(%rip), %rcx     # 0x31ff8
movq (%rcx), %rdi
movq (%rax), %rdx
movq 0x18(%rsi), %rcx
leaq 0x2306e(%rip), %rsi     # 0x28265
xorl %eax, %eax
jmp 0x2210
// File: /workspace/github_c_makefile_star2_O3/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 0x18(%rdi), %r9
movq 0x10(%r9), %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rcx, 0x8(%rsp)
testq %rcx, %rcx
je 0x52b9
movq %rsi, %r14
movl (%r9), %ecx
movl $0x1, %eax
shll %cl, %eax
movsbl (%rsi), %edx
testl %edx, %edx
je 0x5266
movb 0x1(%r14), %sil
testb %sil, %sil
je 0x5268
leaq 0x2(%r14), %rdi
movl %edx, %r8d
shll $0x5, %r8d
subl %edx, %r8d
movsbl %sil, %edx
addl %r8d, %edx
movb (%rdi), %sil
incq %rdi
testb %sil, %sil
jne 0x5248
jmp 0x5268
xorl %edx, %edx
imull $0x9e3779b9, %edx, %ebx # imm = 0x9E3779B9
negb %cl
shrl %cl, %ebx
movq %rax, 0x10(%rsp)
leal -0x1(%rax), %r13d
movq 0x8(%r9), %r12
movl %ebx, %ebp
movl %ebp, %eax
shrl $0x5, %eax
movl (%r12,%rax,4), %eax
btl %ebp, %eax
jae 0x52b4
movl %ebp, %r15d
leaq (%r15,%r15,2), %rax
movq 0x8(%rsp), %rcx
movq (%rcx,%rax,4), %rdi
movq %r14, %rsi
callq 0x21f0
testl %eax, %eax
je 0x52c8
incl %ebp
andl %r13d, %ebp
cmpl %ebx, %ebp
jne 0x5281
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl 0x10(%rsp), %ebp
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
je 0x52b9
leaq (%r15,%r15,2), %rax
movq 0x8(%rsp), %rcx
movl 0x8(%rcx,%rax,4), %eax
jmp 0x52b9
// File: /workspace/github_c_makefile_star2_O3/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
movq 0x40(%rdi), %rdx
cmpq %rdx, %r15
jne 0x5392
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
movq 0x40(%r14), %rdx
movl 0x40(%rsp), %r10d
movabsq $0x1fffffffffffffff, %rsi # imm = 0x1FFFFFFFFFFFFFFF
movq 0x48(%r14), %rdi
leaq 0x1(%rdx), %rax
movq %rax, 0x40(%r14)
movq %rdx, %r9
shlq $0x5, %r9
leaq (%rdi,%r9), %rax
shlq $0x20, %r13
movq %r13, (%rdi,%r9)
movl %r12d, 0x8(%rdi,%r9)
movl %ecx, 0x10(%rdi,%r9)
movl %r8d, 0x14(%rdi,%r9)
movl $0xffffffff, 0xc(%rdi,%r9) # imm = 0xFFFFFFFF
testq %rbx, %rbx
js 0x5409
movabsq $-0x2000000000000000, %rdx # imm = 0xE000000000000000
andq 0x18(%rax), %rdx
andq %rbx, %rsi
orq %rsi, %rdx
movq %rdx, 0x18(%rax)
movq 0x48(%r14), %rdx
shlq $0x5, %rbx
movl 0xc(%rdx,%rbx), %edx
movl %edx, 0xc(%rax)
movq %rsi, %rdx
jmp 0x540c
andq %rsi, %rdx
shlq $0x3f, %r10
orq %rdx, %r10
movq %r10, 0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x5455
movq 0x48(%rdi), %rax
addq $0x20, %rax
movq -0x20(%rax), %rsi
cmpq (%rax), %rsi
ja 0x5455
incq %rdx
addq $0x20, %rax
cmpq %rdx, %rcx
jne 0x543d
movq %rcx, %rdx
xorl %eax, %eax
cmpq %rcx, %rdx
sete %al
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x54f6
leaq 0x1(%r14), %rdx
cmpq $0x3, %rdx
movl $0x2, %ecx
cmovaeq %rdx, %rcx
movq %r14, %rdx
shlq $0x5, %rdx
addq %rbx, %rdx
addq $-0x20, %rdx
addq $0x20, %rbx
movl $0x1, %esi
xorl %edi, %edi
cmpq %rsi, %r14
jne 0x54c2
movq (%rdx), %r8
jmp 0x54d2
movq -0x20(%rbx), %r8
movq (%rbx), %r9
xorq %r8, %r9
shrq $0x20, %r9
je 0x54ea
movq %rsi, %r9
subq %rdi, %r9
shlq $0x20, %rdi
orq %r9, %rdi
shrq $0x20, %r8
movq %rdi, (%rax,%r8,8)
movq %rsi, %rdi
incq %rsi
addq $0x20, %rbx
cmpq %rsi, %rcx
jne 0x54b8
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x5577
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
xorl %ebp, %ebp
movq 0x10(%rbx), %rdi
cmpl $0x0, (%rdi,%r14)
jne 0x555c
incl %ebp
movw $0x1, 0x4(%rdi,%r14)
cmpl $0x2, 0x2cc96(%rip)     # 0x321f0
jge 0x556d
incq %r15
movl 0x4(%rbx), %eax
addq $0x40, %r14
cmpq %rax, %r15
jb 0x553e
jmp 0x5579
addq %r14, %rdi
callq 0x250d
jmp 0x555c
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x568b
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x2ca52(%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
movzwl 0x4(%rax,%rcx), %eax
testl %eax, %eax
jne 0x55fd
movl (%r12), %r8d
movl 0x10(%r15,%r13), %ecx
cmpl %ecx, %r8d
jge 0x55fd
cmpl $0x2, 0x2cc00(%rip)     # 0x321f0
jge 0x564d
movl %r8d, 0x10(%r15,%r13)
movzwl 0x4(%r12), %eax
testl %eax, %eax
jne 0x5615
movq 0x10(%rbx), %rax
shrl %r14d
shlq $0x6, %r14
cmpw $0x0, 0x4(%rax,%r14)
je 0x563c
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 0x55b5
jmp 0x567d
movslq (%r12), %rax
movslq 0x10(%r15,%r13), %rcx
addq %r13, %r15
subq %rcx, %rax
jmp 0x5626
movq (%rdx), %rdi
movq 0x18(%r12), %rdx
leaq 0x22ca1(%rip), %rsi     # 0x282fd
xorl %eax, %eax
callq 0x2210
movabsq $0x4000000000000000, %rsi # imm = 0x4000000000000000
movq 0x2c984(%rip), %rdx     # 0x31ff8
movl (%r12), %r8d
jmp 0x55f2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x40(%rdi), %rax
xorl %r14d, %r14d
testq %rax, %rax
je 0x5be0
movl $0x1, %ebp
movabsq $0x1fffffffffffffff, %r15 # imm = 0x1FFFFFFFFFFFFFFF
xorl %edx, %edx
movq 0x48(%rbx), %rcx
shlq $0x5, %rdx
movq 0x18(%rcx,%rdx), %r12
btq $0x3e, %r12
jb 0x5b6f
leaq (%rcx,%rdx), %rsi
movq (%rsi), %r8
movq 0x10(%rbx), %rdi
shrq $0x1b, %r8
andq $-0x40, %r8
cmpw $0x0, 0x4(%rdi,%r8)
jne 0x5b6f
movl 0x8(%rcx,%rdx), %edx
shrl %edx
shlq $0x6, %rdx
cmpw $0x0, 0x4(%rdi,%rdx)
je 0x5ba6
andq %r15, %r12
cmpq %rax, %r12
jae 0x5b97
movq 0x50(%rbx), %r13
testq %r13, %r13
je 0x5b97
shlq $0x4, %r12
movq 0x8(%r13,%r12), %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, (%r13,%r12)
movl %ebp, %edx
movq 0x40(%rbx), %rax
incl %ebp
cmpq %rdx, %rax
ja 0x5b2d
jmp 0x5bc2
movl %r14d, %eax
incl %r14d
shlq $0x5, %rax
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movups %xmm1, 0x10(%rcx,%rax)
movups %xmm0, (%rcx,%rax)
jmp 0x5b97
movl %r14d, %r14d
cmpq %r14, %rax
jbe 0x5be0
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0x5bd8
callq 0x2040
movq $0x0, 0x58(%rbx)
movq %r14, 0x40(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x5afe
movq 0x40(%rbx), %rsi
movl $0x1, %eax
cmpq $0x2, %rsi
jb 0x5c2a
movq 0x48(%rbx), %rcx
addq $0x20, %rcx
movq -0x20(%rcx), %rdx
cmpq (%rcx), %rdx
ja 0x5c2a
incq %rax
addq $0x20, %rcx
cmpq %rax, %rsi
jne 0x5c13
jmp 0x5c55
cmpq %rsi, %rax
je 0x5c55
movq 0x48(%rbx), %rdi
shlq $0x5, %rsi
addq %rdi, %rsi
callq 0x4596
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0x5c4d
callq 0x2040
movq $0x0, 0x58(%rbx)
cmpq $0x0, 0x58(%rbx)
je 0x5c5e
popq %rbx
retq
movq %rbx, %rdi
popq %rbx
jmp 0x54fe
// File: /workspace/github_c_makefile_star2_O3/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
movl 0x4(%rdi), %ebp
addl %ebp, %ebp
je 0x5cdc
movq %rdi, %rbx
movq 0x58(%rdi), %rax
movl %ebp, %r15d
pcmpeqd %xmm0, %xmm0
xorl %ecx, %ecx
movdqu (%rax,%rcx,8), %xmm1
pshufd $0xe8, %xmm1, %xmm1     # xmm1 = xmm1[0,2,2,3]
movdqa %xmm0, %xmm2
pcmpgtd %xmm1, %xmm0
pand %xmm0, %xmm2
pandn %xmm1, %xmm0
por %xmm2, %xmm0
addq $0x2, %rcx
cmpq %rcx, %r15
jne 0x5c89
pshufd $0x55, %xmm0, %xmm1     # xmm1 = xmm0[1,1,1,1]
movdqa %xmm0, %xmm2
pcmpgtd %xmm1, %xmm2
pand %xmm2, %xmm0
pandn %xmm1, %xmm2
por %xmm0, %xmm2
movd %xmm2, %eax
cmpl $0x1, %eax
sete %cl
testl %eax, %eax
sets %dl
orb %cl, %dl
je 0x5ce3
xorl %ebp, %ebp
jmp 0x5da0
movl %eax, %edi
shlq $0x3, %rdi
callq 0x2280
movq %rax, %r14
testl %ebp, %ebp
je 0x5d96
xorl %r12d, %r12d
xorl %ebp, %ebp
movq 0x58(%rbx), %rax
movq (%rax,%r12,8), %r13
testl %r13d, %r13d
jle 0x5d3d
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 0x5d2b
movslq %r13d, %rax
leaq (%r14,%rax,8), %rsi
movq %r14, %rdi
callq 0x47e4
testl %r13d, %r13d
jle 0x5d88
movl %r13d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
incl %r13d
decq %rax
decq %r13
xorl %ecx, %ecx
xorl %edx, %edx
cmpq %rcx, %rax
je 0x5d79
movq 0x8(%r14,%rcx,8), %rsi
movslq %edx, %rdi
cmpq (%r14,%rdi,8), %rsi
je 0x5d80
subl %edx, %ebp
leal 0x1(%rcx), %edx
addl %ecx, %ebp
incq %rcx
cmpq %rcx, %r13
jne 0x5d66
incq %r12
cmpq %r15, %r12
jne 0x5cfe
jmp 0x5d98
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_O3/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 0x5526
movq 0x40(%rbx), %rsi
movq 0x48(%rbx), %rdi
shlq $0x5, %rsi
addq %rdi, %rsi
callq 0x4596
movq %rbx, %rdi
callq 0x54fe
movq %rbx, %rdi
callq 0x568c
movq %rbx, %rdi
callq 0x591c
movq %rbx, %rdi
callq 0x5586
movq %rbx, %rdi
popq %rbx
jmp 0x5bf3
// File: /workspace/github_c_makefile_star2_O3/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:
testl %edi, %edi
jle 0x628b
movq %rsi, %rax
movsbl (%rdx), %esi
shll $0x8, %esi
movsbl 0x1(%rdx), %ecx
orl %esi, %ecx
movslq %edi, %rdx
addq %rax, %rdx
movabsq $0x120000001, %rsi      # imm = 0x120000001
movabsq $0x400000005, %rdi      # imm = 0x400000005
movzwl (%rax), %r8d
rolw $0x8, %r8w
movzwl %r8w, %r8d
cmpl %ecx, %r8d
je 0x628e
movzbl 0x2(%rax), %r9d
leaq 0x3(%rax), %r8
movl $0x1, %r10d
cmpl $0x42, %r9d
jle 0x61e9
cmpl $0x43, %r9d
je 0x624c
cmpl $0x63, %r9d
je 0x624c
cmpl $0x5a, %r9d
jne 0x6224
leaq 0x1(%r8), %rax
cmpb $0x0, (%r8)
movq %rax, %r8
jne 0x61da
jmp 0x6252
cmpl $0x41, %r9d
je 0x624c
cmpl $0x42, %r9d
jne 0x6224
movzbl (%r8), %r9d
leal -0x41(%r9), %r11d
cmpl $0x22, %r11d
ja 0x625d
movl $0x1, %r10d
btq %r11, %rdi
jae 0x625d
movslq 0x4(%rax), %rax
movl %r10d, %r9d
imulq %rax, %r9
leaq (%r8,%r9), %rax
addq $0x5, %rax
jmp 0x6252
movl %r9d, %eax
andb $-0x21, %al
movl $0x2, %r10d
cmpb $0x53, %al
je 0x624c
addl $-0x49, %r9d
cmpl $0x20, %r9d
ja 0x6249
movl $0x4, %r10d
btq %r9, %rsi
jb 0x624c
xorl %r10d, %r10d
addq %r10, %r8
movq %r8, %rax
cmpq %rdx, %rax
jb 0x619d
jmp 0x628b
movl %r9d, %r11d
andb $-0x21, %r11b
movl $0x2, %r10d
cmpb $0x53, %r11b
je 0x620f
addl $-0x49, %r9d
cmpl $0x20, %r9d
ja 0x6286
movl $0x4, %r10d
btq %r9, %rsi
jb 0x620f
xorl %r10d, %r10d
jmp 0x620f
xorl %eax, %eax
retq
addq $0x2, %rax
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x62d4
cmpl $0x43, %ecx
je 0x6349
cmpl $0x63, %ecx
je 0x6349
cmpl $0x5a, %ecx
jne 0x6318
leaq 0x1(%rax), %r14
cmpb $0x0, (%rax)
movq %r14, %rax
jne 0x62c6
jmp 0x634f
cmpl $0x41, %ecx
je 0x6349
cmpl $0x42, %ecx
jne 0x6318
movzbl (%rax), %ecx
leal -0x41(%rcx), %r8d
cmpl $0x22, %r8d
ja 0x6376
movl $0x1, %esi
movabsq $0x400000005, %r9       # imm = 0x400000005
btq %r8, %r9
jae 0x6376
movslq 0x2(%rbx), %rcx
movl %esi, %esi
imulq %rcx, %rsi
leaq (%rax,%rsi), %r14
addq $0x5, %r14
jmp 0x634f
movl %ecx, %r8d
andb $-0x21, %r8b
movl $0x2, %esi
cmpb $0x53, %r8b
je 0x6349
addl $-0x49, %ecx
cmpl $0x20, %ecx
ja 0x6347
movl $0x4, %esi
movabsq $0x120000001, %r8       # imm = 0x120000001
btq %rcx, %r8
jb 0x6349
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 0x6304
addl $-0x49, %ecx
cmpl $0x20, %ecx
ja 0x63ad
movl $0x4, %esi
movabsq $0x120000001, %r8       # imm = 0x120000001
btq %rcx, %r8
jb 0x6304
xorl %esi, %esi
jmp 0x6304
// File: /workspace/github_c_makefile_star2_O3/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
subq $0x18, %rsp
movss %xmm0, 0xc(%rsp)
movq %rsi, %rbp
movq %rdi, %rbx
movl 0x4(%rdi), %r15d
movq 0x8(%rdi), %r14
testq %r15, %r15
je 0x6402
leaq 0x22040(%rip), %rdx     # 0x28422
movl %r15d, %edi
movq %r14, %rsi
callq 0x616c
testq %rax, %rax
je 0x6402
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x1(%rax)
jmp 0x6568
movl (%rbx), %r13d
leaq 0x7(%r15), %rax
cmpq %r13, %rax
movq %rax, 0x10(%rsp)
jbe 0x6459
leaq 0x6(%r15), %rax
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, %r13
shrq $0x10, %r13
orq %rax, %r13
incq %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x22b0
movq %rax, %r14
leaq 0x2(%r15), %r12
cmpq %r13, %r12
jbe 0x64a8
leaq 0x1(%r15), %rax
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, %r13
shrq $0x10, %r13
orq %rax, %r13
incq %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x22b0
movq %rax, %r14
movzwl (%rbp), %eax
movw %ax, (%r14,%r15)
leaq 0x3(%r15), %rbp
cmpq %r13, %rbp
jbe 0x64fc
movq %r12, %rax
shrq %rax
orq %r12, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %r13
shrq $0x10, %r13
orq %rcx, %r13
incq %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x22b0
movq %rax, %r14
movb $0x66, (%r14,%r12)
movq 0x10(%rsp), %r12
cmpq %r13, %r12
jbe 0x6551
addq $0x6, %r15
movq %r15, %rax
shrq %rax
orq %r15, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %r13
shrq $0x10, %r13
orq %rcx, %r13
incq %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x22b0
movq %rax, %r14
movss 0xc(%rsp), %xmm0
movss %xmm0, (%r14,%rbp)
movl %r12d, 0x4(%rbx)
movl %r13d, (%rbx)
movq %r14, 0x8(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x65ca
cmpl $0x0, 0x4(%r15)
je 0x65ca
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 0x63b4
incq %rbp
movl 0x4(%r15), %eax
addq $0x40, %r13
cmpq %rax, %rbp
jb 0x65a2
testq %rbx, %rbx
je 0x6617
movq 0x40(%r15), %rax
testq %rax, %rax
je 0x6617
movl $0x18, %r12d
xorl %r13d, %r13d
movq 0x48(%r15), %rcx
movq (%rcx,%r12), %rdi
testq %rdi, %rdi
js 0x660b
shlq $0x4, %rdi
addq 0x50(%r15), %rdi
xorps %xmm0, %xmm0
cvtsd2ss (%rbx,%r13,8), %xmm0
movq %r14, %rsi
callq 0x63b4
movq 0x40(%r15), %rax
incq %r13
addq $0x20, %r12
cmpq %rax, %r13
jb 0x65e1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x9135
movq %rdi, %rdx
movq %rcx, %rax
movl 0x8(%rdx), %ecx
cmpl (%rdx), %ecx
jae 0x9129
movl 0xc(%rdx), %edx
movq %rax, %r8
cmpq %rdi, %rax
jbe 0x9122
movq %rax, %r9
cmpl -0x8(%r9), %ecx
jae 0x911f
leaq -0x8(%r9), %r8
movq -0x8(%r9), %r10
movq %r10, (%r9)
movq %r8, %r9
cmpq %rdi, %r8
ja 0x9104
jmp 0x9122
movq %r9, %r8
movl %ecx, (%r8)
movl %edx, 0x4(%r8)
leaq 0x8(%rax), %rcx
movq %rax, %rdx
cmpq %rsi, %rcx
jb 0x90ec
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r9d, 0x14(%rsp)
movl 0x98(%rsp), %eax
xorl %r9d, %r9d
subl %r8d, %eax
movq %rax, 0x50(%rsp)
je 0xa0f1
setg %al
movzbl %al, %eax
leaq -0x1(%rax,%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x10(%rdi), %rax
movl %edx, %edi
shrl %edi
shlq $0x6, %rdi
addq %rdi, %rax
addq $0x20, %rax
movq %rax, 0x38(%rsp)
movslq -0x20(%rax), %rax
movl %esi, %edi
negl %edi
movl %edi, 0x8(%rsp)
imull %esi, %esi
movl %esi, 0xc(%rsp)
movslq %r8d, %rsi
movslq %ecx, %rcx
movslq 0x90(%rsp), %rdi
subq %rcx, %rdi
movq %rdi, 0x48(%rsp)
movl %ecx, %edi
notl %edi
addl %eax, %edi
movq %rcx, 0x20(%rsp)
subq %rcx, %rax
movq %rax, 0x40(%rsp)
addq 0xa0(%rsp), %rsi
movq %rsi, 0x30(%rsp)
xorl %ebx, %ebx
movl $0x1, %ebp
xorl %r15d, %r15d
xorl %r14d, %r14d
xorl %r9d, %r9d
movl %edx, 0x10(%rsp)
cmpl %edx, 0x14(%rsp)
sete %al
movq 0x20(%rsp), %rcx
leaq (%rcx,%rbx), %rsi
cmpq %rbx, 0x48(%rsp)
sete %cl
incq %rsi
je 0xa0f1
cmpq %rbx, 0x40(%rsp)
je 0xa0f1
andb %cl, %al
jne 0xa0f1
movq 0x38(%rsp), %rax
movq (%rax), %rax
testb $0x1, %dl
movl %edi, 0x1c(%rsp)
movl %r9d, 0x18(%rsp)
jne 0xa075
addq 0x20(%rsp), %rax
movsbl (%rbx,%rax), %r12d
jmp 0xa088
movslq %edi, %rcx
movzbl (%rax,%rcx), %eax
leaq 0x2817d(%rip), %rcx     # 0x32200
movzbl (%rcx,%rax), %r12d
callq 0x2390
movq %rax, %r13
movl %r12d, %edi
callq 0x2250
movq (%r13), %rdx
movq 0x30(%rsp), %rcx
movsbq (%rcx,%rbx), %rsi
movl $0x1, %ecx
cmpl (%rdx,%rsi,4), %eax
je 0xa0b4
movl 0x8(%rsp), %ecx
addl %ecx, %r15d
cmpl %r14d, %r15d
movl 0x18(%rsp), %r9d
cmovgl %ebp, %r9d
cmovgl %r15d, %r14d
movl %r14d, %eax
subl 0xc(%rsp), %eax
cmpl %eax, %r15d
movl 0x10(%rsp), %edx
movl 0x1c(%rsp), %edi
jl 0xa0f1
movq 0x28(%rsp), %rax
addq %rax, %rbx
subl %eax, %edi
incl %ebp
cmpl %ebx, 0x50(%rsp)
jne 0xa01f
movl %r9d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xa857
movq %rdx, %rbx
movq %rdi, %r15
leaq 0x1f835(%rip), %r13     # 0x29fb8
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 0x1df04(%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 0x1df5f(%rip), %rsi     # 0x2872e
movl %r14d, %edx
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x2210
addq $0x10, %rsp
cmpl $0x0, 0xc(%r12,%rbp)
jle 0xa83b
addq %rbp, %r12
movl $0x9, %edi
movq %r15, %rsi
callq 0x21b0
cmpl $0x0, 0xc(%r12)
jle 0xa83b
xorl %ebp, %ebp
testl %ebp, %ebp
je 0xa814
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 0xa803
movl $0xa, %edi
movq %r15, %rsi
callq 0x21b0
incq %r14
movslq (%rbx), %rax
cmpq %rax, %r14
jl 0xa786
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq