LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/dapogon[P]cellcoal/src/cellcoal.c
// Function: ReadUntil
void ReadUntil(FILE *fv, char stopChar, char *what)
{
    char ch;
	
    ch=fgetc(fv);
    while (!feof(fv) && ch!=stopChar)
        ch=fgetc(fv);
	
    if (feof(fv) || ch!=stopChar) {
        fprintf (stderr, "%s missing", what);
        exit(0);
    }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x2150
movl %eax, %ebp
movq %rbx, %rdi
callq 0x21d0
testl %eax, %eax
setne %al
movzbl %bpl, %ecx
cmpl $0x5d, %ecx
setne %bpl
sete %cl
orb %al, %cl
jne 0x1a512
movq %rbx, %rdi
callq 0x2150
movl %eax, %ebp
movq %rbx, %rdi
callq 0x21d0
movzbl %bpl, %ecx
cmpl $0x5d, %ecx
setne %bpl
testl %eax, %eax
jne 0x1a512
cmpl $0x5d, %ecx
jne 0x1a4ec
movq %rbx, %rdi
callq 0x21d0
testb %bpl, %bpl
jne 0x1a52a
testl %eax, %eax
jne 0x1a52a
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
callq 0x5633
nop
// File: /workspace/github_c_makefile_star2_O3/dapogon[P]cellcoal/src/eigen.c
// Function: EigenREV
int EigenREV (double Root[], double Cijk[])
{
/* freq[] is constant
*/
	int i,j,k;
	double U[16], V[16], T1[16], T2[16];

	abyx (1/mr, Qij, 16);

	if ((k=eigen (1, Qij, 4, Root, T1, U, V, T2))!=0) {
		fprintf(stderr, "\ncomplex roots in EigenREV");
		exit(0);
	}
	xtoy (U, V, 16);
	matinv (V, 4, 4, T1);
	for (i=0; i<4; i++)
   		for (j=0; j<4; j++)
   			for (k=0; k<4; k++)
   				Cijk[i*4*4+j*4+k] = U[i*4+k]*V[k*4+j];
	return (0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x200, %rsp            # imm = 0x200
movq %rsi, %rbx
movsd 0x8bb9(%rip), %xmm0     # 0x23100
divsd 0x1db91(%rip), %xmm0    # 0x380e0
movq %rdi, %rcx
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
xorl %eax, %eax
leaq 0x1db91(%rip), %rdx     # 0x380f0
movapd (%rax,%rdx), %xmm1
mulpd %xmm0, %xmm1
movapd %xmm1, (%rax,%rdx)
addq $0x10, %rax
cmpq $0x80, %rax
jne 0x1a55f
leaq 0x80(%rsp), %rax
leaq 0x100(%rsp), %r14
leaq 0x1db60(%rip), %rsi     # 0x380f0
movq %rsp, %r8
leaq 0x180(%rsp), %r15
movl $0x1, %edi
movl $0x4, %edx
movq %r15, %r9
pushq %rax
pushq %r14
callq 0x1a658
addq $0x10, %rsp
testl %eax, %eax
jne 0x1a632
movl $0x10, %ecx
movq %r14, %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rsp, %rcx
movq %r14, %rdi
movl $0x4, %esi
movl $0x4, %edx
callq 0x1a88a
xorl %eax, %eax
movq %r14, %rcx
movq %rbx, %rdx
xorl %esi, %esi
xorl %edi, %edi
movsd (%r15,%rdi), %xmm0
mulsd (%rcx,%rdi,4), %xmm0
movsd %xmm0, (%rdx,%rdi)
addq $0x8, %rdi
cmpq $0x20, %rdi
jne 0x1a5e7
incq %rsi
addq $0x20, %rdx
addq $0x8, %rcx
cmpq $0x4, %rsi
jne 0x1a5e5
incq %rax
subq $-0x80, %rbx
addq $0x20, %r15
cmpq $0x4, %rax
jne 0x1a5dd
xorl %eax, %eax
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r14
popq %r15
retq
callq 0x565a
// File: /workspace/github_c_makefile_star2_O3/dapogon[P]cellcoal/src/eigen.c
// Function: cdiv
complex cdiv (complex a,complex b)
{
    double ratio, den;
    complex c;

    if (fabs(b.re) <= fabs(b.im)) {
        ratio = b.re / b.im;
        den = b.im * (1 + ratio * ratio);
        c.re = (a.re * ratio + a.im) / den;
        c.im = (a.im * ratio - a.re) / den;
    }
    else {
        ratio = b.im / b.re;
        den = b.re * (1 + ratio * ratio);
        c.re = (a.re + a.im * ratio) / den;
        c.im = (a.im - a.re * ratio) / den;
    }
    return(c);
}

// Assembly:
movapd %xmm1, %xmm4
movapd 0xdb8e(%rip), %xmm1     # 0x2af00
movapd %xmm2, %xmm5
andpd %xmm1, %xmm5
andpd %xmm3, %xmm1
ucomisd %xmm5, %xmm1
movapd 0x5cb6(%rip), %xmm1     # 0x23040
xorpd %xmm0, %xmm1
jae 0x1d3ca
divsd %xmm2, %xmm3
movapd %xmm3, %xmm5
mulsd %xmm3, %xmm5
addsd 0x5d5c(%rip), %xmm5     # 0x23100
mulsd %xmm2, %xmm5
unpcklpd %xmm4, %xmm0            # xmm0 = xmm0[0],xmm4[0]
unpcklpd %xmm1, %xmm4            # xmm4 = xmm4[0],xmm1[0]
unpcklpd %xmm3, %xmm3            # xmm3 = xmm3[0,0]
mulpd %xmm4, %xmm3
addpd %xmm0, %xmm3
unpcklpd %xmm5, %xmm5            # xmm5 = xmm5[0,0]
divpd %xmm5, %xmm3
movapd %xmm3, %xmm4
jmp 0x1d3fe
divsd %xmm3, %xmm2
movapd %xmm2, %xmm5
mulsd %xmm2, %xmm5
addsd 0x5d22(%rip), %xmm5     # 0x23100
mulsd %xmm3, %xmm5
unpcklpd %xmm4, %xmm0            # xmm0 = xmm0[0],xmm4[0]
unpcklpd %xmm2, %xmm2            # xmm2 = xmm2[0,0]
mulpd %xmm0, %xmm2
unpcklpd %xmm1, %xmm4            # xmm4 = xmm4[0],xmm1[0]
addpd %xmm2, %xmm4
unpcklpd %xmm5, %xmm5            # xmm5 = xmm5[0,0]
divpd %xmm5, %xmm4
movapd %xmm4, %xmm1
unpckhpd %xmm4, %xmm1            # xmm1 = xmm1[1],xmm4[1]
movapd %xmm4, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/dapogon[P]cellcoal/src/eigen.c
// Function: cmatby
int cmatby (complex a[], complex b[], complex c[], int n,int m,int k)
/* a[n*m], b[m*k], c[n*k]  ......  c = a*b
*/
{
   int i,j,i1;
   complex t;

   FOR (i,n)  FOR(j,k) {
       for (i1=0,t=compl(0,0); i1<m; i1++)
           t = cplus (t, cby(a[i*m+i1],b[i1*k+j]));
       c[i*k+j] = t;
   }
   return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
testl %ecx, %ecx
jle 0x1d57f
movl %r9d, %eax
movl %ecx, %ecx
movl %r8d, %r10d
addq $0x8, %rdi
movq %rax, %r11
shlq $0x4, %r11
shlq $0x4, %r10
xorl %ebx, %ebx
movapd 0x5b68(%rip), %xmm0     # 0x23040
xorl %r14d, %r14d
testl %r9d, %r9d
jle 0x1d570
movl %ebx, %r15d
shlq $0x4, %r15
addq %rdi, %r15
movq %r14, %r12
imulq %rax, %r12
shlq $0x4, %r12
addq -0x8(%rsp), %r12
movq -0x10(%rsp), %rsi
xorl %ebp, %ebp
xorpd %xmm1, %xmm1
testl %r8d, %r8d
jle 0x1d557
movq %rsi, %r13
xorl %edx, %edx
movsd -0x8(%r15,%rdx), %xmm2
movsd (%r15,%rdx), %xmm3
movapd %xmm3, %xmm4
xorpd %xmm0, %xmm4
movupd (%r13), %xmm5
unpcklpd %xmm3, %xmm4            # xmm4 = xmm4[0],xmm3[0]
unpcklpd %xmm2, %xmm2            # xmm2 = xmm2[0,0]
mulpd %xmm5, %xmm2
shufpd $0x1, %xmm5, %xmm5      # xmm5 = xmm5[1,0]
mulpd %xmm4, %xmm5
addpd %xmm5, %xmm2
addpd %xmm2, %xmm1
addq $0x10, %rdx
addq %r11, %r13
cmpq %rdx, %r10
jne 0x1d513
movq %rbp, %rdx
shlq $0x4, %rdx
movupd %xmm1, (%r12,%rdx)
incq %rbp
addq $0x10, %rsi
cmpq %rax, %rbp
jne 0x1d505
incq %r14
addl %r8d, %ebx
cmpq %rcx, %r14
jne 0x1d4db
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/dapogon[P]cellcoal/src/eigen.c
// Function: cmatout
int cmatout (FILE * fout, complex x[], int n, int m)
{
   int i,j;
   for (i=0,FPN(fout); i<n; i++,FPN(fout))
        FOR(j,m) fprintf(fout, "%7.3f%7.3f  ", x[i*m+j].re, x[i*m+j].im);
   return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, 0xc(%rsp)
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
movl $0xa, %edi
movq %r15, %rsi
callq 0x2180
testl %ebp, %ebp
jle 0x1d61a
movl 0xc(%rsp), %r13d
movl %ebp, %eax
movq %rax, 0x10(%rsp)
addq $0x8, %r14
shlq $0x4, %r13
xorl %ebx, %ebx
leaq 0xd993(%rip), %r12      # 0x2af67
cmpl $0x0, 0xc(%rsp)
jle 0x1d600
xorl %ebp, %ebp
movsd -0x8(%r14,%rbp), %xmm0
movsd (%r14,%rbp), %xmm1
movq %r15, %rdi
movq %r12, %rsi
movb $0x2, %al
callq 0x21c0
addq $0x10, %rbp
cmpq %rbp, %r13
jne 0x1d5dd
incq %rbx
movl $0xa, %edi
movq %r15, %rsi
callq 0x2180
addq %r13, %r14
cmpq 0x10(%rsp), %rbx
jne 0x1d5d4
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/fiu.c
// Function: fiu_init
int fiu_init(unsigned int flags)
{
	char *static_seed_from_env;

	/* Used to avoid re-initialization, protected by enabled_fails_lock */
	static int initialized = 0;

	rec_count++;
	ef_wlock();
	if (initialized) {
		ef_wunlock();
		rec_count--;
		return 0;
	}

	pthread_key_create(&last_failinfo_key, NULL);

	enabled_fails = wtable_create((void (*)(void *))pf_free);

	if (pthread_atfork(NULL, NULL, atfork_child) != 0) {
		ef_wunlock();
		rec_count--;
		return -1;
	}

	static_seed_from_env = getenv("FIU_PRNG_SEED");
	if (static_seed_from_env != NULL) {
		fiu_set_prng_seed(atoi(static_seed_from_env));
	}

	prng_seed();

	initialized = 1;

	ef_wunlock();
	rec_count--;
	return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0x5b4c(%rip), %rdi      # 0x7fd8
callq 0x21e0
movq %rax, %rbx
incl (%rax)
leaq 0x5d38(%rip), %rdi      # 0x81d8
callq 0x20a0
xorl %ebp, %ebp
cmpb $0x0, 0x5d22(%rip)      # 0x81d0
jne 0x2542
leaq 0x5d55(%rip), %rdi      # 0x8210
xorl %esi, %esi
callq 0x2160
leaq 0x92(%rip), %rdi        # 0x255b
callq 0x32a4
leaq 0x5cf3(%rip), %rcx      # 0x81c8
movq %rax, (%rcx)
leaq 0x9a(%rip), %rdx        # 0x2579
xorl %edi, %edi
xorl %esi, %esi
callq 0x40e0
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x2542
leaq 0x2b20(%rip), %rdi      # 0x5018
callq 0x2030
testq %rax, %rax
je 0x2519
movq %rax, %rdi
callq 0x2300
movl %eax, 0x5ca8(%rip)      # 0x81b8
movb $0x1, 0x5cfd(%rip)      # 0x8214
jmp 0x2539
cmpb $0x0, 0x5cf4(%rip)      # 0x8214
jne 0x2539
movq %rsp, %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x2150
movl 0x8(%r14), %eax
movl %eax, 0x5c7f(%rip)      # 0x81b8
movb $0x1, 0x5c90(%rip)      # 0x81d0
xorl %ebp, %ebp
leaq 0x5c8f(%rip), %rdi      # 0x81d8
callq 0x2260
decl (%rbx)
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/fiu.c
// Function: pf_create
static struct pf_info *pf_create(const char *name, int failnum, void *failinfo,
                                 unsigned int flags, enum pf_method method)
{
	struct pf_info *pf;

	rec_count++;

	pf = malloc(sizeof(struct pf_info));
	if (pf == NULL)
		goto exit;

	pf->name = strdup(name);
	if (pf->name == NULL) {
		free(pf);
		pf = NULL;
		goto exit;
	}

	pf->namelen = strlen(name);
	pf->failnum = failnum;
	pf->failinfo = failinfo;
	pf->flags = flags;
	pf->method = method;

	/* These two are only use when flags & FIU_ONETIME. */
	pthread_mutex_init(&pf->lock, NULL);
	pf->failed_once = false;

exit:
	rec_count--;
	return pf;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, 0x4(%rsp)
movl %ecx, (%rsp)
movq %rdx, %r12
movl %esi, %r13d
movq %rdi, %rbp
leaq 0x5806(%rip), %rdi      # 0x7fd8
callq 0x21e0
movq %rax, %rbx
movl (%rax), %r15d
leal 0x1(%r15), %eax
movl %eax, (%rbx)
movl $0x68, %edi
callq 0x2240
testq %rax, %rax
je 0x284e
movq %rax, %r14
movq %rbp, %rdi
callq 0x2320
movq %rax, (%r14)
testq %rax, %rax
je 0x2846
movq %rbp, %rdi
callq 0x2100
movl %eax, 0x8(%r14)
movl %r13d, 0xc(%r14)
movq %r12, 0x10(%r14)
movl (%rsp), %eax
movl %eax, 0x18(%r14)
movl 0x4(%rsp), %eax
movl %eax, 0x4c(%r14)
movq %r14, %rdi
addq $0x20, %rdi
xorl %esi, %esi
callq 0x2330
movb $0x0, 0x48(%r14)
movl (%rbx), %r15d
decl %r15d
jmp 0x2851
movq %r14, %rdi
callq 0x2040
xorl %r14d, %r14d
movl %r15d, (%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/fiu.c
// Function: insert_pf
static int insert_pf(struct pf_info *pf)
{
	bool success;

	rec_count++;

	ef_wlock();
	success = wtable_set(enabled_fails, pf->name, pf);
	ef_wunlock();

	rec_count--;
	return success ? 0 : -1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x5762(%rip), %rdi      # 0x7fd8
callq 0x21e0
movq %rax, %r14
incl (%rax)
leaq 0x594e(%rip), %r15      # 0x81d8
movq %r15, %rdi
callq 0x20a0
leaq 0x592f(%rip), %rax      # 0x81c8
movq (%rax), %rdi
movq (%rbx), %rsi
movq %rbx, %rdx
callq 0x354b
movl %eax, %ebx
movq %r15, %rdi
callq 0x2260
decl (%r14)
movzbl %bl, %eax
decl %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/fiu.c
// Function: fiu_enable_random
int fiu_enable_random(const char *name, int failnum, void *failinfo,
                      unsigned int flags, float probability)
{
	struct pf_info *pf;

	pf = pf_create(name, failnum, failinfo, flags, PF_PROB);
	if (pf == NULL)
		return -1;

	pf->minfo.probability = probability;
	return insert_pf(pf);
}

// Assembly:
pushq %rax
movss %xmm0, 0x4(%rsp)
movl $0x2, %r8d
callq 0x27ae
testq %rax, %rax
je 0x28ea
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x50(%rax)
movq %rax, %rdi
popq %rax
jmp 0x2866
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/fiu.c
// Function: fiu_enable_external
int fiu_enable_external(const char *name, int failnum, void *failinfo,
                        unsigned int flags, external_cb_t *external_cb)
{
	struct pf_info *pf;

	pf = pf_create(name, failnum, failinfo, flags, PF_EXTERNAL);
	if (pf == NULL)
		return -1;

	pf->minfo.external_cb = external_cb;
	return insert_pf(pf);
}

// Assembly:
pushq %rbx
movq %r8, %rbx
movl $0x3, %r8d
callq 0x27ae
testq %rax, %rax
je 0x2912
movq %rbx, 0x50(%rax)
movq %rax, %rdi
popq %rbx
jmp 0x2866
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/fiu.c
// Function: fiu_enable_stack
int fiu_enable_stack(const char *name, int failnum, void *failinfo,
                     unsigned int flags, void *func, int func_pos_in_stack)
{
	struct pf_info *pf;

	/* Specifying the stack position is unsupported for now */
	if (func_pos_in_stack != -1)
		return -1;

	if (backtrace_works((void (*)())fiu_enable_stack) == 0)
		return -1;

	// We need either get_func_end() or get_func_start() to work, see
	// pc_in_func() above.
	if (get_func_end(func) == NULL && get_func_start(func) == NULL)
		return -1;

	pf = pf_create(name, failnum, failinfo, flags, PF_STACK);
	if (pf == NULL)
		return -1;

	pf->minfo.stack.func_start = func;
	pf->minfo.stack.func_end = get_func_end(func);
	pf->minfo.stack.func_pos_in_stack = func_pos_in_stack;
	return insert_pf(pf);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpl $-0x1, %r9d
je 0x2935
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r8, %rbx
movl %ecx, %ebp
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %r12
movq 0x5676(%rip), %rdi      # 0x7fc0
callq 0x31cc
testl %eax, %eax
je 0x2927
movq %rbx, %rdi
callq 0x317d
testq %rax, %rax
jne 0x296d
movq %rbx, %rdi
callq 0x315d
testq %rax, %rax
je 0x2927
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %ebp, %ecx
movl $0x4, %r8d
callq 0x27ae
testq %rax, %rax
je 0x2927
movq %rax, %r14
movq %rbx, 0x50(%rax)
movq %rbx, %rdi
callq 0x317d
movq %rax, 0x58(%r14)
movl $0xffffffff, 0x60(%r14) # imm = 0xFFFFFFFF
movq %r14, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2866
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/fiu.c
// Function: fiu_enable_stack_by_name
int fiu_enable_stack_by_name(const char *name, int failnum, void *failinfo,
                             unsigned int flags, const char *func_name,
                             int func_pos_in_stack)
{
	void *fp;

	/* We need to check this here instead of relying on the test within
	 * fiu_enable_stack() in case it is inlined; that would fail the check
	 * because fiu_enable_stack() would not be in the stack. */
	if (backtrace_works((void (*)())fiu_enable_stack_by_name) == 0)
		return -1;

	fp = get_func_addr(func_name);
	if (fp == NULL)
		return -1;

	return fiu_enable_stack(name, failnum, failinfo, flags, fp,
	                        func_pos_in_stack);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebx
movq %r8, %r13
movl %ecx, %ebp
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %r12
movq 0x55f2(%rip), %rdi      # 0x7fc8
callq 0x31cc
testl %eax, %eax
je 0x2a10
movq %r13, %rdi
callq 0x31c2
testq %rax, %rax
je 0x2a10
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %ebp, %ecx
movq %rax, %r8
movl %ebx, %r9d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2360
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/fiu.c
// Function: fiu_disable
int fiu_disable(const char *name)
{
	bool success;

	rec_count++;

	/* Just find the point of failure and remove it. */
	ef_wlock();
	success = wtable_del(enabled_fails, name);
	ef_wunlock();

	rec_count--;
	return success ? 0 : -1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x55a4(%rip), %rdi      # 0x7fd8
callq 0x21e0
movq %rax, %r14
incl (%rax)
leaq 0x5790(%rip), %r15      # 0x81d8
movq %r15, %rdi
callq 0x20a0
leaq 0x5771(%rip), %rax      # 0x81c8
movq (%rax), %rdi
movq %rbx, %rsi
callq 0x3732
movl %eax, %ebx
movq %r15, %rdi
callq 0x2260
decl (%r14)
movzbl %bl, %eax
decl %eax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/fiu-rc.c
// Function: fiu_rc_fifo
int fiu_rc_fifo(const char *basename)
{
	int r;

	r = _fiu_rc_fifo(basename);
	if (r < 0)
		return r;

	npipe_basename = strdup(basename);
	pthread_atfork(NULL, NULL, fifo_atfork_child);

	return r;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x2e10
movl %eax, %ebx
testl %eax, %eax
js 0x2e06
movq %r14, %rdi
callq 0x2320
movq %rax, 0x5422(%rip)      # 0x8218
leaq 0x14b(%rip), %rdx       # 0x2f48
xorl %edi, %edi
xorl %esi, %esi
callq 0x40e0
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/fiu-rc.c
// Function: fiu_rc_fifo
static int _fiu_rc_fifo(const char *basename)
{
	pthread_t thread;

	/* see rc_fifo_thread() */
	rec_count++;

	/* Allocate the pipe paths. Will be composed of
	 * "<basename>-<pid>.[in|out]", so leave plenty of room for the last
	 * part, to handle potentially long pids.
	 * These live through the entire life of the binary and are never
	 * freed. */
	int path_len = strlen(basename) + 40;
	npipe_path_in = malloc(path_len);
	npipe_path_out = malloc(path_len);

	snprintf(npipe_path_in, path_len, "%s-%d.in", basename, getpid());
	snprintf(npipe_path_out, path_len, "%s-%d.out", basename, getpid());

	if (mkfifo(npipe_path_in, 0600) != 0 && errno != EEXIST) {
		rec_count--;
		return -1;
	}

	if (mkfifo(npipe_path_out, 0600) != 0 && errno != EEXIST) {
		unlink(npipe_path_in);
		rec_count--;
		return -1;
	}

	if (pthread_create(&thread, NULL, rc_fifo_thread, NULL) != 0) {
		unlink(npipe_path_in);
		unlink(npipe_path_out);
		rec_count--;
		return -1;
	}

	atexit(fifo_atexit);

	rec_count--;
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x51b5(%rip), %rdi      # 0x7fd8
callq 0x21e0
movq %rax, %rbx
incl (%rax)
movq %r14, %rdi
callq 0x2100
addl $0x28, %eax
movslq %eax, %r15
movq %r15, %rdi
callq 0x2240
movq %rax, %r12
movq %rax, 0x53d0(%rip)      # 0x8220
movq %r15, %rdi
callq 0x2240
movq %rax, 0x53c9(%rip)      # 0x8228
callq 0x20f0
leaq 0x22f1(%rip), %rdx      # 0x515c
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rcx
movl %eax, %r8d
xorl %eax, %eax
callq 0x2140
movq 0x53a3(%rip), %r12      # 0x8228
callq 0x20f0
leaq 0x22d4(%rip), %rdx      # 0x5165
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rcx
movl %eax, %r8d
xorl %eax, %eax
callq 0x2140
movq 0x5375(%rip), %rdi      # 0x8220
movl $0x180, %esi            # imm = 0x180
callq 0x2220
testl %eax, %eax
je 0x2ec9
callq 0x2060
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
cmpl $0x11, (%rax)
jne 0x2f37
movq 0x5358(%rip), %rdi      # 0x8228
movl $0x180, %esi            # imm = 0x180
callq 0x2220
testl %eax, %eax
je 0x2ee8
callq 0x2060
cmpl $0x11, (%rax)
jne 0x2f17
leaq 0x65(%rip), %rdx        # 0x2f54
xorl %r14d, %r14d
movq %rsp, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x2280
testl %eax, %eax
je 0x2f2b
movq 0x5317(%rip), %rdi      # 0x8220
callq 0x2070
movq 0x5313(%rip), %rdi      # 0x8228
jmp 0x2f1e
movq 0x5302(%rip), %rdi      # 0x8220
callq 0x2070
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x2f37
leaq 0x20b(%rip), %rdi       # 0x313d
callq 0x40c0
decl (%rbx)
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/backtrace.c
// Function: get_func_end
void *get_func_end(void *func)
{
	int r;
	Dl_info dl_info;
	ElfW(Sym) * elf_info;

	r = dladdr1(func, &dl_info, (void **)&elf_info, RTLD_DL_SYMENT);
	if (r == 0)
		return NULL;
	if (elf_info == NULL)
		return NULL;
	if (dl_info.dli_saddr == NULL)
		return NULL;

	return ((unsigned char *)func) + elf_info->st_size;
}

// Assembly:
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movl $0x1, %ecx
callq 0x22b0
testl %eax, %eax
je 0x31ba
movq 0x8(%rsp), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x31bc
cmpq $0x0, 0x28(%rsp)
je 0x31bc
addq 0x10(%rcx), %rbx
movq %rbx, %rax
jmp 0x31bc
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/backtrace.c
// Function: backtrace_works
int backtrace_works(void (*caller)())
{
	/* We remember the result so we don't have to compute it over an over
	 * again, we know it doesn't change. */
	static int works = -1;

	void *start = NULL;
	void *end = NULL;
	void *bt_buffer[100];
	void *pc;
	int nptrs, i;

	/* Return the result if we know it. */
	if (works >= 0)
		return works;

	nptrs = get_backtrace(bt_buffer, 100);
	if (nptrs <= 0) {
		works = 0;
		return works;
	}

	/* We will detect if it works by looking for the caller in the
	 * backtrace. */
	start = get_func_start(fp_to_voidp(caller));
	end = get_func_end(fp_to_voidp(caller));

	if (start == NULL && end == NULL) {
		works = 0;
		return works;
	}

	for (i = 0; i < nptrs; i++) {
		pc = bt_buffer[i];

		/* On some platforms, we have everything except
		 * get_func_end(), and that's ok. */
		if (end) {
			if (pc >= start && pc <= end) {
				works = 1;
				return works;
			}
		} else {
			if (get_func_start(pc) == start) {
				works = 1;
				return works;
			}
		}
	}

	works = 0;
	return works;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x348, %rsp            # imm = 0x348
movl 0x4fd8(%rip), %r14d     # 0x81bc
testl %r14d, %r14d
jns 0x328d
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
movl $0x64, %esi
callq 0x2110
testl %eax, %eax
jle 0x327b
movl %eax, %ebp
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2120
xorl %r14d, %r14d
testl %eax, %eax
je 0x321e
movq 0x18(%rsp), %r15
jmp 0x3221
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x317d
movq %rax, %rbx
movq %r15, %rax
orq %rbx, %rax
je 0x3286
movl %ebp, %r12d
xorl %r13d, %r13d
movq %rsp, %r14
movq 0x20(%rsp,%r13,8), %rdi
testq %rbx, %rbx
je 0x3259
cmpq %r15, %rdi
setb %al
cmpq %rbx, %rdi
seta %cl
orb %al, %cl
jne 0x3273
jmp 0x3280
movq %r14, %rsi
callq 0x2120
testl %eax, %eax
je 0x326c
movq 0x18(%rsp), %rax
jmp 0x326e
xorl %eax, %eax
cmpq %r15, %rax
je 0x3280
incq %r13
cmpq %r13, %r12
jne 0x323d
xorl %r14d, %r14d
jmp 0x3286
movl $0x1, %r14d
movl %r14d, 0x4f2f(%rip)     # 0x81bc
movl %r14d, %eax
addq $0x348, %rsp            # imm = 0x348
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/wtable.c
// Function: wtable_create
struct wtable *wtable_create(void (*destructor)(void *))
{
	struct wtable *t = malloc(sizeof(struct wtable));
	if (t == NULL)
		return NULL;

	t->wildcards = NULL;
	t->wcache = NULL;

	t->finals = hash_create(destructor);
	if (t->finals == NULL)
		goto error;

	t->wildcards = malloc(sizeof(struct wentry) * MIN_SIZE);
	if (t->wildcards == NULL)
		goto error;

	memset(t->wildcards, 0, sizeof(struct wentry) * MIN_SIZE);

	t->wcache = cache_create();
	if (t->wcache == NULL)
		goto error;

	t->ws_size = MIN_SIZE;
	t->ws_used_count = 0;
	t->destructor = destructor;

	return t;

error:
	if (t->finals)
		hash_free(t->finals);
	if (t->wcache)
		cache_free(t->wcache);
	free(t->wildcards);
	free(t);
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x30, %edi
callq 0x2240
testq %rax, %rax
je 0x3338
movq %rax, %rbx
xorl %r15d, %r15d
movq %r15, 0x8(%rax)
movq %r15, 0x20(%rax)
movq %r14, %rdi
callq 0x3840
movq %rax, (%rbx)
testq %rax, %rax
je 0x3328
movq %rax, %r12
movl $0x1, %edi
movl $0x140, %esi            # imm = 0x140
callq 0x21f0
movq %rax, %r15
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x3320
xorl %eax, %eax
callq 0x3ced
movq %rax, 0x20(%rbx)
testq %rax, %rax
je 0x3320
movq $0xa, 0x10(%rbx)
movq $0x0, 0x18(%rbx)
movq %r14, 0x28(%rbx)
jmp 0x333a
movq %r12, %rdi
callq 0x38a9
movq %r15, %rdi
callq 0x2040
movq %rbx, %rdi
callq 0x2040
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/wtable.c
// Function: wtable_free
void wtable_free(struct wtable *t)
{
	int i;
	struct wentry *entry;

	hash_free(t->finals);
	cache_free(t->wcache);

	for (i = 0; i < t->ws_size; i++) {
		entry = t->wildcards + i;
		if (entry->in_use) {
			t->destructor(entry->value);
			free(entry->key);
		}
	}

	free(t->wildcards);
	free(t);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x38a9
movq 0x20(%rbx), %rdi
callq 0x3d2e
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x33a4
movl $0x18, %r14d
xorl %r15d, %r15d
movq 0x8(%rbx), %r12
cmpb $0x1, (%r12,%r14)
jne 0x3398
movq -0x8(%r12,%r14), %rdi
callq *0x28(%rbx)
movq -0x18(%r12,%r14), %rdi
callq 0x2040
movq 0x10(%rbx), %rax
incq %r15
addq $0x20, %r14
cmpq %r15, %rax
ja 0x3377
movq 0x8(%rbx), %rdi
callq 0x2040
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2040
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/wtable.c
// Function: wtable_get
void *wtable_get(struct wtable *t, const char *key)
{
	void *value;
	struct wentry *entry;

	/* Do an exact lookup first. */
	value = hash_get(t->finals, key);
	if (value)
		return value;

	/* Then see if we can find it in the wcache */
	if (cache_get(t->wcache, key, &value))
		return value;

	/* And then walk the wildcards array. */
	entry = wildcards_find_entry(t, key, false, NULL);
	if (entry) {
		cache_set(t->wcache, key, entry->value);
		return entry->value;
	}

	/* Cache the negative result as well. */
	cache_set(t->wcache, key, NULL);

	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x390d
movq %rax, %r15
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x343a
movq 0x20(%r14), %rdi
leaq 0x8(%rsp), %rdx
movq %rbx, %rsi
callq 0x3f0a
testb %al, %al
je 0x3400
movq 0x8(%rsp), %r15
jmp 0x343a
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x3447
movq 0x20(%r14), %rdi
testq %rax, %rax
je 0x342d
movq %rax, %r15
movq 0x10(%rax), %rdx
movq %rbx, %rsi
callq 0x3f99
movq 0x10(%r15), %r15
jmp 0x343a
xorl %r15d, %r15d
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3f99
movq %r15, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/wtable.c
// Function: wildcards_find_entry
static struct wentry *wildcards_find_entry(struct wtable *t, const char *key,
                                           bool exact,
                                           struct wentry **first_free)
{
	size_t key_len;
	size_t pos;
	struct wentry *entry;
	bool found_free = false;

	key_len = strlen(key);

	for (pos = 0; pos < t->ws_size; pos++) {
		entry = t->wildcards + pos;
		if (!entry->in_use) {
			if (!found_free && first_free) {
				*first_free = entry;
				found_free = true;
			}
			continue;

		} else if (ws_matches_s(entry->key, entry->key_len, key,
		                        key_len, exact)) {
			/* The key matches. */
			return entry;
		}
	}

	/* No match. */
	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, 0x8(%rsp)
movl %edx, 0x4(%rsp)
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x2100
movq 0x10(%rbx), %r12
testq %r12, %r12
je 0x3536
movq %rax, %r9
xorl %r15d, %r15d
xorl %ebp, %ebp
movq 0x8(%rsp), %rsi
movl 0x4(%rsp), %r8d
movq %rbx, 0x10(%rsp)
movq 0x8(%rbx), %rax
movq %rbp, %rcx
shlq $0x5, %rcx
leaq (%rax,%rcx), %r13
cmpb $0x0, 0x18(%rax,%rcx)
je 0x34ef
testq %r14, %r14
sete %al
movq (%r13), %rdi
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x352a
movq 0x8(%r13), %rax
testb %r8b, %r8b
jne 0x3504
cmpb $0x2a, -0x1(%rdi,%rax)
jne 0x3504
movb (%rdi), %dl
xorl %ecx, %ecx
testb %dl, %dl
je 0x34e5
cmpb (%r14,%rcx), %dl
jne 0x34e3
movb 0x1(%rdi,%rcx), %dl
incq %rcx
testb %dl, %dl
jne 0x34d2
movl %ecx, %ecx
decq %rax
cmpq %rcx, %rax
ja 0x352a
jmp 0x3539
testq %rsi, %rsi
sete %al
orb %r15b, %al
testb $0x1, %al
jne 0x352a
movq %r13, (%rsi)
movb $0x1, %r15b
jmp 0x352a
cmpq %r9, %rax
jne 0x352a
movq %r14, %rsi
movq %r9, %rbx
callq 0x2200
movq %rbx, %r9
movq 0x10(%rsp), %rbx
movl 0x4(%rsp), %r8d
movq 0x8(%rsp), %rsi
testl %eax, %eax
je 0x3539
incq %rbp
cmpq %r12, %rbp
jne 0x3490
xorl %r13d, %r13d
movq %r13, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/wtable.c
// Function: wtable_set
bool wtable_set(struct wtable *t, const char *key, void *value)
{
	if (is_wildcard(key, strlen(key))) {
		if ((t->ws_size - t->ws_used_count) <= 1) {
			/* If we only have one entry left, grow by 30%, plus
			 * one to make sure we always increase even if the
			 * percentage isn't enough. */
			if (!resize_table(t, t->ws_size * 1.3 + 1))
				return false;
		}

		/* Invalidate the cache. We could be smart and walk it,
		 * removing only the negative hits, but it's also more
		 * expensive */
		cache_invalidate(t->wcache);

		return wildcards_set(t, strdup(key), value);
	} else {
		return hash_set(t->finals, key, value);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rsi, %rdi
callq 0x2100
cmpb $0x2a, -0x1(%r15,%rax)
jne 0x35fe
movq 0x10(%r14), %rax
movq %rax, %rcx
subq 0x18(%r14), %rcx
cmpq $0x1, %rcx
ja 0x35da
movq %rax, %xmm0
punpckldq 0x1c75(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x1c7d(%rip), %xmm0     # 0x5210
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
mulsd 0x1c79(%rip), %xmm1     # 0x5220
addsd 0x1c79(%rip), %xmm1     # 0x5228
cvttsd2si %xmm1, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x1c6d(%rip), %xmm1     # 0x5230
cvttsd2si %xmm1, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq %r14, %rdi
callq 0x3619
testb %al, %al
je 0x3611
movq 0x20(%r14), %rdi
callq 0x3d4c
movq %r15, %rdi
callq 0x2320
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x36af
movq (%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x3a1d
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/wtable.c
// Function: resize_table
static bool resize_table(struct wtable *t, size_t new_size)
{
	size_t i;
	struct wentry *old_wildcards, *e;
	size_t old_size;

	if (new_size < MIN_SIZE) {
		/* Do not resize below the minimum size. */
		return true;
	}

	old_wildcards = t->wildcards;
	old_size = t->ws_size;

	t->wildcards = malloc(sizeof(struct wentry) * new_size);
	if (t->wildcards == NULL)
		return false;

	memset(t->wildcards, 0, sizeof(struct wentry) * new_size);
	t->ws_size = new_size;
	t->ws_used_count = 0;

	/* Insert the old entries into the new table. */
	for (i = 0; i < old_size; i++) {
		e = old_wildcards + i;
		if (e->in_use) {
			wildcards_set(t, e->key, e->value);
		}
	}

	free(old_wildcards);

	/* Keep the cache the same size as our table, which works reasonably
	 * well in practise */
	cache_resize(t->wcache, new_size);

	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movb $0x1, %bl
cmpq $0xa, %rsi
jb 0x369e
movq %rsi, %r14
movq %rdi, %r15
movq 0x8(%rdi), %r12
movq 0x10(%rdi), %r13
shlq $0x5, %rsi
movl $0x1, %edi
callq 0x21f0
movq %rax, 0x8(%r15)
testq %rax, %rax
je 0x369c
movq %r14, 0x10(%r15)
movq $0x0, 0x18(%r15)
testq %r13, %r13
je 0x3686
leaq 0x18(%r12), %rbp
cmpb $0x1, (%rbp)
jne 0x367d
movq -0x18(%rbp), %rsi
movq -0x8(%rbp), %rdx
movq %r15, %rdi
callq 0x36af
addq $0x20, %rbp
decq %r13
jne 0x3667
movq %r12, %rdi
callq 0x2040
movq 0x20(%r15), %rdi
movq %r14, %rsi
callq 0x3dd8
jmp 0x369e
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/wtable.c
// Function: wildcards_set
static bool wildcards_set(struct wtable *t, char *key, void *value)
{
	struct wentry *entry, *first_free;

	first_free = NULL;
	entry = wildcards_find_entry(t, key, true, &first_free);

	if (entry) {
		/* Found a match, override the value. */
		free(entry->key);
		entry->key = key;
		t->destructor(entry->value);
		entry->value = value;
		return true;
	} else if (first_free) {
		/* We are inserting a new entry. */
		first_free->key = key;
		first_free->key_len = strlen(key);
		first_free->value = value;
		first_free->in_use = true;
		t->ws_used_count++;
		return true;
	}

	/* This should never happen, as we should always have space by the
	 * time this function is called. */
	return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rsp, %rcx
movq $0x0, (%rcx)
movl $0x1, %edx
callq 0x3447
testq %rax, %rax
je 0x36f8
movq %rax, %r12
movq (%rax), %rdi
callq 0x2040
movq %r15, (%r12)
movq 0x10(%r12), %rdi
callq *0x28(%r14)
movq %rbx, 0x10(%r12)
jmp 0x3720
movq (%rsp), %rax
testq %rax, %rax
je 0x372e
movq %r15, (%rax)
movq %r15, %rdi
callq 0x2100
movq (%rsp), %rcx
movq %rax, 0x8(%rcx)
movq %rbx, 0x10(%rcx)
movb $0x1, 0x18(%rcx)
incq 0x18(%r14)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %eax, %eax
jmp 0x3722
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/libfiu/wtable.c
// Function: wtable_del
bool wtable_del(struct wtable *t, const char *key)
{
	struct wentry *entry;

	if (is_wildcard(key, strlen(key))) {
		entry = wildcards_find_entry(t, key, true, NULL);

		if (!entry) {
			/* Key not found. */
			return false;
		}

		/* Mark the entry as free. */
		free(entry->key);
		entry->key = NULL;
		entry->key_len = 0;
		t->destructor(entry->value);
		entry->value = NULL;
		entry->in_use = false;

		t->ws_used_count--;

		/* Shrink if the table is less than 60% occupied. */
		if (t->ws_size > MIN_SIZE &&
		    (float)t->ws_used_count / t->ws_size < 0.6) {
			if (!resize_table(t, t->ws_used_count + 3))
				return false;
		}

		/* Invalidate the cache. We could be smart and walk it,
		 * removing only the positive hits, but it's also more
		 * expensive */
		cache_invalidate(t->wcache);

		return true;
	} else {
		return hash_del(t->finals, key);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x2100
cmpb $0x2a, -0x1(%r15,%rax)
jne 0x37b6
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x3447
testq %rax, %rax
je 0x3831
movq %rax, %r15
movq (%rax), %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
movq 0x10(%r15), %rdi
callq *0x28(%rbx)
movq $0x0, 0x10(%r15)
movb $0x0, 0x18(%r15)
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rsi
leaq -0x1(%rsi), %rcx
movq %rcx, 0x18(%rbx)
cmpq $0xb, %rax
jb 0x3825
testq %rcx, %rcx
js 0x37c6
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
jmp 0x37de
movq (%rbx), %rdi
movq %r15, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x3c05
movq %rcx, %rdx
shrq %rdx
andl $0x1, %ecx
orq %rdx, %rcx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
testq %rax, %rax
js 0x37ea
cvtsi2ss %rax, %xmm1
jmp 0x37ff
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm1
addss %xmm1, %xmm1
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x1a29(%rip), %xmm1     # 0x5238
ucomisd %xmm0, %xmm1
jbe 0x3825
addq $0x2, %rsi
movq %rbx, %rdi
callq 0x3619
testb %al, %al
je 0x383a
movq 0x20(%rbx), %rdi
callq 0x3d4c
movb $0x1, %r14b
movl %r14d, %eax
popq %rbx
popq %r14
popq %r15
retq
xorl %r14d, %r14d
jmp 0x3831
nop
// File: /workspace/github_c_makefile_star2_O3/ijleesw[P]data-compression/src/arithmetic/main.cpp
// Function: encode_BYTE(char*, char*)
void encode_BYTE(char* szInputName, char* szOutputName)
{
  file_map<BYTE> map_input(szInputName);
  file_writer<bit> file_comp_out;
  file_comp_out.create(szOutputName);

  arithmetic_encoder enc(&file_comp_out);
  adaptive_model<BYTE> mdl(&enc);

  DWORD adwHeader[2];
  
  adwHeader[0] = g_dwMagic;
  adwHeader[1] = map_input.get_size();

  file_comp_out.write_header((BYTE*)adwHeader, sizeof(adwHeader));
  
  for(;;)
  {
    BYTE b = map_input.read_next();
    if (map_input.eof()) 
    {
      mdl.encode_symbol(b);
      break;
    }
    mdl.encode_symbol(b);
  }
  BYTE b = map_input.read_next();
  mdl.encode_symbol(b);
  mdl.encode_eof();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rsi, %rbx
movq %rdi, %rsi
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x2768
movl $0xffffffff, 0x30(%rsp) # imm = 0xFFFFFFFF
movl $0x1000, %edi           # imm = 0x1000
callq 0x2150
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x2386
movabsq $0x100000000000, %rax   # imm = 0x100000000000
movq %rax, 0x44(%rsp)
movl $0x8, 0x4c(%rsp)
movb $0x0, 0x40(%rsp)
movq %rbx, %rdi
movl $0x1b6, %esi            # imm = 0x1B6
callq 0x20c0
leaq 0x30(%rsp), %rcx
movl %eax, (%rcx)
movaps 0x1c6f(%rip), %xmm0     # 0x4010
leaq 0x90(%rsp), %rsi
movups %xmm0, 0x8(%rsi)
movq %rcx, (%rsi)
leaq 0x50(%rsp), %rdi
callq 0x27d4
leaq 0x88(%rsp), %rbx
movl $0x68746542, (%rbx)     # imm = 0x68746542
movl 0x8(%rsp), %edi
leaq 0xa8(%rsp), %r14
movq %r14, %rsi
callq 0x2180
movl 0x30(%r14), %eax
movl %eax, 0x4(%rbx)
movl 0x30(%rsp), %edi
movl $0x8, %edx
movq %rbx, %rsi
callq 0x2040
leaq 0x50(%rsp), %rbx
movq 0x10(%rsp), %rax
movl 0x24(%rsp), %r14d
leal 0x1(%r14), %ecx
movl %ecx, 0x24(%rsp)
movzbl (%rax,%r14), %esi
movl 0x20(%rsp), %r15d
movl 0x28(%rsp), %r12d
movq %rbx, %rdi
callq 0x283a
leal 0x2(%r14), %eax
addq %r12, %rax
cmpq %r15, %rax
jb 0x23f9
movq 0x10(%rsp), %rax
movl 0x24(%rsp), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0x24(%rsp)
movzbl (%rax,%rcx), %esi
leaq 0x50(%rsp), %rdi
callq 0x283a
movq 0x78(%rsp), %rdi
callq 0x301a
leaq 0x390b(%rip), %rax      # 0x5d68
movq %rax, 0x50(%rsp)
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x2471
callq 0x2110
leaq 0x30(%rsp), %rdi
callq 0x28a4
leaq 0x8(%rsp), %rdi
callq 0x28fa
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x249f
jmp 0x2498
movq %rax, %rbx
jmp 0x24bd
jmp 0x249f
movq %rax, %rbx
leaq 0x38bf(%rip), %rax      # 0x5d68
movq %rax, 0x50(%rsp)
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x24bd
callq 0x2110
leaq 0x30(%rsp), %rdi
callq 0x28a4
leaq 0x8(%rsp), %rdi
callq 0x28fa
movq %rbx, %rdi
callq 0x21b0
// File: /workspace/github_c_makefile_star2_O3/ijleesw[P]data-compression/src/arithmetic/main.cpp
// Function: decode_BYTE(char*, char*)
void decode_BYTE(char* szInputName, char* szOutputName)
{
  file_map<bit> map_comp_input(szInputName);
  file_writer<BYTE> file_out;
  file_out.create(szOutputName);
  
  arithmetic_decoder dec(&map_comp_input);
  adaptive_model<BYTE> mdl(&dec);

  DWORD* dwBuffer = (DWORD*)map_comp_input.get_header();
  
  DWORD dwExpSize = dwBuffer[1];

  if (dwBuffer[0] == g_dwMagic)
  {
    for(DWORD i = 0; i < (dwExpSize / sizeof(BYTE)); ++i)
    {
      BYTE b = mdl.decode_symbol();
      file_out.send(b);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0xa0, %rsp
movq %rsi, %r14
movq %rdi, %rsi
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
xorl %ecx, %ecx
callq 0x293c
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
movl $0x1000, %edi           # imm = 0x1000
callq 0x2150
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x2529
movabsq $0x100000000000, %rax   # imm = 0x100000000000
movq %rax, 0x18(%rsp)
movq %r14, %rdi
movl $0x1b6, %esi            # imm = 0x1B6
callq 0x20c0
movl %eax, 0x8(%rsp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x28(%rsp)
movl $0xffffffff, 0x30(%rsp) # imm = 0xFFFFFFFF
movq %rbx, 0x20(%rsp)
leaq 0x5c(%rsp), %rax
movl -0x4(%rax), %r8d
movl -0x8(%rax), %esi
xorl %edi, %edi
movl $0x20, %ecx
movq -0x1c(%rax), %rdx
testl %r8d, %r8d
je 0x2575
decl %r8d
movq %rax, %r9
jmp 0x2587
movl %esi, %r9d
incl %esi
movl %esi, 0x54(%rsp)
addq %rdx, %r9
movl $0x7, %r8d
addl %edi, %edi
movzbl (%r9), %r9d
leal (%r9,%r9), %r10d
movb %r10b, 0x5c(%rsp)
movl %r8d, 0x58(%rsp)
shrl $0x7, %r9d
orl %edi, %r9d
movl %r9d, 0x34(%rsp)
movl %r9d, %edi
decq %rcx
jne 0x2568
leaq 0x68(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x29ae
movq 0x48(%rsp), %rax
movl 0x4(%rax), %ebp
cmpl $0x68746542, (%rax)     # imm = 0x68746542
sete %al
testl %ebp, %ebp
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2620
leaq 0x68(%rsp), %rbx
movq %rbx, %rdi
callq 0x2a14
movq 0x10(%rsp), %rcx
movl 0x18(%rsp), %edx
movb %al, (%rcx,%rdx)
movl 0x18(%rsp), %eax
incl %eax
movl %eax, 0x18(%rsp)
cmpl 0x1c(%rsp), %eax
jne 0x261c
movl 0x8(%rsp), %edi
movq 0x10(%rsp), %rsi
movl %eax, %edx
callq 0x2040
movl $0x0, 0x18(%rsp)
decl %ebp
jne 0x25e0
leaq 0x3741(%rip), %rax      # 0x5d68
movq %rax, 0x68(%rsp)
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x263b
callq 0x2110
leaq 0x8(%rsp), %rdi
callq 0x2bba
leaq 0x38(%rsp), %rdi
callq 0x2be6
addq $0xa0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x265d
movq %rax, %rbx
jmp 0x2680
movq %rax, %rbx
leaq 0x36fc(%rip), %rax      # 0x5d68
movq %rax, 0x68(%rsp)
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x2680
callq 0x2110
leaq 0x8(%rsp), %rdi
callq 0x2bba
leaq 0x38(%rsp), %rdi
callq 0x2be6
movq %rbx, %rdi
callq 0x21b0
// File: /workspace/github_c_makefile_star2_O3/ijleesw[P]data-compression/src/arithmetic/main.cpp
// Function: main
int main(int argc, char** argv)
{
	if (argc < 4) {
		cout << "Usage: "<<argv[0]<<" <input path> <compression path> <decompression path>\n";
		return -1;
	}

	enc_szInputName = argv[1];
	enc_szOutputName = argv[2];
	dec_szInputName = argv[2];
	dec_szOutputName = argv[3];

	encode_BYTE(enc_szInputName, enc_szOutputName);
	decode_BYTE(dec_szInputName, dec_szOutputName);

	return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpl $0x3, %edi
jg 0x26e7
movq 0x3929(%rip), %r14      # 0x5fd8
leaq 0x196a(%rip), %rsi      # 0x4020
movl $0x7, %edx
movq %r14, %rdi
callq 0x2130
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x272b
movq %rbx, %rdi
callq 0x2070
movq 0x38fe(%rip), %rdi      # 0x5fd8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x2130
jmp 0x2743
movq 0x8(%rbx), %rdi
movq %rdi, 0x3a2e(%rip)      # 0x6120
movq 0x10(%rbx), %rsi
movq %rsi, 0x3a2b(%rip)      # 0x6128
movq %rsi, 0x3a2c(%rip)      # 0x6130
movq 0x18(%rbx), %rax
movq %rax, 0x3a29(%rip)      # 0x6138
callq 0x232c
movq 0x3a15(%rip), %rdi      # 0x6130
movq 0x3a16(%rip), %rsi      # 0x6138
callq 0x24d9
xorl %eax, %eax
jmp 0x2760
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x2190
movq 0x388e(%rip), %rdi      # 0x5fd8
leaq 0x18d7(%rip), %rsi      # 0x4028
movl $0x36, %edx
callq 0x2130
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/ijleesw[P]data-compression/src/arithmetic/adaptive_model.h
// Function: adaptive_model<unsigned char>::encode_symbol(unsigned char)
void adaptive_model<symbolT>::encode_symbol(symbolT symbol)
{
  if (m_encoder)
  {
    m_encoder->encode(cum_count(idx<symbolT>::from_symbol(symbol) - 1),
                      cum_count(idx<symbolT>::from_symbol(symbol)), //symbol_to_index(symbol)),
                      total_count());
    update(symbol);    
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
testq %rdi, %rdi
je 0x287a
movq 0x10(%rbx), %rax
movzbl %sil, %r14d
movl (%rax,%r14,4), %esi
movl 0x4(%rax,%r14,4), %edx
movl 0x8(%rbx), %ecx
decl %ecx
movl (%rax,%rcx,4), %ecx
callq 0x2e36
movq %rbx, %rdi
movl %r14d, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2fbe
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/ijleesw[P]data-compression/src/arithmetic/u_file_writer.h
// Function: file_writer<bool>::~file_writer()
~file_writer()
      {        
        DWORD nBytesWritten;
        
        nBytesWritten = write(m_fdFile, m_Buffer, m_dwCurrentByte);       
        ASSERT(nBytesWritten == m_dwCurrentByte);

        while(m_dwBitsInByte)
        {
          m_bitBuffer <<= 1;
          --m_dwBitsInByte;
        }

        nBytesWritten = write(m_fdFile, &m_bitBuffer, sizeof(BYTE));
        ASSERT(nBytesWritten == sizeof(BYTE));
    
        close(m_fdFile);
        free(m_Buffer);
      }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %edi
movq 0x8(%rbx), %rsi
movl 0x14(%rbx), %edx
callq 0x2040
movl 0x1c(%rbx), %eax
testl %eax, %eax
je 0x28d0
movb 0x10(%rbx), %cl
addb %cl, %cl
decl %eax
jne 0x28c0
movb %cl, 0x10(%rbx)
movl $0x0, 0x1c(%rbx)
movl (%rbx), %edi
leaq 0x10(%rbx), %rsi
movl $0x1, %edx
callq 0x2040
movl (%rbx), %edi
callq 0x21e0
movq 0x8(%rbx), %rdi
popq %rbx
jmp 0x2140
movq %rax, %rdi
callq 0x2c07
nop
// File: /workspace/github_c_makefile_star2_O3/ijleesw[P]data-compression/src/arithmetic/u_file_map.h
// Function: file_map<unsigned char>::~file_map()
~file_map()
    {     
      if (m_bHand)
      {
        lseek(m_fdFile, 0, SEEK_SET);
        write(m_fdFile, m_FileMap, m_dwFileSize);
        //free(m_FileMap);
      }
      else
      {      
        munmap(m_FileMap, m_dwFileSize);
      }
      close(m_fdFile);
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpb $0x1, 0x25(%rdi)
jne 0x291f
movl (%rbx), %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21d0
movl (%rbx), %edi
movq 0x10(%rbx), %rsi
movl 0x18(%rbx), %edx
callq 0x2040
jmp 0x292b
movq 0x10(%rbx), %rdi
movl 0x18(%rbx), %esi
callq 0x20b0
movl (%rbx), %edi
callq 0x21e0
popq %rbx
retq
movq %rax, %rdi
callq 0x2c07
// File: /workspace/github_c_makefile_star2_O3/ijleesw[P]data-compression/src/arithmetic/adaptive_model.h
// Function: adaptive_model<unsigned char>::decode_symbol()
symbolT adaptive_model<symbolT>::decode_symbol()
{
  symbolT symbol;
  if (m_decoder)
  {  
    DWORD target = m_decoder->decode_target(total_count());    
    DWORD index = search_index(target);

    m_decoder->decode(cum_count(index - 1),
                      cum_count(index),
                      total_count());

    symbol = idx<symbolT>::to_symbol(index);
    update(symbol);
  }

  return symbol;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq 0x30(%rdi), %rsi
movl 0x8(%rdi), %ecx
leal -0x1(%rcx), %eax
movq 0x10(%rdi), %r10
movl (%r10,%rax,4), %ebx
movl 0x14(%rsi), %r8d
movl 0xc(%rsi), %r11d
movl 0x10(%rsi), %r14d
movl %r8d, %eax
subl %r11d, %eax
incq %rax
imulq %rbx, %rax
decq %rax
subq %r11, %r14
incq %r14
xorl %edx, %edx
divq %r14
movl $0x1, %r9d
cmpq $0x2, %rcx
jb 0x2a7b
movl $0x1, %r9d
cmpl %eax, -0x4(%r10,%r9,4)
ja 0x2a70
cmpl %eax, (%r10,%r9,4)
ja 0x2a7b
incq %r9
cmpq %r9, %rcx
jne 0x2a63
movl %ecx, %r9d
leal -0x1(%r9), %eax
movl (%r10,%rax,4), %ecx
movl %r9d, %eax
movl (%r10,%rax,4), %eax
imulq %r14, %rax
xorl %edx, %edx
divq %rbx
leal (%r11,%rax), %r10d
decl %r10d
movl %r10d, 0x10(%rsi)
imulq %r14, %rcx
movq %rcx, %rax
xorl %edx, %edx
divq %rbx
addl %r11d, %eax
movl %eax, 0xc(%rsi)
movq (%rsi), %rcx
leaq 0x24(%rcx), %rdx
movl %r10d, %r11d
xorl %eax, %r11d
js 0x2ae8
addl %eax, %eax
movl %eax, 0xc(%rsi)
addl %r8d, %r8d
movl %r8d, 0x14(%rsi)
leal 0x1(,%r10,2), %r10d
movl %r10d, 0x10(%rsi)
movl 0x20(%rcx), %r11d
testl %r11d, %r11d
je 0x2b2b
decl %r11d
movq %rdx, %rbx
jmp 0x2b40
btl $0x1e, %eax
jae 0x2ba5
movl %r10d, %r11d
andl $0x40000000, %r11d      # imm = 0x40000000
jne 0x2ba5
addl %eax, %eax
movl %eax, 0xc(%rsi)
addl %r8d, %r8d
movl %r8d, 0x14(%rsi)
leal 0x1(,%r10,2), %r11d
movl %r11d, 0x10(%rsi)
movl 0x20(%rcx), %r11d
testl %r11d, %r11d
je 0x2b56
decl %r11d
movq %rdx, %rbx
jmp 0x2b6b
movl 0x1c(%rcx), %ebx
leal 0x1(%rbx), %r11d
movl %r11d, 0x1c(%rcx)
addq 0x8(%rcx), %rbx
movl $0x7, %r11d
movzbl (%rbx), %ebx
leal (%rbx,%rbx), %ebp
movb %bpl, 0x24(%rcx)
movl %r11d, 0x20(%rcx)
shrl $0x7, %ebx
orl %ebx, %r8d
jmp 0x2b9c
movl 0x1c(%rcx), %ebx
leal 0x1(%rbx), %r11d
movl %r11d, 0x1c(%rcx)
addq 0x8(%rcx), %rbx
movl $0x7, %r11d
addl %r10d, %r10d
movzbl (%rbx), %ebx
leal (%rbx,%rbx), %ebp
movb %bpl, 0x24(%rcx)
movl %r11d, 0x20(%rcx)
shrl $0x7, %ebx
andl $0x7ffffffe, %eax       # imm = 0x7FFFFFFE
movl %eax, 0xc(%rsi)
orl $0x80000001, %r10d      # imm = 0x80000001
movl %r10d, 0x10(%rsi)
addl %ebx, %r8d
addl $0x80000000, %r8d       # imm = 0x80000000
movl %r8d, 0x14(%rsi)
jmp 0x2ab7
decb %r9b
movzbl %r9b, %ebx
movl %ebx, %esi
callq 0x2fbe
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq