// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: b_pp_ok
static bool b_pp_ok(s7_scheme *sc, opt_info *opc, s7_pointer s_func, s7_pointer car_x, s7_pointer arg1, s7_pointer arg2, bool bpf_case)
                {
                    int32_t cur_index;
                    cur_index = sc->pc;
                    /* v[3] is set when we get here */

                    if ((is_symbol(arg1)) &&
                            (is_symbol(arg2)))
                    {
                        opc->v[1].p = opt_simple_symbol(sc, arg1);
                        opc->v[2].p = opt_simple_symbol(sc, arg2);
                        if ((opc->v[1].p) &&
                                (opc->v[2].p))
                        {
                            opc->v[0].fb = (bpf_case) ? opt_b_pp_ss : ((opc->v[3].b_7pp_f == lt_b_7pp) ? opt_lt_b_7pp_ss : opt_b_7pp_ss);
                            return(oo_set_type_2(opc, 4, 1, 2, OO_P, OO_P));
                        }
                    }
                    if (is_symbol(arg1))
                    {
                        opc->v[1].p = opt_simple_symbol(sc, arg1);
                        if (!opc->v[1].p)
                            return(return_false(sc, car_x, __func__, __LINE__));
                        if ((!is_symbol(arg2)) &&
                                (!is_pair(arg2)))
                        {
                            opc->v[2].p = arg2;
                            opc->v[0].fb = (bpf_case) ? opt_b_pp_sc : opt_b_7pp_sc;
                            return(oo_set_type_1(opc, 4, 1, OO_P));
                        }
                        if (cell_optimize(sc, cddr(car_x)))
                        {
                            if (!b_pp_sf_combinable(sc, opc, bpf_case))
                            {
                                opc->v[0].fb = (bpf_case) ? opt_b_pp_sf : opt_b_7pp_sf;
                                return(oo_set_type_1(opc, 4, 1, OO_P));
                            }
                            oo_check(sc, opc);
                            return(true);
                        }
                        pc_fallback(sc, cur_index);
                    }
                    else
                    {
                        if ((is_symbol(arg2)) &&
                                (is_pair(arg1)))
                        {
                            if (cell_optimize(sc, cdr(car_x)))
                            {
                                opc->v[1].p = symbol_to_slot(sc, arg2);
                                if ((!is_slot(opc->v[1].p)) ||
                                        (has_methods(slot_value(opc->v[1].p))))
                                    return(return_false(sc, car_x, __func__, __LINE__));
                                opc->v[0].fb = (bpf_case) ? opt_b_pp_fs : opt_b_7pp_fs;
                                return(oo_set_type_1(opc, 4, 1, OO_P));
                            }
                            /* return(return_false(sc, car_x, __func__, __LINE__)); */
                            pc_fallback(sc, cur_index);
                        }
                    }
                    if ((cell_optimize(sc, cdr(car_x))) &&
                            (cell_optimize(sc, cddr(car_x))))
                    {
                        if (b_pp_ff_combinable(sc, opc, bpf_case))
                            return(true);
                        opc->v[0].fb = (bpf_case) ? opt_b_pp_ff : opt_b_7pp_ff;
                        if (s7_b_pp_direct_function(s_func))
                        {
                            s7_pointer call_sig, arg1_type, arg2_type;
                            call_sig = c_function_signature(s_func);
                            arg1_type = opt_arg_type(sc, cdr(car_x));
                            arg2_type = opt_arg_type(sc, cddr(car_x));
                            if ((cadr(call_sig) == arg1_type) &&                   /* not car(arg1_type) here: (string>? (string) (read-line)) */
                                    (caddr(call_sig) == arg2_type))
                            {
                                opc->v[0].fb = opt_b_pp_ff;
                                opc->v[3].b_pp_f = s7_b_pp_direct_function(s_func);
                                return(oo_set_type_0(opc, 4));
                            }
                        }
                        return(oo_set_type_0(opc, 4));
                    }
                    return(return_false(sc, car_x, __func__, __LINE__));
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r13
movq %rcx, %rbx
movq %rdx, 0x10(%rsp)
movq %rsi, %r15
movq %rdi, %r14
movl 0x2258(%rdi), %r12d
movb (%r8), %al
cmpb $0xa, %al
jne 0xaad1f
movq %r8, %rbp
cmpb $0xa, (%r13)
jne 0xaac92
movl %r12d, 0xc(%rsp)
movq 0x8(%r14), %rdi
movq %rbp, %rsi
callq 0xa56a4
movq %rax, %r12
movq %rax, 0x8(%r15)
movq 0x8(%r14), %rdi
movq %r13, %rsi
callq 0xa56a4
movq %r15, %rdx
movq %rax, 0x10(%r15)
testq %r12, %r12
sete %cl
testq %rax, %rax
sete %al
orb %cl, %al
je 0xaae66
movb (%rbp), %al
cmpb $0xa, %al
movq %rdx, %r15
movl 0xc(%rsp), %r12d
jne 0xaad1f
movq 0x8(%r14), %rdi
movq %rbp, %rsi
callq 0xa56a4
movq %rax, 0x8(%r15)
testq %rax, %rax
je 0xaae5f
movzbl (%r13), %eax
cmpl $0x1, %eax
je 0xaacbe
cmpl $0xa, %eax
jne 0xaae76
movq %rbx, %rbp
movq 0x10(%rbx), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0xa2000
testb %al, %al
je 0xaad9e
movl 0x2258(%r14), %eax
cmpl $0x2, %eax
jl 0xaad0c
leal -0x2(%rax), %ecx
cmpq %r15, 0x2260(%r14,%rcx,8)
jne 0xaad0c
decl %eax
movq 0x2260(%r14,%rax,8), %rax
leaq 0xf2e(%rip), %rcx       # 0xabc31
cmpq %rcx, (%rax)
je 0xaafa3
leaq 0xd56(%rip), %rax       # 0xaba69
leaq 0xd93(%rip), %rcx       # 0xabaad
jmp 0xaae88
cmpb $0x1, %al
movq %rbx, %rbp
jne 0xaada5
cmpb $0xa, (%r13)
jne 0xaada5
movq 0x10(%rbp), %rsi
movq %r14, %rdi
callq 0xa2000
testb %al, %al
je 0xaad9e
movq 0x8(%r14), %rcx
movq 0x18(%rcx), %rsi
movq 0x20(%r13), %rdx
movl $0x18, %eax
cmpq %rdx, %rsi
je 0xaad6b
jle 0xaad62
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rsi
cmpq %rsi, %rdx
jl 0xaad55
cmpq %rdx, %rsi
jne 0xaaeea
movq (%r13,%rax), %rdx
movq %rdx, 0x8(%r15)
cmpb $0x20, (%rdx)
jne 0xaae5f
movq 0x10(%rdx), %rax
testb $0x40, 0x3(%rax)
jne 0xaae5f
leaq 0xd61(%rip), %rax       # 0xabaf3
leaq 0xd9b(%rip), %rcx       # 0xabb34
jmp 0xaae88
movl %r12d, 0x2258(%r14)
movq 0x10(%rbp), %rsi
movq %r14, %rdi
callq 0xa2000
testb %al, %al
je 0xaae5f
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0xa2000
testb %al, %al
je 0xaae5f
movl 0x2258(%r14), %eax
cmpl $0x3, %eax
jl 0xaae14
leal -0x3(%rax), %ecx
cmpq %r15, 0x2260(%r14,%rcx,8)
jne 0xaae14
leal -0x2(%rax), %ecx
movq 0x2260(%r14,%rcx,8), %rcx
leaq 0xe35(%rip), %rdx       # 0xabc31
cmpq %rdx, (%rcx)
jne 0xaae14
decl %eax
movq 0x2260(%r14,%rax,8), %rax
cmpq %rdx, (%rax)
je 0xaafc3
leaq 0xd5d(%rip), %rbx       # 0xabb78
leaq 0xdb1(%rip), %rax       # 0xabbd3
cmpb $0x0, 0x50(%rsp)
cmovneq %rbx, %rax
movq %rax, (%r15)
movq 0x10(%rsp), %r12
cmpb $0x30, (%r12)
jb 0xab056
movq 0x8(%r12), %rax
movq 0x20(%rax), %rcx
testq %rcx, %rcx
je 0xab056
cmpl $0x1f, (%rcx)
je 0xaaf17
movq 0x10(%rcx), %rcx
jmp 0xaae47
xorl %eax, %eax
jmp 0xab060
cmpb $0x0, 0x50(%rsp)
je 0xaaeaf
leaq 0x539(%rip), %rax       # 0xab3ad
jmp 0xaaecc
movq %r13, 0x10(%r15)
leaq 0xbbd(%rip), %rax       # 0xaba3e
leaq 0xbc8(%rip), %rcx       # 0xaba50
cmpb $0x0, 0x50(%rsp)
cmovneq %rax, %rcx
movq %rcx, (%r15)
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x60(%r15)
movl $0x0, 0x70(%r15)
jmp 0xab05e
leaq -0x215ae(%rip), %rax    # 0x89908
cmpq %rax, 0x18(%rdx)
leaq 0x51f(%rip), %rcx       # 0xab3e0
leaq 0x4fb(%rip), %rax       # 0xab3c3
cmoveq %rcx, %rax
movq %rax, (%rdx)
movabsq $0x200000004, %rax      # imm = 0x200000004
movq %rax, 0x60(%rdx)
movq $0x0, 0x70(%rdx)
jmp 0xab05e
movl $0x10, %eax
cmpb $0x1c, (%rcx)
jne 0xaad6b
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
je 0xaaf11
cmpq %r13, 0x8(%rdx)
je 0xaad70
movq 0x18(%rdx), %rdx
jmp 0xaaefc
movq 0x10(%rcx), %rcx
jmp 0xaaeef
cmpq $0x0, 0x8(%rcx)
je 0xab056
movq 0x38(%rax), %r13
movq 0x10(%rbp), %rsi
movq %r14, %rdi
callq 0xa844a
movq %rbp, %rcx
movq %r15, %rbp
movq %rax, %r15
movq 0x10(%rcx), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0xa844a
movq 0x10(%r13), %rcx
cmpq %r15, 0x8(%rcx)
movq %rbp, %r15
jne 0xab056
movq 0x10(%rcx), %rcx
cmpq %rax, 0x8(%rcx)
jne 0xab056
movq %rbx, (%r15)
cmpb $0x30, (%r12)
jb 0xab050
movq 0x8(%r12), %rax
movq 0x20(%rax), %rcx
testq %rcx, %rcx
je 0xab050
xorl %eax, %eax
cmpl $0x1f, (%rcx)
je 0xab06f
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0xaaf8c
jmp 0xab052
movq 0x8(%rax), %rcx
movq %rcx, 0x10(%r15)
movq 0x10(%rax), %rax
movq %rax, 0x20(%r15)
cmpb $0x0, 0x50(%rsp)
je 0xab011
leaq 0xc82(%rip), %rax       # 0xabc43
jmp 0xab02e
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%r15)
movq 0x10(%rcx), %rcx
movq %rcx, 0x20(%r15)
movq 0x8(%rax), %rcx
movq %rcx, 0x10(%r15)
movq 0x10(%rax), %rax
movq %rax, 0x28(%r15)
leaq 0xd0b(%rip), %rax       # 0xabcf5
leaq 0xd41(%rip), %rcx       # 0xabd32
cmpb $0x0, 0x50(%rsp)
cmovneq %rax, %rcx
movq %rcx, (%r15)
addl $-0x2, 0x2258(%r14)
movabsq $0x200000006, %rax      # imm = 0x200000006
jmp 0xab042
leaq -0x72328(%rip), %rax    # 0x38cf0
cmpq %rax, 0x18(%r15)
leaq 0xc54(%rip), %rcx       # 0xabc77
leaq 0xc92(%rip), %rax       # 0xabcbc
cmoveq %rcx, %rax
movq %rax, (%r15)
decl 0x2258(%r14)
movabsq $0x200000005, %rax      # imm = 0x200000005
movq %rax, 0x60(%r15)
movq $0x0, 0x70(%r15)
jmp 0xab05e
xorl %eax, %eax
movq %rax, 0x18(%r15)
movq $0x4, 0x60(%r15)
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rcx), %rax
jmp 0xab052