// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: p_ppp_ok
static bool p_ppp_ok(s7_scheme *sc, opt_info *opc, s7_pointer s_func, s7_pointer car_x)
                {
                    s7_p_ppp_t func;
                    func = s7_p_ppp_function(s_func);
                    if (func)
                    {
                        s7_pointer arg1, arg2, arg3;
                        int32_t start;
                        opt_type_t op2 = OO_P;
                        s7_pointer sig, checker = NULL;

                        sig = c_function_signature(s_func);
                        if ((is_pair(sig)) &&
                                (is_pair(cdr(sig))) &&
                                (is_symbol(cadr(sig))))
                            checker = cadr(sig);
                        start = sc->pc;

                        opc->v[3].p_ppp_f = func;
                        arg1 = cadr(car_x);
                        arg2 = caddr(car_x);
                        arg3 = cadddr(car_x);
                        if (is_symbol(arg1)) /* dealt with at the top -> p1 */
                        {
                            s7_pointer slot, obj;
                            slot = symbol_to_slot(sc, arg1);
                            if ((!is_slot(slot)) ||
                                    (has_methods(slot_value(slot))))
                                return(return_false(sc, car_x, __func__, __LINE__));

                            obj = slot_value(slot);
                            if ((is_any_vector(obj)) &&
                                    (vector_rank(obj) > 1))
                                return(return_false(sc, car_x, __func__, __LINE__));

                            if (car(car_x) == sc->hash_table_set_symbol) /* the other setters (than nash-table/let) won't happen here -- no p_ppp function */
                            {
                                if ((!is_hash_table(obj)) || (is_immutable(obj)))
                                    return(return_false(sc, car_x, __func__, __LINE__));
                                op2 = OO_H;
                            }
                            else
                            {
                                if (car(car_x) == sc->let_set_symbol)
                                {
                                    if ((!is_let(obj)) || (is_immutable(obj)))
                                        return(return_false(sc, car_x, __func__, __LINE__));
                                    op2 = OO_E;
                                }
                            }

                            opc->v[1].p = slot;
                            if ((checker) && (s7_p_ppp_direct_function(s_func)))
                            {
                                checker = s7_symbol_value(sc, checker);
                                if (s7_apply_function(sc, checker, set_plist_1(sc, obj)) == sc->T)
                                    opc->v[3].p_ppp_f = s7_p_ppp_direct_function(s_func);
                            }
                            if (is_symbol(arg2))
                            {
                                slot = opt_simple_symbol(sc, arg2);
                                if (slot)
                                {
                                    opc->v[2].p = slot;
                                    if (is_symbol(arg3))
                                    {
                                        slot = opt_simple_symbol(sc, arg3);
                                        if (slot)
                                        {
                                            opc->v[4].p_ppp_f = opc->v[3].p_ppp_f;
                                            opc->v[3].p = slot;
                                            opc->v[0].fp = opt_p_ppp_sss;
                                            return(oo_set_type_3(opc, 5, 1, 2, 3, op2, OO_P, OO_P));
                                        }
                                    }
                                    else
                                    {
                                        if ((!is_pair(arg3)) ||
                                                ((car(arg3) == sc->quote_symbol) &&
                                                 (is_pair(cdr(arg3))))) /* (quote) as arg3 */
                                        {
                                            if (!is_pair(arg3))
                                                opc->v[4].p = arg3;
                                            else opc->v[4].p = cadr(arg3);
                                            opc->v[0].fp = opt_p_ppp_ssc;
                                            return(oo_set_type_2(opc, 5, 1, 2, op2, OO_P));
                                        }
                                    }
                                    if (optimize_op(car_x) == OP_HASH_INCREMENT)
                                    {
                                        opc->v[0].fp = opt_p_ppp_hash_increment;
                                        opc->v[4].i = sc->pc - 1;
                                        opc->v[5].p = car_x;
                                        return(oo_set_type_2(opc, 6, 1, 2, op2, OO_P));
                                    }
                                    if (cell_optimize(sc, cdddr(car_x)))
                                    {
                                        opc->v[0].fp = opt_p_ppp_ssf;
                                        return(oo_set_type_2(opc, 4, 1, 2, op2, OO_P));
                                    }
                                    pc_fallback(sc, start);
                                }
                            }
                            if ((is_proper_quote(sc, arg2)) &&
                                    (is_symbol(arg3)))
                            {
                                s7_pointer val_slot;
                                val_slot = opt_simple_symbol(sc, arg3);
                                if (val_slot)
                                {
                                    opc->v[4].p = cadr(arg2);
                                    opc->v[2].p = val_slot;
                                    opc->v[0].fp = opt_p_ppp_scs;
                                    if (opc->v[3].p_ppp_f == s7_let_set)
                                    {
                                        if (is_symbol(cadr(arg2))) /* checked is_let, has_methods and is_immutable above */
                                            opc->v[3].p_ppp_f = let_set_1;
                                        else return(return_false(sc, car_x, __func__, __LINE__));
                                    }
                                    return(oo_set_type_2(opc, 5, 1, 2, op2, OO_P));
                                }
                            }
                            if (cell_optimize(sc, cddr(car_x)))
                            {
                                if (is_symbol(arg3))
                                {
                                    s7_pointer val_slot;
                                    val_slot = opt_simple_symbol(sc, arg3);
                                    if (val_slot)
                                    {
                                        opc->v[2].p = val_slot;
                                        opc->v[0].fp = opt_p_ppp_sfs;
                                        return(oo_set_type_2(opc, 4, 1, 2, op2, OO_P));
                                    }
                                }
                                if (cell_optimize(sc, cdddr(car_x)))
                                {
                                    opc->v[0].fp = opt_p_ppp_sff;
                                    return(oo_set_type_1(opc, 4, 1, op2));
                                }
                            }
                        }
                        else
                        {
                            if ((cell_optimize(sc, cdr(car_x))) &&
                                    (cell_optimize(sc, cddr(car_x))) &&
                                    (cell_optimize(sc, cdddr(car_x))))
                            {
                                opc->v[0].fp = opt_p_ppp_fff;
                                return(oo_set_type_0(opc, 4));
                            }
                        }
                        pc_fallback(sc, start);
                    }
                    return(return_false(sc, car_x, __func__, __LINE__));
                }

