// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: op_unknown_all_s
static goto_t op_unknown_all_s(s7_scheme *sc, s7_pointer f)
                {
                    s7_pointer code, arg;
                    int32_t num_args;
                    if (!f) /* can be NULL if unbound variable */
                        return(unknown_unknown(sc));
#if SHOW_EVAL_OPS
                    fprintf(stderr, "%s %s\n", __func__, DISPLAY(f));
#endif

                    code = sc->code;
                    num_args = integer(opt3_arglen(code));
                    for (arg = cdr(code); is_pair(arg); arg = cdr(arg))
                        if (/* (!is_symbol(car(arg))) ||  */            /* can't happen?? */
                                (!is_slot(symbol_to_slot(sc, car(arg)))))
                            return(fall_through);

                    switch (type(f))
                    {
                        case T_C_FUNCTION:
                        case T_C_RST_ARGS_FUNCTION:
                            if ((c_function_required_args(f) > num_args) ||
                                    (c_function_all_args(f) < num_args))
                                break;

                        case T_C_OPT_ARGS_FUNCTION:
                        case T_C_ANY_ARGS_FUNCTION:
                            if (is_safe_procedure(f))
                            {
                                if (num_args == 3)
                                {
                                    set_safe_optimize_op(code, OP_SAFE_C_SSS);
                                    set_opt1_sym(cdr(code), caddr(code));
                                    set_opt2_sym(cdr(code), cadddr(code));
                                }
                                else set_safe_optimize_op(code, OP_SAFE_C_ALL_S);
                            }
                            else
                            {
                                set_optimize_op(code, OP_C_FX);
                                annotate_args(sc, cdr(code), sc->envir);
                            }
                            set_c_function(code, f);
                            return(goto_eval);

                        case T_CLOSURE:
                            if ((!has_methods(f)) &&
                                    (closure_arity_to_int(sc, f) == num_args))
                            {
                                int32_t hop = 0;
                                if (is_immutable_and_stable(sc, car(code))) hop = 1;
                                annotate_args(sc, cdr(code), sc->envir);
                                if (num_args == 3)
                                    return(fixup_unknown_op(code, f, hop + ((is_safe_closure(f)) ? OP_SAFE_CLOSURE_3S : OP_CLOSURE_3S_B)));
                                if (num_args == 4)
                                    return(fixup_unknown_op(code, f, hop + ((is_safe_closure(f)) ? OP_SAFE_CLOSURE_ALL_S : OP_CLOSURE_4S_B)));
                                return(fixup_unknown_op(code, f, hop + ((is_safe_closure(f)) ? OP_SAFE_CLOSURE_ALL_S : OP_CLOSURE_ALL_S)));
                            }
                            break;

                        case T_CLOSURE_STAR:
                            if ((!has_methods(f)) &&
                                    (lambda_has_simple_defaults(closure_body(f))) &&
                                    ((closure_star_arity_to_int(sc, f) < 0) || ((closure_star_arity_to_int(sc, f) * 2) >= num_args)))
                            {
                                int32_t hop = 0;
                                if (is_immutable_and_stable(sc, car(code))) hop = 1;
                                annotate_args(sc, cdr(code), sc->envir);
                                return(fixup_unknown_op(code, f, hop + ((is_safe_closure(f)) ? OP_SAFE_CLOSURE_STAR_FX : OP_CLOSURE_STAR_FX)));
                            }
                            break;

                        case T_MACRO:
                            return(fixup_unknown_op(code, f, OP_MACRO_D));

                        case T_MACRO_STAR:
                            return(fixup_unknown_op(code, f, OP_MACRO_STAR_D));

                        default:
                            break;
                    }
                    return(unknown_unknown(sc));
                }

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
cmpq $0x0, 0x30(%rsp)
jne 0x124f79
movq 0x38(%rsp), %rdi
callq 0x15ce10
movl %eax, 0x44(%rsp)
jmp 0x1253d2
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x28(%rax), %rax
movq 0x8(%rax), %rax
movl %eax, 0x1c(%rsp)
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x124ff0
movq 0x38(%rsp), %rdi
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0xfc80
movzbl (%rax), %eax
cmpl $0x20, %eax
je 0x124fde
movl $0x2, 0x44(%rsp)
jmp 0x1253d2
jmp 0x124fe0
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x20(%rsp)
jmp 0x124fa9
movq 0x30(%rsp), %rax
movzbl (%rax), %eax
addl $-0x28, %eax
movl %eax, %ecx
movq %rcx, 0x8(%rsp)
subl $0xb, %eax
ja 0x1253c2
movq 0x8(%rsp), %rax
leaq 0xbb379(%rip), %rcx     # 0x1e0390
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rax
movslq 0x1c(%rsp), %rcx
cmpq %rcx, %rax
jg 0x125046
movq 0x30(%rsp), %rax
movq 0x28(%rax), %rax
movslq 0x1c(%rsp), %rcx
cmpq %rcx, %rax
jge 0x12504b
jmp 0x1253c4
jmp 0x12504d
movq 0x30(%rsp), %rax
movq (%rax), %rax
andq $0x200000, %rax         # imm = 0x200000
cmpq $0x0, %rax
je 0x1250ee
cmpl $0x3, 0x1c(%rsp)
jne 0x1250cc
jmp 0x12506e
movq 0x28(%rsp), %rax
movzwl (%rax), %ecx
orl $0x800, %ecx            # imm = 0x800
movw %cx, (%rax)
movq 0x28(%rsp), %rax
movw $0xe, 0x4(%rax)
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rcx
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x18(%rax)
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rcx
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x20(%rax)
jmp 0x1250ec
jmp 0x1250ce
movq 0x28(%rsp), %rax
movzwl (%rax), %ecx
orl $0x800, %ecx            # imm = 0x800
movw %cx, (%rax)
movq 0x28(%rsp), %rax
movw $0x1c, 0x4(%rax)
jmp 0x1250ec
jmp 0x125115
movq 0x28(%rsp), %rax
movw $0x12a, 0x4(%rax)       # imm = 0x12A
movq 0x38(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdx
callq 0x164800
jmp 0x125117
movq 0x30(%rsp), %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x28(%rsp), %rax
movzwl 0x6(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0x6(%rax)
jmp 0x125149
movl $0x5, 0x44(%rsp)
jmp 0x1253d2
movq 0x30(%rsp), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
jne 0x1252a0
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x15cd60
cmpl 0x1c(%rsp), %eax
jne 0x1252a0
movl $0x0, 0x18(%rsp)
movq 0x38(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0x15cec0
testb $0x1, %al
jne 0x1251a8
jmp 0x1251b0
movl $0x1, 0x18(%rsp)
movq 0x38(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdx
callq 0x164800
cmpl $0x3, 0x1c(%rsp)
jne 0x125215
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movl 0x18(%rsp), %eax
movq 0x30(%rsp), %rcx
movzwl (%rcx), %r8d
andl $0x1000, %r8d           # imm = 0x1000
movl $0xf6, %ecx
movl $0x114, %edx            # imm = 0x114
cmpl $0x0, %r8d
cmovnel %edx, %ecx
addl %ecx, %eax
movslq %eax, %rdx
callq 0x15d0d0
movl %eax, 0x44(%rsp)
jmp 0x1253d2
cmpl $0x4, 0x1c(%rsp)
jne 0x12525e
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movl 0x18(%rsp), %eax
movq 0x30(%rsp), %rcx
movzwl (%rcx), %r8d
andl $0x1000, %r8d           # imm = 0x1000
movl $0xfc, %ecx
movl $0x116, %edx            # imm = 0x116
cmpl $0x0, %r8d
cmovnel %edx, %ecx
addl %ecx, %eax
movslq %eax, %rdx
callq 0x15d0d0
movl %eax, 0x44(%rsp)
jmp 0x1253d2
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movl 0x18(%rsp), %eax
movq 0x30(%rsp), %rcx
movzwl (%rcx), %r8d
andl $0x1000, %r8d           # imm = 0x1000
movl $0x10a, %ecx            # imm = 0x10A
movl $0x116, %edx            # imm = 0x116
cmpl $0x0, %r8d
cmovnel %edx, %ecx
addl %ecx, %eax
movslq %eax, %rdx
callq 0x15d0d0
movl %eax, 0x44(%rsp)
jmp 0x1253d2
jmp 0x1253c4
movq 0x30(%rsp), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
jne 0x12538c
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
andq $0x400, %rax            # imm = 0x400
cmpq $0x0, %rax
je 0x12538c
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x15d230
cmpl $0x0, %eax
jl 0x125308
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x15d230
shll %eax
cmpl 0x1c(%rsp), %eax
jl 0x12538c
movl $0x0, 0x14(%rsp)
movq 0x38(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0x15cec0
testb $0x1, %al
jne 0x125329
jmp 0x125331
movl $0x1, 0x14(%rsp)
movq 0x38(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdx
callq 0x164800
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movl 0x14(%rsp), %eax
movq 0x30(%rsp), %rcx
movzwl (%rcx), %r8d
andl $0x1000, %r8d           # imm = 0x1000
movl $0x11a, %ecx            # imm = 0x11A
movl $0x120, %edx            # imm = 0x120
cmpl $0x0, %r8d
cmovnel %edx, %ecx
addl %ecx, %eax
movslq %eax, %rdx
callq 0x15d0d0
movl %eax, 0x44(%rsp)
jmp 0x1253d2
jmp 0x1253c4
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movl $0x168, %edx            # imm = 0x168
callq 0x15d0d0
movl %eax, 0x44(%rsp)
jmp 0x1253d2
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movl $0x169, %edx            # imm = 0x169
callq 0x15d0d0
movl %eax, 0x44(%rsp)
jmp 0x1253d2
jmp 0x1253c4
movq 0x38(%rsp), %rdi
callq 0x15ce10
movl %eax, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopl (%rax,%rax)