// File: /workspace/github_c_makefile_star2_O1/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, %r12
movq %r8, %rbp
movq %rcx, %r13
movq %rdx, 0x10(%rsp)
movq %rsi, %r15
movq %rdi, %r14
movb 0x50(%rsp), %bl
movl 0x2258(%rdi), %eax
movl %eax, 0xc(%rsp)
cmpb $0xa, (%r8)
jne 0xb1c28
cmpb $0xa, (%r12)
jne 0xb1c28
movq %r14, %rdi
movq %rbp, %rsi
callq 0xac2d6
movq %rax, %rbx
movq %rax, 0x8(%r15)
movq %r14, %rdi
movq %r12, %rsi
callq 0xac2d6
movq %rax, 0x10(%r15)
testq %rbx, %rbx
movb 0x50(%rsp), %bl
sete %cl
testq %rax, %rax
sete %al
orb %cl, %al
je 0xb1e7e
movb (%rbp), %al
cmpb $0xa, %al
jne 0xb1cbc
movq %r14, %rdi
movq %rbp, %rsi
callq 0xac2d6
movq %rax, 0x8(%r15)
testq %rax, %rax
je 0xb1e7a
movzbl (%r12), %eax
cmpl $0x1, %eax
je 0xb1c5e
cmpl $0xa, %eax
jne 0xb1e8b
movq 0x10(%r13), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0xa8bbb
testb %al, %al
je 0xb1d77
movl 0x2258(%r14), %eax
cmpl $0x2, %eax
jl 0xb1ca9
leal -0x2(%rax), %ecx
cmpq %r15, 0x2260(%r14,%rcx,8)
jne 0xb1ca9
decl %eax
movq 0x2260(%r14,%rax,8), %rax
leaq 0xf5c(%rip), %rcx       # 0xb2bfc
cmpq %rcx, (%rax)
je 0xb1f05
leaq 0xd57(%rip), %rax       # 0xb2a07
leaq 0xd94(%rip), %rcx       # 0xb2a4b
jmp 0xb1e9d
cmpb $0x1, %al
jne 0xb1d82
cmpb $0xa, (%r12)
jne 0xb1d82
movq 0x10(%r13), %rsi
movq %r14, %rdi
callq 0xa8bbb
testb %al, %al
je 0xb1d77
movq 0x8(%r14), %rcx
movq 0x18(%rcx), %rsi
movq 0x20(%r12), %rdx
movl $0x18, %eax
cmpq %rdx, %rsi
je 0xb1d45
jle 0xb1d09
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rsi
cmpq %rsi, %rdx
jl 0xb1cfc
cmpq %rdx, %rsi
je 0xb1d45
movl $0x10, %eax
cmpb $0x1c, (%rcx)
jne 0xb1d45
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
sete %dil
je 0xb1d31
cmpq %r12, 0x8(%rdx)
je 0xb1d34
movq 0x18(%rdx), %rdx
jmp 0xb1d1c
movq %rsi, %rdx
testb %dil, %dil
je 0xb1d49
movq 0x10(%rcx), %rcx
cmpb $0x1c, (%rcx)
movq %rdx, %rsi
je 0xb1d18
movq (%r12,%rax), %rdx
movq %rdx, 0x8(%r15)
cmpb $0x20, (%rdx)
jne 0xb1e7a
movq 0x10(%rdx), %rax
testb $0x40, 0x3(%rax)
jne 0xb1e7a
leaq 0xd26(%rip), %rax       # 0xb2a91
leaq 0xd60(%rip), %rcx       # 0xb2ad2
jmp 0xb1e9d
movl 0xc(%rsp), %eax
movl %eax, 0x2258(%r14)
movq 0x10(%r13), %rsi
movq %r14, %rdi
callq 0xa8bbb
testb %al, %al
je 0xb1e7a
movq 0x10(%r13), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0xa8bbb
testb %al, %al
je 0xb1e7a
movl 0x2258(%r14), %eax
cmpl $0x3, %eax
jl 0xb1df1
leal -0x3(%rax), %ecx
cmpq %r15, 0x2260(%r14,%rcx,8)
jne 0xb1df1
leal -0x2(%rax), %ecx
movq 0x2260(%r14,%rcx,8), %rcx
leaq 0xe23(%rip), %rdx       # 0xb2bfc
cmpq %rdx, (%rcx)
jne 0xb1df1
decl %eax
movq 0x2260(%r14,%rax,8), %rax
cmpq %rdx, (%rax)
je 0xb1f55
movl %ebx, %ecx
leaq 0xd1c(%rip), %rbx       # 0xb2b16
leaq 0xd70(%rip), %rax       # 0xb2b71
testb %cl, %cl
cmovneq %rbx, %rax
movq %rax, (%r15)
movq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0xb2bcf
testq %rax, %rax
je 0xb1e70
movq 0x8(%r12), %rax
movq 0x38(%rax), %r12
movq 0x10(%r13), %rsi
movq %r14, %rdi
callq 0xaf307
movq %r15, %rbp
movq %rax, %r15
movq 0x10(%r13), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0xaf307
movq 0x10(%r12), %rcx
movq 0x10(%rsp), %rdi
cmpq %r15, 0x8(%rcx)
movq %rbp, %r15
jne 0xb1e70
movq 0x10(%rcx), %rcx
cmpq %rax, 0x8(%rcx)
jne 0xb1e70
movq %rbx, (%r15)
callq 0xb2bcf
movq %rax, 0x18(%r15)
movq $0x4, 0x60(%r15)
jmp 0xb1ef4
xorl %eax, %eax
jmp 0xb1ef6
testb %bl, %bl
je 0xb1ebe
leaq 0x452(%rip), %rax       # 0xb22db
jmp 0xb1edb
movq %r12, 0x10(%r15)
leaq 0xb46(%rip), %rax       # 0xb29dc
leaq 0xb51(%rip), %rcx       # 0xb29ee
testb %bl, %bl
cmovneq %rax, %rcx
movq %rcx, (%r15)
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x60(%r15)
movl $0x0, 0x70(%r15)
jmp 0xb1ef4
leaq -0x21ee1(%rip), %rax    # 0x8ffe4
cmpq %rax, 0x18(%r15)
leaq 0x43e(%rip), %rcx       # 0xb230e
leaq 0x41a(%rip), %rax       # 0xb22f1
cmoveq %rcx, %rax
movq %rax, (%r15)
movabsq $0x200000004, %rax      # imm = 0x200000004
movq %rax, 0x60(%r15)
movq $0x0, 0x70(%r15)
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rax), %rcx
movq %rcx, 0x10(%r15)
movq 0x10(%rax), %rax
movq %rax, 0x20(%r15)
testb %bl, %bl
je 0xb1f22
leaq 0xcee(%rip), %rax       # 0xb2c0e
jmp 0xb1f3f
leaq -0x76ccd(%rip), %rax    # 0x3b25c
cmpq %rax, 0x18(%r15)
leaq 0xd0e(%rip), %rcx       # 0xb2c42
leaq 0xd4c(%rip), %rax       # 0xb2c87
cmoveq %rcx, %rax
movq %rax, (%r15)
decl 0x2258(%r14)
movabsq $0x200000005, %rax      # imm = 0x200000005
jmp 0xb1ee8
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 0xd44(%rip), %rax       # 0xb2cc0
leaq 0xd7a(%rip), %rcx       # 0xb2cfd
testb %bl, %bl
cmovneq %rax, %rcx
movq %rcx, (%r15)
addl $-0x2, 0x2258(%r14)
movabsq $0x200000006, %rax      # imm = 0x200000006
jmp 0xb1ee8