// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: d_7pi_ok
static bool d_7pi_ok(s7_scheme *sc, opt_info *opc, s7_pointer s_func, s7_pointer car_x)
                {
                    /* float-vector-ref is checked for a 1D float-vector arg, but other callers should do type checking */
                    s7_d_7pi_t ifunc;
                    ifunc = s7_d_7pi_function(s_func);
                    if (ifunc)
                    {
                        int32_t start;
                        start = sc->pc;
                        opc->v[3].d_7pi_f = ifunc;
                        if (is_symbol(cadr(car_x)))  /* (float-vector-ref v i) */
                        {
                            s7_pointer arg2, p, obj;
                            opc->v[1].p = symbol_to_slot(sc, cadr(car_x));
                            if (!is_slot(opc->v[1].p))
                                return(return_false(sc, car_x, __func__, __LINE__));

                            obj = slot_value(opc->v[1].p);
                            if ((car(car_x) == sc->float_vector_ref_symbol) &&
                                    ((!is_float_vector(obj)) ||
                                     (vector_rank(obj) > 1)))
                                return(return_false(sc, car_x, __func__, __LINE__));

                            arg2 = caddr(car_x);
                            if (!is_pair(arg2))
                            {
                                if (is_opt_int(arg2))
                                {
                                    opc->v[2].i = integer(arg2);
                                    opc->v[0].fd = opt_d_7pi_sc;
                                    return(oo_set_type_1(opc, 4, 1, OO_P));
                                }
                                p = opt_integer_symbol(sc, arg2);
                                if (p)
                                {
                                    opc->v[2].p = p;
                                    opc->v[0].fd = opt_d_7pi_ss;
                                    if ((car(car_x) == sc->float_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[3].d_7pi_f = float_vector_ref_unchecked;
                                        return(oo_set_type_2(opc, 4, 1, 2, OO_FV, OO_I));
                                    }
                                    return(oo_set_type_2(opc, 4, 1, 2, OO_P, OO_I));
                                }
                                return(return_false(sc, car_x, __func__, __LINE__));
                            }
                            if (int_optimize(sc, cddr(car_x)))
                            {
                                opc->v[0].fd = opt_d_7pi_sf;
                                return(oo_set_type_1(opc, 4, 1, OO_P));
                            }
                            pc_fallback(sc, start);
                            return(return_false(sc, car_x, __func__, __LINE__));
                        }

                        if ((car(car_x) == sc->float_vector_ref_symbol) &&
                                ((!is_float_vector(cadr(car_x))) ||
                                 (vector_rank(cadr(car_x)) > 1)))          /* (float-vector-ref  #r2d((.1 .2) (.3 .4)) 3) */
                            return(return_false(sc, car_x, __func__, __LINE__));

                        if (cell_optimize(sc, cdr(car_x)))
                        {
                            opt_info *o2;
                            o2 = sc->opts[sc->pc];
                            if (int_optimize(sc, cddr(car_x)))
                            {
                                opc->v[0].fd = opt_d_7pi_ff;
                                opc->v[4].o1 = sc->opts[start];
                                opc->v[5].fp = sc->opts[start]->v[0].fp;
                                opc->v[8].o1 = o2;
                                opc->v[9].fi = o2->v[0].fi;
                                return(oo_set_type_0(opc, 10));
                            }
                        }
                        pc_fallback(sc, start);
                    }
                    return(return_false(sc, car_x, __func__, __LINE__));
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, %rdi
callq 0x4781d
testq %rax, %rax
je 0xa5189
movl 0x2258(%r14), %ebp
movq %rax, 0x18(%rbx)
movq 0x10(%r15), %rsi
movq 0x8(%rsi), %rax
movb (%rax), %cl
cmpb $0xa, %cl
jne 0xa4ff9
movq 0x8(%r14), %rdx
movq 0x18(%rdx), %rdi
movq 0x20(%rax), %rsi
movl $0x18, %ecx
cmpq %rsi, %rdi
je 0xa4fa0
jle 0xa4f62
movq 0x10(%rdx), %rdx
movq 0x18(%rdx), %rdi
cmpq %rdi, %rsi
jl 0xa4f55
cmpq %rsi, %rdi
je 0xa4fa0
movl $0x10, %ecx
cmpb $0x1c, (%rdx)
jne 0xa4fa0
movq 0x8(%rdx), %r12
testq %r12, %r12
sete %dil
je 0xa4f8c
cmpq %rax, 0x8(%r12)
je 0xa4f8f
movq 0x18(%r12), %r12
jmp 0xa4f75
movq %rsi, %r12
testb %dil, %dil
je 0xa4fa4
movq 0x10(%rdx), %rdx
cmpb $0x1c, (%rdx)
movq %r12, %rsi
je 0xa4f71
movq (%rax,%rcx), %r12
movq %r12, 0x8(%rbx)
cmpb $0x20, (%r12)
jne 0xa5181
movq 0x8(%r15), %rax
cmpq 0xef0(%r14), %rax
je 0xa50b4
movq 0x10(%r15), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
movzbl (%rsi), %ecx
cmpl $0x1, %ecx
je 0xa50e3
cmpl $0xb, %ecx
jne 0xa5117
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rbx)
leaq 0x1f53a(%rip), %rax     # 0xc452e
jmp 0xa50fd
movq 0x8(%r15), %rdx
cmpq 0xef0(%r14), %rdx
je 0xa508a
movq %r14, %rdi
callq 0xa8bbb
testb %al, %al
je 0xa507a
movslq 0x2258(%r14), %rax
movq 0x2260(%r14,%rax,8), %r12
movq 0x10(%r15), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0xa66f0
testb %al, %al
je 0xa507a
movslq %ebp, %rax
leaq 0x1f504(%rip), %rcx     # 0xc4547
movq %rcx, (%rbx)
movq 0x2260(%r14,%rax,8), %rcx
movq %rcx, 0x20(%rbx)
movq 0x2260(%r14,%rax,8), %rax
movq (%rax), %rax
movq %rax, 0x28(%rbx)
movq %r12, 0x40(%rbx)
movq (%r12), %rax
movq %rax, 0x48(%rbx)
movq $0xa, 0x60(%rbx)
jmp 0xa5174
movl %ebp, 0x2258(%r14)
movb $0x1, %cl
movb $0x1, %al
jmp 0xa5185
cmpb $0x17, %cl
jne 0xa5181
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xa500a
cmpq $0x1, 0x10(%rax)
jle 0xa500a
jmp 0xa5181
movq 0x10(%r12), %rax
cmpb $0x17, (%rax)
jne 0xa5181
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xa4fc4
cmpq $0x1, 0x10(%rax)
jle 0xa4fc4
jmp 0xa5181
movq %r14, %rdi
movq %rax, %rsi
callq 0xa66f0
testb %al, %al
je 0xa517a
leaq 0x1dddf(%rip), %rax     # 0xc2edc
movq %rax, (%rbx)
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x60(%rbx)
movl $0x0, 0x70(%rbx)
jmp 0xa5174
movq %r14, %rdi
callq 0xa639f
testq %rax, %rax
je 0xa5181
movq %rax, 0x10(%rbx)
leaq 0x1fcc(%rip), %rcx      # 0xa70fb
movq %rcx, (%rbx)
movq 0x8(%r15), %rcx
cmpq 0xef0(%r14), %rcx
jne 0xa5158
testb $0x4, 0x3(%rax)
je 0xa5158
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x10(%r12), %rcx
cmpq 0x8(%rcx), %rax
jle 0xa5194
movabsq $0x200000004, %rax      # imm = 0x200000004
movq %rax, 0x60(%rbx)
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x70(%rbx)
movb $0x1, %al
xorl %ecx, %ecx
jmp 0xa5185
movl %ebp, 0x2258(%r14)
xorl %ecx, %ecx
xorl %eax, %eax
testb %cl, %cl
je 0xa518b
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2089(%rip), %rax      # 0xa7224
movq %rax, 0x18(%rbx)
movabsq $0x200000004, %rax      # imm = 0x200000004
movq %rax, 0x60(%rbx)
movabsq $0x100000005, %rax      # imm = 0x100000005
jmp 0xa5170