// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: append_let
static void append_let(s7_scheme *sc, s7_pointer new_e, s7_pointer old_e)
    {
        s7_pointer x;

        if ((old_e == sc->rootlet) || (new_e == sc->s7_let))
            return;

        if (new_e == sc->rootlet)
        {
            for (x = let_slots(old_e); tis_slot(x); x = next_slot(x))
            {
                s7_pointer sym, val;
                sym = slot_symbol(x);
                val = slot_value(x);
                if (is_slot(global_slot(sym)))
                    slot_set_value(global_slot(sym), val);
                else s7_make_slot(sc, new_e, sym, val);
            }
        }
        else
        {
            if (old_e == sc->s7_let)
            {
                s7_pointer iter, carrier;
                s7_int gc_loc;
                iter = s7_make_iterator(sc, sc->s7_let);
                gc_loc = s7_gc_protect(sc, iter);
                carrier = cons(sc, sc->F, sc->F);
                iterator_current(iter) = carrier;
                set_mark_seq(iter); /* so carrier is GC protected by mark_iterator */
                while (true)
                {
                    s7_pointer y;
                    y = s7_iterate(sc, iter);
                    if (iterator_is_at_end(iter)) break;
                    make_slot_1(sc, new_e, car(y), cdr(y));
                }
                s7_gc_unprotect_at(sc, gc_loc);
            }
            else
            {
                for (x = let_slots(old_e); tis_slot(x); x = next_slot(x))
                    make_slot_1(sc, new_e, slot_symbol(x), slot_value(x)); /* not add_slot here because we might run off the free heap end */
            }
        }
    }

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movq 0x60(%rsp), %rax
movq 0x70(%rsp), %rcx
cmpq 0x150(%rcx), %rax
je 0xc54c9
movq 0x68(%rsp), %rax
movq 0x70(%rsp), %rcx
cmpq 0x2150(%rcx), %rax
jne 0xc54ce
jmp 0xc5724
movq 0x68(%rsp), %rax
movq 0x70(%rsp), %rcx
cmpq 0x150(%rcx), %rax
jne 0xc556c
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x58(%rsp)
cmpq $0x0, 0x58(%rsp)
je 0xc5567
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x58(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
cmpl $0x20, %eax
jne 0xc553c
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0xc5555
movq 0x70(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x48(%rsp), %rcx
callq 0xb450
jmp 0xc5557
movq 0x58(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x58(%rsp)
jmp 0xc54f3
jmp 0xc5724
movq 0x60(%rsp), %rax
movq 0x70(%rsp), %rcx
cmpq 0x2150(%rcx), %rax
jne 0xc56d9
movq 0x70(%rsp), %rdi
movq 0x70(%rsp), %rax
movq 0x2150(%rax), %rsi
callq 0xdb80
movq %rax, 0x40(%rsp)
movq 0x70(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x9cb0
movq %rax, 0x30(%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 0xc55f8
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, 0x38(%rsp)
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x40(%rsp), %rax
movq (%rax), %rcx
orq $0x4000000, %rcx        # imm = 0x4000000
movq %rcx, (%rax)
movq 0x70(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0xe430
movq %rax, 0x8(%rsp)
movq 0x40(%rsp), %rcx
movabsq $0x80000000, %rax       # imm = 0x80000000
andq (%rcx), %rax
cmpq $0x0, %rax
jne 0xc56a5
jmp 0xc56c8
movq 0x70(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdx
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rcx
callq 0xbec0
jmp 0xc5677
movq 0x70(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x9f60
jmp 0xc5722
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x58(%rsp)
cmpq $0x0, 0x58(%rsp)
je 0xc5720
movq 0x70(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdx
movq 0x58(%rsp), %rax
movq 0x10(%rax), %rcx
callq 0xbec0
movq 0x58(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x58(%rsp)
jmp 0xc56e7
jmp 0xc5722
jmp 0xc5724
addq $0x78, %rsp
retq
nopl (%rax)