// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: p_pp_ok
static bool p_pp_ok(s7_scheme *sc, opt_info *opc, s7_pointer s_func, s7_pointer car_x, int32_t pstart)
                {
                    s7_p_pp_t func;

                    func = s7_p_pp_function(s_func);
                    if (func)
                    {
                        s7_pointer slot, sig, checker = NULL;

                        sig = c_function_signature(s_func);
                        if ((is_pair(sig)) &&
                                (is_pair(cdr(sig))) &&
                                (is_symbol(cadr(sig))))
                            checker = cadr(sig);

                        opc->v[3].p_pp_f = func;
                        if (is_symbol(cadr(car_x)))
                        {
                            slot = opt_simple_symbol(sc, cadr(car_x));
                            if (!slot)
                            {
                                pc_fallback(sc, pstart);
                                return(return_false(sc, car_x, __func__, __LINE__));
                            }
                            if ((is_any_vector(slot_value(slot))) &&
                                    (vector_rank(slot_value(slot)) > 1))
                            {
                                pc_fallback(sc, pstart);
                                return(return_false(sc, car_x, __func__, __LINE__));
                            }
                            opc->v[1].p = slot;

                            if ((s7_p_pp_direct_function(s_func)) &&
                                    (checker))
                            {
                                checker = s7_symbol_value(sc, checker);
                                if (s7_apply_function(sc, checker, set_plist_1(sc, slot_value(slot))) == sc->T)
                                    opc->v[3].p_pp_f = s7_p_pp_direct_function(s_func);
                            }
                            if (is_symbol(caddr(car_x)))
                            {
                                opc->v[2].p = opt_simple_symbol(sc, caddr(car_x));
                                if (opc->v[2].p)
                                {
                                    opc->v[0].fp = opt_p_pp_ss;
                                    return(oo_set_type_2(opc, 4, 1, 2, OO_P, OO_P));
                                }
                                pc_fallback(sc, pstart);
                                return(return_false(sc, car_x, __func__, __LINE__));
                            }
                            if ((!is_pair(caddr(car_x))) ||
                                    (is_proper_quote(sc, caddr(car_x))))
                            {
                                opc->v[2].p = (!is_pair(caddr(car_x))) ? caddr(car_x) : cadr(caddr(car_x));
                                opc->v[0].fp = opt_p_pp_sc;
                                return(oo_set_type_1(opc, 4, 1, OO_P));
                            }
                            if (cell_optimize(sc, cddr(car_x)))
                            {
                                opc->v[0].fp = opt_p_pp_sf;
                                opc->v[4].o1 = sc->opts[pstart];
                                opc->v[5].fp = sc->opts[pstart]->v[0].fp;
                                return(oo_set_type_1(opc, 6, 1, OO_P));
                            }
                        }
                        else
                        {
                            if ((!is_pair(cadr(car_x))) ||
                                    (is_proper_quote(sc, cadr(car_x))))
                            {
                                opc->v[1].p = (!is_pair(cadr(car_x))) ? cadr(car_x) : cadadr(car_x);
                                if ((!is_symbol(caddr(car_x))) &&
                                        ((!is_pair(caddr(car_x))) ||
                                         (is_proper_quote(sc, caddr(car_x)))))
                                {
                                    opc->v[2].p = (!is_pair(caddr(car_x))) ? caddr(car_x) : cadr(caddr(car_x));
                                    opc->v[0].fp = opt_p_pp_cc;
                                    return(oo_set_type_0(opc, 4));
                                }
                                if (is_symbol(caddr(car_x)))
                                {
                                    opc->v[2].p = opc->v[1].p;
                                    opc->v[1].p = opt_simple_symbol(sc, caddr(car_x));
                                    if (opc->v[1].p)
                                    {
                                        opc->v[0].fp = opt_p_pp_cs;
                                        return(oo_set_type_1(opc, 4, 1, OO_P));
                                    }
                                    pc_fallback(sc, pstart);
                                    return(return_false(sc, car_x, __func__, __LINE__));
                                }
                            }
                            if (cell_optimize(sc, cdr(car_x)))
                            {
                                if (is_symbol(caddr(car_x)))
                                {
                                    opc->v[1].p = opt_simple_symbol(sc, caddr(car_x));
                                    if (opc->v[1].p)
                                    {
                                        opc->v[0].fp = opt_p_pp_fs;
                                        return(oo_set_type_1(opc, 4, 1, OO_P));
                                    }
                                    pc_fallback(sc, pstart);
                                    return(return_false(sc, car_x, __func__, __LINE__));
                                }
                                if ((!is_pair(caddr(car_x))) ||
                                        (is_proper_quote(sc, caddr(car_x))))
                                {
                                    if (is_t_integer(caddr(car_x)))
                                    {
                                        s7_p_pi_t ifunc;
                                        ifunc = s7_p_pi_function(s_func);
                                        if (ifunc)
                                        {
                                            opc->v[2].i = integer(caddr(car_x));
                                            opc->v[3].p_pi_f = ifunc;
                                            if (!p_pi_fc_combinable(sc, opc))
                                            {
                                                opc->v[0].fp = opt_p_pi_fc;
                                                return(oo_set_type_0(opc, 4));
                                            }
                                            oo_check(sc, opc);
                                            return(true);
                                        }
                                    }
                                    opc->v[2].p = (!is_pair(caddr(car_x))) ? caddr(car_x) : cadr(caddr(car_x));
                                    opc->v[0].fp = opt_p_pp_fc;
                                    return(oo_set_type_0(opc, 4));
                                }
                                if (cell_optimize(sc, cddr(car_x)))
                                {
                                    opc->v[0].fp = opt_p_pp_ff;
                                    return(oo_set_type_0(opc, 4));
                                }
                            }
                        }
                    }
                    pc_fallback(sc, pstart);
                    return(return_false(sc, car_x, __func__, __LINE__));
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebp
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r14
movq %rdx, %rdi
callq 0xb60a8
testq %rax, %rax
je 0xaacd2
movq 0x8(%r13), %rcx
movq 0x38(%rcx), %rcx
cmpb $0x1, (%rcx)
movl %ebp, 0x4(%rsp)
jne 0xaa8cd
movq 0x10(%rcx), %rcx
cmpb $0x1, (%rcx)
jne 0xaa8cd
movq 0x8(%rcx), %rcx
xorl %ebp, %ebp
cmpb $0xa, (%rcx)
cmoveq %rcx, %rbp
jmp 0xaa8cf
xorl %ebp, %ebp
movq %rax, 0x18(%r15)
movq 0x10(%r12), %rax
movq 0x8(%rax), %rsi
movzbl (%rsi), %eax
cmpl $0x1, %eax
je 0xaa9e8
cmpl $0xa, %eax
jne 0xaaa29
movq %r14, %rdi
callq 0xac2d6
testq %rax, %rax
je 0xaab2b
movq %rax, %rbx
movq 0x10(%rax), %rax
movzbl (%rax), %ecx
leaq 0xa830d(%rip), %rdx     # 0x152c20
cmpb $0x1, (%rcx,%rdx)
jne 0xaa931
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xaa931
cmpq $0x2, 0x10(%rax)
jge 0xaab2b
movq %rbx, 0x8(%r15)
movq %r13, %rdi
callq 0xb60d5
testq %rbp, %rbp
je 0xaa988
testq %rax, %rax
je 0xaa988
movq %r14, %rdi
movq %rbp, %rsi
callq 0xaa24
movq 0x10(%rbx), %rcx
movq 0x700(%r14), %rdx
movq %rcx, 0x8(%rdx)
movq 0x700(%r14), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0xbd41
cmpq 0x118(%r14), %rax
jne 0xaa988
movq %r13, %rdi
callq 0xb60d5
movq %rax, 0x18(%r15)
movq 0x10(%r12), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
movzbl (%rsi), %ecx
cmpl $0x1, %ecx
je 0xaab3f
cmpl $0xa, %ecx
movl 0x4(%rsp), %ebp
jne 0xaac26
movq %r14, %rdi
callq 0xac2d6
movq %rax, 0x10(%r15)
testq %rax, %rax
je 0xaab2f
leaq 0xab80(%rip), %rax      # 0xb554a
movq %rax, (%r15)
movabsq $0x200000004, %rax      # imm = 0x200000004
movq %rax, 0x60(%r15)
movq $0x0, 0x70(%r15)
jmp 0xaacca
movq 0x8(%rsi), %rcx
cmpq 0x17b0(%r14), %rcx
movl 0x4(%rsp), %ebp
jne 0xaaaad
movq 0x10(%rsi), %rcx
cmpb $0x1, (%rcx)
jne 0xaaaad
movq 0x10(%rcx), %rcx
cmpq 0x110(%r14), %rcx
jne 0xaaaad
cmpb $0x1, %al
jne 0xaaa2d
movq 0x10(%rsi), %rax
movq 0x8(%rax), %rsi
jmp 0xaaa2d
movl 0x4(%rsp), %ebp
movq %rsi, 0x8(%r15)
movq 0x10(%r12), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %ecx
cmpl $0xa, %ecx
je 0xaaa7b
cmpl $0x1, %ecx
jne 0xaac09
movq 0x8(%rax), %rdx
cmpq 0x17b0(%r14), %rdx
jne 0xaaa76
movq 0x10(%rax), %rdx
cmpb $0x1, (%rdx)
jne 0xaaa76
movq 0x10(%rdx), %rdx
cmpq 0x110(%r14), %rdx
je 0xaabfc
cmpb $0xa, %cl
jne 0xaaaad
movq %rsi, 0x10(%r15)
movq 0x10(%r12), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdi
callq 0xac2d6
movq %rax, 0x8(%r15)
testq %rax, %rax
je 0xaab2f
leaq 0xb688(%rip), %rax      # 0xb6130
jmp 0xaac31
movq 0x10(%r12), %rsi
movq %r14, %rdi
callq 0xa8bbb
movb $0x1, %bl
testb %al, %al
je 0xaabf7
movq 0x10(%r12), %rax
movq 0x10(%rax), %rsi
movq 0x8(%rsi), %rbp
movzbl (%rbp), %eax
cmpl $0x1, %eax
je 0xaabb0
cmpl $0xb, %eax
je 0xaac50
cmpl $0xa, %eax
jne 0xaac96
movq %r14, %rdi
movq %rbp, %rsi
callq 0xac2d6
movq %rax, 0x8(%r15)
testq %rax, %rax
je 0xaab2b
leaq 0xb63e(%rip), %rax      # 0xb6149
movq %rax, (%r15)
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x60(%r15)
movl $0x0, 0x70(%r15)
movb $0x1, %al
jmp 0xaac8e
movl 0x4(%rsp), %ebp
movl %ebp, 0x2258(%r14)
xorl %ebx, %ebx
xorl %eax, %eax
jmp 0xaacce
movq 0x8(%rsi), %rdx
cmpq 0x17b0(%r14), %rdx
movl 0x4(%rsp), %ebp
jne 0xaab6a
movq 0x10(%rsi), %rdx
cmpb $0x1, (%rdx)
jne 0xaab6a
movq 0x10(%rdx), %rdx
cmpq 0x110(%r14), %rdx
je 0xaac19
movq %r14, %rdi
movq %rax, %rsi
callq 0xa8bbb
testb %al, %al
je 0xaabf5
leaq 0xaa46(%rip), %rax      # 0xb55c6
movq %rax, (%r15)
movslq %ebp, %rax
movq 0x2260(%r14,%rax,8), %rcx
movq %rcx, 0x20(%r15)
movq 0x2260(%r14,%rax,8), %rax
movq (%rax), %rax
movq %rax, 0x28(%r15)
movabsq $0x100000006, %rax      # imm = 0x100000006
jmp 0xaac3e
movq 0x8(%rbp), %rcx
cmpq 0x17b0(%r14), %rcx
jne 0xaabd3
movq 0x10(%rbp), %rcx
cmpb $0x1, (%rcx)
jne 0xaabd3
movq 0x10(%rcx), %rcx
cmpq 0x110(%r14), %rcx
je 0xaac4c
movq %r14, %rdi
callq 0xa8bbb
movl %eax, %ecx
testb %cl, %cl
movl 0x4(%rsp), %ebp
je 0xaacce
leaq 0xb686(%rip), %rax      # 0xb6276
jmp 0xaacbf
movb $0x1, %bl
jmp 0xaacce
cmpb $0x1, %cl
jne 0xaac09
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%r15)
leaq 0xb507(%rip), %rax      # 0xb611b
jmp 0xaacbf
cmpb $0x1, %cl
jne 0xaac26
movq 0x10(%rsi), %rax
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%r15)
leaq 0xb4d1(%rip), %rax      # 0xb6102
movq %rax, (%r15)
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x60(%r15)
movl $0x0, 0x70(%r15)
jmp 0xaacca
cmpb $0xb, %al
jne 0xaac96
movq %r13, %rdi
callq 0xb5ee8
testq %rax, %rax
je 0xaac96
movq 0x8(%rbp), %rcx
movq %rcx, 0x10(%r15)
movq %rax, 0x18(%r15)
movq %r14, %rdi
movq %r15, %rsi
callq 0xb618d
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0xaac8e
leaq 0xb573(%rip), %rcx      # 0xb61f6
movq %rcx, (%r15)
movq $0x4, 0x60(%r15)
xorl %ebx, %ebx
movl 0x4(%rsp), %ebp
jmp 0xaacce
movq 0x10(%r12), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
cmpb $0x1, (%rax)
jne 0xaacb0
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movl 0x4(%rsp), %ebp
movq %rax, 0x10(%r15)
leaq 0xb577(%rip), %rax      # 0xb6236
movq %rax, (%r15)
movq $0x4, 0x60(%r15)
movb $0x1, %al
xorl %ebx, %ebx
testb %bl, %bl
je 0xaacdb
movl %ebp, 0x2258(%r14)
xorl %eax, %eax
andb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq