// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: p_piip_ok
static bool p_piip_ok(s7_scheme *sc, opt_info *opc, s7_pointer s_func, s7_pointer car_x)
                {
                    /* this currently assumes s_func == vector-set! because there aren't any other p_piip functions(!) */
                    s7_p_piip_t func;
                    func = s7_p_piip_function(s_func);
                    if ((func) &&
                            (is_symbol(cadr(car_x))))
                    {
                        s7_pointer slot1, obj;
                        slot1 = symbol_to_slot(sc, cadr(car_x));
                        if (!is_slot(slot1))
                            return(return_false(sc, car_x, __func__, __LINE__));
                        obj = slot_value(slot1);
                        if ((has_methods(obj)) || (is_immutable(obj)))
                            return(return_false(sc, car_x, __func__, __LINE__));
                        if ((is_any_vector(obj)) && /* vector_set_p_piip calls vector_setter(obj) */
                                (vector_rank(obj) == 2))
                        {
                            s7_pointer indexp1, indexp2, valp, slot;
                            indexp1 = cddr(car_x);
                            indexp2 = cdddr(car_x);
                            valp = cddddr(car_x);
                            opc->v[1].p = slot1;
                            opc->v[5].p_piip_f = vector_set_p_piip;
                            slot = opt_integer_symbol(sc, car(indexp2));
                            if (slot)
                            {
                                opc->v[3].p = slot;
                                slot = opt_integer_symbol(sc, car(indexp1));
                                if (slot)
                                {
                                    opc->v[2].p = slot;
                                    if ((is_symbol(car(valp))) ||
                                            (is_unquoted_pair(car(valp))))
                                    {
                                        if (cell_optimize(sc, valp))
                                        {
                                            opc->v[0].fp = opt_p_piip_sssf;
                                            return(oo_set_type_3(opc, 6, 1, 2, 3, OO_P, OO_I, OO_I));
                                        }
                                        return(return_false(sc, car_x, __func__, __LINE__));
                                    }
                                    opc->v[0].fp = opt_p_piip_sssc;
                                    opc->v[4].p = (is_pair(car(valp))) ? cadar(valp) : car(valp);
                                    return(oo_set_type_3(opc, 6, 1, 2, 3, OO_P, OO_I, OO_I));
                                }
                            }
                            if ((int_optimize(sc, indexp1)) &&
                                    (int_optimize(sc, indexp2)) &&
                                    (cell_optimize(sc, valp)))
                            {
                                opc->v[0].fp = opt_p_piip_sfff;
                                return(oo_set_type_1(opc, 6, 1, (is_typed_vector(obj)) ? OO_TV : OO_PV));
                            }}}
                    return(return_false(sc, car_x, __func__, __LINE__));
                }

// Assembly:
cmpb $0x30, (%rdx)
jb 0xa536b
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x8(%rdx), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xa551c
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0x37, (%rax)
je 0xa536e
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xa5358
jmp 0xa551c
xorl %eax, %eax
retq
cmpq $0x0, 0x8(%rax)
je 0xa551c
movq 0x10(%rcx), %rax
movq 0x8(%rax), %rcx
cmpb $0xa, (%rcx)
jne 0xa551c
movq 0x8(%r14), %rsi
movq 0x18(%rsi), %r8
movq 0x20(%rcx), %rdi
movl $0x18, %edx
cmpq %rdi, %r8
je 0xa53b8
jle 0xa53af
movq 0x10(%rsi), %rsi
movq 0x18(%rsi), %r8
cmpq %r8, %rdi
jl 0xa53a2
cmpq %rdi, %r8
jne 0xa549c
movq (%rcx,%rdx), %rdi
cmpb $0x20, (%rdi)
jne 0xa551c
movq 0x10(%rdi), %rbp
movq (%rbp), %rcx
testl $0x41000000, %ecx       # imm = 0x41000000
jne 0xa551c
movzbl %cl, %ecx
leaq 0xa583d(%rip), %rdx     # 0x14ac20
cmpb $0x1, (%rcx,%rdx)
jne 0xa551c
movq 0x18(%rbp), %rcx
movq 0x20(%rcx), %rcx
testq %rcx, %rcx
je 0xa551c
cmpq $0x2, 0x10(%rcx)
jne 0xa551c
movq 0x10(%rax), %r13
movq 0x10(%r13), %r12
movq 0x10(%r12), %r15
movq %rdi, 0x8(%rbx)
leaq -0x233a9(%rip), %rax    # 0x82078
movq %rax, 0x28(%rbx)
movq 0x8(%r12), %rsi
movq %r14, %rdi
callq 0x9f8a2
testq %rax, %rax
je 0xa54c9
movq %rax, 0x18(%rbx)
movq 0x8(%r13), %rsi
movq %r14, %rdi
callq 0x9f8a2
testq %rax, %rax
je 0xa54c9
movq %rax, 0x10(%rbx)
movq 0x8(%r15), %rax
movzbl (%rax), %ecx
cmpl $0xa, %ecx
je 0xa547a
cmpl $0x1, %ecx
jne 0xa552d
movq 0x8(%rax), %rax
cmpq 0x17b0(%r14), %rax
je 0xa552d
movq %r14, %rdi
movq %r15, %rsi
callq 0xa2000
testb %al, %al
je 0xa551c
leaq 0x372e(%rip), %rax      # 0xa8bc2
movq %rax, (%rbx)
jmp 0xa554c
movl $0x10, %edx
cmpb $0x1c, (%rsi)
jne 0xa53b8
movq 0x8(%rsi), %rdi
testq %rdi, %rdi
je 0xa54c3
cmpq %rcx, 0x8(%rdi)
je 0xa53bc
movq 0x18(%rdi), %rdi
jmp 0xa54ae
movq 0x10(%rsi), %rsi
jmp 0xa54a1
movq %r14, %rdi
movq %r13, %rsi
callq 0x9fbc8
testb %al, %al
je 0xa551c
movq %r14, %rdi
movq %r12, %rsi
callq 0x9fbc8
testb %al, %al
je 0xa551c
movq %r14, %rdi
movq %r15, %rsi
callq 0xa2000
testb %al, %al
je 0xa551c
leaq 0x3763(%rip), %rax      # 0xa8c60
movq %rax, (%rbx)
movzwl 0x6(%rbp), %eax
andl $0x2, %eax
leal 0x6(,%rax,4), %eax
movl $0x1, 0x64(%rbx)
movl $0x70, %ecx
jmp 0xa556b
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x36fa(%rip), %rax      # 0xa8c2e
movq %rax, (%rbx)
movq 0x8(%r15), %rax
cmpb $0x1, (%rax)
jne 0xa5548
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x20(%rbx)
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x70(%rbx)
movl $0x3, 0x64(%rbx)
movl $0x1, %eax
movl $0x78, %ecx
movl $0x6, 0x60(%rbx)
movl %eax, (%rbx,%rcx)
movb $0x1, %al
jmp 0xa551e