// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: b_idp_ok
static bool b_idp_ok(s7_scheme *sc, s7_pointer s_func, s7_pointer car_x, s7_pointer arg_type)
                {
                    int32_t cur_index;
                    s7_b_p_t bpf = NULL;
                    s7_b_7p_t bpf7 = NULL;
                    opt_info *opc;

                    opc = alloc_opo(sc, car_x);
                    cur_index = sc->pc;

                    if (arg_type == sc->is_integer_symbol)
                    {
                        s7_b_i_t bif;
                        bif = s7_b_i_function(s_func);
                        if (bif)
                        {
                            opc->v[2].b_i_f = bif;
                            if (is_symbol(cadr(car_x)))
                            {
                                opc->v[1].p = symbol_to_slot(sc, cadr(car_x));
                                opc->v[0].fb = opt_b_i_s;
                                return(oo_set_type_1(opc, 3, 1, OO_I));
                            }
                            if (int_optimize(sc, cdr(car_x)))
                            {
#if (!WITH_GMP)
                                opt_info *o1;
                                o1 = sc->opts[sc->pc - 1];
                                if ((car(car_x) == sc->is_zero_symbol) &&
                                        (o1->v[0].fi == opt_i_ii_sc) &&
                                        (o1->v[3].i_ii_f == modulo_i_ii_direct))
                                {
                                    opc->v[0].fb = opt_zero_mod;
                                    opc->v[1].p = o1->v[1].p;
                                    opc->v[2].i = o1->v[2].i;
                                    backup_pc(sc);
                                    return(oo_set_type_1(opc, 3, 1, OO_I));
                                }
#endif
                                opc->v[0].fb = opt_b_i_f;
                                return(oo_set_type_0(opc, 3));
                            }
                        }
                    }
                    else
                    {
                        if (arg_type == sc->is_float_symbol)
                        {
                            s7_b_d_t bdf;
                            bdf = s7_b_d_function(s_func);
                            if (bdf)
                            {
                                opc->v[2].b_d_f = bdf;
                                if (is_symbol(cadr(car_x)))
                                {
                                    opc->v[1].p = symbol_to_slot(sc, cadr(car_x));
                                    opc->v[0].fb = opt_b_d_s;
                                    return(oo_set_type_1(opc, 3, 1, OO_D));
                                }
                                if (float_optimize(sc, cdr(car_x)))
                                {
                                    opc->v[0].fb = opt_b_d_f;
                                    return(oo_set_type_0(opc, 3));
                                }
                            }
                        }
                    }
                    pc_fallback(sc, cur_index);

                    bpf = s7_b_p_function(s_func);
                    if (!bpf) bpf7 = s7_b_7p_function(s_func);
                    if ((bpf) || (bpf7))
                    {
                        if (bpf)
                            opc->v[2].b_p_f = bpf;
                        else opc->v[2].b_7p_f = bpf7;
                        if (is_symbol(cadr(car_x)))
                        {
                            s7_pointer p;
                            p = opt_simple_symbol(sc, cadr(car_x));
                            if (!p) return(return_false(sc, car_x, __func__, __LINE__));
                            opc->v[1].p = p;
                            opc->v[0].fb = (bpf) ? opt_b_p_s : opt_b_7p_s;
                            if (s7_is_character(slot_value(p)))
                            {
                                bpf = s7_b_p_direct_function(s_func);
                                if (bpf)
                                {
                                    opc->v[2].b_p_f = bpf;
                                    opc->v[0].fb = opt_b_p_s;
                                }
                            }
                            return(oo_set_type_1(opc, 3, 1, OO_P));
                        }
                        if (cell_optimize(sc, cdr(car_x)))
                        {
                            opc->v[0].fb = (bpf) ? opt_b_p_f : opt_b_7p_f;
                            if (arg_type == sc->is_char_symbol)
                            {
                                bpf = s7_b_p_direct_function(s_func);
                                if (bpf)
                                {
                                    opc->v[2].b_p_f = bpf;
                                    opc->v[0].fb = opt_b_p_f;
                                }
                            }
                            return(oo_set_type_0(opc, 3));
                        }
                    }
                    return(return_false(sc, car_x, __func__, __LINE__));
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movslq 0x2258(%rdi), %rax
cmpq $0x100, %rax            # imm = 0x100
jge 0xaa4e1
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %rbx
leal 0x1(%rax), %ecx
movl %ecx, 0x2258(%r14)
movq 0x2260(%r14,%rax,8), %r13
movq $0x0, 0x38(%r13)
movl 0x2258(%r14), %ebp
cmpq %r15, 0x10d0(%r14)
je 0xaa14c
cmpq %r15, 0x11e0(%r14)
jne 0xaa2da
cmpb $0x30, (%rbx)
jb 0xaa2da
movq 0x8(%rbx), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xaa2da
cmpl $0x39, (%rax)
je 0xaa1f0
movq 0x10(%rax), %rax
jmp 0xaa134
cmpb $0x30, (%rbx)
jb 0xaa2da
movq 0x8(%rbx), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xaa2da
cmpl $0x38, (%rax)
je 0xaa171
movq 0x10(%rax), %rax
jmp 0xaa15d
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xaa2da
movq %rax, 0x10(%r13)
movq 0x10(%r12), %rsi
movq 0x8(%rsi), %rax
cmpb $0xa, (%rax)
jne 0xaa26f
movq 0x8(%r14), %rdx
movq 0x18(%rdx), %rdi
movq 0x20(%rax), %rsi
movl $0x18, %ecx
cmpq %rsi, %rdi
je 0xaa1c2
jle 0xaa1b9
movq 0x10(%rdx), %rdx
movq 0x18(%rdx), %rdi
cmpq %rdi, %rsi
jl 0xaa1ac
cmpq %rsi, %rdi
jne 0xaa415
movq (%rax,%rcx), %rsi
movq %rsi, 0x8(%r13)
leaq 0x1411(%rip), %rax      # 0xab5e2
movq %rax, (%r13)
movabsq $0x100000003, %rax      # imm = 0x100000003
movq %rax, 0x60(%r13)
movl $0x1, 0x70(%r13)
jmp 0xaa4b2
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xaa2da
movq %rax, 0x10(%r13)
movq 0x10(%r12), %rsi
movq 0x8(%rsi), %rax
cmpb $0xa, (%rax)
jne 0xaa2be
movq 0x8(%r14), %rdx
movq 0x18(%rdx), %rdi
movq 0x20(%rax), %rsi
movl $0x18, %ecx
cmpq %rsi, %rdi
je 0xaa241
jle 0xaa238
movq 0x10(%rdx), %rdx
movq 0x18(%rdx), %rdi
cmpq %rdi, %rsi
jl 0xaa22b
cmpq %rsi, %rdi
jne 0xaa46b
movq (%rax,%rcx), %rsi
movq %rsi, 0x8(%r13)
leaq 0x1403(%rip), %rax      # 0xab653
movq %rax, (%r13)
movabsq $0x100000003, %rax      # imm = 0x100000003
movq %rax, 0x60(%r13)
movl $0x2, 0x70(%r13)
jmp 0xaa4b2
movq %r14, %rdi
callq 0x9fbc8
testb %al, %al
je 0xaa2da
movq 0x8(%r12), %rax
cmpq 0x11c0(%r14), %rax
jne 0xaa2b5
movslq 0x2258(%r14), %rax
movq 0x2258(%r14,%rax,8), %rax
leaq -0xf99(%rip), %rcx      # 0xa9306
cmpq %rcx, (%rax)
jne 0xaa2b5
leaq 0x1349(%rip), %rcx      # 0xab5f4
cmpq %rcx, 0x18(%rax)
je 0xaa4ba
leaq 0x1367(%rip), %rax      # 0xab623
jmp 0xaa2d1
movq %r14, %rdi
callq 0x44f61
testb %al, %al
je 0xaa2da
leaq 0x1392(%rip), %rax      # 0xab663
movq %rax, (%r13)
jmp 0xaa4aa
movl %ebp, 0x2258(%r14)
cmpb $0x30, (%rbx)
jb 0xaa322
movq 0x8(%rbx), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xaa322
movq %rax, %rcx
cmpl $0x1a, (%rcx)
je 0xaa306
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0xaa2f6
jmp 0xaa31d
movq 0x8(%rcx), %rcx
movb $0x1, %bpl
testq %rcx, %rcx
jne 0xaa340
jmp 0xaa31d
cmpl $0x1c, (%rax)
je 0xaa335
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xaa314
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rax), %rcx
xorl %ebp, %ebp
testq %rcx, %rcx
je 0xaa324
movq %rcx, 0x10(%r13)
movq 0x10(%r12), %rsi
movq 0x8(%rsi), %rax
cmpb $0xa, (%rax)
jne 0xaa3b6
movq 0x8(%r14), %rdi
movq %rax, %rsi
callq 0xa56a4
testq %rax, %rax
je 0xaa322
movq %rax, 0x8(%r13)
leaq 0x1322(%rip), %rcx      # 0xab690
leaq 0x1329(%rip), %rdx      # 0xab69e
testb %bpl, %bpl
cmovneq %rcx, %rdx
movq %rdx, (%r13)
movq 0x10(%rax), %rax
cmpb $0x8, (%rax)
jne 0xaa453
cmpb $0x30, (%rbx)
jb 0xaa453
movq 0x8(%rbx), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xaa453
cmpl $0x1b, (%rax)
je 0xaa442
movq 0x10(%rax), %rax
jmp 0xaa39e
movq %r14, %rdi
callq 0xa2000
testb %al, %al
je 0xaa322
leaq 0x12e3(%rip), %rax      # 0xab6b0
leaq 0x130c(%rip), %rcx      # 0xab6e0
testb %bpl, %bpl
cmovneq %rax, %rcx
movq %rcx, (%r13)
cmpq %r15, 0x1020(%r14)
jne 0xaa4aa
cmpb $0x30, (%rbx)
jb 0xaa4aa
movq 0x8(%rbx), %rcx
movq 0x20(%rcx), %rcx
testq %rcx, %rcx
je 0xaa4aa
cmpl $0x1b, (%rcx)
je 0xaa498
movq 0x10(%rcx), %rcx
jmp 0xaa3fd
movl $0x10, %ecx
cmpb $0x1c, (%rdx)
jne 0xaa1c2
movq 0x8(%rdx), %rsi
testq %rsi, %rsi
je 0xaa43c
cmpq %rax, 0x8(%rsi)
je 0xaa1c6
movq 0x18(%rsi), %rsi
jmp 0xaa427
movq 0x10(%rdx), %rdx
jmp 0xaa41a
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xaa453
movq %rax, 0x10(%r13)
movq %rcx, (%r13)
movabsq $0x100000003, %rax      # imm = 0x100000003
movq %rax, 0x60(%r13)
movl $0x0, 0x70(%r13)
jmp 0xaa4b2
movl $0x10, %ecx
cmpb $0x1c, (%rdx)
jne 0xaa241
movq 0x8(%rdx), %rsi
testq %rsi, %rsi
je 0xaa492
cmpq %rax, 0x8(%rsi)
je 0xaa245
movq 0x18(%rsi), %rsi
jmp 0xaa47d
movq 0x10(%rdx), %rdx
jmp 0xaa470
movq 0x8(%rcx), %rcx
testq %rcx, %rcx
je 0xaa4aa
movq %rcx, 0x10(%r13)
jmp 0xaa2d1
movq $0x3, 0x60(%r13)
movb $0x1, %bpl
jmp 0xaa324
leaq 0x1149(%rip), %rcx      # 0xab60a
movq %rcx, (%r13)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%r13)
movq 0x10(%rax), %rax
movq %rax, 0x10(%r13)
decl 0x2258(%r14)
jmp 0xaa1d5
addq $0x2190, %r14           # imm = 0x2190
movq %r14, %rdi
movl $0x1, %esi
callq 0x8530