LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: pp_readln
cell pp_readln(cell x) {
	static char	buf[TOKEN_LENGTH+1];
	int		k;

	if (fgets(buf, TOKEN_LENGTH, Streams[Instream]) == NULL)
		return END_OF_FILE;
	k = strlen(buf);
	if (buf[k-1] == '\n')
		buf[--k] = 0;
	return make_string(buf, k);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movslq 0xc8df(%rip), %rax      # 0x1e698
leaq 0xc3c0(%rip), %rcx      # 0x1e180
movq (%rcx,%rax,8), %rdx
leaq 0xc9e5(%rip), %r14      # 0x1e7b0
movq %r14, %rdi
movl $0x400, %esi            # imm = 0x400
callq 0x3100
testq %rax, %rax
je 0x11e39
movq %r14, %rdi
callq 0x30a0
movq %rax, %rbx
decl %eax
cltq
cmpb $0xa, (%rax,%r14)
jne 0x11dff
movslq %ebx, %rbx
movb $0x0, -0x1(%rbx,%r14)
decq %rbx
incl %ebx
movq $-0x21, %rdi
movl %ebx, %esi
callq 0x416e
movq %rax, %r14
movq 0xc7a7(%rip), %rax      # 0x1e5c0
movq (%rax,%r14,8), %rdi
shlq $0x3, %rdi
addq 0xc7c0(%rip), %rdi      # 0x1e5e8
movslq %ebx, %rdx
leaq 0xc97e(%rip), %rsi      # 0x1e7b0
callq 0x3050
jmp 0x11e40
movq $-0x4, %r14
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: copy_string
char *copy_string(char *s) {
	char	*new;

	new = malloc(strlen(s)+1);
	if (s == NULL)
		fatal("copy_string(): out of memory");
	strcpy(new, s);
	return new;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x30a0
leaq 0x1(%rax), %rdi
callq 0x3150
testq %rbx, %rbx
je 0x11e75
movq %rax, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x3060
leaq 0x50ce(%rip), %rdi      # 0x16f4a
callq 0x3ab4
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: pp_dump_image
cell pp_dump_image(cell x) {
	char	*path = copy_string(string(car(x)));
	FILE	*f;

	f = fopen(string(car(x)), "r");
	if (f != NULL) {
		fclose(f);
		return error("dump_image: file exists", car(x));
	}
	dump_image(path);
	free(path);
	return UNIT;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0xc72e(%rip), %rax      # 0x1e5c0
movq 0xc2d7(%rip), %rcx      # 0x1e170
movq (%rcx,%rdi,8), %rcx
movq (%rax,%rcx,8), %rdi
shlq $0x3, %rdi
addq 0xc73c(%rip), %rdi      # 0x1e5e8
callq 0x11e48
movq %rax, %r14
movq 0xc705(%rip), %rax      # 0x1e5c0
movq 0xc2ae(%rip), %rcx      # 0x1e170
movq (%rcx,%rbx,8), %rcx
movq (%rax,%rcx,8), %rdi
shlq $0x3, %rdi
addq 0xc713(%rip), %rdi      # 0x1e5e8
leaq 0x514d(%rip), %rsi      # 0x17029
callq 0x31c0
testq %rax, %rax
je 0x11f0e
movq %rax, %rdi
callq 0x3090
movq 0xc27b(%rip), %rax      # 0x1e170
movq (%rax,%rbx,8), %rsi
leaq 0x5067(%rip), %rdi      # 0x16f67
callq 0x33eb
movq $-0x5, %rax
jmp 0x11f25
movq %r14, %rdi
callq 0x11f2a
movq %r14, %rdi
callq 0x3040
movq $-0x6, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: pp_gensym
cell pp_gensym(cell x) {
	char	pre[101];
	int	k;

	if (x == NIL) {
		strcpy(pre, "g");
		k = 1;
	}
	else if (string_p(car(x))) {
		memcpy(pre, string(car(x)), 100);
		k = string_len(car(x));
	}
	else if (symbol_p(car(x))) {
		memcpy(pre, symbol_name(car(x)), 100);
		k = symbol_len(car(x));
	}
	else
		return error("gensym: expected str/id, got",
				car(x));
	if (k > 100)
		return error("gensym: prefix too long", car(x));
	pre[100] = 0;
	return gensym(pre);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
cmpq $-0x1, %rdi
je 0x12218
movq 0xbf86(%rip), %rax      # 0x1e170
movq (%rax,%rdi,8), %rbx
testq %rbx, %rbx
js 0x12200
movq 0xc3e6(%rip), %rcx      # 0x1e5e0
testb $0x10, (%rcx,%rbx)
jne 0x12234
leaq 0x4d7e(%rip), %rdi      # 0x16f85
movq %rbx, %rsi
callq 0x33eb
movq $-0x5, %rax
jmp 0x1222b
movw $0x67, -0x80(%rbp)
leaq -0x80(%rbp), %rdi
movb $0x0, 0x64(%rdi)
callq 0xc148
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
cmpq $-0x21, (%rax,%rbx,8)
je 0x12242
cmpq $-0x22, (%rax,%rbx,8)
jne 0x12200
movq 0xc39f(%rip), %rax      # 0x1e5e8
movq 0xc370(%rip), %rcx      # 0x1e5c0
movq (%rcx,%rbx,8), %rcx
leaq (%rax,%rcx,8), %r14
leaq -0x80(%rbp), %rdi
movl $0x64, %edx
movq %r14, %rsi
callq 0x3130
cmpl $0x65, -0x8(%r14)
jl 0x1221e
leaq 0x4d2b(%rip), %rdi      # 0x16fa2
jmp 0x12207
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: pp_stats
cell pp_stats(cell x) {
	cell	n, m;
	int	o_run_stats;

	gcv(); /* start from a known state */
	reset_counter(&Reductions);
	reset_counter(&Conses);
	reset_counter(&Nodes);
	reset_counter(&Collections);
	o_run_stats = Run_stats;
	Run_stats = 1;
	Cons_stats = 0;
	n = eval(car(x));
	save(n);
	Run_stats = o_run_stats;
	n = counter_to_list(&Collections);
	n = node(n, NIL);
	save(n);
	car(Stack) = n;
	m = counter_to_list(&Nodes);
	n = node(m, n);
	car(Stack) = n;
	m = counter_to_list(&Conses);
	n = node(m, n);
	car(Stack) = n;
	m = counter_to_list(&Reductions);
	n = node(m, n);
	n = node(unsave(2), n);
	return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r12
callq 0x4079
xorps %xmm0, %xmm0
movups %xmm0, 0xc927(%rip)     # 0x1ebc0
xorl %eax, %eax
movl %eax, 0xc92f(%rip)      # 0x1ebd0
movups %xmm0, 0xc3b0(%rip)     # 0x1e658
movl %eax, 0xc3ba(%rip)      # 0x1e668
leaq 0xc3a3(%rip), %r14      # 0x1e658
movups %xmm0, 0xc384(%rip)     # 0x1e640
movl %eax, 0xc38e(%rip)      # 0x1e650
leaq 0xc377(%rip), %r15      # 0x1e640
movups %xmm0, 0xc354(%rip)     # 0x1e624
movl %eax, 0xc35e(%rip)      # 0x1e634
leaq 0xc347(%rip), %r13      # 0x1e624
movl 0xc33d(%rip), %ebx      # 0x1e620
movl $0x1, 0xc333(%rip)      # 0x1e620
movl %eax, 0xc361(%rip)      # 0x1e654
movq 0xbe76(%rip), %rax      # 0x1e170
movq (%rax,%r12,8), %rdi
callq 0x11a6a
movq 0xbe1e(%rip), %rsi      # 0x1e128
movq %rax, %rdi
xorl %edx, %edx
callq 0x36e8
movq %rax, 0xbe0d(%rip)      # 0x1e128
movl %ebx, 0xc2ff(%rip)      # 0x1e620
movq %r13, %rdi
callq 0x3534
movq %rax, %rdi
movq $-0x1, %rsi
xorl %edx, %edx
callq 0x36e8
movq %rax, %r12
movq 0xbde4(%rip), %rsi      # 0x1e128
movq %rax, %rdi
xorl %edx, %edx
callq 0x36e8
movq %rax, 0xbdd3(%rip)      # 0x1e128
movq 0xbe14(%rip), %rcx      # 0x1e170
movq %r12, (%rcx,%rax,8)
movq %r15, %rdi
callq 0x3534
movq %rax, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x36e8
movq %rax, %r15
movq 0xbdf1(%rip), %rax      # 0x1e170
movq 0xbda2(%rip), %rcx      # 0x1e128
movq %r15, (%rax,%rcx,8)
movq %r14, %rdi
callq 0x3534
movq %rax, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x36e8
movq %rax, %r14
movq 0xbdc7(%rip), %rax      # 0x1e170
movq 0xbd78(%rip), %rcx      # 0x1e128
movq %r14, (%rax,%rcx,8)
leaq 0xc805(%rip), %rdi      # 0x1ebc0
callq 0x3534
movq %rax, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x36e8
movq %rax, %rbx
movl $0x2, %edi
callq 0x384f
movq %rax, %rdi
movq %rbx, %rsi
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x36e8
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: pp_argv
cell pp_argv(cell x) {
	cell	n;
	char	**cl;

	if (Command_line == NULL || *Command_line == NULL)
		return FALSE;
	n = integer_value("argv", car(x));
	cl = Command_line;
	for (; n--; cl++)
		if (*cl == NULL)
			return FALSE;
	return *cl == NULL? FALSE: make_string(*cl, strlen(*cl));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0xc7d2(%rip), %rax      # 0x1ebd8
movq $-0x3, %rbx
testq %rax, %rax
je 0x124a4
cmpq $0x0, (%rax)
je 0x124a4
movq 0xbd49(%rip), %rax      # 0x1e170
movq (%rax,%rdi,8), %rsi
leaq 0x4b88(%rip), %rdi      # 0x16fba
callq 0x432f
movq 0xc79a(%rip), %rcx      # 0x1ebd8
testq %rax, %rax
je 0x1245b
leaq (%rcx,%rax,8), %rdx
xorl %esi, %esi
cmpq $0x0, (%rcx,%rsi,8)
je 0x124a4
incq %rsi
cmpq %rsi, %rax
jne 0x12449
movq %rdx, %rcx
movq (%rcx), %r14
testq %r14, %r14
je 0x124a4
movq %r14, %rdi
callq 0x30a0
movq %rax, %r15
incl %r15d
movq $-0x21, %rdi
movl %r15d, %esi
callq 0x416e
movq %rax, %rbx
movq 0xc136(%rip), %rax      # 0x1e5c0
movq (%rax,%rbx,8), %rdi
shlq $0x3, %rdi
addq 0xc14f(%rip), %rdi      # 0x1e5e8
movslq %r15d, %rdx
movq %r14, %rsi
callq 0x3050
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: pp_environ
cell pp_environ(cell x) {
	char	*s;

	s = getenv(string(car(x)));
	if (s == NULL)
		return FALSE;
	return make_string(s, strlen(s));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0xc0fd(%rip), %rax      # 0x1e5c0
movq 0xbca6(%rip), %rcx      # 0x1e170
movq (%rcx,%rdi,8), %rcx
movq (%rax,%rcx,8), %rdi
shlq $0x3, %rdi
addq 0xc10b(%rip), %rdi      # 0x1e5e8
callq 0x3030
testq %rax, %rax
je 0x1252d
movq %rax, %rbx
movq %rax, %rdi
callq 0x30a0
movq %rax, %r15
incl %r15d
movq $-0x21, %rdi
movl %r15d, %esi
callq 0x416e
movq %rax, %r14
movq 0xc0af(%rip), %rax      # 0x1e5c0
movq (%rax,%r14,8), %rdi
shlq $0x3, %rdi
addq 0xc0c8(%rip), %rdi      # 0x1e5e8
movslq %r15d, %rdx
movq %rbx, %rsi
callq 0x3050
jmp 0x12534
movq $-0x3, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: expected
cell expected(cell who, char *what, cell got) {
	char	msg[100];
	PRIM	*p;

	p = &Primitives[cadr(who)];
	sprintf(msg, "%s: expected %s, got", p->name, what);
	return error(msg, got);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rdx, %rbx
movq %rsi, %rcx
movq 0xc118(%rip), %rax      # 0x1e6c8
movq 0xbbb9(%rip), %rdx      # 0x1e170
movq 0xc002(%rip), %rsi      # 0x1e5c0
movq (%rsi,%rdi,8), %rsi
movq (%rdx,%rsi,8), %rdx
leaq (%rdx,%rdx,4), %rdx
movq (%rax,%rdx,8), %rdx
leaq 0x47e1(%rip), %rsi      # 0x16db6
leaq -0x80(%rbp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x31f0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x33eb
movq $-0x5, %rax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: uses_transformer_p
int uses_transformer_p(cell x) {
	cell	y;

	if (atom_p(x) || car(x) == S_quote)
		return 0;
	if (tuple_p(x) && symbol_p(car(x))) {
		y = lookup(car(x), Environment, 0);
		if (y != NIL && syntax_p(binding_value(y)))
			return 1;
	}
	while (tuple_p(x)) {
		if (uses_transformer_p(car(x)))
			return 1;
		x = cdr(x);
	}
	return 0;
}

// Assembly:
testq %rdi, %rdi
js 0x12aa4
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xbbfe(%rip), %rax      # 0x1e5e0
movzbl (%rax,%rdi), %edx
testb $0x11, %dl
jne 0x12a9b
movq 0xb77a(%rip), %rcx      # 0x1e170
movq (%rcx,%rbx,8), %rdi
cmpq 0xbca7(%rip), %rdi      # 0x1e6a8
je 0x12a9b
andl $0x8, %edx
shrl $0x3, %edx
testq %rdi, %rdi
sets %sil
orb %dl, %sil
jne 0x12a6a
testb $0x10, (%rax,%rdi)
je 0x12a6a
cmpq $-0x22, (%rcx,%rdi,8)
jne 0x12a6a
movq 0xb6db(%rip), %rsi      # 0x1e108
xorl %edx, %edx
callq 0xdb9e
cmpq $-0x1, %rax
je 0x12a6a
movq 0xbb7f(%rip), %rcx      # 0x1e5c0
movq (%rcx,%rax,8), %rcx
testq %rcx, %rcx
js 0x12a6a
movq 0xbb8f(%rip), %rax      # 0x1e5e0
testb $0x1, (%rax,%rcx)
je 0x12a6a
movq 0xb712(%rip), %rdx      # 0x1e170
movl $0x1, %eax
cmpq $-0x23, (%rdx,%rcx,8)
je 0x12a9d
movq 0xbb6f(%rip), %rax      # 0x1e5e0
testb $0x19, (%rax,%rbx)
jne 0x12a9b
movq 0xb6f2(%rip), %rax      # 0x1e170
movq (%rax,%rbx,8), %rdi
callq 0x129c9
testl %eax, %eax
jne 0x12aa7
movq 0xbb2e(%rip), %rax      # 0x1e5c0
movq (%rax,%rbx,8), %rbx
testq %rbx, %rbx
jns 0x12a6a
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
xorl %eax, %eax
retq
movl $0x1, %eax
jmp 0x12a9d
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: expand_syntax
cell expand_syntax(cell x) {
	if (Error_flag || atom_p(x) || car(x) == S_quote)
		return x;
	save(x);
	while (!Error_flag) {
		if (!uses_transformer_p(x))
			break;
		x = expand_syntax_1(x);
		car(Stack) = x;
	}
	unsave(1);
	return x;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0xabcd(%rip), %eax      # 0x1e5b4
testq %rdi, %rdi
js 0x13a67
testl %eax, %eax
jne 0x13a67
movq 0xabe9(%rip), %rax      # 0x1e5e0
testb $0x11, (%rax,%rbx)
jne 0x13a67
movq 0xa76c(%rip), %rax      # 0x1e170
movq (%rax,%rbx,8), %rax
cmpq 0xac99(%rip), %rax      # 0x1e6a8
je 0x13a67
movq 0xa710(%rip), %rsi      # 0x1e128
movq %rbx, %rdi
xorl %edx, %edx
callq 0x36e8
movq %rax, 0xa6ff(%rip)      # 0x1e128
cmpl $0x0, 0xab84(%rip)      # 0x1e5b4
jne 0x13a5d
movq %rbx, %rdi
callq 0x129c9
testl %eax, %eax
je 0x13a5d
movq %rbx, %rdi
callq 0x12aae
movq %rax, %rbx
movq 0xa720(%rip), %rax      # 0x1e170
movq 0xa6d1(%rip), %rcx      # 0x1e128
movq %rbx, (%rax,%rcx,8)
jmp 0x13a29
movl $0x1, %edi
callq 0x384f
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: restore_state
cell restore_state(void) {
	cell	v;

	if (State_stack == NIL)
		fatal("restore_state: stack underflow");
	v = car(State_stack);
	State_stack = cdr(State_stack);
	return v;
}

// Assembly:
movq 0xa6c0(%rip), %rcx      # 0x1e138
cmpq $-0x1, %rcx
je 0x13a9c
movq 0xa6eb(%rip), %rax      # 0x1e170
movq (%rax,%rcx,8), %rax
movq 0xab30(%rip), %rdx      # 0x1e5c0
movq (%rdx,%rcx,8), %rcx
movq %rcx, 0xa69d(%rip)      # 0x1e138
retq
pushq %rbp
movq %rsp, %rbp
leaq 0x3668(%rip), %rdi      # 0x1710f
callq 0x3ab4
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: next_case
cell next_case(cell app, cell cas) {
	cell	n, f;

	f = car(app);
	n = node(caddr(f), cas);
	n = node(cadr(f), n);
	n = node3(T_FUNCTION, n, ATOM_TAG);
	return node(n, cdr(app));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0xa447(%rip), %rax      # 0x1e170
movq (%rax,%rdi,8), %r14
movq 0xa88c(%rip), %rcx      # 0x1e5c0
movq (%rcx,%r14,8), %rdx
movq (%rcx,%rdx,8), %rcx
movq (%rax,%rcx,8), %rdi
xorl %edx, %edx
callq 0x36e8
movq 0xa422(%rip), %rcx      # 0x1e170
movq 0xa86b(%rip), %rdx      # 0x1e5c0
movq (%rdx,%r14,8), %rdx
movq (%rcx,%rdx,8), %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x36e8
movq $-0x1e, %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0x36e8
movq 0xa83e(%rip), %rcx      # 0x1e5c0
movq (%rcx,%rbx,8), %rsi
movq %rax, %rdi
xorl %edx, %edx
popq %rbx
popq %r14
popq %rbp
jmp 0x36e8
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: fnmatch
cell fnmatch(cell n, int *ps) {
	cell	c, cas, p, a, v, rib, g;
	cell	new;

	save(Environment);
	p = car(n);
	Environment = cadr(p);
	if (cdr(n) != NIL && cddr(n) == NIL)
		a = cadr(n);
	else
		a = cdr(n);
	c = rib = UNDEFINED;
	for (cas = cdddr(p); cas != NIL; cas = cdr(cas)) {
		c = car(cas);
		v = car(c);
		g = 0;
		if (tuple_p(v) && car(v) == GUARD) {
			v = cadr(v);
			g =  1;
		}
		if ((rib = destructuring_bind(v, a)) == UNDEFINED)
			continue;
		if (!g)
			break;
		Environment = make_env(rib, Environment);
		save(n);
		set(car(Stack), next_case(n, cas));
		*ps = EV_GUARD;
		return cddar(c);
	}
	*ps = EV_BETA;
	if (rib == UNDEFINED)
		return error("no match", n);
	Environment = make_env(rib, Environment);
	return cadr(c);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0xa359(%rip), %rdi      # 0x1e108
movq 0xa372(%rip), %rsi      # 0x1e128
xorl %edx, %edx
callq 0x36e8
movq %rax, 0xa364(%rip)      # 0x1e128
movq 0xa3a5(%rip), %rdx      # 0x1e170
movq (%rdx,%r14,8), %rcx
movq 0xa7ea(%rip), %rax      # 0x1e5c0
movq (%rax,%rcx,8), %rsi
movq (%rdx,%rsi,8), %rsi
movq %rsi, 0xa323(%rip)      # 0x1e108
movq (%rax,%r14,8), %rsi
cmpq $-0x1, %rsi
je 0x13e05
leaq (%rax,%r14,8), %rdi
cmpq $-0x1, (%rax,%rsi,8)
leaq (%rdx,%rsi,8), %rdx
cmovneq %rdi, %rdx
movq (%rdx), %r12
jmp 0x13e0c
movq $-0x1, %r12
movq (%rax,%rcx,8), %rcx
movq (%rax,%rcx,8), %rcx
movq (%rax,%rcx,8), %r15
cmpq $-0x1, %r15
je 0x13e79
movq 0xa34b(%rip), %rcx      # 0x1e170
movq (%rcx,%r15,8), %r13
movq (%rcx,%r13,8), %rdi
testq %rdi, %rdi
js 0x13e5e
movq 0xa7a7(%rip), %rdx      # 0x1e5e0
testb $0x19, (%rdx,%rdi)
jne 0x13e5e
cmpq $-0x9, (%rcx,%rdi,8)
jne 0x13e5e
movq (%rax,%rdi,8), %rax
movq (%rcx,%rax,8), %rdi
movq %r12, %rsi
callq 0x13aac
cmpq $-0x5, %rax
je 0x13e6c
jmp 0x13ed8
movq %r12, %rsi
callq 0x13aac
cmpq $-0x5, %rax
jne 0x13e97
movq 0xa74d(%rip), %rax      # 0x1e5c0
movq (%rax,%r15,8), %r15
jmp 0x13e18
movl $0x2, (%rbx)
leaq 0x32a8(%rip), %rdi      # 0x1712e
movq %r14, %rsi
callq 0x33eb
movq $-0x5, %rax
jmp 0x13ec9
movl $0x2, (%rbx)
movq 0xa264(%rip), %rsi      # 0x1e108
movq %rax, %rdi
callq 0xda66
movq %rax, 0xa255(%rip)      # 0x1e108
movq 0xa2b6(%rip), %rax      # 0x1e170
movq 0xa6ff(%rip), %rcx      # 0x1e5c0
movq (%rcx,%r13,8), %rcx
movq (%rax,%rcx,8), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xa229(%rip), %rsi      # 0x1e108
movq %rax, %rdi
callq 0xda66
movq %rax, 0xa21a(%rip)      # 0x1e108
movq 0xa233(%rip), %rsi      # 0x1e128
movq %r14, %rdi
xorl %edx, %edx
callq 0x36e8
movq %rax, 0xa222(%rip)      # 0x1e128
movq %r14, %rdi
movq %r15, %rsi
callq 0x13d18
movq 0xa258(%rip), %rcx      # 0x1e170
movq 0xa209(%rip), %rdx      # 0x1e128
movq %rax, (%rcx,%rdx,8)
movl $0x3, (%rbx)
movq 0xa690(%rip), %rax      # 0x1e5c0
movq (%rcx,%r13,8), %rcx
movq (%rax,%rcx,8), %rcx
jmp 0x13ec5
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: tail_call
int tail_call(void) {
	if (State_stack == NIL || car(State_stack) != EV_BETA)
		return 0;
	Tmp = unsave(1);
	Environment = car(Stack);
	unsave(2);
	restore_state();
	save(Tmp);
	Tmp = NIL;
	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0xa1f1(%rip), %rax      # 0x1e138
xorl %ebx, %ebx
cmpq $-0x1, %rax
je 0x13fe0
movq 0xa216(%rip), %rcx      # 0x1e170
cmpq $0x2, (%rcx,%rax,8)
jne 0x13fe0
movl $0x1, %ebx
movl $0x1, %edi
callq 0x384f
movq %rax, 0xa199(%rip)      # 0x1e110
movq 0xa1f2(%rip), %rax      # 0x1e170
movq 0xa1a3(%rip), %rcx      # 0x1e128
movq (%rax,%rcx,8), %rax
movq %rax, 0xa178(%rip)      # 0x1e108
movl $0x2, %edi
callq 0x384f
movq 0xa197(%rip), %rax      # 0x1e138
cmpq $-0x1, %rax
je 0x13fe9
movq 0xa612(%rip), %rcx      # 0x1e5c0
movq (%rcx,%rax,8), %rax
movq %rax, 0xa17f(%rip)      # 0x1e138
movq 0xa150(%rip), %rdi      # 0x1e110
movq 0xa161(%rip), %rsi      # 0x1e128
xorl %edx, %edx
callq 0x36e8
movq %rax, 0xa153(%rip)      # 0x1e128
movq $-0x1, 0xa130(%rip) # 0x1e110
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x311f(%rip), %rdi      # 0x1710f
callq 0x3ab4
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: raise_exception
cell raise_exception(cell e) {
	cell	cs, n, p, fn;

	for (p = Exnstack; p != NIL; p = cdr(p)) {
		fn = cdar(p);
		for (cs = cddr(fn); cs != NIL; cs = cdr(cs)) {
			if (caar(cs) == e) {
				Exnstack = cdr(p);
				n = node(e, NIL);
				n = node(fn, n);
				n = node(n, NIL);
				n = node(caar(p), n);
				return n;
			}
		}
	}
	return error("unhandled exception", e);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rsi
movq 0xa162(%rip), %r14      # 0x1e168
cmpq $-0x1, %r14
je 0x14046
movq 0xa5ad(%rip), %rax      # 0x1e5c0
movq 0xa156(%rip), %rcx      # 0x1e170
movq (%rcx,%r14,8), %rdx
movq (%rax,%rdx,8), %rbx
movq (%rax,%rbx,8), %rdx
movq (%rax,%rdx,8), %rdx
cmpq $-0x1, %rdx
je 0x1403c
movq (%rcx,%rdx,8), %rdi
cmpq %rsi, (%rcx,%rdi,8)
jne 0x14026
jmp 0x1405e
movq (%rax,%r14,8), %r14
cmpq $-0x1, %r14
jne 0x1401a
leaq 0x30ea(%rip), %rdi      # 0x17137
callq 0x33eb
movq $-0x5, %rax
popq %rbx
popq %r14
popq %rbp
retq
movq (%rax,%r14,8), %rax
movq %rax, 0xa0ff(%rip)      # 0x1e168
movq %rsi, %rdi
movq $-0x1, %rsi
xorl %edx, %edx
callq 0x36e8
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x36e8
movq %rax, %rdi
movq $-0x1, %rsi
xorl %edx, %edx
callq 0x36e8
movq 0xa0d1(%rip), %rcx      # 0x1e170
movq (%rcx,%r14,8), %rdx
movq (%rcx,%rdx,8), %rdi
movq %rax, %rsi
xorl %edx, %edx
popq %rbx
popq %r14
popq %rbp
jmp 0x36e8
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: keyboard_interrupt
void keyboard_interrupt(int sig) {
	Instream = 0;
	Outstream = 1;
	error("interrupted", NOEXPR);
	signal(SIGINT, keyboard_interrupt);
 }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x0, 0xa593(%rip)      # 0x1e698
movl $0x1, 0xa171(%rip)      # 0x1e280
leaq 0x3052(%rip), %rdi      # 0x17168
movq $-0x8, %rsi
callq 0x33eb
leaq -0x32(%rip), %rsi       # 0x140f7
movl $0x2, %edi
popq %rbp
jmp 0x3120
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: get_library_path
cell get_library_path(void) {
	char	*s;

	s = getenv("MLITE_LIBRARY_PATH");
	if (s == NULL)
		s = DEFAULT_LIBRARY_PATH;
	return make_string(s, (int) strlen(s));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
leaq 0x2c59(%rip), %rdi      # 0x17376
callq 0x3030
testq %rax, %rax
leaq 0x2c5d(%rip), %rbx      # 0x17389
cmovneq %rax, %rbx
movq %rbx, %rdi
callq 0x30a0
movq %rax, %r14
incl %r14d
movq $-0x21, %rdi
movl %r14d, %esi
callq 0x416e
movq %rax, %r15
movq 0x9e69(%rip), %rax      # 0x1e5c0
movq (%rax,%r15,8), %rdi
shlq $0x3, %rdi
addq 0x9e82(%rip), %rdi      # 0x1e5e8
movslq %r14d, %rdx
movq %rbx, %rsi
callq 0x3050
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: libname
char *libname(char *argv0) {
	char	*name;

	if (argv0 == NULL || argv0[0] == 0)
		argv0 = "mlite";
	name = strrchr(argv0, '/');
	name = name? &name[1]: argv0;
	return name;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x14792
movq %rdi, %rbx
cmpb $0x0, (%rdi)
jne 0x14799
leaq 0x2c1b(%rip), %rbx      # 0x173b4
movq %rbx, %rdi
movl $0x2f, %esi
callq 0x30c0
leaq 0x1(%rax), %rcx
testq %rax, %rax
cmoveq %rbx, %rcx
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: grow_primitives
void grow_primitives(void) {
	Max_prims += PRIM_SEG_SIZE;
	Primitives = (PRIM *) realloc(Primitives, sizeof(PRIM) * Max_prims);
	if (Primitives == NULL)
		fatal("grow_primitives: out of physical memory");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq 0xa1f2(%rip), %rax      # 0x1ec14
leaq 0x100(%rax), %rcx
movl %ecx, 0xa1e5(%rip)      # 0x1ec14
movq 0x9c92(%rip), %rdi      # 0x1e6c8
leaq 0x800(,%rax,8), %rax
leaq (%rax,%rax,4), %rsi
callq 0x3190
movq %rax, 0x9c7a(%rip)      # 0x1e6c8
testq %rax, %rax
je 0x14a55
popq %rbp
retq
leaq 0x29bc(%rip), %rdi      # 0x17418
callq 0x3ab4
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: add_primitives
void add_primitives(char *name, PRIM *p) {
	cell	v, n, new;
	int	i;

	if (name) {
		n = symbol_ref(name);
		set(box_value(S_extensions), node(n, box_value(S_extensions)));
	}
	for (i=0; p && p && p[i].name; i++) {
		if (Callcc_magic < 0 && !strcmp(p[i].name, "call/cc"))
			Callcc_magic = Last_prim;
		v = symbol_ref(p[i].name);
		n = new_atom(Last_prim, NIL);
		n = new_atom(T_PRIMITIVE, n);
		if (Last_prim >= Max_prims)
			grow_primitives();
		memcpy(&Primitives[Last_prim], &p[i], sizeof(PRIM));
		Last_prim++;
		Environment = extend(v, n, Environment);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
testq %rdi, %rdi
je 0x14aaa
callq 0x720e
movq 0x9b3d(%rip), %rcx      # 0x1e5c0
movq 0xa176(%rip), %rdx      # 0x1ec00
movq (%rcx,%rdx,8), %rsi
movq %rax, %rdi
xorl %edx, %edx
callq 0x36e8
movq 0x9b21(%rip), %rcx      # 0x1e5c0
movq 0xa15a(%rip), %rdx      # 0x1ec00
movq %rax, (%rcx,%rdx,8)
testq %rbx, %rbx
je 0x14b9b
movq (%rbx), %r15
testq %r15, %r15
je 0x14b9b
leaq 0x2510(%rip), %r14      # 0x16fd6
cmpq $0x0, 0xa11a(%rip)      # 0x1ebe8
jns 0x14aed
movq %r15, %rdi
movq %r14, %rsi
callq 0x3110
testl %eax, %eax
jne 0x14aed
movslq 0xa12a(%rip), %rax      # 0x1ec10
movq %rax, 0xa0fb(%rip)      # 0x1ebe8
movq %r15, %rdi
callq 0x720e
movq %rax, %r15
movslq 0xa111(%rip), %rdi      # 0x1ec10
movq $-0x1, %rsi
movl $0x1, %edx
callq 0x36e8
movq $-0x1d, %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0x36e8
movq %rax, %r12
movl 0xa0e3(%rip), %eax      # 0x1ec10
cmpl 0xa0e1(%rip), %eax      # 0x1ec14
jl 0x14b40
callq 0x14a17
movl 0xa0d0(%rip), %eax      # 0x1ec10
movq 0x9b81(%rip), %rcx      # 0x1e6c8
cltq
leaq (%rax,%rax,4), %rdx
movq 0x20(%rbx), %rsi
movq %rsi, 0x20(%rcx,%rdx,8)
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups %xmm1, 0x10(%rcx,%rdx,8)
movups %xmm0, (%rcx,%rdx,8)
incl %eax
movl %eax, 0xa0a2(%rip)      # 0x1ec10
movq 0x9593(%rip), %r13      # 0x1e108
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xda16
movq %r13, 0x957e(%rip)      # 0x1e108
movq 0x28(%rbx), %r15
addq $0x28, %rbx
testq %r15, %r15
jne 0x14ac6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: make_initial_env
void make_initial_env(void) {
	cell	new;

	Environment = node(NIL, NIL);
	Environment = extend(symbol_ref("it"), NIL, Environment);
	S_it = cadr(Environment);
	Environment = extend(symbol_ref("*extensions*"), NIL, Environment);
	S_extensions = cadr(Environment);
	Environment = extend(symbol_ref("*library-path*"), NIL, Environment);
	S_library_path = cadr(Environment);
	set(box_value(S_library_path), get_library_path());
	Environment = extend(symbol_ref("*loading*"), FALSE, Environment);
	S_loading = cadr(Environment);
	Callcc_magic = -1;
	Last_prim = 0;
	Max_prims = 0;
	grow_primitives();
	add_primitives(NULL, Core_primitives);
	Environment = node(Environment, NIL);
	Program = TRUE; /* or rehash() will not work */
	rehash(car(Environment));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
xorl %r14d, %r14d
movq $-0x1, %rdi
movq $-0x1, %rsi
xorl %edx, %edx
callq 0x36e8
movq %rax, 0x9538(%rip)      # 0x1e108
leaq 0x1671(%rip), %rdi      # 0x16248
callq 0x720e
movq 0x9525(%rip), %rbx      # 0x1e108
movq %rax, %rdi
movq $-0x1, %rsi
movq %rbx, %rdx
callq 0xda16
movq %rbx, 0x950c(%rip)      # 0x1e108
movq 0x956d(%rip), %rax      # 0x1e170
movq 0x99b6(%rip), %rcx      # 0x1e5c0
movq (%rcx,%rbx,8), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x9fd7(%rip)      # 0x1ebf0
leaq 0x2820(%rip), %rdi      # 0x17440
callq 0x720e
movq 0x94dc(%rip), %rbx      # 0x1e108
movq %rax, %rdi
movq $-0x1, %rsi
movq %rbx, %rdx
callq 0xda16
movq %rbx, 0x94c3(%rip)      # 0x1e108
movq 0x9524(%rip), %rax      # 0x1e170
movq 0x996d(%rip), %rcx      # 0x1e5c0
movq (%rcx,%rbx,8), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x9f9e(%rip)      # 0x1ec00
leaq 0x27e4(%rip), %rdi      # 0x1744d
callq 0x720e
movq 0x9493(%rip), %rbx      # 0x1e108
movq %rax, %rdi
movq $-0x1, %rsi
movq %rbx, %rdx
callq 0xda16
movq %rbx, 0x947a(%rip)      # 0x1e108
movq 0x94db(%rip), %rax      # 0x1e170
movq 0x9924(%rip), %rcx      # 0x1e5c0
movq (%rcx,%rbx,8), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x9f5d(%rip)      # 0x1ec08
callq 0x1470c
movq 0x9909(%rip), %rcx      # 0x1e5c0
movq 0x9f4a(%rip), %rdx      # 0x1ec08
movq %rax, (%rcx,%rdx,8)
leaq 0x2793(%rip), %rdi      # 0x1745c
callq 0x720e
movq 0x9433(%rip), %rbx      # 0x1e108
movq %rax, %rdi
movq $-0x3, %rsi
movq %rbx, %rdx
callq 0xda16
movq %rbx, 0x941a(%rip)      # 0x1e108
movq 0x947b(%rip), %rax      # 0x1e170
movq 0x98c4(%rip), %rcx      # 0x1e5c0
movq (%rcx,%rbx,8), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x98bd(%rip)      # 0x1e5c8
movq $-0x1, 0x9ed2(%rip) # 0x1ebe8
movl %r14d, 0x9ef3(%rip)     # 0x1ec10
movl %r14d, 0x9ef0(%rip)     # 0x1ec14
callq 0x14a17
leaq 0x85e0(%rip), %rsi      # 0x1d310
xorl %edi, %edi
callq 0x14a61
movq 0x93ca(%rip), %rdi      # 0x1e108
movq $-0x1, %rsi
xorl %edx, %edx
callq 0x36e8
movq %rax, 0x93b5(%rip)      # 0x1e108
movq $-0x2, 0x939a(%rip) # 0x1e0f8
movq 0x940b(%rip), %rcx      # 0x1e170
movq (%rcx,%rax,8), %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0xd8da
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: init_extensions
void init_extensions(void) {
	cell	e, n;
	char	initproc[TOKEN_LENGTH+2];
	char	*s;
	char	*mlite = "mlite";

	e = box_value(S_extensions);
	while (mlite || e != NIL) {
		s = mlite? mlite: string(car(e));
		if (strlen(s)*2+1 >= TOKEN_LENGTH)
			fatal("init_extension(): procedure name too long");
		sprintf(initproc, "%s:%s", s, s);
		n = find_symbol(initproc);
		if (n != NIL) {
			n = node(n, NIL);
			eval(n);
		}
		e = mlite? e: cdr(e);
		mlite = NULL;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq 0x93af(%rip), %rax      # 0x1e5c0
movq 0x99e8(%rip), %rcx      # 0x1ec00
movq (%rax,%rcx,8), %r12
movb $0x1, %r13b
leaq 0x218e(%rip), %r15      # 0x173b4
leaq 0x22c3(%rip), %rbx      # 0x174f0
leaq -0x430(%rbp), %r14
testb $0x1, %r13b
jne 0x1525b
movq 0x937f(%rip), %rax      # 0x1e5c0
movq 0x8f28(%rip), %rcx      # 0x1e170
movq (%rcx,%r12,8), %rcx
movq (%rax,%rcx,8), %r15
shlq $0x3, %r15
addq 0x938d(%rip), %r15      # 0x1e5e8
movq %r15, %rdi
callq 0x30a0
movabsq $0x7ffffffffffffe00, %rcx # imm = 0x7FFFFFFFFFFFFE00
testq %rcx, %rax
jne 0x152e2
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x31f0
movq %r14, %rdi
callq 0x715b
cmpq $-0x1, %rax
je 0x152ac
movq %rax, %rdi
movq $-0x1, %rsi
xorl %edx, %edx
callq 0x36e8
movq %rax, %rdi
callq 0x11a6a
testb $0x1, %r13b
jne 0x152bd
movq 0x9307(%rip), %rax      # 0x1e5c0
movq (%rax,%r12,8), %r12
xorl %r15d, %r15d
movl $0x0, %r13d
cmpq $-0x1, %r12
jne 0x15234
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x21dd(%rip), %rdi      # 0x174c6
callq 0x3ab4
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: usage
void usage(int quit) {
	pr("Usage: mlite [-h?] [-i name] [-gqv] [-f prog [args]] ");
	pr("[-m size[m]]");
	nl();
	pr("             [-l prog] [-t count] [-d image] [-- [args]]");
	nl();
	if (quit) bye(1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edi, %ebx
leaq 0x21f8(%rip), %rdi      # 0x174f6
callq 0x3964
leaq 0x2222(%rip), %rdi      # 0x1752c
callq 0x3964
leaq 0x25c1(%rip), %r14      # 0x178d7
movq %r14, %rdi
callq 0x3964
leaq 0x2214(%rip), %rdi      # 0x17539
callq 0x3964
movq %r14, %rdi
callq 0x3964
testl %ebx, %ebx
jne 0x1533b
popq %rbx
popq %r14
popq %rbp
retq
movl $0x1, %edi
callq 0x3200
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: long_usage
void long_usage() {
	nl();
	usage(0);
	nl();
	pr("-h              display this summary (also -?)"); nl();
	pr("-i name         base name of image file (must be first option!)");
	nl();
	pr("-i -            ignore image, load mlite.m instead"); nl();
	pr("-d file         dump heap image to file and exit"); nl();
	pr("-f file [args]  run program and exit (implies -q)"); nl();
	pr("-g              print GC summaries (-gg = more)"); nl();
	pr("-l file         load program (may be repeated)"); nl();
	pr("-m n[m]         set memory limit to nK (or nM) nodes"); nl();
	pr("-q              be quiet (no banner, no prompt, exit on errors)");
	nl();
	pr("-t n            list up to N procedures in call traces"); nl();
	pr("-v              print version and exit"); nl();
	pr("-- [args]       pass subsequent arguments to program"); nl();
	nl();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq 0x2585(%rip), %rbx      # 0x178d7
movq %rbx, %rdi
callq 0x3964
xorl %edi, %edi
callq 0x152ee
movq %rbx, %rdi
callq 0x3964
leaq 0x2202(%rip), %rdi      # 0x17572
callq 0x3964
movq %rbx, %rdi
callq 0x3964
leaq 0x221d(%rip), %rdi      # 0x175a1
callq 0x3964
movq %rbx, %rdi
callq 0x3964
leaq 0x2249(%rip), %rdi      # 0x175e1
callq 0x3964
movq %rbx, %rdi
callq 0x3964
leaq 0x2268(%rip), %rdi      # 0x17614
callq 0x3964
movq %rbx, %rdi
callq 0x3964
leaq 0x2285(%rip), %rdi      # 0x17645
callq 0x3964
movq %rbx, %rdi
callq 0x3964
leaq 0x22a3(%rip), %rdi      # 0x17677
callq 0x3964
movq %rbx, %rdi
callq 0x3964
leaq 0x22bf(%rip), %rdi      # 0x176a7
callq 0x3964
movq %rbx, %rdi
callq 0x3964
leaq 0x22da(%rip), %rdi      # 0x176d6
callq 0x3964
movq %rbx, %rdi
callq 0x3964
leaq 0x22fb(%rip), %rdi      # 0x1770b
callq 0x3964
movq %rbx, %rdi
callq 0x3964
leaq 0x2327(%rip), %rdi      # 0x1774b
callq 0x3964
movq %rbx, %rdi
callq 0x3964
leaq 0x234a(%rip), %rdi      # 0x17782
callq 0x3964
movq %rbx, %rdi
callq 0x3964
leaq 0x235d(%rip), %rdi      # 0x177a9
callq 0x3964
movq %rbx, %rdi
callq 0x3964
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x3964
// File: /workspace/github_c_makefile_star2_O3/azhai[P]mlite/mlite.c
// Function: get_size_k
long get_size_k(char *s) {
	int	c;
	long	n;

	c = s[strlen(s)-1];
	n = atol(s);
	if (isdigit(c))
		;
	else if (c == 'M' || c == 'm')
		n *= 1024L;
	else
		usage(1);
	return n * 1024;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x30a0
movsbq -0x1(%rbx,%rax), %r14
movq %rbx, %rdi
callq 0x31b0
movq %rax, %rbx
callq 0x3230
movq (%rax), %rax
testb $0x8, 0x1(%rax,%r14,2)
jne 0x15707
andb $-0x21, %r14b
cmpb $0x4d, %r14b
jne 0x156fd
shlq $0xa, %rbx
jmp 0x15707
movl $0x1, %edi
callq 0x152ee
shlq $0xa, %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/sguerrini97[P]ps3linux-ps3vuart-tools/ps3sm/dev.c
// Function: dev_read
int
dev_read(void *buf, size_t len)
{
	char tmp[4096];
	struct ps3sm_header *hdr;
	int ret;

	if (fd < 0)
		return (-1);

	hdr = (struct ps3sm_header *) tmp;

	while (1) {
		ret = read(fd, hdr, sizeof(*hdr));
		if (ret < 0) {
			if (errno != EAGAIN)
				return (-1);
		} else if (ret > 0) {
			break;
		}
	}

	while (1) {
		ret = read(fd, hdr + 1, hdr->payload_length);
		if (ret < 0) {
			if (errno != EAGAIN)
				return (-1);
		} else if (ret > 0) {
			break;
		}
	}

	if (len > (sizeof(*hdr) + hdr->payload_length))
		len = sizeof(*hdr) + hdr->payload_length;

	memcpy(buf, tmp, len);

	return (len);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
movq %rdi, %r14
movl 0x2d5c(%rip), %edi      # 0x41b0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testl %edi, %edi
js 0x14d1
movq %rsi, %r15
movq %rsp, %r12
movl $0x10, %edx
movq %r12, %rsi
callq 0x1090
testl %eax, %eax
js 0x1478
je 0x1482
jmp 0x148a
callq 0x1030
cmpl $0xb, (%rax)
jne 0x14d1
movl 0x2d28(%rip), %edi      # 0x41b0
jmp 0x1463
leaq 0x10(%rsp), %r12
movl 0x2d1b(%rip), %edi      # 0x41b0
movl 0x4(%rsp), %edx
movq %r12, %rsi
callq 0x1090
testl %eax, %eax
js 0x14a9
je 0x148f
jmp 0x14b5
callq 0x1030
cmpl $0xb, (%rax)
je 0x148f
jmp 0x14d1
movq %rsp, %rsi
movl 0x4(%rsi), %ebx
addq $0x10, %rbx
cmpq %r15, %rbx
cmovaeq %r15, %rbx
movq %r14, %rdi
movq %rbx, %rdx
callq 0x10c0
movl %ebx, %eax
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/sguerrini97[P]ps3linux-ps3vuart-tools/ps3sm/cmd/cmd_get_inter_lpar_param.c
// Function: cmd_get_inter_lpar_param_exec
int
cmd_get_inter_lpar_param_exec(int cmdc, struct cmd **cmdv, int argc, char **argv)
{
	struct ps3sm_get_inter_lpar_param get_inter_lpar_param;
	struct ps3sm_get_inter_lpar_param_reply get_inter_lpar_param_reply;
	uint32_t arg;
	char *endptr;
	int ret;

	arg = strtoul(argv[0], &endptr, 0);
	if (*endptr != '\0' || arg < 1 || arg > 2)
		return (CMD_EINVAL);

	ps3sm_init_header(PS3SM_HDR(&get_inter_lpar_param),
	    sizeof(get_inter_lpar_param) - sizeof(struct ps3sm_header),
	    PS3SM_SID_GET_INTER_LPAR_PARAM, 0);

	get_inter_lpar_param.version = PS3SM_GET_INTER_LPAR_PARAM_VERSION;
	get_inter_lpar_param.arg = arg;

	ret = dev_write(&get_inter_lpar_param, sizeof(get_inter_lpar_param));
	if (ret != sizeof(get_inter_lpar_param))
		return (CMD_EIO);

	ret = dev_read(&get_inter_lpar_param_reply, sizeof(get_inter_lpar_param_reply));
	if (ret < 0)
		return (CMD_EIO);

	if (arg == 1)
		hex_fprintf(stdout, (char *) get_inter_lpar_param_reply.u.arg1.data,
		    sizeof(PS3SM_HDR(&get_inter_lpar_param_reply)->payload_length));
	else
		fprintf(stdout, "%02x %02x %02x %02x %08x %016llx\n",
		    get_inter_lpar_param_reply.u.arg2.val1,
		    get_inter_lpar_param_reply.u.arg2.val2,
		    get_inter_lpar_param_reply.u.arg2.val3,
		    get_inter_lpar_param_reply.u.arg2.val4,
		    get_inter_lpar_param_reply.u.arg2.val5,
		    get_inter_lpar_param_reply.u.arg2.val6);

	return (CMD_EOK);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x630, %rsp            # imm = 0x630
movq (%rcx), %rdi
movq %rsp, %r14
movq %r14, %rsi
xorl %edx, %edx
callq 0x10f0
movq %rax, %rbx
movq (%r14), %rax
cmpb $0x0, (%rax)
setne %al
leal -0x3(%rbx), %ecx
cmpl $-0x2, %ecx
setb %cl
orb %al, %cl
movl $0x2, %ebp
jne 0x16e8
leaq 0x8(%rsp), %rdi
movw $0x1001, (%rdi)         # imm = 0x1001
movl $0x8, 0x4(%rdi)
movw $0x9, 0x8(%rdi)
movl $0x0, 0xc(%rdi)
movb $0x1, 0x10(%rdi)
movb %bl, 0x11(%rdi)
movl $0x18, %esi
callq 0x141c
movl $0x3, %ebp
cmpl $0x18, %eax
jne 0x16e8
leaq 0x20(%rsp), %rdi
movl $0x610, %esi            # imm = 0x610
callq 0x143d
testl %eax, %eax
js 0x16e8
movq 0x2930(%rip), %rax      # 0x3fc8
movq (%rax), %rdi
cmpl $0x1, %ebx
jne 0x16b3
leaq 0x30(%rsp), %rsi
movl $0x4, %edx
callq 0x1c69
xorl %ebp, %ebp
jmp 0x16e8
movzbl 0x30(%rsp), %edx
movzbl 0x31(%rsp), %ecx
movzbl 0x32(%rsp), %r8d
movzbl 0x33(%rsp), %r9d
movl 0x34(%rsp), %r10d
leaq 0xa6b(%rip), %rsi       # 0x2140
xorl %ebp, %ebp
xorl %eax, %eax
pushq 0x38(%rsp)
pushq %r10
callq 0x10b0
addq $0x10, %rsp
movl %ebp, %eax
addq $0x630, %rsp            # imm = 0x630
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/sguerrini97[P]ps3linux-ps3vuart-tools/ps3sm/cmd/cmd_get_temperature.c
// Function: cmd_get_temperature_exec
int
cmd_get_temperature_exec(int cmdc, struct cmd **cmdv, int argc, char **argv)
{
	struct ps3sm_get_temperature get_temperature;
	struct ps3sm_get_temperature_reply get_temperature_reply;

	uint8_t cell_rsx;
	char *endptr;
	int ret;

	cell_rsx = strtoul(argv[0], &endptr, 0);
	if (*endptr != '\0' || cell_rsx > 1)
		return (CMD_EINVAL);


	ps3sm_init_header(PS3SM_HDR(&get_temperature),
	    sizeof(get_temperature) - sizeof(struct ps3sm_header),
	    PS3SM_SID_GET_TEMPERATURE, 0);

	get_temperature.version = PS3SM_GET_TEMPERATURE_VERSION;
	get_temperature.arg = cell_rsx;

	ret = dev_write(&get_temperature, sizeof(get_temperature));
	if (ret != sizeof(get_temperature))
		return (CMD_EIO);
	
	ret = dev_read(&get_temperature_reply, sizeof(get_temperature_reply));
	if (ret < 0)
		return (CMD_EIO);
	
	fprintf(stdout, "%02d.%02d\n", get_temperature_reply.temp_0, ((get_temperature_reply.temp_1*0x64) >> 8));

	return (CMD_EOK);
}

// Assembly:
pushq %rbx
subq $0x40, %rsp
movq (%rcx), %rdi
leaq 0x8(%rsp), %rbx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x10f0
movq (%rbx), %rcx
cmpb $0x0, (%rcx)
setne %cl
testb $-0x2, %al
setne %dl
orb %cl, %dl
movl $0x2, %ebx
jne 0x179c
leaq 0x2c(%rsp), %rdi
movw $0x1001, (%rdi)         # imm = 0x1001
movl $0x4, 0x4(%rdi)
movw $0xd, 0x8(%rdi)
movl $0x0, 0xc(%rdi)
movb $0x1, 0x10(%rdi)
movb %al, 0x11(%rdi)
movl $0x14, %esi
callq 0x141c
movl $0x3, %ebx
cmpl $0x14, %eax
jne 0x179c
leaq 0x14(%rsp), %rdi
movl $0x18, %esi
callq 0x143d
testl %eax, %eax
js 0x179c
movq 0x284f(%rip), %rax      # 0x3fc8
movq (%rax), %rdi
movzbl 0x28(%rsp), %edx
movzbl 0x29(%rsp), %eax
imull $0x64, %eax, %ecx
shrl $0x8, %ecx
leaq 0xa18(%rip), %rsi       # 0x21ab
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x10b0
movl %ebx, %eax
addq $0x40, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/sguerrini97[P]ps3linux-ps3vuart-tools/ps3sm/cmd/cmd_set_attr.c
// Function: cmd_set_attr_exec
int
cmd_set_attr_exec(int cmdc, struct cmd **cmdv, int argc, char **argv)
{
	struct ps3sm_set_attr set_attr;
	uint32_t attrs;
	char *endptr;
	int ret;

	attrs = strtoul(argv[0], &endptr, 0);
	if (*endptr != '\0')
		return (CMD_EINVAL);

	ps3sm_init_header(PS3SM_HDR(&set_attr),
	    sizeof(set_attr) - sizeof(struct ps3sm_header),
	    PS3SM_SID_SET_ATTR, 0);

	set_attr.version = PS3SM_SET_ATTR_VERSION;
	set_attr.attrs = attrs;

	ret = dev_write(&set_attr, sizeof(set_attr));
	if (ret != sizeof(set_attr))
		return (CMD_EIO);

	return (CMD_EOK);
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movq (%rcx), %rdi
movq %rsp, %rbx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x10f0
movq (%rbx), %rdx
movl $0x2, %ecx
cmpb $0x0, (%rdx)
jne 0x18d8
leaq 0x8(%rsp), %rdi
movw $0x1001, (%rdi)         # imm = 0x1001
movl $0x8, 0x4(%rdi)
movw $0x8, 0x8(%rdi)
movl $0x0, 0xc(%rdi)
movb $0x1, 0x10(%rdi)
movl %eax, 0x14(%rdi)
movl $0x18, %esi
callq 0x141c
xorl %ecx, %ecx
cmpl $0x18, %eax
setne %cl
leal (%rcx,%rcx,2), %ecx
movl %ecx, %eax
addq $0x20, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/0x3f00[P]PhotonCpp/./PhotonLayer.h
// Function: PhotonLayer::PhotonLayer(int, int)
PhotonLayer(int width, int height) {
        width_ = width;
        height_ = height;

		for (int h = 0; h < height; h++)
			iArray.push_back({});

		for (int h = 0; h < height; h++)
			iArray[h].resize(width);

        pixels.resize(height);
        rowIslands.resize(height);
        rowUnsupported.resize(height);
        rowSupported.resize(height);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, %r13d
movl $0x0, 0x8(%rdi)
leaq 0x10(%rdi), %rbx
leaq 0x28(%rdi), %rax
movq %rax, -0x48(%rbp)
leaq 0x40(%rdi), %rax
movq %rax, -0x40(%rbp)
leaq 0x58(%rdi), %rax
movq %rax, -0x38(%rbp)
leaq 0x70(%rdi), %rax
movq %rax, -0x30(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
movups %xmm0, 0x60(%rdi)
movups %xmm0, 0x70(%rdi)
movq $0x0, 0x80(%rdi)
movl %esi, (%rdi)
movl %edx, 0x4(%rdi)
testl %edx, %edx
jle 0x82c2
movl %esi, %r15d
leaq -0x60(%rbp), %r12
movl %r13d, %r14d
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
movq $0x0, -0x50(%rbp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x94f0
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x8290
callq 0x21d0
decl %r14d
jne 0x8268
testl %r13d, %r13d
jle 0x82c2
movslq %r15d, %r15
movl %r13d, %eax
shlq $0x3, %rax
leaq (%rax,%rax,2), %r14
xorl %r12d, %r12d
movq (%rbx), %rdi
addq %r12, %rdi
movq %r15, %rsi
callq 0x9432
addq $0x18, %r12
cmpq %r12, %r14
jne 0x82ab
movslq %r13d, %r14
movq -0x48(%rbp), %rdi
movq %r14, %rsi
callq 0x9464
movq -0x40(%rbp), %rdi
movq %r14, %rsi
callq 0x9464
movq -0x38(%rbp), %rdi
movq %r14, %rsi
callq 0x9464
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x9464
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8306
movq %rax, %r14
jmp 0x831c
movq %rax, %r14
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x831c
callq 0x21d0
movq -0x30(%rbp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x832d
callq 0x21d0
movq -0x38(%rbp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x833e
callq 0x21d0
movq -0x40(%rbp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x834f
callq 0x21d0
movq -0x48(%rbp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x8360
callq 0x21d0
movq %rbx, %rdi
callq 0x949c
movq %r14, %rdi
callq 0x23b0
// File: /workspace/github_c_makefile_star2_O3/0x3f00[P]PhotonCpp/./PhotonFilePreview.h
// Function: PhotonFilePreview::PhotonFilePreview(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
PhotonFilePreview(int previewAddress, const std::string & fileContent) {
        std::string data(fileContent.begin() + previewAddress, fileContent.begin() + previewAddress + 32);
		std::stringstream ss(data);
        PhotonInputStream ds(ss);

        resolutionX_ = ds.readInt();
        resolutionY_ = ds.readInt();
        imageAddress_ = ds.readInt();
        dataSize_ = ds.readInt();
        p1_ = ds.readInt();
        p2_ = ds.readInt();
        p3_ = ds.readInt();
        p4_ = ds.readInt();

        rawImageData_.assign(fileContent.begin() + imageAddress_, fileContent.begin() + imageAddress_ + dataSize_);

        decodeImageData();
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rdx, %r15
movq %rdi, %r14
leaq 0x10(%rdi), %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movq (%rdx), %rax
movslq %esi, %rcx
leaq (%rax,%rcx), %rsi
leaq 0x20(%rax,%rcx), %rdx
leaq -0x40(%rbp), %r13
movq %r13, -0x10(%r13)
leaq -0x50(%rbp), %rdi
callq 0x9ff2
leaq -0x1d8(%rbp), %r12
leaq -0x50(%rbp), %rsi
movq %r12, %rdi
movl $0x18, %edx
callq 0x2350
leaq -0x30(%rbp), %rdi
movq %r12, (%rdi)
callq 0x9d04
movl %eax, (%r14)
leaq -0x30(%rbp), %rdi
callq 0x9d04
movl %eax, 0x4(%r14)
leaq -0x30(%rbp), %rdi
callq 0x9d04
movl %eax, 0x8(%r14)
leaq -0x30(%rbp), %rdi
callq 0x9d04
movl %eax, 0xc(%r14)
leaq -0x30(%rbp), %rdi
callq 0x9d04
movl %eax, 0x40(%r14)
leaq -0x30(%rbp), %rdi
callq 0x9d04
movl %eax, 0x44(%r14)
leaq -0x30(%rbp), %rdi
callq 0x9d04
movl %eax, 0x48(%r14)
leaq -0x30(%rbp), %rdi
callq 0x9d04
movl %eax, 0x4c(%r14)
movslq 0x8(%r14), %rsi
addq (%r15), %rsi
movslq 0xc(%r14), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xa074
movq %r14, %rdi
callq 0x9f2c
movq 0x97ce(%rip), %rsi      # 0x11fa8
leaq -0x1d8(%rbp), %rdi
callq 0x2180
leaq -0x158(%rbp), %rdi
callq 0x20d0
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x8800
callq 0x21d0
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x881e
movq %rax, %r15
jmp 0x8840
movq %rax, %r15
jmp 0x884e
movq %rax, %r15
movq 0x9780(%rip), %rsi      # 0x11fa8
leaq -0x1d8(%rbp), %rdi
callq 0x2180
leaq -0x158(%rbp), %rdi
callq 0x20d0
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x884e
callq 0x21d0
movq 0x28(%r14), %rdi
testq %rdi, %rdi
je 0x885c
callq 0x21d0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x8869
callq 0x21d0
movq %r15, %rdi
callq 0x23b0
nop