// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: s7_set_setter
s7_pointer s7_set_setter(s7_scheme *sc, s7_pointer p, s7_pointer setter)
                {
                    if (is_symbol(p))
                    {
                        if (slot_has_setter(global_slot(p)))
                        {
                            s7_int index;
                            for (index = 0; index < sc->protected_setters_loc; index++)
                                if (vector_element(sc->protected_setter_symbols, index) == p)
                                {
                                    s7_pointer old_func;
                                    old_func = vector_element(sc->protected_setters, index);
                                    if ((is_procedure_or_macro(old_func)) && /* i.e. not #f! */
                                            (is_immutable(old_func)))
                                        return(setter);
                                    vector_element(sc->protected_setters, index) = setter;
                                    slot_set_setter(global_slot(p), setter);
                                    if ((setter != sc->F) && (s7_is_aritable(sc, setter, 3)))
                                        set_has_let_arg(setter);
                                    return(setter);
                                }
                        }
                        if (setter != sc->F)
                        {
                            slot_set_has_setter(global_slot(p));
                            symbol_set_has_setter(p);
                            slot_set_has_setter(global_slot(p));
                            protect_setter(sc, p, setter);
                            slot_set_setter(global_slot(p), setter);
                            if (s7_is_aritable(sc, setter, 3))
                                set_has_let_arg(setter);
                            return(setter);
                        }
                        slot_set_setter(global_slot(p), setter);
                        return(setter);
                    }
                    return(g_set_setter(sc, set_plist_2(sc, p, setter)));
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
cmpb $0xa, (%rsi)
jne 0x425c5
movq 0x10(%r15), %rax
testb $0x4, 0x2(%rax)
je 0x4267b
movq 0x100(%r14), %rcx
testq %rcx, %rcx
setg %bpl
jle 0x4267b
movq 0xe0(%r14), %rax
movq 0x10(%rax), %rdx
cmpq %r15, (%rdx)
je 0x425f8
leaq -0x1(%rcx), %rsi
xorl %edi, %edi
cmpq %rdi, %rsi
je 0x4267b
leaq 0x1(%rdi), %rax
cmpq %r15, 0x8(%rdx,%rdi,8)
movq %rax, %rdi
jne 0x425a5
cmpq %rcx, %rax
setl %bpl
jmp 0x425fa
movq 0x708(%r14), %rax
movq %r15, 0x8(%rax)
movq 0x710(%r14), %rax
movq %rbx, 0x8(%rax)
movq 0x708(%r14), %rsi
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4281c
xorl %eax, %eax
movq 0xd8(%r14), %rcx
movq 0x10(%rcx), %rcx
movq (%rcx,%rax,8), %rdx
movzbl (%rdx), %esi
leaq 0x111d1d(%rip), %rdi    # 0x154330
cmpb $0x0, (%rsi,%rdi)
jne 0x42626
leaq 0x111d50(%rip), %rdi    # 0x154370
cmpb $0x1, (%rsi,%rdi)
jne 0x4262c
testb $0x1, 0x3(%rdx)
jne 0x42672
movq %rbx, (%rcx,%rax,8)
movq 0x10(%r15), %rax
cmpb $0x30, (%rbx)
movq %rbx, %rcx
jne 0x4264d
testb $0x2, 0x6(%rbx)
movq %rbx, %rcx
je 0x4264d
movq 0x8(%rbx), %rcx
movq 0x50(%rcx), %rcx
movq %rcx, 0x28(%rax)
cmpq %rbx, 0x120(%r14)
je 0x42672
movl $0x3, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x41fac
testb %al, %al
je 0x42672
orb $0x1, 0x6(%rbx)
testb %bpl, %bpl
jne 0x4280a
movq 0x10(%r15), %rax
cmpq %rbx, 0x120(%r14)
je 0x427ed
orb $0x4, 0x2(%rax)
orb $0x4, 0x2(%r15)
movq 0x10(%r15), %rax
orq $0x40000, (%rax)        # imm = 0x40000
movq 0xf8(%r14), %r13
cmpq 0x100(%r14), %r13
jne 0x42782
leaq (,%r13,2), %rbp
movq 0xd8(%r14), %rax
movq 0x18(%rax), %rsi
movq %r13, %r12
shlq $0x4, %r12
movq %r14, %rdi
movq %r12, %rdx
callq 0xae0f
movq $0x0, 0x20(%rax)
movq 0xd8(%r14), %rcx
movq %rax, 0x18(%rcx)
movq (%rax), %rax
movq 0xd8(%r14), %rcx
movq %rax, 0x10(%rcx)
movq 0xd8(%r14), %rax
movq %rbp, 0x8(%rax)
movq 0xe0(%r14), %rax
movq 0x18(%rax), %rsi
movq %r14, %rdi
movq %r12, %rdx
callq 0xae0f
movq 0xe0(%r14), %rcx
movq %rax, 0x18(%rcx)
movq (%rax), %rax
movq 0xe0(%r14), %rcx
movq %rax, 0x10(%rcx)
movq 0xe0(%r14), %rax
movq %rbp, 0x8(%rax)
cmpq %rbp, %r13
jge 0x4277b
movq %r13, %rax
movq 0xd8(%r14), %rcx
movq 0x140(%r14), %rdx
movq 0x10(%rcx), %rcx
movq %rdx, (%rcx,%rax,8)
movq 0xe0(%r14), %rcx
movq 0x140(%r14), %rdx
movq 0x10(%rcx), %rcx
movq %rdx, (%rcx,%rax,8)
incq %rax
decq %r13
jne 0x42747
movq %rbp, 0xf8(%r14)
movq 0xd8(%r14), %rax
movq 0x100(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x100(%r14)
movq 0x10(%rax), %rax
movq %rbx, (%rax,%rcx,8)
movq 0xe0(%r14), %rax
movq 0x10(%rax), %rax
movq %r15, (%rax,%rcx,8)
movq 0x10(%r15), %rax
cmpb $0x30, (%rbx)
movq %rbx, %rcx
jne 0x427cf
testb $0x2, 0x6(%rbx)
movq %rbx, %rcx
je 0x427cf
movq 0x8(%rbx), %rcx
movq 0x50(%rcx), %rcx
movq %rcx, 0x28(%rax)
movl $0x3, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x41fac
testb %al, %al
je 0x4280a
orb $0x1, 0x6(%rbx)
jmp 0x4280a
cmpb $0x30, (%rbx)
jne 0x427f8
testb $0x2, 0x6(%rbx)
jne 0x427fe
movq %rbx, 0x28(%rax)
jmp 0x4280a
movq 0x8(%rbx), %rcx
movq 0x50(%rcx), %rcx
movq %rcx, 0x28(%rax)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq