// File: /workspace/github_c_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movq %rsi, %rbx
movq %rdi, %r14
cmpb $0x30, (%rdx)
jb 0xa7af8
movq 0x8(%rdx), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
sete %cl
je 0xa7af4
cmpl $0x16, (%rax)
je 0xa7aec
movq 0x10(%rax), %rax
testq %rax, %rax
sete %cl
je 0xa7af4
cmpl $0x16, (%rax)
jne 0xa7adb
movq 0x8(%rax), %r13
xorl %ecx, %ecx
jmp 0xa7af4
testb %cl, %cl
je 0xa7afb
xorl %r13d, %r13d
testq %r13, %r13
je 0xa7c6f
movq 0x8(%rdx), %rax
movq 0x38(%rax), %rax
movb $0x1, %bpl
cmpb $0x1, (%rax)
jne 0xa7c6a
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
cmpb $0xa, (%rsi)
jne 0xa7c6a
movq 0x10(%r15), %rax
movq 0x8(%rax), %rdx
cmpb $0xa, (%rdx)
jne 0xa7c6a
movl 0x2258(%r14), %ecx
movl %ecx, 0xc(%rsp)
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%rsp)
movq %r14, %rdi
callq 0xc2a5c
testq %rax, %rax
je 0xa7c6a
movq %rax, %r12
movq %rax, 0x8(%rbx)
movq 0x8(%r15), %rax
cmpq 0xfa8(%r14), %rax
je 0xa7bfc
movq %r13, 0x18(%rbx)
movq %r14, %rdi
movq 0x10(%rsp), %rsi
callq 0xa639f
testq %rax, %rax
je 0xa7c26
movq %rax, 0x10(%rbx)
leaq 0xe47(%rip), %rcx       # 0xa89e7
movq %rcx, (%rbx)
movq 0x8(%r15), %rcx
cmpq 0xfa8(%r14), %rcx
jne 0xa7bde
testb $0x4, 0x3(%rax)
je 0xa7bde
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x10(%r12), %rcx
cmpq 0x8(%rcx), %rax
jg 0xa7bde
leaq 0x1add3(%rip), %rax     # 0xc29a3
movq %rax, (%rbx)
leaq 0xe2e(%rip), %rax       # 0xa8a08
movq %rax, 0x18(%rbx)
movabsq $0x200000004, %rax      # imm = 0x200000004
movq %rax, 0x60(%rbx)
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x70(%rbx)
jmp 0xa7c59
movq 0x10(%r12), %rax
cmpb $0x16, (%rax)
jne 0xa7c22
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xa7b7b
cmpq $0x1, 0x10(%rax)
jle 0xa7b7b
xorl %eax, %eax
jmp 0xa7c5b
movq 0x10(%r15), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0xa66f0
testb %al, %al
je 0xa7c5f
leaq 0xdd9(%rip), %rax       # 0xa8a1a
movq %rax, (%rbx)
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x60(%rbx)
movl $0x0, 0x70(%rbx)
movb $0x1, %al
xorl %ebp, %ebp
jmp 0xa7c6a
movl 0xc(%rsp), %eax
movl %eax, 0x2258(%r14)
testb %bpl, %bpl
je 0xa7c71
xorl %eax, %eax
andb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq