// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: p_call_ppp_ok
static bool p_call_ppp_ok(s7_scheme *sc, opt_info *opc, s7_pointer s_func, s7_pointer car_x)
                {
                    int32_t start;
                    start = sc->pc;
                    /* css (tbig (<= 2 m j)) ccs scs cfc ssf sfc fsc -- ssf then maybe scs */
                    if ((is_safe_procedure(s_func)) &&
                            (c_function_required_args(s_func) <= 3) &&
                            (c_function_all_args(s_func) >= 3))
                    {
                        s7_pointer slot, arg;
                        arg = cadr(car_x);
                        if (is_symbol(arg))
                        {
                            slot = opt_simple_symbol(sc, arg);
                            if (slot)
                            {
                                opc->v[1].p = slot;
                                arg = caddr(car_x);
                                if (is_symbol(arg))
                                {
                                    slot = opt_simple_symbol(sc, arg);
                                    if (slot)
                                    {
                                        opc->v[2].p = slot;
                                        arg = cadddr(car_x);
                                        if (is_symbol(arg))
                                        {
                                            slot = opt_simple_symbol(sc, arg);
                                            if (slot)
                                            {
                                                opc->v[3].p = slot;
                                                opc->v[4].call = cf_call(sc, car_x, s_func, 3);
                                                opc->v[0].fp = opt_p_call_sss;
                                                return(oo_set_type_3(opc, 5, 1, 2, 3, OO_P, OO_P, OO_P));
                                            }
                                        }
                                        else
                                        {
                                            if (cell_optimize(sc, cdddr(car_x)))
                                            {
                                                opc->v[4].call = cf_call(sc, car_x, s_func, 3);
                                                opc->v[0].fp = opt_p_call_ssf;
                                                return(oo_set_type_2(opc, 5, 1, 2, OO_P, OO_P));
                                            }}}}}}
                        if ((cell_optimize(sc, cdr(car_x))) &&
                                (cell_optimize(sc, cddr(car_x))) &&
                                (cell_optimize(sc, cdddr(car_x))))
                        {
                            opc->v[2].call = cf_call(sc, car_x, s_func, 3);
                            opc->v[0].fp = opt_p_call_ppp;
                            return(oo_set_type_0(opc, 3));
                        }
                    }
                    pc_fallback(sc, start);
                    return(return_false(sc, car_x, __func__, __LINE__));
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r12
movl 0x2258(%rdi), %ebp
testb $0x20, 0x2(%rdx)
je 0xabefc
movq %rdx, %r15
cmpq $0x3, 0x18(%rdx)
jg 0xabefc
cmpq $0x3, 0x28(%r15)
jl 0xabefc
movq %rcx, %r14
movq %rsi, %rbx
movq 0x10(%rcx), %rax
movq 0x8(%rax), %rsi
cmpb $0xa, (%rsi)
jne 0xabe63
movq %r12, %rdi
callq 0xac2d6
testq %rax, %rax
je 0xabe63
movq %rax, 0x8(%rbx)
movq 0x10(%r14), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
cmpb $0xa, (%rsi)
jne 0xabe63
movq %r12, %rdi
callq 0xac2d6
testq %rax, %rax
je 0xabe63
movq %rax, 0x10(%rbx)
movq 0x10(%r14), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
movq 0x8(%rsi), %rax
cmpb $0xa, (%rax)
jne 0xabdeb
movq %r12, %rdi
movq %rax, %rsi
callq 0xac2d6
testq %rax, %rax
je 0xabe63
movq %rax, 0x18(%rbx)
cmpw $0x801, (%r14)          # imm = 0x801
jne 0xabd99
movzwl 0x4(%r14), %eax
leal -0x17f(%rax), %ecx
cmpl $0x7, %ecx
jb 0xabd99
cmpl $0x4, %eax
jae 0xabf15
movq 0x8(%r15), %rax
movq %r12, %rdi
movq %r15, %rsi
movl $0x3, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq *0x48(%rax)
movq %rax, %r14
addq $0x10, %r14
movq (%r14), %rax
movq %rax, 0x20(%rbx)
leaq 0xaa8a(%rip), %rax      # 0xb6850
movq %rax, (%rbx)
movabsq $0x300000005, %rax      # imm = 0x300000005
movq %rax, 0x60(%rbx)
movq $0x0, 0x70(%rbx)
movl $0x0, 0x78(%rbx)
jmp 0xabef8
movq %r12, %rdi
callq 0xa8bbb
testb %al, %al
je 0xabe63
cmpw $0x801, (%r14)          # imm = 0x801
jne 0xabe18
movzwl 0x4(%r14), %eax
leal -0x17f(%rax), %ecx
cmpl $0x7, %ecx
jb 0xabe18
cmpl $0x4, %eax
jae 0xabf1e
movq 0x8(%r15), %rax
movq %r12, %rdi
movq %r15, %rsi
movl $0x3, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq *0x48(%rax)
movq %rax, %r14
addq $0x10, %r14
movq (%r14), %rax
movq %rax, 0x20(%rbx)
leaq 0xaa4b(%rip), %rax      # 0xb6890
movq %rax, (%rbx)
movabsq $0x200000005, %rax      # imm = 0x200000005
movq %rax, 0x60(%rbx)
movq $0x0, 0x70(%rbx)
jmp 0xabef8
movq 0x10(%r14), %rsi
movq %r12, %rdi
callq 0xa8bbb
testb %al, %al
je 0xabefc
movq 0x10(%r14), %rax
movq 0x10(%rax), %rsi
movq %r12, %rdi
callq 0xa8bbb
testb %al, %al
je 0xabefc
movq 0x10(%r14), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
movq %r12, %rdi
callq 0xa8bbb
testb %al, %al
je 0xabefc
cmpw $0x801, (%r14)          # imm = 0x801
jne 0xabec0
movzwl 0x4(%r14), %eax
leal -0x17f(%rax), %ecx
cmpl $0x7, %ecx
jb 0xabec0
cmpl $0x4, %eax
jae 0xabf0f
movq 0x8(%r15), %rax
movq %r12, %rdi
movq %r15, %rsi
movl $0x3, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq *0x48(%rax)
movq %rax, %r14
addq $0x10, %r14
movq (%r14), %rax
movq %rax, 0x10(%rbx)
leaq 0xaa0f(%rip), %rax      # 0xb68fc
movq %rax, (%rbx)
movq $0x3, 0x60(%rbx)
movb $0x1, %al
jmp 0xabf06
movl %ebp, 0x2258(%r12)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
addq $0x20, %r14
jmp 0xabedf
addq $0x20, %r14
jmp 0xabdb8
addq $0x20, %r14
jmp 0xabe37