// File: /workspace/github_c_makefile_star2_O3/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 %rdi, %r14
cmpb $0x30, (%rdx)
jb 0xa4163
movq %rcx, %r15
movq %rdx, %r12
movq 0x8(%rdx), %rcx
movq 0x20(%rcx), %rax
testq %rax, %rax
je 0xa4163
movq %rsi, %rbx
cmpl $0x2c, (%rax)
je 0xa3d6c
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xa3d59
jmp 0xa4163
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xa4163
movq 0x38(%rcx), %rcx
cmpb $0x1, (%rcx)
jne 0xa3d9b
movq 0x10(%rcx), %rcx
cmpb $0x1, (%rcx)
jne 0xa3d9b
movq 0x8(%rcx), %rcx
xorl %r13d, %r13d
cmpb $0xa, (%rcx)
cmoveq %rcx, %r13
jmp 0xa3d9e
xorl %r13d, %r13d
movq %rax, 0x18(%rbx)
movq 0x10(%r15), %rsi
movq 0x8(%rsi), %rax
movzbl (%rax), %ecx
cmpl $0x1, %ecx
je 0xa3e2c
cmpl $0xa, %ecx
jne 0xa3e53
movq 0x8(%r14), %rdi
movq %rax, %rsi
callq 0xa56a4
testq %rax, %rax
je 0xa4163
movq 0x10(%rax), %rsi
movzbl (%rsi), %ecx
leaq 0xa6e42(%rip), %rdx     # 0x14ac20
cmpb $0x1, (%rcx,%rdx)
jne 0xa3dfc
movq 0x18(%rsi), %rcx
movq 0x20(%rcx), %rcx
testq %rcx, %rcx
je 0xa3dfc
cmpq $0x2, 0x10(%rcx)
jge 0xa4163
movq %rax, 0x8(%rbx)
cmpb $0x30, (%r12)
jb 0xa40ad
movq 0x8(%r12), %rcx
movq 0x20(%rcx), %rcx
testq %rcx, %rcx
je 0xa40ad
cmpl $0x2d, (%rcx)
je 0xa3fa3
movq 0x10(%rcx), %rcx
jmp 0xa3e14
movq 0x8(%rax), %rcx
cmpq 0x17b0(%r14), %rcx
jne 0xa3e9f
movq 0x10(%rax), %rax
cmpb $0x1, (%rax)
jne 0xa3e9f
movq 0x10(%rax), %rcx
cmpq 0x110(%r14), %rcx
jne 0xa3e9f
movq 0x8(%rax), %rax
movq %rax, 0x8(%rbx)
movq 0x10(%r15), %rsi
movq 0x10(%rsi), %rcx
movq 0x8(%rcx), %rcx
movzbl (%rcx), %edx
cmpl $0xa, %edx
je 0xa3ef7
cmpl $0x1, %edx
jne 0xa402f
movq 0x8(%rcx), %rax
cmpq 0x17b0(%r14), %rax
jne 0xa3e9f
movq 0x10(%rcx), %rax
cmpb $0x1, (%rax)
jne 0xa3e9f
movq 0x10(%rax), %rcx
cmpq 0x110(%r14), %rcx
je 0xa402b
movq %r14, %rdi
callq 0xa2000
testb %al, %al
je 0xa4163
movq 0x10(%r15), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
movzbl (%rsi), %ecx
cmpl $0x1, %ecx
je 0xa3f5d
cmpl $0xb, %ecx
je 0xa3f29
cmpl $0xa, %ecx
jne 0xa408c
movq 0x8(%r14), %rdi
callq 0xa56a4
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0xa4163
leaq 0xae5a(%rip), %rax      # 0xaed4c
jmp 0xa418a
movq %rax, 0x10(%rbx)
movq 0x10(%r15), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
movq 0x8(%r14), %rdi
callq 0xa56a4
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0xa4163
leaq 0xae0f(%rip), %rax      # 0xaed33
jmp 0xa418a
cmpb $0x30, (%r12)
jb 0xa408c
movq 0x8(%r12), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xa408c
cmpl $0x30, (%rax)
je 0xa403c
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xa3f46
jmp 0xa407f
movq 0x8(%rsi), %rcx
cmpq 0x17b0(%r14), %rcx
jne 0xa3f84
movq 0x10(%rsi), %rcx
cmpb $0x1, (%rcx)
jne 0xa3f84
movq 0x10(%rcx), %rcx
cmpq 0x110(%r14), %rcx
je 0xa4084
movq %r14, %rdi
movq %rax, %rsi
callq 0xa2000
testb %al, %al
je 0xa4163
leaq 0xaedb(%rip), %rax      # 0xaee79
jmp 0xa4097
testq %r13, %r13
je 0xa40ad
cmpq $0x0, 0x8(%rcx)
je 0xa40ad
movq %r14, %rdi
movq %rax, (%rsp)
movq %r13, %rsi
callq 0x9a93
movq (%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x700(%r14), %rdx
movq %rcx, 0x8(%rdx)
movq 0x700(%r14), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0xaee6
cmpq 0x118(%r14), %rax
jne 0xa40ad
cmpb $0x30, (%r12)
jb 0xa40a7
movq 0x8(%r12), %rax
movq 0x20(%rax), %rcx
testq %rcx, %rcx
je 0xa40a7
xorl %eax, %eax
cmpl $0x2d, (%rcx)
je 0xa41a6
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0xa4017
jmp 0xa40a9
movq 0x8(%rax), %rcx
movq %rcx, 0x10(%rbx)
leaq 0xace4(%rip), %rax      # 0xaed1e
jmp 0xa4097
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xa407f
movq 0x8(%rsi), %rcx
movq %rcx, 0x10(%rbx)
movq %rax, 0x18(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0xaed90
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0xa416c
leaq 0xad8a(%rip), %rcx      # 0xaedf9
movq %rcx, (%rbx)
movq $0x4, 0x60(%rbx)
jmp 0xa416c
cmpb $0x1, %cl
jne 0xa408c
movq 0x10(%rsi), %rax
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rbx)
leaq 0xada2(%rip), %rax      # 0xaee39
movq %rax, (%rbx)
movq $0x4, 0x60(%rbx)
jmp 0xa41a2
xorl %eax, %eax
movq %rax, 0x18(%rbx)
movq 0x10(%r15), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
movzbl (%rsi), %ecx
cmpl $0x1, %ecx
je 0xa4105
cmpl $0xa, %ecx
jne 0xa417f
movq 0x8(%r14), %rdi
callq 0xa56a4
movq %rax, 0x10(%rbx)
testq %rax, %rax
je 0xa4163
leaq 0xa181(%rip), %rax      # 0xae268
movq %rax, (%rbx)
movabsq $0x200000004, %rax      # imm = 0x200000004
movq %rax, 0x60(%rbx)
movq $0x0, 0x70(%rbx)
jmp 0xa41a2
movq 0x8(%rsi), %rcx
cmpq 0x17b0(%r14), %rcx
jne 0xa4128
movq 0x10(%rsi), %rcx
cmpb $0x1, (%rcx)
jne 0xa4128
movq 0x10(%rcx), %rdx
cmpq 0x110(%r14), %rdx
je 0xa417b
movq %r14, %rdi
movq %rax, %rsi
callq 0xa2000
testb %al, %al
je 0xa4163
leaq 0xa1a6(%rip), %rax      # 0xae2e4
movq %rax, (%rbx)
movslq %ebp, %rax
movq 0x2260(%r14,%rax,8), %rax
movq %rax, 0x20(%rbx)
movq (%rax), %rax
movq %rax, 0x28(%rbx)
movabsq $0x100000006, %rax      # imm = 0x100000006
jmp 0xa4197
movl %ebp, 0x2258(%r14)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rcx), %rsi
movq %rsi, 0x10(%rbx)
leaq 0xab7b(%rip), %rax      # 0xaed05
movq %rax, (%rbx)
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x60(%rbx)
movl $0x0, 0x70(%rbx)
movb $0x1, %al
jmp 0xa416c
movq 0x8(%rcx), %rax
jmp 0xa40a9