// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: c_object_to_let
static s7_pointer c_object_to_let(s7_scheme *sc, s7_pointer obj)
                {
                    s7_pointer let, clet;
                    if (!sc->class_symbol)
                    {
                        sc->class_symbol = make_symbol(sc, "class");
                        sc->c_object_length_symbol = make_symbol(sc, "c-object-length");
                        sc->c_object_ref_symbol = make_symbol(sc, "c-object-ref");
                        sc->c_object_let_symbol = make_symbol(sc, "c-object-let");
                        sc->c_object_set_symbol = make_symbol(sc, "c-object-set!");
                        sc->c_object_copy_symbol = make_symbol(sc, "c-object-copy");
                        sc->c_object_fill_symbol = make_symbol(sc, "c-object-fill!");
                        sc->c_object_reverse_symbol = make_symbol(sc, "c-object-reverse");
                        sc->c_object_to_list_symbol = make_symbol(sc, "c-object->list");
                        sc->c_object_to_string_symbol = make_symbol(sc, "c-object->string");
                    }
                    clet = c_object_let(obj);
                    let = g_local_inlet(sc, 10, sc->value_symbol, obj,
                            sc->type_symbol, sc->is_c_object_symbol,
                            sc->c_object_type_symbol, s7_make_integer(sc, c_object_type(obj)),
                            sc->c_object_let_symbol, clet,
                            sc->class_symbol, c_object_type_to_let(sc, obj));

                    /* not sure these are useful */
                    if (c_object_len(sc, obj))   /* c_object_length is the object length, not the procedure */
                        s7_varlet(sc, let, sc->c_object_length_symbol, s7_lambda(sc, c_object_len(sc, obj), 1, 0, false));
                    if (c_object_ref(sc, obj))
                        s7_varlet(sc, let, sc->c_object_ref_symbol, s7_lambda(sc, c_object_ref(sc, obj), 1, 0, true));
                    if (c_object_set(sc, obj))
                        s7_varlet(sc, let, sc->c_object_set_symbol, s7_lambda(sc, c_object_set(sc, obj), 2, 0, true));
                    if (c_object_copy(sc, obj))
                        s7_varlet(sc, let, sc->c_object_copy_symbol, s7_lambda(sc, c_object_copy(sc, obj), 1, 0, true));
                    if (c_object_fill(sc, obj))
                        s7_varlet(sc, let, sc->c_object_fill_symbol, s7_lambda(sc, c_object_fill(sc, obj), 1, 0, true));
                    if (c_object_reverse(sc, obj))
                        s7_varlet(sc, let, sc->c_object_reverse_symbol, s7_lambda(sc, c_object_reverse(sc, obj), 1, 0, true));
                    if (c_object_to_list(sc, obj))
                        s7_varlet(sc, let, sc->c_object_to_list_symbol, s7_lambda(sc, c_object_to_list(sc, obj), 1, 0, true));
                    if (c_object_to_string(sc, obj))
                        s7_varlet(sc, let, sc->c_object_to_string_symbol, s7_lambda(sc, c_object_to_string(sc, obj), 1, 1, false));

                    if ((is_let(clet)) &&
                            ((has_active_methods(sc, clet)) || (has_active_methods(sc, obj))))
                    {
                        s7_pointer func;
                        func = find_method(sc, clet, sc->object_to_let_symbol);
                        if (func != sc->undefined)
                        {
                            s7_int gc_loc;
                            gc_loc = s7_gc_protect_1(sc, let);
                            s7_apply_function(sc, func, list_2(sc, obj, let));
                            s7_gc_unprotect_at(sc, gc_loc);
                        }
                    }
                    return(let);
                }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rdi, 0x198(%rsp)
movq %rsi, 0x190(%rsp)
movq 0x198(%rsp), %rax
cmpq $0x0, 0x1e20(%rax)
jne 0x1c6c6e
movq 0x198(%rsp), %rdi
leaq 0x2cc5f(%rip), %rsi     # 0x1f3760
callq 0xb400
movq %rax, %rcx
movq 0x198(%rsp), %rax
movq %rcx, 0x1e20(%rax)
movq 0x198(%rsp), %rdi
leaq 0x2cc3f(%rip), %rsi     # 0x1f3766
callq 0xb400
movq %rax, %rcx
movq 0x198(%rsp), %rax
movq %rcx, 0x1e28(%rax)
movq 0x198(%rsp), %rdi
leaq 0x2cc29(%rip), %rsi     # 0x1f3776
callq 0xb400
movq %rax, %rcx
movq 0x198(%rsp), %rax
movq %rcx, 0x1db0(%rax)
movq 0x198(%rsp), %rdi
leaq 0x2cc10(%rip), %rsi     # 0x1f3783
callq 0xb400
movq %rax, %rcx
movq 0x198(%rsp), %rax
movq %rcx, 0x1e18(%rax)
movq 0x198(%rsp), %rdi
leaq 0x2cbf7(%rip), %rsi     # 0x1f3790
callq 0xb400
movq %rax, %rcx
movq 0x198(%rsp), %rax
movq %rcx, 0x1e30(%rax)
movq 0x198(%rsp), %rdi
leaq 0x2cbdf(%rip), %rsi     # 0x1f379e
callq 0xb400
movq %rax, %rcx
movq 0x198(%rsp), %rax
movq %rcx, 0x1e40(%rax)
movq 0x198(%rsp), %rdi
leaq 0x2cbc7(%rip), %rsi     # 0x1f37ac
callq 0xb400
movq %rax, %rcx
movq 0x198(%rsp), %rax
movq %rcx, 0x1e48(%rax)
movq 0x198(%rsp), %rdi
leaq 0x2cbb0(%rip), %rsi     # 0x1f37bb
callq 0xb400
movq %rax, %rcx
movq 0x198(%rsp), %rax
movq %rcx, 0x1e50(%rax)
movq 0x198(%rsp), %rdi
leaq 0x2cb9b(%rip), %rsi     # 0x1f37cc
callq 0xb400
movq %rax, %rcx
movq 0x198(%rsp), %rax
movq %rcx, 0x1e58(%rax)
movq 0x198(%rsp), %rdi
leaq 0x2cb84(%rip), %rsi     # 0x1f37db
callq 0xb400
movq %rax, %rcx
movq 0x198(%rsp), %rax
movq %rcx, 0x1e60(%rax)
movq 0x190(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x180(%rsp)
movq 0x198(%rsp), %rax
movq %rax, 0x118(%rsp)
movq 0x198(%rsp), %rax
movq 0x18b8(%rax), %rax
movq %rax, 0x120(%rsp)
movq 0x190(%rsp), %rax
movq %rax, 0x128(%rsp)
movq 0x198(%rsp), %rax
movq 0x18c0(%rax), %rax
movq %rax, 0x130(%rsp)
movq 0x198(%rsp), %rax
movq 0xff0(%rax), %rax
movq %rax, 0x138(%rsp)
movq 0x198(%rsp), %rax
movq 0xff8(%rax), %r15
movq 0x198(%rsp), %rdi
movq 0x190(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0x120f0
movq %rax, %r14
movq 0x198(%rsp), %rax
movq 0x1e18(%rax), %rbx
movq 0x180(%rsp), %rax
movq %rax, 0x140(%rsp)
movq 0x198(%rsp), %rax
movq 0x1e20(%rax), %rax
movq %rax, 0x148(%rsp)
movq 0x198(%rsp), %rdi
movq 0x190(%rsp), %rsi
callq 0x1c94f0
movq 0x118(%rsp), %rdi
movq 0x120(%rsp), %rdx
movq 0x128(%rsp), %rcx
movq 0x130(%rsp), %r8
movq 0x138(%rsp), %r9
movq 0x140(%rsp), %r11
movq 0x148(%rsp), %r10
movl $0xa, %esi
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movq %r11, 0x18(%rsp)
movq %r10, 0x20(%rsp)
movq %rax, 0x28(%rsp)
movb $0x0, %al
callq 0x1c4750
movq %rax, 0x188(%rsp)
movq 0x198(%rsp), %rax
movq 0x8d8(%rax), %rax
movq 0x190(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpq $0x0, 0x58(%rax)
je 0x1c6e83
movq 0x198(%rsp), %rax
movq %rax, 0x100(%rsp)
movq 0x188(%rsp), %rax
movq %rax, 0x108(%rsp)
movq 0x198(%rsp), %rax
movq 0x1e28(%rax), %rax
movq %rax, 0x110(%rsp)
movq 0x198(%rsp), %rdi
movq 0x198(%rsp), %rax
movq 0x8d8(%rax), %rax
movq 0x190(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x58(%rax), %rsi
movl $0x1, %edx
xorl %eax, %eax
movl %eax, %ecx
xorl %r8d, %r8d
callq 0x1c95e0
movq 0x100(%rsp), %rdi
movq 0x108(%rsp), %rsi
movq 0x110(%rsp), %rdx
movq %rax, %rcx
callq 0xc040
movq 0x198(%rsp), %rax
movq 0x8d8(%rax), %rax
movq 0x190(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpq $0x0, 0x48(%rax)
je 0x1c6f43
movq 0x198(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0x188(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq 0x198(%rsp), %rax
movq 0x1db0(%rax), %rax
movq %rax, 0xf8(%rsp)
movq 0x198(%rsp), %rdi
movq 0x198(%rsp), %rax
movq 0x8d8(%rax), %rax
movq 0x190(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x48(%rax), %rsi
movl $0x1, %edx
xorl %eax, %eax
movl %eax, %ecx
movl $0x1, %r8d
callq 0x1c95e0
movq 0xe8(%rsp), %rdi
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rdx
movq %rax, %rcx
callq 0xc040
movq 0x198(%rsp), %rax
movq 0x8d8(%rax), %rax
movq 0x190(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpq $0x0, 0x50(%rax)
je 0x1c7003
movq 0x198(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0x188(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0x198(%rsp), %rax
movq 0x1e30(%rax), %rax
movq %rax, 0xe0(%rsp)
movq 0x198(%rsp), %rdi
movq 0x198(%rsp), %rax
movq 0x8d8(%rax), %rax
movq 0x190(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x50(%rax), %rsi
movl $0x2, %edx
xorl %eax, %eax
movl %eax, %ecx
movl $0x1, %r8d
callq 0x1c95e0
movq 0xd0(%rsp), %rdi
movq 0xd8(%rsp), %rsi
movq 0xe0(%rsp), %rdx
movq %rax, %rcx
callq 0xc040
movq 0x198(%rsp), %rax
movq 0x8d8(%rax), %rax
movq 0x190(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpq $0x0, 0x68(%rax)
je 0x1c70c3
movq 0x198(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x188(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x198(%rsp), %rax
movq 0x1e40(%rax), %rax
movq %rax, 0xc8(%rsp)
movq 0x198(%rsp), %rdi
movq 0x198(%rsp), %rax
movq 0x8d8(%rax), %rax
movq 0x190(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x68(%rax), %rsi
movl $0x1, %edx
xorl %eax, %eax
movl %eax, %ecx
movl $0x1, %r8d
callq 0x1c95e0
movq 0xb8(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq 0xc8(%rsp), %rdx
movq %rax, %rcx
callq 0xc040
movq 0x198(%rsp), %rax
movq 0x8d8(%rax), %rax
movq 0x190(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpq $0x0, 0x70(%rax)
je 0x1c7183
movq 0x198(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x188(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0x198(%rsp), %rax
movq 0x1e48(%rax), %rax
movq %rax, 0xb0(%rsp)
movq 0x198(%rsp), %rdi
movq 0x198(%rsp), %rax
movq 0x8d8(%rax), %rax
movq 0x190(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x70(%rax), %rsi
movl $0x1, %edx
xorl %eax, %eax
movl %eax, %ecx
movl $0x1, %r8d
callq 0x1c95e0
movq 0xa0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
movq %rax, %rcx
callq 0xc040
movq 0x198(%rsp), %rax
movq 0x8d8(%rax), %rax
movq 0x190(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpq $0x0, 0x60(%rax)
je 0x1c7243
movq 0x198(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x188(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x198(%rsp), %rax
movq 0x1e50(%rax), %rax
movq %rax, 0x98(%rsp)
movq 0x198(%rsp), %rdi
movq 0x198(%rsp), %rax
movq 0x8d8(%rax), %rax
movq 0x190(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x60(%rax), %rsi
movl $0x1, %edx
xorl %eax, %eax
movl %eax, %ecx
movl $0x1, %r8d
callq 0x1c95e0
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq %rax, %rcx
callq 0xc040
movq 0x198(%rsp), %rax
movq 0x8d8(%rax), %rax
movq 0x190(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpq $0x0, 0x78(%rax)
je 0x1c72f7
movq 0x198(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x188(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x198(%rsp), %rax
movq 0x1e58(%rax), %rax
movq %rax, 0x80(%rsp)
movq 0x198(%rsp), %rdi
movq 0x198(%rsp), %rax
movq 0x8d8(%rax), %rax
movq 0x190(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x78(%rax), %rsi
movl $0x1, %edx
xorl %eax, %eax
movl %eax, %ecx
movl $0x1, %r8d
callq 0x1c95e0
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq %rax, %rcx
callq 0xc040
movq 0x198(%rsp), %rax
movq 0x8d8(%rax), %rax
movq 0x190(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpq $0x0, 0x80(%rax)
je 0x1c73a7
movq 0x198(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x188(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x198(%rsp), %rax
movq 0x1e60(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x198(%rsp), %rdi
movq 0x198(%rsp), %rax
movq 0x8d8(%rax), %rax
movq 0x190(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x80(%rax), %rsi
movl $0x1, %ecx
xorl %r8d, %r8d
movq %rcx, %rdx
callq 0x1c95e0
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq %rax, %rcx
callq 0xc040
movq 0x180(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1c, %eax
jne 0x1c75b1
movq 0x180(%rsp), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
je 0x1c73e3
movq 0x198(%rsp), %rax
testb $0x1, 0x24c(%rax)
jne 0x1c7413
movq 0x190(%rsp), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
je 0x1c75b1
movq 0x198(%rsp), %rax
testb $0x1, 0x24c(%rax)
je 0x1c75b1
movq 0x198(%rsp), %rdi
movq 0x180(%rsp), %rsi
movq 0x198(%rsp), %rax
movq 0x1388(%rax), %rdx
callq 0x98d0
movq %rax, 0x178(%rsp)
movq 0x178(%rsp), %rax
movq 0x198(%rsp), %rcx
cmpq 0x128(%rcx), %rax
je 0x1c75af
movq 0x198(%rsp), %rdi
movq 0x188(%rsp), %rsi
callq 0x9cb0
movq %rax, 0x170(%rsp)
movq 0x198(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x198(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x190(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x188(%rsp), %rax
movq %rax, 0x160(%rsp)
movq 0x198(%rsp), %rax
movq 0x110(%rax), %rax
movq %rax, 0x158(%rsp)
movq 0x198(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x198(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x1c7501
movq 0x198(%rsp), %rdi
callq 0xc670
movq 0x198(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x168(%rsp)
movq 0x168(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0x50(%rsp), %rsi
movq 0x48(%rsp), %rdi
movq 0x160(%rsp), %rcx
movq 0x168(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x158(%rsp), %rcx
movq 0x168(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x168(%rsp), %rax
movq %rax, 0x150(%rsp)
movq 0x150(%rsp), %rdx
callq 0xd9f0
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq %rax, %rdx
callq 0xda50
movq 0x198(%rsp), %rdi
movq 0x170(%rsp), %rsi
callq 0x9f60
jmp 0x1c75b1
movq 0x188(%rsp), %rax
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbx
popq %r14
popq %r15
retq
nopw %cs:(%rax,%rax)