LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/fuldaros[P]akb_sources/cc/akb_cc.c
// Function: key_with_file
int key_with_file(char * file)
{
	struct stat statf[1];
	struct stat control[1];

	if (stat(file, statf) < 0)
		return -1;

	/* Turn on stable fields */
	memset(control, 0, sizeof(control));
	control->st_ino = statf->st_ino;
	control->st_dev = statf->st_dev;
	control->st_rdev = statf->st_rdev;
	control->st_uid = statf->st_uid;
	control->st_gid = statf->st_gid;
	control->st_size = statf->st_size;
	control->st_mtime = statf->st_mtime;
	control->st_ctime = statf->st_ctime;
	key(control, sizeof(control));
	return 0;
}

// Assembly:
subq $0x128, %rsp            # imm = 0x128
movq %rsp, %rsi
callq 0x4150
testl %eax, %eax
js 0x4a19
xorps %xmm0, %xmm0
leaq 0x90(%rsp), %rdi
movaps %xmm0, 0x20(%rdi)
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, 0x30(%rdi)
movaps %xmm0, 0x50(%rdi)
movaps %xmm0, 0x80(%rdi)
movaps %xmm0, 0x70(%rdi)
movaps %xmm0, 0x60(%rdi)
movaps %xmm0, 0x40(%rdi)
movaps (%rsp), %xmm0
movaps %xmm0, (%rdi)
movq 0x28(%rsp), %rax
movq %rax, 0x28(%rdi)
movq 0x1c(%rsp), %rax
movq %rax, 0x1c(%rdi)
movq 0x30(%rsp), %rax
movq %rax, 0x30(%rdi)
movq 0x58(%rsp), %rax
movq %rax, 0x58(%rdi)
movq 0x68(%rsp), %rax
movq %rax, 0x68(%rdi)
movl $0x90, %esi
callq 0x48ce
xorl %eax, %eax
jmp 0x4a1e
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x128, %rsp            # imm = 0x128
retq
// File: /workspace/github_c_makefile_star2_O3/fuldaros[P]akb_sources/cc/akb_cc.c
// Function: read_script
char * read_script(char * file)
{
	FILE * i;
	char * text;
	int cnt, l;

	text = malloc(SIZE);
	if (!text)
		return NULL;
	i = fopen(file, "r");
	if (!i)
		return NULL;
	for (l = 0;;) {
		text = realloc(text, l + SIZE);
		if (!text)
			return NULL;
		cnt = fread(&text[l], 1, SIZE, i);
		if (!cnt)
			break;
		l += cnt;
	}
	fclose(i);
	text = realloc(text, l + 1);
	if (!text)
		return NULL;
	text[l] = '\0';

	/* Check current System ARG_MAX limit. */
	if (l > 0.80 * (cnt = sysconf(_SC_ARG_MAX))) {
		fprintf(stderr, "%s: WARNING!!\n"
"   Scripts of length near to (or higher than) the current System limit on\n"
"   \"maximum size of arguments to EXEC\", could comprise its binary execution.\n"
"   In the current System the call sysconf(_SC_ARG_MAX) returns %d bytes\n"
"   and your script \"%s\" is %d bytes length.\n",
		my_name, cnt, file, l);
	}
	return text;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1000, %edi           # imm = 0x1000
callq 0x4170
testq %rax, %rax
je 0x4e49
movq %rax, %r14
leaq 0x19e1(%rip), %rsi      # 0x673d
movq %rbx, %rdi
callq 0x41c0
testq %rax, %rax
je 0x4e49
movq %rax, %r12
movl $0x1000, %esi           # imm = 0x1000
movq %r14, %rdi
callq 0x41b0
xorl %r14d, %r14d
testq %rax, %rax
je 0x4e4c
movq %rax, %r13
xorl %r15d, %r15d
movslq %r15d, %rbp
movq %r13, %rdi
addq %rbp, %rdi
movl $0x1, %esi
movl $0x1000, %edx           # imm = 0x1000
movq %r12, %rcx
callq 0x4070
testl %eax, %eax
je 0x4dd2
leal (%r15,%rax), %ebp
addl %r15d, %eax
addl $0x1000, %eax           # imm = 0x1000
movslq %eax, %rsi
movq %r13, %rdi
callq 0x41b0
movq %rax, %r13
movl %ebp, %r15d
testq %rax, %rax
jne 0x4d8f
jmp 0x4e4c
movq %r12, %rdi
callq 0x4090
leal 0x1(%r15), %eax
movslq %eax, %rsi
movq %r13, %rdi
callq 0x41b0
testq %rax, %rax
je 0x4e49
movq %rax, %r14
movb $0x0, (%rax,%rbp)
cvtsi2sd %r15d, %xmm0
movsd %xmm0, (%rsp)
xorl %edi, %edi
callq 0x41e0
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x122b(%rip), %xmm0     # 0x6040
movsd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x4e4c
movq 0x61d1(%rip), %rcx      # 0xaff8
movq (%rcx), %rdi
leaq 0x15d3(%rip), %rsi      # 0x6404
leaq 0x12f0(%rip), %rdx      # 0x6128
movl %eax, %ecx
movq %rbx, %r8
movl %r15d, %r9d
xorl %eax, %eax
callq 0x4140
jmp 0x4e4c
xorl %r14d, %r14d
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/fuldaros[P]akb_sources/cc/akb_cc.c
// Function: noise
int noise(char * ptr, unsigned min, unsigned xtra, int str)
{
	if (xtra) xtra = rand_mod(xtra);
	xtra += min;
	for (min = 0; min < xtra; min++, ptr++)
		do
			*ptr = rand_chr();
		while (str && !isalnum((int)*ptr));
	if (str) *ptr = '\0';
	return xtra;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movl %esi, %r15d
movq %rdi, %rbx
testl %edx, %edx
je 0x4ef6
movl %edx, %edi
callq 0x4e5e
movl %eax, %r14d
jmp 0x4ef9
xorl %r14d, %r14d
addl %r15d, %r14d
je 0x4f4d
xorl %r15d, %r15d
callq 0x4250
cmpl $0x7ffffeff, %eax       # imm = 0x7FFFFEFF
ja 0x4f01
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x112c(%rip), %xmm0     # 0x6048
divsd 0x112c(%rip), %xmm0     # 0x6050
cvttsd2si %xmm0, %r12
movb %r12b, (%rbx)
testl %ebp, %ebp
je 0x4f42
callq 0x4260
movq (%rax), %rax
movsbq %r12b, %rcx
testb $0x8, (%rax,%rcx,2)
je 0x4f01
incl %r15d
incq %rbx
cmpl %r14d, %r15d
jne 0x4f01
testl %ebp, %ebp
je 0x4f54
movb $0x0, (%rbx)
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/fuldaros[P]akb_sources/cc/akb_cc.c
// Function: prnt_bytes
void prnt_bytes(FILE * o, char * ptr, int m, int l, int n)
{
	int i;

	l += m;
	n += l;
	for (i = 0; i < n; i++) {
		if ((i & 0xf) == 0)
			fprintf(o, "\n\t\"");
		fprintf(o, "\\%03o", (unsigned char)((i>=m) && (i<l) ? ptr[i-m] : rand_chr()));
		if ((i & 0xf) == 0xf)
			fprintf(o, "\"");
	}
	if ((i & 0xf) != 0)
		fprintf(o, "\"");
	offset += n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebx
movq %rsi, 0x10(%rsp)
addl %edx, %ecx
addl %ecx, %ebx
jle 0x5042
movq %rdi, %r14
movslq %ecx, %rbp
movslq %edx, %r12
movl %ebx, 0xc(%rsp)
movl %ebx, %ebx
xorl %r15d, %r15d
movl %r15d, %r13d
andl $0xf, %r13d
jne 0x4fb4
movl $0x3, %esi
movl $0x1, %edx
leaq 0x1572(%rip), %rdi      # 0x651e
movq %r14, %rcx
callq 0x4230
movq %r15, %rax
subq %r12, %rax
setge %cl
cmpq %rbp, %r15
setl %dl
testb %dl, %cl
je 0x4fd1
movq 0x10(%rsp), %rcx
movb (%rcx,%rax), %al
jmp 0x4ff9
callq 0x4250
cmpl $0x7ffffeff, %eax       # imm = 0x7FFFFEFF
ja 0x4fd1
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x105c(%rip), %xmm0     # 0x6048
divsd 0x105c(%rip), %xmm0     # 0x6050
cvttsd2si %xmm0, %rax
movzbl %al, %edx
movq %r14, %rdi
leaq 0x151c(%rip), %rsi      # 0x6522
xorl %eax, %eax
callq 0x4140
cmpl $0xf, %r13d
jne 0x5020
movl $0x22, %edi
movq %r14, %rsi
callq 0x40f0
incq %r15
cmpq %rbx, %r15
jne 0x4f92
movl 0xc(%rsp), %ebx
testb $0xf, %bl
je 0x5042
movl $0x22, %edi
movq %r14, %rsi
callq 0x40f0
addl %ebx, 0x6408(%rip)      # 0xb450
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/fuldaros[P]akb_sources/cc/akb_cc.c
// Function: prnt_array
void prnt_array(FILE * o, void * ptr, char * name, int l, char * cast)
{
	int m = rand_mod(1+l/4);		/* Random amount of random pre  padding (offset) */
	int n = rand_mod(1+l/4);		/* Random amount of random post padding  (tail)  */
	int a = (offset+m)%l;
	if (cast && a) m += l - a;		/* Type alignement. */
	fprintf(o, "\n");
	fprintf(o, "#define      %s_z	%d", name, l);
	fprintf(o, "\n");
	fprintf(o, "#define      %s	(%s(&data[%d]))", name, cast?cast:"", offset+m);
	prnt_bytes(o, ptr, m, l, n);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r14
movl %ecx, %ebx
movq %rdx, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdi, %r15
leal 0x3(%rbx), %ebp
testl %ecx, %ecx
cmovnsl %ecx, %ebp
sarl $0x2, %ebp
incl %ebp
movl %ebp, %edi
callq 0x4e5e
movl %eax, %r12d
movl %ebp, %edi
callq 0x4e5e
movl %eax, 0x4(%rsp)
movl 0x63b1(%rip), %eax      # 0xb450
addl %r12d, %eax
cltd
idivl %ebx
movl %edx, %r13d
movl %ebx, %eax
subl %edx, %eax
testl %edx, %edx
cmovnel %eax, %r13d
xorl %eax, %eax
testq %r14, %r14
cmovel %eax, %r13d
leaq 0x1545(%rip), %rbp      # 0x6607
cmovneq %r14, %rbp
addl %r12d, %r13d
movl $0xa, %edi
movq %r15, %rsi
callq 0x40f0
movq %r15, %rdi
leaq 0x1448(%rip), %rsi      # 0x6528
movq 0x8(%rsp), %r14
movq %r14, %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x4140
movl $0xa, %edi
movq %r15, %rsi
callq 0x40f0
movl 0x634b(%rip), %r8d      # 0xb450
addl %r13d, %r8d
leaq 0x142e(%rip), %rsi      # 0x653d
movq %r15, %rdi
movq %r14, %rdx
movq %rbp, %rcx
xorl %eax, %eax
callq 0x4140
movq %r15, %rdi
movq 0x10(%rsp), %rsi
movl %r13d, %edx
movl %ebx, %ecx
movl 0x4(%rsp), %r8d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4f60
// File: /workspace/github_c_makefile_star2_O3/fuldaros[P]akb_sources/cc/akb_cc.c
// Function: make
int make(void)
{
	char * cc, * cflags;
	char cmd[SIZE];

	cc = getenv("CC");
	if (!cc)
		cc = "cc";
	cflags = getenv("CFLAGS");
	if (!cflags)
		cflags = "";

if(!file2){
file2=(char*)realloc(file2,strlen(file)+3);
strcpy(file2,file);
file2=strcat(file2,".x");

}
	sprintf(cmd, "%s %s %s.x.c -o %s", cc, cflags, file, file2);
	if (verbose) fprintf(stderr, "%s: %s\n", my_name, cmd);
	if (system(cmd))
		return -1;
	sprintf(cmd, "strip %s", file2);
	if (verbose) fprintf(stderr, "%s: %s\n", my_name, cmd);
	if (system(cmd))
		fprintf(stderr, "%s: never mind\n", my_name);
	sprintf(cmd, "chmod ug=rwx,o=rx %s", file2);
	if (verbose) fprintf(stderr, "%s: %s\n", my_name, cmd);
	if (system(cmd))
		fprintf(stderr, "%s: remove read permission\n", my_name);

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
leaq 0xbb9(%rip), %rdi       # 0x66aa
callq 0x4030
testq %rax, %rax
leaq 0xb49(%rip), %rbx       # 0x6649
cmovneq %rax, %rbx
leaq 0xba2(%rip), %rdi       # 0x66ad
callq 0x4030
testq %rax, %rax
leaq 0xaed(%rip), %r14       # 0x6607
cmovneq %rax, %r14
movq 0x596b(%rip), %r12      # 0xb490
movq 0x596c(%rip), %r15      # 0xb498
testq %r12, %r12
jne 0x5b6c
movq %r15, %rdi
callq 0x40b0
leaq 0x3(%rax), %rdi
callq 0x4170
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x4060
movq %r12, %rdi
callq 0x40b0
movw $0x782e, (%r12,%rax)    # imm = 0x782E
movb $0x0, 0x2(%r12,%rax)
movq %r12, 0x5924(%rip)      # 0xb490
leaq 0xb44(%rip), %rsi       # 0x66b7
movq %rsp, %rdi
movq %rbx, %rdx
movq %r14, %rcx
movq %r15, %r8
movq %r12, %r9
xorl %eax, %eax
callq 0x4210
cmpl $0x0, 0x58a0(%rip)      # 0xb430
jne 0x5c1c
movq %rsp, %rdi
callq 0x40c0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x5c0b
movq 0x58e2(%rip), %rdx      # 0xb490
leaq 0xb1d(%rip), %rsi       # 0x66d2
movq %rsp, %rdi
xorl %eax, %eax
callq 0x4210
cmpl $0x0, 0x586a(%rip)      # 0xb430
jne 0x5c43
movq %rsp, %rdi
callq 0x40c0
testl %eax, %eax
jne 0x5c6a
movq 0x58b1(%rip), %rdx      # 0xb490
leaq 0xb05(%rip), %rsi       # 0x66eb
xorl %ebx, %ebx
movq %rsp, %rdi
xorl %eax, %eax
callq 0x4210
cmpl $0x0, 0x5837(%rip)      # 0xb430
jne 0x5c74
movq %rsp, %rdi
callq 0x40c0
testl %eax, %eax
jne 0x5c9b
movl %ebx, %eax
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x53d5(%rip), %rax      # 0xaff8
movq (%rax), %rdi
leaq 0xa9d(%rip), %rsi       # 0x66ca
leaq 0x4f4(%rip), %rdx       # 0x6128
movq %rsp, %rcx
xorl %eax, %eax
callq 0x4140
jmp 0x5b96
movq 0x53ae(%rip), %rax      # 0xaff8
movq (%rax), %rdi
leaq 0xa76(%rip), %rsi       # 0x66ca
leaq 0x4cd(%rip), %rdx       # 0x6128
movq %rsp, %rcx
xorl %eax, %eax
callq 0x4140
jmp 0x5bc8
callq 0x4364
jmp 0x5bd8
movq 0x537d(%rip), %rax      # 0xaff8
movq (%rax), %rdi
leaq 0xa45(%rip), %rsi       # 0x66ca
leaq 0x49c(%rip), %rdx       # 0x6128
movq %rsp, %rcx
xorl %eax, %eax
callq 0x4140
jmp 0x5bfb
callq 0x4389
jmp 0x5c0b
// File: /workspace/github_c_makefile_star2_O3/fuldaros[P]akb_sources/cc/akb_cc.c
// Function: do_all
void do_all(int argc, char * argv[])
{
	parse_args(argc, argv);
	text = read_script(file);
	if (!text)
		return;
	if (eval_shell(text))
		return;
	if (write_C(file, argv))
		return;
	if (make())
		return;
	exit(0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x205c(%rip), %r13      # 0x7d1b
leaq 0x3e6(%rip), %r12       # 0x60ac
leaq 0x40b(%rip), %r14       # 0x60d8
movq 0x5304(%rip), %r15      # 0xafd8
movl $0x0, 0x4(%rsp)
movl %ebp, %edi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x41f0
cmpl $0x64, %eax
jle 0x5db4
addl $-0x65, %eax
cmpl $0x13, %eax
ja 0x5ea7
movslq (%r14,%rax,4), %rax
addq %r14, %rax
jmpq *%rax
pxor %xmm0, %xmm0
movdqa %xmm0, 0x30(%rsp)
movdqa %xmm0, 0x20(%rsp)
movdqa %xmm0, 0x10(%rsp)
movq $0x0, 0x40(%rsp)
movq (%r15), %rdi
leaq 0x2002(%rip), %rsi      # 0x7d32
leaq 0x1c(%rsp), %rdx
leaq 0x20(%rsp), %rcx
leaq 0x24(%rsp), %r8
leaq 0x3(%rsp), %r9
xorl %eax, %eax
callq 0x4190
cmpl $0x3, %eax
jne 0x5e8b
movq 0x20(%rsp), %xmm0
paddd 0x2ce(%rip), %xmm0      # 0x6030
movq %xmm0, 0x20(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x41a0
movq %rax, 0x8(%rsp)
testq %rax, %rax
jle 0x5e8b
leaq 0x56d9(%rip), %rdi      # 0xb460
leaq 0x1fd6(%rip), %rsi      # 0x7d64
movq %rax, %rdx
xorl %eax, %eax
callq 0x4210
cmpl $0x0, 0x5691(%rip)      # 0xb430
je 0x5cdc
leaq 0x8(%rsp), %rdi
callq 0x46cb
jmp 0x5cdc
leal -0x3a(%rax), %ecx
cmpl $0xa, %ecx
ja 0x5dd1
movslq (%r12,%rcx,4), %rax
addq %r12, %rax
jmpq *%rax
movb $0x1, 0x56c0(%rip)      # 0xb48c
jmp 0x5cdc
cmpl $0x55, %eax
jne 0x5e6c
movb $0x1, 0x56a7(%rip)      # 0xb488
jmp 0x5cdc
movb $0x1, 0x5697(%rip)      # 0xb484
jmp 0x5cdc
movq (%r15), %rax
movq %rax, 0x5694(%rip)      # 0xb490
jmp 0x5cdc
incb 0x5679(%rip)            # 0xb480
jmp 0x5cdc
movq (%r15), %rax
movq %rax, 0x54da(%rip)      # 0xb2f0
jmp 0x5cdc
movq (%r15), %rax
movq %rax, 0x5623(%rip)      # 0xb448
jmp 0x5cdc
cmpq $0x0, 0x5666(%rip)      # 0xb498
jne 0x5ea0
movq (%r15), %rax
movq %rax, 0x565a(%rip)      # 0xb498
jmp 0x5cdc
movq (%r15), %rax
movq %rax, 0x55eb(%rip)      # 0xb438
jmp 0x5cdc
movq (%r15), %rax
movq %rax, 0x55e4(%rip)      # 0xb440
jmp 0x5cdc
incl 0x55c9(%rip)            # 0xb430
jmp 0x5cdc
cmpl $-0x1, %eax
jne 0x5ea7
movq 0x5620(%rip), %rdi      # 0xb498
testq %rdi, %rdi
jne 0x5eae
callq 0x4427
incl 0x4(%rsp)
jmp 0x5cdc
callq 0x474b
jmp 0x5e82
callq 0x43d3
jmp 0x5e82
callq 0x43ae
jmp 0x5e82
callq 0x46a6
jmp 0x5e82
callq 0x477a
jmp 0x5e82
cmpl $0x0, 0x4(%rsp)
jne 0x5f08
callq 0x4d31
movq %rax, 0x55b7(%rip)      # 0xb478
testq %rax, %rax
je 0x5eea
movq %rax, %rdi
callq 0x4a26
testl %eax, %eax
jne 0x5eea
movq 0x55bf(%rip), %rdi      # 0xb498
movq %rbx, %rsi
callq 0x517f
callq 0x5adc
testl %eax, %eax
je 0x5f0d
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x45ca
callq 0x4517
callq 0x445a
callq 0x43f8
xorl %edi, %edi
callq 0x4220
// File: /workspace/github_c_makefile_star2_O3/fuldaros[P]akb_sources/cc/akb_cc.c
// Function: main
int main(int argc, char * argv[])
{
	putenv("LANG=");
	do_all(argc, argv);
	/* Return on error */
	perror(argv[0]);
	exit(1);
	return 1;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x7f9(%rip), %rdi       # 0x671c
callq 0x4110
movl %ebp, %edi
movq %rbx, %rsi
callq 0x5ca5
movq (%rbx), %rdi
callq 0x41d0
movl $0x1, %edi
callq 0x4220
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/datahandling.c
// Function: Unpack
static int Unpack(lua_State *L)
    {
    size_t len;
    int type = checktype(L, 1);
    const void *data = luaL_checklstring(L, 2, &len);
    return Unpack_(L, type, data, len);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x65, %esi
movl $0x1, %edx
callq 0x4130
movl %eax, %r15d
movq %rsp, %rdx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4380
decl %r15d
cmpl $0x3, %r15d
ja 0x5809
movq %rax, %r14
movq (%rsp), %r12
leaq 0x7c36(%rip), %rax      # 0xd298
movslq (%rax,%r15,4), %rcx
addq %rax, %rcx
jmpq *%rcx
cmpq $0x2, %r12
setb %al
movl %r12d, %ecx
orb %al, %cl
testb $0x1, %cl
jne 0x57f0
shrq %r12
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
negq %r12
movl $0x1, %r15d
movswq -0x2(%r14,%r15,2), %rsi
movq %rbx, %rdi
callq 0x4320
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r15, %rdx
callq 0x4490
leaq (%r12,%r15), %rax
incq %rax
incq %r15
cmpq $0x1, %rax
jne 0x5698
jmp 0x57e9
cmpq $0x4, %r12
setb %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x57f0
shrq $0x2, %r12
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
negq %r12
movl $0x1, %r15d
xorps %xmm0, %xmm0
cvtss2sd -0x4(%r14,%r15,4), %xmm0
movq %rbx, %rdi
callq 0x4510
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r15, %rdx
callq 0x4490
leaq (%r12,%r15), %rax
incq %rax
incq %r15
cmpq $0x1, %rax
jne 0x56fa
jmp 0x57e9
cmpq $0x8, %r12
setb %al
testb $0x7, %r12b
setne %cl
orb %al, %cl
jne 0x57f0
shrq $0x3, %r12
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
negq %r12
movl $0x1, %r15d
movsd -0x8(%r14,%r15,8), %xmm0
movq %rbx, %rdi
callq 0x4510
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r15, %rdx
callq 0x4490
leaq (%r12,%r15), %rax
incq %rax
incq %r15
cmpq $0x1, %rax
jne 0x5760
jmp 0x57e9
cmpq $0x4, %r12
setb %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x57f0
shrq $0x2, %r12
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
negq %r12
movl $0x1, %r15d
movslq -0x4(%r14,%r15,4), %rsi
movq %rbx, %rdi
callq 0x4320
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r15, %rdx
callq 0x4490
leaq (%r12,%r15), %rax
incq %rax
incq %r15
cmpq $0x1, %rax
jne 0x57bc
movl $0x1, %eax
jmp 0x5826
movl $0xfffffff9, %edi       # imm = 0xFFFFFFF9
callq 0x4660
movq %rbx, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x46c0
jmp 0x5826
leaq 0x7af4(%rip), %rsi      # 0xd304
leaq 0x7b07(%rip), %rdx      # 0xd31e
movq %rbx, %rdi
movl $0xe7, %ecx
xorl %eax, %eax
callq 0x46c0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/enums.c
// Function: moonsndfile_enums_checklist
int* enums_checklist(lua_State *L, uint32_t domain, int arg, size_t *count, int *err)
    {
    int* list;
    size_t i;

    *count = 0;
    *err = 0;
    if(lua_isnoneornil(L, arg))
        { *err = ERR_NOTPRESENT; return NULL; }
    if(lua_type(L, arg) != LUA_TTABLE)
        { *err = ERR_TABLE; return NULL; }

    *count = luaL_len(L, arg);
    if(*count == 0)
        { *err = ERR_NOTPRESENT; return NULL; }

    list = (int*)MallocNoErr(L, sizeof(int) * (*count));
    if(!list)
        { *count = 0; *err = ERR_MEMORY; return NULL; }

    for(i=0; i<*count; i++)
        {
        lua_rawgeti(L, arg, i+1);
        list[i] = enums_test(L, domain, -1, err);
        lua_pop(L, 1);
        if(*err)
            { Free(L, list); *count = 0; return NULL; }
        }
    return list;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r14
movl %edx, %ebp
movl %esi, 0x14(%rsp)
movq %rdi, %r15
movq %rcx, 0x8(%rsp)
movq $0x0, (%rcx)
movl $0x0, (%r8)
movl %edx, %esi
callq 0x4730
testl %eax, %eax
jle 0x65c7
movq %r15, %rdi
movl %ebp, %esi
callq 0x4730
cmpl $0x5, %eax
jne 0x65d0
movq %r15, %rdi
movl %ebp, %esi
callq 0x4740
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
testq %rax, %rax
je 0x65c7
shlq $0x2, %rax
movq %r15, %rdi
movq %rax, %rsi
callq 0x4390
testq %rax, %rax
je 0x65ec
movq %rax, %r13
xorl %r12d, %r12d
movq 0x8(%rsp), %rax
cmpq (%rax), %r12
jae 0x65da
leaq 0x1(%r12), %rbx
movq %r15, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x42a0
movq %r15, %rdi
movl 0x14(%rsp), %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rcx
callq 0x4600
movl %eax, (%r13,%r12,4)
movq %r15, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4080
cmpl $0x0, (%r14)
movq %rbx, %r12
je 0x6563
movq %r15, %rdi
movq %r13, %rsi
callq 0x43a0
movq 0x8(%rsp), %rax
movq $0x0, (%rax)
jmp 0x65d7
movl $0x1, (%r14)
jmp 0x65d7
movl $0xfffffffc, (%r14)     # imm = 0xFFFFFFFC
xorl %r13d, %r13d
movq %r13, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %rax
movq $0x0, (%rax)
movl $0xfffffffa, (%r14)     # imm = 0xFFFFFFFA
jmp 0x65d7
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/enums.c
// Function: Enum
static int Enum(lua_State *L)
/* { strings } = cl.enum('type') lists all the values for a given enum type */
    { 
    const char *s = luaL_checkstring(L, 1); 
#define CASE(xxx) if(strcmp(s, ""#xxx) == 0) return values##xxx(L)
    CASE(type);
    CASE(format);
    CASE(subformat);
    CASE(endianness);
    CASE(stringtype);
    CASE(whence);
    CASE(openmode);
    CASE(channelmap);
    CASE(ditherlevel);
    CASE(dithertype);
    CASE(loopmode);
    CASE(ambisonic);
    CASE(bitratemode);
#undef CASE
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x1, %ebp
movl $0x1, %esi
xorl %edx, %edx
callq 0x4380
movq %rax, %r14
leaq 0x5b42(%rip), %rsi      # 0xe4de
movq %rax, %rdi
callq 0x4430
testl %eax, %eax
je 0x8abb
leaq 0x5461(%rip), %rsi      # 0xde14
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x8b06
leaq 0x5c89(%rip), %rsi      # 0xe653
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x8ac2
leaq 0x54ad(%rip), %rsi      # 0xde8e
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x8ac9
leaq 0x54a1(%rip), %rsi      # 0xde99
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x8ad0
leaq 0x5495(%rip), %rsi      # 0xdea4
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x8ad7
leaq 0x5485(%rip), %rsi      # 0xdeab
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x8ade
leaq 0x5477(%rip), %rsi      # 0xdeb4
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x8ae5
leaq 0x546b(%rip), %rsi      # 0xdebf
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x8aec
leaq 0x5460(%rip), %rsi      # 0xdecb
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x8af3
leaq 0x5458(%rip), %rsi      # 0xded6
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x8afa
leaq 0x47bc(%rip), %rsi      # 0xd24d
movq %r14, %rdi
callq 0x4430
testl %eax, %eax
je 0x8b01
leaq 0x543b(%rip), %rsi      # 0xdedf
movq %r14, %rdi
callq 0x4430
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
jne 0x8b15
movl $0xc, %ebp
jmp 0x8b06
movl $0x65, %ebp
jmp 0x8b06
movl $0x2, %ebp
jmp 0x8b06
movl $0x3, %ebp
jmp 0x8b06
movl $0x4, %ebp
jmp 0x8b06
movl $0x5, %ebp
jmp 0x8b06
movl $0x6, %ebp
jmp 0x8b06
movl $0x7, %ebp
jmp 0x8b06
movl $0x8, %ebp
jmp 0x8b06
movl $0x9, %ebp
jmp 0x8b06
movl $0xa, %ebp
jmp 0x8b06
movl $0xb, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4540
movl $0x1, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/main.c
// Function: luaopen_moonsndfile
int luaopen_moonsndfile(lua_State *L)
/* Lua calls this function to load the module */
    {
    moonsndfile_L = L;

    moonsndfile_utils_init(L);
    atexit(AtExit);

    lua_newtable(L); /* the cl table */

    /* add functions: */
    moonsndfile_open_getproc(L);
    moonsndfile_open_version(L);
    moonsndfile_open_enums(L);
    moonsndfile_open_tracing(L);
    moonsndfile_open_sndfile(L);
    moonsndfile_open_readwrite(L);
    moonsndfile_open_rawreadwrite(L);
    moonsndfile_open_datahandling(L);
    moonsndfile_open_command(L);
    moonsndfile_open_format(L);
    moonsndfile_open_chunk(L);

#if 0 //@@
    /* Add functions implemented in Lua */
    lua_pushvalue(L, -1); lua_setglobal(L, "moonsndfile");
    if(luaL_dostring(L, "require('moonsndfile.utils')") != 0) lua_error(L);
    lua_pushnil(L);  lua_setglobal(L, "moonsndfile");
#endif

    return 1;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq %rdi, 0xa0c1(%rip)      # 0x13560
callq 0x45c0
leaq 0x70(%rip), %rdi        # 0x951b
callq 0xc170
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
movq %rbx, %rdi
callq 0x44a0
movq %rbx, %rdi
callq 0x4410
movq %rbx, %rdi
callq 0x4070
movq %rbx, %rdi
callq 0x4050
movq %rbx, %rdi
callq 0x4750
movq %rbx, %rdi
callq 0x4360
movq %rbx, %rdi
callq 0x41f0
movq %rbx, %rdi
callq 0x4640
movq %rbx, %rdi
callq 0x41d0
movq %rbx, %rdi
callq 0x42e0
movq %rbx, %rdi
callq 0x4250
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/main.c
// Function: AtExit
static void AtExit(void)
    {
    if(moonsndfile_L)
        {
        enums_free_all(moonsndfile_L);
        moonsndfile_atexit_getproc();
        moonsndfile_L = NULL;
        }
    }

// Assembly:
movq 0xa03e(%rip), %rdi      # 0x13560
testq %rdi, %rdi
je 0x9541
pushq %rax
callq 0x4090
callq 0x40a0
movq $0x0, 0xa023(%rip) # 0x13560
addq $0x8, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/objects.c
// Function: moonsndfile_newuserdata
ud_t *newuserdata(lua_State *L, void *handle, const char *mt)
    {
    ud_t *ud;
    /* we use handle as search key */
    ud = (ud_t*)udata_new(L, sizeof(ud_t), (uint64_t)(uintptr_t)handle, mt);
    memset(ud, 0, sizeof(ud_t));
    ud->handle = handle;
    MarkValid(ud);
    return ud;
    }

// Assembly:
pushq %rbx
movq %rdx, %rcx
movq %rsi, %rbx
movl $0x50, %esi
movq %rbx, %rdx
callq 0x40c0
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x8(%rax)
movups %xmm0, 0x28(%rax)
movups %xmm0, 0x38(%rax)
movq $0x0, 0x48(%rax)
movq %rbx, (%rax)
movl $0x1, 0x18(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/objects.c
// Function: moonsndfile_freeuserdata
int freeuserdata(lua_State *L, ud_t *ud)
    {
    /* The 'Valid' mark prevents double calls when an object is explicitly destroyed, 
     * and subsequently deleted also by the GC (the ud sticks around until the GC
     * collects it, so we mark it as invalid when the object is explicitly destroyed
     * by the script, or implicitly destroyed because child of a destroyed object). */
    if(!IsValid(ud)) return 0;
    CancelValid(ud);
    if(ud->info) 
        Free(L, ud->info);
    udata_free(L, (uint64_t)(uintptr_t)ud->handle);
    return 1;
    }

// Assembly:
movl 0x18(%rsi), %ecx
xorl %eax, %eax
testb $0x1, %cl
je 0x95c1
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
andl $-0x2, %ecx
movl %ecx, 0x18(%rsi)
movq 0x48(%rsi), %rsi
testq %rsi, %rsi
je 0x95aa
movq %rbx, %rdi
callq 0x43a0
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x46f0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/rawreadwrite.c
// Function: WriteRaw
static int WriteRaw(lua_State *L)
    {
    size_t bytes;
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    const char *ptr = luaL_checklstring(L, 2, &bytes);
    sf_count_t nbytes = sf.write_raw(sndfile, ptr, bytes);
    lua_pushinteger(L, nbytes);
    return 1;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x37fa(%rip), %rcx      # 0xd097
movl $0x1, %esi
xorl %edx, %edx
callq 0x4400
movq %rax, %r14
leaq 0x8(%rsp), %r15
movq %rbx, %rdi
movl $0x2, %esi
movq %r15, %rdx
callq 0x4380
movq 0x9718(%rip), %rcx      # 0x12fe0
movq (%r15), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq *0x80(%rcx)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4320
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/readwrite.c
// Function: Seek
static int Seek(lua_State *L)
    {
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    sf_count_t frames = luaL_checkinteger(L, 2);
    int whence = checkwhence(L, 3);
    sf_count_t offset = sf.seek(sndfile, frames, whence) ;
    if(offset == -1)
        return nil_sndfileerror(L, sndfile);
    lua_pushinteger(L, offset);
    return 1;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x3757(%rip), %rcx      # 0xd097
movl $0x1, %esi
xorl %edx, %edx
callq 0x4400
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4470
movq %rax, %r15
movq %rbx, %rdi
movl $0x5, %esi
movl $0x3, %edx
callq 0x4130
movq 0x9668(%rip), %rcx      # 0x12fe0
movq %r14, %rdi
movq %r15, %rsi
movl %eax, %edx
callq *0x50(%rcx)
movq %rbx, %rdi
cmpq $-0x1, %rax
je 0x999f
movq %rax, %rsi
callq 0x4320
movl $0x1, %eax
popq %rbx
popq %r14
popq %r15
retq
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x4590
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/readwrite.c
// Function: CurrentByterate
static int CurrentByterate(lua_State *L)
    {
    int val;
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    if(!sf.current_byterate) //CheckPfn(L, current_byterate, 1,0,26);
        return 0;
    val = sf.current_byterate(sndfile);
    if(val == -1) 
        return 0; /* unknown */
    lua_pushinteger(L, val);
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x36b5(%rip), %rcx      # 0xd097
xorl %ebx, %ebx
movl $0x1, %esi
xorl %edx, %edx
callq 0x4400
movq 0x95e9(%rip), %rcx      # 0x12fe0
movq 0x70(%rcx), %rcx
testq %rcx, %rcx
je 0x9a1a
movq %rax, %rdi
callq *%rcx
cmpl $-0x1, %eax
je 0x9a1a
movslq %eax, %rsi
movq %r14, %rdi
callq 0x4320
movl $0x1, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/readwrite.c
// Function: Write
static int Write(lua_State *L)
    {
    ud_t *ud;
    size_t size;
    sf_count_t frames, nframes = 0;
    sndfile_t sndfile = checksndfile(L, 1, &ud);
    int t = checktype(L, 2);
    const char *ptr = luaL_checklstring(L, 3, &size);
    switch(t)
        {
        case NONSF_TYPE_SHORT:  frames = CheckSize_short(L, 3, ud, size);
                                nframes = sf.writef_short(sndfile, (short*)ptr, frames);
                                break;
        case NONSF_TYPE_INT:    frames = CheckSize_int(L, 3, ud, size);
                                nframes = sf.writef_int(sndfile, (int*)ptr, frames);
                                break;
        case NONSF_TYPE_FLOAT:  frames = CheckSize_float(L, 3, ud, size);
                                nframes = sf.writef_float(sndfile, (float*)ptr, frames);
                                break;
        case NONSF_TYPE_DOUBLE: frames = CheckSize_double(L, 3, ud, size);
                                nframes = sf.writef_double(sndfile, (double*)ptr, frames);
                                break;
        default:
            return luaL_argerror(L, 2, "invalid type");
        }
    lua_pushinteger(L, nframes);
    lua_pushinteger(L, frames);
    return 2;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x34e6(%rip), %rcx      # 0xd097
leaq 0x8(%rsp), %rdx
movl $0x1, %esi
callq 0x4400
movq %rax, %r14
movq %rbx, %rdi
movl $0x65, %esi
movl $0x2, %edx
callq 0x4130
movl %eax, %r12d
movq %rsp, %rdx
movq %rbx, %rdi
movl $0x3, %esi
callq 0x4380
decl %r12d
cmpl $0x3, %r12d
ja 0x9ccc
movq %rax, %r15
leaq 0x4775(%rip), %rax      # 0xe374
movslq (%rax,%r12,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x8(%rsp), %rcx
movq (%rsp), %rax
movslq 0x2c(%rcx), %rcx
addq %rcx, %rcx
movl $0x90, %r13d
jmp 0x9c69
movq 0x8(%rsp), %rcx
movq (%rsp), %rax
movslq 0x2c(%rcx), %rcx
shlq $0x2, %rcx
movl $0xb0, %r13d
jmp 0x9c69
movq 0x8(%rsp), %rcx
movq (%rsp), %rax
movslq 0x2c(%rcx), %rcx
shlq $0x3, %rcx
movl $0xc0, %r13d
jmp 0x9c69
movq 0x8(%rsp), %rcx
movq (%rsp), %rax
movslq 0x2c(%rcx), %rcx
shlq $0x2, %rcx
movl $0xa0, %r13d
addq 0x9370(%rip), %r13      # 0x12fe0
xorl %edx, %edx
divq %rcx
testq %rdx, %rdx
je 0x9c93
leaq 0x4862(%rip), %rdx      # 0xe4e3
movq %rbx, %rdi
movl $0x3, %esi
callq 0x4110
movslq %eax, %r12
jmp 0x9c96
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq *(%r13)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4320
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4320
movl $0x2, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x4803(%rip), %rdx      # 0xe4d6
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4110
jmp 0x9cbe
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/readwrite.c
// Function: SetBitrateMode
static int SetBitrateMode(lua_State *L)
    {
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    int val = checkbitratemode(L, 2);
    sf.command(sndfile, SFC_SET_BITRATE_MODE, NULL, val);
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x3307(%rip), %rcx      # 0xd097
movl $0x1, %esi
xorl %edx, %edx
callq 0x4400
movq %rax, %r14
movq %rbx, %rdi
movl $0xc, %esi
movl $0x2, %edx
callq 0x4130
movq 0x9228(%rip), %r8       # 0x12fe0
movq %r14, %rdi
movl $0x1305, %esi           # imm = 0x1305
xorl %edx, %edx
movl %eax, %ecx
callq *0x40(%r8)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/readwrite.c
// Function: GetBitrateMode
static int GetBitrateMode(lua_State *L)
    {
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    int val = sf.command(sndfile, SFC_GET_BITRATE_MODE, NULL, 0);
    pushbitratemode(L, val);
    return 1;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x32ba(%rip), %rcx      # 0xd097
movl $0x1, %esi
xorl %edx, %edx
callq 0x4400
movq 0x91f0(%rip), %r8       # 0x12fe0
movq %rax, %rdi
movl $0x1304, %esi           # imm = 0x1304
xorl %edx, %edx
xorl %ecx, %ecx
callq *0x40(%r8)
movq %rbx, %rdi
movl $0xc, %esi
movl %eax, %edx
callq 0x4120
movl $0x1, %eax
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/sndfile.c
// Function: GetFileinfo
static int GetFileinfo(lua_State *L)
    {
    ud_t *ud;
    sndfile_t sndfile = checksndfile(L, 1, &ud);
    update_sfinfo(L, sndfile, ud);
    pushinfo(L, &ud->sfinfo);
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x3155(%rip), %rcx      # 0xd097
movq %rsp, %r14
movl $0x1, %esi
movq %r14, %rdx
callq 0x4400
movq (%r14), %rdx
movq 0x9084(%rip), %r8       # 0x12fe0
addq $0x20, %rdx
movq %rax, %rdi
movl $0x1002, %esi           # imm = 0x1002
movl $0x20, %ecx
callq *0x40(%r8)
movq (%r14), %rsi
addq $0x20, %rsi
movq %rbx, %rdi
callq 0x43b0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/sndfile.c
// Function: GetFormat
static int GetFormat(lua_State *L)
    {
    ud_t *ud;
    sndfile_t sndfile = checksndfile(L, 1, &ud);
    update_sfinfo(L, sndfile, ud);
    pushformat(L, ud->sfinfo.format & SF_FORMAT_TYPEMASK);
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x30fc(%rip), %rcx      # 0xd097
movq %rsp, %r14
movl $0x1, %esi
movq %r14, %rdx
callq 0x4400
movq (%r14), %rdx
movq 0x902b(%rip), %r8       # 0x12fe0
addq $0x20, %rdx
movq %rax, %rdi
movl $0x1002, %esi           # imm = 0x1002
movl $0x20, %ecx
callq *0x40(%r8)
movq (%r14), %rax
movl $0xfff0000, %edx        # imm = 0xFFF0000
andl 0x30(%rax), %edx
movq %rbx, %rdi
movl $0x1, %esi
callq 0x4120
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/sndfile.c
// Function: GetSubformat
static int GetSubformat(lua_State *L)
    {
    ud_t *ud;
    sndfile_t sndfile = checksndfile(L, 1, &ud);
    update_sfinfo(L, sndfile, ud);
    pushsubformat(L, ud->sfinfo.format & SF_FORMAT_SUBMASK);
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x309a(%rip), %rcx      # 0xd097
movq %rsp, %r14
movl $0x1, %esi
movq %r14, %rdx
callq 0x4400
movq (%r14), %rdx
movq 0x8fc9(%rip), %r8       # 0x12fe0
addq $0x20, %rdx
movq %rax, %rdi
movl $0x1002, %esi           # imm = 0x1002
movl $0x20, %ecx
callq *0x40(%r8)
movq (%r14), %rax
movzwl 0x30(%rax), %edx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4120
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/sndfile.c
// Function: GetEndianness
static int GetEndianness(lua_State *L)
    {
    ud_t *ud;
    sndfile_t sndfile = checksndfile(L, 1, &ud);
    update_sfinfo(L, sndfile, ud);
    pushendianness(L, ud->sfinfo.format & SF_FORMAT_ENDMASK);
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x303c(%rip), %rcx      # 0xd097
movq %rsp, %r14
movl $0x1, %esi
movq %r14, %rdx
callq 0x4400
movq (%r14), %rdx
movq 0x8f6b(%rip), %r8       # 0x12fe0
addq $0x20, %rdx
movq %rax, %rdi
movl $0x1002, %esi           # imm = 0x1002
movl $0x20, %ecx
callq *0x40(%r8)
movq (%r14), %rax
movl $0x30000000, %edx       # imm = 0x30000000
andl 0x30(%rax), %edx
movq %rbx, %rdi
movl $0x3, %esi
callq 0x4120
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/sndfile.c
// Function: GetSeekable
static int GetSeekable(lua_State *L)
    {
    ud_t *ud;
    sndfile_t sndfile = checksndfile(L, 1, &ud);
    update_sfinfo(L, sndfile, ud);
    lua_pushboolean(L, ud->sfinfo.seekable);
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x2e1d(%rip), %rcx      # 0xd097
movq %rsp, %r14
movl $0x1, %esi
movq %r14, %rdx
callq 0x4400
movq (%r14), %rdx
movq 0x8d4c(%rip), %r8       # 0x12fe0
addq $0x20, %rdx
movq %rax, %rdi
movl $0x1002, %esi           # imm = 0x1002
movl $0x20, %ecx
callq *0x40(%r8)
movq (%r14), %rax
movl 0x38(%rax), %esi
movq %rbx, %rdi
callq 0x4550
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/sndfile.c
// Function: SetString
static int SetString(lua_State *L)
    {
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    int str_type = checkstringtype(L, 2);
    const char *str = luaL_checkstring(L, 3);
    if(sf.set_string(sndfile, str_type, str))
        return sndfileerror(L, sndfile);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x2db4(%rip), %rcx      # 0xd097
movl $0x1, %esi
xorl %edx, %edx
callq 0x4400
movq %rax, %r14
movq %rbx, %rdi
movl $0x4, %esi
movl $0x2, %edx
callq 0x4130
movl %eax, %ebp
movq %rbx, %rdi
movl $0x3, %esi
xorl %edx, %edx
callq 0x4380
movq 0x8cc4(%rip), %rcx      # 0x12fe0
movq %r14, %rdi
movl %ebp, %esi
movq %rax, %rdx
callq *0x58(%rcx)
testl %eax, %eax
je 0xa33a
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x4340
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/sndfile.c
// Function: GetString
static int GetString(lua_State *L)
    {
    int str_type = checkstringtype(L, 2);
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    const char *str = sf.get_string(sndfile, str_type);
    if(!str) return 0;
    lua_pushstring(L, str);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x4, %esi
movl $0x2, %edx
callq 0x4130
movl %eax, %ebp
leaq 0x2d37(%rip), %rcx      # 0xd097
xorl %r14d, %r14d
movq %rbx, %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x4400
movq 0x8c67(%rip), %rcx      # 0x12fe0
movq %rax, %rdi
movl %ebp, %esi
callq *0x60(%rcx)
testq %rax, %rax
je 0xa397
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4780
movl $0x1, %r14d
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/sndfile.c
// Function: GetEmbedFileInfo
static int GetEmbedFileInfo (lua_State *L)
    {
    SF_EMBED_FILE_INFO info;
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    if(sf.command(sndfile, SFC_GET_EMBED_FILE_INFO, &info, sizeof(info)) != 0)
        return sndfileerror(L, sndfile);
    lua_pushinteger(L, info.offset);
    lua_pushinteger(L, info.length);
    return 2;
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x2ce7(%rip), %rcx      # 0xd097
movl $0x1, %esi
xorl %edx, %edx
callq 0x4400
movq %rax, %r14
movq 0x8c1a(%rip), %rax      # 0x12fe0
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
movl $0x10b0, %esi           # imm = 0x10B0
movl $0x10, %ecx
callq *0x40(%rax)
testl %eax, %eax
je 0xa3ec
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4340
jmp 0xa40b
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x4320
movq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x4320
movl $0x2, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/sndfile.c
// Function: freesndfile
static int freesndfile(lua_State *L, ud_t *ud)
    {
    int ec;
    sndfile_t sndfile = (sndfile_t)ud->handle;
    chunknode_t *chunklist = ud->chunklist;
    if(!freeuserdata(L, ud)) return 0;
    TRACE_DELETE(sndfile, "sndfile");
    ec = sf.close(sndfile);
    freechunks(L, chunklist);
    if(ec != 0) 
        return luaL_error(L, sf.error_number(ec));
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq (%rsi), %r15
movq 0x40(%rsi), %r14
callq 0x4720
testl %eax, %eax
je 0xa698
movq 0x89b5(%rip), %rax      # 0x12ff8
cmpl $0x0, (%rax)
je 0xa659
leaq 0x3f6e(%rip), %rdi      # 0xe5bd
movq %r15, %rsi
xorl %eax, %eax
callq 0x4290
movq 0x8980(%rip), %r12      # 0x12fe0
movq %r15, %rdi
callq *0x108(%r12)
movl %eax, %ebp
movq %rbx, %rdi
movq %r14, %rsi
callq 0x47b0
testl %ebp, %ebp
je 0xa698
movl %ebp, %edi
callq *0x28(%r12)
movq %rbx, %rdi
movq %rax, %rsi
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x46c0
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/structs.c
// Function: moonsndfile_pushinfo
int pushinfo(lua_State *L, SF_INFO *p)
    {
    lua_newtable(L);
    lua_pushinteger(L, p->format); lua_setfield(L, -2, "code");
    pushformat(L, FORMAT(p->format)); lua_setfield(L, -2, "format");
    pushsubformat(L, SUBFORMAT(p->format)); lua_setfield(L, -2, "subformat");
    pushendianness(L, ENDIANNESS(p->format)); lua_setfield(L, -2, "endianness");
    lua_pushinteger(L, p->frames); lua_setfield(L, -2, "frames");
    lua_pushinteger(L, p->samplerate); lua_setfield(L, -2, "samplerate");
    lua_pushinteger(L, p->channels); lua_setfield(L, -2, "channels");
    lua_pushinteger(L, p->sections); lua_setfield(L, -2, "sections");
    lua_pushboolean(L, p->seekable); lua_setfield(L, -2, "seekable");
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
movslq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x4320
leaq 0x3c98(%rip), %rdx      # 0xe637
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movl $0xfff0000, %edx        # imm = 0xFFF0000
andl 0x10(%r14), %edx
movq %rbx, %rdi
movl $0x1, %esi
callq 0x4120
leaq 0x344b(%rip), %rdx      # 0xde14
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movzwl 0x10(%r14), %edx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4120
leaq 0x3c64(%rip), %rdx      # 0xe653
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movl $0x30000000, %edx       # imm = 0x30000000
andl 0x10(%r14), %edx
movq %rbx, %rdi
movl $0x3, %esi
callq 0x4120
leaq 0x3475(%rip), %rdx      # 0xde8e
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x4320
leaq 0x3ac6(%rip), %rdx      # 0xe4fe
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movslq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x4320
leaq 0x2824(%rip), %rdx      # 0xd27c
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movslq 0xc(%r14), %rsi
movq %rbx, %rdi
callq 0x4320
leaq 0x2745(%rip), %rdx      # 0xd1bd
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movslq 0x14(%r14), %rsi
movq %rbx, %rdi
callq 0x4320
leaq 0x3a6d(%rip), %rdx      # 0xe505
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movl 0x18(%r14), %esi
movq %rbx, %rdi
callq 0x4550
leaq 0x3a56(%rip), %rdx      # 0xe50e
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/structs.c
// Function: moonsndfile_pushformatinfo
int pushformatinfo(lua_State *L, SF_FORMAT_INFO *p)
    {
    lua_newtable(L);
    pushformat(L, p->format); lua_setfield(L, -2, "format");
    lua_pushinteger(L, p->format); lua_setfield(L, -2, "code");
    lua_pushstring(L, p->name); lua_setfield(L, -2, "name");
    lua_pushstring(L, p->extension); lua_setfield(L, -2, "extension");
    GetSubFormats(L, p->format); lua_setfield(L, -2, "subformats"); 
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorl %r12d, %r12d
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
movl (%r14), %edx
movq %rbx, %rdi
movl $0x1, %esi
callq 0x4120
leaq 0x330b(%rip), %rdx      # 0xde14
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movslq (%r14), %rsi
movq %rbx, %rdi
callq 0x4320
leaq 0x3b0f(%rip), %rdx      # 0xe637
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x4780
leaq 0x3d5f(%rip), %rdx      # 0xe8a7
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x4780
leaq 0x3b33(%rip), %rdx      # 0xe69b
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movl (%r14), %ebp
movq 0x8461(%rip), %r13      # 0x12fe0
leaq 0xc(%rsp), %r14
xorl %edi, %edi
movl $0x1032, %esi           # imm = 0x1032
movq %r14, %rdx
movl $0x4, %ecx
callq *0x40(%r13)
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x40(%rsp)
movl $0x1, 0x3c(%rsp)
cmpl $0x0, (%r14)
jle 0xac44
andl $0xfff0000, %ebp        # imm = 0xFFF0000
leaq 0x10(%rsp), %r14
xorl %r15d, %r15d
movl %r15d, 0x10(%rsp)
xorl %edi, %edi
movl $0x1033, %esi           # imm = 0x1033
movq %r14, %rdx
movl $0x18, %ecx
callq *0x40(%r13)
movl 0x10(%rsp), %eax
orl %ebp, %eax
movl %eax, 0x40(%rsp)
leaq 0x30(%rsp), %rdi
callq *0x48(%r13)
testl %eax, %eax
je 0xac3a
xorl %edi, %edi
movl $0x1028, %esi           # imm = 0x1028
movq %r14, %rdx
movl $0x18, %ecx
callq *0x40(%r13)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4330
incl %r12d
movslq %r12d, %rdx
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4420
incl %r15d
cmpl 0xc(%rsp), %r15d
jl 0xabda
leaq 0x3a5a(%rip), %rdx      # 0xe6a5
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movl $0x1, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/structs.c
// Function: moonsndfile_pushsubformatinfo
int pushsubformatinfo(lua_State *L, SF_FORMAT_INFO *p)
    {
    lua_newtable(L);
    pushsubformat(L, p->format); lua_setfield(L, -2, "subformat");
    lua_pushinteger(L, p->format); lua_setfield(L, -2, "code");
    lua_pushstring(L, p->name); lua_setfield(L, -2, "name");
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
movl (%r14), %edx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4120
leaq 0x39bd(%rip), %rdx      # 0xe653
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movslq (%r14), %rsi
movq %rbx, %rdi
callq 0x4320
leaq 0x3982(%rip), %rdx      # 0xe637
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x4780
leaq 0x3bd2(%rip), %rdx      # 0xe8a7
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonsndfile/src/structs.c
// Function: moonsndfile_pushsimpleformat
int pushsimpleformat(lua_State *L, SF_FORMAT_INFO *p)
    {
    lua_newtable(L);
    lua_pushinteger(L, p->format); lua_setfield(L, -2, "code");
    lua_pushstring(L, p->name); lua_setfield(L, -2, "name");
    lua_pushstring(L, p->extension); lua_setfield(L, -2, "extension");
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
movslq (%r14), %rsi
movq %rbx, %rdi
callq 0x4320
leaq 0x3923(%rip), %rdx      # 0xe637
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x4780
leaq 0x3b73(%rip), %rdx      # 0xe8a7
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x4780
leaq 0x3947(%rip), %rdx      # 0xe69b
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4300
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq