// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: op_unknown_a
static goto_t op_unknown_a(s7_scheme *sc, s7_pointer f)
                {
                    s7_pointer code;
                    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 (!has_fx(cdr(code)))
                        fprintf(stderr, "op_unknown_a missing _a support? %s\n", DISPLAY_80(code));
#endif

                    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:
                            set_optimize_op(code, (is_safe_procedure(f)) ? OP_SAFE_C_A : OP_C_A);
                            set_c_function(code, f);
                            return(goto_eval);

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

                                body = closure_body(f);
                                safe_case = is_safe_closure(f);
                                one_form = is_null(cdr(body));
                                if (is_immutable_and_stable(sc, car(code))) hop = 1;

                                if (one_form)
                                {
                                    if (safe_case)
                                    {
                                        if (is_fxable(sc, car(body)))
                                        {
                                            annotate_arg(sc, body, sc->envir);
                                            set_safe_optimize_op(code, hop + OP_SAFE_CLOSURE_A_A);
                                            set_closure_has_fx(f);
                                            fx_tree(sc, body, car(closure_args(f)), NULL);
                                        }
                                        else
                                        {
                                            set_safe_optimize_op(code, hop + OP_SAFE_CLOSURE_A_P);
                                            closure_clear_multiform(f);
                                        }
                                    }
                                    else set_optimize_op(code, hop + OP_CLOSURE_A_P);
                                }
                                else set_optimize_op(code, hop + ((safe_case) ? OP_SAFE_CLOSURE_A : OP_CLOSURE_A));

                                /* we might not be in "f" I think, tree_memq(sc, code, body)?? */
                                if ((safe_case) &&
                                        (is_very_safe_closure(f)) &&
                                        (!tree_has_definers_or_binders(sc, body)) &&
                                        (s7_tree_memq(sc, code, body)))
                                    fx_tree(sc, cdr(code), car(closure_args(f)), NULL);

                                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;
                                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_INT_VECTOR: case T_FLOAT_VECTOR: case T_VECTOR: case T_BYTE_VECTOR:
                            return(fixup_unknown_op(code, f, OP_IMPLICIT_VECTOR_REF_A));

                        case T_STRING:     return(fixup_unknown_op(code, f, OP_IMPLICIT_STRING_REF_A));
                        case T_PAIR:       return(fixup_unknown_op(code, f, OP_IMPLICIT_PAIR_REF_A));
                        case T_C_OBJECT:   return(fixup_unknown_op(code, f, OP_IMPLICIT_C_OBJECT_REF_A));
                        case T_HASH_TABLE: return(fixup_unknown_op(code, f, OP_IMPLICIT_HASH_TABLE_REF_A));
                        case T_GOTO:       return(fixup_unknown_op(code, f, OP_IMPLICIT_GOTO_A));

                        case T_LET:
                                           {
                                               s7_pointer arg1;
                                               arg1 = cadr(code);
                                               if (is_pair(arg1))
                                               {
                                                   if (car(arg1) == sc->quote_symbol)
                                                   {
                                                       set_opt3_any(code, cadadr(code));
                                                       return(fixup_unknown_op(code, f, OP_IMPLICIT_LET_REF_C));
                                                   }
                                                   return(fixup_unknown_op(code, f, OP_IMPLICIT_LET_REF_A)); /* arg is already annotated (unknown_a) */
                                               }
                                               /* this is possible, but it's probably an error: (obj 0) in t725 */
                                               set_opt3_any(code, cadr(code));
                                               return(fixup_unknown_op(code, f, OP_IMPLICIT_LET_REF_C));
                                           }

                        default:
                                           /* macro, continuation */
                                           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, OP_S_A)); /* closure with methods etc */
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
testq %rsi, %rsi
je 0xc9841
movq %rsi, %rbx
movq (%r15), %r14
movzbl (%rsi), %ecx
leal -0x13(%rcx), %eax
cmpl $0x20, %eax
ja 0xc989a
leaq 0x47e8c(%rip), %rcx     # 0x1116b8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movw $0x174, 0x4(%r14)       # imm = 0x174
jmp 0xc9a9e
movq %r15, %rdi
callq 0xd5889
movl $0x2, %eax
jmp 0xc9ab7
cmpq $0x1, 0x18(%rbx)
jg 0xc99bb
cmpq $0x0, 0x28(%rbx)
je 0xc99bb
btl $0x15, (%rbx)
movl $0x148, %eax            # imm = 0x148
movl $0x6c, %ecx
cmovael %eax, %ecx
movw %cx, 0x4(%r14)
movq %rbx, 0x18(%r14)
movq 0x10(%rbx), %rax
movq %rax, 0x20(%r14)
orb $0x4, 0x6(%r14)
movl $0x5, %eax
jmp 0xc9ab7
cmpl $0x1, %ecx
jne 0xc99bb
movw $0x178, 0x4(%r14)       # imm = 0x178
jmp 0xc9a9e
movw $0x171, 0x4(%r14)       # imm = 0x171
jmp 0xc9a9e
testb $0x40, 0x3(%rbx)
jne 0xc99bb
movq %r15, %rdi
movq %rbx, %rsi
callq 0xd584c
cmpl $0x1, %eax
jne 0xc99bb
movq 0x10(%rbx), %rax
movzwl (%rbx), %ebp
movq %rax, (%rsp)
movq 0x10(%rax), %r12
movq 0x110(%r15), %r13
movq 0x8(%r14), %rsi
movq %r15, %rdi
callq 0xd5964
cmpq %r13, %r12
je 0xc9b29
movzbl %al, %eax
movl %ebp, %ecx
shrl $0xa, %ecx
andl $0x4, %ecx
addl %ecx, %eax
addl $0xc4, %eax
movw %ax, 0x4(%r14)
movq (%rsp), %r12
movl %ebp, %r13d
jmp 0xc9bd9
movw $0x176, 0x4(%r14)       # imm = 0x176
jmp 0xc9a9e
movw $0x179, 0x4(%r14)       # imm = 0x179
jmp 0xc9a9e
movq 0x10(%r14), %rax
movq 0x8(%rax), %rax
cmpb $0x1, (%rax)
jne 0xc9ace
movq 0x8(%rax), %rcx
cmpq 0x17b0(%r15), %rcx
je 0xc9ac6
movw $0x17b, 0x4(%r14)       # imm = 0x17B
jmp 0xc9a9e
movw $0x177, 0x4(%r14)       # imm = 0x177
jmp 0xc9a9e
testb $0x40, 0x3(%rbx)
jne 0xc99bb
movq 0x8(%rbx), %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0xa0ae3
cmpl $0x0, 0x28(%rbx)
je 0xc99bb
movq 0x8(%r14), %rsi
movq %r15, %rdi
callq 0xd5964
movzbl %al, %eax
movq 0x10(%rbx), %rcx
testb $0x4, 0x1(%rcx)
jne 0xc9ae0
testb $0x10, 0x1(%rbx)
jne 0xc9b48
movq 0x8(%r14), %rax
cmpb $0xa, (%rax)
jne 0xc9a97
movq 0x8(%r15), %rdx
movq 0x18(%rdx), %rdi
movq 0x20(%rax), %rsi
movl $0x18, %ecx
cmpq %rsi, %rdi
je 0xc9a29
jle 0xc99ed
movq 0x10(%rdx), %rdx
movq 0x18(%rdx), %rdi
cmpq %rdi, %rsi
jl 0xc99e0
cmpq %rsi, %rdi
je 0xc9a29
movl $0x10, %ecx
cmpb $0x1c, (%rdx)
jne 0xc9a29
movq 0x8(%rdx), %rsi
testq %rsi, %rsi
sete %r8b
je 0xc9a15
cmpq %rax, 0x8(%rsi)
je 0xc9a18
movq 0x18(%rsi), %rsi
jmp 0xc9a00
movq %rdi, %rsi
testb %r8b, %r8b
je 0xc9a2d
movq 0x10(%rdx), %rdx
cmpb $0x1c, (%rdx)
movq %rsi, %rdi
je 0xc99fc
movq (%rax,%rcx), %rsi
cmpb $0x20, (%rsi)
je 0xc9a97
movq 0x1958(%r15), %rsi
movq 0x820(%r15), %rax
movslq 0x7dc(%r15), %rcx
movq (%rax,%rcx,8), %rax
incl %ecx
andl $0x7, %ecx
movl %ecx, 0x7dc(%r15)
leaq 0x57a57(%rip), %rcx     # 0x1214b5
movq %rcx, 0x10(%rax)
movq $0x14, 0x8(%rax)
movq 0x8(%r14), %rcx
movq 0x6e0(%r15), %rdx
movq %rax, 0x8(%rdx)
movq 0x6e0(%r15), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0x6e0(%r15), %rdx
movq %r15, %rdi
callq 0x3b366
movw $0x16d, 0x4(%r14)       # imm = 0x16D
movzbl (%rbx), %ecx
leaq 0x91138(%rip), %rdx     # 0x15abe0
movl $0x5, %eax
cmpb $0x1, (%rcx,%rdx)
jne 0xc9ab7
movq %rbx, 0x18(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x28(%r14)
andb $-0x5, 0x2(%r14)
movw $0x17a, 0x4(%r14)       # imm = 0x17A
jmp 0xc9a9e
movq 0x8(%rbx), %rcx
cmpb $0x1, (%rcx)
jne 0xc9aff
movq 0x1890(%r15), %rdx
cmpq %rdx, 0x8(%rcx)
je 0xc9b0c
movq 0x10(%rcx), %rcx
cmpb $0x1, (%rcx)
je 0xc9af0
cmpq 0x110(%r15), %rcx
je 0xc9ba8
btl $0xc, (%rbx)
movl $0x11a, %ecx            # imm = 0x11A
movl $0x124, %edx            # imm = 0x124
cmovael %ecx, %edx
orl %eax, %edx
movw %dx, 0x4(%r14)
jmp 0xc9a9e
btl $0xc, %ebp
movl %ebp, %r13d
jb 0xc9b57
movzbl %al, %eax
orl $0xc6, %eax
movw %ax, 0x4(%r14)
movq (%rsp), %r12
jmp 0xc9bd9
orl $0x124, %eax            # imm = 0x124
movw %ax, 0x4(%r14)
jmp 0xc9a9e
movl %eax, %ebp
movq (%rsp), %r12
movq 0x8(%r12), %rsi
movq %r15, %rdi
callq 0xd5a05
testb %al, %al
je 0xc9bc2
movq 0x8(%r15), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0xd5a53
orb $0x8, 0x1(%r14)
movzbl %bpl, %eax
orl $0xcc, %eax
movw %ax, 0x4(%r14)
orb $0x5, 0x1(%rbx)
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rsi
movq %r12, %rdi
xorl %edx, %edx
callq 0xd5a9e
jmp 0xc9bd9
movzwl (%rbx), %ecx
shrl $0xa, %ecx
andl $0x4, %ecx
addl %ecx, %eax
addl $0x118, %eax            # imm = 0x118
movw %ax, 0x4(%r14)
jmp 0xc9a9e
orb $0x8, 0x1(%r14)
movzbl %bpl, %eax
orl $0xca, %eax
movw %ax, 0x4(%r14)
andb $-0x2, 0x1(%rbx)
btl $0xc, %r13d
jae 0xc9c17
testb $0x10, 0x6(%rbx)
je 0xc9c17
movq %r12, %rdi
callq 0xd9cb1
testb %al, %al
jne 0xc9c17
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x3b26e
testb %al, %al
je 0xc9c17
movq 0x10(%r14), %rdi
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rsi
xorl %edx, %edx
callq 0xd5a9e
movq %rbx, 0x18(%r14)
jmp 0xc9890