// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: g_lint_let_set
static s7_pointer g_lint_let_set(s7_scheme *sc, s7_pointer args)
    {
        s7_pointer y, lt, sym, val;

        lt = car(args);
        if (!is_let(lt))
            return(wrong_type_argument_with_type(sc, sc->let_set_symbol, 1, lt, a_let_string));
        if (is_immutable(lt))
            return(immutable_object_error(sc, set_elist_3(sc, immutable_error_string, sc->let_set_symbol, lt)));

        sym = cadr(args);
        val = caddr(args);

        if (lt != sc->rootlet)
        {
            s7_pointer x;
            for (x = lt; is_let(x); x = outlet(x))
                for (y = let_slots(x); tis_slot(y); y = next_slot(y))
                    if (slot_symbol(y) == sym)
                    {
                        if (slot_has_setter(y))
                            slot_set_value(y, call_setter(sc, y, val));
                        else slot_set_value(y, val);
                        return(slot_value(y));
                    }

            if (has_methods(lt))
            {
                if (has_let_set_fallback(lt))
                    return(call_let_set_fallback(sc, lt, sym, val));
            }
        }

        y = global_slot(sym);
        if (is_slot(y))
        {
            if (slot_has_setter(y))
                slot_set_value(y, call_setter(sc, y, val));
            else slot_set_value(y, val);
            return(slot_value(y));
        }

        return(s7_error(sc, sc->wrong_type_arg_symbol, set_elist_3(sc, wrap_string(sc, "let-set!: ~A is not defined in ~A", 33), sym, lt)));
    }

// Assembly:
subq $0x98, %rsp
movq %rdi, 0x88(%rsp)
movq %rsi, 0x80(%rsp)
movq 0x80(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1c, %eax
je 0x1d8a8b
movq 0x88(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x88(%rsp), %rax
movq 0x1240(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x30(%rsp)
movq $0x1, 0x58(%rsp)
movq 0x58(%rsp), %rax
andq $-0x800, %rax           # imm = 0xF800
cmpq $0x0, %rax
jne 0x1d89c2
movq 0x58(%rsp), %rcx
leaq 0x3dacc(%rip), %rax     # 0x216480
movq (%rax,%rcx,8), %rax
movq %rax, 0x20(%rsp)
jmp 0x1d8a45
jmp 0x1d89c4
movq 0x88(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x88(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x1d89f1
movq 0x88(%rsp), %rdi
callq 0xc670
movq 0x88(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq $0xb, (%rax)
movq 0x58(%rsp), %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x48(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rdx
movq 0x70(%rsp), %rcx
movq 0x88(%rsp), %rax
movq 0x140(%rax), %r8
movq 0x41a0f(%rip), %r9      # 0x21a488
callq 0xc560
movq %rax, 0x90(%rsp)
jmp 0x1d8d44
movq 0x70(%rsp), %rax
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0x1d8aee
movq 0x88(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x88(%rsp), %rdi
movq 0x419dd(%rip), %rsi     # 0x21a498
movq 0x88(%rsp), %rax
movq 0x1240(%rax), %rdx
movq 0x70(%rsp), %rcx
callq 0xf240
movq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0xb800
movq %rax, 0x90(%rsp)
jmp 0x1d8d44
movq 0x80(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x80(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x70(%rsp), %rax
movq 0x88(%rsp), %rcx
cmpq 0x150(%rcx), %rax
je 0x1d8c59
movq 0x70(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1c, %eax
jne 0x1d8c02
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x78(%rsp)
cmpq $0x0, 0x78(%rsp)
je 0x1d8bed
movq 0x78(%rsp), %rax
movq 0x8(%rax), %rax
cmpq 0x68(%rsp), %rax
jne 0x1d8bd8
movq 0x78(%rsp), %rax
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x1d8bb4
movq 0x88(%rsp), %rdi
movq 0x78(%rsp), %rsi
movq 0x60(%rsp), %rdx
callq 0xc5920
movq %rax, %rcx
movq 0x78(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x1d8bc2
movq 0x60(%rsp), %rcx
movq 0x78(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x78(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x90(%rsp)
jmp 0x1d8d44
jmp 0x1d8bda
movq 0x78(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x78(%rsp)
jmp 0x1d8b5f
jmp 0x1d8bef
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x38(%rsp)
jmp 0x1d8b40
movq 0x70(%rsp), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
je 0x1d8c57
movq 0x70(%rsp), %rax
movq (%rax), %rax
andq $0x48000000, %rax       # imm = 0x48000000
cmpq $0x48000000, %rax       # imm = 0x48000000
jne 0x1d8c55
movq 0x88(%rsp), %rdi
movq 0x70(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0x60(%rsp), %rcx
callq 0xf2c0
movq %rax, 0x90(%rsp)
jmp 0x1d8d44
jmp 0x1d8c57
jmp 0x1d8c59
movq 0x68(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x20, %eax
jne 0x1d8cce
movq 0x78(%rsp), %rax
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x1d8cad
movq 0x88(%rsp), %rdi
movq 0x78(%rsp), %rsi
movq 0x60(%rsp), %rdx
callq 0xc5920
movq %rax, %rcx
movq 0x78(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x1d8cbb
movq 0x60(%rsp), %rcx
movq 0x78(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x78(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x90(%rsp)
jmp 0x1d8d44
movq 0x88(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x88(%rsp), %rax
movq 0x1940(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x88(%rsp), %rax
movq %rax, (%rsp)
movq 0x88(%rsp), %rdi
leaq 0x153f0(%rip), %rsi     # 0x1ee0fa
movl $0x21, %edx
callq 0xb880
movq (%rsp), %rdi
movq %rax, %rsi
movq 0x68(%rsp), %rdx
movq 0x70(%rsp), %rcx
callq 0xf240
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rax
addq $0x98, %rsp
retq
nopw %cs:(%rax,%rax)