// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: i_idp_ok
static bool i_idp_ok(s7_scheme *sc, opt_info *opc, s7_pointer s_func, s7_pointer car_x)
                {
                    s7_i_i_t func;
                    s7_i_7i_t func7 = NULL;
                    s7_i_7d_t idf;
                    s7_i_7p_t ipf;
                    s7_pointer p;
                    int32_t start;
                    start = sc->pc;

                    func = s7_i_i_function(s_func);
                    if (!func)
                        func7 = s7_i_7i_function(s_func);
                    if ((func) || (func7))
                    {
                        if (func)
                            opc->v[2].i_i_f = func;
                        else opc->v[2].i_7i_f = func7;
                        if (is_opt_int(cadr(car_x)))
                        {
                            opc->v[1].i = integer(cadr(car_x));
                            if (func)
                                opc->v[0].fi = opt_i_i_c;
                            else opc->v[0].fi = opt_i_7i_c;
                            return(oo_set_type_0(opc, 3));
                        }
                        p = opt_integer_symbol(sc, cadr(car_x));
                        if (p)
                        {
                            opc->v[1].p = p;
                            if (func)
                                opc->v[0].fi = opt_i_i_s;
                            else opc->v[0].fi = opt_i_7i_s;
                            return(oo_set_type_1(opc, 3, 1, OO_I));
                        }
                        if (int_optimize(sc, cdr(car_x)))
                        {
                            if (func)
                            {
                                opc->v[0].fi = opt_i_i_f;
                                opc->v[3].o1 = sc->opts[start];
                                opc->v[4].fi = sc->opts[start]->v[0].fi;
                                return(oo_set_type_0(opc, 5));
                            }
                            opc->v[0].fi = opt_i_7i_f;
                            return(oo_set_type_0(opc, 3));
                        }
                        pc_fallback(sc, start);
                    }
                    idf = s7_i_7d_function(s_func);
                    if (idf)
                    {
                        opc->v[2].i_7d_f = idf;
                        if (is_real(cadr(car_x)))
                        {
                            opc->v[1].x = s7_number_to_real(sc, cadr(car_x));
                            opc->v[0].fi = opt_i_d_c;
                            return(oo_set_type_0(opc, 3));
                        }
                        p = opt_float_symbol(sc, cadr(car_x));
                        if (p)
                        {
                            opc->v[1].p = p;
                            opc->v[0].fi = opt_i_d_s;
                            return(oo_set_type_1(opc, 3, 1, OO_D));
                        }
                        if (float_optimize(sc, cdr(car_x)))
                        {
                            opc->v[0].fi = opt_i_7d_f;
                            return(oo_set_type_0(opc, 3));
                        }
                        pc_fallback(sc, start);
                    }
                    ipf = s7_i_7p_function(s_func);
                    if (ipf)
                    {
                        opc->v[2].i_7p_f = ipf;
                        if (cell_optimize(sc, cdr(car_x)))
                        {
                            opc->v[0].fi = opt_i_7p_f;
                            opc->v[3].o1 = sc->opts[start];
                            opc->v[4].fp = sc->opts[start]->v[0].fp;
                            return(oo_set_type_0(opc, 5));
                        }
                        pc_fallback(sc, start);
                    }
                    return(return_false(sc, car_x, __func__, __LINE__));
                }

