LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/miniasm/asg.c
// Function: asg_arc_del_short
int asg_arc_del_short(asg_t *g, float drop_ratio)
{
	uint32_t v, n_vtx = g->n_seq * 2, n_short = 0;
	for (v = 0; v < n_vtx; ++v) {
		asg_arc_t *av = asg_arc_a(g, v);
		uint32_t i, thres, nv = asg_arc_n(g, v);
		if (nv < 2) continue;
		thres = (uint32_t)(av[0].ol * drop_ratio + .499);
		for (i = nv - 1; i >= 1 && av[i].ol < thres; --i);
		for (i = i + 1; i < nv; ++i)
			av[i].del = 1, ++n_short;
	}
	if (n_short) {
		asg_cleanup(g);
		asg_symm(g);
	}
	fprintf(stderr, "[M::%s] removed %d short overlaps\n", __func__, n_short);
	return n_short;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
movl 0x14(%rdi), %eax
addl %eax, %eax
xorl %ecx, %ecx
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movsd 0x6bcd(%rip), %xmm1     # 0x9060
xorl %ebx, %ebx
cmpq %rax, %rcx
je 0x2546
movq 0x20(%r14), %rsi
movq (%rsi,%rcx,8), %r8
testl $0xfffffffe, %r8d       # imm = 0xFFFFFFFE
je 0x253e
movq 0x8(%r14), %r10
movq %r8, %r11
shrq $0x20, %r11
shlq $0x4, %r11
leaq (%r10,%r11), %rdi
movl 0xc(%rdi), %esi
andl %edx, %esi
cvtsi2ss %esi, %xmm2
mulss %xmm0, %xmm2
cvtss2sd %xmm2, %xmm2
addsd %xmm1, %xmm2
cvttsd2si %xmm2, %r9
movl %r8d, %esi
movq %rsi, %r15
shlq $0x4, %r15
addq %r11, %r15
addq %r15, %r10
addq $-0x4, %r10
movq %rsi, %r12
movq %r12, %r11
movl %r8d, %r15d
cmpq $0x1, %r12
je 0x2519
movl (%r10), %ebp
andl %edx, %ebp
addq $-0x10, %r10
leaq -0x1(%r11), %r12
leal -0x1(%r15), %r8d
cmpl %r9d, %ebp
jb 0x24f7
movl %r11d, %r8d
movl %r15d, %r9d
shlq $0x4, %r9
addq %r9, %rdi
addq $0xc, %rdi
cmpq %rsi, %r8
jae 0x253e
orb $-0x80, 0x3(%rdi)
incl %ebx
incq %r8
addq $0x10, %rdi
jmp 0x252a
incq %rcx
jmp 0x2495
testl %ebx, %ebx
je 0x255a
movq %r14, %rdi
callq 0x2447
movq %r14, %rdi
callq 0x2586
movq 0xba97(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x6afd(%rip), %rsi      # 0x9068
leaq 0x6b19(%rip), %rdx      # 0x908b
movl %ebx, %ecx
xorl %eax, %eax
callq 0x1120
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/miniasm/asg.c
// Function: asg_arc_del_multi
int asg_arc_del_multi(asg_t *g)
{
	uint32_t *cnt, n_vtx = g->n_seq * 2, n_multi = 0, v;
	cnt = (uint32_t*)calloc(n_vtx, 4);
	for (v = 0; v < n_vtx; ++v) {
		asg_arc_t *av = asg_arc_a(g, v);
		int32_t i, nv = asg_arc_n(g, v);
		if (nv < 2) continue;
		for (i = nv - 1; i >= 0; --i) ++cnt[av[i].v];
		for (i = nv - 1; i >= 0; --i)
			if (--cnt[av[i].v] != 0)
				av[i].del = 1, ++n_multi;
	}
	free(cnt);
	if (n_multi) asg_cleanup(g);
	fprintf(stderr, "[M::%s] removed %d multi-arcs\n", __func__, n_multi);
	return n_multi;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
movl 0x14(%rdi), %r15d
addl %r15d, %r15d
pushq $0x4
popq %rsi
movq %r15, %rdi
callq 0x10f0
xorl %ecx, %ecx
xorl %ebx, %ebx
cmpq %r15, %rcx
je 0x261d
movq 0x20(%r14), %rdx
movq (%rdx,%rcx,8), %rsi
cmpl $0x2, %esi
jl 0x2618
movq %rsi, %rdx
shrq $0x1c, %rdx
andq $-0x10, %rdx
addq 0x8(%r14), %rdx
decl %esi
movl %esi, %edi
testl %edi, %edi
js 0x2614
movl %edi, %r8d
shlq $0x4, %r8
movl 0x8(%rdx,%r8), %r8d
incl (%rax,%r8,4)
decl %edi
jmp 0x25e0
movl %esi, %edi
shlq $0x4, %rdi
movl 0x8(%rdx,%rdi), %r8d
decl (%rax,%r8,4)
je 0x2612
addq %rdx, %rdi
orb $-0x80, 0xf(%rdi)
incl %ebx
decl %esi
testl %esi, %esi
jns 0x25f8
incq %rcx
jmp 0x25bb
movq %rax, %rdi
callq 0x1040
testl %ebx, %ebx
je 0x2631
movq %r14, %rdi
callq 0x2447
movq 0xb9c0(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x6a5b(%rip), %rsi      # 0x909d
leaq 0x6a73(%rip), %rdx      # 0x90bc
movl %ebx, %ecx
xorl %eax, %eax
callq 0x1120
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/miniasm/asg.c
// Function: asg_arc_del_asymm
int asg_arc_del_asymm(asg_t *g)
{
	uint32_t e, n_asymm = 0;
	for (e = 0; e < g->n_arc; ++e) {
		uint32_t v = g->arc[e].v^1, u = g->arc[e].ul>>32^1;
		uint32_t i, nv = asg_arc_n(g, v);
		asg_arc_t *av = asg_arc_a(g, v);
		for (i = 0; i < nv; ++i)
			if (av[i].v == u) break;
		if (i == nv) g->arc[e].del = 1, ++n_asymm;
	}
	if (n_asymm) asg_cleanup(g);
	fprintf(stderr, "[M::%s] removed %d asymmetric arcs\n", __func__, n_asymm);
	return n_asymm;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
xorl %eax, %eax
xorl %ebx, %ebx
movl 0x4(%rdi), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpq %rcx, %rax
jae 0x26d1
movq 0x8(%rdi), %rcx
movq 0x20(%rdi), %r8
movq %rax, %rdx
shlq $0x4, %rdx
movl 0x4(%rcx,%rdx), %esi
movl 0x8(%rcx,%rdx), %r9d
xorq $0x1, %r9
movq (%r8,%r9,8), %r8
movl %r8d, %r9d
movq %r8, %r10
shrq $0x1c, %r10
andq $-0x10, %r10
leaq (%rcx,%r10), %r11
addq $0x8, %r11
xorl %r10d, %r10d
cmpq %r10, %r9
je 0x26c5
movl (%r11), %ebp
xorl %esi, %ebp
cmpl $0x1, %ebp
je 0x26c0
incq %r10
addq $0x10, %r11
jmp 0x26a8
cmpl %r10d, %r8d
jne 0x26cc
orb $-0x80, 0xf(%rcx,%rdx)
incl %ebx
incq %rax
jmp 0x2661
testl %ebx, %ebx
je 0x26da
callq 0x2447
movq 0xb917(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x69e3(%rip), %rsi      # 0x90ce
leaq 0x6a00(%rip), %rdx      # 0x90f2
movl %ebx, %ecx
xorl %eax, %eax
callq 0x1120
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/miniasm/asg.c
// Function: asg_extend
int asg_extend(const asg_t *g, uint32_t v, int max_ext, asg64_v *a)
{
	int ret;
	uint64_t lw;
	a->n = 0;
	kv_push(uint64_t, *a, v);
	do {
		ret = asg_is_utg_end(g, v^1, &lw);
		if (ret != 0) break;
		kv_push(uint64_t, *a, lw);
		v = (uint32_t)lw;
	} while (--max_ext > 0);
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %ebp
andq $0x0, (%rcx)
movl %esi, %r13d
movq %rdi, %r14
cmpq $0x0, 0x8(%rcx)
je 0x2905
movq 0x10(%rbx), %r15
xorl %eax, %eax
jmp 0x2923
movq $0x2, 0x8(%rbx)
movq 0x10(%rbx), %rdi
pushq $0x10
popq %rsi
callq 0x1180
movq %rax, %r15
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movl %r13d, %ecx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movq %rcx, (%r15,%rax,8)
incl %ebp
xorl $0x1, %r13d
movq %r14, %rdi
movl %r13d, %esi
movq %rsp, %rdx
callq 0x29a5
movl %eax, %r12d
testl %eax, %eax
jne 0x2993
movq (%rbx), %rax
cmpq 0x8(%rbx), %rax
jne 0x297d
leaq (%rax,%rax), %rsi
testq %rax, %rax
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x8(%rbx)
shlq $0x3, %rsi
movq %r15, %rdi
callq 0x1180
movq %rax, %r15
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq (%rsp), %r13
leaq 0x1(%rax), %rcx
movq %rcx, (%rbx)
movq %r13, (%r15,%rax,8)
decl %ebp
cmpl $0x1, %ebp
jg 0x2933
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/miniasm/asg.c
// Function: asg_is_utg_end
static inline int asg_is_utg_end(const asg_t *g, uint32_t v, uint64_t *lw)
{
	uint32_t w, nv, nw, nw0, nv0 = asg_arc_n(g, v^1);
	int i, i0 = -1;
	asg_arc_t *aw, *av = asg_arc_a(g, v^1);
	for (i = nv = 0; i < nv0; ++i)
		if (!av[i].del) i0 = i, ++nv;
	if (nv == 0) return ASG_ET_TIP; // tip
	if (nv > 1) return ASG_ET_MULTI_OUT; // multiple outgoing arcs
	if (lw) *lw = av[i0].ul<<32 | av[i0].v;
	w = av[i0].v ^ 1;
	nw0 = asg_arc_n(g, w);
	aw = asg_arc_a(g, w);
	for (i = nw = 0; i < nw0; ++i)
		if (!aw[i].del) ++nw;
	if (nw != 1) return ASG_ET_MULTI_NEI;
	return ASG_ET_MERGEABLE;
}

// Assembly:
pushq %rbx
movq 0x8(%rdi), %rax
movq 0x20(%rdi), %rcx
xorl $0x1, %esi
movq (%rcx,%rsi,8), %rsi
movl %esi, %r8d
shrq $0x1c, %rsi
andq $-0x10, %rsi
leaq (%rsi,%rax), %r9
addq $0xc, %r9
addq %rax, %rsi
xorl %r10d, %r10d
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
xorl %r11d, %r11d
cmpq %r10, %r8
je 0x29f4
xorl %ebx, %ebx
cmpl $0x0, (%r9)
cmovnsl %r10d, %edi
setns %bl
addl %ebx, %r11d
incq %r10
addq $0x10, %r9
jmp 0x29d6
testl %r11d, %r11d
je 0x2a1f
cmpl $0x1, %r11d
jne 0x2a26
movslq %edi, %rdi
shlq $0x4, %rdi
testq %rdx, %rdx
je 0x2a2d
movq (%rsi,%rdi), %r8
shlq $0x20, %r8
movl 0x8(%rsi,%rdi), %esi
orq %rsi, %r8
movq %r8, (%rdx)
jmp 0x2a31
movl $0x1, %eax
jmp 0x2a71
movl $0x2, %eax
jmp 0x2a71
movl 0x8(%rsi,%rdi), %esi
xorl $0x1, %esi
movq (%rcx,%rsi,8), %rdx
movl %edx, %ecx
shlq $0x4, %rcx
shrq $0x1c, %rdx
andq $-0x10, %rdx
addq %rdx, %rax
addq $0xc, %rax
xorl %edx, %edx
xorl %esi, %esi
cmpq %rdx, %rcx
je 0x2a66
movl (%rax,%rdx), %edi
notl %edi
shrl $0x1f, %edi
addl %edi, %esi
addq $0x10, %rdx
jmp 0x2a51
xorl %eax, %eax
cmpl $0x1, %esi
setne %al
leal (%rax,%rax,2), %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/miniasm/asg.c
// Function: asg_cut_tip
int asg_cut_tip(asg_t *g, int max_ext)
{
	asg64_v a = {0,0,0};
	uint32_t n_vtx = g->n_seq * 2, v, i, cnt = 0;
	for (v = 0; v < n_vtx; ++v) {
		if (g->seq[v>>1].del) continue;
		if (asg_is_utg_end(g, v, 0) != ASG_ET_TIP) continue; // not a tip
		if (asg_extend(g, v, max_ext, &a) == ASG_ET_MERGEABLE) continue; // not a short unitig
		for (i = 0; i < a.n; ++i)
			asg_seq_del(g, (uint32_t)a.a[i]>>1);
		++cnt;
	}
	free(a.a);
	if (cnt > 0) asg_cleanup(g);
	fprintf(stderr, "[M::%s] cut %d tips\n", __func__, cnt);
	return cnt;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, 0x8(%rsp)
movq %rdi, %r14
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rax
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movl 0x14(%rdi), %r13d
addl %r13d, %r13d
xorl %r12d, %r12d
xorl %ebx, %ebx
cmpl %r13d, %r12d
je 0x2b17
movq 0x18(%r14), %rax
movl %r12d, %ecx
shrl %ecx
cmpl $0x0, (%rax,%rcx,4)
js 0x2b12
movq %r14, %rdi
movl %r12d, %esi
xorl %edx, %edx
callq 0x29a5
cmpl $0x1, %eax
jne 0x2b12
movq %r14, %rdi
movl %r12d, %esi
movl 0x8(%rsp), %edx
leaq 0x10(%rsp), %rcx
callq 0x28dc
testl %eax, %eax
je 0x2b12
movl %ebx, 0xc(%rsp)
movq 0x10(%rsp), %r15
movq 0x20(%rsp), %rbp
xorl %eax, %eax
movl %eax, %ebx
cmpq %rbx, %r15
jbe 0x2b0c
movl (%rbp,%rbx,8), %esi
shrl %esi
movq %r14, %rdi
callq 0x2b5f
leal 0x1(%rbx), %eax
jmp 0x2af2
movl 0xc(%rsp), %ebx
incl %ebx
incl %r12d
jmp 0x2aa4
movq 0x20(%rsp), %rdi
callq 0x1040
testl %ebx, %ebx
je 0x2b2d
movq %r14, %rdi
callq 0x2447
movq 0xb4c4(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x65fe(%rip), %rsi      # 0x913c
leaq 0x660c(%rip), %rdx      # 0x9151
movl %ebx, %ecx
xorl %eax, %eax
callq 0x1120
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/miniasm/asg.h
// Function: asg_seq_del
static inline void asg_seq_del(asg_t *g, uint32_t s)
{
	uint32_t k;
	g->seq[s].del = 1;
	for (k = 0; k < 2; ++k) {
		uint32_t i, v = s<<1 | k;
		uint32_t nv = asg_arc_n(g, v);
		asg_arc_t *av = asg_arc_a(g, v);
		for (i = 0; i < nv; ++i) {
			av[i].del = 1;
			asg_arc_del(g, av[i].v^1, v^1, 1);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movq 0x18(%rdi), %rax
movl %esi, %ecx
orl $0x80000000, (%rax,%rcx,4) # imm = 0x80000000
addl %esi, %esi
movq %rsi, 0x8(%rsp)
xorl %r15d, %r15d
pushq $0x1
popq %rbp
cmpq $0x2, %r15
je 0x2bf4
movq %r15, 0x10(%rsp)
orq 0x8(%rsp), %r15
movq 0x8(%r14), %rax
movq 0x20(%r14), %rcx
movq (%rcx,%r15,8), %rcx
xorl $0x1, %r15d
movl %ecx, %r13d
shlq $0x4, %r13
shrq $0x1c, %rcx
andq $-0x10, %rcx
leaq (%rax,%rcx), %rbx
addq $0xc, %rbx
xorl %r12d, %r12d
cmpq %r12, %r13
je 0x2bea
orb $-0x80, 0x3(%rbx,%r12)
movl -0x4(%rbx,%r12), %esi
xorl $0x1, %esi
movq %r14, %rdi
movl %r15d, %edx
movl %ebp, %ecx
callq 0x2edc
addq $0x10, %r12
jmp 0x2bc4
movq 0x10(%rsp), %r15
incq %r15
jmp 0x2b8a
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/miniasm/asg.c
// Function: asg_cut_internal
int asg_cut_internal(asg_t *g, int max_ext)
{
	asg64_v a = {0,0,0};
	uint32_t n_vtx = g->n_seq * 2, v, i, cnt = 0;
	for (v = 0; v < n_vtx; ++v) {
		if (g->seq[v>>1].del) continue;
		if (asg_is_utg_end(g, v, 0) != ASG_ET_MULTI_NEI) continue;
		if (asg_extend(g, v, max_ext, &a) != ASG_ET_MULTI_NEI) continue;
		for (i = 0; i < a.n; ++i)
			asg_seq_del(g, (uint32_t)a.a[i]>>1);
		++cnt;
	}
	free(a.a);
	if (cnt > 0) asg_cleanup(g);
	fprintf(stderr, "[M::%s] cut %d internal sequences\n", __func__, cnt);
	return cnt;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebp
movq %rdi, %r14
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r15
movaps %xmm0, (%r15)
andq $0x0, 0x10(%r15)
movl 0x14(%rdi), %r13d
addl %r13d, %r13d
xorl %r12d, %r12d
xorl %ebx, %ebx
movl %esi, 0x8(%rsp)
cmpl %r13d, %r12d
je 0x2caf
movq 0x18(%r14), %rax
movl %r12d, %ecx
shrl %ecx
cmpl $0x0, (%rax,%rcx,4)
js 0x2caa
movq %r14, %rdi
movl %r12d, %esi
xorl %edx, %edx
callq 0x29a5
cmpl $0x3, %eax
jne 0x2caa
movq %r14, %rdi
movl %r12d, %esi
movl %ebp, %edx
movq %r15, %rcx
callq 0x28dc
cmpl $0x3, %eax
jne 0x2caa
movl %ebx, 0xc(%rsp)
movq 0x10(%rsp), %r15
movq 0x20(%rsp), %rbx
xorl %eax, %eax
movl %eax, %ebp
cmpq %rbp, %r15
jbe 0x2c9b
movl (%rbx,%rbp,8), %esi
shrl %esi
movq %r14, %rdi
callq 0x2b5f
leal 0x1(%rbp), %eax
jmp 0x2c82
movl 0xc(%rsp), %ebx
incl %ebx
movl 0x8(%rsp), %ebp
leaq 0x10(%rsp), %r15
incl %r12d
jmp 0x2c37
movq 0x20(%rsp), %rdi
callq 0x1040
testl %ebx, %ebx
je 0x2cc5
movq %r14, %rdi
callq 0x2447
movq 0xb32c(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x6487(%rip), %rsi      # 0x915d
leaq 0x64a3(%rip), %rdx      # 0x9180
movl %ebx, %ecx
xorl %eax, %eax
callq 0x1120
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/miniasm/asg.h
// Function: asg_arc_del
static inline void asg_arc_del(asg_t *g, uint32_t v, uint32_t w, int del)
{
	uint32_t i, nv = asg_arc_n(g, v);
	asg_arc_t *av = asg_arc_a(g, v);
	for (i = 0; i < nv; ++i)
		if (av[i].v == w) av[i].del = !!del;
}

// Assembly:
xorl %eax, %eax
testl %ecx, %ecx
setne %al
movq 0x8(%rdi), %r8
movq 0x20(%rdi), %rcx
movl %esi, %esi
movq (%rcx,%rsi,8), %rsi
shll $0x1f, %eax
movl %esi, %ecx
shlq $0x4, %rcx
shrq $0x1c, %rsi
andq $-0x10, %rsi
addq %r8, %rsi
addq $0xc, %rsi
xorl %edi, %edi
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
cmpq %rdi, %rcx
je 0x2f30
cmpl %edx, -0x4(%rsi,%rdi)
jne 0x2f2a
movl (%rsi,%rdi), %r9d
andl %r8d, %r9d
orl %eax, %r9d
movl %r9d, (%rsi,%rdi)
addq $0x10, %rdi
jmp 0x2f11
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/miniasm/hit.c
// Function: ma_hit_mark_unused
void ma_hit_mark_unused(sdict_t *d, size_t n, const ma_hit_t *a)
{
	size_t i;
	for (i = 0; i < d->n_seq; ++i)
		d->seq[i].aux = 0;
	for (i = 0; i < n; ++i)
		d->seq[a[i].qns>>32].aux = d->seq[a[i].tn].aux = 1;
	for (i = 0; i < d->n_seq; ++i) {
		sd_seq_t *s = &d->seq[i];
		if (!s->aux) s->del = 1;
		else s->aux = 0;
	}
}

// Assembly:
pushq $0xc
popq %rax
xorl %ecx, %ecx
movl (%rdi), %r8d
cmpq %r8, %rcx
jae 0x3c39
movq 0x8(%rdi), %r8
andl $0x80000000, (%r8,%rax) # imm = 0x80000000
incq %rcx
addq $0x10, %rax
jmp 0x3c1c
movl $0x80000000, %eax       # imm = 0x80000000
subq $0x1, %rsi
jb 0x3c82
movq 0x8(%rdi), %rcx
movl 0xc(%rdx), %r8d
shlq $0x4, %r8
movl 0xc(%rcx,%r8), %r9d
andl %eax, %r9d
incl %r9d
movl %r9d, 0xc(%rcx,%r8)
movq 0x8(%rdi), %rcx
movl 0x4(%rdx), %r8d
shlq $0x4, %r8
movl 0xc(%rcx,%r8), %r9d
andl %eax, %r9d
incl %r9d
movl %r9d, 0xc(%rcx,%r8)
addq $0x20, %rdx
jmp 0x3c3e
pushq $0xc
popq %rax
xorl %ecx, %ecx
movl $0x80000000, %edx       # imm = 0x80000000
movl (%rdi), %esi
cmpq %rsi, %rcx
jae 0x3cb9
movq 0x8(%rdi), %rsi
movl (%rsi,%rax), %r8d
movl %r8d, %r9d
andl %edx, %r9d
testl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
cmovel %edx, %r9d
movl %r9d, (%rsi,%rax)
incq %rcx
addq $0x10, %rax
jmp 0x3c8c
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/miniasm/miniasm.h
// Function: ma_hit2arc
static inline int ma_hit2arc(const ma_hit_t *h, int ql, int tl, int max_hang, float int_frac, int min_ovlp, asg_arc_t *p)
{
	int32_t tl5, tl3, ext5, ext3, qs = (int32_t)h->qns;
	uint32_t u, v, l; // u: query end; v: target end; l: length from u to v
	if (h->rev) tl5 = tl - h->te, tl3 = h->ts; // tl5: 5'-end overhang (on the query strand); tl3: similar
	else tl5 = h->ts, tl3 = tl - h->te;
	ext5 = qs < tl5? qs : tl5;
	ext3 = ql - h->qe < tl3? ql - h->qe : tl3;
	if (ext5 > max_hang || ext3 > max_hang || h->qe - qs < (h->qe - qs + ext5 + ext3) * int_frac)
		return MA_HT_INT;
	if (qs <= tl5 && ql - h->qe <= tl3) return MA_HT_QCONT; // query contained
	else if (qs >= tl5 && ql - h->qe >= tl3) return MA_HT_TCONT; // target contained
	else if (qs > tl5) u = 0, v = !!h->rev, l = qs - tl5;
	else u = 1, v = !h->rev, l = (ql - h->qe) - tl3;
	if (h->qe - qs + ext5 + ext3 < min_ovlp || h->te - h->ts + ext5 + ext3 < min_ovlp) return MA_HT_SHORT_OVLP; // short overlap
	u |= h->qns>>32<<1, v |= h->tn<<1;
	p->ul = (uint64_t)u<<32 | l, p->v = v, p->ol = ql - l, p->del = 0;
	return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r9, -0x8(%rsp)
movl %esi, %r9d
movq (%rdi), %r10
movq 0x18(%rdi), %r14
testl %r14d, %r14d
js 0x49d0
movl 0x10(%rdi), %r11d
movl 0x14(%rdi), %ebx
subl %ebx, %edx
movl %edx, %r12d
movl %r11d, %edx
jmp 0x49dc
movl 0x10(%rdi), %r11d
movl 0x14(%rdi), %ebx
subl %ebx, %edx
movl %r11d, %r12d
cmpl %r10d, %edx
movl %r10d, %ebp
cmovll %edx, %ebp
movl 0x8(%rdi), %r13d
movl %r9d, %esi
subl %r13d, %esi
cmpl %r12d, %esi
movl %r12d, %r15d
cmovbl %esi, %r15d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %ecx, %ebp
jg 0x4ad3
cmpl %ecx, %r15d
jg 0x4ad3
movl %r13d, %ecx
subl %r10d, %ecx
cvtsi2ss %rcx, %xmm1
addl %ebp, %ecx
addl %r15d, %ecx
cvtsi2ss %rcx, %xmm2
mulss %xmm0, %xmm2
ucomiss %xmm1, %xmm2
ja 0x4ad3
cmpl %edx, %r10d
jg 0x4a45
cmpl %r12d, %esi
ja 0x4a45
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
jmp 0x4ad3
cmpl %edx, %r10d
jl 0x4a56
cmpl %r12d, %esi
jb 0x4a56
movl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
jmp 0x4ad3
testl %r14d, %r14d
setns %sil
addl %r13d, %r12d
movl %r9d, %eax
subl %r12d, %eax
xorl %r12d, %r12d
movl %r10d, %r14d
subl %edx, %r14d
setg %dl
setle %r13b
cmovlel %eax, %r14d
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
cmpl %r8d, %ecx
jb 0x4ad3
addl %ebp, %r15d
addl %ebx, %r15d
subl %r11d, %r15d
cmpl %r8d, %r15d
jb 0x4ad3
movb %r13b, %r12b
xorb %dl, %sil
movzbl %sil, %eax
shrq $0x1f, %r10
andl $-0x2, %r10d
orl %r10d, %r12d
movl 0xc(%rdi), %ecx
leal (%rax,%rcx,2), %eax
shlq $0x20, %r12
movl %r14d, %ecx
orq %r12, %rcx
movq -0x8(%rsp), %rdx
movq %rcx, (%rdx)
movl %eax, 0x8(%rdx)
subl %r14d, %r9d
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
movl %r9d, 0xc(%rdx)
movl %r14d, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/miniasm/asg.h
// Function: asg_arc_pushp
static inline asg_arc_t *asg_arc_pushp(asg_t *g)
{
	if (g->n_arc == g->m_arc) {
		g->m_arc = g->m_arc? g->m_arc<<1 : 16;
		g->arc = (asg_arc_t*)realloc(g->arc, g->m_arc * sizeof(asg_arc_t));
	}
	return &g->arc[g->n_arc++];
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x4(%rdi), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl (%rdi), %ecx
jne 0x5007
leal (%rcx,%rcx), %eax
testl %ecx, %ecx
pushq $0x10
popq %rsi
cmovnel %eax, %esi
movl %esi, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x4, %rsi
callq 0x1180
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0x500b
movq 0x8(%rbx), %rax
leal 0x1(%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movl %edx, 0x4(%rbx)
movl %ecx, %ecx
shlq $0x4, %rcx
addq %rax, %rcx
movq %rcx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/miniasm/asm.c
// Function: ma_sg_print
void ma_sg_print(const asg_t *g, const sdict_t *d, const ma_sub_t *sub, FILE *fp)
{
	uint32_t i;
	for (i = 0; i < g->n_arc; ++i) {
		const asg_arc_t *p = &g->arc[i];
		if (sub) {
			const ma_sub_t *sq = &sub[p->ul>>33], *st = &sub[p->v>>1];
			fprintf(fp, "L\t%s:%d-%d\t%c\t%s:%d-%d\t%c\t%d:\tL1:i:%d\n", d->seq[p->ul>>33].name, sq->s + 1, sq->e, "+-"[p->ul>>32&1],
					d->seq[p->v>>1].name, st->s + 1, st->e, "+-"[p->v&1], p->ol, (uint32_t)p->ul);
		} else {
			fprintf(fp, "L\t%s\t%c\t%s\t%c\t%d:\tL1:i:%d\n", d->seq[p->ul>>33].name, "+-"[p->ul>>32&1],
					d->seq[p->v>>1].name, "+-"[p->v&1], p->ol, (uint32_t)p->ul);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, 0x18(%rsp)
movq %rdx, %r14
movq %rsi, 0x10(%rsp)
movq %rdi, %rbx
pushq $0xc
popq %r13
xorl %r12d, %r12d
movq %rdi, 0x20(%rsp)
movl 0x4(%rbx), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %r12
jae 0x51b1
movq 0x8(%rbx), %rax
testq %r14, %r14
je 0x5132
movq -0xc(%rax,%r13), %r11
movq %r11, %rdx
shrq $0x21, %rdx
movl -0x4(%rax,%r13), %esi
movl %esi, %ebx
shrl %ebx
movq 0x10(%rsp), %rcx
movq 0x8(%rcx), %r9
movq %r9, 0x30(%rsp)
movl (%r14,%rdx,8), %ecx
movl 0x4(%r14,%rdx,8), %edi
movl %edi, 0xc(%rsp)
shlq $0x4, %rdx
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
andl %r8d, %ecx
incl %ecx
btq $0x20, %r11
leaq 0x44b0(%rip), %r10      # 0x9570
movq %r10, %rdi
adcq $0x0, %rdi
movq (%r9,%rdx), %rdx
movsbl (%rdi), %r9d
movl (%r14,%rbx,8), %ebp
movl 0x4(%r14,%rbx,8), %edi
movq %rdi, 0x28(%rsp)
shlq $0x4, %rbx
andl %r8d, %ebp
incl %ebp
andl $0x1, %esi
movsbl (%rsi,%r10), %r15d
movq %r14, %r10
movl (%rax,%r13), %r14d
andl %r8d, %r14d
movq 0x18(%rsp), %rdi
leaq 0x4445(%rip), %rsi      # 0x9549
movl 0xc(%rsp), %r8d
xorl %eax, %eax
pushq %r11
pushq %r14
movq %r10, %r14
pushq %r15
pushq 0x40(%rsp)
pushq %rbp
movq 0x58(%rsp), %r10
pushq (%r10,%rbx)
movq 0x50(%rsp), %rbx
callq 0x1120
addq $0x30, %rsp
jmp 0x51a5
movq 0x10(%rsp), %rcx
movq 0x8(%rcx), %rsi
movq -0xc(%rax,%r13), %r10
movq %r10, %rcx
shrq $0x1d, %rcx
andq $-0x10, %rcx
movq (%rsi,%rcx), %rdx
btq $0x20, %r10
leaq 0x4415(%rip), %r9       # 0x9570
movq %r9, %rcx
adcq $0x0, %rcx
movsbl (%rcx), %ecx
movl -0x4(%rax,%r13), %edi
movl %edi, %r8d
shrl %r8d
shlq $0x4, %r8
movq (%rsi,%r8), %r8
andl $0x1, %edi
movsbl (%rdi,%r9), %r9d
movl (%rax,%r13), %r11d
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %r11d
movq 0x18(%rsp), %rdi
leaq 0x43db(%rip), %rsi      # 0x9573
xorl %eax, %eax
pushq %r10
pushq %r11
callq 0x1120
popq %rcx
popq %rdx
incq %r12
addq $0x10, %r13
jmp 0x5057
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/miniasm/asm.c
// Function: ma_ug_destroy
KDQ_INIT(uint64_t)

void ma_ug_destroy(ma_ug_t *ug)
{
	uint32_t i;
	if (ug == 0) return;
	for (i = 0; i < ug->u.n; ++i) {
		free(ug->u.a[i].a);
		free(ug->u.a[i].s);
	}
	free(ug->u.a);
	asg_destroy(ug->g);
	free(ug);
}

// Assembly:
testq %rdi, %rdi
je 0x5218
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %eax, %eax
movl %eax, %r14d
movq 0x10(%rbx), %rdi
cmpq %r14, (%rbx)
jbe 0x51fd
imulq $0x28, %r14, %r15
movq 0x18(%rdi,%r15), %rdi
callq 0x1040
movq 0x10(%rbx), %rax
movq 0x20(%rax,%r15), %rdi
callq 0x1040
leal 0x1(%r14), %eax
jmp 0x51cf
callq 0x1040
movq 0x18(%rbx), %rdi
callq 0x2222
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1040
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/cf.c
// Function: cf_open
color_file_t *cf_open(const char *fn)
{
	gzFile fp = gzopen(fn, "r");
	if (fp == 0) return 0;
	color_file_t *pf = (color_file_t*) calloc(1, sizeof(color_file_t));
	pf->fp = ks_init(fp);
	return pf;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x2b09(%rip), %rsi      # 0x905c
callq 0x11a0
testq %rax, %rax
je 0x65a2
movq %rax, %r14
pushq $0x1
popq %r15
pushq $0x20
popq %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x10f0
movq %rax, %rbx
movq %r15, %rdi
movq %r12, %rsi
callq 0x10f0
movq %rax, %r15
movq %r14, 0x10(%rax)
movl $0x40000, 0x8(%rax)     # imm = 0x40000
movl $0x10000, %edi          # imm = 0x10000
callq 0x1160
movq %rax, 0x18(%r15)
movq %r15, (%rbx)
jmp 0x65a4
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/color.c
// Function: km_cf_print
void km_cf_print(sdict_t *d, km_color_t *c)
{
	for (size_t i = 0; i < d->n_seq; ++i) {
		if (c[i].c1 == 0) continue;
		else if (c[i].c2 == 0) printf("%s\t%llu\n", d->seq[i].name, c[i].c1);
		else printf("%s\t%llu\t%llu\n", d->seq[i].name, c[i].c1, c[i].c2);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x2cfd(%rip), %r15      # 0x9780
leaq 0x2cff(%rip), %r12      # 0x9789
xorl %r13d, %r13d
xorl %ebp, %ebp
movl (%r14), %eax
cmpq %rax, %rbp
jae 0x6ad1
movq (%rbx,%r13), %rdx
testq %rdx, %rdx
je 0x6ac8
movq 0x8(%rbx,%r13), %rcx
movq 0x8(%r14), %rax
movq (%rax,%r13), %rsi
testq %rcx, %rcx
je 0x6abe
movq %r12, %rdi
xorl %eax, %eax
callq 0x1090
jmp 0x6ac8
movq %r15, %rdi
xorl %eax, %eax
callq 0x1090
incq %rbp
addq $0x10, %r13
jmp 0x6a8f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/color.c
// Function: km_exclude
sdict_t *km_exclude(const char *fn, uint64_t color)
{
	color_file_t *fp;
	fp = cf_open(fn);
	if (!fp) {
		fprintf(stderr, "[E::%s] could not open color file %s\n", __func__, fn);
		exit(1);
	}

	sdict_t *d = sd_init();
	color_rec_t r;
	while (color_read(fp, &r) >= 0) {
		if (r.c1 <= color && r.c2 >= color)
			sd_put(d, r.qn, (uint32_t) r.c1);
	}
	cf_close(fp);
	fprintf(stderr, "[M::%s] dropped %d colored reads\n", __func__, d->n_seq);
	return d;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x6544
testq %rax, %rax
je 0x6b6f
movq %rax, %r15
callq 0x145c
movq %rax, %rbx
movq %rsp, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x65f7
testl %eax, %eax
js 0x6b37
movq 0x8(%rsp), %rdx
cmpq %r14, %rdx
ja 0x6b09
cmpq %r14, 0x10(%rsp)
jb 0x6b09
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x14fd
jmp 0x6b09
movq %r15, %rdi
callq 0x65b3
movq 0x74b2(%rip), %rax      # 0xdff8
movq (%rax), %rdi
movl (%rbx), %ecx
leaq 0x2c76(%rip), %rsi      # 0x97c8
leaq 0x2c64(%rip), %rdx      # 0x97bd
xorl %eax, %eax
callq 0x1120
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x7482(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x2c17(%rip), %rsi      # 0x9797
leaq 0x2c36(%rip), %rdx      # 0x97bd
movq %rbx, %rcx
xorl %eax, %eax
callq 0x1120
pushq $0x1
popq %rdi
callq 0x1200
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/color.c
// Function: km_colors_read
km_color_t *km_colors_read(const char *fn, sdict_t *d)
{
	color_file_t *fp = cf_open(fn);
	if (fp == 0) {
		fprintf(stderr, "[E::%s] could not open color file %s\n", __func__, fn);
		exit(1);
	}

	km_color_t *colors = (km_color_t*) calloc(d->n_seq, sizeof(km_color_t));
	color_rec_t r;
	size_t ones = 0, twos = 0, tot = 0;
	while (color_read(fp, &r) >= 0) {
		int32_t id = sd_get(d, r.qn);
		if (id < 0 || r.c1 == 0) continue;
		colors[id].c1 = r.c1, colors[id].c2 = r.c2;

		++tot;
		if (r.c2 - r.c1 == 0) ++ones;
		else if (r.c2 - r.c1 == 1) ++twos;
	}
	cf_close(fp);
	fprintf(stderr, "[M::%s] stored %ld colors with %ld ones, %ld twos, %ld multis, %ld uncolored\n",
		__func__, tot, ones, twos, tot-ones-twos, d->n_seq-tot);
	return colors;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x6544
testq %rax, %rax
je 0x6c9b
movq %rax, %r13
movl (%r14), %edi
pushq $0x10
popq %rsi
callq 0x10f0
movq %rax, %rbx
movq $0x0, 0x8(%rsp)
leaq 0x10(%rsp), %r15
xorl %ebp, %ebp
xorl %r12d, %r12d
movq %r13, %rdi
movq %r15, %rsi
callq 0x65f7
testl %eax, %eax
js 0x6c42
movq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x17a3
testl %eax, %eax
sets %dl
movq 0x18(%rsp), %rcx
testq %rcx, %rcx
sete %sil
orb %dl, %sil
jne 0x6bdf
movl %eax, %edx
shlq $0x4, %rdx
movq %rcx, (%rbx,%rdx)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rbx,%rdx)
incq %rbp
subq %rcx, %rax
jne 0x6c32
incq %r12
jmp 0x6bdf
xorl %ecx, %ecx
cmpq $0x1, %rax
sete %cl
addq %rcx, 0x8(%rsp)
jmp 0x6bdf
movq %r13, %rdi
callq 0x65b3
movq 0x73a7(%rip), %rax      # 0xdff8
movq (%rax), %rdi
movq 0x8(%rsp), %r9
movq %rbp, %r10
subq %r9, %r10
subq %r12, %r10
movl (%r14), %r11d
subq %rbp, %r11
leaq 0x2b8a(%rip), %rsi      # 0x97f9
leaq 0x2b74(%rip), %rdx      # 0x97ea
movq %rbp, %rcx
movq %r12, %r8
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x1120
popq %rcx
popq %rdx
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x7356(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x2aeb(%rip), %rsi      # 0x9797
leaq 0x2b37(%rip), %rdx      # 0x97ea
movq %rbx, %rcx
xorl %eax, %eax
callq 0x1120
pushq $0x1
popq %rdi
callq 0x1200
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/color.c
// Function: km_cut_cross
int km_cut_cross(asg_t *g, km_color_t *c, int max_distance)
{
	size_t n_cross = 0;
	for (uint32_t e = 0; e < g->n_arc; ++e) {
		uint32_t v = g->arc[e].ul>>33, u = g->arc[e].v>>1;
		// if run with no propagation, we allow arcs to/from uncolored reads
		if (!COLORED(c[v]) || !COLORED(c[u])) continue;
		if (overlap(c[v], c[u], max_distance)) continue;
		g->arc[e].del = 1, ++n_cross;
	}
	fprintf(stderr, "[M::%s] removed %ld color crossing arcs\n", __func__, n_cross);
	if (n_cross)
		asg_cleanup(g);
	return n_cross;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movslq %edx, %rax
pushq $0xc
popq %rcx
xorl %edx, %edx
xorl %r14d, %r14d
movl 0x4(%rbx), %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
cmpq %rdi, %rdx
jae 0x6d53
movq 0x8(%rbx), %rdi
movq -0xc(%rdi,%rcx), %r8
movl -0x4(%rdi,%rcx), %r9d
shrq $0x1d, %r8
andq $-0x10, %r8
leaq (%rsi,%r8), %r10
movq (%rsi,%r8), %r8
testq %r8, %r8
jne 0x6d10
cmpq $0x0, 0x8(%r10)
je 0x6d4a
shrl %r9d
shlq $0x4, %r9
movq (%rsi,%r9), %r11
movq 0x8(%rsi,%r9), %r9
movq %r11, %r15
orq %r9, %r15
je 0x6d4a
movq 0x8(%r10), %r10
cmpq %r11, %r8
cmovaq %r8, %r11
cmpq %r9, %r10
cmovbq %r10, %r9
addq %rax, %r9
cmpq %r11, %r9
jae 0x6d4a
orb $-0x80, 0x3(%rdi,%rcx)
incq %r14
incq %rdx
addq $0x10, %rcx
jmp 0x6cd8
movq 0x729e(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x2ae3(%rip), %rsi      # 0x9847
leaq 0x2b05(%rip), %rdx      # 0x9870
movq %r14, %rcx
xorl %eax, %eax
callq 0x1120
testq %r14, %r14
je 0x6d82
movq %rbx, %rdi
callq 0x2447
movl %r14d, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/color.c
// Function: km_intervalize
km_color_t *km_intervalize(km_multicolor_t *colors, size_t n_reads)
{
	km_color_t *intervals = (km_color_t*) calloc(n_reads, sizeof(km_color_t));
	for (size_t i = 0; i < n_reads; i++) {
		if (colors[i].n == 0) continue;
		// TODO: Combine with color merging
		uint64_t min = colors[i].a[0], max = colors[i].a[0];
		for (size_t j = 1; j < colors[i].n; j++) {
			min = (colors[i].a[j] < min) ? colors[i].a[j] : min;
			max = (colors[i].a[j] > max) ? colors[i].a[j] : max;
		}
		intervals[i].c1 = min;
		intervals[i].c2 = max;
	}
	return intervals;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x10
popq %rsi
movq %rbx, %rdi
callq 0x10f0
xorl %ecx, %ecx
pushq $0x1
popq %rdx
cmpq %rbx, %rcx
je 0x6df8
imulq $0x18, %rcx, %rdi
movq (%r14,%rdi), %rsi
testq %rsi, %rsi
je 0x6df3
addq %r14, %rdi
movq 0x10(%rdi), %r9
movq (%r9), %rdi
movq %rdi, %r8
movq %rdx, %r10
cmpq %r10, %rsi
je 0x6de3
movq (%r9,%r10,8), %r11
cmpq %rdi, %r11
cmovbq %r11, %rdi
cmpq %r8, %r11
cmovaq %r11, %r8
incq %r10
jmp 0x6dc7
movq %rcx, %rsi
shlq $0x4, %rsi
movq %rdi, (%rax,%rsi)
movq %r8, 0x8(%rax,%rsi)
incq %rcx
jmp 0x6da5
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/index.c
// Function: km_idx_destroy
void km_idx_destroy(km_idx_t *idx)
{
	if (idx == 0) return;
	for (uint32_t i = 0; i < idx->d->n_seq; i++) {
		for (uint32_t j = 0; j < idx->targets[i].n_bins; j++)
			free(idx->targets[i].bins[j].a);
		free(idx->targets[i].bins);
	}
	free(idx->targets);
	sd_destroy(idx->d);
	free(idx);
}

// Assembly:
testq %rdi, %rdi
je 0x72d7
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
pushq $0x10
popq %r15
movq 0x8(%rbx), %rax
movl (%rax), %eax
cmpq %rax, %r14
jae 0x72af
movq %r14, %r12
shlq $0x4, %r12
movq %r15, %r13
xorl %ebp, %ebp
movq 0x10(%rbx), %rax
movl (%rax,%r12), %ecx
movq 0x8(%rax,%r12), %rdi
cmpq %rcx, %rbp
jae 0x72a5
movq (%rdi,%r13), %rdi
callq 0x1040
incq %rbp
addq $0x18, %r13
jmp 0x7281
callq 0x1040
incq %r14
jmp 0x726a
movq 0x10(%rbx), %rdi
callq 0x1040
movq 0x8(%rbx), %rdi
callq 0x1484
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1040
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/index.c
// Function: km_pileup
km_hit_v km_pileup(km_idx_t *idx, const char *contig, const uint32_t pos)
{
	km_hit_v v = {0,0,0};

	int32_t tid = sd_get(idx->d, contig);
	size_t id = pos / idx->length;
	if (tid < 0 || id >= idx->targets[tid].n_bins) return v;
	km_hit_v *bin = &idx->targets[tid].bins[id];
	for (size_t i = 0; i < bin->n; i++) {
		const km_hit_t h = bin->a[i];
		if (h.s > pos || h.e < pos) continue;
		kv_push(km_hit_t, v, h);
	}
	return v;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
movq 0x8(%rsi), %rdi
movq %rdx, %rsi
callq 0x17a3
movl %eax, %ecx
movl %ebp, %eax
xorl %edx, %edx
divl (%r14)
testl %ecx, %ecx
js 0x73db
movq 0x10(%r14), %rdx
movl %ecx, %ecx
shlq $0x4, %rcx
cmpl (%rdx,%rcx), %eax
jae 0x73db
movl %ebp, %r8d
movq %rbx, 0x8(%rsp)
addq %rcx, %rdx
imulq $0x18, %rax, %r13
addq 0x8(%rdx), %r13
pushq $0x8
popq %r15
xorl %eax, %eax
xorl %ecx, %ecx
xorl %r10d, %r10d
xorl %r12d, %r12d
movl %ebp, (%rsp)
cmpq (%r13), %r12
jae 0x73cb
movq 0x10(%r13), %rdx
movl -0x4(%rdx,%r15), %ebx
cmpl %r8d, %ebx
seta %sil
movl (%rdx,%r15), %ebp
cmpl %r8d, %ebp
setb %dil
orb %sil, %dil
jne 0x73c2
movl -0x8(%rdx,%r15), %esi
cmpq %rcx, %r10
jne 0x73b0
leaq (%rcx,%rcx), %r14
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %r14
movl %esi, 0x4(%rsp)
imulq $0xc, %r14, %rsi
movq %rax, %rdi
movq %r10, 0x10(%rsp)
callq 0x1180
movl 0x4(%rsp), %esi
movq 0x10(%rsp), %r10
movl (%rsp), %r8d
movq %r14, %rcx
imulq $0xc, %r10, %rdx
incq %r10
movl %esi, (%rax,%rdx)
movl %ebx, 0x4(%rax,%rdx)
movl %ebp, 0x8(%rax,%rdx)
incq %r12
addq $0xc, %r15
jmp 0x734d
movq 0x8(%rsp), %rbx
movq %rcx, 0x8(%rbx)
movq %rax, 0x10(%rbx)
movq %r10, (%rbx)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/rikuu[P]kermit/marker.c
// Function: marker_open
marker_file_t *marker_open(const char *fn)
{
	gzFile fp = gzopen(fn, "r");
	if (fp == 0) return 0;
	marker_file_t *pf = (marker_file_t *) calloc(1, sizeof(marker_file_t));
	pf->fp = ks_init(fp);
	return pf;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x17e5(%rip), %rsi      # 0x905c
callq 0x11a0
testq %rax, %rax
je 0x78c6
movq %rax, %r14
pushq $0x1
popq %r15
pushq $0x20
popq %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x10f0
movq %rax, %rbx
movq %r15, %rdi
movq %r12, %rsi
callq 0x10f0
movq %rax, %r15
movq %r14, 0x10(%rax)
movl $0x40000, 0x8(%rax)     # imm = 0x40000
movl $0x10000, %edi          # imm = 0x10000
callq 0x1160
movq %rax, 0x18(%r15)
movq %r15, (%rbx)
jmp 0x78c8
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/sharmaeklavya2[P]cerplag/util/hmap.gen.c
// Function: pch_int_hmap_get_node
ITYPED(hmap_node)* ITYPED(hmap_get_node)(KTYPE k, VTYPE v, ITYPED(hmap_node)* next)
{
    ITYPED(hmap_node)* n = malloc(sizeof(ITYPED(hmap_node)));
    n->key = k;
    n->value = v;
    n->next = next;
    return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %r14d
movq %rdi, %r15
pushq $0x18
popq %rdi
callq 0x3140
movq %r15, 0x8(%rax)
movl %r14d, 0x10(%rax)
movq %rbx, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sharmaeklavya2[P]cerplag/./util/hmap.gen.c
// Function: ST_hmap_destroy_chain
void ITYPED(hmap_destroy_chain)(ITYPED(hmap_node)* p, bool destroy_key, bool destroy_value)
{
    ITYPED(hmap_node)* p2 = NULL;
    while(p != NULL)
    {
        p2 = p->next;
        p->next = NULL;
        if(destroy_key)
            KTYPED(destroy)(p->key);
        if(destroy_value)
            VTYPED(destroy)(p->value);
        free(p);
        p = p2;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movl %esi, %r14d
movq %rdi, %r15
testq %r15, %r15
je 0x8ad7
movq (%r15), %r12
andq $0x0, (%r15)
testb %r14b, %r14b
je 0x8abd
movq 0x8(%r15), %rdi
callq 0x3b5c
testb %bl, %bl
je 0x8aca
movq 0x10(%r15), %rdi
callq 0x3030
movq %r15, %rdi
callq 0x3030
movq %r12, %r15
jmp 0x8aa3
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sharmaeklavya2[P]cerplag/util/hmap.gen.c
// Function: pch_int_hmap_init
void ITYPED(hmap_init)(ITYPED(hmap)* phmap, int capacity, bool destroy_key)
{
#ifdef LOG_MEM
    fprintf(stderr, "Called %s(%p, %d, %d)\n", __func__, (void*)phmap, capacity, destroy_key);
#endif
    phmap->plist = calloc(capacity, sizeof(ITYPED(hmap_node)*));
    phmap->capacity = capacity;
    phmap->size = 0;
    phmap->destroy_key = destroy_key;
    phmap->destroy_value = true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r14
movslq %esi, %r15
pushq $0x8
popq %rsi
movq %r15, %rdi
callq 0x3110
movq %rax, (%r14)
movl %r15d, 0x8(%r14)
andl $0x0, 0xc(%r14)
movb %bl, 0x10(%r14)
movb $0x1, 0x11(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sharmaeklavya2[P]cerplag/util/hmap.gen.c
// Function: pch_int_hmap_clear
void ITYPED(hmap_clear)(ITYPED(hmap)* phmap)
{
    int i;
    for(i=0; i < (phmap->capacity); ++i) {
        ITYPED(hmap_destroy_chain)(phmap->plist[i], phmap->destroy_key, phmap->destroy_value);
        phmap->plist[i] = NULL;
    }
    free(phmap->plist);
    phmap->plist = NULL;
    phmap->size = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %r14d, %r14d
movslq 0x8(%rbx), %rax
movq (%rbx), %rdi
cmpq %rax, %r14
jge 0x33c1
movq (%rdi,%r14,8), %rdi
movzbl 0x10(%rbx), %esi
movzbl 0x11(%rbx), %edx
callq 0x32fd
movq (%rbx), %rax
andq $0x0, (%rax,%r14,8)
incq %r14
jmp 0x3397
callq 0x3030
andq $0x0, (%rbx)
andl $0x0, 0xc(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sharmaeklavya2[P]cerplag/util/hmap.gen.c
// Function: pch_int_hmap_query
ITYPED(hmap_node)* ITYPED(hmap_query)(ITYPED(hmap)* phmap, KTYPE k)
{
    unsigned h = KTYPED(hash)(k) % (phmap->capacity);
    ITYPED(hmap_node)* n = phmap->plist[h];
    while(n != NULL && !(KTYPED(equals)(n->key, k)))
        n = n->next;
    return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
movq %rsi, %rdi
callq 0x3b36
xorl %edx, %edx
divl 0x8(%r15)
movl %edx, %r14d
shlq $0x3, %r14
addq (%r15), %r14
movq (%r14), %r14
testq %r14, %r14
je 0x342f
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x3b26
testb %al, %al
je 0x3417
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sharmaeklavya2[P]cerplag/util/hmap.gen.c
// Function: pch_int_hmap_get
VTYPE ITYPED(hmap_get)(ITYPED(hmap)* phmap, KTYPE k)
{
    ITYPED(hmap_node)* n = ITYPED(hmap_query)(phmap, k);
    if(n == NULL) {
        fprintf(stderr, "KeyError: ");
        KTYPED(print)(k, stderr);
        fprintf(stderr, "\n");
        abort();
    }
    return n->value;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
callq 0x33ef
testq %rax, %rax
je 0x3459
movl 0x10(%rax), %eax
popq %rbx
popq %r14
popq %rbp
retq
movq 0x10b98(%rip), %r14     # 0x13ff8
movq (%r14), %rcx
leaq 0x9b9a(%rip), %rdi      # 0xd004
pushq $0xa
popq %rsi
pushq $0x1
popq %rdx
callq 0x31c0
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x3b52
movq (%r14), %rsi
pushq $0xa
popq %rdi
callq 0x3100
callq 0x3050
// File: /workspace/github_c_makefile_star2_O2/sharmaeklavya2[P]cerplag/util/hmap.gen.c
// Function: pch_int_hmap_insert
ITYPED(hmap_node)* ITYPED(hmap_insert)(ITYPED(hmap)* phmap, KTYPE k, VTYPE v)
{
    const int lf_num = 3, lf_den = 4;
    if(lf_den * (phmap->size+1) > lf_num * phmap->capacity)
        ITYPED(hmap_rehash)(phmap, 2 * (phmap->capacity));
    unsigned h = KTYPED(hash)(k) % (phmap->capacity);
    ITYPED(hmap_node)** plist = phmap->plist;
    ITYPED(hmap_node)* n = plist[h];
    while(n != NULL && !(KTYPED(equals)(n->key, k)))
        n = n->next;
    if(n == NULL) {
        (phmap->size)++;
        n = plist[h] = ITYPED(hmap_get_node)(k, v, plist[h]);
    }
    return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movl 0x8(%rdi), %esi
movl 0xc(%rdi), %eax
leal 0x4(,%rax,4), %eax
leal (%rsi,%rsi,2), %ecx
cmpl %ecx, %eax
jle 0x34c4
addl %esi, %esi
movq %r15, %rdi
callq 0x3525
movq %r14, %rdi
callq 0x3b36
xorl %edx, %edx
divl 0x8(%r15)
movl %edx, %r12d
shlq $0x3, %r12
addq (%r15), %r12
movq %r12, %r13
movq (%r13), %r13
testq %r13, %r13
je 0x34fa
movq 0x8(%r13), %rdi
movq %r14, %rsi
callq 0x3b26
testb %al, %al
je 0x34df
jmp 0x3513
incl 0xc(%r15)
movq (%r12), %rdx
movq %r14, %rdi
movl %ebx, %esi
callq 0x32cc
movq %rax, %r13
movq %rax, (%r12)
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sharmaeklavya2[P]cerplag/util/hmap.gen.c
// Function: pch_int_hmap_rehash
void ITYPED(hmap_rehash)(ITYPED(hmap)* phmap, int new_capacity)
{
    int i;
    ITYPED(hmap_node)** plist2 = calloc(new_capacity, sizeof(ITYPED(hmap_node)*));
    for(i=0; i<(phmap->capacity); ++i) {
        ITYPED(hmap_node)* n = phmap->plist[i];
        while(n != NULL) {
            unsigned h = KTYPED(hash)(n->key) % new_capacity;
            plist2[h] = ITYPED(hmap_get_node)(n->key, n->value, plist2[h]);
            n = n->next;
        }
        ITYPED(hmap_destroy_chain)(phmap->plist[i], false, false);
        phmap->plist[i] = NULL;
    }

    free(phmap->plist);
    phmap->plist = plist2;
    phmap->capacity = new_capacity;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movslq %esi, %rdi
pushq $0x8
popq %rsi
callq 0x3110
movq %rax, %r15
xorl %r13d, %r13d
movq %r14, -0x30(%rbp)
movslq 0x8(%r14), %rax
movq (%r14), %rdi
cmpq %rax, %r13
jge 0x35ad
leaq (%rdi,%r13,8), %r14
movq (%r14), %r14
testq %r14, %r14
je 0x358c
movq 0x8(%r14), %rdi
callq 0x3b36
xorl %edx, %edx
divl %ebx
movl %edx, %r12d
movq 0x8(%r14), %rdi
movl 0x10(%r14), %esi
movq (%r15,%r12,8), %rdx
callq 0x32cc
movq %rax, (%r15,%r12,8)
jmp 0x355d
movq -0x30(%rbp), %r14
movq (%r14), %rax
movq (%rax,%r13,8), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32fd
movq (%r14), %rax
andq $0x0, (%rax,%r13,8)
incq %r13
jmp 0x354d
callq 0x3030
movq %r15, (%r14)
movl %ebx, 0x8(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sharmaeklavya2[P]cerplag/./util/hmap.gen.c
// Function: ST_hmap_update
ITYPED(hmap_node)* ITYPED(hmap_update)(ITYPED(hmap)* phmap, KTYPE k, VTYPE v)
{
    int old_size = phmap->size;
    ITYPED(hmap_node)* n = ITYPED(hmap_insert)(phmap, k, v);
    if(phmap->size == old_size) {
        if(phmap->destroy_value)
            VTYPED(destroy)(n->value);
        n->value = v;
    }
    return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r15
movl 0xc(%rdi), %r12d
callq 0x8c24
movq %rax, %r14
cmpl %r12d, 0xc(%r15)
jne 0x8d95
cmpb $0x1, 0x11(%r15)
jne 0x8d91
movq 0x10(%r14), %rdi
callq 0x3030
movq %rbx, 0x10(%r14)
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sharmaeklavya2[P]cerplag/./util/hmap.gen.c
// Function: vptr_pMN_hmap_print
void ITYPED(hmap_print)(ITYPED(hmap)* phmap, FILE* fp) {
    int capacity = phmap->capacity;
    ITYPED(hmap_node)** plist = phmap->plist;
    ITYPED(hmap_node)* n = NULL;
    fprintf(fp, "hmap(size=%d, capacity=%d):\n", phmap->size, capacity);
    for(int i=0; i<capacity; ++i) {
        for(n = plist[i]; n != NULL; n = n->next) {
            fprintf(fp, "  ");
            KTYPED(print)(n->key, fp);
            fprintf(fp, ": ");
            VTYPED(print)(n->value, fp);
            fprintf(fp, "\n");
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movl 0x8(%rdi), %r15d
movq (%rdi), %rax
movq %rax, -0x30(%rbp)
movl 0xc(%rdi), %edx
leaq 0x37fb(%rip), %rsi      # 0xd00f
xorl %r14d, %r14d
movq %rbx, %rdi
movl %r15d, %ecx
xorl %eax, %eax
callq 0x3130
testl %r15d, %r15d
cmovlel %r14d, %r15d
movq %r15, -0x38(%rbp)
pushq $0x2
popq %r12
pushq $0x1
popq %r13
pushq $0xa
popq %r14
xorl %ecx, %ecx
cmpq -0x38(%rbp), %rcx
je 0x98ca
movq -0x30(%rbp), %rax
movq %rcx, -0x40(%rbp)
leaq (%rax,%rcx,8), %r15
movq (%r15), %r15
testq %r15, %r15
je 0x98be
leaq 0x4582(%rip), %rdi      # 0xdde4
movq %r12, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x31c0
movq 0x8(%r15), %rdi
movq %rbx, %rsi
callq 0x3b7b
leaq 0x3789(%rip), %rdi      # 0xd00c
movq %r12, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x31c0
movq 0x10(%r15), %rax
movq 0x50(%rax), %rdx
movl 0xc(%rax), %ecx
movl 0x10(%rax), %r8d
movq %rbx, %rdi
leaq 0x5216(%rip), %rsi      # 0xeac0
xorl %eax, %eax
callq 0x3130
movl %r14d, %edi
movq %rbx, %rsi
callq 0x3100
jmp 0x9853
movq -0x40(%rbp), %rcx
incq %rcx
jmp 0x983d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sharmaeklavya2[P]cerplag/util/pch.c
// Function: pch_hash
unsigned pch_hash(pch str)
{
    unsigned res = 0;
    for(int i=0; str[i] != '\0'; ++i)
        res = res * 307 + (int)(str[i]);
    //fprintf(stderr, "hash(%s) = %u\n", str, res);
    return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movsbl (%rdi), %ecx
testl %ecx, %ecx
je 0x3b50
imull $0x133, %eax, %eax      # imm = 0x133
addl %ecx, %eax
incq %rdi
jmp 0x3b3c
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sharmaeklavya2[P]cerplag/util/stack.gen.c
// Function: int_get_stack_node
TYPED(stack_node)* TYPED(get_stack_node)(TYPE value, TYPED(stack_node)* next)
{
    TYPED(stack_node)* sn = malloc(sizeof(TYPED(stack_node)));
    sn->value = value;
    sn->next = next;
    return sn;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movl %edi, %r14d
pushq $0x10
popq %rdi
callq 0x3140
movl %r14d, (%rax)
movq %rbx, 0x8(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sharmaeklavya2[P]cerplag/util/stack.gen.c
// Function: int_stack_clear
void TYPED(stack_clear)(TYPED(stack) *ps)
{
    TYPED(stack_node) *p = ps->top, *todel = NULL;
    while(p != NULL)
    {
        todel = p;
        p = p->next;
        todel->next = NULL;
        TYPED(destroy)(todel->value);
        free(todel);
    }
    ps->top = NULL;
    ps->size = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0x3bfa
movq 0x8(%r14), %r15
andq $0x0, 0x8(%r14)
movl (%r14), %edi
callq 0x3d70
movq %r14, %rdi
callq 0x3030
movq %r15, %r14
jmp 0x3bd7
andq $0x0, (%rbx)
andl $0x0, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq