// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: i_7pii_ok
static bool i_7pii_ok(s7_scheme *sc, opt_info *opc, s7_pointer s_func, s7_pointer car_x)
                {
                    s7_i_7pii_t pfunc;
                    pfunc = s7_i_7pii_function(s_func);
                    if (pfunc)
                    {
                        s7_pointer sig;
                        sig = c_function_signature(s_func);
                        if ((is_pair(sig)) &&
                                (is_symbol(cadr(car_x))))
                        {
                            s7_pointer fname, slot;
                            fname = car(car_x);

                            if ((fname == sc->int_vector_set_symbol) || (fname == sc->byte_vector_set_symbol))
                                return(opt_int_vector_set(sc, (fname == sc->int_vector_set_symbol) ? OO_IV : OO_BV, opc, cadr(car_x), cddr(car_x), NULL, cdddr(car_x)));

                            slot = opt_types_match(sc, cadr(sig), cadr(car_x));
                            if (slot)
                            {
                                s7_pointer arg2, p;
                                int32_t start;
                                start = sc->pc;
                                opc->v[1].p = slot;

                                if (((fname == sc->int_vector_ref_symbol) || (fname == sc->byte_vector_ref_symbol)) &&
                                        (vector_rank(slot_value(slot)) != 2))
                                    return(return_false(sc, car_x, __func__, __LINE__));

                                arg2 = caddr(car_x);
                                p = opt_integer_symbol(sc, arg2);
                                if (p)
                                {
                                    opc->v[2].p = p;
                                    p = opt_integer_symbol(sc, cadddr(car_x));
                                    if (p)
                                    {
                                        opc->v[3].p = p;
                                        opc->v[4].i_7pii_f = pfunc;
                                        opc->v[0].fi = opt_i_7pii_sss;
                                        return(oo_set_type_3(opc, 5, 1, 2, 3, OO_P, OO_I, OO_I));
                                    }
                                    if (int_optimize(sc, cdddr(car_x)))
                                    {
                                        opc->v[3].i_7pii_f = pfunc;
                                        opc->v[0].fi = opt_i_7pii_ssf;
                                        opc->v[4].o1 = sc->opts[start];
                                        opc->v[5].fi = sc->opts[start]->v[0].fi;
                                        return(oo_set_type_2(opc, 6, 1, 2, OO_P, OO_I));
                                    }
                                    return(return_false(sc, car_x, __func__, __LINE__));
                                }
                                if ((int_optimize(sc, cddr(car_x))) &&
                                        (int_optimize(sc, cdddr(car_x))))
                                {
                                    opc->v[3].i_7pii_f = pfunc;
                                    opc->v[0].fi = opt_i_7pii_sff;
                                    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, %r12
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, %rdi
callq 0xab646
testq %rax, %rax
je 0xa7eeb
movq %rax, %r15
movq 0x8(%r13), %rax
movq 0x38(%rax), %rdx
movb $0x1, %bpl
cmpb $0x1, (%rdx)
jne 0xa7ee6
movq 0x10(%r12), %rax
movq 0x8(%rax), %rcx
cmpb $0xa, (%rcx)
jne 0xa7ee6
movq 0x8(%r12), %r13
cmpq 0xfb0(%r14), %r13
je 0xa7e64
cmpq 0xc38(%r14), %r13
je 0xa7e6b
movq 0x10(%rdx), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdi
movq %rcx, %rdx
callq 0xc2a5c
testq %rax, %rax
je 0xa7ee6
movl 0x2258(%r14), %ecx
movq %rax, 0x8(%rbx)
cmpq 0xfa8(%r14), %r13
je 0xa7dc1
cmpq 0xc30(%r14), %r13
jne 0xa7de1
movq 0x10(%rax), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xa7f5d
cmpq $0x2, 0x10(%rax)
jne 0xa7f5d
movl %ecx, 0x14(%rsp)
movq 0x10(%r12), %rax
movq 0x10(%rax), %r13
movq 0x8(%r13), %rsi
movq %r14, %rdi
callq 0xa639f
testq %rax, %rax
je 0xa7e8e
movq %rax, 0x10(%rbx)
movq 0x10(%r12), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %r12
movq 0x8(%r12), %rsi
movq %r14, %rdi
callq 0xa639f
testq %rax, %rax
je 0xa7efe
movq %rax, 0x18(%rbx)
movq %r15, 0x20(%rbx)
leaq 0xc27(%rip), %rax       # 0xa8a60
movq %rax, (%rbx)
movabsq $0x300000005, %rax      # imm = 0x300000005
movq %rax, 0x60(%rbx)
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x70(%rbx)
movl $0x1, 0x78(%rbx)
jmp 0xa7f57
movl $0x4, %esi
jmp 0xa7e70
movl $0xa, %esi
movq 0x10(%rax), %r8
movq 0x10(%r8), %rax
movq %rax, (%rsp)
xorl %ebp, %ebp
movq %r14, %rdi
movq %rbx, %rdx
xorl %r9d, %r9d
callq 0xa82ef
jmp 0xa7ee6
movq %r14, %rdi
movq %r13, %rsi
callq 0xa66f0
testb %al, %al
je 0xa7edb
movq 0x10(%r12), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0xa66f0
testb %al, %al
je 0xa7edb
movq %r15, 0x18(%rbx)
leaq 0x7e9(%rip), %rax       # 0xa86aa
movq %rax, (%rbx)
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x60(%rbx)
movl $0x0, 0x70(%rbx)
jmp 0xa7f57
movl 0x14(%rsp), %eax
movl %eax, 0x2258(%r14)
testb %bpl, %bpl
je 0xa7eed
xorl %eax, %eax
andb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movq %r12, %rsi
callq 0xa66f0
testb %al, %al
je 0xa7f5d
movslq 0x14(%rsp), %rax
movq %r15, 0x18(%rbx)
leaq 0x73d(%rip), %rcx       # 0xa865a
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)
movabsq $0x200000006, %rax      # imm = 0x200000006
movq %rax, 0x60(%rbx)
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x70(%rbx)
movb $0x1, %al
xorl %ebp, %ebp
jmp 0xa7ee6
xorl %ebp, %ebp
xorl %eax, %eax
jmp 0xa7ee6