LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_read_byte
static s7_pointer g_read_byte(s7_scheme *sc, s7_pointer args)
    {
#define H_read_byte "(read-byte (port (current-input-port))): reads a byte from the input port"
#define Q_read_byte s7_make_signature(sc, 2, s7_make_signature(sc, 2, sc->is_byte_symbol, sc->is_eof_object_symbol), sc->is_input_port_symbol)
        s7_pointer port;
        int32_t c;

        if (is_not_null(args))
            port = car(args);
        else
        {
            port = input_port_if_not_loading(sc);
            if (!port) return(eof_object);
        }
        if (!is_input_port(port))
            return(method_or_bust_with_type_one_arg(sc, port, sc->read_byte_symbol, args, an_input_port_string));

        c = port_read_character(port)(sc, port);
        if (c == EOF)
            return(eof_object);
        return(small_int(c));
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpq %rsi, 0x110(%rdi)
je 0x686f0
movq 0x8(%r14), %rsi
jmp 0x68700
movq %rbx, %rdi
callq 0x103191
movq %rax, %rsi
testq %rax, %rax
je 0x68746
cmpb $0x23, (%rsi)
jne 0x68726
movq 0x8(%rsi), %rax
movq 0x48(%rax), %rax
movq %rbx, %rdi
callq *(%rax)
cmpl $-0x1, %eax
je 0x68746
cltq
leaq 0xe6230(%rip), %rcx     # 0x14e950
movq (%rcx,%rax,8), %rax
jmp 0x6874d
movq 0x1440(%rbx), %rdx
movq 0xea4cc(%rip), %r8      # 0x152c00
movq %rbx, %rdi
movq %r14, %rcx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x103001
movq 0xe6013(%rip), %rax     # 0x14e760
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_write_byte
static s7_pointer g_write_byte(s7_scheme *sc, s7_pointer args)
    {
#define H_write_byte "(write-byte byte (port (current-output-port))): writes byte to the output port"
#define Q_write_byte s7_make_signature(sc, 3, sc->is_byte_symbol, sc->is_byte_symbol, s7_make_signature(sc, 2, sc->is_output_port_symbol, sc->not_symbol))
        s7_pointer port, b;
        s7_int val;

        b = car(args);
        if (!s7_is_integer(b))
            return(method_or_bust(sc, car(args), sc->write_byte_symbol, args, T_INTEGER, 1));

        val = s7_integer(b);
        if ((val < 0) || (val > 255)) /* need to check this before port==#f, else (write-byte most-positive-fixnum #f) is not an error */
            return(wrong_type_argument_with_type(sc, sc->write_byte_symbol, 1, b, an_unsigned_byte_string));

        if (is_pair(cdr(args)))
            port = cadr(args);
        else port = sc->output_port;

        if (!is_output_port(port))
        {
            if (port == sc->F) return(car(args));
            return(method_or_bust_with_type_one_arg(sc, port, sc->write_byte_symbol, args, an_output_port_string));
        }

        port_write_character(port)(sc, (uint8_t)val, port);
        return(b);
    }

// Assembly:
pushq %rbx
movq %rsi, %rcx
movq 0x8(%rsi), %rbx
cmpb $0xb, (%rbx)
jne 0x68797
movq 0x8(%rbx), %rax
cmpq $0x100, %rax            # imm = 0x100
jb 0x687b3
movq 0x16a0(%rdi), %rax
movq 0x8(%rax), %rsi
movq 0xe61d8(%rip), %rdx     # 0x14e958
movq 0x140(%rdi), %r8
movq 0xf28d2(%rip), %r9      # 0x15b060
movq %rbx, %rcx
popq %rbx
jmp 0xb31d
movq 0x16a0(%rdi), %rdx
movq %rbx, %rsi
movl $0xb, %r8d
movl $0x1, %r9d
popq %rbx
jmp 0xf1ae
movq 0x10(%rcx), %rdx
leaq 0x8(%rdx), %rsi
leaq 0x188(%rdi), %r8
cmpb $0x1, (%rdx)
cmoveq %rsi, %r8
movq (%r8), %rdx
cmpb $0x22, (%rdx)
jne 0x687e1
movq 0x8(%rdx), %rcx
movq 0x48(%rcx), %rcx
movzbl %al, %esi
callq *0x8(%rcx)
jmp 0x68804
cmpq 0x120(%rdi), %rdx
je 0x68804
movq 0x16a0(%rdi), %rax
movq 0xf1ad0(%rip), %r8      # 0x15a2c8
movq %rdx, %rsi
movq %rax, %rdx
popq %rbx
jmp 0x103001
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_read_line
static s7_pointer g_read_line(s7_scheme *sc, s7_pointer args)
    {
#define H_read_line "(read-line port (with-eol #f)) returns the next line from port, or #<eof>. \
        If 'with-eol' is not #f, read-line includes the trailing end-of-line character."
#define Q_read_line s7_make_signature(sc, 3, s7_make_signature(sc, 2, sc->is_string_symbol, sc->is_eof_object_symbol), sc->is_input_port_symbol, sc->is_boolean_symbol)

        s7_pointer port;
        bool with_eol = false;

        if (is_not_null(args))
        {
            port = car(args);
            if (!is_input_port(port))
                return(method_or_bust_with_type(sc, port, sc->read_line_symbol, args, an_input_port_string, 1));

            if (is_not_null(cdr(args)))
                with_eol = (cadr(args) != sc->F); /* perhaps this should insist on #t: (read-line port (c-pointer 0)) */
        }
        else
        {
            port = input_port_if_not_loading(sc);
            if (!port) return(eof_object);
        }
        return(port_read_line(port)(sc, port, with_eol, true));
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x110(%rdi), %rax
cmpq %rsi, %rax
je 0x6883e
movq %rsi, %rcx
movq 0x8(%rsi), %rsi
cmpb $0x23, (%rsi)
jne 0x6886b
movq 0x10(%rcx), %rcx
cmpq %rax, %rcx
je 0x6884e
movq 0x8(%rcx), %rax
cmpq 0x120(%rbx), %rax
setne %al
jmp 0x68850
movq %rbx, %rdi
callq 0x103191
testq %rax, %rax
je 0x68888
movq %rax, %rsi
xorl %eax, %eax
movq 0x8(%rsi), %rcx
movq 0x48(%rcx), %rcx
movq 0x38(%rcx), %r8
movzbl %al, %edx
movq %rbx, %rdi
movl $0x1, %ecx
popq %rbx
jmpq *%r8
movq 0x1450(%rbx), %rdx
movq 0xea387(%rip), %r8      # 0x152c00
movq %rbx, %rdi
movl $0x1, %r9d
popq %rbx
jmp 0xf3da
movq 0xe5ed1(%rip), %rax     # 0x14e760
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_read
static s7_pointer g_read(s7_scheme *sc, s7_pointer args)
    {
#define H_read "(read (port (current-input-port))) returns the next object in the input port, or #<eof> at the end"
#define Q_read s7_make_signature(sc, 2, sc->T, sc->is_input_port_symbol)
        s7_pointer port;

        if (is_not_null(args))
            port = car(args);
        else
        {
            port = input_port_if_not_loading(sc);
            if (!port) return(eof_object);
        }

        if (!is_input_port(port))
            return(method_or_bust_with_type_one_arg(sc, port, sc->read_symbol, args, an_input_port_string));

        if (is_function_port(port))
            return((*(port_input_function(port)))(sc, S7_READ, port));

        if ((is_string_port(port)) &&
                (port_data_size(port) <= port_position(port)))
            return(eof_object);

        push_input_port(sc, port);
        push_stack_op_let(sc, OP_READ_DONE); /* this stops the internal read process so we only get one form */
        push_stack_op_let(sc, OP_READ_INTERNAL);

        return(port);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %r14
cmpq %rsi, 0x110(%rdi)
je 0x68c43
movq 0x8(%r15), %rbx
jmp 0x68c57
movq %r14, %rdi
callq 0x103191
movq %rax, %rbx
testq %rax, %rax
je 0x68d48
cmpb $0x23, (%rbx)
jne 0x68c80
movq 0x8(%rbx), %rax
movl 0x4(%rax), %ecx
cmpl $0x1, %ecx
je 0x68ca1
cmpl $0x2, %ecx
jne 0x68caf
movq 0x50(%rax), %rax
movq %r14, %rdi
xorl %esi, %esi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmpq *%rax
movq 0x1460(%r14), %rdx
movq 0xe9f72(%rip), %r8      # 0x152c00
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rcx
popq %rbx
popq %r14
popq %r15
jmp 0x103001
movq 0x18(%rbx), %rax
cmpq 0x20(%rbx), %rax
jle 0x68d48
movl 0x180(%r14), %esi
cmpl %esi, 0x184(%r14)
jb 0x68cdf
addl %esi, %esi
movl %esi, 0x180(%r14)
movq 0x178(%r14), %rdi
shlq $0x3, %rsi
callq 0x9510
movq %rax, 0x178(%r14)
movq 0x170(%r14), %rax
movq 0x178(%r14), %rcx
movl 0x184(%r14), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x184(%r14)
movq %rax, (%rcx,%rdx,8)
movq %rbx, 0x170(%r14)
movq 0x8(%r14), %rax
movq 0x50(%r14), %rcx
movq %rax, 0x8(%rcx)
movq 0x50(%r14), %rax
movq $0x1dc, 0x18(%rax)      # imm = 0x1DC
movq 0x8(%r14), %rax
movq 0x50(%r14), %rcx
leaq 0x20(%rcx), %rdx
movq %rdx, 0x50(%r14)
movq %rax, 0x28(%rcx)
movq 0x50(%r14), %rax
movq $0x190, 0x18(%rax)      # imm = 0x190
addq $0x20, 0x50(%r14)
jmp 0x68d4f
movq 0xe5a11(%rip), %rbx     # 0x14e760
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_call_with_input_file
static s7_pointer g_call_with_input_file(s7_scheme *sc, s7_pointer args)
    {
#define H_call_with_input_file "(call-with-input-file filename proc) opens filename and calls proc with the input port as its argument"
#define Q_call_with_input_file sc->pl_sf
        s7_pointer str, proc;

        str = car(args);
        if (!is_string(str))
            return(method_or_bust(sc, str, sc->call_with_input_file_symbol, args, T_STRING, 1));

        proc = cadr(args);
        if (!s7_is_aritable(sc, proc, 1))
            return(wrong_type_argument_with_type(sc, sc->call_with_input_file_symbol, 2, proc,
                        wrap_string(sc, "a procedure of one argument (the port)", 38)));
        if ((is_continuation(proc)) || (is_goto(proc)))
            return(wrong_type_argument_with_type(sc, sc->call_with_input_file_symbol, 2, proc, a_normal_procedure_string));

        return(call_with_input(sc, open_input_file_1(sc, string_value(str), "r", "call-with-input-file"), args));
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
movq 0x8(%rsi), %r12
cmpb $0x13, (%r12)
jne 0x6906f
movq 0x10(%r15), %rax
movq 0x8(%rax), %r14
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x41fac
testb %al, %al
je 0x6909b
movb (%r14), %al
addb $-0x25, %al
cmpb $0x1, %al
ja 0x690fb
movq 0xd00(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0xe5901(%rip), %rdx     # 0x14e960
movq 0x140(%rbx), %r8
movq 0xf459b(%rip), %r9      # 0x15d608
jmp 0x690e5
movq 0xd00(%rbx), %rdx
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rcx
movl $0x13, %r8d
movl $0x1, %r9d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xf1ae
movq 0xd00(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0xe58b3(%rip), %rdx     # 0x14e960
movq 0x140(%rbx), %r8
movq 0x820(%rbx), %rax
movslq 0x7dc(%rbx), %rcx
movq (%rax,%rcx,8), %r9
leal 0x1(%rcx), %eax
andl $0x7, %eax
movl %eax, 0x7dc(%rbx)
leaq 0xbb4e7(%rip), %rax     # 0x1245c0
movq %rax, 0x10(%r9)
movq $0x26, 0x8(%r9)
movq %rbx, %rdi
movq %r14, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xb31d
movq 0x10(%r12), %rsi
leaq 0xba330(%rip), %rdx     # 0x123437
leaq 0xadb11(%rip), %rcx     # 0x116c1f
movq %rbx, %rdi
callq 0xfd5a
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1031d8
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_with_input_from_file
static s7_pointer g_with_input_from_file(s7_scheme *sc, s7_pointer args)
    {
#define H_with_input_from_file "(with-input-from-file filename thunk) opens filename as the temporary current-input-port and calls thunk"
#define Q_with_input_from_file sc->pl_sf

        if (!is_string(car(args)))
            return(method_or_bust(sc, car(args), sc->with_input_from_file_symbol, args, T_STRING, 1));

        if (!is_thunk(sc, cadr(args)))
            return(method_or_bust_with_type(sc, cadr(args), sc->with_input_from_file_symbol, args, a_thunk_string, 2));

        return(with_input(sc, open_input_file_1(sc, string_value(car(args)), "r", "with-input-from-file"), args));
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %rsi
cmpb $0x13, (%rsi)
jne 0x6934f
movq 0x10(%rbx), %rax
movq 0x8(%rax), %rsi
cmpb $0x26, (%rsi)
jb 0x69374
movq %r14, %rdi
xorl %edx, %edx
callq 0x41fac
testb %al, %al
je 0x69374
movq 0x8(%rbx), %rax
movq 0x10(%rax), %rsi
leaq 0xba10c(%rip), %rdx     # 0x123437
leaq 0xad9e1(%rip), %rcx     # 0x116d13
movq %r14, %rdi
callq 0xfd5a
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1032ab
movq 0x1680(%r14), %rdx
movq %r14, %rdi
movq %rbx, %rcx
movl $0x13, %r8d
movl $0x1, %r9d
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xf1ae
movq 0x10(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0x1680(%r14), %rdx
movq 0xf0fa6(%rip), %r8      # 0x15a330
movq %r14, %rdi
movq %rbx, %rcx
movl $0x2, %r9d
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xf3da
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_call_with_output_file
static s7_pointer g_call_with_output_file(s7_scheme *sc, s7_pointer args)
    {
#define H_call_with_output_file "(call-with-output-file filename proc) opens filename and calls proc with the output port as its argument"
#define Q_call_with_output_file sc->pl_sf
        s7_pointer port, file, proc;

        file = car(args);
        if (!is_string(file))
            return(method_or_bust(sc, file, sc->call_with_output_file_symbol, args, T_STRING, 1));

        proc = cadr(args);
        if ((!is_any_procedure(proc)) ||
                (!s7_is_aritable(sc, proc, 1)))
            return(method_or_bust_with_type(sc, proc, sc->call_with_output_file_symbol, args, wrap_string(sc, "a procedure of one argument (the port)", 38), 2));

        port = s7_open_output_file(sc, string_value(file), "w");
        push_stack(sc, OP_UNWIND_OUTPUT, sc->unused, port); /* #<unused> here is a marker (needed) */
        push_stack(sc, OP_APPLY, list_1(sc, port), proc);
        return(sc->F);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
movq 0x8(%rsi), %r12
cmpb $0x13, (%r12)
jne 0x697bb
movq 0x10(%r15), %rax
movq 0x8(%rax), %r14
cmpb $0x28, (%r14)
jb 0x697e7
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x41fac
testb %al, %al
je 0x697e7
movq 0x10(%r12), %rsi
leaq 0xbb674(%rip), %rdx     # 0x124d6a
movq %rbx, %rdi
callq 0xff27
movq %rax, %r15
movq 0x50(%rbx), %rax
movq %r15, (%rax)
movq 0x8(%rbx), %rax
movq 0x50(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x50(%rbx), %rax
movq 0x140(%rbx), %rcx
movq %rcx, 0x10(%rax)
movq 0x50(%rbx), %rax
movq $0x1ef, 0x18(%rax)      # imm = 0x1EF
movq 0x50(%rbx), %rax
leaq 0x20(%rax), %rcx
movq %rcx, 0x50(%rbx)
movq %r14, 0x20(%rax)
movq 0x8(%rbx), %rax
movq 0x50(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r14
cmpq 0x98(%rbx), %rax
ja 0x6976a
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq %r15, 0x8(%rax)
movq %r14, 0x10(%rax)
movq 0x50(%rbx), %rcx
movq %rax, 0x10(%rcx)
movq 0x50(%rbx), %rax
movq $0x198, 0x18(%rax)      # imm = 0x198
addq $0x20, 0x50(%rbx)
movq 0x120(%rbx), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0xd10(%rbx), %rdx
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rcx
movl $0x13, %r8d
movl $0x1, %r9d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xf1ae
movq 0xd10(%rbx), %rdx
movq 0x820(%rbx), %rax
movslq 0x7dc(%rbx), %rcx
movq (%rax,%rcx,8), %r8
leal 0x1(%rcx), %eax
andl $0x7, %eax
movl %eax, 0x7dc(%rbx)
leaq 0xbadad(%rip), %rax     # 0x1245c0
movq %rax, 0x10(%r8)
movq $0x26, 0x8(%r8)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rcx
movl $0x2, %r9d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xf3da
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_with_output_to_string
static s7_pointer g_with_output_to_string(s7_scheme *sc, s7_pointer args)
    {
#define H_with_output_to_string "(with-output-to-string thunk) opens a string as a temporary current-output-port, calls thunk, then returns the collected output"
#define Q_with_output_to_string s7_make_signature(sc, 2, sc->is_string_symbol, s7_make_signature(sc, 2, sc->is_procedure_symbol, sc->is_macro_symbol))
        s7_pointer old_output_port, p;

        p = car(args);
        if (!is_thunk(sc, p))
            return(method_or_bust_with_type(sc, p, sc->with_output_to_string_symbol, args, a_thunk_string, 1));

        if ((is_continuation(p)) || (is_goto(p)))
            return(wrong_type_argument_with_type(sc, sc->with_output_to_string_symbol, 1, p, a_normal_procedure_string));

        old_output_port = sc->output_port;
        sc->output_port = s7_open_output_string(sc);
        push_stack(sc, OP_UNWIND_OUTPUT, old_output_port, sc->output_port);
        push_stack(sc, OP_GET_OUTPUT_STRING, old_output_port, sc->output_port);
        push_stack(sc, OP_APPLY, sc->nil, p);
        return(sc->F);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
movq 0x8(%rsi), %r14
cmpb $0x26, (%r14)
jb 0x6989d
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x41fac
testb %al, %al
je 0x6989d
movb (%r14), %al
addb $-0x25, %al
cmpb $0x1, %al
ja 0x698c4
movq 0x1698(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0xe50d9(%rip), %rdx     # 0x14e958
movq 0x140(%rbx), %r8
movq 0xf3d7b(%rip), %r9      # 0x15d608
movq %rbx, %rdi
movq %r14, %rcx
popq %rbx
popq %r14
popq %r15
jmp 0xb31d
movq 0x1698(%rbx), %rdx
movq 0xf0a85(%rip), %r8      # 0x15a330
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rcx
movl $0x1, %r9d
popq %rbx
popq %r14
popq %r15
jmp 0xf3da
movq 0x188(%rbx), %r15
movq %rbx, %rdi
callq 0x1055d
movq %rax, 0x188(%rbx)
movq 0x50(%rbx), %rcx
movq %rax, (%rcx)
movq 0x8(%rbx), %rax
movq 0x50(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x50(%rbx), %rax
movq %r15, 0x10(%rax)
movq 0x50(%rbx), %rax
movq $0x1ef, 0x18(%rax)      # imm = 0x1EF
movq 0x50(%rbx), %rax
movq 0x188(%rbx), %rcx
leaq 0x20(%rax), %rdx
movq %rdx, 0x50(%rbx)
movq %rcx, 0x20(%rax)
movq 0x8(%rbx), %rax
movq 0x50(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x50(%rbx), %rax
movq %r15, 0x10(%rax)
movq 0x50(%rbx), %rax
movq $0x207, 0x18(%rax)      # imm = 0x207
movq 0x50(%rbx), %rax
leaq 0x20(%rax), %rcx
movq %rcx, 0x50(%rbx)
movq %r14, 0x20(%rax)
movq 0x8(%rbx), %rax
movq 0x50(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x50(%rbx), %rax
movq 0x110(%rbx), %rcx
movq %rcx, 0x10(%rax)
movq 0x50(%rbx), %rax
movq $0x198, 0x18(%rax)      # imm = 0x198
addq $0x20, 0x50(%rbx)
movq 0x120(%rbx), %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_with_output_to_file
static s7_pointer g_with_output_to_file(s7_scheme *sc, s7_pointer args)
    {
#define H_with_output_to_file "(with-output-to-file filename thunk) opens filename as the temporary current-output-port and calls thunk"
#define Q_with_output_to_file sc->pl_sf
        s7_pointer old_output_port, file, proc;

        file = car(args);
        if (!is_string(file))
            return(method_or_bust(sc, file, sc->with_output_to_file_symbol, args, T_STRING, 1));

        proc = cadr(args);
        if (!is_thunk(sc, proc))
            return(method_or_bust_with_type(sc, proc, sc->with_output_to_file_symbol, args, a_thunk_string, 2));

        if ((is_continuation(proc)) || (is_goto(proc)))
            return(wrong_type_argument_with_type(sc, sc->with_output_to_file_symbol, 1, proc, a_normal_procedure_string));

        old_output_port = sc->output_port;
        sc->output_port = s7_open_output_file(sc, string_value(file), "w");
        push_stack(sc, OP_UNWIND_OUTPUT, old_output_port, sc->output_port);
        push_stack(sc, OP_APPLY, sc->nil, proc);
        return(sc->F);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
movq 0x8(%rsi), %r12
cmpb $0x13, (%r12)
jne 0x69a00
movq 0x10(%r15), %rax
movq 0x8(%rax), %r14
cmpb $0x26, (%r14)
jb 0x69a2c
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x41fac
testb %al, %al
je 0x69a2c
movb (%r14), %al
addb $-0x25, %al
cmpb $0x1, %al
ja 0x69a59
movq 0x1690(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0xe4f7c(%rip), %rdx     # 0x14e958
movq 0x140(%rbx), %r8
movq 0xf3c1e(%rip), %r9      # 0x15d608
movq %rbx, %rdi
movq %r14, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xb31d
movq 0x1690(%rbx), %rdx
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rcx
movl $0x13, %r8d
movl $0x1, %r9d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xf1ae
movq 0x1690(%rbx), %rdx
movq 0xf08f6(%rip), %r8      # 0x15a330
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rcx
movl $0x2, %r9d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xf3da
movq 0x188(%rbx), %r15
movq 0x10(%r12), %rsi
leaq 0xbb2fe(%rip), %rdx     # 0x124d6a
movq %rbx, %rdi
callq 0xff27
movq %rax, 0x188(%rbx)
movq 0x50(%rbx), %rcx
movq %rax, (%rcx)
movq 0x8(%rbx), %rax
movq 0x50(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x50(%rbx), %rax
movq %r15, 0x10(%rax)
movq 0x50(%rbx), %rax
movq $0x1ef, 0x18(%rax)      # imm = 0x1EF
movq 0x50(%rbx), %rax
leaq 0x20(%rax), %rcx
movq %rcx, 0x50(%rbx)
movq %r14, 0x20(%rax)
movq 0x8(%rbx), %rax
movq 0x50(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x50(%rbx), %rax
movq 0x110(%rbx), %rcx
movq %rcx, 0x10(%rax)
movq 0x50(%rbx), %rax
movq $0x198, 0x18(%rax)      # imm = 0x198
addq $0x20, 0x50(%rbx)
movq 0x120(%rbx), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_is_directory
static s7_pointer g_is_directory(s7_scheme *sc, s7_pointer args)
    {
#define H_is_directory "(directory? str) returns #t if str is the name of a directory"
#define Q_is_directory s7_make_signature(sc, 2, sc->is_boolean_symbol, sc->is_string_symbol)
        s7_pointer name;
        name = car(args);

        if (!is_string(name))
            return(method_or_bust_one_arg(sc, name, sc->is_directory_symbol, args, T_STRING));
        return(s7_make_boolean(sc, is_directory(string_value(name))));
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rsi, %rcx
movq %rdi, %rbx
movq 0x8(%rsi), %rsi
cmpb $0x13, (%rsi)
jne 0x69b4b
movq 0x10(%rsi), %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x93d0
testl %eax, %eax
sets %al
movl 0x18(%r14), %ecx
andl $0xf000, %ecx           # imm = 0xF000
cmpl $0x4000, %ecx           # imm = 0x4000
setne %cl
orb %al, %cl
movzbl %cl, %eax
movq 0x118(%rbx,%rax,8), %rax
addq $0x98, %rsp
popq %rbx
popq %r14
retq
movq 0x1e70(%rbx), %rdx
movq %rbx, %rdi
movl $0x13, %r8d
addq $0x98, %rsp
popq %rbx
popq %r14
jmp 0x9b739
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_file_exists
static s7_pointer g_file_exists(s7_scheme *sc, s7_pointer args)
    {
#define H_file_exists "(file-exists? filename) returns #t if the file exists"
#define Q_file_exists s7_make_signature(sc, 2, sc->is_boolean_symbol, sc->is_string_symbol)

        s7_pointer name;
        name = car(args);

        if (!is_string(name))
            return(method_or_bust_one_arg(sc, name, sc->file_exists_symbol, args, T_STRING));
        return(s7_make_boolean(sc, file_probe(string_value(name))));
    }

// Assembly:
pushq %rbx
movq %rsi, %rcx
movq %rdi, %rbx
movq 0x8(%rsi), %rsi
cmpb $0x13, (%rsi)
jne 0x69b96
movq 0x10(%rsi), %rdi
xorl %esi, %esi
callq 0x9590
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
movq 0x118(%rbx,%rcx,8), %rax
popq %rbx
retq
movq 0x1e78(%rbx), %rdx
movq %rbx, %rdi
movl $0x13, %r8d
popq %rbx
jmp 0x9b739
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_delete_file
static s7_pointer g_delete_file(s7_scheme *sc, s7_pointer args)
    {
#define H_delete_file "(delete-file filename) deletes the file filename."
#define Q_delete_file s7_make_signature(sc, 2, sc->is_integer_symbol, sc->is_string_symbol)

        s7_pointer name;
        name = car(args);

        if (!is_string(name))
            return(method_or_bust_one_arg(sc, name, sc->delete_file_symbol, args, T_STRING));
        return(make_integer(sc, unlink(string_value(name))));
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rcx
movq %rdi, %rbx
movq 0x8(%rsi), %rsi
cmpb $0x13, (%rsi)
jne 0x69be1
movq 0x10(%rsi), %rdi
callq 0x90a0
movslq %eax, %r14
cmpl $0x7ff, %r14d           # imm = 0x7FF
ja 0x69bfd
leaq 0xe4d75(%rip), %rax     # 0x14e950
movq (%rax,%r14,8), %rax
jmp 0x69c36
movq 0x1e80(%rbx), %rdx
movq %rbx, %rdi
movl $0x13, %r8d
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x9b739
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x69c15
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xb, (%rax)
movq %r14, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_getenv
static s7_pointer g_getenv(s7_scheme *sc, s7_pointer args)
    {
#define H_getenv "(getenv var) returns the value of an environment variable."
#define Q_getenv sc->pcl_s

        s7_pointer name;
        name = car(args);

        if (!is_string(name))
            return(method_or_bust_one_arg(sc, name, sc->getenv_symbol, args, T_STRING));
        return(s7_make_string(sc, getenv(string_value(name))));
    }

// Assembly:
pushq %rbx
movq %rsi, %rcx
movq %rdi, %rbx
movq 0x8(%rsi), %rsi
cmpb $0x13, (%rsi)
jne 0x69c63
movq 0x10(%rsi), %rdi
callq 0x9030
movq %rbx, %rdi
movq %rax, %rsi
popq %rbx
jmp 0xf735
movq 0x1e88(%rbx), %rdx
movq %rbx, %rdi
movl $0x13, %r8d
popq %rbx
jmp 0x9b739
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_directory_to_list
static s7_pointer g_directory_to_list(s7_scheme *sc, s7_pointer args)
    {
        s7_pointer name;
        DIR *dpos;
        s7_pointer result;

#define H_directory_to_list "(directory->list directory) returns the contents of the directory as a list of strings (filenames)."
#define Q_directory_to_list s7_make_signature(sc, 2, sc->is_list_symbol, sc->is_string_symbol)   /* can return nil */

        name = car(args);
        if (!is_string(name))
            return(method_or_bust_one_arg(sc, name, sc->directory_to_list_symbol, list_1(sc, name), T_STRING));

        sc->w = sc->nil;
        if ((dpos = opendir(string_value(name))))
        {
            struct dirent *dirp;
            while ((dirp = readdir(dpos)))
                sc->w = cons(sc, s7_make_string(sc, dirp->d_name), sc->w);
            closedir(dpos);
        }

        result = sc->w;
        sc->w = sc->nil;
        return(result);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rsi), %r14
cmpb $0x13, (%r14)
jne 0x69f55
movq 0x110(%rbx), %rax
movq %rax, 0x4d8(%rbx)
movq 0x10(%r14), %rdi
callq 0x9190
testq %rax, %rax
je 0x69fc7
movq %rax, %r14
movq %r14, %rdi
callq 0x9440
testq %rax, %rax
je 0x69fbf
addq $0x13, %rax
movq %rbx, %rdi
movq %rax, %rsi
callq 0xf735
movq %rax, %r15
movq 0x4d8(%rbx), %r12
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x69f27
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq %r15, 0x8(%rax)
movq %r12, 0x10(%rax)
movq %rax, 0x4d8(%rbx)
jmp 0x69ee5
movq 0x1e98(%rbx), %r15
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r12
cmpq 0x98(%rbx), %rax
ja 0x69f7b
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rcx
movq $0x200001, (%rcx)       # imm = 0x200001
movq %r14, 0x8(%rcx)
movq %r12, 0x10(%rcx)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl $0x13, %r8d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x9b739
movq %r14, %rdi
callq 0x92e0
movq 0x4d8(%rbx), %rax
movq 0x110(%rbx), %rcx
movq %rcx, 0x4d8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_file_mtime
static s7_pointer g_file_mtime(s7_scheme *sc, s7_pointer args)
    {
#define H_file_mtime "(file-mtime file): return the write date of file"
#define Q_file_mtime s7_make_signature(sc, 2, sc->is_integer_symbol, sc->is_string_symbol)

        struct stat statbuf;
        int32_t err;
        s7_pointer name;

        name = car(args);
        if (!is_string(name))
            return(method_or_bust_one_arg(sc, name, sc->file_mtime_symbol, args, T_STRING));

        err = stat(string_value(name), &statbuf);
        if (err < 0)
            return(file_error(sc, "file-mtime", strerror(errno), string_value(name)));

        return(s7_make_integer(sc, (s7_int)(statbuf.st_mtime)));
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
movq 0x8(%rsi), %r14
cmpb $0x13, (%r14)
jne 0x6a028
movq 0x10(%r14), %rdi
leaq 0x8(%rsp), %rsi
callq 0x93d0
testl %eax, %eax
js 0x6a04d
movq 0x60(%rsp), %rsi
movq %rbx, %rdi
addq $0x98, %rsp
popq %rbx
popq %r14
jmp 0xdff8
movq %rsi, %rcx
movq 0x1ea0(%rbx), %rdx
movq %rbx, %rdi
movq %r14, %rsi
movl $0x13, %r8d
addq $0x98, %rsp
popq %rbx
popq %r14
jmp 0x9b739
callq 0x9090
movl (%rax), %edi
callq 0x96b0
movq 0x10(%r14), %rcx
leaq 0xad155(%rip), %rsi     # 0x1171b9
movq %rbx, %rdi
movq %rax, %rdx
addq $0x98, %rsp
popq %rbx
popq %r14
jmp 0x101e1
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_numerator
static s7_pointer g_numerator(s7_scheme *sc, s7_pointer args)
    {
#define H_numerator "(numerator rat) returns the numerator of the rational number rat"
#define Q_numerator s7_make_signature(sc, 2, sc->is_integer_symbol, sc->is_rational_symbol)

        s7_pointer x;
        x = car(args);
        switch (type(x))
        {
            case T_RATIO:       return(make_integer(sc, numerator(x)));
            case T_INTEGER:     return(x);
#if WITH_GMP
            case T_BIG_INTEGER: return(x);
            case T_BIG_RATIO:   return(mpz_to_big_integer(sc, mpq_numref(big_ratio(x))));
#endif
            default:            return(method_or_bust_with_type_one_arg(sc, x, sc->numerator_symbol, args, a_rational_string));
        }
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x8(%rsi), %rax
movzbl (%rax), %edx
cmpl $0xb, %edx
je 0x6a237
movq %rdi, %rbx
cmpl $0xc, %edx
jne 0x6a1db
movq 0x8(%rax), %r14
cmpq $0x7ff, %r14            # imm = 0x7FF
ja 0x6a1fe
leaq 0xe477b(%rip), %rax     # 0x14e950
movq (%rax,%r14,8), %rax
jmp 0x6a237
movq %rsi, %rcx
movq 0x1378(%rbx), %rdx
movq 0xf340c(%rip), %r8      # 0x15d5f8
movq %rbx, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x103001
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6a216
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xb, (%rax)
movq %r14, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_denominator
static s7_pointer g_denominator(s7_scheme *sc, s7_pointer args)
    {
#define H_denominator "(denominator rat) returns the denominator of the rational number rat"
#define Q_denominator s7_make_signature(sc, 2, sc->is_integer_symbol, sc->is_rational_symbol)

        s7_pointer x;
        x = car(args);
        switch (type(x))
        {
            case T_RATIO:       return(make_integer(sc, denominator(x)));
            case T_INTEGER:     return(small_int(1));
#if WITH_GMP
            case T_BIG_INTEGER: return(small_int(1));
            case T_BIG_RATIO:   return(mpz_to_big_integer(sc, mpq_denref(big_ratio(x))));
#endif
            default:            return(method_or_bust_with_type_one_arg(sc, x, sc->denominator_symbol, args, a_rational_string));
        }
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rcx
movq 0x8(%rsi), %rsi
movzbl (%rsi), %eax
cmpl $0xb, %eax
je 0x6a274
movq %rdi, %rbx
cmpl $0xc, %eax
jne 0x6a27d
movq 0x10(%rsi), %r14
cmpq $0x7ff, %r14            # imm = 0x7FF
ja 0x6a29a
leaq 0xe46e2(%rip), %rax     # 0x14e950
movq (%rax,%r14,8), %rax
jmp 0x6a2d3
movq 0xe46dd(%rip), %rax     # 0x14e958
jmp 0x6a2d3
movq 0xe70(%rbx), %rdx
movq 0xf336d(%rip), %r8      # 0x15d5f8
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x103001
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6a2b2
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xb, (%rax)
movq %r14, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_is_even
static s7_pointer g_is_even(s7_scheme *sc, s7_pointer args)
    {
#define H_is_even "(even? int) returns #t if the integer int32_t is even"
#define Q_is_even s7_make_signature(sc, 2, sc->is_boolean_symbol, sc->is_integer_symbol)

        s7_pointer p;
        p = car(args);
        switch (type(p))
        {
            case T_INTEGER:     return(make_boolean(sc, ((integer(p) & 1) == 0)));
#if WITH_GMP
            case T_BIG_INTEGER: return(make_boolean(sc, mpz_even_p(big_integer(p))));
#endif
            default:            return(method_or_bust_one_arg(sc, p, sc->is_even_symbol, list_1(sc, p), T_INTEGER));
        }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rsi), %r14
cmpb $0xb, (%r14)
jne 0x6a30c
movzbl 0x8(%r14), %eax
andl $0x1, %eax
movq 0x118(%rbx,%rax,8), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x1080(%rbx), %r15
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r12
cmpq 0x98(%rbx), %rax
ja 0x6a332
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rcx
movq $0x200001, (%rcx)       # imm = 0x200001
movq %r14, 0x8(%rcx)
movq %r12, 0x10(%rcx)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl $0xb, %r8d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x9b739
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_is_odd
static s7_pointer g_is_odd(s7_scheme *sc, s7_pointer args)
    {
#define H_is_odd "(odd? int) returns #t if the integer int32_t is odd"
#define Q_is_odd s7_make_signature(sc, 2, sc->is_boolean_symbol, sc->is_integer_symbol)

        s7_pointer p;
        p = car(args);
        switch (type(p))
        {
            case T_INTEGER:     return(make_boolean(sc, ((integer(p) & 1) == 1)));
#if WITH_GMP
            case T_BIG_INTEGER: return(make_boolean(sc, mpz_odd_p(big_integer(p))));
#endif
            default:            return(method_or_bust_one_arg(sc, p, sc->is_odd_symbol, list_1(sc, p), T_INTEGER));
        }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rsi), %r14
cmpb $0xb, (%r14)
jne 0x6a3a9
xorl %eax, %eax
testb $0x1, 0x8(%r14)
sete %al
movq 0x118(%rbx,%rax,8), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x1128(%rbx), %r15
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r12
cmpq 0x98(%rbx), %rax
ja 0x6a3cf
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rcx
movq $0x200001, (%rcx)       # imm = 0x200001
movq %r14, 0x8(%rcx)
movq %r12, 0x10(%rcx)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl $0xb, %r8d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x9b739
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_is_zero
static s7_pointer g_is_zero(s7_scheme *sc, s7_pointer args)
    {
#define H_is_zero "(zero? num) returns #t if the number num is zero"
#define Q_is_zero sc->pl_bn
        s7_pointer x;
        x = car(args);
        switch (type(x))
        {
            case T_INTEGER:     return(make_boolean(sc, integer(x) == 0));
            case T_REAL:        return(make_boolean(sc, real(x) == 0.0));
            case T_RATIO:
            case T_COMPLEX:     return(sc->F);      /* ratios and complex numbers are already collapsed into integers and reals */
#if WITH_GMP
            case T_BIG_INTEGER: return(make_boolean(sc, mpz_cmp_ui(big_integer(x), 0) == 0));
            case T_BIG_REAL:    return(make_boolean(sc, mpfr_zero_p(big_real(x))));
            case T_BIG_RATIO:
            case T_BIG_COMPLEX: return(sc->F);
#endif
            default:
                                return(method_or_bust_with_type_one_arg(sc, x, sc->is_zero_symbol, list_1(sc, x), a_number_string));
        }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rsi), %r14
movzbl (%r14), %eax
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x6a47a
leaq 0xa648f(%rip), %rcx     # 0x1108c4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x120(%rbx), %rax
jmp 0x6a46e
xorl %eax, %eax
cmpq $0x0, 0x8(%r14)
setne %al
jmp 0x6a466
xorpd %xmm0, %xmm0
cmpneqsd 0x8(%r14), %xmm0
movq %xmm0, %rax
andl $0x1, %eax
movq 0x118(%rbx,%rax,8), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x11c0(%rbx), %r15
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r12
cmpq 0x98(%rbx), %rax
ja 0x6a4a0
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rcx
movq $0x200001, (%rcx)       # imm = 0x200001
movq %r14, 0x8(%rcx)
movq %r12, 0x10(%rcx)
movq 0xf2ed4(%rip), %r8      # 0x15d3a0
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x103001
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_is_positive
static s7_pointer g_is_positive(s7_scheme *sc, s7_pointer args)
    {
#define H_is_positive "(positive? num) returns #t if the real number num is positive (greater than 0)"
#define Q_is_positive s7_make_signature(sc, 2, sc->is_boolean_symbol, sc->is_real_symbol)
        s7_pointer x;
        x = car(args);
        switch (type(x))
        {
            case T_INTEGER:     return(make_boolean(sc, integer(x) > 0));
            case T_RATIO:       return(make_boolean(sc, numerator(x) > 0));
            case T_REAL:        return(make_boolean(sc, real(x) > 0.0));
#if WITH_GMP
            case T_BIG_INTEGER: return(make_boolean(sc, (mpz_cmp_ui(big_integer(x), 0) > 0)));
            case T_BIG_RATIO:   return(make_boolean(sc, (mpq_cmp_ui(big_ratio(x), 0, 1) > 0)));
            case T_BIG_REAL:    return(make_boolean(sc, (mpfr_cmp_ui(big_real(x), 0) > 0)));
#endif
            default:
                                return(method_or_bust_one_arg(sc, x, sc->is_positive_symbol, list_1(sc, x), T_REAL));
        }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rsi), %r14
movzbl (%r14), %eax
cmpl $0xd, %eax
je 0x6a513
cmpl $0xc, %eax
je 0x6a507
cmpl $0xb, %eax
jne 0x6a53a
xorl %eax, %eax
cmpq $0x0, 0x8(%r14)
setle %al
jmp 0x6a526
movsd 0x8(%r14), %xmm0
xorpd %xmm1, %xmm1
xorl %eax, %eax
ucomisd %xmm1, %xmm0
setbe %al
movq 0x118(%rbx,%rax,8), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x1150(%rbx), %r15
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r12
cmpq 0x98(%rbx), %rax
ja 0x6a560
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rcx
movq $0x200001, (%rcx)       # imm = 0x200001
movq %r14, 0x8(%rcx)
movq %r12, 0x10(%rcx)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl $0xd, %r8d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x9b739
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_is_infinite
static s7_pointer g_is_infinite(s7_scheme *sc, s7_pointer args)
    {
#define H_is_infinite "(infinite? obj) returns #t if obj is an infinite real"
#define Q_is_infinite sc->pl_bt

        s7_pointer x;
        x = car(args);
        switch (type(x))
        {
            case T_INTEGER:
            case T_RATIO:
                return(sc->F);

            case T_REAL:
                return(make_boolean(sc, is_inf(real(x))));

            case T_COMPLEX:
                return(make_boolean(sc, (is_inf(real_part(x))) || (is_inf(imag_part(x)))));

#if WITH_GMP
            case T_BIG_INTEGER:
            case T_BIG_RATIO:
                return(sc->F);

            case T_BIG_REAL:
                return(make_boolean(sc, mpfr_inf_p(big_real(x)) != 0));

            case T_BIG_COMPLEX:
                return(make_boolean(sc,
                            (mpfr_inf_p(big_real(g_real_part(sc, list_1(sc, x)))) != 0) ||
                            (mpfr_inf_p(big_real(g_imag_part(sc, list_1(sc, x)))) != 0)));
#endif

            default:
                if (g_is_number(sc, args) != sc->F)
                    return(method_or_bust_with_type_one_arg(sc, x, sc->is_infinite_symbol, list_1(sc, x), a_number_string));
        }
        return(sc->F);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rsi), %r14
movzbl (%r14), %eax
leal -0xb(%rax), %ecx
cmpl $0x2, %ecx
jb 0x6a60e
cmpl $0xd, %eax
je 0x6a61a
cmpl $0xe, %eax
jne 0x6a647
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
movq 0x8(%r14), %rsi
andq %rcx, %rsi
movl $0x118, %eax            # imm = 0x118
movabsq $0x7ff0000000000000, %rdx # imm = 0x7FF0000000000000
cmpq %rdx, %rsi
je 0x6a605
andq 0x10(%r14), %rcx
cmpq %rdx, %rcx
je 0x6a605
movl $0x120, %eax            # imm = 0x120
movq (%rbx,%rax), %rax
jmp 0x6a6c9
movq 0x120(%rbx), %rax
jmp 0x6a6c9
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
andq 0x8(%r14), %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
xorl %edx, %edx
cmpq %rcx, %rax
setne %dl
movq 0x118(%rbx,%rdx,8), %rax
jmp 0x6a6c9
movq %rbx, %rdi
callq 0x6264f
movq %rax, %rcx
movq 0x120(%rbx), %rax
cmpq %rax, %rcx
je 0x6a6c9
movq 0x10b8(%rbx), %r15
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r12
cmpq 0x98(%rbx), %rax
ja 0x6a684
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rcx
movq $0x200001, (%rcx)       # imm = 0x200001
movq %r14, 0x8(%rcx)
movq %r12, 0x10(%rcx)
movq 0xf2cf0(%rip), %r8      # 0x15d3a0
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x103001
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_is_nan
static s7_pointer g_is_nan(s7_scheme *sc, s7_pointer args)
    {
#define H_is_nan "(nan? obj) returns #t if obj is a NaN"
#define Q_is_nan sc->pl_bt

        s7_pointer x;
        x = car(args);
        switch (type(x))
        {
            case T_INTEGER:
            case T_RATIO:
                return(sc->F);

            case T_REAL:
                return(make_boolean(sc, is_NaN(real(x))));

            case T_COMPLEX:
                return(make_boolean(sc, (is_NaN(real_part(x))) || (is_NaN(imag_part(x)))));

#if WITH_GMP
            case T_BIG_INTEGER:
            case T_BIG_RATIO:
                return(sc->F);

            case T_BIG_REAL:
                return(make_boolean(sc, is_NaN(s7_real_part(x))));

            case T_BIG_COMPLEX:
                return(make_boolean(sc, (is_NaN(s7_real_part(x))) || (is_NaN(s7_imag_part(x)))));
#endif

            default:
                if (g_is_number(sc, args) != sc->F)
                    return(method_or_bust_with_type_one_arg(sc, x, sc->is_nan_symbol, list_1(sc, x), a_number_string));
        }
        return(sc->F);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rsi), %r14
movzbl (%r14), %eax
leal -0xb(%rax), %ecx
cmpl $0x2, %ecx
jb 0x6a725
cmpl $0xd, %eax
je 0x6a731
cmpl $0xe, %eax
jne 0x6a74d
movsd 0x8(%r14), %xmm0
movl $0x118, %eax            # imm = 0x118
ucomisd %xmm0, %xmm0
jp 0x6a71c
movsd 0x10(%r14), %xmm0
ucomisd %xmm0, %xmm0
jp 0x6a71c
movl $0x120, %eax            # imm = 0x120
movq (%rbx,%rax), %rax
jmp 0x6a7cf
movq 0x120(%rbx), %rax
jmp 0x6a7cf
movsd 0x8(%r14), %xmm0
xorl %eax, %eax
ucomisd %xmm0, %xmm0
setnp %al
movq 0x118(%rbx,%rax,8), %rax
jmp 0x6a7cf
movq %rbx, %rdi
callq 0x6264f
movq %rax, %rcx
movq 0x120(%rbx), %rax
cmpq %rax, %rcx
je 0x6a7cf
movq 0x1108(%rbx), %r15
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r12
cmpq 0x98(%rbx), %rax
ja 0x6a78a
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rcx
movq $0x200001, (%rcx)       # imm = 0x200001
movq %r14, 0x8(%rcx)
movq %r12, 0x10(%rcx)
movq 0xf2bea(%rip), %r8      # 0x15d3a0
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x103001
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_angle
static s7_pointer g_angle(s7_scheme *sc, s7_pointer args)
    {
#define H_angle "(angle z) returns the angle of z"
#define Q_angle s7_make_signature(sc, 2, sc->is_real_symbol, sc->is_number_symbol)
        s7_pointer x;
        /* (angle inf+infi) -> 0.78539816339745 ?
         *   I think this should be -pi < ang <= pi
         */

        x = car(args);
        switch (type(x))
        {
            case T_INTEGER:
                if (integer(x) < 0)
                    return(real_pi);
                return(small_int(0));

            case T_RATIO:
                if (numerator(x) < 0)
                    return(real_pi);
                return(small_int(0));

            case T_REAL:
                if (is_NaN(real(x))) return(x);
                if (real(x) < 0.0)
                    return(real_pi);
                return(real_zero);

            case T_COMPLEX:
                return(make_real(sc, atan2(imag_part(x), real_part(x))));

            default:
                return(method_or_bust_with_type_one_arg(sc, x, sc->angle_symbol, args, a_number_string));
        }
    }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x8(%rsi), %rax
movzbl (%rax), %edx
addl $-0xb, %edx
cmpl $0x3, %edx
ja 0x6ae4c
leaq 0xa5b31(%rip), %rcx     # 0x1108e4
movslq (%rcx,%rdx,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
cmpq $0x0, 0x8(%rax)
js 0x6adec
movq 0xe3b86(%rip), %rax     # 0x14e950
jmp 0x6ae74
movsd 0x8(%rax), %xmm0
ucomisd %xmm0, %xmm0
jp 0x6ae74
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x6ae6d
movq 0xeb0b5(%rip), %rax     # 0x155ea8
jmp 0x6ae74
movsd 0x8(%rax), %xmm1
movsd 0x10(%rax), %xmm0
callq 0x94e0
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6ae28
movq %rbx, %rdi
movsd %xmm0, 0x8(%rsp)
callq 0xb389
movsd 0x8(%rsp), %xmm0
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xd, (%rax)
movsd %xmm0, 0x8(%rax)
jmp 0x6ae74
movq %rsi, %rcx
movq 0xbb0(%rbx), %rdx
movq 0xf2543(%rip), %r8      # 0x15d3a0
movq %rbx, %rdi
movq %rax, %rsi
addq $0x10, %rsp
popq %rbx
jmp 0x103001
movq 0xe7de4(%rip), %rax     # 0x152c58
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_exp
static s7_pointer g_exp(s7_scheme *sc, s7_pointer args)
    {
#define H_exp "(exp z) returns e^z, (exp 1) is 2.718281828459"
#define Q_exp sc->pl_nn

        s7_pointer x;

        x = car(args);
        switch (type(x))
        {
            case T_INTEGER:
                if (integer(x) == 0) return(small_int(1));                       /* (exp 0) -> 1 */
                return(make_real(sc, exp((s7_double)(integer(x)))));

            case T_RATIO:
                return(make_real(sc, exp((s7_double)fraction(x))));

            case T_REAL:
                return(make_real(sc, exp(real(x))));

            case T_COMPLEX:
#if HAVE_COMPLEX_NUMBERS
                return(s7_from_c_complex(sc, cexp(as_c_complex(x))));
                /* this is inaccurate for large arguments:
                 *   (exp 0+1e20i) -> -0.66491178990701-0.74692189125949i, not 7.639704044417283004001468027378811228331E-1-6.45251285265780844205811711312523007406E-1i
                 */
#else
                return(out_of_range(sc, sc->exp_symbol, small_int(1), x, no_complex_numbers_string));
#endif

            default:
                return(method_or_bust_with_type_one_arg(sc, x, sc->exp_symbol, args, a_number_string));
        }
    }

// Assembly:
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rcx
movq %rdi, %rbx
movq 0x8(%rsi), %rsi
movzbl (%rsi), %eax
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x6b4c0
leaq 0xa54f1(%rip), %rcx     # 0x1108f4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x6b4db
cvtsi2sd %rax, %xmm0
jmp 0x6b471
movsd 0x8(%rsi), %xmm0
jmp 0x6b471
movsd 0x10(%rsi), %xmm1
xorpd %xmm0, %xmm0
mulsd %xmm1, %xmm0
addsd 0x8(%rsi), %xmm0
callq 0x90e0
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
jmp 0xe101
movq 0x8(%rsi), %rax
movq 0x10(%rsi), %rcx
movq %rax, 0x18(%rsp)
fildll 0x18(%rsp)
movq %rcx, 0x10(%rsp)
fildll 0x10(%rsp)
fdivrp %st, %st(1)
fstpl 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
callq 0x9720
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6b498
movq %rbx, %rdi
movsd %xmm0, (%rsp)
callq 0xb389
movsd (%rsp), %xmm0
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xd, (%rax)
movsd %xmm0, 0x8(%rax)
addq $0x20, %rsp
popq %rbx
retq
movq 0xed0(%rbx), %rdx
movq 0xf1ed2(%rip), %r8      # 0x15d3a0
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
jmp 0x103001
movq 0xe3476(%rip), %rax     # 0x14e958
jmp 0x6b4ba