// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: g_owlet
static s7_pointer g_owlet(s7_scheme *sc, s7_pointer args)
                {
#if WITH_HISTORY
#define H_owlet "(owlet) returns the environment at the point of the last error. \
                    It has the additional local variables: error-type, error-data, error-code, error-line, error-file, and error-history."
#else
#define H_owlet "(owlet) returns the environment at the point of the last error. \
                    It has the additional local variables: error-type, error-data, error-code, error-line, and error-file."
#endif
#define Q_owlet s7_make_signature(sc, 1, sc->is_let_symbol)
                    /* if owlet is not copied, (define e (owlet)), e changes as owlet does! */

                    s7_pointer e, x;
                    s7_int gc_loc;

                    e = let_copy(sc, sc->owlet);
                    gc_loc = s7_gc_protect_1(sc, e);

                    /* make sure the pairs/reals/strings/integers are copied: should be error-data, error-code, and possibly error-history */
                    sc->gc_off = true;

                    for (x = let_slots(e); tis_slot(x); x = next_slot(x))
                        if (is_pair(slot_value(x)))
                        {
                            s7_pointer new_list, p, sp;
                            new_list = protected_list_copy(sc, slot_value(x));
                            slot_set_value(x, new_list);
                            for (p = new_list, sp = p; is_pair(p); p = cdr(p), sp = cdr(sp))
                            {
                                s7_pointer val;
                                val = car(p);
                                if (is_t_real(val))
                                    set_car(p, make_real(sc, real(val)));
                                else
                                {
                                    if (is_string(val))
                                        set_car(p, make_string_with_length(sc, string_value(val), string_length(val)));
                                    else
                                    {
                                        if (is_t_integer(val))
                                            set_car(p, make_integer(sc, integer(val)));
                                    }
                                }
                                p = cdr(p);
                                if ((!is_pair(p)) || (p == sp)) break;
                                val = car(p);
                                if (is_t_real(val))
                                    set_car(p, make_real(sc, real(val)));
                                else
                                {
                                    if (is_string(val))
                                        set_car(p, make_string_with_length(sc, string_value(val), string_length(val)));
                                }
                            }
                        }

                    sc->gc_off = false;
                    s7_gc_unprotect_at(sc, gc_loc);
                    return(e);
                }

// Assembly:
subq $0xa8, %rsp
movq %rdi, 0xa0(%rsp)
movq %rsi, 0x98(%rsp)
movq 0xa0(%rsp), %rdi
movq 0xa0(%rsp), %rax
movq 0x198(%rax), %rsi
callq 0xdbe60
movq %rax, 0x90(%rsp)
movq 0xa0(%rsp), %rdi
movq 0x90(%rsp), %rsi
callq 0x9cb0
movq %rax, 0x80(%rsp)
movq 0xa0(%rsp), %rax
movb $0x1, 0x218(%rax)
movq 0x90(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x88(%rsp)
cmpq $0x0, 0x88(%rsp)
je 0x694b5
movq 0x88(%rsp), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x6949a
movq 0xa0(%rsp), %rdi
movq 0x88(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0xc5ed0
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rcx
movq 0x88(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x78(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x70(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x69498
movq 0x70(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xd, %eax
jne 0x69231
movq 0x60(%rsp), %rax
movsd 0x8(%rax), %xmm0
movsd %xmm0, 0x50(%rsp)
movq 0xa0(%rsp), %rax
movq 0x90(%rax), %rax
movq 0xa0(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x691d2
movq 0xa0(%rsp), %rdi
callq 0xc670
movq 0xa0(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
movq $0xd, (%rax)
movsd 0x50(%rsp), %xmm0
movq 0x58(%rsp), %rax
movsd %xmm0, 0x8(%rax)
movq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rcx
movq 0x70(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x69357
movq 0x60(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x13, %eax
jne 0x6926e
movq 0xa0(%rsp), %rdi
movq 0x60(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rdx
callq 0x144d0
movq %rax, %rcx
movq 0x70(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x69355
movq 0x60(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xb, %eax
jne 0x69353
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
andq $-0x800, %rax           # imm = 0xF800
cmpq $0x0, %rax
jne 0x692b8
movq 0x40(%rsp), %rcx
leaq 0x1ad1d6(%rip), %rax    # 0x216480
movq (%rax,%rcx,8), %rax
movq %rax, 0x8(%rsp)
jmp 0x6933b
jmp 0x692ba
movq 0xa0(%rsp), %rax
movq 0x90(%rax), %rax
movq 0xa0(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x692e7
movq 0xa0(%rsp), %rdi
callq 0xc670
movq 0xa0(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq $0xb, (%rax)
movq 0x40(%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x30(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rcx
movq 0x70(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x69355
jmp 0x69357
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x6937e
movq 0x70(%rsp), %rax
cmpq 0x68(%rsp), %rax
jne 0x69383
jmp 0x69498
movq 0x70(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xd, %eax
jne 0x6943b
movq 0x60(%rsp), %rax
movsd 0x8(%rax), %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0xa0(%rsp), %rax
movq 0x90(%rax), %rax
movq 0xa0(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x693df
movq 0xa0(%rsp), %rdi
callq 0xc670
movq 0xa0(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq $0xd, (%rax)
movsd 0x18(%rsp), %xmm0
movq 0x20(%rsp), %rax
movsd %xmm0, 0x8(%rax)
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rcx
movq 0x70(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x69475
movq 0x60(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x13, %eax
jne 0x69473
movq 0xa0(%rsp), %rdi
movq 0x60(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rdx
callq 0x144d0
movq %rax, %rcx
movq 0x70(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x69475
jmp 0x69477
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x68(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x68(%rsp)
jmp 0x69165
jmp 0x6949a
jmp 0x6949c
movq 0x88(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x88(%rsp)
jmp 0x690fb
movq 0xa0(%rsp), %rax
movb $0x0, 0x218(%rax)
movq 0xa0(%rsp), %rdi
movq 0x80(%rsp), %rsi
callq 0x9f60
movq 0x90(%rsp), %rax
addq $0xa8, %rsp
retq
nopl (%rax)