// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: op_set2
static s7_pointer op_set2(s7_scheme *sc)
                {
                    if (is_pair(sc->value))
                    {
                        /* (let ((L '((1 2 3)))) (set! ((L 0) 1) 32) L)
                         * (let ((L '(((1 2 3))))) (set! ((L 0) 0 1) 32) L)
                         * any deeper nesting was handled already by the first eval
                         *   set! looks at its first argument, if it's a symbol, it sets the associated value,
                         *   if it's a list, it looks at the car of that list to decide which setter to call,
                         *   if it's a list of lists, it passes the embedded lists to eval, then looks at the
                         *   car of the result.  This means that we can do crazy things like:
                         *   (let ((x '(1)) (y '(2))) (set! ((if #t x y) 0) 32) x)
                         * the other args need to be evaluated (but not the list as if it were code):
                         *   (let ((L '((1 2 3))) (index 1)) (set! ((L 0) index) 32) L)
                         */

                        if (!s7_is_proper_list(sc, sc->args))                              /* (set! ('(1 2) 1 . 2) 1) */
                            eval_error(sc, "set! target arguments are an improper list: ~A", 46, sc->args);

                        /* in all of these cases, we might need to GC protect the temporary lists */

                        if (is_multiple_value(sc->value))
                            sc->code = cons(sc, sc->set_symbol, s7_append(sc, multiple_value(sc->value), s7_append(sc, sc->args, sc->code))); /* drop into OP_SET */
                        else
                        {
                            if (sc->args != sc->nil)
                            {
                                push_op_stack(sc, sc->list_set_function);
                                push_stack(sc, OP_EVAL_ARGS1, list_1(sc, sc->value), s7_append(sc, cdr(sc->args), sc->code));
                                sc->code = car(sc->args);
                            }
                            else eval_error(sc, "list set!: not enough arguments: ~S", 35, sc->code);
                            return(sc->code); /* goto EVAL; */
                        }
                    }
                    else
                    {
                        if (is_any_vector(sc->value))
                        {
                            /* (let ((L #(#(1 2 3) #(4 5 6)))) (set! ((L 1) 0) 32) L)
                             * bad case when args is nil: (let ((L #(#(1 2 3) #(4 5 6)))) (set! ((L 1)) 32) L)
                             */
                            if (sc->args != sc->nil)
                            {
                                push_op_stack(sc, sc->vector_set_function);
                                push_stack(sc, OP_EVAL_ARGS1, list_1(sc, sc->value), s7_append(sc, cdr(sc->args), sc->code));
                                sc->code = car(sc->args);
                            }
                            else eval_error(sc, "vector set!: not enough arguments: ~S", 37, sc->code);
                            return(sc->code); /* goto EVAL; */
                        }
                        sc->code = cons_unchecked(sc, sc->set_symbol, cons_unchecked(sc, cons(sc, sc->value, sc->args), sc->code));
                    }
                    return(NULL); /* i.e. goto SET1 */
                }

// Assembly:
subq $0x108, %rsp            # imm = 0x108
movq %rdi, 0xf8(%rsp)
movq 0xf8(%rsp), %rax
movq 0x20(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x143e39
movq 0xf8(%rsp), %rdi
movq 0xf8(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0x31a40
testb $0x1, %al
jne 0x143a93
movq 0xf8(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0xf8(%rsp), %rax
movq 0x1918(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0xf8(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0xf8(%rsp), %rdi
leaq 0xacaa1(%rip), %rsi     # 0x1f04f2
movl $0x2e, %edx
callq 0xb880
movq 0x60(%rsp), %rdi
movq %rax, %rsi
movq 0xf8(%rsp), %rax
movq 0x10(%rax), %rdx
callq 0xb830
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x100(%rsp)
jmp 0x1441ed
movq 0xf8(%rsp), %rax
movq 0x20(%rax), %rax
movzwl (%rax), %eax
andl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %eax
je 0x143bd8
movq 0xf8(%rsp), %rax
movq 0x18d8(%rax), %rax
movq %rax, 0xe8(%rsp)
movq 0xf8(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0xf8(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0xf8(%rsp), %rdi
movq 0xf8(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0xf8(%rsp), %rax
movq (%rax), %rdx
callq 0x316f0
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq %rax, %rdx
callq 0x316f0
movq %rax, 0xe0(%rsp)
movq 0xf8(%rsp), %rax
movq 0x90(%rax), %rax
movq 0xf8(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x143b50
movq 0xf8(%rsp), %rdi
callq 0xc670
movq 0xf8(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0xf0(%rsp)
movq 0xf0(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0xe8(%rsp), %rcx
movq 0xf0(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0xe0(%rsp), %rcx
movq 0xf0(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0xf0(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0xd8(%rsp), %rcx
movq 0xf8(%rsp), %rax
movq %rcx, (%rax)
jmp 0x143e34
movq 0xf8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0xf8(%rsp), %rcx
cmpq 0x110(%rcx), %rax
je 0x143d9e
movq 0xf8(%rsp), %rax
movq 0x1eb8(%rax), %rcx
movq 0xf8(%rsp), %rdx
movq 0x68(%rdx), %rax
movq %rax, %rsi
addq $0x8, %rsi
movq %rsi, 0x68(%rdx)
movq %rcx, (%rax)
movq 0xf8(%rsp), %rdi
movq 0xf8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
movq 0xf8(%rsp), %rax
movq (%rax), %rdx
callq 0x316f0
movq %rax, %rcx
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, (%rax)
movq 0xf8(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0xf8(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0xc8(%rsp)
movq 0xf8(%rsp), %rax
movq 0x110(%rax), %rax
movq %rax, 0xc0(%rsp)
movq 0xf8(%rsp), %rax
movq 0x90(%rax), %rax
movq 0xf8(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x143cd0
movq 0xf8(%rsp), %rdi
callq 0xc670
movq 0xf8(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0xd0(%rsp)
movq 0xd0(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0xc8(%rsp), %rcx
movq 0xd0(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0xc0(%rsp), %rcx
movq 0xd0(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0xd0(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0xb8(%rsp), %rcx
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x10(%rax)
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movl $0x193, %ecx            # imm = 0x193
movq %rcx, 0x18(%rax)
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rcx
addq $0x20, %rcx
movq %rcx, 0x50(%rax)
movq 0xf8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rcx
movq 0xf8(%rsp), %rax
movq %rcx, (%rax)
jmp 0x143e1c
movq 0xf8(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0xf8(%rsp), %rax
movq 0x1918(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0xf8(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0xf8(%rsp), %rdi
leaq 0xac746(%rip), %rsi     # 0x1f0521
movl $0x23, %edx
callq 0xb880
movq 0x38(%rsp), %rdi
movq %rax, %rsi
movq 0xf8(%rsp), %rax
movq (%rax), %rdx
callq 0xb830
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x100(%rsp)
jmp 0x1441ed
movq 0xf8(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x100(%rsp)
jmp 0x1441ed
jmp 0x1441e1
movq 0xf8(%rsp), %rax
movq 0x20(%rax), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0xd68ff(%rip), %rax     # 0x21a750
testb $0x1, (%rax,%rcx)
je 0x1440b7
movq 0xf8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0xf8(%rsp), %rcx
cmpq 0x110(%rcx), %rax
je 0x144021
movq 0xf8(%rsp), %rax
movq 0x1ea8(%rax), %rcx
movq 0xf8(%rsp), %rdx
movq 0x68(%rdx), %rax
movq %rax, %rsi
addq $0x8, %rsi
movq %rsi, 0x68(%rdx)
movq %rcx, (%rax)
movq 0xf8(%rsp), %rdi
movq 0xf8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
movq 0xf8(%rsp), %rax
movq (%rax), %rdx
callq 0x316f0
movq %rax, %rcx
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, (%rax)
movq 0xf8(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0xf8(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0xa8(%rsp)
movq 0xf8(%rsp), %rax
movq 0x110(%rax), %rax
movq %rax, 0xa0(%rsp)
movq 0xf8(%rsp), %rax
movq 0x90(%rax), %rax
movq 0xf8(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x143f53
movq 0xf8(%rsp), %rdi
callq 0xc670
movq 0xf8(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0xa8(%rsp), %rcx
movq 0xb0(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0xa0(%rsp), %rcx
movq 0xb0(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0xb0(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x98(%rsp), %rcx
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x10(%rax)
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movl $0x193, %ecx            # imm = 0x193
movq %rcx, 0x18(%rax)
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rcx
addq $0x20, %rcx
movq %rcx, 0x50(%rax)
movq 0xf8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rcx
movq 0xf8(%rsp), %rax
movq %rcx, (%rax)
jmp 0x14409f
movq 0xf8(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0xf8(%rsp), %rax
movq 0x1918(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0xf8(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0xf8(%rsp), %rdi
leaq 0xac4e7(%rip), %rsi     # 0x1f0545
movl $0x25, %edx
callq 0xb880
movq 0x20(%rsp), %rdi
movq %rax, %rsi
movq 0xf8(%rsp), %rax
movq (%rax), %rdx
callq 0xb830
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x100(%rsp)
jmp 0x1441ed
movq 0xf8(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x100(%rsp)
jmp 0x1441ed
movq 0xf8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xf8(%rsp), %rax
movq 0x18d8(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0xf8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0xf8(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x88(%rsp)
movq 0xf8(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x80(%rsp)
movq 0xf8(%rsp), %rax
movq 0x90(%rax), %rax
movq 0xf8(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x14413a
movq 0xf8(%rsp), %rdi
callq 0xc670
movq 0xf8(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0x18(%rsp), %rdi
movq 0x88(%rsp), %rcx
movq 0x90(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x80(%rsp), %rcx
movq 0x90(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x90(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rsi
movq 0xf8(%rsp), %rax
movq (%rax), %rdx
callq 0xd9f0
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rax, %rdx
callq 0xd9f0
movq %rax, %rcx
movq 0xf8(%rsp), %rax
movq %rcx, (%rax)
movq $0x0, 0x100(%rsp)
movq 0x100(%rsp), %rax
addq $0x108, %rsp            # imm = 0x108
retq
nopl (%rax)