// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: check_define_macro
static s7_pointer check_define_macro(s7_scheme *sc, opcode_t op)
                {
                    s7_pointer x, y, caller;
                    caller = sc->define_macro_symbol;
                    switch (op)
                    {
                        case OP_DEFINE_MACRO:          caller = sc->define_macro_symbol;      break;
                        case OP_DEFINE_MACRO_STAR:     caller = sc->define_macro_star_symbol; break;
                        case OP_DEFINE_BACRO:          caller = sc->define_bacro_symbol;      break;
                        case OP_DEFINE_BACRO_STAR:     caller = sc->define_bacro_star_symbol; break;
                        case OP_DEFINE_EXPANSION:      caller = sc->define_expansion_symbol;  break;
                        case OP_DEFINE_EXPANSION_STAR: caller = sc->define_expansion_star_symbol;  break;
                    }

                    if (!is_pair(sc->code))                                               /* (define-macro . 1) */
                        eval_error_with_caller(sc, "~A name missing (stray dot?): ~A", 32, caller, sc->code);
                    if (!is_pair(car(sc->code)))                                          /* (define-macro a ...) */
                        return(wrong_type_argument_with_type(sc, caller, 1, car(sc->code), wrap_string(sc, "a list: (name ...)", 18)));

                    x = caar(sc->code);
                    if (!is_symbol(x))
                        eval_error_with_caller(sc, "~A: ~S is not a symbol?", 23, caller, x);
                    if (is_syntactic_symbol(x))
                    {
                        if (sc->safety > NO_SAFETY)
                            s7_warn(sc, 128, "%s: syntactic keywords tend to behave badly if redefined\n", DISPLAY(x));
                        set_local(x);
                    }
                    if (is_constant_symbol(sc, x))
                        eval_error_with_caller(sc, "~A: ~S is constant", 18, caller, x);

                    if (!is_pair(cdr(sc->code)))                                        /* (define-macro (...)) */
                        eval_error_with_caller(sc, "~A ~A, but no body?", 19, caller, x);

                    y = cdar(sc->code);                                                 /* the arglist */
                    if ((!is_list(y)) &&
                            (!is_symbol(y)))
                        return(s7_error(sc, sc->syntax_error_symbol,                      /* (define-macro (mac . 1) ...) */
                                    set_elist_3(sc, wrap_string(sc, "macro ~A argument list is ~S?", 29), x, y)));

                    for ( ; is_pair(y); y = cdr(y))
                        if ((!is_symbol(car(y))) &&
                                ((op == OP_DEFINE_MACRO) || (op == OP_DEFINE_BACRO) || (op == OP_DEFINE_EXPANSION)))
                            return(s7_error(sc, sc->syntax_error_symbol,                    /* (define-macro (mac 1) ...) */
                                        set_elist_3(sc, wrap_string(sc, "define-macro ~A parameter name is not a symbol: ~S", 49), x, y)));

                    if ((op == OP_DEFINE_MACRO_STAR) || (op == OP_DEFINE_BACRO_STAR) || (op == OP_DEFINE_EXPANSION_STAR))
                        set_cdar(sc->code, check_lambda_star_args(sc, cdar(sc->code), NULL));
                    else check_lambda_args(sc, cdar(sc->code), NULL);

                    return(sc->code);
                }

// Assembly:
subq $0x128, %rsp            # imm = 0x128
movq %rdi, 0x118(%rsp)
movq %rsi, 0x110(%rsp)
movq 0x118(%rsp), %rax
movq 0x1858(%rax), %rax
movq %rax, 0xf8(%rsp)
movq 0x110(%rsp), %rax
addq $-0x1cc, %rax           # imm = 0xFE34
movq %rax, 0xd0(%rsp)
subq $0x3a, %rax
ja 0x1976aa
movq 0xd0(%rsp), %rax
leaq 0x497c7(%rip), %rcx     # 0x1e0dd4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x118(%rsp), %rax
movq 0x1858(%rax), %rax
movq %rax, 0xf8(%rsp)
jmp 0x1976aa
movq 0x118(%rsp), %rax
movq 0x1860(%rax), %rax
movq %rax, 0xf8(%rsp)
jmp 0x1976aa
movq 0x118(%rsp), %rax
movq 0x1868(%rax), %rax
movq %rax, 0xf8(%rsp)
jmp 0x1976aa
movq 0x118(%rsp), %rax
movq 0x1870(%rax), %rax
movq %rax, 0xf8(%rsp)
jmp 0x1976aa
movq 0x118(%rsp), %rax
movq 0x17c8(%rax), %rax
movq %rax, 0xf8(%rsp)
jmp 0x1976aa
movq 0x118(%rsp), %rax
movq 0x17d0(%rax), %rax
movq %rax, 0xf8(%rsp)
movq 0x118(%rsp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0x197759
movq 0x118(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x118(%rsp), %rax
movq 0x1918(%rax), %rax
movq %rax, 0xc8(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x118(%rsp), %rdi
leaq 0x59a2f(%rip), %rsi     # 0x1f1136
movl $0x20, %edx
callq 0xb880
movq 0xb8(%rsp), %rdi
movq %rax, %rsi
movq 0xf8(%rsp), %rdx
movq 0x118(%rsp), %rax
movq (%rax), %rcx
callq 0xf240
movq 0xc0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x120(%rsp)
jmp 0x197e07
movq 0x118(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0x197917
movq 0x118(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0xf8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xb0(%rsp)
movq $0x1, 0xf0(%rsp)
movq 0xf0(%rsp), %rax
andq $-0x800, %rax           # imm = 0xF800
cmpq $0x0, %rax
jne 0x1977d8
movq 0xf0(%rsp), %rcx
leaq 0x7ecb9(%rip), %rax     # 0x216480
movq (%rax,%rcx,8), %rax
movq %rax, 0xa0(%rsp)
jmp 0x197873
jmp 0x1977da
movq 0x118(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x118(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x197807
movq 0x118(%rsp), %rdi
callq 0xc670
movq 0x118(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0xe0(%rsp)
movq 0xe0(%rsp), %rax
movq $0xb, (%rax)
movq 0xf0(%rsp), %rcx
movq 0xe0(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0xe0(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0xd8(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x118(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x90(%rsp)
movq 0x118(%rsp), %rax
movq 0x140(%rax), %rax
movq %rax, 0x98(%rsp)
movq 0x118(%rsp), %rdi
leaq 0x59887(%rip), %rsi     # 0x1f1157
movl $0x12, %edx
callq 0xb880
movq 0xa8(%rsp), %rdi
movq 0xb0(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq 0x90(%rsp), %rcx
movq 0x98(%rsp), %r8
movq %rax, %r9
callq 0xc560
movq %rax, 0x120(%rsp)
jmp 0x197e07
movq 0x118(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x108(%rsp)
movq 0x108(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
je 0x1979cf
movq 0x118(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x118(%rsp), %rax
movq 0x1918(%rax), %rax
movq %rax, 0x80(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x118(%rsp), %rdi
leaq 0x597e4(%rip), %rsi     # 0x1f116a
movl $0x17, %edx
callq 0xb880
movq 0x70(%rsp), %rdi
movq %rax, %rsi
movq 0xf8(%rsp), %rdx
movq 0x108(%rsp), %rcx
callq 0xf240
movq 0x78(%rsp), %rdi
movq 0x80(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x120(%rsp)
jmp 0x197e07
movq 0x108(%rsp), %rax
movzwl (%rax), %eax
cmpl $0x20a, %eax            # imm = 0x20A
jne 0x197a57
movq 0x118(%rsp), %rax
cmpq $0x0, 0x6a0(%rax)
jle 0x197a33
movq 0x118(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x118(%rsp), %rdi
movq 0x108(%rsp), %rsi
xorl %edx, %edx
callq 0x2cd00
movq 0x68(%rsp), %rdi
movq 0x10(%rax), %rcx
movl $0x80, %esi
leaq 0x58697(%rip), %rdx     # 0x1f00c3
movb $0x0, %al
callq 0x14df0
movq 0x108(%rsp), %rax
movq (%rax), %rcx
orq $0x100000, %rcx         # imm = 0x100000
andq $-0x12201, %rcx         # imm = 0xFFFEDDFF
movq 0x108(%rsp), %rax
movq %rcx, (%rax)
movq 0x118(%rsp), %rdi
movq 0x108(%rsp), %rsi
callq 0xc57c0
testb $0x1, %al
jne 0x197a75
jmp 0x197af8
movq 0x118(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x118(%rsp), %rax
movq 0x1918(%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x118(%rsp), %rdi
leaq 0x596d0(%rip), %rsi     # 0x1f1182
movl $0x12, %edx
callq 0xb880
movq 0x50(%rsp), %rdi
movq %rax, %rsi
movq 0xf8(%rsp), %rdx
movq 0x108(%rsp), %rcx
callq 0xf240
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x120(%rsp)
jmp 0x197e07
movq 0x118(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0x197b96
movq 0x118(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x118(%rsp), %rax
movq 0x1918(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x118(%rsp), %rdi
leaq 0x59645(%rip), %rsi     # 0x1f1195
movl $0x13, %edx
callq 0xb880
movq 0x38(%rsp), %rdi
movq %rax, %rsi
movq 0xf8(%rsp), %rdx
movq 0x108(%rsp), %rcx
callq 0xf240
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x120(%rsp)
jmp 0x197e07
movq 0x118(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x100(%rsp)
movq 0x100(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0x197c70
movq 0x100(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x197c70
movq 0x100(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
je 0x197c70
movq 0x118(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x118(%rsp), %rax
movq 0x1918(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x118(%rsp), %rdi
leaq 0x5957f(%rip), %rsi     # 0x1f11a9
movl $0x1d, %edx
callq 0xb880
movq 0x20(%rsp), %rdi
movq %rax, %rsi
movq 0x108(%rsp), %rdx
movq 0x100(%rsp), %rcx
callq 0xf240
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x120(%rsp)
jmp 0x197e07
jmp 0x197c72
movq 0x100(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x197d6a
movq 0x100(%rsp), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
je 0x197d4f
cmpq $0x1cc, 0x110(%rsp) # imm = 0x1CC
je 0x197ccc
cmpq $0x205, 0x110(%rsp) # imm = 0x205
je 0x197ccc
cmpq $0x1ce, 0x110(%rsp) # imm = 0x1CE
jne 0x197d4f
movq 0x118(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x118(%rsp), %rax
movq 0x1918(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x118(%rsp), %rdi
leaq 0x594be(%rip), %rsi     # 0x1f11c7
movl $0x31, %edx
callq 0xb880
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x108(%rsp), %rdx
movq 0x100(%rsp), %rcx
callq 0xf240
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x120(%rsp)
jmp 0x197e07
jmp 0x197d51
movq 0x100(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x100(%rsp)
jmp 0x197c72
cmpq $0x1cd, 0x110(%rsp) # imm = 0x1CD
je 0x197d94
cmpq $0x206, 0x110(%rsp) # imm = 0x206
je 0x197d94
cmpq $0x1cf, 0x110(%rsp) # imm = 0x1CF
jne 0x197dd0
movq 0x118(%rsp), %rdi
movq 0x118(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x18c450
movq %rax, %rcx
movq 0x118(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0x197df4
movq 0x118(%rsp), %rdi
movq 0x118(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x11e7e0
movq 0x118(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x120(%rsp)
movq 0x120(%rsp), %rax
addq $0x128, %rsp            # imm = 0x128
retq
nopw (%rax,%rax)