// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: g_funclet
static s7_pointer g_funclet(s7_scheme *sc, s7_pointer args)
                {
                    s7_pointer p, e;
#define H_funclet "(funclet func) tries to return a function's definition environment"
#define Q_funclet s7_make_signature(sc, 2, s7_make_signature(sc, 2, sc->is_let_symbol, sc->is_null_symbol), \
        s7_make_signature(sc, 2, sc->is_procedure_symbol, sc->is_macro_symbol))

                    p = car(args);
                    if (is_symbol(p))
                    {
                        p = s7_symbol_value(sc, p);
                        if (p == sc->undefined)
                            return(s7_error(sc, sc->wrong_type_arg_symbol,
                                        set_elist_2(sc, wrap_string(sc, "funclet arg, '~S, is unbound", 28), car(args)))); /* not p here */
                    }
                    check_method(sc, p, sc->funclet_symbol, args);

                    if (!((is_procedure_or_macro(p)) || (is_c_object(p))))
                        return(simple_wrong_type_argument_with_type(sc, sc->funclet_symbol, p,
                                    wrap_string(sc, "a procedure or a macro", 22)));
                    e = find_let(sc, p);
                    if ((is_null(e)) &&
                            (!is_c_object(p))) /* why this complication? */
                        return(sc->rootlet);

                    return(e);
                }

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x78(%rsp)
movq %rsi, 0x70(%rsp)
movq 0x70(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
jne 0xa2709
movq 0x78(%rsp), %rdi
movq 0x68(%rsp), %rsi
callq 0xb3a0
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rax
movq 0x78(%rsp), %rcx
cmpq 0x128(%rcx), %rax
jne 0xa2707
movq 0x78(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x78(%rsp), %rax
movq 0x1940(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x78(%rsp), %rdi
leaq 0x151773(%rip), %rsi    # 0x1f3e3b
movl $0x1c, %edx
callq 0xb880
movq 0x40(%rsp), %rdi
movq %rax, %rsi
movq 0x70(%rsp), %rax
movq 0x8(%rax), %rdx
callq 0xb830
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x80(%rsp)
jmp 0xa28ca
jmp 0xa2709
movq 0x68(%rsp), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
je 0xa27ba
movq 0x78(%rsp), %rax
testb $0x1, 0x24c(%rax)
je 0xa27ba
movq 0x78(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x78(%rsp), %rdi
movq 0x68(%rsp), %rsi
callq 0x9a10
movq 0x38(%rsp), %rdi
movq %rax, %rsi
movq 0x78(%rsp), %rax
movq 0xf28(%rax), %rdx
callq 0x98d0
movq %rax, 0x58(%rsp)
movq 0x78(%rsp), %rcx
cmpq 0x128(%rcx), %rax
je 0xa27ba
movq 0x78(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x44270
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq %rax, %rdx
callq 0xda50
movq %rax, 0x80(%rsp)
jmp 0xa28ca
movq 0x68(%rsp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x179695(%rip), %rax    # 0x21be60
testb $0x1, (%rax,%rcx)
jne 0xa2873
movq 0x68(%rsp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x1796ba(%rip), %rax    # 0x21bea0
testb $0x1, (%rax,%rcx)
jne 0xa2873
movq 0x68(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x14, %eax
je 0xa2873
movq 0x78(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x78(%rsp), %rax
movq 0xf28(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x78(%rsp), %rax
movq 0x140(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x78(%rsp), %rdi
leaq 0x1515e1(%rip), %rsi    # 0x1f3e24
movl $0x16, %edx
callq 0xb880
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq %rax, %r8
callq 0x14a60
movq %rax, 0x80(%rsp)
jmp 0xa28ca
movq 0x78(%rsp), %rdi
movq 0x68(%rsp), %rsi
callq 0x9a10
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
movq 0x78(%rsp), %rcx
cmpq 0x110(%rcx), %rax
jne 0xa28bd
movq 0x68(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x14, %eax
je 0xa28bd
movq 0x78(%rsp), %rax
movq 0x150(%rax), %rax
movq %rax, 0x80(%rsp)
jmp 0xa28ca
movq 0x60(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rax
addq $0x88, %rsp
retq
nopw (%rax,%rax)