LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/ArtifexSoftware[P]mujs/pp.c
// Function: main
int
main(int argc, char **argv)
{
	js_State *J;
	int i;

	if (argc < 2) {
		fprintf(stderr, "usage: mujs-pp [-m | -mm | -s | -c] input.js\n");
		fprintf(stderr, "  -m\tminify output\n");
		fprintf(stderr, "  -mm\tminify output more\n");
		fprintf(stderr, "  -s\tprint syntax tree\n");
		fprintf(stderr, "  -c\tprint bytecode\n");
	}

	J = js_newstate(NULL, NULL, 0);

	for (i = 1; i < argc; ++i) {
		if (!strcmp(argv[i], "-m"))
			format = 0, minify = 1;
		else if (!strcmp(argv[i], "-mm"))
			format = 0, minify = 2;
		else if (!strcmp(argv[i], "-s"))
			format = 1, minify = 0;
		else if (!strcmp(argv[i], "-c"))
			format = 2, minify = 0;
		else
			js_tryppfile(J, argv[i]);
	}

	js_gc(J, 0);
	js_freestate(J);

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
cmpl $0x1, %edi
jle 0x4584
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x141bf
movq %rax, %r14
movslq %ebp, %r13
pushq $0x1
popq %rbp
cmpq %r13, %rbp
jge 0x4561
movq (%rbx,%rbp,8), %r12
movb (%r12), %r15b
cmpb $0x2d, %r15b
jne 0x44d0
cmpb $0x6d, 0x1(%r12)
jne 0x44d0
cmpb $0x0, 0x2(%r12)
je 0x4529
movq %r12, %rdi
leaq 0x1df0b(%rip), %rsi     # 0x223e5
callq 0x4200
testl %eax, %eax
je 0x4516
cmpb $0x2d, %r15b
jne 0x4509
cmpb $0x73, 0x1(%r12)
jne 0x44f9
cmpb $0x0, 0x2(%r12)
je 0x453c
cmpb $0x63, 0x1(%r12)
jne 0x4509
cmpb $0x0, 0x2(%r12)
je 0x4548
movq %r14, %rdi
movq %r12, %rsi
callq 0x45fd
jmp 0x4559
andl $0x0, 0x35e9f(%rip)     # 0x3a3bc
movl $0x2, 0x35e99(%rip)     # 0x3a3c0
jmp 0x4559
andl $0x0, 0x35e8c(%rip)     # 0x3a3bc
movl $0x1, 0x35e86(%rip)     # 0x3a3c0
jmp 0x4559
movl $0x1, 0x35e76(%rip)     # 0x3a3bc
jmp 0x4552
movl $0x2, 0x35e6a(%rip)     # 0x3a3bc
andl $0x0, 0x35e67(%rip)     # 0x3a3c0
incq %rbp
jmp 0x44a9
movq %r14, %rdi
xorl %esi, %esi
callq 0xc162
movq %r14, %rdi
callq 0xc892
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x35a6d(%rip), %r15     # 0x39ff8
movq (%r15), %rcx
leaq 0x1ddc7(%rip), %rdi     # 0x2235c
pushq $0x2d
popq %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
callq 0x4320
movq (%r15), %rcx
leaq 0x1dddc(%rip), %rdi     # 0x2238a
pushq $0x13
popq %rsi
movq %r14, %rdx
callq 0x4320
movq (%r15), %rcx
leaq 0x1dddb(%rip), %rdi     # 0x2239e
pushq $0x19
popq %rsi
movq %r14, %rdx
callq 0x4320
movq (%r15), %rcx
leaq 0x1dde0(%rip), %rdi     # 0x223b8
pushq $0x17
popq %rsi
movq %r14, %rdx
callq 0x4320
movq (%r15), %rcx
leaq 0x1dde3(%rip), %rdi     # 0x223d0
pushq $0x14
popq %rsi
movq %r14, %rdx
callq 0x4320
jmp 0x4495
// File: /workspace/github_c_makefile_star2_O2/ArtifexSoftware[P]mujs/pp.c
// Function: js_tryppfile
static void js_tryppfile(js_State *J, const char *file)
{
	if (js_try(J)) {
		js_report(J, js_trystring(J, -1, "Error"));
		js_pop(J, 1);
		return;
	}
	js_ppfile(J, file);
	js_endtry(J);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0x10e59
movq %rax, %rdi
callq 0x41f0
testl %eax, %eax
je 0x4642
leaq 0x26366(%rip), %rdx     # 0x2a985
pushq $-0x1
popq %rsi
movq %rbx, %rdi
callq 0x13e58
movq %rbx, %rdi
movq %rax, %rsi
callq 0xc886
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x5f25
jmp 0x4655
movq %rbx, %rdi
movq %r14, %rsi
callq 0x465d
movq %rbx, %rdi
callq 0x1158f
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/ArtifexSoftware[P]mujs/pp.c
// Function: js_ppfile
static void js_ppfile(js_State *J, const char *filename)
{
	FILE * volatile f = NULL;
	char * volatile s = NULL;
	int n, t;

	if (js_try(J)) {
		js_free(J, s);
		if (f) fclose(f);
		js_throw(J);
	}

	f = fopen(filename, "rb");
	if (!f) {
		js_error(J, "cannot open file: '%s'", filename);
	}

	if (fseek(f, 0, SEEK_END) < 0) {
		js_error(J, "cannot seek in file: '%s'", filename);
	}

	n = ftell(f);
	if (n < 0) {
		js_error(J, "cannot tell in file: '%s'", filename);
	}

	if (fseek(f, 0, SEEK_SET) < 0) {
		js_error(J, "cannot seek in file: '%s'", filename);
	}

	s = js_malloc(J, n + 1); /* add space for string terminator */
	if (!s) {
		js_error(J, "cannot allocate storage for file contents: '%s'", filename);
	}

	t = fread(s, 1, (size_t)n, f);
	if (t != n) {
		js_error(J, "cannot read data from file: '%s'", filename);
	}

	s[n] = 0; /* zero-terminate string containing file data */

	js_ppstring(J, filename, s);

	js_endtry(J);
	js_free(J, s);
	fclose(f);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorl %eax, %eax
movq %rax, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x10e59
movq %rax, %rdi
callq 0x41f0
testl %eax, %eax
jne 0x4789
leaq 0x1dd54(%rip), %rsi     # 0x223e9
movq %r14, %rdi
callq 0x42a0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0x47b0
movq 0x8(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
pushq $0x2
popq %rdx
callq 0x4270
testl %eax, %eax
js 0x4780
movq 0x8(%rsp), %rdi
callq 0x4210
movq %rax, %r15
testl %r15d, %r15d
js 0x47b9
movl %r15d, %ebp
movq 0x8(%rsp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x4270
testl %eax, %eax
js 0x4780
movl %ebp, %eax
leal 0x1(%rax), %esi
movq %rbx, %rdi
callq 0xc9d0
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x47c2
movq 0x10(%rsp), %rdi
movl %r15d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %r15d
movq 0x8(%rsp), %rcx
pushq $0x1
popq %rsi
movq %r15, %rdx
callq 0x40b0
cmpl %ebp, %eax
jne 0x47cb
movq 0x10(%rsp), %rax
movb $0x0, (%rax,%r15)
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x47df
movq %rbx, %rdi
callq 0x1158f
movq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0xc878
movq 0x8(%rsp), %rdi
callq 0x40f0
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1dc7c(%rip), %rsi     # 0x22403
jmp 0x47d2
movq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0xc878
cmpq $0x0, 0x8(%rsp)
je 0x47a8
movq 0x8(%rsp), %rdi
callq 0x40f0
movq %rbx, %rdi
callq 0x96fc
leaq 0x1dc35(%rip), %rsi     # 0x223ec
jmp 0x47d2
leaq 0x1dc5d(%rip), %rsi     # 0x2241d
jmp 0x47d2
leaq 0x1dc6e(%rip), %rsi     # 0x22437
jmp 0x47d2
leaq 0x1dc95(%rip), %rsi     # 0x22467
xorl %eax, %eax
movq %rbx, %rdi
movq %r14, %rdx
callq 0xb5e4
// File: /workspace/github_c_makefile_star2_O2/ArtifexSoftware[P]mujs/pp.c
// Function: js_ppstring
static void js_ppstring(js_State *J, const char *filename, const char *source)
{
	js_Ast *P;
	js_Function *F;

	if (js_try(J)) {
		jsP_freeparse(J);
		js_throw(J);
	}

	P = jsP_parse(J, filename, source);
	F = jsC_compilescript(J, P, J->default_strict);

	switch (format) {
	case 0:
		jsP_dumpsyntax(J, P);
		break;
	case 1:
		jsP_dumplist(J, P);
		break;
	case 2:
		jsC_dumpfunction(J, F);
		break;
	}

	jsP_freeparse(J);
	js_endtry(J);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x10e59
movq %rax, %rdi
callq 0x41f0
movq %rbx, %rdi
testl %eax, %eax
jne 0x48a6
movq %r15, %rsi
movq %r14, %rdx
callq 0xf7d6
movq %rax, %r14
movl 0x30(%rbx), %edx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x9a95
movl 0x35b95(%rip), %ecx     # 0x3a3bc
cmpl $0x2, %ecx
je 0x4847
movq %r14, %rsi
cmpl $0x1, %ecx
jne 0x4851
testq %r14, %r14
je 0x4890
cmpl $0x0, (%rsi)
je 0x4869
xorl %edi, %edi
callq 0x5ce3
jmp 0x4870
movq %rax, %rdi
callq 0x48b3
jmp 0x4890
testq %r14, %r14
je 0x487f
cmpl $0x0, (%rsi)
je 0x4877
xorl %edi, %edi
callq 0x4b82
callq 0x5080
jmp 0x487f
xorl %edi, %edi
callq 0x5c67
callq 0x5080
jmp 0x4890
pushq $-0x1
popq %rdi
callq 0x4b32
cmpl $0x2, 0x35b3a(%rip)     # 0x3a3c0
jl 0x4890
pushq $0xa
popq %rdi
callq 0x4040
movq %rbx, %rdi
callq 0xf77d
movq %rbx, %rdi
callq 0x1158f
popq %rbx
popq %r14
popq %r15
retq
callq 0xf77d
movq %rbx, %rdi
callq 0x96fc
// File: /workspace/github_c_makefile_star2_O2/ArtifexSoftware[P]mujs/pp.c
// Function: pstmlist
static void pstmlist(int d, js_Ast *list)
{
	while (list) {
		assert(list->type == AST_LIST);
		pstm(d+1, list->a);
		nl();
		list = list->b;
	}
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
incl %ebp
testq %rbx, %rbx
je 0x4b5c
cmpl $0x0, (%rbx)
jne 0x4b63
movq 0x10(%rbx), %rsi
movl %ebp, %edi
callq 0x4b82
callq 0x5080
movq 0x18(%rbx), %rbx
jmp 0x4b3c
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x1d91e(%rip), %rdi     # 0x22488
leaq 0x1d92e(%rip), %rsi     # 0x2249f
leaq 0x1d92c(%rip), %rcx     # 0x224a4
movl $0x2f3, %edx            # imm = 0x2F3
callq 0x4160
// File: /workspace/github_c_makefile_star2_O2/ArtifexSoftware[P]mujs/pp.c
// Function: pblock
static void pblock(int d, js_Ast *block)
{
	assert(block->type == STM_BLOCK);
	pc('{'); nl();
	pstmlist(d, block->a);
	in(d); pc('}');
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpl $0x47, (%rsi)
jne 0x50ce
movq %rsi, %r14
movl %edi, %ebx
pushq $0x7b
popq %rdi
callq 0x4040
callq 0x5080
movq 0x10(%r14), %rsi
movl %ebx, %edi
callq 0x4b32
movl %ebx, %edi
callq 0x50ed
pushq $0x7d
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4040
leaq 0x1d415(%rip), %rdi     # 0x224ea
leaq 0x1d3c3(%rip), %rsi     # 0x2249f
leaq 0x1d420(%rip), %rcx     # 0x22503
movl $0x23a, %edx            # imm = 0x23A
callq 0x4160
// File: /workspace/github_c_makefile_star2_O2/ArtifexSoftware[P]mujs/pp.c
// Function: pargs
static void pargs(int d, js_Ast *list)
{
	while (list) {
		assert(list->type == AST_LIST);
		pexpi(d, COMMA, list->a);
		list = list->b;
		if (list)
			comma();
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movl %edi, %ebp
pushq $0xf
popq %r14
testq %rbx, %rbx
je 0x5163
cmpl $0x0, (%rbx)
jne 0x5168
movq 0x10(%rbx), %rdx
movl %ebp, %edi
movl %r14d, %esi
callq 0x527e
movq 0x18(%rbx), %rbx
testq %rbx, %rbx
je 0x513b
callq 0x5c58
jmp 0x513b
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x1d319(%rip), %rdi     # 0x22488
leaq 0x1d329(%rip), %rsi     # 0x2249f
leaq 0x1d484(%rip), %rcx     # 0x22601
movl $0x139, %edx            # imm = 0x139
callq 0x4160
// File: /workspace/github_c_makefile_star2_O2/ArtifexSoftware[P]mujs/pp.c
// Function: pvarlist
static void pvarlist(int d, js_Ast *list)
{
	while (list) {
		assert(list->type == AST_LIST);
		pvar(d, list->a);
		list = list->b;
		if (list)
			comma();
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
pushq $0x3d
popq %r14
testq %rbx, %rbx
je 0x51fc
cmpl $0x0, (%rbx)
jne 0x5226
movq 0x10(%rbx), %r15
cmpl $0x46, (%r15)
jne 0x5207
movq 0x10(%r15), %rsi
movl %ebp, %edi
callq 0x5124
cmpq $0x0, 0x18(%r15)
je 0x51ec
callq 0x5187
movl %r14d, %edi
callq 0x4040
callq 0x5187
movq 0x18(%r15), %rsi
movl %ebp, %edi
callq 0x5124
movq 0x18(%rbx), %rbx
testq %rbx, %rbx
je 0x51a9
callq 0x5c58
jmp 0x51a9
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1d42a(%rip), %rdi     # 0x22638
leaq 0x1d28a(%rip), %rsi     # 0x2249f
leaq 0x1d431(%rip), %rcx     # 0x2264d
movl $0x225, %edx            # imm = 0x225
callq 0x4160
leaq 0x1d25b(%rip), %rdi     # 0x22488
leaq 0x1d26b(%rip), %rsi     # 0x2249f
leaq 0x1d3e0(%rip), %rcx     # 0x2261b
movl $0x230, %edx            # imm = 0x230
callq 0x4160
// File: /workspace/github_c_makefile_star2_O2/ArtifexSoftware[P]mujs/pp.c
// Function: pstmh
static void pstmh(int d, js_Ast *stm)
{
	if (stm->type == STM_BLOCK) {
		sp();
		pblock(d, stm);
	} else {
		nl();
		pstm(d+1, stm);
	}
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
cmpl $0x47, (%rsi)
jne 0x5267
callq 0x5187
movl %ebp, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x5092
callq 0x5080
incl %ebp
movl %ebp, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4b82
// File: /workspace/github_c_makefile_star2_O2/ArtifexSoftware[P]mujs/pp.c
// Function: pstr
static void pstr(const char *s)
{
	static const char *HEX = "0123456789ABCDEF";
	Rune c;
	pc(minify ? '\'' : '"');
	while (*s) {
		s += chartorune(&c, s);
		switch (c) {
		case '\'': ps("\\'"); break;
		case '"': ps("\\\""); break;
		case '\\': ps("\\\\"); break;
		case '\b': ps("\\b"); break;
		case '\f': ps("\\f"); break;
		case '\n': ps("\\n"); break;
		case '\r': ps("\\r"); break;
		case '\t': ps("\\t"); break;
		default:
			if (c < ' ' || c > 127) {
				ps("\\u");
				pc(HEX[(c>>12)&15]);
				pc(HEX[(c>>8)&15]);
				pc(HEX[(c>>4)&15]);
				pc(HEX[c&15]);
			} else {
				pc(c); break;
			}
		}
	}
	pc(minify ? '\'' : '"');
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %eax, %eax
cmpl $0x0, 0x349e1(%rip)     # 0x3a3c0
setne %al
leal (%rax,%rax,4), %edi
addl $0x22, %edi
callq 0x4040
leaq 0x4(%rsp), %r14
leaq 0x1cb9b(%rip), %r15     # 0x22594
leaq 0x1c900(%rip), %r12     # 0x22300
leaq 0x1cbaa(%rip), %r13     # 0x225b1
leaq 0x1cba9(%rip), %rbp     # 0x225b7
cmpb $0x0, (%rbx)
je 0x5b41
movq %r14, %rdi
movq %rbx, %rsi
callq 0x14403
cltq
addq %rax, %rbx
movl 0x4(%rsp), %edi
leal -0x8(%rdi), %eax
cmpl $0x5, %eax
ja 0x5a4a
movslq (%r12,%rax,4), %rax
addq %r12, %rax
jmpq *%rax
leaq 0x1cb6b(%rip), %rdi     # 0x225ae
callq 0x5115
jmp 0x5a0e
cmpl $0x22, %edi
je 0x5b26
cmpl $0x5c, %edi
je 0x5b15
cmpl $0x27, %edi
jne 0x5a6f
leaq 0x1cb3d(%rip), %rdi     # 0x225a5
callq 0x5115
jmp 0x5a0e
leal -0x80(%rdi), %eax
cmpl $-0x61, %eax
ja 0x5b37
leaq 0x1cb3b(%rip), %rdi     # 0x225bd
callq 0x5115
movl 0x4(%rsp), %eax
shrl $0xc, %eax
andl $0xf, %eax
movsbl (%rax,%r15), %edi
callq 0x4040
movl 0x4(%rsp), %eax
shrl $0x8, %eax
andl $0xf, %eax
movsbl (%rax,%r15), %edi
callq 0x4040
movl 0x4(%rsp), %eax
shrl $0x4, %eax
andl $0xf, %eax
movsbl (%rax,%r15), %edi
callq 0x4040
movl 0x4(%rsp), %eax
andl $0xf, %eax
movsbl (%rax,%r15), %edi
callq 0x4040
jmp 0x5a0e
movq %r13, %rdi
callq 0x5115
jmp 0x5a0e
leaq 0x1cacd(%rip), %rdi     # 0x225ba
callq 0x5115
jmp 0x5a0e
movq %rbp, %rdi
callq 0x5115
jmp 0x5a0e
leaq 0x1caa9(%rip), %rdi     # 0x225b4
callq 0x5115
jmp 0x5a0e
leaq 0x1ca8f(%rip), %rdi     # 0x225ab
callq 0x5115
jmp 0x5a0e
leaq 0x1ca7b(%rip), %rdi     # 0x225a8
callq 0x5115
jmp 0x5a0e
callq 0x4040
jmp 0x5a0e
xorl %eax, %eax
cmpl $0x0, 0x34876(%rip)     # 0x3a3c0
setne %al
leal (%rax,%rax,4), %edi
addl $0x22, %edi
callq 0x4040
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ArtifexSoftware[P]mujs/pp.c
// Function: pregexp
static void pregexp(const char *prog, int flags)
{
	pc('/');
	while (*prog) {
		if (*prog == '/')
			pc('\\');
		pc(*prog);
		++prog;
	}
	pc('/');
	if (flags & JS_REGEXP_G) pc('g');
	if (flags & JS_REGEXP_I) pc('i');
	if (flags & JS_REGEXP_M) pc('m');
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
pushq $0x2f
popq %rdi
callq 0x4040
pushq $0x5c
popq %rbp
movzbl (%r14), %eax
cmpl $0x2f, %eax
je 0x5b8a
testl %eax, %eax
jne 0x5b94
jmp 0x5ba1
movl %ebp, %edi
callq 0x4040
movb (%r14), %al
movsbl %al, %edi
callq 0x4040
incq %r14
jmp 0x5b7b
pushq $0x2f
popq %rdi
callq 0x4040
testb $0x1, %bl
je 0x5bb6
pushq $0x67
popq %rdi
callq 0x4040
testb $0x2, %bl
je 0x5bc3
pushq $0x69
popq %rdi
callq 0x4040
testb $0x4, %bl
jne 0x5bcd
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x6d
popq %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x4040
// File: /workspace/github_c_makefile_star2_O2/ArtifexSoftware[P]mujs/pp.c
// Function: pbin
static void pbin(int d, int p, js_Ast *exp, const char *op)
{
	pexpi(d, p, exp->a);
	sp();
	ps(op);
	sp();
	pexpi(d, p, exp->b);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movl %edi, %r15d
movq 0x10(%rdx), %rdx
callq 0x527e
callq 0x5187
movq %rbx, %rdi
callq 0x5115
callq 0x5187
movq 0x18(%r14), %rdx
movl %r15d, %edi
movl %ebp, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x527e
// File: /workspace/github_c_makefile_star2_O2/ArtifexSoftware[P]mujs/pp.c
// Function: sblock
static void sblock(int d, js_Ast *list)
{
	ps("[\n");
	in(d+1);
	while (list) {
		assert(list->type == AST_LIST);
		snode(d+1, list->a);
		list = list->b;
		if (list) {
			nl();
			in(d+1);
		}
	}
	nl(); in(d); pc(']');
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movl %edi, %ebx
leaq 0x1c9fe(%rip), %rdi     # 0x22675
callq 0x5115
leal 0x1(%rbx), %ebp
movl %ebp, %edi
callq 0x50ed
testq %r14, %r14
je 0x5cac
cmpl $0x0, (%r14)
jne 0x5cc4
movq 0x10(%r14), %rsi
movl %ebp, %edi
callq 0x5ce3
movq 0x18(%r14), %r14
testq %r14, %r14
je 0x5c86
callq 0x5080
jmp 0x5c7f
callq 0x5080
movl %ebx, %edi
callq 0x50ed
pushq $0x5d
popq %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x4040
leaq 0x1c7bd(%rip), %rdi     # 0x22488
leaq 0x1c7cd(%rip), %rsi     # 0x2249f
leaq 0x1c99f(%rip), %rcx     # 0x22678
movl $0x344, %edx            # imm = 0x344
callq 0x4160
// File: /workspace/github_c_makefile_star2_O2/begriffs[P]pthread-test/alarm_mutex.c
// Function: alarm_thread
void *alarm_thread(void *_arg)
{
	struct alarm *a;
	int sleep_time;
	time_t now;

	(void)_arg; /* unused */

	while (1)
	{
		pthread_mutex_lock(&g_alarm_mutex);
		a = g_alarm_list;

		if (!a)
			sleep_time = 1;
		else
		{
			g_alarm_list = a->link;
			now = time(NULL);
			sleep_time = MAX(0, a->time - now);
		}
		pthread_mutex_unlock(&g_alarm_mutex);

		if (sleep_time > 0)
		{
			/* this kind of sucks because it will miss out on any
			 * alarms created during the sleep which expire sooner */
			sleep(sleep_time);
		}
		else
			sched_yield(); /* give main() a chance */

		if (a)
		{
			printf("(%d) %s\n", a->seconds, a->message);
			free(a);
		}
	}

	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x2e8a(%rip), %rbx      # 0x4098
pushq $0x1
popq %rbp
leaq 0xdec(%rip), %r14       # 0x2004
xorl %r13d, %r13d
movq %rbx, %rdi
callq 0x10f0
movq 0x2e96(%rip), %r15      # 0x40c0
movl %ebp, %r12d
testq %r15, %r15
je 0x1251
movq (%r15), %rax
movq %rax, 0x2e84(%rip)      # 0x40c0
xorl %edi, %edi
callq 0x1090
movq 0x8(%r15), %r12
subq %rax, %r12
testq %r12, %r12
cmovlel %r13d, %r12d
movq %rbx, %rdi
callq 0x10a0
testl %r12d, %r12d
jle 0x1268
movl %r12d, %edi
callq 0x10e0
jmp 0x126d
callq 0x1070
testq %r15, %r15
je 0x121b
movl 0x10(%r15), %esi
leaq 0x14(%r15), %rdx
movq %r14, %rdi
xorl %eax, %eax
callq 0x1050
movq %r15, %rdi
callq 0x1030
jmp 0x121b
// File: /workspace/github_c_makefile_star2_O2/begriffs[P]pthread-test/alarm_mutex.c
// Function: main
int main(void)
{
	int status;
	char line[128];
	struct alarm *a, *next, **last;
	pthread_t thread;

	status = pthread_create(&thread, NULL, alarm_thread, NULL);
	while (printf("Alarm> ") && fgets(line, sizeof(line), stdin))
	{
		if (strlen(line) <= 1)
			continue;

		if (!(a = malloc(sizeof(*a))))
		{
			fputs("Failed to allocate alarm\n", stderr);
			return EXIT_FAILURE;
		}
		if (sscanf(line, "%d %64[^\n]", &a->seconds, a->message) < 2)
		{
			fputs("Bad command\n", stderr);
			free(a);
		}
		else
		{
			pthread_mutex_lock(&g_alarm_mutex);
			a->time = time(NULL) + a->seconds;

			/* insert alarm into ordered list */
			last = &g_alarm_list;
			next = *last;
			while (next)
			{
				if (next->time >= a->time)
				{
					a->link = next;
					*last = a;
					break;
				}
				last = &next->link;
				next = next->link;
			}
			/* if hit end of list */
			if (!next)
			{
				*last = a;
				a->link = NULL;
			}
			pthread_mutex_unlock(&g_alarm_mutex);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
leaq -0xaa(%rip), %rdx       # 0x11fc
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x10d0
leaq 0xd52(%rip), %r14       # 0x200d
movq 0x2d16(%rip), %r12      # 0x3fd8
leaq 0x10(%rsp), %r15
leaq 0xd61(%rip), %r13       # 0x202f
leaq 0x2dc3(%rip), %rbp      # 0x4098
movq %r14, %rdi
xorl %eax, %eax
callq 0x1050
testl %eax, %eax
je 0x13b1
movq (%r12), %rdx
movq %r15, %rdi
movl $0x80, %esi
callq 0x1080
testq %rax, %rax
je 0x13b1
movq %r15, %rdi
callq 0x1040
cmpq $0x2, %rax
jb 0x12d5
pushq $0x58
popq %rdi
callq 0x10b0
testq %rax, %rax
je 0x13c5
movq %rax, %rbx
leaq 0x10(%rax), %rdx
movq %rax, %rcx
addq $0x14, %rcx
movq %r15, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x10c0
cmpl $0x1, %eax
jle 0x138e
movq %rbp, %rdi
callq 0x10f0
xorl %edi, %edi
callq 0x1090
movslq 0x10(%rbx), %rcx
addq %rax, %rcx
movq %rcx, 0x8(%rbx)
leaq 0x2d5f(%rip), %rdx      # 0x40c0
movq %rdx, %rax
movq (%rdx), %rdx
testq %rdx, %rdx
je 0x137a
cmpq %rcx, 0x8(%rdx)
jl 0x1361
movq %rdx, (%rbx)
movq %rbx, (%rax)
jmp 0x1381
movq %rbx, (%rax)
andq $0x0, (%rbx)
movq %rbp, %rdi
callq 0x10a0
jmp 0x12d5
movq 0x2c63(%rip), %rax      # 0x3ff8
movq (%rax), %rsi
leaq 0xc9b(%rip), %rdi       # 0x203a
callq 0x1060
movq %rbx, %rdi
callq 0x1030
jmp 0x12d5
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2c2c(%rip), %rax      # 0x3ff8
movq (%rax), %rsi
leaq 0xc3f(%rip), %rdi       # 0x2015
callq 0x1060
pushq $0x1
popq %rax
jmp 0x13b3
// File: /workspace/github_c_makefile_star2_O2/fuldaros[P]akb_sources/cc/akb_cc.c
// Function: key
void key(void * str, int len)
{
	unsigned char tmp, * ptr = (unsigned char *)str;
	while (len > 0) {
		do {
			tmp = stte[indx];
			kndx += tmp;
			kndx += ptr[(int)indx % len];
			stte[indx] = stte[kndx];
			stte[kndx] = tmp;
		} while (++indx);
		ptr += 256;
		len -= 256;
	}
}

// Assembly:
movzbl 0x6f5d(%rip), %ecx      # 0xb312
movb 0x6f54(%rip), %r8b      # 0xb310
leaq 0x6f5d(%rip), %r9       # 0xb320
testl %esi, %esi
jle 0x440e
movb (%rcx,%r9), %r10b
addb %r10b, %r8b
movl %ecx, %eax
xorl %edx, %edx
divl %esi
addb (%rdi,%rdx), %r8b
movzbl %r8b, %eax
movb (%rax,%r9), %dl
movb %dl, (%rcx,%r9)
movb %r10b, (%rax,%r9)
incq %rcx
testb %cl, %cl
jne 0x43c7
movb $0x0, 0x6f1c(%rip)      # 0xb312
movb %r8b, 0x6f13(%rip)      # 0xb310
addq $0x100, %rdi            # imm = 0x100
addl $0xffffff00, %esi       # imm = 0xFFFFFF00
xorl %ecx, %ecx
jmp 0x43c3
retq
// File: /workspace/github_c_makefile_star2_O2/fuldaros[P]akb_sources/cc/akb_cc.c
// Function: arc4
void arc4(void * str, int len)
{
	unsigned char tmp, * ptr = (unsigned char *)str;
	while (len > 0) {
		indx++;
		tmp = stte[indx];
		jndx += tmp;
		stte[indx] = stte[jndx];
		stte[jndx] = tmp;
		tmp += stte[indx];
		*ptr ^= stte[tmp];
		ptr++;
		len--;
	}
}

// Assembly:
movb 0x6efd(%rip), %al       # 0xb312
movb 0x6ef6(%rip), %cl       # 0xb311
incb %al
leaq 0x6efc(%rip), %rdx      # 0xb320
testl %esi, %esi
jle 0x4466
movb %al, 0x6ee4(%rip)       # 0xb312
movzbl %al, %eax
movb (%rax,%rdx), %r8b
addb %r8b, %cl
movb %cl, 0x6ed3(%rip)       # 0xb311
movzbl %cl, %r9d
movb (%r9,%rdx), %r10b
movb %r10b, (%rax,%rdx)
movb %r8b, (%r9,%rdx)
addb (%rax,%rdx), %r8b
movzbl %r8b, %r8d
movb (%r8,%rdx), %r8b
xorb %r8b, (%rdi)
incq %rdi
decl %esi
incb %al
jmp 0x4424
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x44ea
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 0x43ae
xorl %eax, %eax
jmp 0x44ed
pushq $-0x1
popq %rax
addq $0x128, %rsp            # imm = 0x128
retq
// File: /workspace/github_c_makefile_star2_O2/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
subq $0x18, %rsp
movq %rdi, %rbx
movl $0x1000, %edi           # imm = 0x1000
callq 0x4170
testq %rax, %rax
je 0x4972
movq %rax, %r12
leaq 0x1e86(%rip), %rsi      # 0x671d
movq %rbx, %rdi
callq 0x41c0
xorl %r14d, %r14d
testq %rax, %rax
je 0x4975
movq %rax, %r13
movq %rbx, 0x10(%rsp)
pushq $0x1
popq %rbp
xorl %ecx, %ecx
movl %ecx, %r15d
leal 0x1000(%r15), %eax
movslq %eax, %rsi
movq %r12, %rdi
callq 0x41b0
testq %rax, %rax
je 0x4975
movq %rax, %r12
movslq %r15d, %rbx
movq %rax, %rdi
addq %rbx, %rdi
movl $0x1000, %edx           # imm = 0x1000
movq %rbp, %rsi
movq %r13, %rcx
callq 0x4070
leal (%r15,%rax), %ecx
testl %eax, %eax
jne 0x48b8
movq %r13, %rdi
callq 0x4090
leal 0x1(%r15), %eax
movslq %eax, %rsi
movq %r12, %rdi
callq 0x41b0
testq %rax, %rax
je 0x4972
movq %rax, %r14
movb $0x0, (%rax,%rbx)
cvtsi2sd %r15d, %xmm0
movsd %xmm0, 0x8(%rsp)
xorl %edi, %edi
callq 0x41e0
cvtsi2sd %eax, %xmm0
mulsd 0x1705(%rip), %xmm0     # 0x6040
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x4975
movq 0x66aa(%rip), %rcx      # 0xaff8
movq (%rcx), %rdi
leaq 0x1a8c(%rip), %rsi      # 0x63e4
leaq 0x17a9(%rip), %rdx      # 0x6108
movl %eax, %ecx
movq 0x10(%rsp), %r8
movl %r15d, %r9d
xorl %eax, %eax
callq 0x4140
jmp 0x4975
xorl %r14d, %r14d
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/fuldaros[P]akb_sources/cc/akb_cc.c
// Function: rand_mod
unsigned rand_mod(unsigned mod)
{
	/* Without skew */
	unsigned rnd, top = RAND_MAX;
	top -= top % mod;
	while (top <= (rnd = rand()))
		continue;
	/* Using high-order bits. */
	rnd = 1.0*mod*rnd/(1.0+top);
	return rnd;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edi, %ebp
movl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %edx, %edx
divl %edi
movl %edx, %ebx
xorl %edx, %r14d
callq 0x4250
cmpl %eax, %r14d
jbe 0x49a1
movl %ebp, %ecx
cvtsi2sd %rcx, %xmm0
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
movl $0x80000000, %eax       # imm = 0x80000000
subl %ebx, %eax
cvtsi2sd %rax, %xmm0
divsd %xmm0, %xmm1
cvttsd2si %xmm1, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
xorl %r12d, %r12d
movl $0x0, %r14d
testl %edx, %edx
je 0x4a08
movl %edx, %edi
callq 0x4987
movl %eax, %r14d
addl %r15d, %r14d
cmpl %r14d, %r12d
je 0x4a38
callq 0x49d4
movb %al, (%rbx)
testl %ebp, %ebp
je 0x4a30
movl %eax, %r15d
callq 0x4260
movq (%rax), %rax
movsbq %r15b, %rcx
testb $0x8, (%rax,%rcx,2)
je 0x4a10
incl %r12d
incq %rbx
jmp 0x4a0b
testl %ebp, %ebp
je 0x4a3f
movb $0x0, (%rbx)
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
movq %rdi, %r14
addl %edx, %ecx
addl %ecx, %r8d
movslq %edx, %r13
testl %r8d, %r8d
movl $0x0, %ebp
movl %r8d, 0xc(%rsp)
cmovgl %r8d, %ebp
movslq %ecx, %r12
subq %r13, %rsi
movq %rsi, 0x10(%rsp)
xorl %r15d, %r15d
cmpq %r15, %rbp
je 0x4aee
movl %r15d, %ebx
andl $0xf, %ebx
jne 0x4aa5
leaq 0x1a67(%rip), %rdi      # 0x64fe
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
movq %r14, %rcx
callq 0x4230
cmpq %r13, %r15
setl %al
cmpq %r12, %r15
setge %cl
orb %al, %cl
jne 0x4ac0
movq 0x10(%rsp), %rax
movb (%rax,%r15), %al
jmp 0x4ac5
callq 0x49d4
movzbl %al, %edx
movq %r14, %rdi
leaq 0x1a30(%rip), %rsi      # 0x6502
xorl %eax, %eax
callq 0x4140
cmpl $0xf, %ebx
jne 0x4ae9
pushq $0x22
popq %rdi
movq %r14, %rsi
callq 0x40f0
incq %r15
jmp 0x4a83
testb $0xf, %bpl
je 0x4aff
pushq $0x22
popq %rdi
movq %r14, %rsi
callq 0x40f0
movl 0xc(%rsp), %eax
addl %eax, 0x6947(%rip)      # 0xb450
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x4
popq %rcx
movl %ebx, %eax
cltd
idivl %ecx
leal 0x1(%rax), %ebp
movl %ebp, %edi
callq 0x4987
movl %eax, %r12d
movl %ebp, %edi
callq 0x4987
movl %eax, 0x4(%rsp)
movl 0x68f2(%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 0x1a66(%rip), %rbp      # 0x65e7
cmovneq %r14, %rbp
addl %r12d, %r13d
pushq $0xa
popq %r14
movl %r14d, %edi
movq %r15, %rsi
callq 0x40f0
movq %r15, %rdi
leaq 0x1967(%rip), %rsi      # 0x6508
movq 0x8(%rsp), %r12
movq %r12, %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x4140
movl %r14d, %edi
movq %r15, %rsi
callq 0x40f0
movl 0x688c(%rip), %r8d      # 0xb450
addl %r13d, %r8d
leaq 0x194f(%rip), %rsi      # 0x651d
movq %r15, %rdi
movq %r12, %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 0x4a4b
// File: /workspace/github_c_makefile_star2_O2/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 0xac0(%rip), %rdi       # 0x66fc
callq 0x4110
movl %ebp, %edi
movq %rbx, %rsi
callq 0x56b5
movq (%rbx), %rdi
callq 0x41d0
pushq $0x1
popq %rdi
callq 0x4220
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/chunk.c
// Function: moonsndfile_freechunks
void freechunks(lua_State *L, chunknode_t *list)
/* free all cunks in ud->chunklist */
    {
    chunknode_t *pp, *p = list;
    while(p)
        {
        pp = p;
        p = p->next;
        freechunk(L, pp);
        }
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rsi, %rsi
je 0x48d8
movq (%rsi), %r14
movq %rbx, %rdi
callq 0x4240
movq %r14, %rsi
jmp 0x48c3
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/chunk.c
// Function: SetChunk
static int SetChunk(lua_State *L)
    {
    ud_t *ud;
    sndfile_t sndfile = checksndfile(L, 1, &ud);
    chunknode_t *chunknode = checkchunk(L, 2);
    
    CheckPfn(L, set_chunk, 1, 0, 26);
    if(sf.set_chunk(sndfile, &chunknode->chunk) != 0)
        {
        freechunk(L, chunknode);
        return sndfileerror(L, sndfile);
        }
    
    insertchunk(ud, chunknode); 
    /* The chunk will be released after file closure, as requested in sndfile.h:
     * ("The chunk_info->data pointer must be valid until the file is closed.")
     */
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x7796(%rip), %rcx      # 0xc097
pushq $0x1
popq %rsi
leaq 0x8(%rsp), %rdx
callq 0x4400
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x4500
movq %rax, %r15
movq 0xd6ba(%rip), %rax      # 0x11fe0
movq 0x118(%rax), %rax
testq %rax, %rax
je 0x495a
movq %r15, %rsi
addq $0x8, %rsi
movq %r14, %rdi
callq *%rax
testl %eax, %eax
je 0x497e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4240
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4340
jmp 0x49ac
pushq $0x1
popq %rdi
pushq $0x1a
popq %rdx
xorl %esi, %esi
callq 0x4440
testl %eax, %eax
je 0x4992
leaq 0x776e(%rip), %rsi      # 0xc0e0
movq %rbx, %rdi
xorl %eax, %eax
callq 0x46c0
jmp 0x49ac
movq 0x8(%rsp), %rax
movq 0x40(%rax), %rcx
movq %rcx, (%r15)
movq %r15, 0x40(%rax)
xorl %eax, %eax
jmp 0x49ac
leaq 0x7712(%rip), %rsi      # 0xc0ab
pushq $0x1
popq %rdx
pushq $0x1a
popq %r8
movq %rbx, %rdi
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x46c0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/command.c
// Function: moonsndfile_command_set_count
int command_set_count(lua_State *L, int command)
    {
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    sf_count_t frames = luaL_checkinteger(L, 2);    
    int res = sf.command(sndfile, command, &frames, sizeof(frames));
    lua_pushboolean(L, res == 0);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x74a3(%rip), %rcx      # 0xc097
pushq $0x1
popq %rbp
movl %ebp, %esi
xorl %edx, %edx
callq 0x4400
movq %rax, %r15
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x4470
movq %rsp, %rdx
movq %rax, (%rdx)
movq 0xd3c5(%rip), %rax      # 0x11fe0
pushq $0x8
popq %rcx
movq %r15, %rdi
movl %r14d, %esi
callq *0x40(%rax)
xorl %esi, %esi
testl %eax, %eax
sete %sil
movq %rbx, %rdi
callq 0x4550
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/command.c
// Function: moonsndfile_command_get_boolean
int command_get_boolean(lua_State *L, int command)
    {
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    int val = sf.command(sndfile, command, NULL, 0);
    lua_pushboolean(L, val);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
leaq 0x7443(%rip), %rcx      # 0xc097
pushq $0x1
popq %rbp
movl %ebp, %esi
xorl %edx, %edx
callq 0x4400
movq 0xd379(%rip), %r8       # 0x11fe0
movq %rax, %rdi
movl %ebx, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq *0x40(%r8)
movq %r14, %rdi
movl %eax, %esi
callq 0x4550
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/command.c
// Function: moonsndfile_command_set_boolean
int command_set_boolean(lua_State *L, int command)
    {
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    int val = checkboolean(L, 2);
    sf.command(sndfile, command, NULL, val);
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
leaq 0x7401(%rip), %rcx      # 0xc097
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x4400
movq %rax, %r15
pushq $0x2
popq %rsi
movq %r14, %rdi
callq 0x44d0
movq 0xd32b(%rip), %r8       # 0x11fe0
movq %r15, %rdi
movl %ebx, %esi
xorl %edx, %edx
movl %eax, %ecx
callq *0x40(%r8)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/command.c
// Function: moonsndfile_command_get_integer
int command_get_integer(lua_State *L, int command)
    {
    int val;
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    if(sf.command(sndfile, command, &val, sizeof(val)) != 0)
        return sndfileerror(L, sndfile);
    lua_pushinteger(L, val);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %r14
leaq 0x73ba(%rip), %rcx      # 0xc097
pushq $0x1
popq %rbx
movl %ebx, %esi
xorl %edx, %edx
callq 0x4400
movq %rax, %r15
movq 0xd2ed(%rip), %rax      # 0x11fe0
leaq 0x4(%rsp), %rdx
pushq $0x4
popq %rcx
movq %r15, %rdi
movl %ebp, %esi
callq *0x40(%rax)
testl %eax, %eax
je 0x4d16
movq %r14, %rdi
movq %r15, %rsi
callq 0x4340
movl %eax, %ebx
jmp 0x4d23
movslq 0x4(%rsp), %rsi
movq %r14, %rdi
callq 0x4320
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/command.c
// Function: moonsndfile_command_set_integer
int command_set_integer(lua_State *L, int command)
    {
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    int val = luaL_checkinteger(L, 2);
    if(sf.command(sndfile, command, &val, sizeof(val)) != SF_TRUE)
        return sndfileerror(L, sndfile);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x7354(%rip), %rcx      # 0xc097
xorl %r14d, %r14d
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x4400
movq %rax, %r15
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x4470
leaq 0x4(%rsp), %rdx
movl %eax, (%rdx)
movq 0xd274(%rip), %rax      # 0x11fe0
pushq $0x4
popq %rcx
movq %r15, %rdi
movl %ebp, %esi
callq *0x40(%rax)
cmpl $0x1, %eax
je 0x4d8a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4340
movl %eax, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/command.c
// Function: moonsndfile_command_get_double
int command_get_double(lua_State *L, int command)
    {
    double val;
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    if(sf.command(sndfile, command, &val, sizeof(val)) != 0)
        return sndfileerror(L, sndfile);
    lua_pushnumber(L, val);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %r14
leaq 0x72ec(%rip), %rcx      # 0xc097
pushq $0x1
popq %rbx
movl %ebx, %esi
xorl %edx, %edx
callq 0x4400
movq %rax, %r15
movq 0xd21f(%rip), %rax      # 0x11fe0
movq %rsp, %rdx
pushq $0x8
popq %rcx
movq %r15, %rdi
movl %ebp, %esi
callq *0x40(%rax)
testl %eax, %eax
je 0x4de2
movq %r14, %rdi
movq %r15, %rsi
callq 0x4340
movl %eax, %ebx
jmp 0x4def
movsd (%rsp), %xmm0
movq %r14, %rdi
callq 0x4510
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/command.c
// Function: moonsndfile_command_set_double
int command_set_double(lua_State *L, int command)
    {
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    double val = luaL_checknumber(L, 2);
    if(sf.command(sndfile, command, &val, sizeof(val)) != SF_TRUE)
        return sndfileerror(L, sndfile);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x7288(%rip), %rcx      # 0xc097
xorl %r14d, %r14d
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x4400
movq %rax, %r15
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x4260
movq %rsp, %rdx
movsd %xmm0, (%rdx)
movq 0xd1a8(%rip), %rax      # 0x11fe0
pushq $0x8
popq %rcx
movq %r15, %rdi
movl %ebp, %esi
callq *0x40(%rax)
cmpl $0x1, %eax
je 0x4e56
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4340
movl %eax, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/command.c
// Function: moonsndfile_command_get_double_all_channels
int command_get_double_all_channels(lua_State *L, int command, int success_retcode)
    {
    ud_t *ud;
    int i;
    sndfile_t sndfile = checksndfile(L, 1, &ud);
    size_t size = ud->sfinfo.channels * sizeof(double);
    double *val = (double*)Malloc(L, size);
    int res = sf.command(sndfile, command, val, size);
    if(res != success_retcode)
        return sndfileerror(L, sndfile);
    lua_newtable(L);
    for(i = 0; i < ud->sfinfo.channels; i++)
        {
        lua_pushnumber(L, val[i]);
        lua_rawseti(L, -2, i+1);
        }
    Free(L, val);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r13d
movq %rdi, %r14
leaq 0x7219(%rip), %rcx      # 0xc097
pushq $0x1
popq %rsi
movq %rsp, %r15
movq %r15, %rdx
callq 0x4400
movq %rax, %r12
movq (%r15), %rax
movslq 0x2c(%rax), %rbx
shlq $0x3, %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x41e0
movq %rax, %r15
movq 0xd131(%rip), %rax      # 0x11fe0
movq %r12, %rdi
movl %r13d, %esi
movq %r15, %rdx
movl %ebx, %ecx
callq *0x40(%rax)
cmpl %ebp, %eax
jne 0x4f10
xorl %r12d, %r12d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
pushq $-0x2
popq %rbp
movq (%rsp), %rax
movslq 0x2c(%rax), %rax
cmpq %rax, %r12
jge 0x4f00
movsd (%r15,%r12,8), %xmm0
movq %r14, %rdi
callq 0x4510
incq %r12
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x4490
jmp 0x4ed3
movq %r14, %rdi
movq %r15, %rsi
callq 0x43a0
pushq $0x1
popq %rax
jmp 0x4f1b
movq %r14, %rdi
movq %r12, %rsi
callq 0x4340
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/command.c
// Function: GetChannelMapInfo
static int GetChannelMapInfo(lua_State *L)
    {
    ud_t *ud;
    int i;
    sndfile_t sndfile = checksndfile(L, 1, &ud);
    size_t size = ud->sfinfo.channels * sizeof(int);
    int *val = (int*)Malloc(L, size);
    int res = sf.command(sndfile, SFC_GET_CHANNEL_MAP_INFO, val, size);
    if(res == 0)
        return sndfileerror(L, sndfile);
    lua_newtable(L);
    for(i = 0; i < ud->sfinfo.channels; i++)
        {
        pushchannelmap(L, val[i]);
        lua_rawseti(L, -2, i+1);
        }
    Free(L, val);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x7107(%rip), %rcx      # 0xc097
pushq $0x1
popq %rbx
movq %rsp, %r15
movl %ebx, %esi
movq %r15, %rdx
callq 0x4400
movq %rax, %r12
movq (%r15), %rax
movslq 0x2c(%rax), %r13
shlq $0x2, %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x41e0
movq %rax, %r15
movq 0xd01d(%rip), %rax      # 0x11fe0
movq %r12, %rdi
movl $0x1100, %esi           # imm = 0x1100
movq %r15, %rdx
movl %r13d, %ecx
callq *0x40(%rax)
testl %eax, %eax
je 0x5029
xorl %r12d, %r12d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4220
pushq $0x7
popq %rbp
pushq $-0x2
popq %r13
movq (%rsp), %rax
movslq 0x2c(%rax), %rax
cmpq %rax, %r12
jge 0x501c
movl (%r15,%r12,4), %edx
movq %r14, %rdi
movl %ebp, %esi
callq 0x4120
incq %r12
movq %r14, %rdi
movl %r13d, %esi
movq %r12, %rdx
callq 0x4490
jmp 0x4fee
movq %r14, %rdi
movq %r15, %rsi
callq 0x43a0
jmp 0x5036
movq %r14, %rdi
movq %r12, %rsi
callq 0x4340
movl %eax, %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_O2/stetre[P]moonsndfile/src/command.c
// Function: SetChannelMapInfo
static int SetChannelMapInfo(lua_State *L)
    {
    ud_t *ud;
    size_t count, size;
    int err, res;
    sndfile_t sndfile = checksndfile(L, 1, &ud);
    int *list = checkchannelmaplist(L, 2, &count, &err);
    if(err)
        return luaL_argerror(L, 2, errstring(err));
    if(count != (size_t)ud->sfinfo.channels)
        {
        freechannelmaplist(L, list);
        return luaL_argerror(L, 2, errstring(ERR_LENGTH));
        }
    size = count * sizeof(int);
    res = sf.command(sndfile, SFC_SET_CHANNEL_MAP_INFO, list, size);
    freechannelmaplist(L, list);
    if(res == 0)
        return sndfileerror(L, sndfile);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x703a(%rip), %rcx      # 0xc097
pushq $0x1
popq %rbp
leaq 0x10(%rsp), %rdx
movl %ebp, %esi
callq 0x4400
movq %rax, %r14
pushq $0x7
popq %rsi
pushq $0x2
popq %rdx
leaq 0x8(%rsp), %rcx
leaq 0x1c(%rsp), %r12
movq %rbx, %rdi
movq %r12, %r8
callq 0x42f0
movl (%r12), %edi
testl %edi, %edi
jne 0x50ee
movq %rax, %r15
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
movslq 0x2c(%rax), %rax
cmpq %rax, %rcx
jne 0x50e0
movq 0xcf31(%rip), %rax      # 0x11fe0
shll $0x2, %ecx
movq %r14, %rdi
movl $0x1101, %esi           # imm = 0x1101
movq %r15, %rdx
callq *0x40(%rax)
movl %eax, %r12d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4160
testl %r12d, %r12d
jne 0x5103
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4340
jmp 0x5101
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4160
pushq $-0x7
popq %rdi
callq 0x4660
pushq $0x2
popq %rsi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x4110
movl %eax, %ebp
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/command.c
// Function: WavexSetAmbisonic
static int WavexSetAmbisonic(lua_State *L)
    {
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    int val = checkambisonic(L, 2);
    int res = sf.command(sndfile, SFC_WAVEX_SET_AMBISONIC, NULL, val);
    if(res == 0)
        return sndfileerror(L, sndfile);
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x6f77(%rip), %rcx      # 0xc097
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x4400
movq %rax, %r14
pushq $0xb
popq %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x4130
movq 0xce9e(%rip), %r8       # 0x11fe0
movq %r14, %rdi
movl $0x1200, %esi           # imm = 0x1200
xorl %edx, %edx
movl %eax, %ecx
callq *0x40(%r8)
testl %eax, %eax
je 0x5160
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4340
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonsndfile/src/command.c
// Function: WavexGetAmbisonic
static int WavexGetAmbisonic(lua_State *L)
    {
    sndfile_t sndfile = checksndfile(L, 1, NULL);
    int val = sf.command(sndfile, SFC_WAVEX_GET_AMBISONIC, NULL, 0);
    if(val==0)
        return sndfileerror(L, sndfile);
    pushambisonic(L, val);
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x6f17(%rip), %rcx      # 0xc097
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x4400
movq %rax, %r14
movq 0xce4c(%rip), %rax      # 0x11fe0
movq %r14, %rdi
movl $0x1201, %esi           # imm = 0x1201
xorl %edx, %edx
xorl %ecx, %ecx
callq *0x40(%rax)
testl %eax, %eax
je 0x51bf
pushq $0xb
popq %rsi
movq %rbx, %rdi
movl %eax, %edx
callq 0x4120
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4340