LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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, %rbx
movq (%rdi), %r12
leaq 0x28(%r12), %r14
leaq 0x50(%r12), %r15
movl 0x10(%rbx), %eax
cmpl 0x1c(%r12), %eax
jge 0x2d42
movq %r14, %rdi
callq 0x2380
movl 0x18(%r12), %eax
testl %eax, %eax
movl $0x0, %ecx
cmovgl %eax, %ecx
xorl %esi, %esi
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x2cb8
movq 0x20(%r12), %rdi
leaq (%rdi,%rsi), %r8
cmpq %rbx, %r8
je 0x2cad
movl 0x10(%rdi,%rsi), %r8d
cmpl 0x10(%rbx), %r8d
jg 0x2cad
movq 0x8(%rdi,%rsi), %rdi
cmpq 0x8(%rbx), %rdi
jl 0x2cb6
incq %rdx
addq $0x20, %rsi
jmp 0x2c84
movl %edx, %ecx
cmpl %eax, %ecx
je 0x2cc9
movq %r15, %rdi
movq %r14, %rsi
callq 0x2100
jmp 0x2c71
movq %r14, %rdi
callq 0x2260
movq (%r12), %rdi
movq 0x8(%r12), %rax
movl 0x10(%rbx), %esi
testl %esi, %esi
je 0x2ce7
movq 0x18(%rbx), %rdx
jmp 0x2ce9
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 0x2d0d
cmpq $0x0, 0x18(%rbx)
je 0x2d14
incl %eax
cltd
idivl %ecx
movl %edx, %ecx
movl %ecx, 0x10(%rbx)
testl %ecx, %ecx
jne 0x2d2d
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
jmp 0x2c5b
xorl %edi, %edi
callq 0x2270
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/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
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, (%rsp)
pushq $0xc
popq %r12
xorl %r13d, %r13d
cmpq %r13, (%rbx)
jbe 0x3034
movq 0x10(%rbx), %r15
movl (%r15,%r12), %ecx
subl -0x4(%r15,%r12), %ecx
cmpl %ebp, %ecx
jl 0x302b
movq (%r14), %rdx
movq 0x10(%r14), %rax
cmpq 0x8(%r14), %rdx
jne 0x3013
leaq (%rdx,%rdx), %rcx
testq %rdx, %rdx
pushq $0x2
popq %rdx
cmoveq %rdx, %rcx
movq %rcx, 0x8(%r14)
imulq $0xc, %rcx, %rdx
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x2774
movq %rax, 0x10(%r14)
movq (%r14), %rdx
movl (%r15,%r12), %ecx
subl -0x4(%r15,%r12), %ecx
leaq 0x1(%rdx), %rsi
movq %rsi, (%r14)
imulq $0xc, %rdx, %rdx
movq -0xc(%r15,%r12), %rsi
movq %rsi, (%rax,%rdx)
movl %ecx, 0x8(%rax,%rdx)
incq %r13
addq $0x14, %r12
jmp 0x2fbe
andq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x33fd
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
movl %edi, %r14d
movq %r14, %rsi
shlq $0x4, %rsi
addq %rbx, %rsi
movq %rbx, %rdi
callq 0x32c5
leaq 0x8(%rbx), %rax
xorl %edi, %edi
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpq %r14, %rdi
jae 0x3333
movl -0x4(%rax), %edx
andl %ecx, %edx
movl %edx, (%rax)
movl %edi, %esi
addq $0x2, %rdi
addq $0x20, %rax
jmp 0x331b
pushq $0x1
popq %rdi
movl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
movq %rdi, %rax
movq %rdi, %r8
movl %eax, %ecx
shlq %cl, %r8
cmpq %r14, %r8
jg 0x33ec
leal -0x1(%rax), %ecx
movq %rdi, %r11
shlq %cl, %r11
pushq $0x2
popq %r15
shlq %cl, %r15
pushq $0x4
popq %r12
shlq %cl, %r12
decl %r15d
cmpl %ebp, %r15d
jge 0x33ba
movslq %r15d, %rcx
leaq (%r11,%rcx), %r8
movl %edx, %r13d
cmpq %r14, %r8
jge 0x3387
shlq $0x4, %r8
movl 0x8(%rbx,%r8), %r13d
movq %rcx, %r8
subq %r11, %r8
shlq $0x4, %r8
movl 0x8(%rbx,%r8), %r8d
shlq $0x4, %rcx
movl 0x4(%rbx,%rcx), %r9d
andl %r10d, %r9d
cmpl %r8d, %r9d
cmovlel %r8d, %r9d
cmpl %r13d, %r9d
cmovlel %r13d, %r9d
movl %r9d, 0x8(%rbx,%rcx)
addl %r12d, %r15d
jmp 0x336a
movq %r11, %rcx
negq %rcx
btl %eax, %esi
cmovaeq %r11, %rcx
movl %esi, %r8d
movq %rcx, %rsi
addq %r8, %rsi
cmpl %ebp, %esi
jge 0x33e4
movslq %esi, %rcx
shlq $0x4, %rcx
movl 0x8(%rbx,%rcx), %ecx
cmpl %edx, %ecx
cmovgl %ecx, %edx
incq %rax
jmp 0x333f
decl %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x1
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/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, %r13
movq 0xb8(%rsp), %r12
movq 0xb0(%rsp), %rbp
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0xf85c
movl %r15d, 0x1c(%r14)
orb $0x1, (%r14)
leaq 0x28(%rsp), %r15
movq %r15, (%rsp)
movq %r13, 0x20(%rsp)
movq %r13, %rdi
movq %r14, %rsi
movl 0xc(%rsp), %r14d
movl %ebx, %edx
movq 0x10(%rsp), %rcx
movl %r14d, %r8d
movq 0x18(%rsp), %r9
callq 0x108a3
andl $0x0, (%r12)
andl $0x0, (%rbp)
movslq 0x4(%r15), %rax
movq 0x10(%r15), %rsi
xorl %ecx, %ecx
cmpq %rax, %rcx
jge 0x3759
movl (%rsi,%rcx,4), %edx
movl %edx, %edi
andl $0xf, %edi
shrl $0x4, %edx
addl %edx, (%r12)
cmpl $0x7, %edi
jne 0x3754
addl %edx, (%rbp)
incq %rcx
jmp 0x3738
movq 0x20(%rsp), %rdi
callq 0x2577
movl 0x28(%rsp), %ecx
testl %ecx, %ecx
js 0x377d
addl %ebx, %r14d
pushq $0x2
popq %rsi
movl %r14d, %eax
cltd
idivl %esi
movl %eax, %ebx
subl %ecx, %ebx
jmp 0x3782
addl %r14d, %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_O2/lh3[P]minigraph/sys.c
// Function: mg_err_fputs
void mg_err_fputs(const char *str, FILE *fp)
{
	int ret;
	ret = fputs(str, fp);
	if (ret == EOF) {
		fprintf(stderr, "[ERROR] failed to write the results\n");
		exit(EXIT_FAILURE);
	}
}

// Assembly:
pushq %rax
callq 0x2170
cmpl $-0x1, %eax
je 0x3839
popq %rax
retq
movq 0x2a7b8(%rip), %rax     # 0x2dff8
movq (%rax), %rcx
leaq 0x1f936(%rip), %rdi     # 0x23180
pushq $0x24
popq %rsi
pushq $0x1
popq %rdx
callq 0x2340
pushq $0x1
popq %rdi
callq 0x2330
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minigraph/sys.c
// Function: mg_err_fwrite
void mg_err_fwrite(const void *p, size_t size, size_t nitems, FILE *fp)
{
	int ret;
	ret = fwrite(p, size, nitems, fp);
	if (ret == EOF) {
		fprintf(stderr, "[ERROR] failed to write data\n");
		exit(EXIT_FAILURE);
	}
}

// Assembly:
pushq %rax
callq 0x2340
cmpl $-0x1, %eax
je 0x386a
popq %rax
retq
movq 0x2a787(%rip), %rax     # 0x2dff8
movq (%rax), %rcx
leaq 0x1f92a(%rip), %rdi     # 0x231a5
pushq $0x1d
popq %rsi
pushq $0x1
popq %rdx
callq 0x2340
pushq $0x1
popq %rdi
callq 0x2330
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minigraph/sys.c
// Function: mg_err_fread
void mg_err_fread(void *p, size_t size, size_t nitems, FILE *fp)
{
	int ret;
	ret = fread(p, size, nitems, fp);
	if (ret == EOF) {
		fprintf(stderr, "[ERROR] failed to read data\n");
		exit(EXIT_FAILURE);
	}
}

