// File: /workspace/github_c_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbp
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
movl 0x2258(%rdi), %r15d
movq %rdx, %rdi
callq 0x479bd
movq %rax, %r13
testq %rax, %rax
je 0xa72b5
movb $0x1, %cl
movq %r13, %rax
jmp 0xa72c3
movq %r12, %rdi
callq 0xa8a8e
testq %rax, %rax
setne %cl
movslq %r15d, %rdx
testb %cl, %cl
je 0xa738e
movq %rax, 0x10(%rbx)
movq %rbp, 0x10(%rsp)
movq 0x10(%rbp), %rbp
movq 0x8(%rbp), %rsi
cmpb $0xb, (%rsi)
jne 0xa7309
testq %r13, %r13
leaq 0x17d7(%rip), %rax      # 0xa8ac5
leaq 0x17c6(%rip), %rcx      # 0xa8abb
cmoveq %rax, %rcx
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rbx)
movq %rcx, (%rbx)
jmp 0xa73de
movq %rdx, 0x8(%rsp)
movq %r14, %rdi
callq 0xa639f
testq %rax, %rax
je 0xa7351
testq %r13, %r13
movq %rax, 0x8(%rbx)
leaq 0x17bc(%rip), %rax      # 0xa8ae5
leaq 0x17a3(%rip), %rcx      # 0xa8ad3
cmoveq %rax, %rcx
movq %rcx, (%rbx)
movabsq $0x100000003, %rax      # imm = 0x100000003
movq %rax, 0x60(%rbx)
movl $0x1, 0x70(%rbx)
jmp 0xa73e6
movq %r14, %rdi
movq %rbp, %rsi
callq 0xa66f0
testb %al, %al
je 0xa737d
testq %r13, %r13
movq 0x8(%rsp), %rcx
je 0xa74ae
leaq 0x1786(%rip), %rax      # 0xa8afb
movq %rax, (%rbx)
jmp 0xa7478
movl %r15d, 0x2258(%r14)
movq 0x10(%rsp), %rbp
movq 0x8(%rsp), %rdx
movq %rdx, 0x8(%rsp)
movq %r12, %rdi
callq 0x47a8d
testq %rax, %rax
je 0xa7448
movq %rax, 0x10(%rbx)
movq 0x10(%rbp), %r13
movq 0x8(%r13), %rsi
movzbl (%rsi), %eax
leaq 0xab5f6(%rip), %rcx     # 0x1529b0
cmpb $0x1, (%rax,%rcx)
jne 0xa73f7
leaq 0x6bb7a(%rip), %rdx     # 0x112f41
movq %r14, %rdi
callq 0xe212
movsd %xmm0, 0x8(%rbx)
leaq 0x177e(%rip), %rax      # 0xa8b59
movq %rax, (%rbx)
movq $0x3, 0x60(%rbx)
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0xa6424
testq %rax, %rax
je 0xa7429
movq %rax, 0x8(%rbx)
leaq 0x175c(%rip), %rax      # 0xa8b6b
movq %rax, (%rbx)
movabsq $0x100000003, %rax      # imm = 0x100000003
movq %rax, 0x60(%rbx)
movl $0x2, 0x70(%rbx)
jmp 0xa73e6
movq %r14, %rdi
movq %r13, %rsi
callq 0x47b96
testb %al, %al
je 0xa7441
leaq 0x1743(%rip), %rax      # 0xa8b82
jmp 0xa73db
movl %r15d, 0x2258(%r14)
movq %r12, %rdi
callq 0x47885
testq %rax, %rax
je 0xa74a7
movq %rax, 0x10(%rbx)
movq 0x10(%rbp), %rsi
movq %r14, %rdi
callq 0xa8bbb
testb %al, %al
je 0xa74a0
leaq 0x273e(%rip), %rax      # 0xa9bae
movq %rax, (%rbx)
movq 0x8(%rsp), %rcx
movq 0x2260(%r14,%rcx,8), %rax
movq %rax, 0x18(%rbx)
movq 0x2260(%r14,%rcx,8), %rax
movq (%rax), %rax
movq %rax, 0x20(%rbx)
movq $0x5, 0x60(%rbx)
jmp 0xa73e6
movl %r15d, 0x2258(%r14)
xorl %eax, %eax
jmp 0xa73e8
leaq 0x1668(%rip), %rax      # 0xa8b1d
jmp 0xa73db