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

                    if ((s1) &&
                            (!is_slot(symbol_to_slot(sc, cadr(code)))))
                        return(fall_through);
                    if ((s2) &&
                            (!is_slot(symbol_to_slot(sc, caddr(code)))))
                        return(fall_through);

                    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:
                            if (is_safe_procedure(f))
                            {
                                if (s1)
                                {
                                    if (s2)
                                    {
                                        set_optimize_op(code, OP_SAFE_C_SS);
                                        set_opt2_sym(cdr(code), caddr(code));
                                    }
                                    else
                                    {
                                        set_opt2_con(cdr(code), caddr(code));
                                        set_optimize_op(code, OP_SAFE_C_SC);
                                    }
                                }
                                else
                                {
                                    if (s2)
                                    {
                                        set_opt1_con(cdr(code), (is_pair(cadr(code))) ? cadadr(code) : cadr(code));
                                        set_optimize_op(code, OP_SAFE_C_CS);
                                    }
                                    else set_optimize_op(code, OP_SAFE_C_D);
                                }
                            }
                            else
                            {
                                set_optimize_op(code, OP_C_FX);
                                annotate_args(sc, cdr(code), sc->envir);
                            }
                            set_opt3_arglen(code, small_int(2));
                            set_c_function(code, f);
                            return(goto_eval);

                        case T_CLOSURE:
                            if (has_methods(f)) break;
                            if (((s1) || (s2)) &&
                                    (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 ((s1) && (s2))
                                {
                                    if (one_form)
                                    {
                                        if (safe_case)
                                        {
                                            if (is_fxable(sc, car(body)))
                                            {
                                                annotate_arg(sc, body, sc->envir);
                                                fx_tree(sc, body, car(closure_args(f)), cadr(closure_args(f)));
                                                set_safe_optimize_op(code, hop + OP_SAFE_CLOSURE_SS_A);
                                                set_closure_has_fx(f);
                                            }
                                            else
                                            {
                                                set_safe_optimize_op(code, hop + OP_SAFE_CLOSURE_SS_P);
                                                closure_clear_multiform(f);
                                            }
                                        }
                                        else set_optimize_op(code, hop + OP_CLOSURE_SS_P);
                                    }
                                    else set_optimize_op(code, hop + ((safe_case) ? OP_SAFE_CLOSURE_SS : OP_CLOSURE_SS));
                                }
                                else
                                {
                                    if (one_form)
                                    {
                                        if (safe_case)
                                            set_safe_optimize_op(code, hop + ((s1) ? OP_SAFE_CLOSURE_SC_P : OP_SAFE_CLOSURE_CS));
                                        else set_optimize_op(code, hop + ((s1) ? OP_CLOSURE_SC_P : OP_CLOSURE_CS));
                                    }
                                    else set_optimize_op(code, hop + ((safe_case) ? ((s1) ? OP_SAFE_CLOSURE_SC : OP_SAFE_CLOSURE_CS) : ((s1) ? OP_CLOSURE_SC : OP_CLOSURE_CS)));
                                }
                                if (s2)
                                    set_opt2_sym(code, caddr(code));
                                else set_opt2_con(code, caddr(code));
                                set_opt1_lambda(code, f);
                                return(goto_eval);
                            }
                            break;

                        case T_CLOSURE_STAR:
                            if ((closure_star_arity_to_int(sc, f) != 0) &&
                                    (closure_star_arity_to_int(sc, f) != 1))
                            {
                                annotate_args(sc, cdr(code), sc->envir);
                                return(fixup_closure_star_aa(sc, f, code));
                            }
                            break;

                        case T_INT_VECTOR: case T_FLOAT_VECTOR: case T_VECTOR: case T_BYTE_VECTOR:
                            annotate_args(sc, cdr(code), sc->envir);
                            return(fixup_unknown_op(code, f, OP_IMPLICIT_VECTOR_REF_AA));

                        case T_MACRO:
                            return(fixup_unknown_op(code, f, OP_MACRO_D));
                            /* T_MACRO -> MACRO_D? throughout unknown* */

                        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));

                    annotate_args(sc, cdr(code), sc->envir);
                    return(fixup_unknown_op(code, f, OP_S_AA));
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r15
pushq $0x2
popq %rbp
testq %rsi, %rsi
je 0x97b97
movq (%r15), %rax
movq %rax, (%rsp)
movq 0x10(%rax), %r12
movq 0x8(%r12), %r13
movb (%r13), %al
movb %al, 0x13(%rsp)
cmpb $0xa, %al
jne 0x97ba4
testb $-0x80, 0x6(%r13)
sete %cl
jmp 0x97ba6
movq %r15, %rdi
callq 0xa25b8
jmp 0x97ea0
xorl %ecx, %ecx
movq 0x10(%r12), %rax
movq 0x8(%rax), %r14
cmpb $0xa, (%r14)
jne 0x97bbf
testb $-0x80, 0x6(%r14)
sete %bl
jmp 0x97bc1
xorl %ebx, %ebx
movl %ecx, 0x14(%rsp)
testb %cl, %cl
movq %rsi, 0x8(%rsp)
je 0x97be7
movq %r15, %rdi
movq %r13, %rsi
callq 0xb00b
movq 0x8(%rsp), %rsi
cmpb $0x20, (%rax)
jne 0x97ea0
testb %bl, %bl
je 0x97c04
movq %r15, %rdi
movq %r14, %rsi
callq 0xb00b
movq 0x8(%rsp), %rsi
cmpb $0x20, (%rax)
jne 0x97ea0
movzbl (%rsi), %eax
leal -0x28(%rax), %ecx
cmpl $0xb, %ecx
ja 0x97c93
leaq 0x3cb82(%rip), %rax     # 0xd479c
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
cmpq $0x2, 0x18(%rsi)
jg 0x97dcc
cmpq $0x2, 0x28(%rsi)
jl 0x97dcc
testb $0x20, 0x2(%rsi)
jne 0x97cdd
movq (%rsp), %rbx
movw $0x12a, 0x4(%rbx)       # imm = 0x12A
movq 0x8(%r15), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0xa5dd4
movq 0x8(%rsp), %rsi
movq 0x7dcf8(%rip), %rax     # 0x115960
movq 0x10(%rbx), %rcx
movq %rax, 0x28(%rcx)
movq 0x10(%rbx), %rax
andq $-0x40001, (%rax)       # imm = 0xFFFBFFFF
movq %rsi, 0x18(%rbx)
movq 0x10(%rsi), %rax
movq %rax, 0x20(%rbx)
orb $0x4, 0x6(%rbx)
pushq $0x5
popq %rbp
jmp 0x97ea0
addl $-0x15, %eax
cmpl $0x4, %eax
jae 0x97dcc
movq 0x8(%r15), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0xa5dd4
movq 0x8(%rsp), %rdx
movq (%rsp), %rsi
movw $0x175, 0x4(%rsi)       # imm = 0x175
movzbl (%rdx), %eax
leaq 0x89f19(%rip), %rcx     # 0x121be0
pushq $0x5
popq %rbp
cmpb $0x1, (%rax,%rcx)
jne 0x97ea0
movq %rdx, 0x18(%rsi)
jmp 0x97ea0
cmpb $0x0, 0x14(%rsp)
je 0x97eb1
testb %bl, %bl
je 0x97eff
movq (%rsp), %rbx
movw $0x6, 0x4(%rbx)
movq 0x10(%r12), %rax
movq 0x8(%rax), %rax
movq %rax, 0x20(%r12)
jmp 0x97c61
movq (%rsp), %rdx
movw $0x169, 0x4(%rdx)       # imm = 0x169
jmp 0x97e89
testb $0x40, 0x3(%rsi)
jne 0x97dcc
movl 0x14(%rsp), %eax
orb %bl, %al
testb $0x1, %al
je 0x97dcc
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movl %ebx, %r12d
callq 0xa2581
movq 0x8(%rsp), %rcx
cmpl $0x2, %eax
jne 0x97dcc
movq 0x10(%rcx), %r14
movq 0x10(%r14), %r13
movq 0x110(%r15), %rbp
movzwl (%rcx), %ebx
movq (%rsp), %rax
movq 0x8(%rax), %rsi
movq %r15, %rdi
callq 0xa263c
movzbl %al, %edi
movl 0x14(%rsp), %ecx
andb %cl, %r12b
cmpb $0x1, %r12b
jne 0x97f22
cmpq %rbp, %r13
je 0x97f74
shrl $0xa, %ebx
andl $0x4, %ebx
leal (%rbx,%rdi), %eax
addl $0xdc, %eax
jmp 0x97f4e
movq %r15, %rdi
movq 0x8(%rsp), %rsi
callq 0xa274b
testl %eax, %eax
je 0x97dcc
movq %r15, %rdi
movq 0x8(%rsp), %rsi
callq 0xa274b
movq 0x8(%rsp), %rbx
cmpl $0x1, %eax
jne 0x97ed8
movq (%rsp), %rbx
movq 0x8(%rbx), %rsi
cmpb $0xa, (%rsi)
jne 0x97e4b
movq %r15, %rdi
callq 0xb00b
cmpb $0x20, (%rax)
je 0x97e4b
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 0x4c753(%rip), %rcx     # 0xe4565
movq %rcx, 0x10(%rax)
movq $0x14, 0x8(%rax)
movq 0x8(%rbx), %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 0x2cdc0
movq 0x10(%rbx), %rsi
movq 0x8(%r15), %rdx
movq %r15, %rdi
callq 0xa5dd4
movw $0x16f, 0x4(%rbx)       # imm = 0x16F
movq 0x8(%rsp), %rdx
movzbl (%rdx), %eax
leaq 0x89d70(%rip), %rcx     # 0x121be0
pushq $0x5
popq %rbp
cmpb $0x1, (%rax,%rcx)
jne 0x97ea0
movq %rdx, 0x18(%rbx)
jmp 0x97ea0
movq (%rsp), %rdx
movw $0x168, 0x4(%rdx)       # imm = 0x168
movzbl (%rsi), %eax
leaq 0x89d4d(%rip), %rcx     # 0x121be0
pushq $0x5
popq %rbp
cmpb $0x1, (%rax,%rcx)
jne 0x97ea0
movq %rsi, 0x18(%rdx)
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb %bl, %bl
je 0x97f13
cmpb $0x1, 0x13(%rsp)
jne 0x97ec4
movq 0x10(%r13), %rax
movq 0x8(%rax), %r13
movq (%rsp), %rbx
movq %r13, 0x18(%r12)
movw $0xa, 0x4(%rbx)
jmp 0x97c61
movq (%rsp), %r14
movq 0x10(%r14), %rsi
movq 0x8(%r15), %rdx
movq %r15, %rdi
callq 0xa5dd4
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0xa5e2e
jmp 0x97c8b
movq %r14, 0x20(%r12)
movq (%rsp), %rbx
movw $0x8, 0x4(%rbx)
jmp 0x97c61
movq (%rsp), %rbx
movw $0x2, 0x4(%rbx)
jmp 0x97c61
cmpq %rbp, %r13
je 0x97f8a
testb %cl, %cl
movl $0xea, %eax
movl %ecx, %edx
movl $0xf0, %ecx
cmovnel %eax, %ecx
xorb $0x1, %dl
btl $0xc, %ebx
movzbl %dl, %eax
leal 0xe6(,%rax,8), %eax
cmovbl %ecx, %eax
orl %edi, %eax
movq (%rsp), %rsi
movw %ax, 0x4(%rsi)
movq 0x8(%rsp), %rdx
movq 0x10(%rsi), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x20(%rsi)
movq %rdx, 0x18(%rsi)
jmp 0x97c8b
btl $0xc, %ebx
jb 0x97fb0
orl $0xde, %edi
movq (%rsp), %rsi
movw %di, 0x4(%rsi)
jmp 0x97f56
btl $0xc, %ebx
movq 0x8(%rsp), %rdx
jb 0x9800f
testb %cl, %cl
movl $0xe8, %eax
movl $0xee, %ecx
cmovnel %eax, %ecx
orl %edi, %ecx
movq (%rsp), %rsi
movw %cx, 0x4(%rsi)
jmp 0x97f5b
movq %rdi, %r12
movq 0x8(%r14), %rsi
movq %r15, %rdi
callq 0xa2689
testb %al, %al
je 0x9802e
movq 0x8(%r15), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0xa26b2
movq 0x8(%rsp), %rbx
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdx
movq %r14, %rdi
callq 0xa26f4
movq %rbx, %rdx
movq (%rsp), %rsi
orb $0x8, 0x1(%rsi)
orl $0xe4, %r12d
movw %r12w, 0x4(%rsi)
orb $0x5, 0x1(%rbx)
jmp 0x97f5b
movq (%rsp), %rsi
orb $0x8, 0x1(%rsi)
xorb $0x1, %cl
movzbl %cl, %eax
leal (%rdi,%rax,4), %eax
addl $0xec, %eax
movw %ax, 0x4(%rsi)
jmp 0x97f5b
movq (%rsp), %rsi
orb $0x8, 0x1(%rsi)
orl $0xe2, %r12d
movw %r12w, 0x4(%rsi)
movq 0x8(%rsp), %rdx
andb $-0x2, 0x1(%rdx)
jmp 0x97f5b