// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: p_pi_ok
static bool p_pi_ok(s7_scheme *sc, opt_info *opc, s7_pointer s_func, s7_pointer sig, s7_pointer car_x)
                {
                    s7_p_pi_t func;
                    func = s7_p_pi_function(s_func);
                    if (func)
                    {
                        s7_pointer obj = NULL, slot1, checker = NULL;

                        /* here we know cadr is a symbol */
                        slot1 = opt_simple_symbol(sc, cadr(car_x));
                        if (!slot1)
                            return(return_false(sc, car_x, __func__, __LINE__));
                        if ((is_any_vector(slot_value(slot1))) &&
                                (vector_rank(slot_value(slot1)) > 1))
                            return(return_false(sc, car_x, __func__, __LINE__));

                        opc->v[3].p_pi_f = func;
                        opc->v[1].p = slot1;

                        if (is_symbol(cadr(sig)))
                            checker = cadr(sig);

                        if ((s7_p_pi_direct_function(s_func)) &&
                                (checker))
                        {
                            obj = slot_value(opc->v[1].p);
                            if ((is_string(obj)) ||
                                    (is_pair(obj)) ||
                                    (is_any_vector(obj)))
                            {
                                if (((is_string(obj)) && (checker == sc->is_string_symbol)) ||
                                        ((is_any_vector(obj)) && (checker == sc->is_vector_symbol)) ||
                                        ((is_pair(obj)) && (checker == sc->is_pair_symbol)) ||
                                        ((is_byte_vector(obj)) && (checker == sc->is_byte_vector_symbol)))
                                    opc->v[3].p_pi_f = s7_p_pi_direct_function(s_func);
                            }
                        }
                        slot1 = opt_integer_symbol(sc, caddr(car_x));
                        if (slot1)
                        {
                            opc->v[0].fp = opt_p_pi_ss;
                            opc->v[2].p = slot1;
                            if ((obj) &&
                                    (is_step_end(slot1)))
                                switch (type(obj))
                                {
                                    case T_VECTOR:
                                        if (denominator(slot_value(slot1)) <= vector_length(obj))
                                            opc->v[3].p_pi_f = vector_ref_unchecked;
                                        return(oo_set_type_2(opc, 4, 1, 2, OO_PV, OO_I));

                                    case T_INT_VECTOR:
                                        if (denominator(slot_value(slot1)) <= vector_length(obj))
                                            opc->v[3].p_pi_f = int_vector_ref_unchecked_p;
                                        return(oo_set_type_2(opc, 4, 1, 2, OO_IV, OO_I));

                                    case T_FLOAT_VECTOR:
                                        if (denominator(slot_value(slot1)) <= vector_length(obj))
                                            opc->v[3].p_pi_f = float_vector_ref_unchecked_p;
                                        return(oo_set_type_2(opc, 4, 1, 2, OO_FV, OO_I));

                                    case T_STRING:
                                        if (denominator(slot_value(slot1)) <= string_length(obj))
                                            opc->v[3].p_pi_f = string_ref_unchecked;
                                        return(oo_set_type_2(opc, 4, 1, 2, OO_S, OO_I));

                                    case T_BYTE_VECTOR:
                                        if (denominator(slot_value(slot1)) <= string_length(obj))
                                            opc->v[3].p_pi_f = byte_vector_ref_unchecked_p;
                                        return(oo_set_type_2(opc, 4, 1, 2, OO_BV, OO_I));
                                }
                            return(oo_set_type_2(opc, 4, 1, 2, OO_P, OO_I));
                        }
                        if (is_t_integer(caddr(car_x)))
                        {
                            opc->v[2].i = integer(caddr(car_x));
                            opc->v[0].fp = opt_p_pi_sc;
                            return(oo_set_type_1(opc, 4, 1, OO_P));
                        }
                        if (int_optimize(sc, cddr(car_x)))
                        {
                            opc->v[0].fp = opt_p_pi_sf;
                            return(oo_set_type_1(opc, 4, 1, OO_P));
                        }
                    }
                    return(return_false(sc, car_x, __func__, __LINE__));
                }

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movq %rdx, 0x58(%rsp)
movq %rcx, 0x50(%rsp)
movq %r8, 0x48(%rsp)
movq 0x58(%rsp), %rdi
callq 0x101d90
movq %rax, 0x40(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0xec304
movq $0x0, 0x38(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x68(%rsp), %rdi
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
callq 0xefdf0
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x30(%rsp)
jne 0xebd98
movb $0x0, 0x77(%rsp)
jmp 0xec309
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x12e9a3(%rip), %rax    # 0x21a750
testb $0x1, (%rax,%rcx)
je 0xebe04
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0x20(%rax)
je 0xebde3
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x20(%rsp)
jmp 0xebdef
movl $0x1, %eax
movq %rax, 0x20(%rsp)
jmp 0xebdef
movq 0x20(%rsp), %rax
cmpq $0x1, %rax
jle 0xebe04
movb $0x0, 0x77(%rsp)
jmp 0xec309
movq 0x40(%rsp), %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x30(%rsp), %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
jne 0xebe47
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x58(%rsp), %rdi
callq 0x101db0
cmpq $0x0, %rax
je 0xebf52
cmpq $0x0, 0x28(%rsp)
je 0xebf52
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x13, %eax
je 0xebeae
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0xebeae
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x12e8ac(%rip), %rax    # 0x21a750
testb $0x1, (%rax,%rcx)
je 0xebf50
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x13, %eax
jne 0xebece
movq 0x28(%rsp), %rax
movq 0x68(%rsp), %rcx
cmpq 0x1190(%rcx), %rax
je 0xebf38
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x12e871(%rip), %rax    # 0x21a750
testb $0x1, (%rax,%rcx)
je 0xebef8
movq 0x28(%rsp), %rax
movq 0x68(%rsp), %rcx
cmpq 0x11b0(%rcx), %rax
je 0xebf38
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0xebf18
movq 0x28(%rsp), %rax
movq 0x68(%rsp), %rcx
cmpq 0x1140(%rcx), %rax
je 0xebf38
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x18, %eax
jne 0xebf4e
movq 0x28(%rsp), %rax
movq 0x68(%rsp), %rcx
cmpq 0xfe8(%rcx), %rax
jne 0xebf4e
movq 0x58(%rsp), %rdi
callq 0x101db0
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x18(%rax)
jmp 0xebf50
jmp 0xebf52
movq 0x68(%rsp), %rdi
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
callq 0xe5260
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0xec23a
movq 0x60(%rsp), %rax
leaq 0xbcd6(%rip), %rcx      # 0xf7c60
movq %rcx, (%rax)
movq 0x30(%rsp), %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x10(%rax)
cmpq $0x0, 0x38(%rsp)
je 0xec1fc
movq 0x30(%rsp), %rax
movq (%rax), %rax
andq $0x4000000, %rax        # imm = 0x4000000
cmpq $0x0, %rax
je 0xec1fc
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
addl $-0x13, %eax
movl %eax, %ecx
movq %rcx, 0x18(%rsp)
subl $0x5, %eax
ja 0xec1fa
movq 0x18(%rsp), %rax
leaq 0xf3d46(%rip), %rcx     # 0x1dfd2c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x38(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jg 0xec017
movq 0x60(%rsp), %rax
leaq 0x14a0d(%rip), %rcx     # 0x100a20
movq %rcx, 0x18(%rax)
movq 0x60(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %r9d
movl $0x2, %ecx
movl $0x6, %r8d
leaq 0x103416(%rip), %rax    # 0x1ef44f
movl %r9d, %edx
movq %rax, (%rsp)
movl $0xed98, 0x8(%rsp)      # imm = 0xED98
callq 0xe54b0
andb $0x1, %al
movb %al, 0x77(%rsp)
jmp 0xec309
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x38(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jg 0xec080
movq 0x60(%rsp), %rax
leaq 0x14a84(%rip), %rcx     # 0x100b00
movq %rcx, 0x18(%rax)
movq 0x60(%rsp), %rdi
movl $0x4, %r8d
movl $0x1, %r9d
movl $0x2, %ecx
leaq 0x1033b2(%rip), %rax    # 0x1ef44f
movl %r8d, %esi
movl %r9d, %edx
movq %rax, (%rsp)
movl $0xed9d, 0x8(%rsp)      # imm = 0xED9D
callq 0xe54b0
andb $0x1, %al
movb %al, 0x77(%rsp)
jmp 0xec309
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x38(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jg 0xec0e7
movq 0x60(%rsp), %rax
leaq 0x1496d(%rip), %rcx     # 0x100a50
movq %rcx, 0x18(%rax)
movq 0x60(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %r9d
movl $0x2, %ecx
movl $0x5, %r8d
leaq 0x103346(%rip), %rax    # 0x1ef44f
movl %r9d, %edx
movq %rax, (%rsp)
movl $0xeda2, 0x8(%rsp)      # imm = 0xEDA2
callq 0xe54b0
andb $0x1, %al
movb %al, 0x77(%rsp)
jmp 0xec309
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x38(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jg 0xec150
movq 0x60(%rsp), %rax
leaq 0x14874(%rip), %rcx     # 0x1009c0
movq %rcx, 0x18(%rax)
movq 0x60(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %r9d
movl $0x2, %ecx
movl $0x9, %r8d
leaq 0x1032dd(%rip), %rax    # 0x1ef44f
movl %r9d, %edx
movq %rax, (%rsp)
movl $0xeda7, 0x8(%rsp)      # imm = 0xEDA7
callq 0xe54b0
andb $0x1, %al
movb %al, 0x77(%rsp)
jmp 0xec309
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x38(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jg 0xec1b9
movq 0x60(%rsp), %rax
leaq 0x1483b(%rip), %rcx     # 0x1009f0
movq %rcx, 0x18(%rax)
movq 0x60(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %r9d
movl $0x2, %ecx
movl $0xa, %r8d
leaq 0x103274(%rip), %rax    # 0x1ef44f
movl %r9d, %edx
movq %rax, (%rsp)
movl $0xedac, 0x8(%rsp)      # imm = 0xEDAC
callq 0xe54b0
andb $0x1, %al
movb %al, 0x77(%rsp)
jmp 0xec309
jmp 0xec1fc
movq 0x60(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %r9d
movl $0x2, %ecx
xorl %r8d, %r8d
leaq 0x103234(%rip), %rax    # 0x1ef44f
movl %r9d, %edx
movq %rax, (%rsp)
movl $0xedae, 0x8(%rsp)      # imm = 0xEDAE
callq 0xe54b0
andb $0x1, %al
movb %al, 0x77(%rsp)
jmp 0xec309
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
cmpl $0xb, %eax
jne 0xec2ab
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x60(%rsp), %rax
leaq 0x149a3(%rip), %rcx     # 0x100c20
movq %rcx, (%rax)
movq 0x60(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %edx
xorl %ecx, %ecx
leaq 0x1031b7(%rip), %r8     # 0x1ef44f
movl $0xedb4, %r9d           # imm = 0xEDB4
callq 0xe4950
andb $0x1, %al
movb %al, 0x77(%rsp)
jmp 0xec309
movq 0x68(%rsp), %rdi
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
callq 0xe59c0
testb $0x1, %al
jne 0xec2c8
jmp 0xec302
movq 0x60(%rsp), %rax
leaq 0x1497c(%rip), %rcx     # 0x100c50
movq %rcx, (%rax)
movq 0x60(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %edx
xorl %ecx, %ecx
leaq 0x103160(%rip), %r8     # 0x1ef44f
movl $0xedb9, %r9d           # imm = 0xEDB9
callq 0xe4950
andb $0x1, %al
movb %al, 0x77(%rsp)
jmp 0xec309
jmp 0xec304
movb $0x0, 0x77(%rsp)
movb 0x77(%rsp), %al
andb $0x1, %al
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)