// File: /workspace/github_c_makefile_star2_O2/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:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
movq 0x8(%rsi), %r14
cmpb $0xa, (%r14)
jne 0x6650d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x94b4
movq %rax, %r14
cmpq 0x128(%rbx), %rax
je 0x66617
movq (%r14), %r13
btl $0x1e, %r13d
jae 0x6656b
cmpb $0x1, 0x24c(%rbx)
jne 0x6656b
movq %rbx, %rdi
movq %r14, %rsi
callq 0x88f3
movq 0xf28(%rbx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x888f
cmpq 0x128(%rbx), %rax
je 0x6656b
movq %rax, %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0x35492
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xa34c
movzbl %r13b, %eax
leaq 0xb4dba(%rip), %rcx     # 0x11b330
cmpb $0x0, (%rax,%rcx)
je 0x665ad
movq %rbx, %rdi
movq %r14, %rsi
callq 0x88f3
movq %rax, %r14
cmpb $0x14, %r13b
je 0x6667e
cmpq 0x110(%rbx), %r14
jne 0x6667e
movq 0x150(%rbx), %r14
jmp 0x6667e
cmpb $0x14, %r13b
je 0x6657c
leaq 0xb4db6(%rip), %rcx     # 0x11b370
cmpb $0x0, (%rax,%rcx)
jne 0x6657c
movq 0xf28(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0x140(%rbx), %rcx
movq 0x820(%rbx), %rax
movslq 0x7dc(%rbx), %rdx
movq (%rax,%rdx,8), %r8
leal 0x1(%rdx), %eax
andl $0x7, %eax
movl %eax, 0x7dc(%rbx)
leaq 0x81872(%rip), %rax     # 0xe7e69
movq %rax, 0x10(%r8)
movq $0x16, 0x8(%r8)
movq %rbx, %rdi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xd456
movq 0x1940(%rbx), %r14
movq 0x820(%rbx), %rax
movslq 0x7dc(%rbx), %rcx
movq (%rax,%rcx,8), %rax
incl %ecx
andl $0x7, %ecx
movl %ecx, 0x7dc(%rbx)
leaq 0x8183e(%rip), %rcx     # 0xe7e80
movq %rcx, 0x10(%rax)
movq $0x1c, 0x8(%rax)
movq 0x8(%r15), %rcx
movq 0x6e0(%rbx), %rdx
movq %rax, 0x8(%rdx)
movq 0x6e0(%rbx), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0x6e0(%rbx), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2cdc0
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq