// File: /workspace/github_c_makefile_star2_O3/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
pushq %rax
cmpb $0x30, (%rdx)
jb 0xa1431
movq %rcx, %r15
movq 0x8(%rdx), %rax
movq 0x20(%rax), %rcx
testq %rcx, %rcx
je 0xa1431
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0x17, (%rcx)
je 0xa123f
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0xa122c
jmp 0xa1431
movq 0x8(%rcx), %r13
testq %r13, %r13
je 0xa1431
movq 0x38(%rax), %rdx
cmpb $0x1, (%rdx)
jne 0xa1431
movq 0x10(%r15), %rax
movq 0x8(%rax), %rcx
cmpb $0xa, (%rcx)
jne 0xa1431
movq 0x8(%r15), %r12
cmpq 0xfb0(%r14), %r12
je 0xa135e
cmpq 0xc38(%r14), %r12
je 0xa1365
movq 0x10(%rdx), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdi
movq %rcx, %rdx
callq 0xbacd7
testq %rax, %rax
je 0xa1431
movl 0x2258(%r14), %ebp
movq %rax, 0x8(%rbx)
cmpq 0xfa8(%r14), %r12
je 0xa12c1
cmpq 0xc30(%r14), %r12
jne 0xa12e1
movq 0x10(%rax), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xa1431
cmpq $0x2, 0x10(%rax)
jne 0xa1431
movq 0x10(%r15), %rax
movq 0x10(%rax), %r12
movq 0x8(%r12), %rsi
movq %r14, %rdi
callq 0x9f8a2
testq %rax, %rax
je 0xa1389
movq %rax, 0x10(%rbx)
movq 0x10(%r15), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %r15
movq 0x8(%r15), %rsi
movq %r14, %rdi
callq 0x9f8a2
testq %rax, %rax
je 0xa13de
movq %rax, 0x18(%rbx)
movq %r13, 0x20(%rbx)
leaq 0xb9f(%rip), %rax       # 0xa1ed2
movq %rax, (%rbx)
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x70(%rbx)
movabsq $0x300000005, %rax      # imm = 0x300000005
movq %rax, 0x60(%rbx)
movl $0x1, 0x78(%rbx)
jmp 0xa142d
movl $0x4, %esi
jmp 0xa136a
movl $0xa, %esi
movq 0x10(%rax), %r8
movq 0x10(%r8), %rax
movq %rax, (%rsp)
movq %r14, %rdi
movq %rbx, %rdx
xorl %r9d, %r9d
callq 0xa17a5
jmp 0xa1433
movq %r14, %rdi
movq %r12, %rsi
callq 0x9fbc8
testb %al, %al
je 0xa13d5
movq 0x10(%r15), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0x9fbc8
testb %al, %al
je 0xa13d5
movq %r13, 0x18(%rbx)
leaq 0x76f(%rip), %rax       # 0xa1b2a
movq %rax, (%rbx)
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x60(%rbx)
movl $0x0, 0x70(%rbx)
jmp 0xa142d
movl %ebp, 0x2258(%r14)
jmp 0xa1431
movq %r14, %rdi
movq %r15, %rsi
callq 0x9fbc8
testb %al, %al
je 0xa1431
movslq %ebp, %rax
movq %r13, 0x18(%rbx)
leaq 0x6df(%rip), %rcx       # 0xa1ada
movq %rcx, (%rbx)
movq 0x2260(%r14,%rax,8), %rax
movq %rax, 0x20(%rbx)
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
jmp 0xa1433
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq