// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: remove_let_from_heap
static void remove_let_from_heap(s7_scheme *sc, s7_pointer lt)
    {
        s7_pointer p;
        for (p = let_slots(lt); tis_slot(p); p = next_slot(p))
        {
            s7_pointer val;
            val = slot_value(p);
            if ((has_closure_let(val)) &&
                    (in_heap(closure_args(val))))
                remove_function_from_heap(sc, val);
            else
            {
                /* an experiment... */
                if ((is_hash_table(val)) &&
                        (!hash_table_removed(val)))
                {
                    s7_pointer iterator, ip;
                    s7_int gc_iter;
                    s7_int i, len;

                    len = hash_table_entries(val);
                    iterator = s7_make_iterator(sc, val);
                    gc_iter = s7_gc_protect_1(sc, iterator);
                    ip = cons(sc, sc->F, sc->F);
                    iterator_current(iterator) = ip;
                    set_mark_seq(iterator);
                    for (i = 0; i < len; i++)
                    {
                        s7_pointer key_val;
                        key_val = hash_table_iterate(sc, iterator);
                        if ((has_closure_let(cdr(key_val))) &&
                                (in_heap(closure_args(cdr(key_val)))))
                            remove_function_from_heap(sc, cdr(key_val));
                    }
                    hash_table_set_removed(val);
                    s7_gc_unprotect_at(sc, gc_iter);
                    iterator_current(iterator) = sc->nil;
                    free_cell(sc, ip);
                    free_cell(sc, iterator);
                }
            }
        }
        let_set_removed(lt);
    }

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x60(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0xc0d7f
movq 0x60(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x155909(%rip), %rax    # 0x216440
testb $0x1, (%rax,%rcx)
je 0xc0b68
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rax
movzwl 0x6(%rax), %eax
andl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %eax
jne 0xc0b68
movq 0x70(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0xb8f0
jmp 0xc0d6a
movq 0x58(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1b, %eax
jne 0xc0d68
movq 0x58(%rsp), %rax
movq (%rax), %rax
andq $0x2000000, %rax        # imm = 0x2000000
cmpq $0x0, %rax
jne 0xc0d68
movq 0x58(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x18(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x70(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0xdb80
movq %rax, 0x50(%rsp)
movq 0x70(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x9cb0
movq %rax, 0x40(%rsp)
movq 0x70(%rsp), %rax
movq 0x120(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x70(%rsp), %rax
movq 0x120(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x70(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x70(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0xc0c11
movq 0x70(%rsp), %rdi
callq 0xc670
movq 0x70(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x18(%rsp), %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x50(%rsp), %rax
movq (%rax), %rcx
orq $0x4000000, %rcx        # imm = 0x4000000
movq %rcx, (%rax)
movq $0x0, 0x38(%rsp)
movq 0x38(%rsp), %rax
cmpq 0x30(%rsp), %rax
jge 0xc0d14
movq 0x70(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x2be50
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x155772(%rip), %rax    # 0x216440
testb $0x1, (%rax,%rcx)
je 0xc0d02
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movzwl 0x6(%rax), %eax
andl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %eax
jne 0xc0d02
movq 0x70(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0xb8f0
jmp 0xc0d04
movq 0x38(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x38(%rsp)
jmp 0xc0c99
movq 0x58(%rsp), %rax
movq (%rax), %rcx
orq $0x2000000, %rcx        # imm = 0x2000000
movq %rcx, (%rax)
movq 0x70(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x9f60
movq 0x70(%rsp), %rax
movq 0x110(%rax), %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x70(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x2bcd0
movq 0x70(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x2bcd0
jmp 0xc0d6a
jmp 0xc0d6c
movq 0x60(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x60(%rsp)
jmp 0xc0b0c
movq 0x68(%rsp), %rax
movq (%rax), %rcx
orq $0x2000000, %rcx        # imm = 0x2000000
movq %rcx, (%rax)
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)