// Assembly:
pushq %rax
callq 0x20b0
cmpl $-0x1, %eax
je 0x389b
popq %rax
retq
movq 0x2a756(%rip), %rax     # 0x2dff8
movq (%rax), %rcx
leaq 0x1f917(%rip), %rdi     # 0x231c3
pushq $0x1c
popq %rsi
pushq $0x1
popq %rdx
callq 0x2340
pushq $0x1
popq %rdi
callq 0x2330
nop
// File: /workspace/github_c_makefile_star2_O2/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 %rbx
pushq $0x1
popq %rdi
pushq $0x60
popq %rsi
callq 0x21e0
movq %rax, %rbx
callq 0x3d97
movq %rax, 0x18(%rbx)
callq 0x3d97
movq %rax, 0x30(%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x3ee2
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
callq 0x3ee3
xorl %r14d, %r14d
movl 0x4(%rbx), %eax
cmpq %rax, %r14
jae 0x3e4b
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 0x3e46
addq %r12, %r15
xorl %r12d, %r12d
movl 0x14(%rax), %ecx
movq 0x28(%rax), %rdi
cmpq %rcx, %r12
jae 0x3e2b
movq (%rdi,%r12,8), %rdi
callq 0x2040
incq %r12
movq 0x28(%r15), %rax
jmp 0x3e0d
callq 0x2040
movq 0x28(%r15), %rax
movq 0x18(%rax), %rdi
callq 0x2040
movq 0x28(%r15), %rdi
callq 0x2040
incq %r14
jmp 0x3dcc
xorl %r14d, %r14d
xorl %r15d, %r15d
movl 0x24(%rbx), %eax
cmpq %rax, %r15
jae 0x3e6f
movq 0x28(%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x2040
incq %r15
addq $0x18, %r14
jmp 0x3e51
movq 0x30(%rbx), %rdi
callq 0x3ee3
cmpq $0x0, 0x50(%rbx)
je 0x3ea2
pushq $0x8
popq %r14
xorl %r15d, %r15d
cmpq 0x40(%rbx), %r15
jae 0x3ea2
movq 0x50(%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x2040
incq %r15
addq $0x10, %r14
jmp 0x3e86
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_O2/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
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movq 0x18(%rdi), %rbx
leaq 0x4(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rdx
callq 0x4079
movl %eax, %ebp
cmpl $0x0, (%r12)
je 0x3fff
movl 0x4(%r14), %r13d
cmpl (%r14), %r13d
jne 0x400f
leal (,%r13,2), %eax
testl %r13d, %r13d
pushq $0x10
popq %rsi
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 0x4013
movq 0x10(%rbx), %rax
movl %ebp, %ecx
imulq $0xc, %rcx, %rcx
movl 0x8(%rax,%rcx), %eax
jmp 0x406a
movq 0x10(%r14), %r12
leal 0x1(%r13), %eax
movl %eax, 0x4(%r14)
movl %r13d, %r13d
shlq $0x6, %r13
movq %r15, %rdi
callq 0x3f1e
movq %rax, 0x18(%r12,%r13)
movq 0x10(%rbx), %rcx
movl %ebp, %edx
imulq $0xc, %rdx, %rdx
movq %rax, (%rcx,%rdx)
andl $0x0, (%r12,%r13)
movzwl 0x6(%r12,%r13), %eax
shll $0x10, %eax
movl %eax, 0x4(%r12,%r13)
orl $-0x1, 0x10(%r12,%r13)
orq $-0x1, 0x8(%r12,%r13)
movl 0x4(%r14), %eax
decl %eax
movq 0x10(%rbx), %rcx
movl %eax, 0x8(%rcx,%rdx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movq 0x30(%rdi), %rbx
leaq 0x4(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rdx
callq 0x4079
movl %eax, %ebp
cmpl $0x0, (%r12)
je 0x444c
movl 0x24(%r15), %eax
cmpl 0x20(%r15), %eax
jne 0x4455
movl %eax, %ecx
shrl %ecx
addl %eax, %ecx
testl %eax, %eax
pushq $0x10
popq %rax
cmovnel %ecx, %eax
movl %eax, 0x20(%r15)
movq 0x28(%r15), %rdi
imulq $0x18, %rax, %rsi
callq 0x22b0
movq %rax, %r12
movq %rax, 0x28(%r15)
movl 0x24(%r15), %eax
jmp 0x4459
movq 0x10(%rbx), %rcx
movl %ebp, %r15d
jmp 0x4495
movq 0x28(%r15), %r12
leal 0x1(%rax), %ecx
movl %ecx, 0x24(%r15)
movl %eax, %ecx
imulq $0x18, %rcx, %r13
movq 0x10(%rbx), %rcx
movl %ebp, %r15d
imulq $0xc, %r15, %rbp
movl %eax, 0x8(%rcx,%rbp)
movq %r14, %rdi
callq 0x3f1e
movq %rax, (%r12,%r13)
movq 0x10(%rbx), %rcx
movq %rax, (%rcx,%rbp)
orq $-0x1, 0x8(%r12,%r13)
orl $-0x1, 0x10(%r12,%r13)
imulq $0xc, %r15, %rax
movl 0x8(%rcx,%rax), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbx
movq 0x30(%rdi), %rbx
movq %rbx, %rdi
callq 0x44e2
movq 0x10(%rbx), %rdx
testq %rdx, %rdx
je 0x44cb
movb (%rbx), %cl
pushq $0x1
popq %rsi
shll %cl, %esi
jmp 0x44cd
xorl %esi, %esi
cmpl %esi, %eax
jne 0x44d6
pushq $-0x1
popq %rax
jmp 0x44e0
movl %eax, %eax
imulq $0xc, %rax, %rax
movl 0x8(%rdx,%rax), %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x45de
cmpl 0x24(%rdi), %eax
jae 0x45de
movq 0x28(%rdi), %rcx
imulq $0x18, %rax, %rdx
leaq (%rcx,%rdx), %rax
movl 0x8(%rcx,%rdx), %edx
testl %edx, %edx
sets %dil
movl 0xc(%rsi), %ecx
cmpl %edx, %ecx
setl %dl
orb %dil, %dl
cmpb $0x1, %dl
jne 0x45a8
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 0x45c3
movl %ecx, 0xc(%rax)
movl 0x10(%rax), %r8d
movl 0x10(%rsi), %r9d
testl %r8d, %r8d
js 0x45df
cmpl %r9d, %r8d
je 0x45de
cmpl $0x2, 0x29c14(%rip)     # 0x2e1f0
jge 0x45e4
retq
movl %r9d, 0x10(%rax)
retq
movq 0x29a0d(%rip), %rcx     # 0x2dff8
movq (%rcx), %rdi
movq (%rax), %rdx
movq 0x18(%rsi), %rcx
leaq 0x1ec69(%rip), %rsi     # 0x23265
xorl %eax, %eax
jmp 0x2210
// File: /workspace/github_c_makefile_star2_O2/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 %rbx
movq 0x18(%rdi), %rbx
movq %rbx, %rdi
callq 0x44e2
movq 0x10(%rbx), %rdx
testq %rdx, %rdx
je 0x4622
movb (%rbx), %cl
pushq $0x1
popq %rsi
shll %cl, %esi
jmp 0x4624
xorl %esi, %esi
cmpl %esi, %eax
jne 0x462d
pushq $-0x1
popq %rax
jmp 0x4637
movl %eax, %eax
imulq $0xc, %rax, %rax
movl 0x8(%rdx,%rax), %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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), %rax
cmpq %rax, %r15
jne 0x46e7
leaq (%r15,%r15), %rax
testq %r15, %r15
pushq $0x10
popq %rsi
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), %rax
movl 0x40(%rsp), %r10d
movq 0x48(%r14), %rsi
leaq 0x1(%rax), %rdx
movq %rdx, 0x40(%r14)
movq %rax, %rdi
shlq $0x5, %rdi
shlq $0x20, %r13
orl $-0x1, 0xc(%rsi,%rdi)
testq %rbx, %rbx
cmovnsq %rbx, %rax
movabsq $0x1fffffffffffffff, %rdx # imm = 0x1FFFFFFFFFFFFFFF
andq %rax, %rdx
movabsq $-0x2000000000000000, %r9 # imm = 0xE000000000000000
andq 0x18(%rsi,%rdi), %r9
leaq (%rsi,%rdi), %rax
orq %rdx, %r9
movq %r13, (%rsi,%rdi)
movl %r12d, 0x8(%rsi,%rdi)
movl %ecx, 0x10(%rsi,%rdi)
movl %r8d, 0x14(%rsi,%rdi)
movq %r9, 0x18(%rsi,%rdi)
testq %rbx, %rbx
js 0x475d
movq 0x48(%r14), %rsi
shlq $0x5, %rbx
movl 0xc(%rsi,%rbx), %esi
movl %esi, 0xc(%rax)
shlq $0x3f, %r10
orq %r10, %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_O2/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
cmpq $0x1, %rcx
movq %rcx, %rdx
adcq $0x0, %rdx
pushq $0x1
popq %rax
pushq $0x20
popq %rsi
cmpq %rcx, %rax
jae 0x47ac
movq 0x48(%rdi), %r8
movq -0x20(%r8,%rsi), %r9
cmpq (%r8,%rsi), %r9
ja 0x47a9
incq %rax
addq $0x20, %rsi
jmp 0x478c
movq %rax, %rdx
xorl %eax, %eax
cmpq %rcx, %rdx
sete %al
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x8
popq %rsi
callq 0x21e0
movq %r14, %rcx
shlq $0x5, %rcx
addq %rbx, %rcx
addq $-0x20, %rcx
addq $0x20, %rbx
pushq $0x1
popq %rdx
xorl %esi, %esi
cmpq %r14, %rdx
ja 0x4832
jne 0x4801
movq (%rcx), %rdi
jmp 0x4811
movq -0x20(%rbx), %rdi
movq (%rbx), %r8
xorq %rdi, %r8
shrq $0x20, %r8
je 0x4829
movq %rdx, %r8
subq %rsi, %r8
shlq $0x20, %rsi
orq %r8, %rsi
shrq $0x20, %rdi
movq %rsi, (%rax,%rdi,8)
movq %rdx, %rsi
incq %rdx
addq $0x20, %rbx
jmp 0x47f5
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x29786(%rip), %r15     # 0x2dff8
leaq 0x1ea40(%rip), %r14     # 0x232b9
xorl %r12d, %r12d
xorl %r13d, %r13d
xorl %ebp, %ebp
movl 0x4(%rbx), %eax
cmpq %rax, %r13
jae 0x48c4
movq 0x10(%rbx), %rax
cmpl $0x0, (%rax,%r12)
jne 0x48a7
incl %ebp
movw $0x1, 0x4(%rax,%r12)
cmpl $0x2, 0x2994b(%rip)     # 0x2e1f0
jge 0x48b0
incq %r13
addq $0x40, %r12
jmp 0x4881
movq (%r15), %rdi
movq 0x18(%rax,%r12), %rdx
movq %r14, %rsi
xorl %eax, %eax
callq 0x2210
jmp 0x48a7
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_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x2970e(%rip), %rdx     # 0x2dff8
movabsq $0x4000000000000000, %rsi # imm = 0x4000000000000000
xorl %r13d, %r13d
xorl %ebp, %ebp
cmpq 0x40(%rbx), %rbp
jae 0x49c4
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 0x494b
movl (%r12), %r8d
movl 0x10(%r15,%r13), %ecx
cmpl %ecx, %r8d
jge 0x494b
cmpl $0x2, 0x298b2(%rip)     # 0x2e1f0
jge 0x4994
movl %r8d, 0x10(%r15,%r13)
movzwl 0x4(%r12), %eax
testl %eax, %eax
jne 0x4963
movq 0x10(%rbx), %rax
shrl %r14d
shlq $0x6, %r14
cmpw $0x0, 0x4(%rax,%r14)
je 0x4983
movq %rbp, %rax
shlq $0x5, %rax
addq %rax, %r15
addq $0x18, %r15
movq %rsi, %rax
orq %rax, (%r15)
incq %rbp
addq $0x20, %r13
jmp 0x48f9
movslq (%r12), %rax
movslq 0x10(%r15,%r13), %rcx
addq %r13, %r15
subq %rcx, %rax
jmp 0x4974
movq (%rdx), %rdi
movq 0x18(%r12), %rdx
leaq 0x1e95a(%rip), %rsi     # 0x232fd
xorl %eax, %eax
callq 0x2210
movabsq $0x4000000000000000, %rsi # imm = 0x4000000000000000
movq 0x2963d(%rip), %rdx     # 0x2dff8
movl (%r12), %r8d
jmp 0x4940
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
xorl %ebp, %ebp
movabsq $0x1fffffffffffffff, %r14 # imm = 0x1FFFFFFFFFFFFFFF
xorl %r15d, %r15d
movl %r15d, %r15d
movq 0x40(%rbx), %rax
movl %ebp, %r12d
cmpq %r15, %rax
jbe 0x4eac
movq 0x48(%rbx), %rcx
movq %r15, %rsi
shlq $0x5, %rsi
movq 0x18(%rcx,%rsi), %r13
btq $0x3e, %r13
jb 0x4e63
leaq (%rcx,%rsi), %rdx
movq (%rdx), %r8
movq 0x10(%rbx), %rdi
shrq $0x1b, %r8
andq $-0x40, %r8
cmpw $0x0, 0x4(%rdi,%r8)
jne 0x4e63
movl 0x8(%rcx,%rsi), %esi
shrl %esi
shlq $0x6, %rsi
cmpw $0x0, 0x4(%rdi,%rsi)
je 0x4e92
andq %r14, %r13
cmpq %rax, %r13
jae 0x4e8a
movq 0x50(%rbx), %r12
testq %r12, %r12
je 0x4e8a
shlq $0x4, %r13
movq 0x8(%r12,%r13), %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, (%r12,%r13)
incl %r15d
jmp 0x4e0b
incl %ebp
shlq $0x5, %r12
movups (%rdx), %xmm0
movups 0x10(%rdx), %xmm1
movups %xmm1, 0x10(%rcx,%r12)
movups %xmm0, (%rcx,%r12)
jmp 0x4e8a
cmpq %r12, %rax
jbe 0x4ebf
movq 0x58(%rbx), %rdi
callq 0x2040
andq $0x0, 0x58(%rbx)
movq %r12, 0x40(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4dee
movq %rbx, %rdi
callq 0x4777
testl %eax, %eax
je 0x4ef0
cmpq $0x0, 0x58(%rbx)
je 0x4f06
popq %rbx
retq
movq %rbx, %rdi
callq 0x47b5
movq 0x58(%rbx), %rdi
callq 0x2040
andq $0x0, 0x58(%rbx)
movq %rbx, %rdi
popq %rbx
jmp 0x483a
// File: /workspace/github_c_makefile_star2_O2/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
pushq $-0x1
popq %rax
xorl %ecx, %ecx
cmpq %rcx, %r15
je 0x4f3f
movq 0x58(%rbx), %rdx
movl (%rdx,%rcx,8), %edx
cmpl %edx, %eax
cmovlel %edx, %eax
incq %rcx
jmp 0x4f29
cmpl $0x1, %eax
sete %cl
testl %eax, %eax
sets %dl
xorl %ebp, %ebp
orb %cl, %dl
jne 0x5011
movl %eax, %edi
shlq $0x3, %rdi
callq 0x2280
movq %rax, %r14
xorl %r12d, %r12d
xorl %ebp, %ebp
movq %rbx, (%rsp)
cmpq %r15, %r12
je 0x5009
movq 0x48(%rbx), %rdx
movq 0x58(%rbx), %rax
movq (%rax,%r12,8), %rax
testl %eax, %eax
movl $0x0, %r13d
cmovgl %eax, %r13d
leaq (,%r13,8), %rcx
movq %rax, %rsi
shrq $0x1b, %rsi
andq $-0x20, %rsi
addq %rsi, %rdx
addq $0x8, %rdx
xorl %esi, %esi
cmpq %rsi, %rcx
je 0x4fba
movl (%rdx,%rsi,4), %edi
movq %rdi, (%r14,%rsi)
addq $0x8, %rsi
jmp 0x4fa8
movq %r15, %rbx
movslq %eax, %r15
leaq (%r14,%r15,8), %rsi
movq %r14, %rdi
callq 0x3d53
movl %r15d, %eax
movq %rbx, %r15
decq %rax
xorl %ecx, %ecx
xorl %edx, %edx
cmpq %rcx, %r13
je 0x4ffd
cmpq %rcx, %rax
je 0x4ff1
movq 0x8(%r14,%rcx,8), %rsi
movslq %edx, %rdi
cmpq (%r14,%rdi,8), %rsi
je 0x4ff8
subl %edx, %ebp
leal 0x1(%rcx), %edx
addl %ecx, %ebp
incq %rcx
jmp 0x4fd9
incq %r12
movq (%rsp), %rbx
jmp 0x4f6b
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_O2/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 0x485d
movq %rbx, %rdi
callq 0x47b5
movq %rbx, %rdi
callq 0x483a
movq %rbx, %rdi
callq 0x49d3
movq %rbx, %rdi
callq 0x4c2a
movq %rbx, %rdi
callq 0x48d5
movq %rbx, %rdi
popq %rbx
jmp 0x4ed2
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movsbl (%rdx), %eax
shll $0x8, %eax
movsbl 0x1(%rdx), %ebp
orl %eax, %ebp
movslq %edi, %r15
addq %rsi, %r15
xorl %ebx, %ebx
cmpq %r15, %r14
jae 0x5409
movzwl (%r14), %eax
rolw $0x8, %ax
movzwl %ax, %eax
cmpl %ebp, %eax
je 0x5402
movzbl 0x2(%r14), %edi
leaq 0x3(%r14), %r12
cmpl $0x42, %edi
je 0x53d5
cmpl $0x5a, %edi
jne 0x53f3
leaq 0x1(%r12), %r14
cmpb $0x0, (%r12)
movq %r14, %r12
jne 0x53c4
jmp 0x539d
movzbl 0x3(%r14), %edi
callq 0x5415
movslq 0x4(%r14), %rcx
cltq
imulq %rcx, %rax
leaq (%r12,%rax), %r14
addq $0x5, %r14
jmp 0x539d
callq 0x5415
movl %eax, %eax
addq %rax, %r12
movq %r12, %r14
jmp 0x539d
addq $0x2, %r14
movq %r14, %rbx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
movzbl (%rdx), %edi
leaq 0x1(%rdx), %r12
cmpl $0x42, %edi
je 0x5490
cmpl $0x5a, %edi
jne 0x54ad
leaq 0x1(%r12), %r15
cmpb $0x0, (%r12)
movq %r15, %r12
jne 0x547f
jmp 0x54ba
movzbl 0x1(%rbx), %edi
callq 0x5415
movslq 0x2(%rbx), %rcx
cltq
imulq %rcx, %rax
leaq (%r12,%rax), %r15
addq $0x5, %r15
jmp 0x54ba
callq 0x5415
movl %eax, %eax
addq %rax, %r12
movq %r12, %r15
addq $-0x2, %rbx
movslq %ebp, %r12
addq %r12, %r14
subq %r15, %r14
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x22d0
subl %r15d, %ebx
addl %ebx, %r12d
movl %r12d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movss %xmm0, 0x4(%rsp)
movl 0x4(%rdi), %r12d
movq 0x8(%rdi), %r15
testq %r12, %r12
je 0x5538
leaq 0x1df0e(%rip), %rdx     # 0x23422
movl %r12d, %edi
movq %r15, %rsi
movss %xmm0, (%rsp)
callq 0x537e
movss (%rsp), %xmm0
testq %rax, %rax
je 0x5538
movss %xmm0, 0x1(%rax)
jmp 0x563e
movq %r12, 0x8(%rsp)
movl (%rbx), %eax
movq %rax, 0x10(%rsp)
movq %r15, 0x18(%rsp)
leaq 0x7(%r12), %rcx
cmpq %rax, %rcx
jbe 0x559d
addq $0x6, %r12
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, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x10(%rsp)
movq %r15, %rdi
callq 0x22b0
movq %rax, 0x18(%rsp)
pushq $0x2
popq %rsi
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rdx
callq 0x564c
movq (%r15), %r12
leaq 0x1(%r12), %r13
cmpq 0x8(%r15), %r13
jbe 0x5608
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, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x10(%rsp)
movq 0x18(%rsp), %rdi
callq 0x22b0
movq %rax, 0x18(%rsp)
jmp 0x560d
movq 0x18(%rsp), %rax
leaq 0x8(%rsp), %r14
movq %r13, (%r14)
movb $0x66, (%rax,%r12)
leaq 0x4(%rsp), %rdi
pushq $0x4
popq %rsi
movq %r14, %rdx
callq 0x564c
movl (%r14), %eax
movl %eax, 0x4(%rbx)
movl 0x8(%r14), %eax
movl %eax, (%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x8(%rbx)
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minigraph/./kstring.h
// Function: kputsn_
static inline void kputsn_(const void *p, int l, kstring_t *s)
{
	if (s->l + l > s->m) {
		s->m = s->l + l;
		kroundup32(s->m);
		s->s = (char*)realloc(s->s, s->m);
	}
	memcpy(s->s + s->l, p, l);
	s->l += l;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r15
movq (%rdx), %rdi
movl %esi, %r14d
leaq (%rdi,%r14), %rax
cmpq 0x8(%rdx), %rax
jbe 0x56b4
decq %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, %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), %rdi
jmp 0x56b8
movq 0x10(%rbx), %rax
addq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2230
addq %r14, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x5718
movq %rdx, %r12
pushq $0x30
popq %r13
xorl %ebp, %ebp
movl 0x4(%r15), %eax
cmpq %rax, %rbp
jae 0x5718
movq 0x10(%r15), %rdi
addq %r13, %rdi
cvtsd2ss (%r12,%rbp,8), %xmm0
movq %r14, %rsi
callq 0x54e7
incq %rbp
addq $0x40, %r13
jmp 0x56f1
testq %rbx, %rbx
je 0x5756
pushq $0x18
popq %r12
xorl %r13d, %r13d
cmpq 0x40(%r15), %r13
jae 0x5756
movq 0x48(%r15), %rax
movq (%rax,%r12), %rdi
testq %rdi, %rdi
js 0x574d
shlq $0x4, %rdi
addq 0x50(%r15), %rdi
cvtsd2ss (%rbx,%r13,8), %xmm0
movq %r14, %rsi
callq 0x54e7
incq %r13
addq $0x20, %r12
jmp 0x5724
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minigraph/./kstring.h
// Function: kputc_
static inline void kputc_(int c, kstring_t *s)
{
	if (s->l + 1 > s->m) {
		s->m = s->l + 1;
		kroundup32(s->m);
		s->s = (char*)realloc(s->s, s->m);
	}
	s->s[s->l++] = c;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movl %edi, %ebx
movq (%rsi), %rcx
leaq 0x1(%rcx), %rdx
cmpq 0x8(%rsi), %rdx
jbe 0x5c5c
movq %rcx, %rax
shrq %rax
orq %rcx, %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, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x8(%r14)
movq 0x10(%r14), %rdi
callq 0x22b0
movq %rax, 0x10(%r14)
movq (%r14), %rcx
leaq 0x1(%rcx), %rdx
jmp 0x5c60
movq 0x10(%r14), %rax
movq %rdx, (%r14)
movb %bl, (%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minigraph/./kstring.h
// Function: kputc
static inline int kputc(int c, kstring_t *s)
{
	if (s->l + 1 >= s->m) {
		s->m = s->l + 2;
		kroundup32(s->m);
		s->s = (char*)realloc(s->s, s->m);
	}
	s->s[s->l++] = c;
	s->s[s->l] = 0;
	return c;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movl %edi, %ebx
movq (%rsi), %rdx
leaq 0x1(%rdx), %rcx
cmpq 0x8(%rsi), %rcx
jae 0x5fa3
movq 0x10(%r14), %rax
jmp 0x5fef
movq %rcx, %rax
shrq %rax
orq %rcx, %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, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x8(%r14)
movq 0x10(%r14), %rdi
callq 0x22b0
movq %rax, 0x10(%r14)
movq (%r14), %rdx
leaq 0x1(%rdx), %rcx
movq %rcx, (%r14)
movb %bl, (%rax,%rdx)
movq (%r14), %rax
movq 0x10(%r14), %rcx
movb $0x0, (%rcx,%rax)
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minigraph/./kstring.h
// Function: kputsn
static inline int kputsn(const char *p, int l, kstring_t *s)
{
	if (s->l + l + 1 >= s->m) {
		s->m = s->l + l + 2;
		kroundup32(s->m);
		s->s = (char*)realloc(s->s, s->m);
	}
	memcpy(s->s + s->l, p, l);
	s->l += l;
	s->s[s->l] = 0;
	return l;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r15
movq (%rdx), %rdi
movslq %esi, %r14
leaq (%r14,%rdi), %rax
incq %rax
cmpq 0x8(%rdx), %rax
jae 0x602e
movq 0x10(%rbx), %rax
jmp 0x6076
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), %rdi
addq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2230
movq (%rbx), %rax
addq %r14, %rax
movq %rax, (%rbx)
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movl %r14d, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x616a
movl %edi, %eax
negl %eax
cmovsl %edi, %eax
xorl %r14d, %r14d
pushq $0xa
popq %rcx
testl %eax, %eax
je 0x60d1
xorl %edx, %edx
divl %ecx
orb $0x30, %dl
movb %dl, (%rsp,%r14)
incq %r14
jmp 0x60bd
testl %edi, %edi
jns 0x60df
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 0x6136
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
testl %eax, %eax
jle 0x6157
movb -0x1(%rsp,%rax), %cl
decq %rax
movq (%rbx), %rdx
movq 0x10(%rbx), %rsi
leaq 0x1(%rdx), %rdi
movq %rdi, (%rbx)
movb %cl, (%rsi,%rdx)
jmp 0x6139
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
addq $0x18, %rsp
popq %rbx
popq %r14
retq
pushq $0x30
popq %rdi
movq %rbx, %rsi
addq $0x18, %rsp
popq %rbx
popq %r14
jmp 0x5f87
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minigraph/gfa-io.c
// Function: gfa_update_fa_seq
static void gfa_update_fa_seq(gfa_t *g, gfa_seg_t *seg, int32_t l_seq, const char *seq)
{
	if (seg == 0) return;
	seg->seq = gfa_strdup(seq);
	seg->len = l_seq;
	gfa_sseq_update(g, seg);
}

// Assembly:
testq %rsi, %rsi
je 0x6dd0
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movq %rcx, %rdi
callq 0x3f1e
movq %rax, 0x20(%rbx)
movl %ebp, (%rbx)
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x4571
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minigraph/gfa-aug.c
// Function: create_first_arc_semi
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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movl %r8d, %ebp
movl %ecx, %r14d
movl %edx, %r15d
movq %rsi, %r12
movq %rdi, %r13
movl 0x40(%rsp), %edi
movq 0x40(%r13), %rcx
cmpq 0x38(%r13), %rcx
jne 0x82c7
movq %rcx, %rax
shrq %rax
addq %rcx, %rax
testq %rcx, %rcx
pushq $0x10
popq %rsi
cmovneq %rax, %rsi
movq %rsi, 0x38(%r13)
movq 0x48(%r13), %rdi
shlq $0x5, %rsi
callq 0x22b0
movl 0x40(%rsp), %edi
movq %rax, 0x48(%r13)
movq 0x40(%r13), %rcx
jmp 0x82cb
movq 0x48(%r13), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, 0x40(%r13)
shlq $0x5, %rcx
movq %r15, %rdx
shlq $0x20, %rdx
shrl %r15d
shlq $0x6, %r15
movslq (%r12,%r15), %rsi
orq %rdx, %rsi
movq %rsi, (%rax,%rcx)
movl %r14d, 0x8(%rax,%rcx)
movl %ebp, 0xc(%rax,%rcx)
andq $0x0, 0x10(%rax,%rcx)
movabsq $0x1fffffffffffffff, %rdx # imm = 0x1FFFFFFFFFFFFFFF
andq %rdx, %rbx
incq %rdx
andq 0x18(%rax,%rcx), %rdx
xorl %esi, %esi
testl %edi, %edi
setne %sil
shlq $0x3f, %rsi
orq %rbx, %rsi
orq %rdx, %rsi
movq %rsi, 0x18(%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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, 0xc(%rsp)
movq %rdi, 0x50(%rsp)
movl 0x98(%rsp), %eax
xorl %r12d, %r12d
cmpl %r8d, %eax
jne 0x7e9c
movl %r12d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
setg %dil
movzbl %dil, %edi
leaq -0x1(,%rdi,2), %rdi
movq %rdi, 0x20(%rsp)
movl %edx, %edi
shrl %edi
movq %rdi, 0x38(%rsp)
movl %esi, %edi
negl %edi
movl %edi, (%rsp)
imull %esi, %esi
movl %esi, 0x4(%rsp)
movslq %ecx, %rcx
movslq %r8d, %rsi
cltq
subq %rsi, %rax
movq %rax, 0x48(%rsp)
addq 0xa0(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movslq 0x90(%rsp), %rax
subq %rcx, %rax
movq %rax, 0x40(%rsp)
movl %ecx, %eax
movq %rax, 0x30(%rsp)
movq %rcx, 0x18(%rsp)
movl %ecx, %r10d
notl %r10d
xorl %r15d, %r15d
pushq $0x1
popq %r11
xorl %r12d, %r12d
xorl %r14d, %r14d
xorl %ebp, %ebp
movl %edx, 0x8(%rsp)
cmpq %r15, 0x48(%rsp)
je 0x7e8a
movq 0x18(%rsp), %rax
addq %r15, %rax
incq %rax
cmpl %edx, 0xc(%rsp)
sete %cl
cmpq %r15, 0x40(%rsp)
sete %sil
testq %rax, %rax
je 0x7e8a
movq 0x50(%rsp), %rax
movq 0x10(%rax), %r9
movq 0x38(%rsp), %rdi
shlq $0x6, %rdi
movl (%r9,%rdi), %eax
movq 0x30(%rsp), %r8
addl %r15d, %r8d
cmpl %eax, %r8d
je 0x7e8a
andb %sil, %cl
jne 0x7e8a
movq 0x20(%r9,%rdi), %rcx
testb $0x1, %dl
movl %r10d, 0x14(%rsp)
movl %r11d, 0x10(%rsp)
jne 0x7f99
addq 0x18(%rsp), %rcx
movsbl (%r15,%rcx), %r13d
jmp 0x7fae
addl %r10d, %eax
cltq
movzbl (%rcx,%rax), %eax
leaq 0x26257(%rip), %rcx     # 0x2e200
movzbl (%rcx,%rax), %r13d
callq 0x2390
movq %rax, %rbx
movl %r13d, %edi
callq 0x2250
movq (%rbx), %rdx
movq 0x28(%rsp), %rcx
movsbq (%rcx,%r15), %rsi
pushq $0x1
popq %rcx
cmpl (%rdx,%rsi,4), %eax
je 0x7fd6
movl (%rsp), %ecx
addl %ecx, %ebp
cmpl %r14d, %ebp
movl 0x10(%rsp), %r11d
cmovgl %r11d, %r12d
cmovgl %ebp, %r14d
movl %r14d, %eax
subl 0x4(%rsp), %eax
cmpl %eax, %ebp
movl 0x8(%rsp), %edx
movl 0x14(%rsp), %r10d
jl 0x7e8a
movq 0x20(%rsp), %rax
addq %rax, %r15
subl %eax, %r10d
incl %r11d
jmp 0x7f1a
// File: /workspace/github_c_makefile_star2_O2/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
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, (%rsp)
movq %rdi, %r15
leaq 0x1c873(%rip), %r13     # 0x24fa0
pushq $0x2c
popq %rbp
xorl %r10d, %r10d
movslq (%rbx), %rax
cmpq %rax, %r10
jge 0x880b
movq 0x10(%rbx), %r14
movq %r10, %r12
shlq $0x4, %r12
movl (%r14,%r12), %ecx
movl 0x4(%r14,%r12), %eax
movq %rax, 0x8(%rsp)
movl %ecx, %eax
andl $0x1, %eax
leaq 0x1af4f(%rip), %rdx     # 0x236b3
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(%r14,%r12), %r11d
movq %r15, %rdi
leaq 0x1afaa(%rip), %rsi     # 0x23737
movq %r10, 0x10(%rsp)
movl %r10d, %edx
xorl %eax, %eax
pushq %r11
pushq 0x10(%rsp)
callq 0x2210
popq %rcx
popq %rdx
cmpl $0x0, 0xc(%r14,%r12)
jle 0x87f3
addq %r12, %r14
pushq $0x9
popq %rdi
movq %r15, %rsi
callq 0x21b0
xorl %r12d, %r12d
cmpl 0xc(%r14), %r12d
jge 0x87f3
testl %r12d, %r12d
je 0x87d2
movl %ebp, %edi
movq %r15, %rsi
callq 0x21b0
movq 0x18(%rbx), %rax
movslq 0x8(%r14), %rcx
addq %r12, %rcx
movl 0x4(%rax,%rcx,8), %edx
movq %r15, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x2210
incq %r12
jmp 0x87bd
pushq $0xa
popq %rdi
movq %r15, %rsi
callq 0x21b0
movq 0x10(%rsp), %r10
incq %r10
jmp 0x8733
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq