// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: closure_to_let
static s7_pointer closure_to_let(s7_scheme *sc, s7_pointer obj)
                {
                    s7_pointer let, sig;
                    const char* doc;
                    s7_int gc_loc;
                    if (!sc->file_symbol)
                    {
                        sc->file_symbol = make_symbol(sc, "file");
                        sc->line_symbol = make_symbol(sc, "line");
                    }
                    if (!sc->source_symbol)
                        sc->source_symbol = make_symbol(sc, "source");
                    let = g_local_inlet(sc, 8, sc->value_symbol, obj,
                            sc->type_symbol, (is_t_procedure(obj)) ? sc->is_procedure_symbol : sc->is_macro_symbol,
                            sc->arity_symbol, s7_arity(sc, obj),
                            sc->is_immutable_symbol, s7_make_boolean(sc, is_immutable(obj)));
                    gc_loc = s7_gc_protect_1(sc, let);

                    sig = s7_signature(sc, obj);
                    if (is_pair(sig))
                        s7_varlet(sc, let, sc->local_signature_symbol, sig);

                    doc = s7_documentation(sc, obj);
                    if (doc)
                        s7_varlet(sc, let, sc->local_documentation_symbol, s7_make_string(sc, doc));

                    if (is_let(closure_let(obj)))
                    {
                        s7_pointer flet;
                        flet = closure_let(obj);
                        if ((has_let_file(flet)) &&
                                (let_file(flet) <= (s7_int)sc->file_names_top) &&
                                (let_line(flet) > 0))
                        {
                            s7_varlet(sc, let, sc->file_symbol, sc->file_names[let_file(flet)]);
                            s7_varlet(sc, let, sc->line_symbol, make_integer(sc, let_line(flet)));
                        }
                    }

                    if (closure_setter(obj) != sc->F)
                        s7_varlet(sc, let, sc->local_setter_symbol, closure_setter(obj));

                    s7_varlet(sc, let, sc->source_symbol,
                            append_in_place(sc, list_2(sc, (is_closure_star(obj)) ? sc->lambda_star_symbol : sc->lambda_symbol,
                                    closure_args(obj)),
                                closure_body(obj)));
                    s7_gc_unprotect_at(sc, gc_loc);
                    return(let);
                }

