// File: /workspace/github_c_makefile_star2_O2/BernardTatin[P]s7sh/s7.c
// Function: op_unknown_g
static goto_t op_unknown_g(s7_scheme *sc, s7_pointer f)
                {
                    s7_pointer code;
                    bool sym_case;
                    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;
#if S7_DEBUGGING
                    if (is_pair(cadr(code)))
                        fprintf(stderr, "%s[%d]: arg is a pair: %s\n", __func__, __LINE__, DISPLAY(code));
#endif
                    sym_case = is_normal_symbol(cadr(code));
                    if ((sym_case) &&
                            (!is_slot(symbol_to_slot(sc, cadr(code)))))
                        return(fall_through);

                    switch (type(f))
                    {
                        case T_C_FUNCTION:
                        case T_C_RST_ARGS_FUNCTION:
                            if ((c_function_required_args(f) > 1) ||
                                    (c_function_all_args(f) == 0))
                                break;

                        case T_C_OPT_ARGS_FUNCTION:
                        case T_C_ANY_ARGS_FUNCTION:
                            if (sym_case)
                            {
                                if (is_safe_procedure(f))
                                    set_optimize_op(code, OP_SAFE_C_S);
                                else set_optimize_op(code, OP_C_S);
                                set_c_function(code, f);
                                return(goto_eval);
                            }
                            if (is_safe_procedure(f))
                            {
                                set_optimize_op(code, OP_SAFE_C_D);
                                set_c_function(code, f);
                                return(goto_eval);
                            }
                            break;

                        case T_CLOSURE:
                            if ((!has_methods(f)) &&
                                    (closure_arity_to_int(sc, f) == 1))
                            {
                                s7_pointer body;
                                int32_t hop = 0;

                                body = closure_body(f);
                                if (sym_case)
                                    set_opt2_sym(code, cadr(code));
                                else set_opt2_con(code, cadr(code));
                                if (is_immutable_and_stable(sc, car(code))) hop = 1;

                                if (is_safe_closure(f))
                                {
                                    if (is_null(cdr(body)))
                                    {
                                        if (is_fxable(sc, car(body)))
                                        {
                                            annotate_arg(sc, body, sc->envir);
                                            set_safe_optimize_op(code, hop + ((sym_case) ? OP_SAFE_CLOSURE_S_A : OP_SAFE_CLOSURE_C_A));
                                            set_closure_has_fx(f);
                                            fx_tree(sc, body, car(closure_args(f)), NULL);
                                        }
                                        else
                                        {
                                            /* hop if is_constant(sc, car(code)) is not foolproof here (see t967.scm):
                                             *    (define (f) (define-constant (f1) ... (f1))...) where each call on f makes a different f1
                                             */
                                            set_safe_optimize_op(code, hop + ((sym_case) ? OP_SAFE_CLOSURE_S_P : OP_SAFE_CLOSURE_C_P));
                                            closure_clear_multiform(f);
                                        }
                                    }
                                    else set_safe_optimize_op(code, hop + ((sym_case) ? OP_SAFE_CLOSURE_S : OP_SAFE_CLOSURE_C));
                                }
                                else
                                {
                                    if (is_null(cdr(body)))
                                        set_optimize_op(code, hop + ((sym_case) ? OP_CLOSURE_S_P : OP_CLOSURE_C_P));
                                    else set_optimize_op(code, hop + ((sym_case) ? OP_CLOSURE_S : OP_CLOSURE_C));
                                }
                                set_opt1_lambda(code, f);
                                return(goto_eval);
                            }
                            break;

                        case T_CLOSURE_STAR:
                            if ((!has_methods(f)) &&
                                    (closure_star_arity_to_int(sc, f) != 0))
                            {
                                int32_t hop = 0;
                                if (is_immutable_and_stable(sc, car(code))) hop = 1;

                                annotate_arg(sc, cdr(code), sc->envir);
                                set_opt3_arglen(code, small_int(1));
                                if (lambda_has_simple_defaults(closure_body(f)))
                                {
                                    if (arglist_has_rest(sc, closure_args(f)))
                                        return(fixup_unknown_op(code, f, hop + ((is_safe_closure(f)) ? OP_SAFE_CLOSURE_STAR_FX_1 : OP_CLOSURE_STAR_FX)));
                                    return(fixup_unknown_op(code, f, hop + ((is_safe_closure(f)) ? OP_SAFE_CLOSURE_STAR_A : OP_CLOSURE_STAR_A)));
                                }
                                if (is_safe_closure(f))
                                    return(fixup_unknown_op(code, f, hop + OP_SAFE_CLOSURE_STAR_FX_1));
                            }
                            break;

                        case T_GOTO:
                            annotate_arg(sc, cdr(code), sc->envir);
                            set_opt3_arglen(code, small_int(1));
                            return(fixup_unknown_op(code, f, OP_IMPLICIT_GOTO_A));

                        case T_INT_VECTOR: case T_FLOAT_VECTOR: case T_VECTOR: case T_BYTE_VECTOR:
                            if ((sym_case) ||
                                    (is_t_integer(cadr(code))))      /* (v 4/3) */
                            {
                                annotate_arg(sc, cdr(code), sc->envir);
                                return(fixup_unknown_op(code, f, OP_IMPLICIT_VECTOR_REF_A));
                            }
                            break;

                        case T_STRING:
                            annotate_arg(sc, cdr(code), sc->envir);
                            return(fixup_unknown_op(code, f, OP_IMPLICIT_STRING_REF_A));

                        case T_PAIR:
                            annotate_arg(sc, cdr(code), sc->envir);
                            return(fixup_unknown_op(code, f, OP_IMPLICIT_PAIR_REF_A));

                        case T_C_OBJECT:
                            if (s7_is_aritable(sc, f, 1))
                            {
                                annotate_arg(sc, cdr(code), sc->envir);
                                return(fixup_unknown_op(code, f, OP_IMPLICIT_C_OBJECT_REF_A));
                            }
                            break;

                        case T_LET:
                            if (is_normal_symbol(cadr(code)))
                            {
                                annotate_arg(sc, cdr(code), sc->envir);
                                return(fixup_unknown_op(code, f, OP_IMPLICIT_LET_REF_A));
                            }
                            set_opt3_any(code, cadr(code));
                            return(fixup_unknown_op(code, f, OP_IMPLICIT_LET_REF_C));

                        case T_HASH_TABLE:
                            annotate_arg(sc, cdr(code), sc->envir);
                            return(fixup_unknown_op(code, f, OP_IMPLICIT_HASH_TABLE_REF_A));

                        case T_CONTINUATION:
                            annotate_arg(sc, cdr(code), sc->envir);
                            return(fixup_unknown_op(code, f, OP_IMPLICIT_CONTINUATION_A));

                        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;
                    }
                    if ((is_symbol(car(code))) &&
                            (!is_slot(symbol_to_slot(sc, car(code)))))
                        eval_error_no_return(sc, sc->unbound_variable_symbol, "~A: unbound variable", 20, car(code));

                    return(fixup_unknown_op(code, f, (sym_case) ? OP_S_S : OP_S_C));
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
pushq $0x2
popq %rbp
testq %rsi, %rsi
je 0x971aa
movq %rsi, %rbx
movq (%r14), %rdx
movq 0x10(%rdx), %r15
movq 0x8(%r15), %r12
movb (%r12), %r13b
cmpb $0xa, %r13b
jne 0x97156
testb $-0x80, 0x6(%r12)
jne 0x97156
movq %r14, %rdi
movq %r12, %rsi
movq %r14, (%rsp)
movq %rbx, %r14
movq %rdx, %rbx
callq 0xb00b
movq %rbx, %rdx
movq %r14, %rbx
movq (%rsp), %r14
movb $0x1, %dil
cmpb $0x20, (%rax)
je 0x97158
jmp 0x9752a
xorl %edi, %edi
movzbl (%rbx), %ecx
leal -0x13(%rcx), %eax
cmpl $0x20, %eax
ja 0x971ea
leaq 0x3d526(%rip), %rcx     # 0xd4694
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0xb, %r13b
setne %al
movl %edi, %ecx
xorb $0x1, %cl
testb %cl, %al
jne 0x973d7
movq %rdx, %r12
movq 0x8(%r14), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xa26b2
movw $0x174, 0x4(%r12)       # imm = 0x174
jmp 0x97510
movq %r14, %rdi
callq 0xa25b8
jmp 0x9752a
cmpq $0x1, 0x18(%rbx)
jg 0x973d7
cmpq $0x0, 0x28(%rbx)
je 0x973d7
movq (%rbx), %rax
testb %dil, %dil
je 0x97212
btl $0x15, %eax
movl $0x13e, %eax            # imm = 0x13E
pushq $0x4
popq %rcx
cmovael %eax, %ecx
movw %cx, 0x4(%rdx)
jmp 0x97222
cmpl $0x1, %ecx
jne 0x973d7
movq %rdx, %r12
movq 0x8(%r14), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xa26b2
movw $0x178, 0x4(%r12)       # imm = 0x178
jmp 0x97510
btl $0x15, %eax
jae 0x973d7
movw $0x2, 0x4(%rdx)
movq %rbx, 0x18(%rdx)
movq 0x10(%rbx), %rax
movq %rax, 0x20(%rdx)
orb $0x4, 0x6(%rdx)
pushq $0x5
popq %rbp
jmp 0x9752a
movw $0x169, 0x4(%rdx)       # imm = 0x169
jmp 0x97474
testb $0x40, 0x3(%rbx)
jne 0x973d7
movl %edi, %r13d
movq %r14, %rdi
movq %rbx, %rsi
movq %rdx, %r12
callq 0xa2581
movl %r13d, %edi
movq %r12, %rdx
cmpl $0x1, %eax
jne 0x973d7
movq 0x10(%rbx), %r15
movq 0x8(%rdx), %rsi
movq 0x10(%rdx), %rax
movq 0x8(%rax), %rax
movq %rax, 0x20(%rdx)
movq %r14, %rdi
callq 0xa263c
movzbl %al, %ebp
testb $0x10, 0x1(%rbx)
movq 0x10(%r15), %rax
movq 0x110(%r14), %rcx
jne 0x9757d
cmpq %rcx, %rax
je 0x975e4
testb %r13b, %r13b
movl $0xaa, %eax
movl $0xb8, %ecx
jmp 0x975f1
movw $0x168, 0x4(%rdx)       # imm = 0x168
jmp 0x97474
movq %rdx, %r12
movq 0x8(%r14), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xa26b2
movw $0x179, 0x4(%r12)       # imm = 0x179
jmp 0x97510
movq %rdx, %r15
pushq $0x1
popq %rdx
movl %edi, %ebp
movq %r14, %rdi
movq %rbx, %rsi
callq 0x32378
movl %ebp, %edi
movq %r15, %rdx
testb %al, %al
je 0x973d7
movq 0x10(%rdx), %rsi
movq 0x8(%r14), %rdx
movq %r14, %rdi
callq 0xa26b2
movw $0x177, 0x4(%r15)       # imm = 0x177
movzbl (%rbx), %eax
leaq 0x8a8b7(%rip), %rcx     # 0x121be0
pushq $0x5
popq %rbp
cmpb $0x1, (%rax,%rcx)
jne 0x9752a
movq %rbx, 0x18(%r15)
jmp 0x9752a
movq %rdx, %r12
movq 0x8(%r14), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xa26b2
movw $0x176, 0x4(%r12)       # imm = 0x176
jmp 0x97510
testb $0x40, 0x3(%rbx)
jne 0x973d7
movl %edi, %ebp
movq %r14, %rdi
movq %rbx, %rsi
movq %rdx, %r12
callq 0xa274b
movl %ebp, %edi
movq %r12, %rdx
testl %eax, %eax
je 0x973d7
movq 0x8(%rdx), %rsi
movq %r14, %rdi
callq 0xa263c
movzbl %al, %r15d
movq 0x10(%r12), %rsi
movq 0x8(%r14), %rdx
movq %r14, %rdi
callq 0xa26b2
movq 0x7e5b3(%rip), %rax     # 0x115958
movq 0x10(%r12), %rcx
movq %rax, 0x28(%rcx)
movq 0x10(%r12), %rax
andq $-0x40001, (%rax)       # imm = 0xFFFBFFFF
movq 0x10(%rbx), %rax
testb $0x4, 0x1(%rax)
jne 0x9754e
movq %r12, %rdx
testb $0x10, 0x1(%rbx)
movl %ebp, %edi
jne 0x9759d
movq 0x8(%rdx), %rsi
cmpb $0xa, (%rsi)
jne 0x97465
movl %edi, %ebp
movq %r14, %rdi
movq %rdx, %r15
callq 0xb00b
movl %ebp, %edi
movq %r15, %rdx
cmpb $0x20, (%rax)
je 0x97465
movq 0x1958(%r14), %rsi
movq 0x820(%r14), %rax
movslq 0x7dc(%r14), %rcx
movq (%rax,%rcx,8), %rax
incl %ecx
andl $0x7, %ecx
movl %ecx, 0x7dc(%r14)
leaq 0x4d13e(%rip), %rcx     # 0xe4565
movq %rcx, 0x10(%rax)
movq $0x14, 0x8(%rax)
movq 0x8(%rdx), %rcx
movq 0x6e0(%r14), %rdx
movq %rax, 0x8(%rdx)
movq 0x6e0(%r14), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0x6e0(%r14), %rdx
movq %r14, %rdi
callq 0x2cdc0
movl %ebp, %edi
movq %r15, %rdx
movzbl %dil, %eax
movl $0x16c, %ecx            # imm = 0x16C
subl %eax, %ecx
movw %cx, 0x4(%rdx)
movzbl (%rbx), %eax
leaq 0x8a762(%rip), %rcx     # 0x121be0
pushq $0x5
popq %rbp
cmpb $0x1, (%rax,%rcx)
je 0x97526
jmp 0x9752a
movq %rdx, %r12
movq 0x8(%r14), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xa26b2
movw $0x173, 0x4(%r12)       # imm = 0x173
jmp 0x97510
cmpb $0xa, %r13b
jne 0x9753b
testb $-0x80, 0x6(%r12)
jne 0x9753b
movq %rdx, %r12
movq 0x8(%r14), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xa26b2
movw $0x17b, 0x4(%r12)       # imm = 0x17B
jmp 0x97510
movq %rdx, %r12
movq 0x8(%r14), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xa26b2
movq 0x7e465(%rip), %rax     # 0x115958
movq 0x10(%r12), %rcx
movq %rax, 0x28(%rcx)
movq 0x10(%r12), %rax
andq $-0x40001, (%rax)       # imm = 0xFFFBFFFF
movw $0x171, 0x4(%r12)       # imm = 0x171
movzbl (%rbx), %eax
leaq 0x8a6c6(%rip), %rcx     # 0x121be0
pushq $0x5
popq %rbp
cmpb $0x1, (%rax,%rcx)
jne 0x9752a
movq %r12, %rdx
movq %rbx, 0x18(%rdx)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, 0x28(%rdx)
andb $-0x5, 0x2(%rdx)
movw $0x17a, 0x4(%rdx)       # imm = 0x17A
jmp 0x97474
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0xa275d
movzwl (%rbx), %ecx
testb %al, %al
je 0x975ae
btl $0xc, %ecx
movl $0x11a, %eax            # imm = 0x11A
movl $0x124, %ecx            # imm = 0x124
cmovael %eax, %ecx
orl %r15d, %ecx
movw %cx, 0x4(%r12)
jmp 0x975c3
cmpq %rcx, %rax
je 0x97606
movl %r13d, %eax
orb $0x8, 0x1(%r12)
testb %al, %al
movl $0xae, %eax
movl $0xbc, %ecx
jmp 0x975f1
orl $0x124, %r15d           # imm = 0x124
movw %r15w, 0x4(%rdx)
jmp 0x97474
shrl $0xa, %ecx
andl $0x4, %ecx
leal (%rcx,%r15), %eax
addl $0x118, %eax            # imm = 0x118
movw %ax, 0x4(%r12)
movzbl (%rbx), %eax
leaq 0x8a613(%rip), %rcx     # 0x121be0
pushq $0x5
popq %rbp
cmpb $0x1, (%rax,%rcx)
jne 0x9752a
movq %rbx, 0x18(%r12)
jmp 0x9752a
testb %r13b, %r13b
movl $0xac, %eax
movl $0xba, %ecx
cmovnel %eax, %ecx
orl %ebp, %ecx
movw %cx, 0x4(%r12)
movq %rbx, 0x18(%r12)
jmp 0x97232
movq 0x8(%r15), %rsi
movq %r14, %rdi
callq 0xa2689
testb %al, %al
je 0x9765b
movq 0x8(%r14), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xa26b2
orb $0x8, 0x1(%r12)
testb %r13b, %r13b
movl $0xb2, %eax
movl $0xc0, %ecx
cmovnel %eax, %ecx
orl %ebp, %ecx
movw %cx, 0x4(%r12)
orb $0x5, 0x1(%rbx)
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0xa26f4
jmp 0x975fc
orb $0x8, 0x1(%r12)
testb %r13b, %r13b
movl $0xb0, %eax
movl $0xbe, %ecx
cmovnel %eax, %ecx
orl %ebp, %ecx
movw %cx, 0x4(%r12)
andb $-0x2, 0x1(%rbx)
jmp 0x975fc