// Assembly:
cmpb $0x30, (%rdx)
jb 0xa4beb
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movq %rdx, %rbp
movq 0x8(%rdx), %rcx
movq 0x20(%rcx), %rax
testq %rax, %rax
je 0xa50a4
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0x2e, (%rax)
je 0xa4bee
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xa4bd8
jmp 0xa50a4
xorl %eax, %eax
retq
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xa50a4
movq 0x38(%rcx), %rcx
cmpb $0x1, (%rcx)
jne 0xa4c1c
movq 0x10(%rcx), %rcx
cmpb $0x1, (%rcx)
jne 0xa4c1c
movq 0x8(%rcx), %rcx
xorl %esi, %esi
cmpb $0xa, (%rcx)
cmoveq %rcx, %rsi
jmp 0xa4c1e
xorl %esi, %esi
movl 0x2258(%r14), %r12d
movq %rax, 0x18(%rbx)
movq 0x10(%r15), %rax
movq 0x8(%rax), %rdx
cmpb $0xa, (%rdx)
jne 0xa4cf8
movq 0x8(%r14), %r8
movq 0x18(%r8), %r9
movq 0x20(%rdx), %rcx
movl $0x18, %edi
cmpq %rcx, %r9
je 0xa4c68
jle 0xa4c5f
movq 0x10(%r8), %r8
movq 0x18(%r8), %r9
cmpq %r9, %rcx
jl 0xa4c52
cmpq %rcx, %r9
jne 0xa4d56
movq (%rdx,%rdi), %rcx
cmpb $0x20, (%rcx)
jne 0xa50a4
movq 0x10(%rcx), %r13
movq (%r13), %rdx
btl $0x1e, %edx
jb 0xa50a4
movq 0x10(%rax), %rax
movq 0x10(%rax), %rdi
movq 0x8(%rax), %r9
movq 0x8(%rdi), %r8
movzbl %dl, %eax
leaq 0xa5f7f(%rip), %rdi     # 0x14ac20
cmpb $0x1, (%rax,%rdi)
jne 0xa4cbf
movq 0x18(%r13), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xa4cbf
cmpq $0x1, 0x10(%rax)
jg 0xa50a4
movq 0x8(%r15), %rax
cmpq 0xf70(%r14), %rax
je 0xa4d84
xorl %edi, %edi
cmpq 0x1240(%r14), %rax
jne 0xa4d98
andl $0x10000ff, %edx        # imm = 0x10000FF
movl $0xc, %edi
cmpl $0x1c, %edx
je 0xa4d98
jmp 0xa50a4
movq %r14, %rdi
movq %rax, %rsi
callq 0xa2000
testb %al, %al
je 0xa509d
movq 0x10(%r15), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0xa2000
testb %al, %al
je 0xa509d
movq 0x10(%r15), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0xa2000
testb %al, %al
je 0xa509d
leaq 0xa4a1(%rip), %rax      # 0xaf1e7
movq %rax, (%rbx)
movq $0x4, 0x60(%rbx)
jmp 0xa5099
movl $0x10, %edi
cmpb $0x1c, (%r8)
jne 0xa4c68
movq 0x8(%r8), %rcx
testq %rcx, %rcx
je 0xa4d7e
cmpq %rdx, 0x8(%rcx)
je 0xa4c6c
movq 0x18(%rcx), %rcx
jmp 0xa4d69
movq 0x10(%r8), %r8
jmp 0xa4d5b
andl $0x10000ff, %edx        # imm = 0x10000FF
movl $0x8, %edi
cmpl $0x1b, %edx
jne 0xa50a4
movq %r8, 0x10(%rsp)
movl %edi, 0x4(%rsp)
movq %rcx, 0x8(%rbx)
testq %rsi, %rsi
je 0xa4e40
cmpb $0x30, (%rbp)
jb 0xa4e40
movq 0x8(%rbp), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xa4e40
cmpl $0x2f, (%rax)
je 0xa4dd0
movq 0x10(%rax), %rax
jmp 0xa4dc0
cmpq $0x0, 0x8(%rax)
je 0xa4e40
movq %r14, %rdi
movq %r9, 0x8(%rsp)
callq 0x9a93
movq 0x700(%r14), %rcx
movq %r13, 0x8(%rcx)
movq 0x700(%r14), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0xaee6
movq 0x8(%rsp), %r9
cmpq 0x118(%r14), %rax
jne 0xa4e40
cmpb $0x30, (%rbp)
jb 0xa4e2f
movq 0x8(%rbp), %rax
movq 0x20(%rax), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0xa4e37
cmpl $0x2f, (%rcx)
je 0xa4e33
movq 0x10(%rcx), %rcx
jmp 0xa4e1f
xorl %eax, %eax
jmp 0xa4e3c
movq 0x8(%rcx), %rax
movq 0x8(%rsp), %r9
movq %rax, 0x18(%rbx)
movb (%r9), %al
cmpb $0xa, %al
jne 0xa4f6e
movq 0x8(%r14), %rdi
movq %r9, %rsi
movq %r9, %r13
callq 0xa56a4
testq %rax, %rax
je 0xa500a
movq %rax, 0x10(%rbx)
movq 0x10(%rsp), %rsi
movzbl (%rsi), %eax
cmpl $0x1, %eax
je 0xa4ec3
cmpl $0xa, %eax
jne 0xa4f14
movq 0x8(%r14), %rdi
callq 0xa56a4
testq %rax, %rax
movl 0x4(%rsp), %edx
je 0xa4ee3
movq 0x18(%rbx), %rcx
movq %rcx, 0x20(%rbx)
movq %rax, 0x18(%rbx)
leaq 0x3fb1(%rip), %rax      # 0xa8e53
movq %rax, (%rbx)
movl %edx, 0x70(%rbx)
movq $0x0, 0x74(%rbx)
movabsq $0x300000005, %rax      # imm = 0x300000005
movq %rax, 0x60(%rbx)
jmp 0xa5099
movq 0x8(%rsi), %rax
cmpq 0x17b0(%r14), %rax
movl 0x4(%rsp), %edx
jne 0xa4ee3
movq 0x10(%rsi), %rax
cmpb $0x1, (%rax)
jne 0xa4ee3
movq 0x8(%rax), %rsi
jmp 0xa4f18
cmpw $0x18e, 0x4(%r15)       # imm = 0x18E
jne 0xa4f3c
leaq 0xa2cb(%rip), %rax      # 0xaf1be
movq %rax, (%rbx)
movslq 0x2258(%r14), %rax
decq %rax
movq %rax, 0x20(%rbx)
movq %r15, 0x28(%rbx)
movabsq $0x200000006, %rax      # imm = 0x200000006
jmp 0xa4f30
movl 0x4(%rsp), %edx
movq %rsi, 0x20(%rbx)
leaq 0x3f7c(%rip), %rax      # 0xa8e9f
movq %rax, (%rbx)
movabsq $0x200000005, %rax      # imm = 0x200000005
movq %rax, 0x60(%rbx)
movl %edx, 0x70(%rbx)
jmp 0xa5059
movq 0x10(%r15), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0xa2000
testb %al, %al
je 0xa4f60
leaq 0x40ca(%rip), %rax      # 0xa9025
jmp 0xa5041
movl %r12d, 0x2258(%r14)
movq %r13, %r9
movb (%r13), %al
cmpb $0x1, %al
jne 0xa500a
movq 0x8(%r9), %rax
cmpq 0x17b0(%r14), %rax
jne 0xa500a
movq 0x10(%r9), %r13
cmpb $0x1, (%r13)
jne 0xa500a
movq 0x10(%r13), %rax
cmpq 0x110(%r14), %rax
jne 0xa500a
movq 0x10(%rsp), %rax
cmpb $0xa, (%rax)
jne 0xa500a
movq 0x8(%r14), %rdi
movq 0x10(%rsp), %rsi
movq %r9, %rbp
callq 0xa56a4
testq %rax, %rax
je 0xa500a
movq 0x8(%r13), %rcx
movq %rcx, 0x20(%rbx)
movq %rax, 0x10(%rbx)
leaq 0x411f(%rip), %rax      # 0xa90f1
movq %rax, (%rbx)
leaq -0x9980b(%rip), %rax    # 0xb7d1
cmpq %rax, 0x18(%rbx)
jne 0xa4ffe
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
cmpb $0xa, (%rax)
jne 0xa50a4
leaq -0x99566(%rip), %rax    # 0xba94
movq %rax, 0x18(%rbx)
movabsq $0x200000005, %rax      # imm = 0x200000005
jmp 0xa504e
movq 0x10(%r15), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0xa2000
testb %al, %al
je 0xa509d
movq 0x10(%rsp), %rsi
cmpb $0xa, (%rsi)
jne 0xa5062
movq 0x8(%r14), %rdi
callq 0xa56a4
testq %rax, %rax
je 0xa5062
movq %rax, 0x10(%rbx)
leaq 0x40d2(%rip), %rax      # 0xa9113
movq %rax, (%rbx)
movabsq $0x200000004, %rax      # imm = 0x200000004
movq %rax, 0x60(%rbx)
movl 0x4(%rsp), %eax
movl %eax, 0x70(%rbx)
movl $0x0, 0x74(%rbx)
jmp 0xa5099
movq 0x10(%r15), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0xa2000
testb %al, %al
je 0xa509d
leaq 0x40ea(%rip), %rax      # 0xa916b
movq %rax, (%rbx)
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x60(%rbx)
movl 0x4(%rsp), %eax
movl %eax, 0x70(%rbx)
movb $0x1, %al
jmp 0xa50a6
movl %r12d, 0x2258(%r14)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq