// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: check_lambda_args
static s7_pointer check_lambda_args(s7_scheme *sc, s7_pointer args, int32_t *arity)
                {
                    s7_pointer x;
                    int32_t i;

                    if (!is_list(args))
                    {
                        if (is_constant(sc, args))                       /* (lambda :a ...) */
                            eval_error(sc, "lambda parameter '~S is a constant", 34, args); /* not ~A here, (lambda #\null do) for example */

                        /* we currently accept (lambda i i . i) (lambda quote i)  (lambda : : . #()) (lambda : 1 . "")
                         *   at this level, but when the lambda form is evaluated, it will trigger an error.
                         */
                        if (is_symbol(args))
                            set_local(args);

                        if (arity) (*arity) = -1;
                        return(sc->F);
                    }

                    for (i = 0, x = args; is_pair(x); i++, x = cdr(x))
                    {
                        s7_pointer car_x;
                        car_x = car(x);
                        if (is_constant(sc, car_x))                      /* (lambda (pi) pi), constant here means not a symbol */
                        {
                            if (is_pair(car_x))                          /* (lambda ((:hi . "hi") . "hi") 1) */
                                eval_error(sc, "lambda parameter '~S is a pair (perhaps you want define* or lambda*?)", 69, car_x);
                            eval_error(sc, "lambda parameter '~S is a constant", 34, car_x);
                        }
                        if (symbol_is_in_arg_list(car_x, cdr(x)))       /* (lambda (a a) ...) or (lambda (a . a) ...) */
                            eval_error(sc, "lambda parameter '~S is used twice in the parameter list", 56, car_x);
                        set_local(car_x);
                    }
                    if (is_not_null(x))
                    {
                        if (is_constant(sc, x))                         /* (lambda (a . 0.0) a) or (lambda (a . :b) a) */
                            eval_error(sc, "lambda :rest parameter '~S is a constant", 40, x);
                        i = -i - 1;
                    }

                    if (arity) (*arity) = i;
                    return(sc->F);
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movzbl (%rsi), %eax
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jae 0xc8964
movb (%rsi), %r8b
xorl %eax, %eax
cmpb $0x1, %r8b
jne 0xc88b3
xorl %eax, %eax
leaq 0x580cf(%rip), %rcx     # 0x120875
leaq 0x5810e(%rip), %r9      # 0x1208bb
movq 0x8(%rsi), %r8
movzbl (%r8), %ebx
movl $0x45, %r10d
cmpl $0xa, %ebx
jne 0xc8ab3
movq (%r8), %r11
btl $0x18, %r11d
jb 0xc8aba
testb $0x1, 0x6(%r8)
je 0xc8854
movq 0x8(%rdi), %r15
movq 0x18(%r15), %r13
movq 0x20(%r8), %r12
movl $0x18, %r14d
cmpq %r12, %r13
je 0xc883d
jle 0xc87ff
movq 0x10(%r15), %r15
movq 0x18(%r15), %r13
cmpq %r13, %r12
jl 0xc87f2
cmpq %r12, %r13
je 0xc883d
movl $0x10, %r14d
cmpb $0x1c, (%r15)
jne 0xc883d
movq 0x8(%r15), %r13
testq %r13, %r13
sete %bpl
je 0xc882e
cmpq %r8, 0x8(%r13)
je 0xc8829
movq 0x18(%r13), %r13
jmp 0xc8814
xorl %ebp, %ebp
movq %r13, %r12
testb %bpl, %bpl
je 0xc8841
movq 0x10(%r15), %r15
cmpb $0x1c, (%r15)
je 0xc8810
movq (%r8,%r14), %r12
cmpb $0x20, (%r12)
jne 0xc8854
testb $0x1, 0x3(%r12)
jne 0xc8aba
movq 0x10(%rsi), %rbx
cmpb $0x1, (%rbx)
jne 0xc8886
movq 0x8(%rbx), %r14
movl $0x38, %r10d
cmpq %r8, %r14
je 0xc8ad4
cmpb $0x1, (%r14)
jne 0xc8880
cmpq %r8, 0x8(%r14)
je 0xc8ad4
movq 0x10(%rbx), %rbx
jmp 0xc8858
cmpq %r8, %rbx
je 0xc8ace
andq $-0x1112201, %r11       # imm = 0xFEEEDDFF
orq $0x100000, %r11         # imm = 0x100000
movq %r11, (%r8)
incl %eax
movq 0x10(%rsi), %rsi
movb (%rsi), %r8b
cmpb $0x1, %r8b
je 0xc87ad
cmpq 0x110(%rdi), %rsi
je 0xc8954
cmpb $0xa, %r8b
jne 0xc8a56
testb $0x1, 0x3(%rsi)
jne 0xc8a56
testb $0x1, 0x6(%rsi)
je 0xc8952
movq 0x8(%rdi), %r8
movq 0x18(%r8), %r10
movq 0x20(%rsi), %r9
movl $0x18, %ecx
cmpq %r9, %r10
je 0xc893d
jle 0xc88ff
movq 0x10(%r8), %r8
movq 0x18(%r8), %r10
cmpq %r10, %r9
jl 0xc88f2
cmpq %r9, %r10
je 0xc893d
movl $0x10, %ecx
cmpb $0x1c, (%r8)
jne 0xc893d
movq 0x8(%r8), %r10
testq %r10, %r10
sete %r11b
je 0xc892e
cmpq %rsi, 0x8(%r10)
je 0xc8928
movq 0x18(%r10), %r10
jmp 0xc8913
xorl %r11d, %r11d
movq %r10, %r9
testb %r11b, %r11b
je 0xc8941
movq 0x10(%r8), %r8
cmpb $0x1c, (%r8)
je 0xc890f
movq (%rsi,%rcx), %r9
cmpb $0x20, (%r9)
jne 0xc8952
testb $0x1, 0x3(%r9)
jne 0xc8a56
notl %eax
testq %rdx, %rdx
je 0xc8a12
movl %eax, (%rdx)
jmp 0xc8a12
cmpl $0xa, %eax
jne 0xc8a1d
testb $0x1, 0x3(%rsi)
jne 0xc8a1d
testb $0x1, 0x6(%rsi)
je 0xc89ef
movq 0x8(%rdi), %rcx
movq 0x18(%rcx), %r9
movq 0x20(%rsi), %r8
movl $0x18, %eax
cmpq %r8, %r9
je 0xc89de
jle 0xc89a2
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %r9
cmpq %r9, %r8
jl 0xc8995
cmpq %r8, %r9
je 0xc89de
movl $0x10, %eax
cmpb $0x1c, (%rcx)
jne 0xc89de
movq 0x8(%rcx), %r9
testq %r9, %r9
sete %r10b
je 0xc89d0
cmpq %rsi, 0x8(%r9)
je 0xc89ca
movq 0x18(%r9), %r9
jmp 0xc89b5
xorl %r10d, %r10d
movq %r9, %r8
testb %r10b, %r10b
je 0xc89e2
movq 0x10(%rcx), %rcx
cmpb $0x1c, (%rcx)
je 0xc89b1
movq (%rsi,%rax), %r8
cmpb $0x20, (%r8)
jne 0xc89ef
testb $0x1, 0x3(%r8)
jne 0xc8a1d
cmpb $0xa, (%rsi)
jne 0xc8a07
movq $-0x112201, %rax        # imm = 0xFFEEDDFF
andq (%rsi), %rax
orq $0x100000, %rax         # imm = 0x100000
movq %rax, (%rsi)
testq %rdx, %rdx
je 0xc8a12
movl $0xffffffff, (%rdx)     # imm = 0xFFFFFFFF
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1918(%rdi), %rax
movq 0x820(%rdi), %rcx
movslq 0x7dc(%rdi), %rdx
movq (%rcx,%rdx,8), %rcx
incl %edx
andl $0x7, %edx
movl %edx, 0x7dc(%rdi)
leaq 0x57e0a(%rip), %rdx     # 0x120852
movq %rdx, 0x10(%rcx)
movq $0x22, 0x8(%rcx)
jmp 0xc8a8d
movq 0x1918(%rdi), %rax
movq 0x820(%rdi), %rcx
movslq 0x7dc(%rdi), %rdx
movq (%rcx,%rdx,8), %rcx
incl %edx
andl $0x7, %edx
movl %edx, 0x7dc(%rdi)
leaq 0x57e73(%rip), %rdx     # 0x1208f4
movq %rdx, 0x10(%rcx)
movq $0x28, 0x8(%rcx)
movq 0x6e0(%rdi), %rdx
movq %rcx, 0x8(%rdx)
movq 0x6e0(%rdi), %rcx
movq 0x10(%rcx), %rcx
movq %rsi, 0x8(%rcx)
movq 0x6e0(%rdi), %rdx
movq %rax, %rsi
jmp 0xc8b24
cmpl $0x1, %ebx
jne 0xc8abf
jmp 0xc8ad7
cmpb $0x1, %bl
je 0xc8ad7
movl $0x22, %r10d
leaq 0x57d86(%rip), %rcx     # 0x120852
jmp 0xc8ad7
movl $0x38, %r10d
movq %r9, %rcx
movq 0x1918(%rdi), %rsi
movq 0x820(%rdi), %rax
movslq 0x7dc(%rdi), %rdx
movq (%rax,%rdx,8), %rax
incl %edx
andl $0x7, %edx
movl %edx, 0x7dc(%rdi)
movq %rcx, 0x10(%rax)
movq %r10, 0x8(%rax)
movq 0x6e0(%rdi), %rcx
movq %rax, 0x8(%rcx)
movq 0x6e0(%rdi), %rax
movq 0x10(%rax), %rax
movq %r8, 0x8(%rax)
movq 0x6e0(%rdi), %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3b366