LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/giometti[P]mastering_UNIX_programming/chapter_04/atime.c
// Function: main
int main(int argc, char *argv[])
{
	struct tm tm;
	struct timespec times[2];
	char *c;
	int fd;
        int ret;

	/* Do not touch the last modification time! */
	times[1].tv_nsec = UTIME_OMIT;

        if (argc < 2) {
                fprintf(stderr, "usage: %s <file> [<newtime>]\n",
                        argv[0]);
                return -1;
        } else if (argc > 2) {
		/* Parse the new time as: Mmm DD HH:MM:SS YYYY*/
		c = strptime(argv[2],
			"%b %d %H:%M:%S %Y", &tm);
		if (c == NULL || *c != '\0') {
			fprintf(stderr, "invalid time!\n");
			return -1;	
		}
		times[0].tv_sec = mktime(&tm);
		times[0].tv_nsec = 0;
	} else {
		/* Set the current time */
		times[0].tv_nsec = UTIME_NOW;
	}

	ret = open(argv[1], O_RDONLY);
	if (ret < 0) {
		perror("open");
		return -1;
	}
	fd = ret;

	ret = futimens(fd, times);
	if (ret < 0) {
		perror("open");
		return -1;
	}

	close(fd);

        return 0;
}

// Assembly:
pushq %rbx
subq $0x60, %rsp
movq %rsi, %rbx
movq $0x3ffffffe, 0x18(%rsp) # imm = 0x3FFFFFFE
cmpl $0x1, %edi
jle 0x127a
movl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
cmpl $0x2, %edi
je 0x123b
movq 0x10(%rbx), %rdi
leaq 0xe0b(%rip), %rsi       # 0x2022
leaq 0x28(%rsp), %rdx
callq 0x10a0
testq %rax, %rax
je 0x1284
cmpb $0x0, (%rax)
jne 0x1284
leaq 0x28(%rsp), %rdi
callq 0x1050
movq %rax, (%rsp)
xorl %eax, %eax
movq %rax, 0x8(%rsp)
movq 0x8(%rbx), %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x1060
testl %eax, %eax
js 0x126c
movl %eax, %ebx
movq %rsp, %rsi
movl %eax, %edi
callq 0x1080
testl %eax, %eax
js 0x126c
movl %ebx, %edi
callq 0x1030
xorl %eax, %eax
jmp 0x128e
leaq 0xdd0(%rip), %rdi       # 0x2043
callq 0x1070
jmp 0x1289
movq %rbx, %rdi
callq 0x10e2
jmp 0x1289
callq 0x10c0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x60, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/cailei[P]luajit/src/host/buildvm.c
// Function: sym_decorate
static const char *sym_decorate(BuildCtx *ctx,
				const char *prefix, const char *suffix)
{
  char name[256];
  char *p;
#if LJ_64
  const char *symprefix = ctx->mode == BUILD_machasm ? "_" : "";
#elif LJ_TARGET_XBOX360
  const char *symprefix = "";
#else
  const char *symprefix = ctx->mode != BUILD_elfasm ? "_" : "";
#endif
  sprintf(name, "%s%s%s", symprefix, prefix, suffix);
  p = strchr(name, '@');
  if (p) {
    if (!LJ_64 && (ctx->mode == BUILD_coffasm || ctx->mode == BUILD_peobj))
      name[0] = '@';
    else
      *p = '\0';
  }
  p = (char *)malloc(strlen(name)+1);  /* MSVC doesn't like strdup. */
  strcpy(p, name);
  return p;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdx, %r8
movq %rsi, %rcx
cmpl $0x2, 0x8(%rdi)
leaq 0xaf01(%rip), %rax      # 0x1216f
leaq 0xa7dc(%rip), %rdx      # 0x11a51
cmoveq %rax, %rdx
leaq 0x90b0(%rip), %rsi      # 0x10330
movq %rsp, %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x5190
movq %rbx, %rdi
movl $0x40, %esi
callq 0x50b0
testq %rax, %rax
je 0x72a2
movb $0x0, (%rax)
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x50a0
leaq 0x1(%rax), %rdi
callq 0x5140
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x5060
movq %r14, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/sos22[P]unexec/tests/sigsafe.c
// Function: main
int main() {
    close(mkstemp(path));
    signal(SIGALRM, sighandler);
    double start = now();
    double last = now();
    while (true) {
        double cntr = now();
        if (cntr - start > 10) break;
        assert(cntr - last < 1);
        printf("iter %d time %f\n", nr_signals, cntr - last);
        last = cntr;
        struct itimerval itimer = {
            .it_interval = {
                .tv_sec = 0,
                .tv_usec = 10000, },
            .it_value = {
                .tv_sec = 0,
                .tv_usec = 10000, } };
        signalled = false;
        if (setitimer(ITIMER_REAL, &itimer, NULL) < 0) err(1, "setitimer");
        while (!signalled) {
            unsigned r = random() % 100000;
            void * ptr = malloc(r);
            free(ptr); } }
    unlink(path);
    return 0; }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
leaq 0x2e88(%rip), %rdi      # 0x4088
callq 0x10b0
movl %eax, %edi
callq 0x1070
leaq 0x181(%rip), %rsi       # 0x1394
movl $0xe, %edi
callq 0x1080
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1050
cvtsi2sdq (%rbx), %xmm0
cvtsi2sdq 0x8(%rbx), %xmm1
mulsd 0xdca(%rip), %xmm1      # 0x2008
addsd %xmm0, %xmm1
movsd %xmm1, -0x38(%rbp)
leaq -0x48(%rbp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x1050
xorps %xmm0, %xmm0
cvtsi2sdq (%r14), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdq 0x8(%r14), %xmm1
mulsd 0xd9a(%rip), %xmm1      # 0x2008
addsd %xmm0, %xmm1
movsd %xmm1, -0x20(%rbp)
leaq 0xdcd(%rip), %r14       # 0x204b
leaq 0xe13(%rip), %r15       # 0x2098
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1050
xorps %xmm0, %xmm0
cvtsi2sdq -0x48(%rbp), %xmm0
xorps %xmm2, %xmm2
cvtsi2sdq -0x40(%rbp), %xmm2
mulsd 0xd5f(%rip), %xmm2      # 0x2008
addsd %xmm0, %xmm2
movsd 0xd5b(%rip), %xmm0      # 0x2010
movapd %xmm2, %xmm1
subsd -0x38(%rbp), %xmm1
ucomisd %xmm0, %xmm1
ja 0x133f
movsd %xmm1, -0x30(%rbp)
movsd %xmm2, -0x28(%rbp)
movapd %xmm2, %xmm0
subsd -0x20(%rbp), %xmm0
movsd 0xd39(%rip), %xmm1      # 0x2018
ucomisd %xmm0, %xmm1
jbe 0x1375
movl 0x2dad(%rip), %esi      # 0x409c
movq %r14, %rdi
movb $0x1, %al
callq 0x1040
movb $0x0, 0x2da0(%rip)      # 0x40a0
xorl %edi, %edi
movq %r15, %rsi
xorl %edx, %edx
callq 0x10c0
testl %eax, %eax
js 0x1362
cmpb $0x0, 0x2d89(%rip)      # 0x40a0
jne 0x1328
callq 0x1090
movb 0x2d7c(%rip), %al       # 0x40a0
cmpb $0x1, %al
jne 0x1319
movsd -0x28(%rbp), %xmm0
movsd %xmm0, -0x20(%rbp)
movsd 0xcd6(%rip), %xmm0      # 0x2010
movsd -0x30(%rbp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x1285
leaq 0x2d38(%rip), %rdi      # 0x4088
callq 0x1030
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xcf3(%rip), %rsi       # 0x205c
movl $0x1, %edi
xorl %eax, %eax
callq 0x10a0
leaq 0xca4(%rip), %rdi       # 0x2020
leaq 0xcad(%rip), %rsi       # 0x2030
leaq 0xcb6(%rip), %rcx       # 0x2040
movl $0x2a, %edx
callq 0x1060
// File: /workspace/github_c_makefile_star2_O1/sos22[P]unexec/tests/sigsafe.c
// Function: sighandler
static void sighandler(int ignore __attribute__((unused))) {
    assert(!signalled);
    nr_signals++;
    int r = unexec(path, NULL);
    if (r < 0) err(1, "unexec");
    if (r == 1) {
        execl(path, path, NULL);
        err(1, "execl %s", path); }
    unlink(path);
    signalled = true; }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movb 0x2d00(%rip), %al       # 0x40a0
cmpb $0x1, %al
je 0x13db
incl 0x2cf2(%rip)            # 0x409c
leaq 0x2cd7(%rip), %rdi      # 0x4088
xorl %esi, %esi
callq 0x10d0
testl %eax, %eax
js 0x13fa
cmpl $0x1, %eax
je 0x140d
leaq 0x2cc0(%rip), %rdi      # 0x4088
callq 0x1030
movb $0x1, 0x2ccc(%rip)      # 0x40a0
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0xc84(%rip), %rdi       # 0x2066
leaq 0xc47(%rip), %rsi       # 0x2030
leaq 0xc81(%rip), %rcx       # 0x2071
movl $0x18, %edx
callq 0x1060
leaq 0xc85(%rip), %rsi       # 0x2086
movl $0x1, %edi
xorl %eax, %eax
callq 0x10a0
leaq 0x2c74(%rip), %rbx      # 0x4088
movq %rbx, %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %eax, %eax
callq 0x10e0
leaq 0xc63(%rip), %rsi       # 0x208d
movl $0x1, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O1/chatziko-k08[P]lecture-code/tests/ADTStack_test.c
// Function: test_create
void test_create(void) {
	Stack stack = stack_create(NULL);
	stack_set_destroy_value(stack, NULL);

	TEST_ASSERT(stack != NULL);
	TEST_ASSERT(stack_size(stack) == 0);

	stack_destroy(stack);
}

// Assembly:
pushq %rbx
xorl %edi, %edi
callq 0x456c
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
callq 0x459c
xorl %edi, %edi
testq %rbx, %rbx
setne %dil
leaq 0x1547(%rip), %rsi      # 0x5318
leaq 0x1661(%rip), %rcx      # 0x5439
leaq 0x1549(%rip), %r8       # 0x5328
movl $0x11, %edx
xorl %eax, %eax
callq 0x25cc
testl %eax, %eax
je 0x3e2d
movq %rbx, %rdi
callq 0x4571
xorl %edi, %edi
testl %eax, %eax
sete %dil
leaq 0x1512(%rip), %rsi      # 0x5318
leaq 0x162c(%rip), %rcx      # 0x5439
leaq 0x1522(%rip), %r8       # 0x5336
movl $0x12, %edx
xorl %eax, %eax
callq 0x25cc
testl %eax, %eax
je 0x3e2d
movq %rbx, %rdi
popq %rbx
jmp 0x45a1
callq 0x2e13
// File: /workspace/github_c_makefile_star2_O1/chatziko-k08[P]lecture-code/tests/ADTStack_test.c
// Function: test_insert
void test_insert(void) {
	Stack stack = stack_create(NULL);
	int N = 1000;
	int* array = malloc(N * sizeof(*array));					// Στο stack θα προσθέσουμε pointers προς τα στοιχεία αυτού του πίνακα

	// insert 1000 στοιχεία
	for (int i = 0; i < 1000; i++) {
		stack_insert_top(stack, &array[i]);
		TEST_ASSERT(stack_size(stack) == i+1);		// Το μέγεθος πρέπει να μεγαλώσει
		TEST_ASSERT(stack_top(stack) == &array[i]);	// Στην κορυφή είναι πάντα το στοιχείο που μόλις βάλαμε!
	}

	stack_destroy(stack);
	free(array);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
xorl %edi, %edi
callq 0x456c
movq %rax, %rbx
movl $0xfa0, %edi            # imm = 0xFA0
callq 0x21b0
movq %rax, %r14
movl $0x1, %r13d
leaq 0x14b7(%rip), %r15      # 0x5318
leaq 0x15d1(%rip), %r12      # 0x5439
leaq 0x14f7(%rip), %rbp      # 0x5366
movq %rax, (%rsp)
cmpq $0x3e9, %r13            # imm = 0x3E9
je 0x3eed
movq %rbx, %rdi
movq %r14, %rsi
callq 0x458b
movq %rbx, %rdi
callq 0x4571
movl %eax, %eax
xorl %edi, %edi
cmpq %rax, %r13
sete %dil
movq %r15, %rsi
movl $0x1f, %edx
movq %r12, %rcx
leaq 0x14a1(%rip), %r8       # 0x534d
xorl %eax, %eax
callq 0x25cc
testl %eax, %eax
je 0x3ee8
movq %rbx, %rdi
callq 0x4576
xorl %edi, %edi
cmpq %rax, %r14
sete %dil
movq %r15, %rsi
movl $0x20, %edx
movq %r12, %rcx
movq %rbp, %r8
xorl %eax, %eax
callq 0x25cc
incq %r13
addq $0x4, %r14
testl %eax, %eax
jne 0x3e73
callq 0x2e13
movq %rbx, %rdi
callq 0x45a1
movq (%rsp), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2030
// File: /workspace/github_c_makefile_star2_O1/chatziko-k08[P]lecture-code/tests/ADTStack_test.c
// Function: test_remove
void test_remove(void) {
	Stack stack = stack_create(NULL);
	int N = 1000;
	int* array = malloc(N * sizeof(*array));

	// insert για προσθήκη δεδομένων, χωρίς ελέγχους (έχουμε ξεχωριστό test για το insert)
	for (int i = 0; i < 1000; i++)
		stack_insert_top(stack, &array[i]);

	// Διαδοχικά remove
	for (int i = 999; i >= 0; i--) {
		TEST_ASSERT(stack_top(stack) == &array[i]);
		stack_remove_top(stack);
		TEST_ASSERT(stack_size(stack) == i);
	}

	stack_destroy(stack);
	free(array);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
xorl %r14d, %r14d
xorl %edi, %edi
callq 0x456c
movq %rax, %rbx
movl $0xfa0, %edi            # imm = 0xFA0
callq 0x21b0
movq %rax, %r13
leaq (%r14,%r13), %rsi
movq %rbx, %rdi
callq 0x458b
addq $0x4, %r14
cmpq $0xfa0, %r14            # imm = 0xFA0
jne 0x3f31
movq %r13, %r14
addq $0xf9c, %r14            # imm = 0xF9C
movl $0x3e7, %ebp            # imm = 0x3E7
leaq 0x13b8(%rip), %r15      # 0x5318
leaq 0x14d2(%rip), %r12      # 0x5439
movq %rbx, %rdi
callq 0x4576
xorl %edi, %edi
cmpq %rax, %r14
sete %dil
movq %r15, %rsi
movl $0x32, %edx
movq %r12, %rcx
leaq 0x13dc(%rip), %r8       # 0x5366
xorl %eax, %eax
callq 0x25cc
testl %eax, %eax
je 0x3ff5
movq %rbx, %rdi
callq 0x4595
movq %rbx, %rdi
callq 0x4571
movl %eax, %eax
xorl %edi, %edi
cmpq %rax, %rbp
sete %dil
movq %r15, %rsi
movl $0x34, %edx
movq %r12, %rcx
leaq 0x13c2(%rip), %r8       # 0x5384
xorl %eax, %eax
callq 0x25cc
testl %eax, %eax
je 0x3ff5
addq $-0x4, %r14
addq $-0x1, %rbp
jb 0x3f67
movq %rbx, %rdi
callq 0x45a1
movq %r13, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2030
callq 0x2e13
// File: /workspace/github_c_makefile_star2_O1/skeeto[P]hash-prospector/genetic.c
// Function: gene_gen
static void
gene_gen(struct gene *g, uint64_t rng[4])
{
    uint64_t s = rand64(rng);
    uint64_t c = rand64(rng);
    g->s[0] = 10 + (s >>  0) % 10;
    g->s[1] = 10 + (s >> 24) % 10;
    g->s[2] = 10 + (s >> 48) % 10;
    g->c[0] = c | 1u;
    g->c[1] = (c >> 32) | 1u;
    g->flags = 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x1b16
movq %rax, %r14
movq %r15, %rdi
callq 0x1b16
movq %rax, %rcx
movabsq $-0x3333333333333333, %rdx # imm = 0xCCCCCCCCCCCCCCCD
movq %r14, %rax
mulq %rdx
shrl $0x2, %edx
andl $-0x2, %edx
leal (%rdx,%rdx,4), %eax
movl %r14d, %edi
subl %eax, %edi
addl $0xa, %edi
movq %r14, %rsi
shrq $0x18, %rsi
movabsq $0x199999999999999a, %r8 # imm = 0x199999999999999A
movq %rsi, %rax
mulq %r8
movw %di, 0x8(%rbx)
addl %edx, %edx
leal (%rdx,%rdx,4), %eax
subl %eax, %esi
addl $0xa, %esi
movw %si, 0xa(%rbx)
shrq $0x30, %r14
movq %r14, %rax
mulq %r8
addl %edx, %edx
leal (%rdx,%rdx,4), %eax
subl %eax, %r14d
addl $0xa, %r14d
movw %r14w, 0xc(%rbx)
movl %ecx, %eax
orl $0x1, %eax
movl %eax, 0x10(%rbx)
shrq $0x20, %rcx
orl $0x1, %ecx
movl %ecx, 0x14(%rbx)
movl $0x0, 0x18(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/skeeto[P]hash-prospector/genetic.c
// Function: rand64
static uint64_t
rand64(uint64_t s[4])
{
    uint64_t x = s[1] * 5;
    uint64_t r = ((x << 7) | (x >> 57)) * 9;
    uint64_t t = s[1] << 17;
    s[2] ^= s[0];
    s[3] ^= s[1];
    s[1] ^= s[2];
    s[0] ^= s[3];
    s[2] ^= t;
    s[3] = (s[3] << 45) | (s[3] >> 19);
    return r;
}

// Assembly:
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
leaq (%rdx,%rdx,4), %rax
rolq $0x7, %rax
leaq (%rax,%rax,8), %rax
movq %rdx, %rsi
shlq $0x11, %rsi
movq 0x10(%rdi), %r8
xorq %rcx, %r8
movq %r8, %r9
xorq %rdx, %r9
xorq 0x18(%rdi), %rdx
movq %r9, 0x8(%rdi)
xorq %rdx, %rcx
movq %rcx, (%rdi)
xorq %rsi, %r8
movq %r8, 0x10(%rdi)
rolq $0x2d, %rdx
movq %rdx, 0x18(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_is_eq
struct value*
builtin_is_eq(struct vm* vm, struct value* args)
{
    ASSERT_ARITY("eq?", args, 2);

    struct value* a = CAR(args);
    struct value* b = CADR(args);

    return value_is_eq(a, b) ? vm_make_boolean(vm, true) : vm_make_boolean(vm, false);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jne 0x3e8b
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movq %rax, %rdi
callq 0x5b51
movq %r15, %rdi
movq %rax, %rsi
callq 0x6d3d
movzbl %al, %esi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x7096
movq %r14, %rdi
callq 0x12a5
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_is_eqv
struct value*
builtin_is_eqv(struct vm* vm, struct value* args)
{
    ASSERT_ARITY("eqv?", args, 2);

    struct value* a = CAR(args);
    struct value* b = CADR(args);

    return value_is_eqv(a, b) ? vm_make_boolean(vm, true) : vm_make_boolean(vm, false);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jne 0x3ee2
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movq %rax, %rdi
callq 0x5b51
movq %r15, %rdi
movq %rax, %rsi
callq 0x6d42
movzbl %al, %esi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x7096
movq %r14, %rdi
callq 0x12db
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_is_equal
struct value*
builtin_is_equal(struct vm* vm, struct value* args)
{
    ASSERT_ARITY("equal?", args, 2);

    struct value* a = CAR(args);
    struct value* b = CADR(args);

    return value_is_equal(a, b) ? vm_make_boolean(vm, true) : vm_make_boolean(vm, false);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jne 0x3f39
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movq %rax, %rdi
callq 0x5b51
movq %r15, %rdi
movq %rax, %rsi
callq 0x6d47
movzbl %al, %esi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x7096
movq %r14, %rdi
callq 0x1311
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_equal
struct value*
builtin_equal(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_GTE("=", args, 2);
    ASSERT_TYPE_ALL("=", args, VALUE_NUMBER);

    struct value* item = CAR(args);
    args = CDR(args);

    while (!value_is_empty_list(args)) {
        if (!value_is_equal(item, CAR(args))) return vm_make_boolean(vm, false);
        item = CAR(args);
        args = CDR(args);
    }

    return vm_make_boolean(vm, true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jl 0x4040
movq %r14, %rdi
callq 0x5ab0
testq %rax, %rax
jle 0x3fcd
xorl %r15d, %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0x5ae4
cmpl $0x4, (%rax)
jne 0x4035
incq %r15
movq %r14, %rdi
callq 0x5ab0
cmpq %r15, %rax
jg 0x3fad
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movb $0x1, %bpl
cmpl $0x1, (%rax)
je 0x401f
movq %rax, %r14
movq %r14, %rdi
callq 0x5b51
movq %r15, %rdi
movq %rax, %rsi
callq 0x6d47
movl %eax, %ebp
testb %al, %al
je 0x401f
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movq %rax, %r14
cmpl $0x1, (%rax)
jne 0x3feb
movzbl %bpl, %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x7096
movq %r15, %rdi
movq %r14, %rsi
callq 0x13b6
movq %r14, %rdi
callq 0x1380
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_less
struct value*
builtin_less(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_GTE("<", args, 2);
    ASSERT_TYPE_ALL("<", args, VALUE_NUMBER);

    struct value* item = CAR(args);
    args = CDR(args);

    while (!value_is_empty_list(args)) {
        if (!(item->as.number < CAR(args)->as.number)) return vm_make_boolean(vm, false);
        item = CAR(args);
        args = CDR(args);
    }

    return vm_make_boolean(vm, true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jl 0x4107
movq %r14, %rdi
callq 0x5ab0
testq %rax, %rax
jle 0x4097
xorl %r15d, %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0x5ae4
cmpl $0x4, (%rax)
jne 0x40fc
incq %r15
movq %r14, %rdi
callq 0x5ab0
cmpq %r15, %rax
jg 0x4077
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movb $0x1, %bpl
cmpl $0x1, (%rax)
je 0x40e6
movq %rax, %r14
movq 0x10(%r15), %r15
movq %r14, %rdi
callq 0x5b51
cmpq 0x10(%rax), %r15
setl %bpl
jge 0x40e6
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movq %rax, %r14
cmpl $0x1, (%rax)
jne 0x40b5
movzbl %bpl, %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x7096
movq %r15, %rdi
movq %r14, %rsi
callq 0x1449
movq %r14, %rdi
callq 0x1413
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_greater
struct value*
builtin_greater(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_GTE(">", args, 2);
    ASSERT_TYPE_ALL(">", args, VALUE_NUMBER);

    struct value* item = CAR(args);
    args = CDR(args);

    while (!value_is_empty_list(args)) {
        if (!(item->as.number > CAR(args)->as.number)) return vm_make_boolean(vm, false);
        item = CAR(args);
        args = CDR(args);
    }

    return vm_make_boolean(vm, true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jl 0x41ce
movq %r14, %rdi
callq 0x5ab0
testq %rax, %rax
jle 0x415e
xorl %r15d, %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0x5ae4
cmpl $0x4, (%rax)
jne 0x41c3
incq %r15
movq %r14, %rdi
callq 0x5ab0
cmpq %r15, %rax
jg 0x413e
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movb $0x1, %bpl
cmpl $0x1, (%rax)
je 0x41ad
movq %rax, %r14
movq 0x10(%r15), %r15
movq %r14, %rdi
callq 0x5b51
cmpq 0x10(%rax), %r15
setg %bpl
jle 0x41ad
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movq %rax, %r14
cmpl $0x1, (%rax)
jne 0x417c
movzbl %bpl, %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x7096
movq %r15, %rdi
movq %r14, %rsi
callq 0x14dc
movq %r14, %rdi
callq 0x14a6
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_less_equal
struct value*
builtin_less_equal(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_GTE("<=", args, 2);
    ASSERT_TYPE_ALL("<=", args, VALUE_NUMBER);

    struct value* item = CAR(args);
    args = CDR(args);

    while (!value_is_empty_list(args)) {
        if (!(item->as.number <= CAR(args)->as.number)) return vm_make_boolean(vm, false);
        item = CAR(args);
        args = CDR(args);
    }

    return vm_make_boolean(vm, true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jl 0x4295
movq %r14, %rdi
callq 0x5ab0
testq %rax, %rax
jle 0x4225
xorl %r15d, %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0x5ae4
cmpl $0x4, (%rax)
jne 0x428a
incq %r15
movq %r14, %rdi
callq 0x5ab0
cmpq %r15, %rax
jg 0x4205
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movb $0x1, %bpl
cmpl $0x1, (%rax)
je 0x4274
movq %rax, %r14
movq 0x10(%r15), %r15
movq %r14, %rdi
callq 0x5b51
cmpq 0x10(%rax), %r15
setle %bpl
jg 0x4274
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movq %rax, %r14
cmpl $0x1, (%rax)
jne 0x4243
movzbl %bpl, %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x7096
movq %r15, %rdi
movq %r14, %rsi
callq 0x156f
movq %r14, %rdi
callq 0x1539
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_greater_equal
struct value*
builtin_greater_equal(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_GTE(">=", args, 2);
    ASSERT_TYPE_ALL(">=", args, VALUE_NUMBER);

    struct value* item = CAR(args);
    args = CDR(args);

    while (!value_is_empty_list(args)) {
        if (!(item->as.number >= CAR(args)->as.number)) return vm_make_boolean(vm, false);
        item = CAR(args);
        args = CDR(args);
    }

    return vm_make_boolean(vm, true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jl 0x435c
movq %r14, %rdi
callq 0x5ab0
testq %rax, %rax
jle 0x42ec
xorl %r15d, %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0x5ae4
cmpl $0x4, (%rax)
jne 0x4351
incq %r15
movq %r14, %rdi
callq 0x5ab0
cmpq %r15, %rax
jg 0x42cc
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movb $0x1, %bpl
cmpl $0x1, (%rax)
je 0x433b
movq %rax, %r14
movq 0x10(%r15), %r15
movq %r14, %rdi
callq 0x5b51
cmpq 0x10(%rax), %r15
setge %bpl
jl 0x433b
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movq %rax, %r14
cmpl $0x1, (%rax)
jne 0x430a
movzbl %bpl, %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x7096
movq %r15, %rdi
movq %r14, %rsi
callq 0x1602
movq %r14, %rdi
callq 0x15cc
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_add
struct value*
builtin_add(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_GTE("+", args, 2);
    ASSERT_TYPE_ALL("+", args, VALUE_NUMBER);

    long res = 0;
    while (!value_is_empty_list(args)) {
        res += CAR(args)->as.number;
        args = CDR(args);
    }

    return vm_make_number(vm, res);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jl 0x43f2
movq %r14, %rdi
callq 0x5ab0
testq %rax, %rax
jle 0x43ad
xorl %r15d, %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0x5ae4
cmpl $0x4, (%rax)
jne 0x43e7
incq %r15
movq %r14, %rdi
callq 0x5ab0
cmpq %r15, %rax
jg 0x438d
cmpl $0x1, (%r14)
jne 0x43b8
xorl %r15d, %r15d
jmp 0x43d7
xorl %r15d, %r15d
movq %r14, %rdi
callq 0x5b51
addq 0x10(%rax), %r15
movq %r14, %rdi
callq 0x5ad4
movq %rax, %r14
cmpl $0x1, (%rax)
jne 0x43bb
movq %rbx, %rdi
movq %r15, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x7104
movq %r15, %rdi
movq %r14, %rsi
callq 0x1695
movq %r14, %rdi
callq 0x165f
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_mul
struct value*
builtin_mul(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_GTE("*", args, 2);
    ASSERT_TYPE_ALL("*", args, VALUE_NUMBER);

    long res = 1;
    while (!value_is_empty_list(args)) {
        res *= CAR(args)->as.number;
        args = CDR(args);
    }

    return vm_make_number(vm, res);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jl 0x4486
movq %rbx, %rdi
callq 0x5ab0
testq %rax, %rax
jle 0x4443
xorl %r15d, %r15d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x5ae4
cmpl $0x4, (%rax)
jne 0x447b
incq %r15
movq %rbx, %rdi
callq 0x5ab0
cmpq %r15, %rax
jg 0x4423
movl $0x1, %r15d
cmpl $0x1, (%rbx)
je 0x446b
movq %rbx, %rdi
callq 0x5b51
imulq 0x10(%rax), %r15
movq %rbx, %rdi
callq 0x5ad4
movq %rax, %rbx
cmpl $0x1, (%rax)
jne 0x444e
movq %r14, %rdi
movq %r15, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x7104
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1728
movq %rbx, %rdi
callq 0x16f2
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_sub
struct value*
builtin_sub(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_GTE("-", args, 2);
    ASSERT_TYPE_ALL("-", args, VALUE_NUMBER);

    long res = CAR(args)->as.number;
    args = CDR(args);

    while (!value_is_empty_list(args)) {
        res -= CAR(args)->as.number;
        args = CDR(args);
    }

    return vm_make_number(vm, res);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jl 0x452e
movq %r14, %rdi
callq 0x5ab0
testq %rax, %rax
jle 0x44db
xorl %r15d, %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0x5ae4
cmpl $0x4, (%rax)
jne 0x4523
incq %r15
movq %r14, %rdi
callq 0x5ab0
cmpq %r15, %rax
jg 0x44bb
movq %r14, %rdi
callq 0x5b51
movq 0x10(%rax), %r15
movq %r14, %rdi
callq 0x5ad4
cmpl $0x1, (%rax)
je 0x4513
movq %rax, %r14
movq %r14, %rdi
callq 0x5b51
subq 0x10(%rax), %r15
movq %r14, %rdi
callq 0x5ad4
movq %rax, %r14
cmpl $0x1, (%rax)
jne 0x44f7
movq %rbx, %rdi
movq %r15, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x7104
movq %r15, %rdi
movq %r14, %rsi
callq 0x17bb
movq %r14, %rdi
callq 0x1785
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_div
struct value*
builtin_div(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_GTE("/", args, 2);
    ASSERT_TYPE_ALL("/", args, VALUE_NUMBER);

    long res = CAR(args)->as.number;
    args = CDR(args);

    while (!value_is_empty_list(args)) {
        if (CAR(args)->as.number == 0) {
            fprintf(stderr, "error: divide by zero\n");
            exit(EXIT_FAILURE);
        }

        res /= CAR(args)->as.number;
        args = CDR(args);
    }

    return vm_make_number(vm, res);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jl 0x45f5
movq %r14, %rdi
callq 0x5ab0
testq %rax, %rax
jle 0x4583
xorl %r15d, %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0x5ae4
cmpl $0x4, (%rax)
jne 0x45e5
incq %r15
movq %r14, %rdi
callq 0x5ab0
cmpq %r15, %rax
jg 0x4563
movq %r14, %rdi
callq 0x5b51
movq 0x10(%rax), %r15
movq %r14, %rdi
callq 0x5ad4
cmpl $0x1, (%rax)
je 0x45d5
movq %rax, %r14
movq %r14, %rdi
callq 0x5b51
cmpq $0x0, 0x10(%rax)
je 0x45f0
movq %r14, %rdi
callq 0x5b51
movq %rax, %rcx
movq %r15, %rax
cqto
idivq 0x10(%rcx)
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movq %rax, %r14
cmpl $0x1, (%rax)
jne 0x459f
movq %rbx, %rdi
movq %r15, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x7104
movq %r15, %rdi
movq %r14, %rsi
callq 0x184e
callq 0x18ab
movq %r14, %rdi
callq 0x1818
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_cons
struct value*
builtin_cons(struct vm* vm, struct value* args)
{
    ASSERT_ARITY("cons", args, 2);

    struct value* a = CAR(args);
    struct value* b = CADR(args);
    return vm_make_pair(vm, a, b);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jne 0x46be
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movq %rax, %rdi
callq 0x5b51
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x7205
movq %r14, %rdi
callq 0x1942
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_car
struct value*
builtin_car(struct vm* vm, struct value* args)
{
    ASSERT_ARITY("car", args, 1);
    ASSERT_TYPE("car", args, 0, VALUE_PAIR);

    struct value* pair = CAR(args);
    return CAR(pair);
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x1, %rax
jne 0x46f8
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5ae4
cmpl $0x7, (%rax)
jne 0x4700
movq %rbx, %rdi
callq 0x5b51
movq %rax, %rdi
popq %rbx
jmp 0x5b51
movq %rbx, %rdi
callq 0x1978
movq %rbx, %rdi
callq 0x19b1
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_cdr
struct value*
builtin_cdr(struct vm* vm, struct value* args)
{
    ASSERT_ARITY("cdr", args, 1);
    ASSERT_TYPE("cdr", args, 0, VALUE_PAIR);

    struct value* pair = CAR(args);
    return CDR(pair);
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x1, %rax
jne 0x473a
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5ae4
cmpl $0x7, (%rax)
jne 0x4742
movq %rbx, %rdi
callq 0x5b51
movq %rax, %rdi
popq %rbx
jmp 0x5ad4
movq %rbx, %rdi
callq 0x1a07
movq %rbx, %rdi
callq 0x1a40
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_set_car
struct value*
builtin_set_car(struct vm* vm, struct value* args)
{
    ASSERT_ARITY("set-car!", args, 2);
    ASSERT_TYPE("set-car!", args, 0, VALUE_PAIR);

    struct value* pair = CAR(args);
    struct value* val = CADR(args);
    pair->as.pair.car = val;
    return vm_make_empty_list(vm);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jne 0x479e
movq %r14, %rdi
xorl %esi, %esi
callq 0x5ae4
cmpl $0x7, (%rax)
jne 0x47a6
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movq %rax, %rdi
callq 0x5b51
movq %rax, 0x10(%r15)
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x7044
movq %r14, %rdi
callq 0x1a96
movq %r14, %rdi
callq 0x1acc
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_set_cdr
struct value*
builtin_set_cdr(struct vm* vm, struct value* args)
{
    ASSERT_ARITY("set-cdr!", args, 2);
    ASSERT_TYPE("set-cdr!", args, 0, VALUE_PAIR);

    struct value* pair = CAR(args);
    struct value* val = CADR(args);
    pair->as.pair.cdr = val;
    return vm_make_empty_list(vm);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jne 0x4802
movq %r14, %rdi
xorl %esi, %esi
callq 0x5ae4
cmpl $0x7, (%rax)
jne 0x480a
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
movq %r14, %rdi
callq 0x5ad4
movq %rax, %rdi
callq 0x5b51
movq %rax, 0x18(%r15)
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x7044
movq %r14, %rdi
callq 0x1b22
movq %r14, %rdi
callq 0x1b58
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_open_input_file
struct value*
builtin_open_input_file(struct vm* vm, struct value* args)
{
    ASSERT_ARITY("open-input-file", args, 1);
    ASSERT_TYPE("open-input-file", args, 0, VALUE_STRING);

    struct value* path = CAR(args);

    FILE* port = fopen(path->as.string, "rb");
    if (port == NULL) {
        fprintf(stderr, "failed to open input file: %s\n", path->as.string);
        perror("reason");
        exit(EXIT_FAILURE);
    }

    return vm_make_input_port(vm, port);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x1, %rax
jne 0x4a4b
movq %r14, %rdi
xorl %esi, %esi
callq 0x5ae4
cmpl $0x5, (%rax)
jne 0x4a53
movq %r14, %rdi
callq 0x5b51
movq %rax, %r14
movq 0x10(%rax), %rdi
leaq 0x38ac(%rip), %rsi      # 0x82db
callq 0x1190
testq %rax, %rax
je 0x4a5b
movq %rbx, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x72d6
movq %r14, %rdi
callq 0x1d6e
movq %r14, %rdi
callq 0x1da7
addq $0x10, %r14
movq %r14, %rdi
callq 0x1dfd
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_open_output_file
struct value*
builtin_open_output_file(struct vm* vm, struct value* args)
{
    ASSERT_ARITY("open-output-file", args, 1);
    ASSERT_TYPE("open-output-file", args, 0, VALUE_STRING);

    struct value* path = CAR(args);

    FILE* port = fopen(path->as.string, "wb");
    if (port == NULL) {
        fprintf(stderr, "failed to open output file: %s\n", path->as.string);
        perror("reason");
        exit(EXIT_FAILURE);
    }

    return vm_make_output_port(vm, port);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x1, %rax
jne 0x4ac0
movq %r14, %rdi
xorl %esi, %esi
callq 0x5ae4
cmpl $0x5, (%rax)
jne 0x4ac8
movq %r14, %rdi
callq 0x5b51
movq %rax, %r14
movq 0x10(%rax), %rdi
leaq 0x3860(%rip), %rsi      # 0x8304
callq 0x1190
testq %rax, %rax
je 0x4ad0
movq %rbx, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x730f
movq %r14, %rdi
callq 0x1e30
movq %r14, %rdi
callq 0x1e69
addq $0x10, %r14
movq %r14, %rdi
callq 0x1ebf
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_close_input_port
struct value*
builtin_close_input_port(struct vm* vm, struct value* args)
{
    ASSERT_ARITY("close-input-port", args, 1);
    ASSERT_TYPE("close-input-port", args, 0, VALUE_INPUT_PORT);

    struct value* port = CAR(args);
    fclose(port->as.port);

    return vm_make_empty_list(vm);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x1, %rax
jne 0x4b23
movq %r14, %rdi
xorl %esi, %esi
callq 0x5ae4
cmpl $0xa, (%rax)
jne 0x4b2b
movq %r14, %rdi
callq 0x5b51
movq 0x10(%rax), %rdi
callq 0x1160
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x7044
movq %r14, %rdi
callq 0x1ef2
movq %r14, %rdi
callq 0x1f2b
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_close_output_port
struct value*
builtin_close_output_port(struct vm* vm, struct value* args)
{
    ASSERT_ARITY("close-output-port", args, 1);
    ASSERT_TYPE("close-output-port", args, 0, VALUE_OUTPUT_PORT);

    struct value* port = CAR(args);
    fclose(port->as.port);

    return vm_make_empty_list(vm);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x1, %rax
jne 0x4b7a
movq %r14, %rdi
xorl %esi, %esi
callq 0x5ae4
cmpl $0xb, (%rax)
jne 0x4b82
movq %r14, %rdi
callq 0x5b51
movq 0x10(%rax), %rdi
callq 0x1160
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x7044
movq %r14, %rdi
callq 0x1f81
movq %r14, %rdi
callq 0x1fba
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_read
struct value*
builtin_read(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_OR("read", args, 0, 1);

    long arity = list_length(args);
    if (arity == 1) {
        ASSERT_TYPE("read", args, 0, VALUE_INPUT_PORT);
    }

    struct value* port = NULL;
    if (arity == 1) {
        port = CAR(args);
    } else {
        port = vm_make_input_port(vm, stdin);
    }

    FILE* fp = port->as.port;
    return reader_read(vm, fp);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
testq %rax, %rax
je 0x4baf
movq %r14, %rdi
callq 0x5ab0
cmpq $0x1, %rax
jne 0x4bfb
movq %r14, %rdi
callq 0x5ab0
cmpq $0x1, %rax
jne 0x4bd6
movq %r14, %rdi
xorl %esi, %esi
callq 0x5ae4
cmpl $0xa, (%rax)
jne 0x4c03
movq %r14, %rdi
callq 0x5b51
jmp 0x4be8
movq 0x93fb(%rip), %rax      # 0xdfd8
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x72d6
movq 0x10(%rax), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x67a6
movq %r14, %rdi
callq 0x2010
movq %r14, %rdi
callq 0x204c
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_read_char
struct value*
builtin_read_char(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_OR("read-char", args, 0, 1);

    long arity = list_length(args);
    if (arity == 1) {
        ASSERT_TYPE("read-char", args, 0, VALUE_INPUT_PORT);
    }

    struct value* port = NULL;
    if (arity == 1) {
        port = CAR(args);
    } else {
        port = vm_make_input_port(vm, stdin);
    }

    FILE* fp = port->as.port;

    int c = fgetc(fp);
    if (ferror(fp)) {
        perror("error reading from port");
        exit(EXIT_FAILURE);
    }

    if (c == EOF && feof(fp)) {
        return vm_make_eof(vm);
    }

    return vm_make_character(vm, c);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
testq %rax, %rax
je 0x4c34
movq %r14, %rdi
callq 0x5ab0
cmpq $0x1, %rax
jne 0x4cb7
movq %r14, %rdi
callq 0x5ab0
cmpq $0x1, %rax
jne 0x4c5b
movq %r14, %rdi
xorl %esi, %esi
callq 0x5ae4
cmpl $0xa, (%rax)
jne 0x4cbf
movq %r14, %rdi
callq 0x5b51
jmp 0x4c6d
movq 0x9376(%rip), %rax      # 0xdfd8
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x72d6
movq 0x10(%rax), %r14
movq %r14, %rdi
callq 0x1240
movl %eax, %ebp
movq %r14, %rdi
callq 0x1250
testl %eax, %eax
jne 0x4cb2
cmpl $-0x1, %ebp
je 0x4c9a
movq %rbx, %rdi
movl %ebp, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x70cd
movq %r14, %rdi
callq 0x1230
testl %eax, %eax
je 0x4c8c
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x7410
callq 0x2134
movq %r14, %rdi
callq 0x20a2
movq %r14, %rdi
callq 0x20de
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_peek_char
struct value*
builtin_peek_char(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_OR("peek-char", args, 0, 1);

    long arity = list_length(args);
    if (arity == 1) {
        ASSERT_TYPE("peek-char", args, 0, VALUE_INPUT_PORT);
    }

    struct value* port = NULL;
    if (arity == 1) {
        port = CAR(args);
    } else {
        port = vm_make_input_port(vm, stdin);
    }

    FILE* fp = port->as.port;

    int c = fgetc(fp);
    if (ferror(fp)) {
        perror("error reading from port");
        exit(EXIT_FAILURE);
    }

    if (c == EOF && feof(fp)) {
        return vm_make_eof(vm);
    }

    ungetc(c, fp);

    return vm_make_character(vm, c);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
testq %rax, %rax
je 0x4cf0
movq %r14, %rdi
callq 0x5ab0
cmpq $0x1, %rax
jne 0x4d7d
movq %r14, %rdi
callq 0x5ab0
cmpq $0x1, %rax
jne 0x4d17
movq %r14, %rdi
xorl %esi, %esi
callq 0x5ae4
cmpl $0xa, (%rax)
jne 0x4d85
movq %r14, %rdi
callq 0x5b51
jmp 0x4d29
movq 0x92ba(%rip), %rax      # 0xdfd8
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x72d6
movq 0x10(%rax), %r14
movq %r14, %rdi
callq 0x1240
movl %eax, %ebp
movq %r14, %rdi
callq 0x1250
testl %eax, %eax
jne 0x4d78
cmpl $-0x1, %ebp
je 0x4d60
movl %ebp, %edi
movq %r14, %rsi
callq 0x1090
movq %rbx, %rdi
movl %ebp, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x70cd
movq %r14, %rdi
callq 0x1230
testl %eax, %eax
je 0x4d48
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x7410
callq 0x21db
movq %r14, %rdi
callq 0x2149
movq %r14, %rdi
callq 0x2185
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_is_char_ready
struct value*
builtin_is_char_ready(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_OR("char-ready?", args, 0, 1);

    long arity = list_length(args);
    if (arity == 1) {
        ASSERT_TYPE("char-ready?", args, 0, VALUE_INPUT_PORT);
    }

    struct value* port = NULL;
    if (arity == 1) {
        port = CAR(args);
    } else {
        port = vm_make_input_port(vm, stdin);
    }

    FILE* fp = port->as.port;

    int c = fgetc(fp);
    if (ferror(fp)) {
        perror("error reading from port");
        exit(EXIT_FAILURE);
    }

    if (c == EOF && feof(fp)) {
        return vm_make_boolean(vm, true);
    }

    ungetc(c, fp);

    return vm_make_boolean(vm, true);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
testq %rax, %rax
je 0x4df3
movq %r14, %rdi
callq 0x5ab0
cmpq $0x1, %rax
jne 0x4e79
movq %r14, %rdi
callq 0x5ab0
cmpq $0x1, %rax
jne 0x4e1a
movq %r14, %rdi
xorl %esi, %esi
callq 0x5ae4
cmpl $0xa, (%rax)
jne 0x4e81
movq %r14, %rdi
callq 0x5b51
jmp 0x4e2c
movq 0x91b7(%rip), %rax      # 0xdfd8
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x72d6
movq 0x10(%rax), %r14
movq %r14, %rdi
callq 0x1240
movl %eax, %ebp
movq %r14, %rdi
callq 0x1250
testl %eax, %eax
jne 0x4e74
cmpl $-0x1, %ebp
je 0x4e57
movl %ebp, %edi
movq %r14, %rsi
callq 0x1090
jmp 0x4e63
movq %r14, %rdi
callq 0x1230
testl %eax, %eax
je 0x4e4b
movq %rbx, %rdi
movl $0x1, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x7096
callq 0x22bb
movq %r14, %rdi
callq 0x2229
movq %r14, %rdi
callq 0x2265
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_write
struct value*
builtin_write(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_OR("write", args, 1, 2);

    long arity = list_length(args);
    if (arity == 2) {
        ASSERT_TYPE("write", args, 1, VALUE_OUTPUT_PORT);
    }

    struct value* obj = CAR(args);

    struct value* port = NULL;
    if (arity == 2) {
        port = CADR(args);
    } else {
        port = vm_make_output_port(vm, stdout);
    }

    value_print(port->as.port, obj);
    return vm_make_empty_list(vm);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x1, %rax
je 0x4eb3
movq %r14, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jne 0x4f2a
movq %r14, %rdi
callq 0x5ab0
movq %rax, %r12
cmpq $0x2, %rax
jne 0x4ed6
movl $0x1, %esi
movq %r14, %rdi
callq 0x5ae4
cmpl $0xb, (%rax)
jne 0x4f32
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
cmpq $0x2, %r12
jne 0x4ef9
movq %r14, %rdi
callq 0x5ad4
movq %rax, %rdi
callq 0x5b51
jmp 0x4f0b
movq 0x90c0(%rip), %rax      # 0xdfc0
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x730f
movq 0x10(%rax), %rdi
movq %r15, %rsi
callq 0x6aab
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x7044
movq %r14, %rdi
callq 0x22d0
movq %r14, %rdi
callq 0x230d
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_display
struct value*
builtin_display(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_OR("display", args, 1, 2);

    long arity = list_length(args);
    if (arity == 2) {
        ASSERT_TYPE("display", args, 1, VALUE_OUTPUT_PORT);
    }

    struct value* obj = CAR(args);

    struct value* port = NULL;
    if (arity == 2) {
        port = CADR(args);
    } else {
        port = vm_make_output_port(vm, stdout);
    }

    value_print(port->as.port, obj);
    return vm_make_empty_list(vm);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x1, %rax
je 0x4f64
movq %r14, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jne 0x4fdb
movq %r14, %rdi
callq 0x5ab0
movq %rax, %r12
cmpq $0x2, %rax
jne 0x4f87
movl $0x1, %esi
movq %r14, %rdi
callq 0x5ae4
cmpl $0xb, (%rax)
jne 0x4fe3
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
cmpq $0x2, %r12
jne 0x4faa
movq %r14, %rdi
callq 0x5ad4
movq %rax, %rdi
callq 0x5b51
jmp 0x4fbc
movq 0x900f(%rip), %rax      # 0xdfc0
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x730f
movq 0x10(%rax), %rdi
movq %r15, %rsi
callq 0x6aab
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x7044
movq %r14, %rdi
callq 0x2366
movq %r14, %rdi
callq 0x23a3
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_newline
struct value*
builtin_newline(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_OR("newline", args, 0, 1);

    long arity = list_length(args);
    if (arity == 1) {
        ASSERT_TYPE("newline", args, 0, VALUE_OUTPUT_PORT);
    }

    struct value* port = NULL;
    if (arity == 1) {
        port = CAR(args);
    } else {
        port = vm_make_output_port(vm, stdout);
    }

    fputc('\n', port->as.port);
    return vm_make_empty_list(vm);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
testq %rax, %rax
je 0x5010
movq %r14, %rdi
callq 0x5ab0
cmpq $0x1, %rax
jne 0x5066
movq %r14, %rdi
callq 0x5ab0
cmpq $0x1, %rax
jne 0x5037
movq %r14, %rdi
xorl %esi, %esi
callq 0x5ae4
cmpl $0xb, (%rax)
jne 0x506e
movq %r14, %rdi
callq 0x5b51
jmp 0x5049
movq 0x8f82(%rip), %rax      # 0xdfc0
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x730f
movq 0x10(%rax), %rsi
movl $0xa, %edi
callq 0x11c0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x7044
movq %r14, %rdi
callq 0x23fc
movq %r14, %rdi
callq 0x2438
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_write_char
struct value*
builtin_write_char(struct vm* vm, struct value* args)
{
    ASSERT_ARITY_OR("write-char", args, 1, 2);
    ASSERT_TYPE("write-char", args, 0, VALUE_CHARACTER);

    long arity = list_length(args);
    if (arity == 2) {
        ASSERT_TYPE("write-char", args, 1, VALUE_OUTPUT_PORT);
    }

    struct value* obj = CAR(args);

    struct value* port = NULL;
    if (arity == 2) {
        port = CADR(args);
    } else {
        port = vm_make_output_port(vm, stdout);
    }

    fputc(obj->as.character, port->as.port);
    return vm_make_empty_list(vm);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x1, %rax
je 0x50a4
movq %r14, %rdi
callq 0x5ab0
cmpq $0x2, %rax
jne 0x5133
movq %r14, %rdi
xorl %esi, %esi
callq 0x5ae4
cmpl $0x3, (%rax)
jne 0x512b
movq %r14, %rdi
callq 0x5ab0
movq %rax, %r12
cmpq $0x2, %rax
jne 0x50d6
movl $0x1, %esi
movq %r14, %rdi
callq 0x5ae4
cmpl $0xb, (%rax)
jne 0x513b
movq %r14, %rdi
callq 0x5b51
movq %rax, %r15
cmpq $0x2, %r12
jne 0x50f9
movq %r14, %rdi
callq 0x5ad4
movq %rax, %rdi
callq 0x5b51
jmp 0x510b
movq 0x8ec0(%rip), %rax      # 0xdfc0
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x730f
movl 0x10(%r15), %edi
movq 0x10(%rax), %rsi
callq 0x11c0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x7044
movq %r14, %rdi
callq 0x24cb
movq %r14, %rdi
callq 0x248e
movq %r14, %rdi
callq 0x2521
// File: /workspace/github_c_makefile_star2_O1/theandrew168[P]squeaky/src/builtin.c
// Function: builtin_make_window
struct value*
builtin_make_window(struct vm* vm, struct value* args)
{
    ASSERT_ARITY("make-window", args, 3);
    ASSERT_TYPE("make-window", args, 0, VALUE_STRING);
    ASSERT_TYPE("make-window", args, 1, VALUE_NUMBER);
    ASSERT_TYPE("make-window", args, 2, VALUE_NUMBER);

    struct value* title = list_nth(args, 0);
    struct value* width = list_nth(args, 1);
    struct value* height = list_nth(args, 2);

    return vm_make_window(vm, title->as.string, width->as.number, height->as.number);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x5ab0
cmpq $0x3, %rax
jne 0x5219
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5ae4
cmpl $0x5, (%rax)
jne 0x5221
movl $0x1, %esi
movq %rbx, %rdi
callq 0x5ae4
cmpl $0x4, (%rax)
jne 0x5229
movl $0x2, %esi
movq %rbx, %rdi
callq 0x5ae4
cmpl $0x4, (%rax)
jne 0x5231
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5ae4
movq %rax, %r15
movl $0x1, %esi
movq %rbx, %rdi
callq 0x5ae4
movq %rax, %r12
movl $0x2, %esi
movq %rbx, %rdi
callq 0x5ae4
movq 0x10(%r15), %rsi
movq 0x10(%r12), %rdx
movq 0x10(%rax), %rcx
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x7348
movq %rbx, %rdi
callq 0x25b3
movq %rbx, %rdi
callq 0x25e9
movq %rbx, %rdi
callq 0x263f
movq %rbx, %rdi
callq 0x2698