// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: b_dd_ok
static bool b_dd_ok(s7_scheme *sc, opt_info *opc, s7_pointer s_func, s7_pointer car_x, s7_pointer arg1, s7_pointer arg2)
                {
                    s7_b_dd_t bif;
                    int32_t cur_index;
                    cur_index = sc->pc;
                    bif = s7_b_dd_function(s_func);
                    if (bif)
                    {
                        opc->v[3].b_dd_f = bif;

                        if (is_symbol(arg1))
                        {
                            opc->v[1].p = symbol_to_slot(sc, arg1);
                            if (is_symbol(arg2))
                            {
                                opc->v[2].p = symbol_to_slot(sc, arg2);
                                opc->v[0].fb = opt_b_dd_ss;
                                return(oo_set_type_2(opc, 4, 1, 2, OO_D, OO_D));
                            }
                            if (is_real(arg2))
                            {
                                opc->v[2].x = s7_number_to_real(sc, arg2);
                                opc->v[0].fb = opt_b_dd_sc;
                                return(oo_set_type_1(opc, 4, 1, OO_D));
                            }
                            if (float_optimize(sc, cddr(car_x)))
                            {
                                opc->v[0].fb = opt_b_dd_sf;
                                return(oo_set_type_1(opc, 4, 1, OO_D));
                            }
                        }
                        pc_fallback(sc, cur_index);
                        if (float_optimize(sc, cdr(car_x)))
                        {
                            if (is_symbol(arg2))
                            {
                                opc->v[1].p = symbol_to_slot(sc, arg2);
                                opc->v[0].fb = opt_b_dd_fs;
                                return(oo_set_type_1(opc, 4, 1, OO_D));
                            }
                            if (is_real(arg2))
                            {
                                opc->v[1].x = s7_number_to_real(sc, arg2);
                                opc->v[0].fb = opt_b_dd_fc;
                                return(oo_set_type_0(opc, 4));
                            }
                            if (float_optimize(sc, cddr(car_x)))
                            {
                                opc->v[0].fb = opt_b_dd_ff;
                                return(oo_set_type_0(opc, 4));
                            }
                        }
                    }
                    pc_fallback(sc, cur_index);
                    return(return_false(sc, car_x, __func__, __LINE__));
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r15
movl 0x2258(%rdi), %ebp
cmpb $0x30, (%rdx)
jb 0xaab99
movq 0x8(%rdx), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xaab99
movq %r9, %r14
movq %rcx, %r12
movq %rsi, %rbx
cmpl $0x22, (%rax)
je 0xaa98d
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xaa97a
jmp 0xaab99
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xaab99
movq %rax, 0x18(%rbx)
cmpb $0xa, (%r8)
jne 0xaaac4
movq 0x8(%r15), %rcx
movq 0x18(%rcx), %rsi
movq 0x20(%r8), %rdx
movl $0x18, %eax
cmpq %rdx, %rsi
je 0xaa9d6
jle 0xaa9cd
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rsi
cmpq %rsi, %rdx
jl 0xaa9c0
cmpq %rdx, %rsi
jne 0xaaa79
movq (%r8,%rax), %rdx
movq %rdx, 0x8(%rbx)
movzbl (%r14), %eax
cmpq $0xa, %rax
jne 0xaaa49
movq 0x8(%r15), %rcx
movq 0x18(%rcx), %rsi
movq 0x20(%r14), %rdx
movl $0x18, %eax
cmpq %rdx, %rsi
je 0xaaa16
jle 0xaaa0d
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rsi
cmpq %rsi, %rdx
jl 0xaaa00
cmpq %rdx, %rsi
jne 0xaabab
movq (%r14,%rax), %rdx
movq %rdx, 0x10(%rbx)
leaq 0x8da(%rip), %rax       # 0xab2ff
movq %rax, (%rbx)
movabsq $0x200000004, %rax      # imm = 0x200000004
movq %rax, 0x60(%rbx)
movabsq $0x200000002, %rax      # imm = 0x200000002
movq %rax, 0x70(%rbx)
jmp 0xaab95
leaq 0x9ff60(%rip), %rcx     # 0x14a9b0
cmpb $0x1, (%rax,%rcx)
jne 0xaaaa6
leaq 0x5f5f4(%rip), %rdx     # 0x10a051
movq %r15, %rdi
movq %r14, %rsi
callq 0xd498
movsd %xmm0, 0x10(%rbx)
leaq 0xe83(%rip), %rax       # 0xab8f7
jmp 0xaab27
movl $0x10, %eax
cmpb $0x1c, (%rcx)
jne 0xaa9d6
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
je 0xaaaa0
cmpq %r8, 0x8(%rdx)
je 0xaa9da
movq 0x18(%rdx), %rdx
jmp 0xaaa8b
movq 0x10(%rcx), %rcx
jmp 0xaaa7e
movq 0x10(%r12), %rax
movq 0x10(%rax), %rsi
movq %r15, %rdi
callq 0x44f61
testb %al, %al
je 0xaaac4
leaq 0xe4d(%rip), %rax       # 0xab90f
jmp 0xaab27
movl %ebp, 0x2258(%r15)
movq 0x10(%r12), %rsi
movq %r15, %rdi
callq 0x44f61
testb %al, %al
je 0xaab99
movzbl (%r14), %eax
cmpq $0xa, %rax
jne 0xaab41
movq 0x8(%r15), %rcx
movq 0x18(%rcx), %rsi
movq 0x20(%r14), %rdx
movl $0x18, %eax
cmpq %rdx, %rsi
je 0xaab18
jle 0xaab0f
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rsi
cmpq %rsi, %rdx
jl 0xaab02
cmpq %rdx, %rsi
jne 0xaabd8
movq (%r14,%rax), %rdx
movq %rdx, 0x8(%rbx)
leaq 0xe39(%rip), %rax       # 0xab960
movq %rax, (%rbx)
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x60(%rbx)
movl $0x2, 0x70(%rbx)
jmp 0xaab95
leaq 0x9fe68(%rip), %rcx     # 0x14a9b0
cmpb $0x1, (%rax,%rcx)
jne 0xaab6e
leaq 0x5f4fc(%rip), %rdx     # 0x10a051
movq %r15, %rdi
movq %r14, %rsi
callq 0xd498
movsd %xmm0, 0x8(%rbx)
leaq 0xe37(%rip), %rax       # 0xab9a3
jmp 0xaab8a
movq 0x10(%r12), %rax
movq 0x10(%rax), %rsi
movq %r15, %rdi
callq 0x44f61
testb %al, %al
je 0xaab99
leaq 0xe54(%rip), %rax       # 0xab9de
movq %rax, (%rbx)
movq $0x4, 0x60(%rbx)
movb $0x1, %al
jmp 0xaaba2
movl %ebp, 0x2258(%r15)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %eax
cmpb $0x1c, (%rcx)
jne 0xaaa16
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
je 0xaabd2
cmpq %r14, 0x8(%rdx)
je 0xaaa1a
movq 0x18(%rdx), %rdx
jmp 0xaabbd
movq 0x10(%rcx), %rcx
jmp 0xaabb0
movl $0x10, %eax
cmpb $0x1c, (%rcx)
jne 0xaab18
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
je 0xaabff
cmpq %r14, 0x8(%rdx)
je 0xaab1c
movq 0x18(%rdx), %rdx
jmp 0xaabea
movq 0x10(%rcx), %rcx
jmp 0xaabdd