// File: /workspace/github_c_makefile_star2_O1/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 0xb13d9
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %rbx
leal 0x1(%rax), %ecx
movl %ecx, 0x2258(%r14)
movq 0x2260(%r14,%rax,8), %rbp
movq $0x0, 0x38(%rbp)
movl 0x2258(%r14), %r13d
cmpq %r15, 0x10d0(%r14)
je 0xb1064
cmpq %r15, 0x11e0(%r14)
jne 0xb126f
cmpb $0x30, (%rbx)
jb 0xb11a4
movq 0x8(%rbx), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
sete %dl
je 0xb11a0
cmpl $0x39, (%rax)
je 0xb1059
movq 0x10(%rax), %rax
testq %rax, %rax
sete %dl
je 0xb11a0
cmpl $0x39, (%rax)
jne 0xb1044
movq 0x8(%rax), %rcx
xorl %edx, %edx
jmp 0xb11a0
cmpb $0x30, (%rbx)
jb 0xb109b
movq 0x8(%rbx), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
sete %dl
je 0xb1097
cmpl $0x38, (%rax)
je 0xb108f
movq 0x10(%rax), %rax
testq %rax, %rax
sete %dl
je 0xb1097
cmpl $0x38, (%rax)
jne 0xb107e
movq 0x8(%rax), %rcx
xorl %edx, %edx
jmp 0xb1097
testb %dl, %dl
je 0xb109d
xorl %ecx, %ecx
testq %rcx, %rcx
je 0xb126f
movq %rcx, 0x10(%rbp)
movq 0x10(%r12), %rsi
movq 0x8(%rsi), %rax
cmpb $0xa, (%rax)
jne 0xb114a
movq 0x8(%r14), %rdx
movq 0x18(%rdx), %rdi
movq 0x20(%rax), %rsi
movl $0x18, %ecx
cmpq %rsi, %rdi
je 0xb111d
jle 0xb10e1
movq 0x10(%rdx), %rdx
movq 0x18(%rdx), %rdi
cmpq %rdi, %rsi
jl 0xb10d4
cmpq %rsi, %rdi
je 0xb111d
movl $0x10, %ecx
cmpb $0x1c, (%rdx)
jne 0xb111d
movq 0x8(%rdx), %rsi
testq %rsi, %rsi
sete %r8b
je 0xb1109
cmpq %rax, 0x8(%rsi)
je 0xb110c
movq 0x18(%rsi), %rsi
jmp 0xb10f4
movq %rdi, %rsi
testb %r8b, %r8b
je 0xb1121
movq 0x10(%rdx), %rdx
cmpb $0x1c, (%rdx)
movq %rsi, %rdi
je 0xb10f0
movq (%rax,%rcx), %rsi
movq %rsi, 0x8(%rbp)
leaq 0x1427(%rip), %rax      # 0xb2553
movq %rax, (%rbp)
movabsq $0x100000003, %rax      # imm = 0x100000003
movq %rax, 0x60(%rbp)
movl $0x1, 0x70(%rbp)
jmp 0xb139d
movq %r14, %rdi
callq 0xa66f0
testb %al, %al
je 0xb126f
movq 0x8(%r12), %rax
cmpq 0x11c0(%r14), %rax
jne 0xb1194
movslq 0x2258(%r14), %rax
movq 0x2258(%r14,%rax,8), %rax
leaq -0xf4d(%rip), %rcx      # 0xb0231
cmpq %rcx, (%rax)
jne 0xb1194
leaq 0x13db(%rip), %rcx      # 0xb2565
cmpq %rcx, 0x18(%rax)
je 0xb13b2
leaq 0x13f9(%rip), %rax      # 0xb2594
jmp 0xb1266
testb %dl, %dl
je 0xb11a6
xorl %ecx, %ecx
testq %rcx, %rcx
je 0xb126f
movq %rcx, 0x10(%rbp)
movq 0x10(%r12), %rsi
movq 0x8(%rsi), %rax
cmpb $0xa, (%rax)
jne 0xb1253
movq 0x8(%r14), %rdx
movq 0x18(%rdx), %rdi
movq 0x20(%rax), %rsi
movl $0x18, %ecx
cmpq %rsi, %rdi
je 0xb1226
jle 0xb11ea
movq 0x10(%rdx), %rdx
movq 0x18(%rdx), %rdi
cmpq %rdi, %rsi
jl 0xb11dd
cmpq %rsi, %rdi
je 0xb1226
movl $0x10, %ecx
cmpb $0x1c, (%rdx)
jne 0xb1226
movq 0x8(%rdx), %rsi
testq %rsi, %rsi
sete %r8b
je 0xb1212
cmpq %rax, 0x8(%rsi)
je 0xb1215
movq 0x18(%rsi), %rsi
jmp 0xb11fd
movq %rdi, %rsi
testb %r8b, %r8b
je 0xb122a
movq 0x10(%rdx), %rdx
cmpb $0x1c, (%rdx)
movq %rsi, %rdi
je 0xb11f9
movq (%rax,%rcx), %rsi
movq %rsi, 0x8(%rbp)
leaq 0x138f(%rip), %rax      # 0xb25c4
movq %rax, (%rbp)
movabsq $0x100000003, %rax      # imm = 0x100000003
movq %rax, 0x60(%rbp)
movl $0x2, 0x70(%rbp)
jmp 0xb139d
movq %r14, %rdi
callq 0x47b96
testb %al, %al
je 0xb126f
leaq 0x136e(%rip), %rax      # 0xb25d4
movq %rax, (%rbp)
jmp 0xb1395
movl %r13d, 0x2258(%r14)
movq %rbx, %rdi
callq 0x477b5
movq %rax, %r13
testq %rax, %rax
je 0xb128d
xorl %ecx, %ecx
movq %r13, %rax
jmp 0xb12cb
cmpb $0x30, (%rbx)
jb 0xb12c7
movq 0x8(%rbx), %rax
movq 0x20(%rax), %rcx
testq %rcx, %rcx
sete %dl
je 0xb12c0
cmpl $0x1c, (%rcx)
je 0xb12b8
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
sete %dl
je 0xb12c0
cmpl $0x1c, (%rcx)
jne 0xb12a7
movq 0x8(%rcx), %rax
xorl %edx, %edx
jmp 0xb12c0
movq %rax, %rcx
testb %dl, %dl
je 0xb12cb
xorl %eax, %eax
xorl %ecx, %ecx
orq %r13, %rcx
je 0xb13a1
movq %rax, 0x10(%rbp)
movq 0x10(%r12), %rsi
movq 0x8(%rsi), %rax
cmpb $0xa, (%rax)
jne 0xb1352
movq %r14, %rdi
movq %rax, %rsi
callq 0xac2d6
movq %rax, %rcx
testq %rax, %rax
setne %al
je 0xb13a3
testq %r13, %r13
movq %rcx, 0x8(%rbp)
leaq 0x12f3(%rip), %r14      # 0xb2601
leaq 0x12fa(%rip), %rax      # 0xb260f
cmovneq %r14, %rax
movq %rax, (%rbp)
movq 0x10(%rcx), %rax
cmpb $0x8, (%rax)
jne 0xb133b
movq %rbx, %rdi
callq 0xb2621
testq %rax, %rax
je 0xb133b
movq %rax, 0x10(%rbp)
movq %r14, (%rbp)
movabsq $0x100000003, %rax      # imm = 0x100000003
movq %rax, 0x60(%rbp)
movl $0x0, 0x70(%rbp)
jmp 0xb139d
movq %r14, %rdi
callq 0xa8bbb
testb %al, %al
je 0xb13a1
testq %r13, %r13
leaq 0x12e6(%rip), %r12      # 0xb264e
leaq 0x130f(%rip), %rax      # 0xb267e
cmovneq %r12, %rax
movq %rax, (%rbp)
cmpq %r15, 0x1020(%r14)
jne 0xb1395
movq %rbx, %rdi
callq 0xb2621
testq %rax, %rax
je 0xb1395
movq %rax, 0x10(%rbp)
movq %r12, (%rbp)
movq $0x3, 0x60(%rbp)
movb $0x1, %al
jmp 0xb13a3
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x11c2(%rip), %rcx      # 0xb257b
movq %rcx, (%rbp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rbp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rbp)
decl 0x2258(%r14)
jmp 0xb1130
addq $0x2190, %r14           # imm = 0x2190
movq %r14, %rdi
movl $0x1, %esi
callq 0x9530