// Assembly:
movb (%rdx), %al
cmpb $0x30, %al
jb 0xa0744
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
movl 0x2258(%rdi), %ebp
movslq %ebp, %rdi
movq 0x8(%rdx), %rcx
movq 0x20(%rcx), %rcx
testq %rcx, %rcx
je 0xa0773
movq %rcx, %rdx
cmpl $0x11, (%rdx)
je 0xa0747
movq 0x10(%rdx), %rdx
testq %rdx, %rdx
jne 0xa0734
jmp 0xa0766
xorl %eax, %eax
retq
movq 0x8(%rdx), %rdx
movb $0x1, %r8b
testq %rdx, %rdx
jne 0xa07f5
jmp 0xa0766
cmpl $0x12, (%rcx)
je 0xa07e5
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0xa0759
cmpb $0x30, %al
jb 0xa09a7
movq 0x8(%r12), %rcx
movq 0x20(%rcx), %rcx
testq %rcx, %rcx
je 0xa093e
cmpl $0x28, (%rcx)
je 0xa0798
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0xa0785
jmp 0xa093a
movq 0x8(%rcx), %rcx
testq %rcx, %rcx
je 0xa093a
movq %rcx, 0x10(%rbx)
movq 0x10(%r15), %r13
movq 0x8(%r13), %rsi
movzbl (%rsi), %eax
leaq 0xaa1f5(%rip), %rcx     # 0x14a9b0
cmpb $0x1, (%rax,%rcx)
jne 0xa0882
leaq 0x69885(%rip), %rdx     # 0x10a051
movq %r14, %rdi
callq 0xd498
movsd %xmm0, 0x8(%rbx)
leaq 0x17be(%rip), %rax      # 0xa1f9e
movq %rax, (%rbx)
jmp 0xa0826
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
je 0xa076b
xorl %r8d, %r8d
movq %rdx, 0x10(%rbx)
movq 0x10(%r15), %r13
movq 0x8(%r13), %rsi
cmpb $0xb, (%rsi)
jne 0xa0833
movq 0x8(%rsi), %rax
leaq 0x16ef(%rip), %rcx      # 0xa1f00
testb %r8b, %r8b
leaq 0x16ef(%rip), %rdx      # 0xa1f0a
cmovneq %rcx, %rdx
movq %rax, 0x8(%rbx)
movq %rdx, (%rbx)
movq $0x3, 0x60(%rbx)
jmp 0xa099c
movl %r8d, 0xc(%rsp)
movq %rdi, 0x10(%rsp)
movq %r14, %rdi
callq 0x9f8a2
testq %rax, %rax
je 0xa08bc
movq %rax, 0x8(%rbx)
leaq 0x16c3(%rip), %rax      # 0xa1f18
leaq 0x16ce(%rip), %rcx      # 0xa1f2a
cmpb $0x0, 0xc(%rsp)
cmovneq %rax, %rcx
movq %rcx, (%rbx)
movabsq $0x100000003, %rax      # imm = 0x100000003
movq %rax, 0x60(%rbx)
movl $0x1, 0x70(%rbx)
jmp 0xa099c
movq %rdi, 0x10(%rsp)
movq %r14, %rdi
callq 0x9f915
testq %rax, %rax
je 0xa0903
movq %rax, 0x8(%rbx)
leaq 0x1711(%rip), %rax      # 0xa1fb0
movq %rax, (%rbx)
movabsq $0x100000003, %rax      # imm = 0x100000003
movq %rax, 0x60(%rbx)
movl $0x2, 0x70(%rbx)
jmp 0xa099c
movq %r14, %rdi
movq %r13, %rsi
callq 0x9fbc8
testb %al, %al
je 0xa08ee
cmpb $0x0, 0xc(%rsp)
movq 0x10(%rsp), %rcx
je 0xa091e
leaq 0x1662(%rip), %rax      # 0xa1f40
movq %rax, (%rbx)
movq 0x2260(%r14,%rcx,8), %rax
jmp 0xa0989
movl %ebp, 0x2258(%r14)
movb (%r12), %al
movq 0x10(%rsp), %rdi
jmp 0xa076b
movq %r14, %rdi
movq %r13, %rsi
callq 0x44f61
testb %al, %al
je 0xa092a
leaq 0x16ae(%rip), %rax      # 0xa1fc7
jmp 0xa07e0
leaq 0x163d(%rip), %rax      # 0xa1f62
jmp 0xa07e0
movl %ebp, 0x2258(%r14)
movb (%r12), %al
movq 0x10(%rsp), %rdi
cmpb $0x30, %al
jb 0xa09a7
movq 0x8(%r12), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xa09a7
cmpl $0x29, (%rax)
je 0xa0957
movq 0x10(%rax), %rax
jmp 0xa0947
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xa09a7
movq %rdi, %r12
movq %rax, 0x10(%rbx)
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0xa2000
testb %al, %al
je 0xa09a0
leaq 0x2605(%rip), %rax      # 0xa2f83
movq %rax, (%rbx)
movq 0x2260(%r14,%r12,8), %rax
movq %rax, 0x18(%rbx)
movq (%rax), %rax
movq %rax, 0x20(%rbx)
movq $0x5, 0x60(%rbx)
movb $0x1, %al
jmp 0xa09a9
movl %ebp, 0x2258(%r14)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq