LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/align.c
// Function: mm_append_cigar
static void mm_append_cigar(mm_reg1_t *r, uint32_t n_cigar, const uint32_t *cigar)
{
	mm_extra_t *p;
	if (n_cigar == 0) return;
	mm_enlarge_cigar(r, n_cigar);
	p = r->p;
	if (p->n_cigar > 0 && (p->cigar[p->n_cigar-1]&0xf) == (cigar[0]&0xf)) { // same CIGAR op at the boundary
		p->cigar[p->n_cigar-1] += cigar[0]>>4<<4;
		if (n_cigar > 1) memcpy(p->cigar + p->n_cigar, cigar + 1, (n_cigar - 1) * 4);
		p->n_cigar += n_cigar - 1;
	} else {
		memcpy(p->cigar + p->n_cigar, cigar, n_cigar * 4);
		p->n_cigar += n_cigar;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movl %esi, %ebx
movq %rdi, %r15
callq 0x17110
movq 0x48(%r15), %r15
movl 0x18(%r15), %eax
testq %rax, %rax
je 0x1ad53
leal -0x1(%rax), %ecx
movl 0x1c(%r15,%rcx,4), %edx
movl (%r14), %esi
movl %esi, %edi
xorl %edx, %edi
testb $0xf, %dil
je 0x1ad70
leaq (%r15,%rax,4), %rdi
addq $0x1c, %rdi
leal (,%rbx,4), %edx
movq %r14, %rsi
callq 0x22a0
addl 0x18(%r15), %ebx
jmp 0x1ada0
leaq 0x1c(%r15), %rdi
andl $-0x10, %esi
addl %edx, %esi
movl %esi, (%rdi,%rcx,4)
cmpl $0x2, %ebx
jb 0x1ad98
leaq (%rdi,%rax,4), %rdi
addq $0x4, %r14
leal -0x4(,%rbx,4), %edx
movq %r14, %rsi
callq 0x22a0
movl 0x18(%r15), %eax
addl %eax, %ebx
decl %ebx
movl %ebx, 0x18(%r15)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/align.c
// Function: mm_seed_ext_score
static int mm_seed_ext_score(void *km, const mm_mapopt_t *opt, const mm_idx_t *mi, const int8_t mat[25], int qlen, uint8_t *qseq0[2], const mm128_t *a)
{
	uint8_t *qseq, *tseq;
	int q_span = a->y>>32&0xff, qs, qe, rs, re, rid, score, q_off, t_off, ext_len = opt->anchor_ext_len;
	void *qp;
	rid = a->x<<1>>33;
	re = (uint32_t)a->x + 1, rs = re - q_span;
	qe = (uint32_t)a->y + 1, qs = qe - q_span;
	rs = rs - ext_len > 0? rs - ext_len : 0;
	qs = qs - ext_len > 0? qs - ext_len : 0;
	re = re + ext_len < (int32_t)mi->seq[rid].len? re + ext_len : mi->seq[rid].len;
	qe = qe + ext_len < qlen? qe + ext_len : qlen;
	tseq = (uint8_t*)kmalloc(km, re - rs);
	if (opt->flag & MM_F_QSTRAND) {
		qseq = qseq0[0] + qs;
		mm_idx_getseq2(mi, a->x>>63, rid, rs, re, tseq);
	} else {
		qseq = qseq0[a->x>>63] + qs;
		mm_idx_getseq(mi, rid, rs, re, tseq);
	}
	qp = ksw_ll_qinit(km, 2, qe - qs, qseq, 5, mat);
	score = ksw_ll_i16(qp, re - rs, tseq, opt->q, opt->e, &q_off, &t_off);
	kfree(km, tseq);
	kfree(km, qp);
	return score;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, 0x10(%rsp)
movl %r8d, 0xc(%rsp)
movq %rcx, 0x30(%rsp)
movq %rsi, %r14
movq 0x80(%rsp), %rcx
movq 0x8(%rcx), %rsi
movq %rsi, %rax
shrq $0x20, %rax
movzbl %al, %eax
movl 0xa4(%r14), %r15d
movq (%rcx), %rcx
leal 0x1(%rcx), %r13d
movq %rcx, %rbx
shrq $0x20, %rbx
andl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
incl %esi
addl %r15d, %eax
subl %eax, %r13d
xorl %r8d, %r8d
testl %r13d, %r13d
cmovlel %r8d, %r13d
addl %r15d, %ecx
incl %ecx
movq %rsi, 0x28(%rsp)
movl %esi, %r12d
subl %eax, %r12d
testl %r12d, %r12d
cmovlel %r8d, %r12d
movq %rdx, 0x18(%rsp)
movq 0x20(%rdx), %rax
leaq (%rbx,%rbx,2), %rdx
movl 0x10(%rax,%rdx,8), %ebp
cmpl %ebp, %ecx
cmovll %ecx, %ebp
movl %ebp, %eax
subl %r13d, %eax
movl %eax, 0x8(%rsp)
movslq %eax, %rsi
movq %rdi, 0x20(%rsp)
callq 0x126e9
movq %rax, %r9
movq %r14, 0x38(%rsp)
testb $0x1, 0x4(%r14)
jne 0x1b965
movq 0x80(%rsp), %rax
movq (%rax), %rax
shrq $0x3f, %rax
movl %r12d, %r14d
movq 0x10(%rsp), %rcx
addq (%rcx,%rax,8), %r14
movq 0x18(%rsp), %rdi
movl %ebx, %esi
movl %r13d, %edx
movl %ebp, %ecx
movq %r9, %r13
movq %r9, %r8
callq 0x7224
jmp 0x1b994
movl %r12d, %r14d
movq 0x10(%rsp), %rax
addq (%rax), %r14
movq 0x80(%rsp), %rax
movq (%rax), %rsi
shrq $0x3f, %rsi
movq 0x18(%rsp), %rdi
movl %ebx, %edx
movl %r13d, %ecx
movl %ebp, %r8d
movq %r9, %r13
callq 0x7338
addl 0x28(%rsp), %r15d
movl 0xc(%rsp), %eax
cmpl %eax, %r15d
cmovgel %eax, %r15d
subl %r12d, %r15d
movq 0x20(%rsp), %r12
movq %r12, %rdi
movl $0x2, %esi
movl %r15d, %edx
movq %r14, %rcx
movl $0x5, %r8d
movq 0x30(%rsp), %r9
callq 0x1e98c
movq %rax, %rbx
movq 0x38(%rsp), %rax
movl 0x6c(%rax), %ecx
movl 0x70(%rax), %r8d
leaq 0x40(%rsp), %rax
movq %rax, (%rsp)
leaq 0x44(%rsp), %r9
movq %rbx, %rdi
movl 0x8(%rsp), %esi
movq %r13, %rdx
callq 0x1eb6a
movl %eax, %ebp
movq %r12, %rdi
movq %r13, %rsi
callq 0x1261e
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1261e
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/hit.c
// Function: mm_reg_set_coor
static inline void mm_reg_set_coor(mm_reg1_t *r, int32_t qlen, const mm128_t *a, int is_qstrand)
{ // NB: r->as and r->cnt MUST BE set correctly for this function to work
	int32_t k = r->as, q_span = (int32_t)(a[k].y>>32&0xff);
	r->rev = a[k].x>>63;
	r->rid = a[k].x<<1>>33;
	r->rs = (int32_t)a[k].x + 1 > q_span? (int32_t)a[k].x + 1 - q_span : 0; // NB: target span may be shorter, so this test is necessary
	r->re = (int32_t)a[k + r->cnt - 1].x + 1;
	if (!r->rev || is_qstrand) {
		r->qs = (int32_t)a[k].y + 1 - q_span;
		r->qe = (int32_t)a[k + r->cnt - 1].y + 1;
	} else {
		r->qs = qlen - ((int32_t)a[k + r->cnt - 1].y + 1);
		r->qe = qlen - ((int32_t)a[k].y + 1 - q_span);
	}
	mm_cal_fuzzy_len(r, a);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl 0x4(%rdi), %r9d
movl 0x28(%rdi), %eax
movslq %eax, %r10
shlq $0x4, %r10
leaq (%rdx,%r10), %rbx
movzbl 0xc(%rdx,%r10), %r11d
movq (%rdx,%r10), %r14
shrq $0x35, %r14
andl $0x400, %r14d           # imm = 0x400
movl $0xfffffbff, %r8d       # imm = 0xFFFFFBFF
andl 0x3c(%rdi), %r8d
orl %r14d, %r8d
movl %r8d, 0x3c(%rdi)
movq (%rdx,%r10), %r8
movq %r8, %r15
shrq $0x20, %r15
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
movl %r15d, 0x8(%rdi)
xorl %ebp, %ebp
subl %r11d, %r8d
leal 0x1(%r8), %r8d
cmovll %ebp, %r8d
movl %r8d, 0x18(%rdi)
leal (%r9,%rax), %r8d
movslq %r8d, %r8
movq %r8, %r12
shlq $0x4, %r12
leaq (%rdx,%r12), %r15
movl -0x10(%rdx,%r12), %ebp
incl %ebp
movl %ebp, 0x1c(%rdi)
testl %ecx, %ecx
jne 0x1be2f
testl %r14d, %r14d
je 0x1be2f
movl -0x8(%r15), %ecx
notl %ecx
addl %esi, %ecx
movl %ecx, 0x10(%rdi)
movl 0x8(%rbx), %ecx
notl %ecx
addl %esi, %r11d
addl %ecx, %r11d
jmp 0x1be44
movl 0x8(%rbx), %ecx
negl %r11d
addl %r11d, %ecx
incl %ecx
movl %ecx, 0x10(%rdi)
movl -0x8(%r15), %r11d
incl %r11d
movl %r11d, 0x14(%rdi)
movq $0x0, 0x2c(%rdi)
testl %r9d, %r9d
jle 0x1bee4
movzbl 0xc(%rdx,%r10), %ecx
movl %ecx, 0x30(%rdi)
cmpl $0x1, %r9d
jne 0x1be6d
movl %ecx, %r9d
jmp 0x1bee0
leal 0x1(%rax), %esi
movslq %esi, %rsi
movq %rsi, %r9
shlq $0x4, %r9
leaq (%r9,%rdx), %r10
addq $0x8, %r10
movl %ecx, %r9d
movq (%r10), %r11
movq %r11, %rbx
shrq $0x20, %rbx
movzbl %bl, %ebx
movl -0x8(%r10), %ebp
cltq
movq %rax, %r14
shlq $0x4, %r14
subl (%rdx,%r14), %ebp
subl 0x8(%rdx,%r14), %r11d
cmpl %r11d, %ebp
movl %r11d, %r14d
cmovgl %ebp, %r14d
movl %r11d, %r15d
cmovll %ebp, %r15d
addl %r14d, %ecx
cmpl %ebx, %r11d
movl %r15d, %r11d
cmovgl %ebx, %r11d
cmpl %ebx, %ebp
cmovlel %r15d, %r11d
addl %r11d, %r9d
incq %rsi
incl %eax
addq $0x10, %r10
cmpq %r8, %rsi
jl 0x1be85
movl %ecx, 0x30(%rdi)
movl %r9d, 0x2c(%rdi)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/hit.c
// Function: mm_mark_alt
void mm_mark_alt(const mm_idx_t *mi, int n, mm_reg1_t *r)
{
	int i;
	if (mi->n_alt == 0) return;
	for (i = 0; i < n; ++i)
		if (mi->seq[r[i].rid].is_alt)
			r[i].is_alt = 1;
}

// Assembly:
cmpl $0x0, 0x18(%rdi)
sete %al
testl %esi, %esi
setle %cl
orb %al, %cl
jne 0x1bf2c
movl %esi, %eax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rax
xorl %ecx, %ecx
movq 0x20(%rdi), %rsi
movslq 0x8(%rdx,%rcx), %r8
leaq (%r8,%r8,2), %r8
cmpl $0x0, 0x14(%rsi,%r8,8)
je 0x1bf23
orb $0x2, 0x3f(%rdx,%rcx)
addq $0x50, %rcx
cmpq %rcx, %rax
jne 0x1bf09
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/hit.c
// Function: mm_split_reg
void mm_split_reg(mm_reg1_t *r, mm_reg1_t *r2, int n, int qlen, mm128_t *a, int is_qstrand)
{
	if (n <= 0 || n >= r->cnt) return;
	*r2 = *r;
	r2->id = -1;
	r2->sam_pri = 0;
	r2->p = 0;
	r2->split_inv = 0;
	r2->cnt = r->cnt - n;
	r2->score = (int32_t)(r->score * ((float)r2->cnt / r->cnt) + .499);
	r2->as = r->as + n;
	if (r->parent == r->id) r2->parent = MM_PARENT_TMP_PRI;
	mm_reg_set_coor(r2, qlen, a, is_qstrand);
	r->cnt -= r2->cnt;
	r->score -= r2->score;
	mm_reg_set_coor(r, qlen, a, is_qstrand);
	r->split |= 1, r2->split |= 2;
}

// Assembly:
testl %edx, %edx
jle 0x1c005
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
cmpl %edx, 0x4(%rdi)
jle 0x1bffd
movl %r9d, %ebp
movq %r8, %r15
movl %ecx, %r12d
movq %rsi, %rbx
movl $0xa, %ecx
movq %rsi, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0xffffffff, (%rbx)     # imm = 0xFFFFFFFF
movq $0x0, 0x48(%rbx)
andl $0xfeffefff, 0x3c(%rbx) # imm = 0xFEFFEFFF
movl 0x4(%r14), %eax
subl %edx, %eax
movl %eax, 0x4(%rbx)
cvtsi2ssl 0xc(%r14), %xmm0
cvtsi2ss %eax, %xmm1
cvtsi2ssl 0x4(%r14), %xmm2
divss %xmm2, %xmm1
mulss %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
addsd 0xe078(%rip), %xmm0     # 0x2a020
cvttsd2si %xmm0, %eax
movl %eax, 0xc(%rbx)
addl 0x28(%r14), %edx
movl %edx, 0x28(%rbx)
movl 0x20(%r14), %eax
cmpl (%r14), %eax
jne 0x1bfc6
movl $0xfffffffe, 0x20(%rbx) # imm = 0xFFFFFFFE
movq %rbx, %rdi
movl %r12d, %esi
movq %r15, %rdx
movl %ebp, %ecx
callq 0x1bd8b
movl 0x4(%rbx), %eax
subl %eax, 0x4(%r14)
movl 0xc(%rbx), %eax
subl %eax, 0xc(%r14)
movq %r14, %rdi
movl %r12d, %esi
movq %r15, %rdx
movl %ebp, %ecx
callq 0x1bd8b
orb $0x1, 0x3d(%r14)
orb $0x2, 0x3d(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/hit.c
// Function: mm_set_sam_pri
int mm_set_sam_pri(int n, mm_reg1_t *r)
{
	int i, n_pri = 0;
	for (i = 0; i < n; ++i)
		if (r[i].id == r[i].parent) {
			++n_pri;
			r[i].sam_pri = (n_pri == 1);
		} else r[i].sam_pri = 0;
	return n_pri;
}

// Assembly:
testl %edi, %edi
jle 0x1c714
movl %edi, %eax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rcx
xorl %edx, %edx
movl $0xffffefff, %edi       # imm = 0xFFFFEFFF
xorl %eax, %eax
movl (%rsi,%rdx), %r8d
cmpl 0x20(%rsi,%rdx), %r8d
jne 0x1c705
xorl %r8d, %r8d
testl %eax, %eax
leal 0x1(%rax), %eax
sete %r8b
shll $0xc, %r8d
movl 0x3c(%rsi,%rdx), %r9d
andl %edi, %r9d
orl %r8d, %r9d
movl %r9d, 0x3c(%rsi,%rdx)
jmp 0x1c70a
andb $-0x11, 0x3d(%rsi,%rdx)
addq $0x50, %rdx
cmpq %rdx, %rcx
jne 0x1c6d8
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/hit.c
// Function: mm_sync_regs
void mm_sync_regs(void *km, int n_regs, mm_reg1_t *regs) // keep mm_reg1_t::{id,parent} in sync; also reset id
{
	int *tmp, i, max_id = -1, n_tmp;
	if (n_regs <= 0) return;
	for (i = 0; i < n_regs; ++i) // NB: doesn't work if mm_reg1_t::id is negative
		max_id = max_id > regs[i].id? max_id : regs[i].id;
	n_tmp = max_id + 1;
	tmp = (int*)kmalloc(km, n_tmp * sizeof(int));
	for (i = 0; i < n_tmp; ++i) tmp[i] = -1;
	for (i = 0; i < n_regs; ++i)
		if (regs[i].id >= 0) tmp[regs[i].id] = i;
	for (i = 0; i < n_regs; ++i) {
		mm_reg1_t *r = &regs[i];
		r->id = i;
		if (r->parent == MM_PARENT_TMP_PRI)
			r->parent = i;
		else if (r->parent >= 0 && tmp[r->parent] >= 0)
			r->parent = tmp[r->parent];
		else r->parent = MM_PARENT_UNSET;
	}
	kfree(km, tmp);
	mm_set_sam_pri(n_regs, regs);
}

// Assembly:
testl %esi, %esi
jle 0x1c811
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movl %esi, %eax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rax
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
xorl %ecx, %ecx
movl %r12d, %edx
movl (%rbx,%rcx), %r12d
cmpl %r12d, %edx
cmovgl %edx, %r12d
addq $0x50, %rcx
cmpq %rcx, %rax
jne 0x1c741
leal 0x1(%r12), %esi
shlq $0x2, %rsi
movq %r14, %rdi
callq 0x126e9
movq %rax, %r15
testl %r12d, %r12d
js 0x1c789
movl %r12d, %eax
leaq 0x4(,%rax,4), %rdx
movq %r15, %rdi
movl $0xff, %esi
callq 0x21b0
cmpl $0x2, %ebp
movl $0x1, %eax
cmovgel %ebp, %eax
xorl %ecx, %ecx
movq %rbx, %rdx
movslq (%rdx), %rsi
testq %rsi, %rsi
js 0x1c7a5
movl %ecx, (%r15,%rsi,4)
incq %rcx
addq $0x50, %rdx
cmpq %rcx, %rax
jne 0x1c799
cmpl $0x2, %ebp
movl $0x1, %eax
cmovgel %ebp, %eax
leaq 0x20(%rbx), %rcx
xorl %edx, %edx
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl %edx, -0x20(%rcx)
movl (%rcx), %edi
cmpq %rsi, %rdi
jne 0x1c7d5
movl %edx, %edi
jmp 0x1c7e6
testl %edi, %edi
js 0x1c7e1
movl (%r15,%rdi,4), %edi
testl %edi, %edi
jns 0x1c7e6
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl %edi, (%rcx)
incq %rdx
addq $0x50, %rcx
cmpq %rdx, %rax
jne 0x1c7c7
movq %r14, %rdi
movq %r15, %rsi
callq 0x1261e
movl %ebp, %edi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1c6c1
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/hit.c
// Function: mm_filter_strand_retained
int mm_filter_strand_retained(int n_regs, mm_reg1_t *r)
{
	int i, k;
	for (i = k = 0; i < n_regs; ++i) {
		int p = r[i].parent;
		if (!r[i].strand_retained || r[i].div < r[p].div * 5.0f || r[i].div < 0.01f) {
			if (k < i) r[k++] = r[i];
			else ++k;
		}
	}
	return k;
}

// Assembly:
testl %edi, %edi
jle 0x1caa3
movq %rsi, %rdx
movl %edi, %r8d
leaq 0x44(%rsi), %r9
xorl %r10d, %r10d
movss 0x10edc(%rip), %xmm0    # 0x2d918
movss 0x10ed8(%rip), %xmm1    # 0x2d91c
xorl %eax, %eax
testb $0x4, -0x5(%r9)
jne 0x1ca71
movslq %eax, %rcx
leal 0x1(%rcx), %eax
cmpq %rcx, %r10
jle 0x1ca96
leaq -0x44(%r9), %rsi
leaq (%rcx,%rcx,4), %rdi
shlq $0x4, %rdi
addq %rdx, %rdi
movl $0xa, %ecx
rep  movsq (%rsi), %es:(%rdi)
jmp 0x1ca96
movslq -0x24(%r9), %rcx
movss (%r9), %xmm2
leaq (%rcx,%rcx,4), %rcx
shlq $0x4, %rcx
movss 0x44(%rdx,%rcx), %xmm3
mulss %xmm0, %xmm3
ucomiss %xmm2, %xmm1
ja 0x1ca4d
ucomiss %xmm2, %xmm3
ja 0x1ca4d
incq %r10
addq $0x50, %r9
cmpq %r10, %r8
jne 0x1ca46
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/hit.c
// Function: mm_filter_regs
void mm_filter_regs(const mm_mapopt_t *opt, int qlen, int *n_regs, mm_reg1_t *regs)
{ // NB: after this call, mm_reg1_t::parent can be -1 if its parent filtered out
	int i, k;
	for (i = k = 0; i < *n_regs; ++i) {
		mm_reg1_t *r = &regs[i];
		int flt = 0;
		if (!r->inv && !r->seg_split && r->cnt < opt->min_cnt) flt = 1;
		if (r->p) { // these filters are only applied when base-alignment is available
			if (r->mlen < opt->min_chain_score) flt = 1;
			else if (r->p->dp_max < opt->min_dp_max) flt = 1;
			else if (r->qs > qlen * opt->max_clip_ratio && qlen - r->qe > qlen * opt->max_clip_ratio) flt = 1;
			if (flt) free(r->p);
		}
		if (!flt) {
			if (k < i) regs[k++] = regs[i];
			else ++k;
		}
	}
	*n_regs = k;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
cmpl $0x0, (%rdx)
jle 0x1cba0
movq %rcx, %r14
movq %rdi, %r15
movl %esi, (%rsp)
cvtsi2ss %esi, %xmm0
movss %xmm0, 0x4(%rsp)
xorl %r13d, %r13d
movq %rcx, %r12
xorl %ebp, %ebp
testb $-0x78, 0x3d(%r12)
movl $0x0, %eax
jne 0x1caf3
movl 0x4(%r12), %ecx
xorl %eax, %eax
cmpl 0x30(%r15), %ecx
setl %al
movq 0x48(%r12), %rdi
testq %rdi, %rdi
je 0x1cb2b
movl 0x2c(%r12), %ecx
cmpl 0x34(%r15), %ecx
jl 0x1cb14
movl 0x8(%rdi), %ecx
cmpl 0x9c(%r15), %ecx
jge 0x1cb65
movl $0x1, %eax
testl %eax, %eax
je 0x1cb29
callq 0x2040
movl $0x1, %eax
jmp 0x1cb2b
xorl %eax, %eax
testl %eax, %eax
jne 0x1cb50
movslq %ebp, %rax
leal 0x1(%rax), %ebp
cmpq %rax, %r13
jle 0x1cb50
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq %r14, %rdi
movl $0xa, %ecx
movq %r12, %rsi
rep  movsq (%rsi), %es:(%rdi)
incq %r13
movslq (%rbx), %rax
addq $0x50, %r12
cmpq %rax, %r13
jl 0x1cad8
jmp 0x1cba2
xorps %xmm1, %xmm1
cvtsi2ssl 0x10(%r12), %xmm1
movss 0xac(%r15), %xmm0
mulss 0x4(%rsp), %xmm0
ucomiss %xmm0, %xmm1
jbe 0x1cb19
movl (%rsp), %ecx
subl 0x14(%r12), %ecx
xorps %xmm1, %xmm1
cvtsi2ss %ecx, %xmm1
ucomiss %xmm0, %xmm1
ja 0x1cb14
jmp 0x1cb19
xorl %ebp, %ebp
movl %ebp, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/hit.c
// Function: mm_squeeze_a
int mm_squeeze_a(void *km, int n_regs, mm_reg1_t *regs, mm128_t *a)
{ // squeeze out regions in a[] that are not referenced by regs[]
	int i, as = 0;
	uint64_t *aux;
	aux = (uint64_t*)kmalloc(km, n_regs * 8);
	for (i = 0; i < n_regs; ++i)
		aux[i] = (uint64_t)regs[i].as << 32 | i;
	radix_sort_64(aux, aux + n_regs);
	for (i = 0; i < n_regs; ++i) {
		mm_reg1_t *r = &regs[(int32_t)aux[i]];
		if (r->as != as) {
			memmove(&a[as], &a[r->as], r->cnt * 16);
			r->as = as;
		}
		as += r->cnt;
	}
	kfree(km, aux);
	return as;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, 0x10(%rsp)
movq %rdx, %r15
movl %esi, %r13d
leal (,%r13,8), %eax
movslq %eax, %rsi
movq %rdi, 0x8(%rsp)
callq 0x126e9
movq %rax, %r12
movl %r13d, %ebx
testl %r13d, %r13d
jle 0x1cc0b
leaq 0x28(%r15), %rax
xorl %ecx, %ecx
movl (%rax), %edx
shlq $0x20, %rdx
addq %rcx, %rdx
movq %rdx, (%r12,%rcx,8)
incq %rcx
addq $0x50, %rax
cmpq %rcx, %rbx
jne 0x1cbf2
movslq %r13d, %rax
leaq (%r12,%rax,8), %rsi
movq %r12, %rdi
callq 0x5d2f
testl %r13d, %r13d
jle 0x1cc72
xorl %r13d, %r13d
xorl %ebp, %ebp
movslq (%r12,%r13,8), %rax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
leaq (%r15,%rax), %r14
movslq 0x28(%r15,%rax), %rsi
cmpl %ebp, %esi
je 0x1cc64
movslq %ebp, %rdi
shlq $0x4, %rdi
movq 0x10(%rsp), %rax
addq %rax, %rdi
shlq $0x4, %rsi
addq %rax, %rsi
movslq 0x4(%r14), %rdx
shlq $0x4, %rdx
callq 0x2340
movl %ebp, 0x28(%r14)
addl 0x4(%r14), %ebp
incq %r13
cmpq %r13, %rbx
jne 0x1cc24
jmp 0x1cc74
xorl %ebp, %ebp
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x1261e
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/seed.c
// Function: mm_seed_mz_flt
void mm_seed_mz_flt(void *km, mm128_v *mv, int32_t q_occ_max, float q_occ_frac)
{
	mm128_t *a;
	size_t i, j, st;
	if (mv->n <= q_occ_max || q_occ_frac <= 0.0f || q_occ_max <= 0) return;
	a = Kmalloc(km, mm128_t, mv->n);
	for (i = 0; i < mv->n; ++i)
		a[i].x = mv->a[i].x, a[i].y = i;
	radix_sort_128x(a, a + mv->n);
	for (st = 0, i = 1; i <= mv->n; ++i) {
		if (i == mv->n || a[i].x != a[st].x) {
			int32_t cnt = i - st;
			if (cnt > q_occ_max && cnt > mv->n * q_occ_frac)
				for (j = st; j < i; ++j)
					mv->a[a[j].y].x = 0;
			st = i;
		}
	}
	kfree(km, a);
	for (i = j = 0; i < mv->n; ++i)
		if (mv->a[i].x != 0)
			mv->a[j++] = mv->a[i];
	mv->n = j;
}

// Assembly:
testl %edx, %edx
jle 0x1d72f
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
jae 0x1d72f
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
movq (%rsi), %rsi
movslq %edx, %rax
cmpq %rax, %rsi
jbe 0x1d725
movq %rdi, %r14
movss %xmm0, 0x4(%rsp)
shlq $0x4, %rsi
callq 0x126e9
movq %rax, %r15
movq (%rbx), %rsi
testq %rsi, %rsi
je 0x1d5e1
movq 0x10(%rbx), %rax
xorl %ecx, %ecx
xorl %edx, %edx
movq (%rax,%rcx), %rdi
movq %rdi, (%r15,%rcx)
movq %rdx, 0x8(%r15,%rcx)
incq %rdx
addq $0x10, %rcx
cmpq %rdx, %rsi
jne 0x1d5c8
shlq $0x4, %rsi
addq %r15, %rsi
movq %r15, %rdi
callq 0x5ae1
movq (%rbx), %rax
testq %rax, %rax
je 0x1d6da
js 0x1d608
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
jmp 0x1d622
movq %rax, %rcx
shrq %rcx
movl %eax, %edx
andl $0x1, %edx
orq %rcx, %rdx
xorps %xmm0, %xmm0
cvtsi2ss %rdx, %xmm0
addss %xmm0, %xmm0
movss 0x4(%rsp), %xmm1
mulss %xmm1, %xmm0
leaq 0x1(%rax), %rdx
cmpq $0x3, %rdx
movl $0x2, %ecx
cmovaeq %rdx, %rcx
movq %r15, %rdx
addq $0x8, %rdx
movl $0x1, %esi
xorl %edi, %edi
cmpq %rax, %rsi
je 0x1d66d
movq %rsi, %r8
shlq $0x4, %r8
movq (%r15,%r8), %r8
movq %rdi, %r9
shlq $0x4, %r9
cmpq (%r15,%r9), %r8
jne 0x1d66d
movq %rdi, %r8
jmp 0x1d6cb
movl %esi, %r8d
subl %edi, %r8d
cmpl %ebp, %r8d
setg %r9b
xorps %xmm1, %xmm1
cvtsi2ss %r8d, %xmm1
ucomiss %xmm0, %xmm1
seta %r8b
cmpq %rdi, %rsi
seta %r10b
andb %r9b, %r10b
andb %r8b, %r10b
movq %rsi, %r8
cmpb $0x1, %r10b
jne 0x1d6cb
movq 0x10(%rbx), %r8
movq %rdi, %r9
shlq $0x4, %r9
addq %rdx, %r9
movq (%r9), %r10
shlq $0x4, %r10
movq $0x0, (%r8,%r10)
incq %rdi
addq $0x10, %r9
cmpq %rdi, %rsi
jne 0x1d6ad
movq %rsi, %r8
incq %rsi
movq %r8, %rdi
cmpq %rcx, %rsi
jne 0x1d64b
movq %r14, %rdi
movq %r15, %rsi
callq 0x1261e
cmpq $0x0, (%rbx)
je 0x1d720
xorl %ecx, %ecx
xorl %edx, %edx
xorl %eax, %eax
movq 0x10(%rbx), %rsi
cmpq $0x0, (%rsi,%rcx)
je 0x1d712
leaq (%rsi,%rcx), %rdi
leaq 0x1(%rax), %r8
shlq $0x4, %rax
movups (%rdi), %xmm0
movups %xmm0, (%rsi,%rax)
movq %r8, %rax
incq %rdx
addq $0x10, %rcx
cmpq (%rbx), %rdx
jb 0x1d6f1
jmp 0x1d722
xorl %eax, %eax
movq %rax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/seed.c
// Function: mm_seed_collect_all
mm_seed_t *mm_seed_collect_all(void *km, const mm_idx_t *mi, const mm128_v *mv, int32_t *n_m_)
{
	mm_seed_t *m;
	size_t i;
	int32_t k;
	m = (mm_seed_t*)kmalloc(km, mv->n * sizeof(mm_seed_t));
	for (i = k = 0; i < mv->n; ++i) {
		const uint64_t *cr;
		mm_seed_t *q;
		mm128_t *p = &mv->a[i];
		uint32_t q_pos = (uint32_t)p->y, q_span = p->x & 0xff;
		int t;
		cr = mm_idx_get(mi, p->x>>8, &t);
		if (t == 0) continue;
		q = &m[k++];
		q->q_pos = q_pos, q->q_span = q_span, q->cr = cr, q->n = t, q->seg_id = p->y >> 32;
		q->is_tandem = q->flt = 0;
		if (i > 0 && p->x>>8 == mv->a[i - 1].x>>8) q->is_tandem = 1;
		if (i < mv->n - 1 && p->x>>8 == mv->a[i + 1].x>>8) q->is_tandem = 1;
	}
	*n_m_ = k;
	return m;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, 0x18(%rsp)
movq %rdx, %rbx
movq %rsi, 0x20(%rsp)
movq (%rdx), %rax
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x126e9
movq %rax, %r12
cmpq $0x0, (%rbx)
je 0x1d878
xorl %ebp, %ebp
xorl %r13d, %r13d
movl $0x0, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movq 0x10(%rbx), %r15
movq (%r15,%rbp), %r14
movq 0x8(%r15,%rbp), %rbx
movq %r14, %rsi
shrq $0x8, %rsi
movq 0x20(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x6d6b
cmpl $0x0, 0xc(%rsp)
je 0x1d861
movzbl %r14b, %edx
movslq 0x8(%rsp), %rcx
leaq (%rcx,%rcx,2), %rsi
leaq (%r12,%rsi,8), %rcx
movl %ebx, 0x4(%r12,%rsi,8)
movq 0x8(%r12,%rsi,8), %rdi
movq $-0x80000000, %r8       # imm = 0x80000000
andq %r8, %rdi
orq %rdx, %rdi
movq %rdi, 0x8(%r12,%rsi,8)
movq %rax, 0x10(%r12,%rsi,8)
movl 0xc(%rsp), %eax
movl %eax, (%r12,%rsi,8)
movq 0x8(%r15,%rbp), %rax
movabsq $0x7fffffff00000000, %rdi # imm = 0x7FFFFFFF00000000
andq %rdi, %rax
orq %rdx, %rax
movq %rax, 0x8(%r12,%rsi,8)
testq %r13, %r13
movq 0x10(%rsp), %rbx
je 0x1d82d
movq 0x10(%rbx), %rdx
movq -0x10(%rdx,%rbp), %rdx
xorq (%r15,%rbp), %rdx
cmpq $0xff, %rdx
ja 0x1d82d
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
orq %rdx, %rax
movq %rax, 0x8(%rcx)
incl 0x8(%rsp)
movq (%rbx), %rax
decq %rax
cmpq %rax, %r13
jae 0x1d866
movq 0x10(%rbx), %rax
movq 0x10(%rax,%rbp), %rax
xorq (%r15,%rbp), %rax
cmpq $0xff, %rax
ja 0x1d866
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
orq %rax, 0x8(%rcx)
jmp 0x1d866
movq 0x10(%rsp), %rbx
incq %r13
addq $0x10, %rbp
cmpq (%rbx), %r13
jb 0x1d77a
jmp 0x1d880
movl $0x0, 0x8(%rsp)
movq 0x18(%rsp), %rax
movl 0x8(%rsp), %ecx
movl %ecx, (%rax)
movq %r12, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/jump.c
// Function: mm_jump_check
static int32_t mm_jump_check(void *km, const mm_idx_t *mi, int32_t qlen, const uint8_t *qseq0, const mm_reg1_t *r, int32_t ext, int32_t is_left) // TODO: check close N
{
	int32_t clip, clen, e = !r->rev ^ !is_left; // 0 for left of the alignment; 1 for right
	uint32_t cigar;
	if (!r->p || r->p->n_cigar <= 0) return -1; // only working with CIGAR
	clip = e == 0? r->qs : qlen - r->qe;
	cigar = r->p->cigar[is_left? 0 : r->p->n_cigar - 1];
	clen = (cigar&0xf) == MM_CIGAR_MATCH? cigar>>4 : 0;
	if (clen <= ext) return -1;
	if (is_left) {
		if (clip >= r->rs) return -1; // no space to jump
	} else {
		if (clip >= mi->seq[r->rid].len - r->re) return -1; // no space to jump
	}
	return 0;
}

// Assembly:
movq 0x48(%rdx), %r9
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %r9, %r9
je 0x1e884
pushq %rbx
movl 0x18(%r9), %r10d
testl %r10d, %r10d
je 0x1e883
testl %r8d, %r8d
sete %r11b
btl $0xa, 0x3c(%rdx)
setae %bl
xorb %r11b, %bl
je 0x1e84e
subl 0x14(%rdx), %esi
jmp 0x1e851
movl 0x10(%rdx), %esi
decl %r10d
xorl %r11d, %r11d
testl %r8d, %r8d
cmovnel %r11d, %r10d
movl 0x1c(%r9,%r10,4), %r9d
movl %r9d, %r10d
shrl $0x4, %r10d
testb $0xf, %r9b
cmovnel %r11d, %r10d
cmpl %ecx, %r10d
jle 0x1e883
testl %r8d, %r8d
je 0x1e885
cmpl 0x18(%rdx), %esi
jge 0x1e883
xorl %eax, %eax
popq %rbx
retq
movq 0x20(%rdi), %rcx
movslq 0x8(%rdx), %rdi
leaq (%rdi,%rdi,2), %rdi
movl 0x10(%rcx,%rdi,8), %ecx
subl 0x1c(%rdx), %ecx
cmpl %ecx, %esi
jb 0x1e881
jmp 0x1e883
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/jump.c
// Function: mm_jump_get_qseq_seq
static uint8_t *mm_jump_get_qseq_seq(void *km, int32_t qlen, const uint8_t *qseq0, const mm_reg1_t *r, int32_t is_left, int32_t ql0, uint8_t *qseq)
{
	extern unsigned char seq_nt4_table[256];
	int32_t i, k = 0;
	if (!r->rev) {
		if (is_left)
			for (i = 0; i < ql0; ++i)
				qseq[k++] = seq_nt4_table[(uint8_t)qseq0[i]];
		else
			for (i = qlen - ql0; i < qlen; ++i)
				qseq[k++] = seq_nt4_table[(uint8_t)qseq0[i]];
	} else {
		if (is_left)
			for (i = qlen - 1; i >= qlen - ql0; --i) {
				uint8_t c = seq_nt4_table[(uint8_t)qseq0[i]];
				qseq[k++] = c >= 4? c : 3 - c;
			}
		else
			for (i = ql0 - 1; i >= 0; --i) {
				uint8_t c = seq_nt4_table[(uint8_t)qseq0[i]];
				qseq[k++] = c >= 4? c : 3 - c;
			}
	}
	return qseq;
}

// Assembly:
movq %r9, %rax
testb $0x4, 0x3d(%rdx)
jne 0x1e8da
testl %ecx, %ecx
je 0x1e923
testl %r8d, %r8d
jle 0x1e98a
movl %r8d, %ecx
xorl %edx, %edx
leaq 0x16f50(%rip), %rdi     # 0x35810
movzbl (%rsi,%rdx), %r8d
movb (%rdi,%r8), %r8b
movb %r8b, (%rax,%rdx)
incq %rdx
cmpq %rdx, %rcx
jne 0x1e8c0
jmp 0x1e98a
testl %ecx, %ecx
je 0x1e954
testl %r8d, %r8d
jle 0x1e98a
movslq %edi, %rcx
subl %r8d, %edi
movslq %edi, %rdx
leaq 0x16f19(%rip), %rdi     # 0x35810
movq %rax, %r8
movzbl -0x1(%rsi,%rcx), %r9d
decq %rcx
movzbl (%rdi,%r9), %r9d
movb $0x3, %r10b
subb %r9b, %r10b
movzbl %r10b, %r10d
cmovbl %r9d, %r10d
movb %r10b, (%r8)
incq %r8
cmpq %rdx, %rcx
jg 0x1e8fa
jmp 0x1e98a
testl %r8d, %r8d
jle 0x1e98a
movslq %edi, %rcx
subl %r8d, %edi
movslq %edi, %rdx
leaq 0x16ed8(%rip), %rdi     # 0x35810
movq %rax, %r8
movzbl (%rsi,%rdx), %r9d
movb (%rdi,%r9), %r9b
movb %r9b, (%r8)
incq %rdx
incq %r8
cmpq %rcx, %rdx
jl 0x1e93b
jmp 0x1e98a
testl %r8d, %r8d
jle 0x1e98a
movl %r8d, %ecx
leaq 0x16ead(%rip), %rdx     # 0x35810
movq %rax, %rdi
movzbl -0x1(%rsi,%rcx), %r8d
movzbl (%rdx,%r8), %r8d
movb $0x3, %r9b
subb %r8b, %r9b
movzbl %r9b, %r9d
cmovbl %r8d, %r9d
movb %r9b, (%rdi)
incq %rdi
decq %rcx
jne 0x1e966
retq
nop
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/ksw2_dispatch.c
// Function: ksw_extz2_sse
void ksw_extz2_sse(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat, int8_t q, int8_t e, int w, int zdrop, int end_bonus, int flag, ksw_extz_t *ez)
{
	extern void ksw_extz2_sse2(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat, int8_t q, int8_t e, int w, int zdrop, int end_bonus, int flag, ksw_extz_t *ez);
	extern void ksw_extz2_sse41(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat, int8_t q, int8_t e, int w, int zdrop, int end_bonus, int flag, ksw_extz_t *ez);
	if (ksw_simd < 0) ksw_simd = x86_simd();
	if (ksw_simd & SIMD_SSE4_1)
		ksw_extz2_sse41(km, qlen, query, tlen, target, m, mat, q, e, w, zdrop, end_bonus, flag, ez);
	else if (ksw_simd & SIMD_SSE2)
		ksw_extz2_sse2(km, qlen, query, tlen, target, m, mat, q, e, w, zdrop, end_bonus, flag, ez);
	else abort();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r9d, %r12d
movl %esi, %r15d
movq %rdi, %r13
movq 0xb8(%rsp), %rax
movq %rax, 0x30(%rsp)
movl 0xb0(%rsp), %eax
movq %rax, 0x38(%rsp)
movl 0xa8(%rsp), %eax
movq %rax, 0x40(%rsp)
movl 0xa0(%rsp), %ebp
movl 0x98(%rsp), %ebx
movb 0x90(%rsp), %sil
movb 0x88(%rsp), %r14b
movq 0x80(%rsp), %r11
cmpl $0x0, 0x16a9b(%rip)     # 0x35910
jns 0x1eebe
movq %r11, 0x28(%rsp)
movq %rbx, 0x20(%rsp)
movq %r8, %rbx
movq %rbp, 0x18(%rsp)
movl %ecx, %ebp
movq %rdx, 0x10(%rsp)
movb %sil, 0xf(%rsp)
callq 0x1ef2a
movb 0xf(%rsp), %sil
movq 0x10(%rsp), %rdx
movl %ebp, %ecx
movq 0x18(%rsp), %rbp
movq %rbx, %r8
movq 0x20(%rsp), %rbx
movq 0x28(%rsp), %r11
movl %eax, 0x16a52(%rip)     # 0x35910
movl 0x16a4c(%rip), %eax     # 0x35910
testb $0x10, %al
jne 0x1ef08
testb $0x2, %al
je 0x1ef25
movsbl %sil, %eax
movsbl %r14b, %r10d
movsbl %r12b, %r9d
movq %r13, %rdi
movl %r15d, %esi
pushq 0x30(%rsp)
pushq 0x40(%rsp)
pushq 0x50(%rsp)
pushq %rbp
pushq %rbx
pushq %rax
pushq %r10
pushq %r11
callq 0x2464c
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movsbl %r12b, %r9d
movq %r13, %rdi
movl %r15d, %esi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1f250
callq 0x2050
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/ksw2_dispatch.c
// Function: x86_simd
static int x86_simd(void)
{
	int flag = 0, cpuid[4], max_id;
	__cpuidex(cpuid, 0, 0);
	max_id = cpuid[0];
	if (max_id == 0) return 0;
	__cpuidex(cpuid, 1, 0);
	if (cpuid[3]>>25&1) flag |= SIMD_SSE;
	if (cpuid[3]>>26&1) flag |= SIMD_SSE2;
	if (cpuid[2]>>0 &1) flag |= SIMD_SSE3;
	if (cpuid[2]>>9 &1) flag |= SIMD_SSSE3;
	if (cpuid[2]>>19&1) flag |= SIMD_SSE4_1;
	if (cpuid[2]>>20&1) flag |= SIMD_SSE4_2;
	if (cpuid[2]>>28&1) flag |= SIMD_AVX;
	if (max_id >= 7) {
		__cpuidex(cpuid, 7, 0);
		if (cpuid[1]>>5 &1) flag |= SIMD_AVX2;
		if (cpuid[1]>>16&1) flag |= SIMD_AVX512F;
	}
	return flag;
}

// Assembly:
pushq %rbx
xorl %esi, %esi
xorl %eax, %eax
xorl %ecx, %ecx
cpuid
testl %eax, %eax
je 0x1ef94
movl %eax, %edi
xorl %ecx, %ecx
movl $0x1, %eax
cpuid
movl %ecx, %esi
shrl $0x19, %edx
andl $0x3, %edx
movl %ecx, %eax
andl $0x1, %eax
leal (%rdx,%rax,4), %eax
shrl $0x6, %ecx
andl $0x8, %ecx
orl %eax, %ecx
movl %esi, %eax
shrl $0xf, %eax
movl %eax, %edx
andl $0x10, %edx
orl %ecx, %edx
andl $0x20, %eax
orl %edx, %eax
shrl $0x16, %esi
andl $0x40, %esi
orl %eax, %esi
cmpl $0x7, %edi
jl 0x1ef94
movl $0x7, %eax
xorl %ecx, %ecx
cpuid
movl %ebx, %eax
andl $0x20, %eax
shrl $0x8, %ebx
andl $0x100, %ebx            # imm = 0x100
leal (%rbx,%rax,4), %eax
orl %eax, %esi
movl %esi, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/ksw2_dispatch.c
// Function: ksw_extd2_sse
void ksw_extd2_sse(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat,
				   int8_t q, int8_t e, int8_t q2, int8_t e2, int w, int zdrop, int end_bonus, int flag, ksw_extz_t *ez)
{
	extern void ksw_extd2_sse2(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat,
				   int8_t q, int8_t e, int8_t q2, int8_t e2, int w, int zdrop, int end_bonus, int flag, ksw_extz_t *ez);
	extern void ksw_extd2_sse41(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat,
				   int8_t q, int8_t e, int8_t q2, int8_t e2, int w, int zdrop, int end_bonus, int flag, ksw_extz_t *ez);
	if (ksw_simd < 0) ksw_simd = x86_simd();
	if (ksw_simd & SIMD_SSE4_1)
		ksw_extd2_sse41(km, qlen, query, tlen, target, m, mat, q, e, q2, e2, w, zdrop, end_bonus, flag, ez);
	else if (ksw_simd & SIMD_SSE2)
		ksw_extd2_sse2(km, qlen, query, tlen, target, m, mat, q, e, q2, e2, w, zdrop, end_bonus, flag, ez);
	else abort();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r9d, %r12d
movq %rdi, %r13
movq 0xc8(%rsp), %rax
movq %rax, 0x28(%rsp)
movl 0xc0(%rsp), %eax
movq %rax, 0x30(%rsp)
movl 0xb8(%rsp), %eax
movq %rax, 0x38(%rsp)
movl 0xb0(%rsp), %ebp
movl 0xa8(%rsp), %ebx
movb 0xa0(%rsp), %r10b
movb 0x98(%rsp), %r9b
movb 0x90(%rsp), %dil
movb 0x88(%rsp), %r15b
movq 0x80(%rsp), %rax
movq %rax, 0x40(%rsp)
cmpl $0x0, 0x168fd(%rip)     # 0x35910
jns 0x1f06e
movq %rbx, 0x18(%rsp)
movq %r8, 0x10(%rsp)
movq %rbp, 0x20(%rsp)
movl %ecx, %ebp
movq %rdx, %r14
movb %r15b, 0xb(%rsp)
movl %edi, %ebx
movb %r9b, 0xa(%rsp)
movl %esi, 0xc(%rsp)
movl %r10d, %r15d
callq 0x1ef2a
movl %r15d, %r10d
movl 0xc(%rsp), %esi
movb 0xa(%rsp), %r9b
movl %ebx, %edi
movb 0xb(%rsp), %r15b
movq %r14, %rdx
movl %ebp, %ecx
movq 0x20(%rsp), %rbp
movq 0x10(%rsp), %r8
movq 0x18(%rsp), %rbx
movl %eax, 0x168a2(%rip)     # 0x35910
movl 0x1689c(%rip), %eax     # 0x35910
testb $0x10, %al
jne 0x1f0c6
testb $0x2, %al
je 0x1f0e0
movsbl %r10b, %r10d
movsbl %r9b, %r11d
movsbl %dil, %r14d
movsbl %r15b, %eax
movsbl %r12b, %r9d
movq %r13, %rdi
pushq 0x28(%rsp)
pushq 0x38(%rsp)
pushq 0x48(%rsp)
pushq %rbp
pushq %rbx
pushq %r10
pushq %r11
pushq %r14
pushq %rax
pushq 0x88(%rsp)
callq 0x25d98
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movsbl %r12b, %r9d
movq %r13, %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x208ec
callq 0x2050
// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/ksw2_dispatch.c
// Function: ksw_exts2_sse
void ksw_exts2_sse(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat,
				   int8_t q, int8_t e, int8_t q2, int8_t noncan, int zdrop, int end_bonus, int8_t junc_bonus, int8_t junc_pen, int flag, const uint8_t *junc, ksw_extz_t *ez)
{
	extern void ksw_exts2_sse2(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat,
				   int8_t q, int8_t e, int8_t q2, int8_t noncan, int zdrop, int end_bonus, int8_t junc_bonus, int8_t junc_pen, int flag, const uint8_t *junc, ksw_extz_t *ez);
	extern void ksw_exts2_sse41(void *km, int qlen, const uint8_t *query, int tlen, const uint8_t *target, int8_t m, const int8_t *mat,
				   int8_t q, int8_t e, int8_t q2, int8_t noncan, int zdrop, int end_bonus, int8_t junc_bonus, int8_t junc_pen, int flag, const uint8_t *junc, ksw_extz_t *ez);
	if (ksw_simd < 0) ksw_simd = x86_simd();
	if (ksw_simd & SIMD_SSE4_1)
		ksw_exts2_sse41(km, qlen, query, tlen, target, m, mat, q, e, q2, noncan, zdrop, end_bonus, junc_bonus, junc_pen, flag, junc, ez);
	else if (ksw_simd & SIMD_SSE2)
		ksw_exts2_sse2(km, qlen, query, tlen, target, m, mat, q, e, q2, noncan, zdrop, end_bonus, junc_bonus, junc_pen, flag, junc, ez);
	else abort();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq 0xd8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0xd0(%rsp), %rax
movq %rax, 0x20(%rsp)
movl 0xc8(%rsp), %eax
movq %rax, 0x28(%rsp)
movb 0xc0(%rsp), %r13b
movb 0xb8(%rsp), %r15b
movl 0xb0(%rsp), %eax
movq %rax, 0x30(%rsp)
movl 0xa8(%rsp), %eax
movq %rax, 0x38(%rsp)
movb 0xa0(%rsp), %r12b
movb 0x98(%rsp), %r14b
movb 0x90(%rsp), %bpl
movb 0x88(%rsp), %bl
movq 0x80(%rsp), %rax
movq %rax, 0x40(%rsp)
cmpl $0x0, 0x1679c(%rip)     # 0x35910
jns 0x1f1cf
movb %bl, 0xb(%rsp)
movq %r8, %rbx
movb %bpl, 0xa(%rsp)
movl %ecx, %ebp
movb %r14b, 0x9(%rsp)
movq %rdx, %r14
movl %esi, 0xc(%rsp)
movq %rdi, 0x10(%rsp)
movb %r12b, 0x8(%rsp)
movl %r9d, %r12d
callq 0x1ef2a
movl %r12d, %r9d
movb 0x8(%rsp), %r12b
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %esi
movq %r14, %rdx
movb 0x9(%rsp), %r14b
movl %ebp, %ecx
movb 0xa(%rsp), %bpl
movq %rbx, %r8
movb 0xb(%rsp), %bl
movl %eax, 0x16741(%rip)     # 0x35910
movl 0x1673b(%rip), %eax     # 0x35910
testb $0x10, %al
jne 0x1f233
testb $0x2, %al
je 0x1f24a
movsbl %r13b, %r10d
movsbl %r15b, %r11d
movsbl %r12b, %eax
movsbl %r14b, %r14d
movsbl %bpl, %ebp
movsbl %bl, %ebx
movsbl %r9b, %r9d
pushq 0x18(%rsp)
pushq 0x28(%rsp)
pushq 0x38(%rsp)
pushq %r10
pushq %r11
pushq 0x58(%rsp)
pushq 0x68(%rsp)
pushq %rax
pushq %r14
pushq %rbp
pushq %rbx
pushq 0x98(%rsp)
callq 0x27c80
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movsbl %r9b, %r9d
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x225c0
callq 0x2050
nop
// File: /workspace/github_c_makefile_star2_O1/soso7885[P]OPCUA_example/demo_src/server.c
// Function: readTimeData
static UA_StatusCode
readTimeData(void *handle, const UA_NodeId nodeId, UA_Boolean sourceTimeStamp,
             const UA_NumericRange *range, UA_DataValue *value) {
    if(range) {
        value->hasStatus = true;
        value->status = UA_STATUSCODE_BADINDEXRANGEINVALID;
        return UA_STATUSCODE_GOOD;
    }
	UA_DateTime currentTime = UA_DateTime_now();
    UA_Variant_setScalarCopy(&value->value, &currentTime, &UA_TYPES[UA_TYPES_DATETIME]);
	value->hasValue = true;
	if(sourceTimeStamp) {
		value->hasSourceTimestamp = true;
		value->sourceTimestamp = currentTime;
	}
	return UA_STATUSCODE_GOOD;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rbx
testq %rdx, %rdx
je 0x3826
orb $0x2, (%rbx)
movl $0x80360000, 0x38(%rbx) # imm = 0x80360000
jmp 0x3864
movl %esi, %r14d
callq 0x2200
leaq -0x18(%rbp), %rsi
movq %rax, (%rsi)
leaq 0x8(%rbx), %rdi
movl $0x1e0, %edx            # imm = 0x1E0
addq 0x278b(%rip), %rdx      # 0x5fd0
callq 0x2170
movb (%rbx), %al
movl %eax, %ecx
orb $0x1, %cl
movb %cl, (%rbx)
testb %r14b, %r14b
je 0x3864
orb $0x5, %al
movb %al, (%rbx)
movq -0x18(%rbp), %rax
movq %rax, 0x40(%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/soso7885[P]OPCUA_example/demo_src/server.c
// Function: readTemperature
static UA_StatusCode
readTemperature(void *handle, const UA_NodeId nodeId, UA_Boolean sourceTimeStamp,
                const UA_NumericRange *range, UA_DataValue *value) {
    if(range) {
        value->hasStatus = true;
        value->status = UA_STATUSCODE_BADINDEXRANGEINVALID;
        return UA_STATUSCODE_GOOD;
    }

	rewind(temperatureFile);
	fflush(temperatureFile);

	UA_Double currentTemperature;
	if(fscanf(temperatureFile, "%lf", &currentTemperature) != 1){
		UA_LOG_WARNING(logger, UA_LOGCATEGORY_USERLAND, "Can not parse temperature");
		exit(1);
	}

	currentTemperature /= 1000.0;

	value->sourceTimestamp = UA_DateTime_now();
	value->hasSourceTimestamp = true;
    UA_Variant_setScalarCopy(&value->value, &currentTemperature, &UA_TYPES[UA_TYPES_DOUBLE]);
	value->hasValue = true;
	return UA_STATUSCODE_GOOD;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rbx
testq %rdx, %rdx
je 0x388e
orb $0x2, (%rbx)
movl $0x80360000, 0x38(%rbx) # imm = 0x80360000
jmp 0x3901
movq 0x28cb(%rip), %rdi      # 0x6160
callq 0x2110
movq 0x28bf(%rip), %rdi      # 0x6160
callq 0x21c0
movq 0x28b3(%rip), %rdi      # 0x6160
leaq 0x91b(%rip), %rsi       # 0x41cf
leaq -0x18(%rbp), %rdx
xorl %eax, %eax
callq 0x2070
cmpl $0x1, %eax
jne 0x390c
leaq -0x18(%rbp), %r14
movsd (%r14), %xmm0
divsd 0x74b(%rip), %xmm0      # 0x4020
movsd %xmm0, (%r14)
callq 0x2200
movq %rax, 0x40(%rbx)
orb $0x4, (%rbx)
leaq 0x8(%rbx), %rdi
movl $0x190, %edx            # imm = 0x190
addq 0x26da(%rip), %rdx      # 0x5fd0
movq %r14, %rsi
callq 0x2170
orb $0x1, (%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq 0x283d(%rip), %rcx      # 0x6150
testq %rcx, %rcx
je 0x392d
leaq 0x8b4(%rip), %rdx       # 0x41d3
movl $0x3, %edi
movl $0x5, %esi
xorl %eax, %eax
callq *%rcx
movl $0x1, %edi
callq 0x2240
// File: /workspace/github_c_makefile_star2_O1/soso7885[P]OPCUA_example/demo_src/server.c
// Function: readLedStatus
static UA_StatusCode
readLedStatus(void *handle, UA_NodeId nodeid, UA_Boolean sourceTimeStamp,
              const UA_NumericRange *range, UA_DataValue *value) {
    if(range)
        return UA_STATUSCODE_BADINDEXRANGEINVALID;

    value->hasValue = true;
    UA_StatusCode retval = UA_Variant_setScalarCopy(&value->value, &ledStatus,
                                                    &UA_TYPES[UA_TYPES_BOOLEAN]);

    if(retval != UA_STATUSCODE_GOOD)
        return retval;
  
    if(sourceTimeStamp) {
        value->sourceTimestamp = UA_DateTime_now();
        value->hasSourceTimestamp = true;
    }
    return UA_STATUSCODE_GOOD;
}

// Assembly:
movl $0x80360000, %eax       # imm = 0x80360000
testq %rdx, %rdx
je 0x3942
retq
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rcx, %rbx
movl %esi, %r14d
orb $0x1, (%rcx)
leaq 0x8(%rcx), %rdi
leaq 0x281b(%rip), %rsi      # 0x6178
movq 0x266c(%rip), %rdx      # 0x5fd0
callq 0x2170
testl %eax, %eax
setne %cl
xorb $0x1, %r14b
orb %cl, %r14b
jne 0x3985
callq 0x2200
movq %rax, 0x40(%rbx)
orb $0x4, (%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/soso7885[P]OPCUA_example/demo_src/server.c
// Function: writeLedStatus
static UA_StatusCode
writeLedStatus(void *handle, const UA_NodeId nodeid,
               const UA_Variant *data, const UA_NumericRange *range) {
    if(range)
        return UA_STATUSCODE_BADINDEXRANGEINVALID;

#ifdef UA_ENABLE_MULTITHREADING
	pthread_rwlock_wrlock(&writeLock);
#endif
	if(data->data)
		ledStatus = *(UA_Boolean*)data->data;

	if(triggerFile)
		fseek(triggerFile, 0, SEEK_SET);

	if(ledFile) {
		if(ledStatus == 1)
			fprintf(ledFile, "%s", "1");
		else
			fprintf(ledFile, "%s", "0");
		fflush(ledFile);
	}
#ifdef UA_ENABLE_MULTITHREADING
	pthread_rwlock_unlock(&writeLock);
#endif
	return UA_STATUSCODE_GOOD;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl $0x80360000, %ebx       # imm = 0x80360000
testq %rdx, %rdx
jne 0x39f8
movq 0x18(%rsi), %rax
testq %rax, %rax
je 0x39ab
movb (%rax), %al
movb %al, 0x27cd(%rip)       # 0x6178
movq 0x27b6(%rip), %rdi      # 0x6168
testq %rdi, %rdi
je 0x39c0
xorl %esi, %esi
xorl %edx, %edx
callq 0x21f0
movq 0x27a9(%rip), %rsi      # 0x6170
xorl %ebx, %ebx
testq %rsi, %rsi
je 0x39f8
leaq 0x6e0(%rip), %rax       # 0x40b5
leaq 0x7ce(%rip), %rdi       # 0x41aa
cmpb $0x0, 0x2795(%rip)      # 0x6178
cmovneq %rax, %rdi
callq 0x2120
movq 0x277d(%rip), %rdi      # 0x6170
callq 0x21c0
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/soso7885[P]OPCUA_example/demo_src/server.c
// Function: getMonitoredItems
static UA_StatusCode
getMonitoredItems(void *methodHandle, const UA_NodeId objectId,
                  size_t inputSize, const UA_Variant *input,
                  size_t outputSize, UA_Variant *output) {
    UA_String tmp = UA_STRING("Hello World");
    UA_Variant_setScalarCopy(output, &tmp, &UA_TYPES[UA_TYPES_STRING]);
    printf("getMonitoredItems was called\n");
    return UA_STATUSCODE_GOOD;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %r8, %rdi
leaq -0x10(%rbp), %rsi
movq $0xb, (%rsi)
leaq 0x7dc(%rip), %rax       # 0x421f
movq %rax, 0x8(%rsi)
movl $0x1b8, %edx            # imm = 0x1B8
addq 0x257d(%rip), %rdx      # 0x5fd0
callq 0x2170
leaq 0x7cc(%rip), %rdi       # 0x422b
callq 0x2080
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/aes128n12t8clocv2/aesni/encrypt.c
// Function: load_partial_block
void load_partial_block(block* dst, const unsigned char* m, int len, unsigned choice)
{
    unsigned char temp[16];
    if(choice == ZERO_APPEND){
        memcpy(temp, m, len);
        memset(temp+len, 0, 16-len);
        *dst = LOAD(temp);
    }
    else if(choice == ONE_ZERO_PADDING){
        memcpy(temp, m, len);
        memset(temp+len, 0, STATE_LEN-len);
        if(len < STATE_LEN)
            temp[len] = 0x80;
        *dst = LOAD(temp);
    }
    else if(choice == ZERO_PREPEND){
        memcpy(temp+16-len, m, len);
        memset(temp, 0, 16-len);
        *dst = LOAD(temp);
    }
    else if(choice == PARAM_OZP){
        temp[0] = PARAM;
        memcpy(temp+1, m, len);
        memset(temp+len+1, 0, STATE_LEN-len-1);
        if(len < (STATE_LEN-1))
            temp[len+1] = 0x80;
        *dst = LOAD(temp);
    }
    else{
        // do nothing
    }
}

// Assembly:
cmpl $0x3, %ecx
ja 0x13ec
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movq %rdi, %rbx
movl %ecx, %eax
leaq 0x1ce5(%rip), %rcx      # 0x3000
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movslq %ebp, %r14
movq %rsp, %rdi
movq %r14, %rdx
callq 0x1080
leaq (%rsp,%r14), %rdi
movl $0x10, %eax
subl %ebp, %eax
movslq %eax, %rdx
jmp 0x13d4
movslq %ebp, %r14
movq %rsp, %rdi
movq %r14, %rdx
callq 0x1080
leaq (%rsp,%r14), %rdi
movl $0x10, %eax
subl %ebp, %eax
movslq %eax, %rdx
xorl %esi, %esi
callq 0x1030
cmpl $0xf, %ebp
jg 0x13db
movb $-0x80, (%rsp,%r14)
jmp 0x13db
leaq 0x1(%rsp), %rdi
movb $-0x40, -0x1(%rdi)
movslq %ebp, %r14
movq %r14, %rdx
callq 0x1080
leaq (%rsp,%r14), %rdi
incq %rdi
movl $0xf, %eax
subl %r14d, %eax
movslq %eax, %rdx
xorl %esi, %esi
callq 0x1030
cmpl $0xe, %r14d
jg 0x13db
movq %rsp, %rax
movb $-0x80, 0x1(%r14,%rax)
jmp 0x13db
movslq %ebp, %rdx
movq %rsp, %r14
movq %r14, %rdi
subq %rdx, %rdi
addq $0x10, %rdi
callq 0x1080
movl $0x10, %eax
subl %ebp, %eax
movslq %eax, %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x1030
vmovaps (%rsp), %xmm0
vmovaps %xmm0, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/arachsys[P]init/daemon.c
// Function: execute
static void execute(char **argv) {
  if (gid > 0 && setgid(gid) < 0)
    err(EXIT_FAILURE, "setgid");
  if (uid > 0 && setuid(uid) < 0)
    err(EXIT_FAILURE, "setuid");
  execvp(argv[0], argv);
  err(EXIT_FAILURE, "exec");
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x2bfa(%rip), %edi      # 0x61fc
testl %edi, %edi
je 0x3618
callq 0x22a0
testl %eax, %eax
jns 0x3618
leaq 0x110a(%rip), %rsi      # 0x4720
jmp 0x3646
movl 0x2bda(%rip), %edi      # 0x61f8
testl %edi, %edi
je 0x3634
callq 0x2340
testl %eax, %eax
jns 0x3634
leaq 0x10f5(%rip), %rsi      # 0x4727
jmp 0x3646
movq (%rbx), %rdi
movq %rbx, %rsi
callq 0x22f0
leaq 0xb44(%rip), %rsi       # 0x418a
movl $0x1, %edi
xorl %eax, %eax
callq 0x2210
// File: /workspace/github_c_makefile_star2_O1/arachsys[P]init/daemon.c
// Function: listen_add
static void listen_add(int fd) {
  if ((listeners & 15) == 0) {
    pollfd = realloc(pollfd, (listeners + 16) * sizeof(struct pollfd));
    if (pollfd == NULL)
      err(EXIT_FAILURE, "realloc");
  }
  pollfd[listeners++].fd = fd;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
movq 0x2b54(%rip), %r14      # 0x6210
testb $0xf, %r14b
jne 0x36e2
movq 0x2b6f(%rip), %rdi      # 0x6238
leaq 0x80(,%r14,8), %rsi
callq 0x2270
movq %rax, 0x2b5b(%rip)      # 0x6238
testq %rax, %rax
je 0x3700
movq 0x2b4f(%rip), %rax      # 0x6238
leaq 0x1(%r14), %rcx
movq %rcx, 0x2b1c(%rip)      # 0x6210
movl %ebx, (%rax,%r14,8)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xabe(%rip), %rsi       # 0x41c5
movl $0x1, %edi
xorl %eax, %eax
callq 0x2210
// File: /workspace/github_c_makefile_star2_O1/arachsys[P]init/daemon.c
// Function: signal_get
static int signal_get(void) {
  unsigned char signal = 0;
  while (read(signals[0], &signal, 1) < 0)
    if (errno != EINTR)
      break;
  return signal;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
leaq 0xf(%rsp), %rbx
movb $0x0, (%rbx)
movl 0x2af2(%rip), %edi      # 0x6218
movl $0x1, %edx
movq %rbx, %rsi
callq 0x2180
testq %rax, %rax
jns 0x3742
callq 0x2040
cmpl $0x4, (%rax)
je 0x3720
movzbl 0xf(%rsp), %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/arachsys[P]init/daemon.c
// Function: reap
static pid_t reap(int *status) {
  pid_t child;

  while ((child = waitpid(-1, status, WNOHANG)) < 0)
    if (errno != EINTR)
      break;
  return child > 0 ? child : 0;
}

// Assembly:
pushq %rbx
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
xorl %esi, %esi
movl $0x1, %edx
callq 0x22b0
movl %eax, %ebx
testl %eax, %eax
jns 0x376f
callq 0x2040
cmpl $0x4, (%rax)
je 0x374e
xorl %eax, %eax
testl %ebx, %ebx
cmovgl %ebx, %eax
popq %rbx
retq
nopl (%rax,%rax)