// File: /workspace/github_c_makefile_star2_O2/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:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0x150(%rdi), %rax
cmpq %rdx, %rax
je 0x72b20
movq %rsi, %r14
movq %rdi, %rbx
movq 0x2150(%rdi), %rsi
cmpq %r14, %rsi
je 0x72b20
movq %rdx, %r15
cmpq %r14, %rax
je 0x72aec
cmpq %r15, %rsi
je 0x72b2a
addq $0x8, %r15
movq (%r15), %r15
testq %r15, %r15
je 0x72b20
movq 0x8(%r15), %rdx
movq 0x10(%r15), %rcx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9a09
addq $0x18, %r15
jmp 0x72acb
addq $0x8, %r15
movq (%r15), %r15
testq %r15, %r15
je 0x72b20
movq 0x8(%r15), %rdx
movq 0x10(%r15), %rcx
movq 0x10(%rdx), %rax
cmpb $0x20, (%rax)
jne 0x72b0f
movq %rcx, 0x10(%rax)
jmp 0x72b1a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x94fb
addq $0x18, %r15
jmp 0x72af0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rbx, %rdi
callq 0xa3c7
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x89a9
movq %rax, %r12
movq 0x90(%rbx), %rax
movq 0x120(%rbx), %r13
cmpq 0x98(%rbx), %rax
ja 0x72b69
movq %rbx, %rdi
callq 0x9c27
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq %r13, 0x8(%rax)
movq %r13, 0x10(%rax)
movq %rax, 0x10(%r15)
orb $0x4, 0x3(%r15)
movq %rbx, %rdi
movq %r15, %rsi
callq *0x28(%r15)
testb $-0x80, 0x3(%r15)
je 0x72bb6
movq 0x8(%rax), %rdx
movq 0x10(%rax), %rcx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9a09
jmp 0x72b90
movq %rbx, %rdi
movq %r12, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x8b00