// Assembly:
pushq %rbx
subq $0x150, %rsp            # imm = 0x150
movq %rdi, 0x148(%rsp)
movq %rsi, 0x140(%rsp)
movq 0x148(%rsp), %rax
cmpq $0x0, 0x1e00(%rax)
jne 0x1c8086
movq 0x148(%rsp), %rdi
leaq 0x1dd8c(%rip), %rsi     # 0x1e5dd5
callq 0xb400
movq %rax, %rcx
movq 0x148(%rsp), %rax
movq %rcx, 0x1e00(%rax)
movq 0x148(%rsp), %rdi
leaq 0x1d5b9(%rip), %rsi     # 0x1e5628
callq 0xb400
movq %rax, %rcx
movq 0x148(%rsp), %rax
movq %rcx, 0x1e10(%rax)
movq 0x148(%rsp), %rax
cmpq $0x0, 0x1da8(%rax)
jne 0x1c80be
movq 0x148(%rsp), %rdi
leaq 0x23856(%rip), %rsi     # 0x1eb8fd
callq 0xb400
movq %rax, %rcx
movq 0x148(%rsp), %rax
movq %rcx, 0x1da8(%rax)
movq 0x148(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x148(%rsp), %rax
movq 0x18b8(%rax), %rax
movq %rax, 0xc0(%rsp)
movq 0x140(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0x148(%rsp), %rax
movq 0x18c0(%rax), %rax
movq %rax, 0xd0(%rsp)
movq 0x140(%rsp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x53d40(%rip), %rax     # 0x21be60
testb $0x1, (%rax,%rcx)
je 0x1c813f
movq 0x148(%rsp), %rax
movq 0x1158(%rax), %rax
movq %rax, 0xb0(%rsp)
jmp 0x1c8156
movq 0x148(%rsp), %rax
movq 0x10f8(%rax), %rax
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x148(%rsp), %rax
movq 0xbd0(%rax), %rbx
movq 0x148(%rsp), %rdi
movq 0x140(%rsp), %rsi
callq 0x3c190
movq %rax, 0xa0(%rsp)
movq 0x148(%rsp), %rax
movq 0x10a8(%rax), %rax
movq %rax, 0xa8(%rsp)
movq 0x148(%rsp), %rdi
movq 0x140(%rsp), %rax
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
setne %al
movzbl %al, %esi
andl $0x1, %esi
callq 0x9c10
movq 0xb8(%rsp), %rdi
movq 0xc0(%rsp), %rdx
movq 0xc8(%rsp), %rcx
movq 0xd0(%rsp), %r8
movq 0x98(%rsp), %r9
movq 0xa0(%rsp), %r11
movq 0xa8(%rsp), %r10
movl $0x8, %esi
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x1c4750
movq %rax, 0x138(%rsp)
movq 0x148(%rsp), %rdi
movq 0x138(%rsp), %rsi
callq 0x9cb0
movq %rax, 0x120(%rsp)
movq 0x148(%rsp), %rdi
movq 0x140(%rsp), %rsi
callq 0x3a750
movq %rax, 0x130(%rsp)
movq 0x130(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x1c82a9
movq 0x148(%rsp), %rdi
movq 0x138(%rsp), %rsi
movq 0x148(%rsp), %rax
movq 0x16c8(%rax), %rdx
movq 0x130(%rsp), %rcx
callq 0xc040
movq 0x148(%rsp), %rdi
movq 0x140(%rsp), %rsi
callq 0x3a3d0
movq %rax, 0x128(%rsp)
cmpq $0x0, 0x128(%rsp)
je 0x1c833d
movq 0x148(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x138(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x148(%rsp), %rax
movq 0x16c0(%rax), %rax
movq %rax, 0x90(%rsp)
movq 0x148(%rsp), %rdi
movq 0x128(%rsp), %rsi
callq 0x14630
movq 0x80(%rsp), %rdi
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
movq %rax, %rcx
callq 0xc040
movq 0x140(%rsp), %rax
movq 0x18(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1c, %eax
jne 0x1c852d
movq 0x140(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x118(%rsp)
movq 0x118(%rsp), %rax
movzwl 0x6(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x1c852b
movq 0x118(%rsp), %rax
movl 0x2c(%rax), %eax
movq 0x148(%rsp), %rcx
movslq 0x4a4(%rcx), %rcx
cmpq %rcx, %rax
jg 0x1c852b
movq 0x118(%rsp), %rax
cmpl $0x0, 0x28(%rax)
jbe 0x1c852b
movq 0x148(%rsp), %rdi
movq 0x138(%rsp), %rsi
movq 0x148(%rsp), %rax
movq 0x1e00(%rax), %rdx
movq 0x148(%rsp), %rax
movq 0x498(%rax), %rax
movq 0x118(%rsp), %rcx
movl 0x2c(%rcx), %ecx
movq (%rax,%rcx,8), %rcx
callq 0xc040
movq 0x148(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x138(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x148(%rsp), %rax
movq 0x1e10(%rax), %rax
movq %rax, 0x78(%rsp)
movq 0x118(%rsp), %rax
movl 0x28(%rax), %eax
movq %rax, 0x110(%rsp)
movq 0x110(%rsp), %rax
andq $-0x800, %rax           # imm = 0xF800
cmpq $0x0, %rax
jne 0x1c846a
movq 0x110(%rsp), %rcx
leaq 0x4e024(%rip), %rax     # 0x216480
movq (%rax,%rcx,8), %rax
movq %rax, 0x60(%rsp)
jmp 0x1c8502
jmp 0x1c846c
movq 0x148(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x148(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x1c8499
movq 0x148(%rsp), %rdi
callq 0xc670
movq 0x148(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x100(%rsp)
movq 0x100(%rsp), %rax
movq $0xb, (%rax)
movq 0x110(%rsp), %rcx
movq 0x100(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x100(%rsp), %rax
movq %rax, 0xf8(%rsp)
movq 0xf8(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x78(%rsp), %rdx
movq 0x70(%rsp), %rsi
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rax
movq %rax, 0x108(%rsp)
movq 0x108(%rsp), %rcx
callq 0xc040
jmp 0x1c852d
movq 0x140(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x148(%rsp), %rcx
cmpq 0x120(%rcx), %rax
je 0x1c857a
movq 0x148(%rsp), %rdi
movq 0x138(%rsp), %rsi
movq 0x148(%rsp), %rax
movq 0x16d0(%rax), %rdx
movq 0x140(%rsp), %rax
movq 0x20(%rax), %rcx
callq 0xc040
movq 0x148(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x138(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x148(%rsp), %rax
movq 0x1da8(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x148(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x148(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x140(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x29, %eax
jne 0x1c85e8
movq 0x148(%rsp), %rax
movq 0x17a0(%rax), %rax
movq %rax, 0x30(%rsp)
jmp 0x1c85fc
movq 0x148(%rsp), %rax
movq 0x1798(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x140(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xe8(%rsp)
movq 0x148(%rsp), %rax
movq 0x110(%rax), %rax
movq %rax, 0xe0(%rsp)
movq 0x148(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x148(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x1c865e
movq 0x148(%rsp), %rdi
callq 0xc670
movq 0x148(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0xf0(%rsp)
movq 0xf0(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0x28(%rsp), %rsi
movq 0x58(%rsp), %rdi
movq 0xe8(%rsp), %rcx
movq 0xf0(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0xe0(%rsp), %rcx
movq 0xf0(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0xf0(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0xd8(%rsp), %rdx
callq 0xd9f0
movq 0x50(%rsp), %rdi
movq %rax, %rsi
movq 0x140(%rsp), %rax
movq 0x10(%rax), %rdx
callq 0x16ddd0
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %rax, %rcx
callq 0xc040
movq 0x148(%rsp), %rdi
movq 0x120(%rsp), %rsi
callq 0x9f60
movq 0x138(%rsp), %rax
addq $0x150, %rsp            # imm = 0x150
popq %rbx
retq
nopl (%rax,%rax)