LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgt_read_rec
int bgt_read_rec(bgt_t *bgt, bgt_rec_t *r)
{
	int row;
	const uint8_t **a;
	r->b0 = 0, r->a[0] = r->a[1] = 0;
	if (bgt->n_out == 0) return -1;
	if ((row = bgt_read_core(bgt)) < 0) return row;
	r->b0 = bgt->b0;
	pbf_seek(bgt->pb, row);
	a = pbf_read(bgt->pb);
	r->a[0] = (uint8_t*)a[0], r->a[1] = (uint8_t*)a[1];
	return row;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq $0x0, (%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x18(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x34(%rax)
jne 0x1dbd6
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x1dc45
movq -0x10(%rbp), %rdi
callq 0x1d960
movl %eax, -0x1c(%rbp)
cmpl $0x0, %eax
jge 0x1dbef
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1dc45
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x1c(%rbp), %rsi
callq 0x1bd60
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x1bb90
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgt_read
int bgt_read(bgt_t *bgt, bcf1_t *b)
{
	int ret;
	bgt_rec_t r;
	if (bgt->h_out == 0) bgt_prepare(bgt);
	if ((ret = bgt_read_rec(bgt, &r)) < 0) return ret;
	bcfcpy(b, r.b0);
	bgt_gen_gt(bgt->h_out, b, bgt->n_out, r.a, 0);
	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x58(%rax)
jne 0x1dc74
movq -0x10(%rbp), %rdi
callq 0x1cce0
movq -0x10(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x1db90
movl %eax, -0x1c(%rbp)
cmpl $0x0, %eax
jge 0x1dc91
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1dcc9
movq -0x18(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x15370
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rax
movl 0x34(%rax), %edx
leaq -0x38(%rbp), %rcx
addq $0x8, %rcx
xorl %eax, %eax
movl %eax, %r8d
callq 0x1d470
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgtm_reader_init
bgtm_t *bgtm_reader_init(int n_files, bgt_file_t *const* bf)
{
	bgtm_t *bm;
	int i;
	bm = (bgtm_t*)calloc(1, sizeof(bgtm_t));
	bm->n_bgt = n_files;
	bm->bgt = (bgt_t**)calloc(bm->n_bgt, sizeof(void*));
	for (i = 0; i < bm->n_bgt; ++i)
		bm->bgt[i] = bgt_reader_init(bf[i]);
	bm->r = (bgt_rec_t*)calloc(bm->n_bgt, sizeof(bgt_rec_t));
	return bm;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x1, %edi
movl $0xb8, %esi
callq 0x2230
movq %rax, -0x18(%rbp)
movl -0x4(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movslq (%rax), %rdi
movl $0x8, %esi
callq 0x2230
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x38(%rax)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x1dd68
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x1c6b0
movq %rax, %rdx
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0x1c(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x1dd2e
movq -0x18(%rbp), %rax
movslq (%rax), %rdi
movl $0x18, %esi
callq 0x2230
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x18(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgtm_add_group
int bgtm_add_group(bgtm_t *bm, const char *expr)
{
	int i, ret = 0, size = 0;
	for (i = 0; i < bm->n_bgt; ++i)
		if ((ret = bgt_add_group(bm->bgt[i], expr)) < 0) break;
		else size += ret;
	if (i == bm->n_bgt) ++bm->n_groups; // TODO: revert bm->bgt[i]->n_groups
	return i == bm->n_bgt? size : ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x1e069
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x10(%rbp), %rsi
callq 0x1cab0
movl %eax, -0x18(%rbp)
cmpl $0x0, %eax
jge 0x1e053
jmp 0x1e069
movl -0x18(%rbp), %eax
addl -0x1c(%rbp), %eax
movl %eax, -0x1c(%rbp)
jmp 0x1e05e
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1e025
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jne 0x1e081
movq -0x8(%rbp), %rax
movl 0x8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8(%rax)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jne 0x1e094
movl -0x1c(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x1e09a
movl -0x18(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgtm_set_region
int bgtm_set_region(bgtm_t *bm, const char *reg)
{
	int i, ret = 0;
	for (i = 0; i < bm->n_bgt; ++i)
		if ((ret = bgt_set_region(bm->bgt[i], reg)) < 0)
			break;
	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x18(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x1e109
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x10(%rbp), %rsi
callq 0x1cbe0
movl %eax, -0x18(%rbp)
cmpl $0x0, %eax
jge 0x1e0fc
jmp 0x1e109
jmp 0x1e0fe
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1e0ce
movl -0x18(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgtm_set_start
int bgtm_set_start(bgtm_t *bm, int64_t n)
{
	int i;
	for (i = 0; i < bm->n_bgt; ++i)
		bgt_set_start(bm->bgt[i], n);
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x1e166
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x10(%rbp), %rsi
callq 0x1cc70
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1e137
xorl %eax, %eax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgtm_set_flt_site
int bgtm_set_flt_site(bgtm_t *bm, const char *expr)
{
	int err;
	if (bm->site_flt) ke_destroy(bm->site_flt);
	bm->site_flt = ke_parse(expr, &err);
	if (err != 0) {
		if (bm->site_flt) ke_destroy(bm->site_flt);
		bm->site_flt = 0;
		return err;
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x1e218
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rdi
callq 0x23c00
movq -0x18(%rbp), %rdi
leaq -0x1c(%rbp), %rsi
callq 0x22f50
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x48(%rax)
cmpl $0x0, -0x1c(%rbp)
je 0x1e262
movq -0x10(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x1e24e
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rdi
callq 0x23c00
movq -0x10(%rbp), %rax
movq $0x0, 0x48(%rax)
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1e269
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: add_allele
static inline bgt_allele_t *add_allele(bgt_allele_t *al, int *n, int *m, const char *s)
{
	if (*n == *m) {
		int oldm = *m;
		*m = *m? *m<<1 : 4;
		al = (bgt_allele_t*)realloc(al, *m * sizeof(bgt_allele_t));
		memset(al + oldm, 0, (*m - oldm) * sizeof(bgt_allele_t));
	}
	if (bgt_al_parse(s, &al[*n]) == 0) ++(*n);
	return al;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x18(%rbp), %rcx
cmpl (%rcx), %eax
jne 0x1ed55
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
je 0x1ed05
movq -0x18(%rbp), %rax
movl (%rax), %eax
shll %eax
movl %eax, -0x28(%rbp)
jmp 0x1ed0f
movl $0x4, %eax
movl %eax, -0x28(%rbp)
jmp 0x1ed0f
movl -0x28(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movslq (%rax), %rax
imulq $0x30, %rax, %rsi
callq 0x2340
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movslq -0x24(%rbp), %rax
imulq $0x30, %rax, %rax
addq %rax, %rdi
movq -0x18(%rbp), %rax
movl (%rax), %eax
subl -0x24(%rbp), %eax
cltq
imulq $0x30, %rax, %rdx
xorl %esi, %esi
callq 0x21e0
movq -0x20(%rbp), %rdi
movq -0x8(%rbp), %rsi
movq -0x10(%rbp), %rax
movslq (%rax), %rax
imulq $0x30, %rax, %rax
addq %rax, %rsi
callq 0x1e7e0
cmpl $0x0, %eax
jne 0x1ed80
movq -0x10(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgt_al_format
void bgt_al_format(const bgt_allele_t *a, kstring_t *s)
{
	s->l = 0;
	kputsn(a->chr.s, a->al - a->chr.s - 1, s); kputc(':', s);
	kputw(a->pos, s); kputc(':', s);
	kputw(a->rlen, s); kputc(':', s);
	kputsn(a->al, a->chr.s + a->chr.l - a->al, s);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq $0x0, (%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x10(%rcx), %rcx
subq %rcx, %rax
subq $0x1, %rax
movl %eax, %esi
movq -0x10(%rbp), %rdx
callq 0x1d010
movq -0x10(%rbp), %rsi
movl $0x3a, %edi
callq 0x1d1a0
movq -0x8(%rbp), %rax
movl 0x24(%rax), %edi
movq -0x10(%rbp), %rsi
callq 0x22340
movq -0x10(%rbp), %rsi
movl $0x3a, %edi
callq 0x1d1a0
movq -0x8(%rbp), %rax
movl 0x28(%rax), %edi
movq -0x10(%rbp), %rsi
callq 0x22340
movq -0x10(%rbp), %rsi
movl $0x3a, %edi
callq 0x1d1a0
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x8(%rbp), %rcx
addq (%rcx), %rax
movq -0x8(%rbp), %rcx
movq 0x18(%rcx), %rcx
subq %rcx, %rax
movl %eax, %esi
movq -0x10(%rbp), %rdx
callq 0x1d010
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgtm_test_mgs
int bgtm_test_mgs(const bgtm_t *bm)
{
	int i, cnt[BGT_MAX_GROUPS];
	memset(cnt, 0, BGT_MAX_GROUPS * sizeof(int));
	for (i = 0; i < bm->n_out; ++i)
		++cnt[bm->group[i]-1];
	for (i = 0; i < bm->n_out; ++i)
		if (bm->mgs[i] > cnt[bm->group[i]-1])
			return 0;
	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
leaq -0xa0(%rbp), %rdi
xorl %esi, %esi
movl $0x80, %edx
callq 0x21e0
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x1fd65
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x14(%rbp), %rcx
movl (%rax,%rcx,4), %eax
subl $0x1, %eax
movl %eax, %eax
movl -0xa0(%rbp,%rax,4), %ecx
addl $0x1, %ecx
movl %ecx, -0xa0(%rbp,%rax,4)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1fd29
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x1fdba
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0x14(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -0x10(%rbp), %rcx
movq 0x20(%rcx), %rcx
movslq -0x14(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
cmpl -0xa0(%rbp,%rcx,4), %eax
jle 0x1fdad
movl $0x0, -0x4(%rbp)
jmp 0x1fdc1
jmp 0x1fdaf
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1fd6c
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xa0, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgtm_assign_expr
void bgtm_assign_expr(kexpr_t *e, const bgt_info_t *ss)
{
	int i;
	char key[5];
	ke_set_int(e, "AN", ss->an);
	ke_set_int(e, "AC", ss->ac[0]);
	for (i = 0; i < ss->n_groups; ++i) {
		ke_set_int(e, gen_group_key(key, 'N', i), ss->gan[i]);
		ke_set_int(e, gen_group_key(key, 'C', i), ss->gac[i][0]);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movslq 0x8(%rax), %rdx
leaq 0x8b0c(%rip), %rsi      # 0x288ff
callq 0x23c90
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movslq (%rax), %rdx
leaq 0x8af8(%rip), %rsi      # 0x28902
callq 0x23c90
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x1fe94
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq -0x19(%rbp), %rdi
movl -0x14(%rbp), %edx
movl $0x4e, %esi
callq 0x1fea0
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movslq 0x10(%rax,%rcx,4), %rdx
callq 0x23c90
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
leaq -0x19(%rbp), %rdi
movl -0x14(%rbp), %edx
movl $0x43, %esi
callq 0x1fea0
movq -0x28(%rbp), %rdi
movq %rax, %rsi
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movslq 0x90(%rax,%rcx,8), %rdx
callq 0x23c90
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1fe16
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: gen_group_key
static inline char *gen_group_key(char key[5], char nc, int g)
{
	key[0] = 'A'; key[1] = nc;
	if (g < 9) key[2] = '0' + (g+1), key[3] = 0;
	else key[2] = '0' + (g+1)/10, key[3] = '0' + (g+1)%10, key[4] = 0;
	return key;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb %sil, %al
movq %rdi, -0x8(%rbp)
movb %al, -0x9(%rbp)
movl %edx, -0x10(%rbp)
movq -0x8(%rbp), %rax
movb $0x41, (%rax)
movb -0x9(%rbp), %cl
movq -0x8(%rbp), %rax
movb %cl, 0x1(%rax)
cmpl $0x9, -0x10(%rbp)
jge 0x1fee4
movl -0x10(%rbp), %eax
addl $0x1, %eax
addl $0x30, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0x3(%rax)
jmp 0x1ff20
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl $0xa, %ecx
cltd
idivl %ecx
addl $0x30, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x2(%rax)
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl $0xa, %ecx
cltd
idivl %ecx
addl $0x30, %edx
movb %dl, %cl
movq -0x8(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0x4(%rax)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgtm_pass_site_flt
int bgtm_pass_site_flt(const bgt_info_t *ss, kexpr_t *flt)
{
	int is_true, err;
	if (flt == 0) return 1;
	bgtm_assign_expr(flt, ss);
	is_true = !!ke_eval_int(flt, &err);
	return err? 0 : is_true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x1ff50
movl $0x1, -0x4(%rbp)
jmp 0x1ff96
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x1fdd0
movq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x23b80
cmpq $0x0, %rax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x20(%rbp)
je 0x1ff8a
xorl %eax, %eax
movl %eax, -0x24(%rbp)
jmp 0x1ff90
movl -0x1c(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgtm_fill_info
void bgtm_fill_info(const bcf_hdr_t *h, const bgt_info_t *ss, bcf1_t *b)
{
	bcf_append_info_ints(h, b, "AN", 1, &ss->an);
	bcf_append_info_ints(h, b, "AC", b->n_allele - 1, ss->ac);
	if (ss->n_groups > 1) {
		int i;
		char key[5];
		for (i = 0; i < ss->n_groups; ++i) {
			bcf_append_info_ints(h, b, gen_group_key(key, 'N', i), 1, &ss->gan[i]);
			bcf_append_info_ints(h, b, gen_group_key(key, 'C', i), b->n_allele - 1, ss->gac[i]);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %r8
addq $0x8, %r8
leaq 0x8934(%rip), %rdx      # 0x288ff
movl $0x1, %ecx
callq 0x158b0
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
shrq $0x10, %rax
andq $0xffff, %rax           # imm = 0xFFFF
movl %eax, %ecx
subl $0x1, %ecx
movq -0x10(%rbp), %r8
leaq 0x8903(%rip), %rdx      # 0x28902
callq 0x158b0
movq -0x10(%rbp), %rax
cmpl $0x1, 0xc(%rax)
jle 0x200e0
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x200de
movq -0x8(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq -0x21(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl $0x4e, %esi
callq 0x1fea0
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq %rax, %rdx
movq -0x10(%rbp), %r8
addq $0x10, %r8
movslq -0x1c(%rbp), %rax
shlq $0x2, %rax
addq %rax, %r8
movl $0x1, %ecx
callq 0x158b0
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq -0x21(%rbp), %rdi
movl -0x1c(%rbp), %edx
movl $0x43, %esi
callq 0x1fea0
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %rax, %rdx
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
shrq $0x10, %rax
andq $0xffff, %rax           # imm = 0xFFFF
movl %eax, %ecx
subl $0x1, %ecx
movq -0x10(%rbp), %r8
addq $0x90, %r8
movslq -0x1c(%rbp), %rax
shlq $0x3, %rax
addq %rax, %r8
callq 0x158b0
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x20019
jmp 0x200e0
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgtm_assign_by_bcf
void bgtm_assign_by_bcf(kexpr_t *e, const bcf_hdr_t *h, const bcf1_t *b)
{
	int l_ref, l_alt, max_l;
	char *ref, *alt, *tmp;
	ke_set_str(e, "CHROM", h->id[BCF_DT_CTG][b->rid].key);
	ke_set_int(e, "POS", b->pos + 1);
	ke_set_int(e, "END", b->pos + b->rlen);
	bcf_get_ref_alt1(b, &l_ref, &ref, &l_alt, &alt);
	max_l = l_ref > l_alt? l_ref : l_alt;
	tmp = (char*)alloca(max_l + 1);
	strncpy(tmp, ref, l_ref); tmp[l_ref] = 0;
	ke_set_str(e, "REF", tmp);
	strncpy(tmp, alt, l_alt); tmp[l_alt] = 0;
	ke_set_str(e, "ALT", tmp);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x18(%rbp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdx
leaq 0x858d(%rip), %rsi      # 0x28905
callq 0x23e90
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
addl $0x1, %eax
movslq %eax, %rdx
leaq 0x8576(%rip), %rsi      # 0x2890b
callq 0x23c90
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x18(%rbp), %rcx
addl 0x8(%rcx), %eax
movslq %eax, %rdx
leaq 0x7f13(%rip), %rsi      # 0x282c9
callq 0x23c90
movq -0x18(%rbp), %rdi
leaq -0x1c(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x20(%rbp), %rcx
leaq -0x38(%rbp), %r8
callq 0x154d0
movl -0x1c(%rbp), %eax
cmpl -0x20(%rbp), %eax
jle 0x203e4
movl -0x1c(%rbp), %eax
movl %eax, -0x44(%rbp)
jmp 0x203ea
movl -0x20(%rbp), %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
movl %eax, -0x24(%rbp)
movslq -0x24(%rbp), %rcx
addq $0x10, %rcx
andq $-0x10, %rcx
movq %rsp, %rax
subq %rcx, %rax
movq %rax, %rsp
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
movq -0x30(%rbp), %rsi
movslq -0x1c(%rbp), %rdx
callq 0x2070
movq -0x40(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rdx
leaq 0x84da(%rip), %rsi      # 0x2890f
callq 0x23e90
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
movslq -0x20(%rbp), %rdx
callq 0x2070
movq -0x40(%rbp), %rax
movslq -0x20(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rdx
leaq 0x84ad(%rip), %rsi      # 0x28913
callq 0x23e90
movq %rbp, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgtm_gen_tbl_line
int bgtm_gen_tbl_line(bgtm_t *bm, const bgt_info_t *ss, const bcf1_t *b)
{
	int i, type, err;
	kstring_t *s = &bm->tbl_line;
	bm->tbl_line.l = 0;
	for (i = 0; i < bm->n_fields; ++i) {
		int64_t vi;
		double vr;
		const char *vs;
		kexpr_t *e = bm->fields[i];
		if (i) kputc('\t', s);
		bgtm_assign_expr(e, ss);
		bgtm_assign_by_bcf(e, bm->h_out, b);
		err = ke_eval(e, &vi, &vr, &vs, &type);
		if (err) kputc('*', s);
		else if (type == KEV_INT) kputl(vi, s);
		else if (type == KEV_REAL) ksprintf(s, "%lg", vr);
		else if (type == KEV_STR) kputs(vs, s);
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
addq $0x78, %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq $0x0, 0x78(%rax)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x68(%rcx), %eax
jge 0x2058c
movq -0x8(%rbp), %rax
movq 0x70(%rax), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x50(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x204db
movq -0x30(%rbp), %rsi
movl $0x9, %edi
callq 0x1d1a0
movq -0x50(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x1fdd0
movq -0x50(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x50(%rax), %rsi
movq -0x18(%rbp), %rdx
callq 0x20340
movq -0x50(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq -0x40(%rbp), %rdx
leaq -0x48(%rbp), %rcx
leaq -0x20(%rbp), %r8
callq 0x23790
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0x2052f
movq -0x30(%rbp), %rsi
movl $0x2a, %edi
callq 0x1d1a0
jmp 0x2057c
cmpl $0x2, -0x20(%rbp)
jne 0x20544
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x205a0
jmp 0x2057a
cmpl $0x1, -0x20(%rbp)
jne 0x20563
movq -0x30(%rbp), %rdi
movsd -0x40(%rbp), %xmm0
leaq 0x83bd(%rip), %rsi      # 0x28917
movb $0x1, %al
callq 0x1fae0
jmp 0x20578
cmpl $0x3, -0x20(%rbp)
jne 0x20576
movq -0x48(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x1d160
jmp 0x20578
jmp 0x2057a
jmp 0x2057c
jmp 0x2057e
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x204a3
xorl %eax, %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgtm_read
int bgtm_read(bgtm_t *bm, bcf1_t *b)
{
	int ret;
	if (bm->h_out == 0) bgtm_prepare(bm);
	while ((ret = bgtm_read_core(bm, b)) > 0);
	if ((bm->flag & BGT_F_NO_GT) == 0)
		bgt_gen_gt(bm->h_out, b, bm->n_out, (const uint8_t**)bm->a, bm->mgs);
	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x50(%rax)
jne 0x210d4
movq -0x8(%rbp), %rdi
callq 0x1f450
jmp 0x210d6
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x207a0
movl %eax, -0x14(%rbp)
cmpl $0x0, %eax
jle 0x210ed
jmp 0x210d6
movq -0x8(%rbp), %rax
movl 0xc(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0x21124
movq -0x8(%rbp), %rax
movq 0x50(%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x8(%rbp), %rax
movl 0x4(%rax), %edx
movq -0x8(%rbp), %rcx
addq $0x58, %rcx
movq -0x8(%rbp), %rax
movq 0x28(%rax), %r8
callq 0x1d470
movl -0x14(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgtm_hapcnt_print_destroy
char *bgtm_hapcnt_print_destroy(const bgtm_t *bm, int n_hap, bgt_hapcnt_t *hc)
{
	int i, j;
	kstring_t s = {0,0,0};
	ksprintf(&s, "NA\t%d\n", bm->n_aal);
	for (i = 0; i < bm->n_aal; ++i) {
		bgt_allele_t *a = &bm->aal[i];
		ksprintf(&s, "AA\t%s:%d:%d:%s\n", a->chr.s, a->pos+1, a->rlen, a->al);
	}
	ksprintf(&s, "NH\t%d\t%d\n", n_hap, bm->n_groups);
	for (i = 0; i < n_hap; ++i) {
		kputs("HC\t", &s);
		for (j = 0; j < bm->n_aal; ++j)
			kputc('0' + (hc[i].hap>>j&1), &s);
		for (j = 0; j < bm->n_groups; ++j)
			ksprintf(&s, "\t%d", hc[i].cnt[j]);
		kputc('\n', &s);
		free(hc[i].cnt);
	}
	free(hc);
	return s.s;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x21e0
movq -0x8(%rbp), %rax
movl 0x90(%rax), %edx
leaq -0x38(%rbp), %rdi
leaq 0x68b0(%rip), %rsi      # 0x28958
movb $0x0, %al
callq 0x1fae0
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x90(%rcx), %eax
jge 0x2211e
movq -0x8(%rbp), %rax
movq 0x98(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rdx
movq -0x40(%rbp), %rax
movl 0x24(%rax), %ecx
addl $0x1, %ecx
movq -0x40(%rbp), %rax
movl 0x28(%rax), %r8d
movq -0x40(%rbp), %rax
movq 0x18(%rax), %r9
leaq -0x38(%rbp), %rdi
leaq 0x6853(%rip), %rsi      # 0x2895f
movb $0x0, %al
callq 0x1fae0
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x220b6
movl -0xc(%rbp), %edx
movq -0x8(%rbp), %rax
movl 0x8(%rax), %ecx
leaq -0x38(%rbp), %rdi
leaq 0x683c(%rip), %rsi      # 0x2896f
movb $0x0, %al
callq 0x1fae0
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x22227
leaq 0x6825(%rip), %rdi      # 0x28979
leaq -0x38(%rbp), %rsi
callq 0x1d160
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x90(%rcx), %eax
jge 0x221a9
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
shrq %cl, %rax
andq $0x1, %rax
addq $0x30, %rax
movl %eax, %edi
leaq -0x38(%rbp), %rsi
callq 0x1d1a0
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x22164
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x221f3
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movslq -0x20(%rbp), %rcx
movl (%rax,%rcx,4), %edx
leaq -0x38(%rbp), %rdi
leaq 0x679c(%rip), %rsi      # 0x2897d
movb $0x0, %al
callq 0x1fae0
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x221b0
movl $0xa, %edi
leaq -0x38(%rbp), %rsi
callq 0x1d1a0
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rdi
callq 0x2040
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x22141
movq -0x18(%rbp), %rdi
callq 0x2040
movq -0x28(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/bgt.c
// Function: bgtm_alcnt_print
char *bgtm_alcnt_print(const bgtm_t *bm)
{
	int i;
	kstring_t s = {0,0,0};
	for (i = 0; i < bm->n_out; ++i) {
		if (bm->alcnt[i] == bm->n_aal) {
			bgt_t *bgt = bm->bgt[bm->sample_idx[i]>>32];
			if (bm->mgs[i] > 1) continue;
			ksprintf(&s, "SP\t%s\t%d\n", bgt->f->f->rows[(uint32_t)bm->sample_idx[i]].name, (int)(bm->sample_idx[i]>>32) + 1);
		}
	}
	return s.s;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
leaq -0x28(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x21e0
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x22333
movq -0x8(%rbp), %rax
movq 0xa8(%rax), %rax
movslq -0xc(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -0x8(%rbp), %rcx
cmpl 0x90(%rcx), %eax
jne 0x22323
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x18(%rcx), %rcx
movslq -0xc(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0xc(%rbp), %rcx
cmpl $0x1, (%rax,%rcx,4)
jle 0x222cd
jmp 0x22325
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0x28(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x18(%rcx), %rcx
movslq -0xc(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdx
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, %ecx
addl $0x1, %ecx
leaq -0x28(%rbp), %rdi
leaq 0x6665(%rip), %rsi      # 0x28981
movb $0x0, %al
callq 0x1fae0
jmp 0x22325
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x22263
movq -0x18(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/kexpr.c
// Function: ke_parse
kexpr_t *ke_parse(const char *_s, int *err)
{
	int n;
	ke1_t *e;
	kexpr_t *ke;
	e = ke_parse_core(_s, &n, err);
	if (*err) return 0;
	ke = (kexpr_t*)calloc(1, sizeof(kexpr_t));
	ke->n = n, ke->e = e;
	return ke;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0x1c(%rbp), %rsi
callq 0x22fd0
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
je 0x22f88
movq $0x0, -0x8(%rbp)
jmp 0x22fb8
movl $0x1, %edi
movl $0x10, %esi
callq 0x2230
movq %rax, -0x30(%rbp)
movl -0x1c(%rbp), %ecx
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/kexpr.c
// Function: ke_destroy
void ke_destroy(kexpr_t *ke)
{
	int i;
	if (ke == 0) return;
	for (i = 0; i < ke->n; ++i) {
		free(ke->e[i].name);
		free(ke->e[i].s);
	}
	free(ke->e); free(ke);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x23c15
jmp 0x23c80
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x23c6a
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0xc(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rdi
callq 0x2040
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0xc(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rdi
callq 0x2040
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x23c1c
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2040
movq -0x8(%rbp), %rdi
callq 0x2040
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/kexpr.c
// Function: ke_set_int
int ke_set_int(kexpr_t *ke, const char *var, int64_t y)
{
	int i, n = 0;
	double yy = (double)y;
	for (i = 0; i < ke->n; ++i) {
		ke1_t *e = &ke->e[i];
		if (e->ttype == KET_VAL && e->name && strcmp(e->name, var) == 0)
			e->i = y, e->r = yy, e->vtype = KEV_INT, e->assigned = 1, ++n;
	}
	return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x20(%rbp)
cvtsi2sdq -0x18(%rbp), %xmm0
movsd %xmm0, -0x28(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x23d79
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rax
andq $0xffff, %rax           # imm = 0xFFFF
cmpl $0x1, %eax
jne 0x23d69
movq -0x30(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x23d69
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x2240
cmpl $0x0, %eax
jne 0x23d69
movq -0x18(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x20(%rax)
movsd -0x28(%rbp), %xmm0
movq -0x30(%rbp), %rax
movsd %xmm0, 0x18(%rax)
movq -0x30(%rbp), %rax
movq (%rax), %rcx
andq $-0x3ff0001, %rcx       # imm = 0xFC00FFFF
orq $0x20000, %rcx          # imm = 0x20000
movq %rcx, (%rax)
movq -0x30(%rbp), %rax
movq (%rax), %rcx
andq $-0x4000001, %rcx       # imm = 0xFBFFFFFF
orq $0x4000000, %rcx        # imm = 0x4000000
movq %rcx, (%rax)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x23d6b
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x23cbd
movl -0x20(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/kexpr.c
// Function: ke_set_real
int ke_set_real(kexpr_t *ke, const char *var, double x)
{
	int i, n = 0;
	int64_t xx = (int64_t)(x + .5);
	for (i = 0; i < ke->n; ++i) {
		ke1_t *e = &ke->e[i];
		if (e->ttype == KET_VAL && e->name && strcmp(e->name, var) == 0)
			e->r = x, e->i = xx, e->vtype = KEV_REAL, e->assigned = 1, ++n;
	}
	return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movsd %xmm0, -0x18(%rbp)
movl $0x0, -0x20(%rbp)
movsd 0x4014(%rip), %xmm0     # 0x27dc8
addsd -0x18(%rbp), %xmm0
cvttsd2si %xmm0, %rax
movq %rax, -0x28(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x23e85
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rax
andq $0xffff, %rax           # imm = 0xFFFF
cmpl $0x1, %eax
jne 0x23e75
movq -0x30(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x23e75
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x2240
cmpl $0x0, %eax
jne 0x23e75
movsd -0x18(%rbp), %xmm0
movq -0x30(%rbp), %rax
movsd %xmm0, 0x18(%rax)
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x30(%rbp), %rax
movq (%rax), %rcx
andq $-0x3ff0001, %rcx       # imm = 0xFC00FFFF
orq $0x10000, %rcx          # imm = 0x10000
movq %rcx, (%rax)
movq -0x30(%rbp), %rax
movq (%rax), %rcx
andq $-0x4000001, %rcx       # imm = 0xFBFFFFFF
orq $0x4000000, %rcx        # imm = 0x4000000
movq %rcx, (%rax)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x23e77
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x23dc9
movl -0x20(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/kexpr.c
// Function: ke_set_str
int ke_set_str(kexpr_t *ke, const char *var, const char *x)
{
	int i, n = 0;
	for (i = 0; i < ke->n; ++i) {
		ke1_t *e = &ke->e[i];
		if (e->ttype == KET_VAL && e->name && strcmp(e->name, var) == 0) {
			if (e->vtype == KEV_STR) free(e->s);
			e->s = strdup(x);
			e->i = 0, e->r = 0., e->assigned = 1;
			e->vtype = KEV_STR;
			++n;
		}
	}
	return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x20(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x23faf
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
andq $0xffff, %rax           # imm = 0xFFFF
cmpl $0x1, %eax
jne 0x23f9f
movq -0x28(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x23f9f
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x2240
cmpl $0x0, %eax
jne 0x23f9f
movq -0x28(%rbp), %rax
movq (%rax), %rax
shrq $0x10, %rax
andq $0x3ff, %rax            # imm = 0x3FF
cmpl $0x3, %eax
jne 0x23f3a
movq -0x28(%rbp), %rax
movq 0x28(%rax), %rdi
callq 0x2040
movq -0x18(%rbp), %rdi
callq 0x2440
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x28(%rbp), %rax
movq $0x0, 0x20(%rax)
movq -0x28(%rbp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x18(%rax)
movq -0x28(%rbp), %rax
movq (%rax), %rcx
andq $-0x4000001, %rcx       # imm = 0xFBFFFFFF
orq $0x4000000, %rcx        # imm = 0x4000000
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
movq (%rax), %rcx
andq $-0x3ff0001, %rcx       # imm = 0xFC00FFFF
orq $0x30000, %rcx          # imm = 0x30000
movq %rcx, (%rax)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x23fa1
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x23eb2
movl -0x20(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/kexpr.c
// Function: ke_set_real_func1
int ke_set_real_func1(kexpr_t *ke, const char *name, double (*func)(double))
{
	int i, n = 0;
	for (i = 0; i < ke->n; ++i) {
		ke1_t *e = &ke->e[i];
		if (e->ttype == KET_FUNC && e->n_args == 1 && strcmp(e->name, name) == 0)
			e->f.real_func1 = func, e->user_func = KEF_REAL, ++n;
	}
	return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x20(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x24080
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
andq $0xffff, %rax           # imm = 0xFFFF
cmpl $0x3, %eax
jne 0x24070
movq -0x28(%rbp), %rax
movq (%rax), %rax
sarq $0x28, %rax
cmpl $0x1, %eax
jne 0x24070
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x2240
cmpl $0x0, %eax
jne 0x24070
movq -0x18(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x28(%rbp), %rax
movabsq $-0xf8000001, %rcx      # imm = 0xFFFFFFFF07FFFFFF
andq (%rax), %rcx
orq $0x8000000, %rcx        # imm = 0x8000000
movq %rcx, (%rax)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x24072
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x23fe2
movl -0x20(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/kexpr.c
// Function: ke_set_real_func2
int ke_set_real_func2(kexpr_t *ke, const char *name, double (*func)(double, double))
{
	int i, n = 0;
	for (i = 0; i < ke->n; ++i) {
		ke1_t *e = &ke->e[i];
		if (e->ttype == KET_FUNC && e->n_args == 2 && strcmp(e->name, name) == 0)
			e->f.real_func2 = func, e->user_func = KEF_REAL, ++n;
	}
	return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x20(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x24150
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
andq $0xffff, %rax           # imm = 0xFFFF
cmpl $0x3, %eax
jne 0x24140
movq -0x28(%rbp), %rax
movq (%rax), %rax
sarq $0x28, %rax
cmpl $0x2, %eax
jne 0x24140
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x2240
cmpl $0x0, %eax
jne 0x24140
movq -0x18(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x28(%rbp), %rax
movabsq $-0xf8000001, %rcx      # imm = 0xFFFFFFFF07FFFFFF
andq (%rax), %rcx
orq $0x8000000, %rcx        # imm = 0x8000000
movq %rcx, (%rax)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x24142
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x240b2
movl -0x20(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/kexpr.c
// Function: ke_set_default_func
int ke_set_default_func(kexpr_t *ke)
{
	int n = 0;
	n += ke_set_real_func1(ke, "exp", exp);
	n += ke_set_real_func1(ke, "log", log);
	n += ke_set_real_func1(ke, "log10", log10);
	n += ke_set_real_func1(ke, "sqrt", sqrt);
	n += ke_set_real_func1(ke, "sin", sin);
	n += ke_set_real_func1(ke, "cos", cos);
	n += ke_set_real_func1(ke, "tan", tan);
	n += ke_set_real_func2(ke, "pow", pow);
	return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x4822(%rip), %rsi      # 0x289a0
movq 0x9e6b(%rip), %rdx      # 0x2dff0
callq 0x23fc0
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x4809(%rip), %rsi      # 0x289a4
movq 0x9dfe(%rip), %rdx      # 0x2dfa0
callq 0x23fc0
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x47f0(%rip), %rsi      # 0x289a8
movq 0x9df9(%rip), %rdx      # 0x2dfb8
callq 0x23fc0
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x47d9(%rip), %rsi      # 0x289ae
movq 0x9e04(%rip), %rdx      # 0x2dfe0
callq 0x23fc0
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x47c1(%rip), %rsi      # 0x289b3
movq 0x9dd7(%rip), %rdx      # 0x2dfd0
callq 0x23fc0
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x47a8(%rip), %rsi      # 0x289b7
movq 0x9d92(%rip), %rdx      # 0x2dfa8
callq 0x23fc0
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x478f(%rip), %rsi      # 0x289bb
movq 0x9d95(%rip), %rdx      # 0x2dfc8
callq 0x23fc0
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x4776(%rip), %rsi      # 0x289bf
movq 0x9d40(%rip), %rdx      # 0x2df90
callq 0x24090
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/kexpr.c
// Function: ke_unset
void ke_unset(kexpr_t *ke)
{
	int i;
	for (i = 0; i < ke->n; ++i) {
		ke1_t *e = &ke->e[i];
		if (e->ttype == KET_VAL && e->name) e->assigned = 0;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x242e0
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0xc(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
andq $0xffff, %rax           # imm = 0xFFFF
cmpl $0x1, %eax
jne 0x242d3
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x242d3
movq -0x18(%rbp), %rax
movq (%rax), %rcx
andq $-0x4000001, %rcx       # imm = 0xFBFFFFFF
orq $0x0, %rcx
movq %rcx, (%rax)
jmp 0x242d5
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x2427f
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]bgt/kexpr.c
// Function: ke_print
void ke_print(const kexpr_t *ke)
{
	int i;
	if (ke == 0) return;
	for (i = 0; i < ke->n; ++i) {
		const ke1_t *u = &ke->e[i];
		if (i) putchar(' ');
		if (u->ttype == KET_VAL) {
			if (u->name) printf("%s", u->name);
			else if (u->vtype == KEV_REAL) printf("%g", u->r);
			else if (u->vtype == KEV_INT) printf("%lld", (long long)u->i);
			else if (u->vtype == KEV_STR) printf("\"%s\"", u->s);
		} else if (u->ttype == KET_OP) {
			printf("%s", ke_opstr[u->op]);
		} else if (u->ttype == KET_FUNC) {
			printf("%s(%d)", u->name, u->n_args);
		}
	}
	putchar('\n');
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x24308
jmp 0x244a4
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x2449a
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0xc(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
cmpl $0x0, -0xc(%rbp)
je 0x24345
movl $0x20, %edi
callq 0x2050
movq -0x18(%rbp), %rax
movq (%rax), %rax
andq $0xffff, %rax           # imm = 0xFFFF
cmpl $0x1, %eax
jne 0x24412
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x24381
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
leaq 0x464e(%rip), %rdi      # 0x289c3
movb $0x0, %al
callq 0x2190
jmp 0x24410
movq -0x18(%rbp), %rax
movq (%rax), %rax
shrq $0x10, %rax
andq $0x3ff, %rax            # imm = 0x3FF
cmpl $0x1, %eax
jne 0x243b0
movq -0x18(%rbp), %rax
movsd 0x18(%rax), %xmm0
leaq 0x3c8d(%rip), %rdi      # 0x28034
movb $0x1, %al
callq 0x2190
jmp 0x2440e
movq -0x18(%rbp), %rax
movq (%rax), %rax
shrq $0x10, %rax
andq $0x3ff, %rax            # imm = 0x3FF
cmpl $0x2, %eax
jne 0x243de
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rsi
leaq 0x3c5a(%rip), %rdi      # 0x2802f
movb $0x0, %al
callq 0x2190
jmp 0x2440c
movq -0x18(%rbp), %rax
movq (%rax), %rax
shrq $0x10, %rax
andq $0x3ff, %rax            # imm = 0x3FF
cmpl $0x3, %eax
jne 0x2440a
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rsi
leaq 0x45c3(%rip), %rdi      # 0x289c6
movb $0x0, %al
callq 0x2190
jmp 0x2440c
jmp 0x2440e
jmp 0x24410
jmp 0x2448a
movq -0x18(%rbp), %rax
movq (%rax), %rax
andq $0xffff, %rax           # imm = 0xFFFF
cmpl $0x2, %eax
jne 0x24451
movq -0x18(%rbp), %rax
movq (%rax), %rax
shlq $0x18, %rax
sarq $0x38, %rax
movslq %eax, %rcx
leaq 0xa1b3(%rip), %rax      # 0x2e5f0
movq (%rax,%rcx,8), %rsi
leaq 0x457b(%rip), %rdi      # 0x289c3
movb $0x0, %al
callq 0x2190
jmp 0x24488
movq -0x18(%rbp), %rax
movq (%rax), %rax
andq $0xffff, %rax           # imm = 0xFFFF
cmpl $0x3, %eax
jne 0x24486
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x18(%rbp), %rax
movq (%rax), %rax
sarq $0x28, %rax
movl %eax, %edx
leaq 0x454c(%rip), %rdi      # 0x289cb
movb $0x0, %al
callq 0x2190
jmp 0x24488
jmp 0x2448a
jmp 0x2448c
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x2430f
movl $0xa, %edi
callq 0x2050
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/ComplexNetworks-DCC-FCUP[P]fase/Fase.cpp
// Function: Fase::Fase(Graph*, bool)
Fase::Fase(Graph* _g, bool _directed)
{
  directed = _directed;
  graph = _g;
  sampling = false;

  vext = new int*[MAXMOTIF];
  for (int i = 1; i < MAXMOTIF; i++)
    vext[i] = new int[graph->numNodes()];

  vextSz = new int[MAXMOTIF];
  vsub = new int[MAXMOTIF];
  sampProb = new double[MAXMOTIF];

  Label::init(_g, _directed);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x38(%rbp)
addq $0x18, %rdi
movq %rdi, -0x48(%rbp)
callq 0x89b0
movq -0x38(%rbp), %rdi
addq $0x50, %rdi
movq %rdi, -0x40(%rbp)
callq 0x4490
movq -0x38(%rbp), %rax
movb -0x11(%rbp), %cl
andb $0x1, %cl
movb %cl, (%rax)
movq -0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movb $0x0, 0x1(%rax)
movl $0xa0, %edi
callq 0x3030
movq %rax, -0x30(%rbp)
jmp 0x37c5
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, 0x80(%rax)
movl $0x1, -0x28(%rbp)
cmpl $0x14, -0x28(%rbp)
jge 0x385f
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rdi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
movl %eax, -0x4c(%rbp)
jmp 0x37f7
movl -0x4c(%rbp), %eax
cltq
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x3030
movq %rax, -0x58(%rbp)
jmp 0x381d
movq -0x58(%rbp), %rdx
movq -0x38(%rbp), %rax
movq 0x80(%rax), %rax
movslq -0x28(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x37db
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x44b0
movq -0x48(%rbp), %rdi
callq 0x89d0
jmp 0x38d4
movl $0x50, %edi
callq 0x3030
movq %rax, -0x60(%rbp)
jmp 0x386f
movq -0x38(%rbp), %rax
movq -0x60(%rbp), %rcx
movq %rcx, 0x88(%rax)
movl $0x50, %edi
callq 0x3030
movq %rax, -0x68(%rbp)
jmp 0x388e
movq -0x38(%rbp), %rax
movq -0x68(%rbp), %rcx
movq %rcx, 0x90(%rax)
movl $0xa0, %edi
callq 0x3030
movq %rax, -0x70(%rbp)
jmp 0x38ad
movq -0x38(%rbp), %rax
movq -0x70(%rbp), %rcx
movq %rcx, 0x98(%rax)
movq -0x10(%rbp), %rdi
movzbl -0x11(%rbp), %esi
andl $0x1, %esi
callq 0x8630
jmp 0x38ce
addq $0x70, %rsp
popq %rbp
retq
movq -0x20(%rbp), %rdi
callq 0x3380
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/ComplexNetworks-DCC-FCUP[P]fase/Fase.cpp
// Function: Fase::~Fase()
Fase::~Fase()
{
  for (int i = 1; i < MAXMOTIF; i++)
    delete[] vext[i];
  delete[] vext;
  delete[] vextSz;
  delete[] vsub;
  delete[] sampProb;

  igtrie.destroy();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x1, -0xc(%rbp)
cmpl $0x14, -0xc(%rbp)
jge 0x3934
movq -0x18(%rbp), %rax
movq 0x80(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x3927
movq -0x20(%rbp), %rdi
callq 0x32f0
jmp 0x3929
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x38fb
movq -0x18(%rbp), %rax
movq 0x80(%rax), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0x3952
movq -0x28(%rbp), %rdi
callq 0x32f0
movq -0x18(%rbp), %rax
movq 0x88(%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x3970
movq -0x30(%rbp), %rdi
callq 0x32f0
movq -0x18(%rbp), %rax
movq 0x90(%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x398e
movq -0x38(%rbp), %rdi
callq 0x32f0
movq -0x18(%rbp), %rax
movq 0x98(%rax), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0x39ac
movq -0x40(%rbp), %rdi
callq 0x32f0
movq -0x18(%rbp), %rdi
addq $0x18, %rdi
callq 0x8a10
jmp 0x39bb
movq -0x18(%rbp), %rdi
addq $0x50, %rdi
callq 0x44b0
movq -0x18(%rbp), %rdi
addq $0x18, %rdi
callq 0x89d0
addq $0x40, %rsp
popq %rbp
retq
movq %rax, %rdi
callq 0x44d0
nopw %cs:(%rax,%rax)