// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: op_unknown_aa
static goto_t op_unknown_aa(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;
                    set_opt3_arglen(code, small_int(2));
                    annotate_args(sc, cdr(code), sc->envir);

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

                        case T_C_OPT_ARGS_FUNCTION:
                        case T_C_ANY_ARGS_FUNCTION:
                            set_safe_optimize_op(code, (is_safe_procedure(f)) ? OP_SAFE_C_AA : OP_C_FX);
                            set_c_function(code, f);
                            return(goto_eval);

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

                                body = closure_body(f);
                                one_form = is_null(cdr(body));
                                safe_case = is_safe_closure(f);
                                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_AA_A);
                                            set_closure_has_fx(f);
                                        }
                                        else
                                        {
                                            set_safe_optimize_op(code, hop + OP_SAFE_CLOSURE_AA_P);
                                            closure_clear_multiform(f);
                                        }
                                    }
                                    else set_optimize_op(code, hop + OP_CLOSURE_AA_P);
                                }
                                else set_optimize_op(code, hop + ((safe_case) ? OP_SAFE_CLOSURE_AA : OP_CLOSURE_AA));
                                set_opt1_lambda(code, f);
                                return(goto_eval);
                            }
                            break;

                        case T_CLOSURE_STAR:
                            return(fixup_closure_star_aa(sc, f, code));
                            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_AA));

                        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, OP_S_AA));
                }

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
cmpq $0x0, 0x40(%rsp)
jne 0x126909
movq 0x48(%rsp), %rdi
callq 0x15ce10
movl %eax, 0x54(%rsp)
jmp 0x126cc0
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x38(%rsp)
movq 0xefb73(%rip), %rcx     # 0x216490
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x28(%rax)
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rcx
andq $-0x40001, %rcx         # imm = 0xFFFBFFFF
movq %rcx, (%rax)
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x8(%rdi), %rdx
callq 0x164800
movq 0x40(%rsp), %rax
movzbl (%rax), %eax
addl $-0x15, %eax
movl %eax, %ecx
movq %rcx, 0x20(%rsp)
subl $0x1e, %eax
ja 0x126c17
movq 0x20(%rsp), %rax
leaq 0xb9a42(%rip), %rcx     # 0x1e03c0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x40(%rsp), %rax
cmpq $0x2, 0x18(%rax)
jg 0x12699f
movq 0x40(%rsp), %rax
cmpq $0x2, 0x28(%rax)
jge 0x1269a4
jmp 0x126c19
jmp 0x1269a6
jmp 0x1269a8
movq 0x38(%rsp), %rax
movzwl (%rax), %ecx
orl $0x800, %ecx            # imm = 0x800
movw %cx, (%rax)
movq 0x40(%rsp), %rax
movq (%rax), %rdx
andq $0x200000, %rdx         # imm = 0x200000
movl $0x12a, %eax            # imm = 0x12A
movl $0x6e, %ecx
cmpq $0x0, %rdx
cmovnel %ecx, %eax
movw %ax, %cx
movq 0x38(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x1269e7
movq 0x40(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x38(%rsp), %rax
movzwl 0x6(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0x6(%rax)
jmp 0x126a19
movl $0x5, 0x54(%rsp)
jmp 0x126cc0
movq 0x40(%rsp), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
jne 0x126bdb
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x15cd60
cmpl $0x2, %eax
jne 0x126bdb
movl $0x0, 0x28(%rsp)
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x48(%rsp), %rcx
cmpq 0x110(%rcx), %rax
sete %al
andb $0x1, %al
movb %al, 0x2f(%rsp)
movq 0x40(%rsp), %rax
movzwl (%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, 0x2e(%rsp)
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0x15cec0
testb $0x1, %al
jne 0x126abc
jmp 0x126ac4
movl $0x1, 0x28(%rsp)
testb $0x1, 0x2f(%rsp)
je 0x126b98
testb $0x1, 0x2e(%rsp)
je 0x126b81
movq 0x48(%rsp), %rdi
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0x15cfb0
testb $0x1, %al
jne 0x126af3
jmp 0x126b45
movq 0x48(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rdx
callq 0x15d020
movq 0x38(%rsp), %rax
movzwl (%rax), %ecx
orl $0x800, %ecx            # imm = 0x800
movw %cx, (%rax)
movl 0x28(%rsp), %eax
addl $0x106, %eax            # imm = 0x106
movw %ax, %cx
movq 0x38(%rsp), %rax
movw %cx, 0x4(%rax)
movq 0x40(%rsp), %rax
movq (%rax), %rcx
orq $0x500, %rcx            # imm = 0x500
movq %rcx, (%rax)
jmp 0x126b7f
jmp 0x126b47
movq 0x38(%rsp), %rax
movzwl (%rax), %ecx
orl $0x800, %ecx            # imm = 0x800
movw %cx, (%rax)
movl 0x28(%rsp), %eax
addl $0x104, %eax            # imm = 0x104
movw %ax, %cx
movq 0x38(%rsp), %rax
movw %cx, 0x4(%rax)
movq 0x40(%rsp), %rax
movq (%rax), %rcx
andq $-0x101, %rcx           # imm = 0xFEFF
movq %rcx, (%rax)
jmp 0x126b96
movl 0x28(%rsp), %eax
addl $0x100, %eax            # imm = 0x100
movw %ax, %cx
movq 0x38(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x126bc0
movl 0x28(%rsp), %eax
movb 0x2e(%rsp), %sil
movl $0xfe, %ecx
movl $0x102, %edx            # imm = 0x102
testb $0x1, %sil
cmovnel %edx, %ecx
addl %ecx, %eax
movw %ax, %cx
movq 0x38(%rsp), %rax
movw %cx, 0x4(%rax)
movq 0x40(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x18(%rax)
movl $0x5, 0x54(%rsp)
jmp 0x126cc0
jmp 0x126c19
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x1648e0
movl %eax, 0x54(%rsp)
jmp 0x126cc0
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
movl $0x175, %edx            # imm = 0x175
callq 0x15d0d0
movl %eax, 0x54(%rsp)
jmp 0x126cc0
jmp 0x126c19
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
jne 0x126ca8
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0xfc80
movzbl (%rax), %eax
cmpl $0x20, %eax
je 0x126ca8
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x48(%rsp), %rax
movq 0x1958(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x48(%rsp), %rdi
leaq 0xc9867(%rip), %rsi     # 0x1f04dd
movl $0x14, %edx
callq 0xb880
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdx
callq 0xb830
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
movl $0x16f, %edx            # imm = 0x16F
callq 0x15d0d0
movl %eax, 0x54(%rsp)
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopl (%rax)