// File: /workspace/github_c_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rsi), %r14
cmpb $0x1c, (%r14)
jne 0x10d28a
movq (%r14), %rax
btl $0x18, %eax
jb 0x10d2c3
movq 0x10(%rsi), %rcx
movq 0x8(%rcx), %r15
movq 0x10(%rcx), %rcx
movq 0x8(%rcx), %r12
cmpq 0x150(%rbx), %r14
je 0x10d32b
cmpb $0x1c, (%r14)
jne 0x10d264
movq %r14, %rcx
movq 0x8(%rcx), %rbp
testq %rbp, %rbp
je 0x10d25b
cmpq %r15, 0x8(%rbp)
je 0x10d2ff
movq 0x18(%rbp), %rbp
jmp 0x10d246
movq 0x10(%rcx), %rcx
cmpb $0x1c, (%rcx)
je 0x10d242
notl %eax
testl $0x48000000, %eax       # imm = 0x48000000
jne 0x10d321
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0xc866
movq %rax, %r13
jmp 0x10d31d
movq 0x1240(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0x416bc(%rip), %rdx     # 0x14e958
movq 0x140(%rbx), %r8
movq 0x456ae(%rip), %r9      # 0x152958
movq %rbx, %rdi
movq %r14, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb31d
movq 0x4569e(%rip), %rax     # 0x152968
movq 0x1240(%rbx), %rcx
movq 0x6e8(%rbx), %rdx
movq %rax, 0x8(%rdx)
movq 0x10(%rdx), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rax), %rax
movq %r14, 0x8(%rax)
movq 0x6e8(%rbx), %rdx
movq 0xea8(%rbx), %r13
jmp 0x10d3b0
testb $0x4, 0x2(%rbp)
movq %r12, %r13
je 0x10d319
movq %rbx, %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0x953ff
movq %rax, %r13
movq %r13, 0x10(%rbp)
xorl %eax, %eax
jmp 0x10d323
movb $0x1, %al
testb %al, %al
je 0x10d3bb
movq 0x10(%r15), %r13
cmpb $0x20, (%r13)
jne 0x10d357
testb $0x4, 0x2(%r13)
je 0x10d34e
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x953ff
movq %rax, %r12
movq %r12, 0x10(%r13)
movq %r12, %r13
jmp 0x10d3bb
movq 0x1940(%rbx), %r13
movq 0x820(%rbx), %rax
movslq 0x7dc(%rbx), %rcx
movq (%rax,%rcx,8), %rax
incl %ecx
andl $0x7, %ecx
movl %ecx, 0x7dc(%rbx)
leaq 0x12193(%rip), %rcx     # 0x11f515
movq %rcx, 0x10(%rax)
movq $0x21, 0x8(%rax)
movq 0x6e8(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x10(%rcx), %rax
movq %r15, 0x8(%rax)
movq 0x10(%rax), %rax
movq %r14, 0x8(%rax)
movq 0x6e8(%rbx), %rdx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x3b366
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq