// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: i_7pi_ok
static bool i_7pi_ok(s7_scheme *sc, opt_info *opc, s7_pointer s_func, s7_pointer car_x)
                {
                    s7_i_7pi_t pfunc;
                    pfunc = s7_i_7pi_function(s_func);
                    if (pfunc)
                    {
                        s7_pointer sig;
                        sig = c_function_signature(s_func);
                        if (is_pair(sig))
                        {
                            s7_pointer arg1, arg2, slot;
                            int32_t start;
                            start = sc->pc;
                            arg1 = cadr(car_x);
                            arg2 = caddr(car_x);

                            if ((is_symbol(cadr(sig))) &&
                                    (is_symbol(arg1)) &&
                                    (slot = opt_types_match(sc, cadr(sig), arg1)))
                            {
                                s7_pointer p;
                                opc->v[1].p = slot;
                                if ((car(car_x) == sc->int_vector_ref_symbol) &&
                                        ((!is_int_vector(slot_value(slot))) ||
                                         (vector_rank(slot_value(slot)) > 1)))
                                    return(return_false(sc, car_x, __func__, __LINE__));

                                opc->v[3].i_7pi_f = pfunc;
                                p = opt_integer_symbol(sc, arg2);
                                if (p)
                                {
                                    opc->v[2].p = p;
                                    opc->v[0].fi = opt_i_7pi_ss;
                                    if ((car(car_x) == sc->int_vector_ref_symbol) &&
                                            (is_step_end(opc->v[2].p)) &&
                                            (denominator(slot_value(opc->v[2].p)) <= vector_length(slot_value(opc->v[1].p))))
                                    {
                                        opc->v[0].fi = ivref_7pi_ss;
                                        opc->v[3].i_7pi_f = int_vector_ref_unchecked;
                                    }
                                    return(oo_set_type_2(opc, 4, 1, 2, OO_P, OO_I));
                                }
                                if (int_optimize(sc, cddr(car_x)))
                                {
                                    opc->v[0].fi = opt_i_7pi_sf;
                                    return(oo_set_type_1(opc, 4, 1, OO_P));
                                }
                                pc_fallback(sc, start);
                            }
                        }
                    }
                    return(return_false(sc, car_x, __func__, __LINE__));
                }

// Assembly:
cmpb $0x30, (%rdx)
jb 0xa0fdb
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq 0x8(%rdx), %rax
movq 0x20(%rax), %rcx
testq %rcx, %rcx
je 0xa113b
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0x16, (%rcx)
je 0xa0fde
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0xa0fc8
jmp 0xa113b
xorl %eax, %eax
retq
movq 0x8(%rcx), %rbp
testq %rbp, %rbp
je 0xa113b
movq 0x38(%rax), %rax
cmpb $0x1, (%rax)
jne 0xa113b
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
cmpb $0xa, (%rsi)
jne 0xa113b
movq 0x10(%r15), %rax
movq 0x8(%rax), %rdx
cmpb $0xa, (%rdx)
jne 0xa113b
movl 0x2258(%r14), %ecx
movl %ecx, 0x4(%rsp)
movq 0x10(%rax), %rax
movq 0x8(%rax), %r13
movq %r14, %rdi
callq 0xbacd7
testq %rax, %rax
je 0xa113b
movq %rax, %r12
movq %rax, 0x8(%rbx)
movq 0x8(%r15), %rax
cmpq 0xfa8(%r14), %rax
je 0xa10d1
movq %rbp, 0x18(%rbx)
movq %r14, %rdi
movq %r13, %rsi
callq 0x9f8a2
testq %rax, %rax
je 0xa10f9
movq %rax, 0x10(%rbx)
leaq 0xde4(%rip), %rcx       # 0xa1e59
movq %rcx, (%rbx)
movq 0x8(%r15), %rcx
cmpq 0xfa8(%r14), %rcx
jne 0xa10b3
testb $0x4, 0x3(%rax)
je 0xa10b3
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x10(%r12), %rcx
cmpq 0x8(%rcx), %rax
jg 0xa10b3
leaq 0x19b79(%rip), %rax     # 0xbac1e
movq %rax, (%rbx)
leaq 0xdcb(%rip), %rax       # 0xa1e7a
movq %rax, 0x18(%rbx)
movabsq $0x200000004, %rax      # imm = 0x200000004
movq %rax, 0x60(%rbx)
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x70(%rbx)
jmp 0xa112c
movq 0x10(%r12), %rax
cmpb $0x16, (%rax)
jne 0xa113b
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xa1052
cmpq $0x1, 0x10(%rax)
jle 0xa1052
jmp 0xa113b
movq 0x10(%r15), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0x9fbc8
testb %al, %al
je 0xa1130
leaq 0xd78(%rip), %rax       # 0xa1e8c
movq %rax, (%rbx)
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x60(%rbx)
movl $0x0, 0x70(%rbx)
movb $0x1, %al
jmp 0xa113d
movl 0x4(%rsp), %eax
movl %eax, 0x2258(%r14)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq