// File: /workspace/github_c_makefile_star2_O3/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:
pushq %r14
pushq %rbx
pushq %rax
movq 0x8(%rsi), %rcx
cmpb $0x1c, (%rcx)
jne 0x103d98
movq (%rcx), %rax
btl $0x18, %eax
jb 0x103dc4
movq 0x10(%rsi), %rsi
movq 0x8(%rsi), %rdx
movq 0x10(%rsi), %rsi
movq 0x8(%rsi), %rbx
cmpq 0x150(%rdi), %rcx
je 0x103dfd
cmpb $0x1c, %al
jne 0x103d7d
movq %rcx, %rsi
movq 0x8(%rsi), %r14
testq %r14, %r14
je 0x103d74
cmpq %rdx, 0x8(%r14)
je 0x103e07
movq 0x18(%r14), %r14
jmp 0x103d5f
movq 0x10(%rsi), %rsi
cmpb $0x1c, (%rsi)
je 0x103d5b
notl %eax
testl $0x48000000, %eax       # imm = 0x48000000
jne 0x103dfd
movq %rcx, %rsi
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xb9e7
movq 0x1240(%rdi), %rax
movq 0x8(%rax), %rsi
movq 0x42bae(%rip), %rdx     # 0x146958
movq 0x140(%rdi), %r8
movq 0x46ba0(%rip), %r9      # 0x14a958
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xa4e4
movq 0x46b9d(%rip), %rax     # 0x14a968
movq 0x1240(%rdi), %rdx
movq 0x6e8(%rdi), %rsi
movq %rax, 0x8(%rsi)
movq 0x10(%rsi), %rax
movq %rdx, 0x8(%rax)
movq 0x10(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0x6e8(%rdi), %rdx
movq 0xea8(%rdi), %rbx
jmp 0x103e7b
movq 0x10(%rdx), %r14
cmpb $0x20, (%r14)
jne 0x103e22
testb $0x4, 0x2(%r14)
je 0x103e1c
movq %r14, %rsi
movq %rbx, %rdx
callq 0x8f082
movq %rax, %rbx
movq %rbx, 0x10(%r14)
jmp 0x103e83
movq 0x1940(%rdi), %rbx
movq 0x820(%rdi), %rax
movslq 0x7dc(%rdi), %rsi
movq (%rax,%rsi,8), %rax
incl %esi
andl $0x7, %esi
movl %esi, 0x7dc(%rdi)
leaq 0x127d8(%rip), %rsi     # 0x116625
movq %rsi, 0x10(%rax)
movq $0x21, 0x8(%rax)
movq 0x6e8(%rdi), %rsi
movq %rax, 0x8(%rsi)
movq 0x10(%rsi), %rax
movq %rdx, 0x8(%rax)
movq 0x10(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0x6e8(%rdi), %rdx
movq %rbx, %rsi
callq 0x38dfa
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq