// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x78, %rsp
movb 0x80(%rsp), %al
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movq %rdx, 0x58(%rsp)
movq %rcx, 0x50(%rsp)
movq %r8, 0x48(%rsp)
movq %r9, 0x40(%rsp)
andb $0x1, %al
movb %al, 0x3f(%rsp)
movq 0x68(%rsp), %rax
movl 0x2258(%rax), %eax
movl %eax, 0x38(%rsp)
movq 0x48(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
jne 0xf9d31
movq 0x40(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
jne 0xf9d31
movq 0x68(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0xefdf0
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x68(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0xefdf0
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x60(%rsp), %rax
cmpq $0x0, 0x8(%rax)
je 0xf9d2f
movq 0x60(%rsp), %rax
cmpq $0x0, 0x10(%rax)
je 0xf9d2f
testb $0x1, 0x3f(%rsp)
je 0xf9cbb
leaq 0x91c(%rip), %rax       # 0xfa5d0
movq %rax, 0x18(%rsp)
jmp 0xf9ce5
movq 0x60(%rsp), %rax
movq 0x18(%rax), %rdx
leaq -0x3e8bb(%rip), %rsi    # 0xbb410
leaq 0x92e(%rip), %rax       # 0xfa600
leaq 0x967(%rip), %rcx       # 0xfa640
cmpq %rsi, %rdx
cmoveq %rcx, %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rcx
movq 0x60(%rsp), %rax
movq %rcx, (%rax)
movq 0x60(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %edx
movl $0x2, %ecx
xorl %r9d, %r9d
leaq 0xf5663(%rip), %rax     # 0x1ef373
movl %r9d, %r8d
movq %rax, (%rsp)
movl $0xe9b4, 0x8(%rsp)      # imm = 0xE9B4
callq 0xe54b0
andb $0x1, %al
movb %al, 0x77(%rsp)
jmp 0xfa0fb
jmp 0xf9d31
movq 0x48(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
jne 0xf9e8f
movq 0x68(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0xefdf0
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x60(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0xf9d73
movb $0x0, 0x77(%rsp)
jmp 0xfa0fb
movq 0x40(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
je 0xf9dea
movq 0x40(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0xf9dea
movq 0x40(%rsp), %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x10(%rax)
movb 0x3f(%rsp), %dl
leaq 0x173a(%rip), %rcx      # 0xfb4e0
leaq 0x1703(%rip), %rax      # 0xfb4b0
testb $0x1, %dl
cmovneq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, (%rax)
movq 0x60(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %edx
xorl %ecx, %ecx
leaq 0xf559f(%rip), %r8      # 0x1ef373
movl $0xe9c1, %r9d           # imm = 0xE9C1
callq 0xe4950
andb $0x1, %al
movb %al, 0x77(%rsp)
jmp 0xfa0fb
movq 0x68(%rsp), %rdi
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
callq 0xe9db0
testb $0x1, %al
jne 0xf9e07
jmp 0xf9e7c
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rsi
movb 0x3f(%rsp), %al
andb $0x1, %al
movzbl %al, %edx
callq 0xfb510
testb $0x1, %al
jne 0xf9e72
movb 0x3f(%rsp), %dl
leaq 0x18c2(%rip), %rcx      # 0xfb6f0
leaq 0x183b(%rip), %rax      # 0xfb670
testb $0x1, %dl
cmovneq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, (%rax)
movq 0x60(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %edx
xorl %ecx, %ecx
leaq 0xf5517(%rip), %r8      # 0x1ef373
movl $0xe9c8, %r9d           # imm = 0xE9C8
callq 0xe4950
andb $0x1, %al
movb %al, 0x77(%rsp)
jmp 0xfa0fb
movb $0x1, 0x77(%rsp)
jmp 0xfa0fb
movq 0x68(%rsp), %rdi
movl 0x38(%rsp), %esi
callq 0xe59a0
jmp 0xf9f7e
movq 0x40(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
jne 0xf9f7c
movq 0x48(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0xf9f7c
movq 0x68(%rsp), %rdi
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0xe9db0
testb $0x1, %al
jne 0xf9ecd
jmp 0xf9f6e
movq 0x68(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0xfc80
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
cmpl $0x20, %eax
jne 0xf9f15
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
je 0xf9f1f
movb $0x0, 0x77(%rsp)
jmp 0xfa0fb
movb 0x3f(%rsp), %dl
leaq 0x18d6(%rip), %rcx      # 0xfb800
leaq 0x184f(%rip), %rax      # 0xfb780
testb $0x1, %dl
cmovneq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, (%rax)
movq 0x60(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %edx
xorl %ecx, %ecx
leaq 0xf541b(%rip), %r8      # 0x1ef373
movl $0xe9db, %r9d           # imm = 0xE9DB
callq 0xe4950
andb $0x1, %al
movb %al, 0x77(%rsp)
jmp 0xfa0fb
movq 0x68(%rsp), %rdi
movl 0x38(%rsp), %esi
callq 0xe59a0
jmp 0xf9f7e
movq 0x68(%rsp), %rdi
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0xe9db0
testb $0x1, %al
jne 0xf9f9a
jmp 0xfa0f6
movq 0x68(%rsp), %rdi
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
callq 0xe9db0
testb $0x1, %al
jne 0xf9fba
jmp 0xfa0f6
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rsi
movb 0x3f(%rsp), %al
andb $0x1, %al
movzbl %al, %edx
callq 0xfb890
testb $0x1, %al
jne 0xf9fd8
jmp 0xf9fe2
movb $0x1, 0x77(%rsp)
jmp 0xfa0fb
movb 0x3f(%rsp), %dl
leaq 0x1af3(%rip), %rcx      # 0xfbae0
leaq 0x1a2c(%rip), %rax      # 0xfba20
testb $0x1, %dl
cmovneq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, (%rax)
movq 0x58(%rsp), %rdi
callq 0xfbbb0
cmpq $0x0, %rax
je 0xfa0d3
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x38(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x68(%rsp), %rdi
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0xf5990
movq %rax, 0x28(%rsp)
movq 0x68(%rsp), %rdi
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
callq 0xf5990
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
cmpq 0x28(%rsp), %rax
jne 0xfa0d1
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
cmpq 0x20(%rsp), %rax
jne 0xfa0d1
movq 0x60(%rsp), %rax
leaq 0x198b(%rip), %rcx      # 0xfba20
movq %rcx, (%rax)
movq 0x58(%rsp), %rdi
callq 0xfbbb0
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x60(%rsp), %rdi
movl $0x4, %esi
leaq 0xf52b4(%rip), %rdx     # 0x1ef373
movl $0xe9f2, %ecx           # imm = 0xE9F2
callq 0xe4820
andb $0x1, %al
movb %al, 0x77(%rsp)
jmp 0xfa0fb
jmp 0xfa0d3
movq 0x60(%rsp), %rdi
movl $0x4, %esi
leaq 0xf528f(%rip), %rdx     # 0x1ef373
movl $0xe9f5, %ecx           # imm = 0xE9F5
callq 0xe4820
andb $0x1, %al
movb %al, 0x77(%rsp)
jmp 0xfa0fb
movb $0x0, 0x77(%rsp)
movb 0x77(%rsp), %al
andb $0x1, %al
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)