// File: /workspace/github_c_makefile_star2_O2/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 0xd017d
movq (%rcx), %rax
btl $0x18, %eax
jb 0xd01a9
movq 0x10(%rsi), %rsi
movq 0x8(%rsi), %rdx
movq 0x10(%rsi), %rsi
movq 0x8(%rsi), %rbx
cmpq 0x150(%rdi), %rcx
je 0xd0200
movl %eax, %r8d
movq %rcx, %rsi
cmpb $0x1c, %r8b
jne 0xd01e5
leaq 0x8(%rsi), %r14
movq (%r14), %r14
testq %r14, %r14
je 0xd0174
cmpq %rdx, 0x8(%r14)
je 0xd020a
addq $0x18, %r14
jmp 0xd015c
movq 0x10(%rsi), %rsi
movb (%rsi), %r8b
jmp 0xd014e
movq 0x1240(%rdi), %rax
movq 0x8(%rax), %rsi
movq 0x457c9(%rip), %rdx     # 0x115958
movq 0x140(%rdi), %r8
movq 0x497bb(%rip), %r9      # 0x119958
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x9bbb
movq 0x497b8(%rip), %rax     # 0x119968
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), %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x972b
notl %eax
testl $0x48000000, %eax       # imm = 0x48000000
jne 0xd0200
movq %rcx, %rsi
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xacdb
movq 0x10(%rdx), %r14
cmpb $0x20, (%r14)
jne 0xd0225
testb $0x4, 0x2(%r14)
je 0xd021f
movq %r14, %rsi
movq %rbx, %rdx
callq 0x72c28
movq %rax, %rbx
movq %rbx, 0x10(%r14)
jmp 0xd0286
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 0x12375(%rip), %rsi     # 0xe25c5
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 0x2cdc0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq