// File: /workspace/github_c_makefile_star2_O1/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 %r9, %r14
movq %rcx, %r12
movq %rsi, %rbx
movq %rdi, %r15
cmpb $0x30, (%rdx)
jb 0xb1918
movq 0x8(%rdx), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
sete %dl
je 0xb1914
cmpl $0x22, (%rax)
je 0xb190c
movq 0x10(%rax), %rax
testq %rax, %rax
sete %dl
je 0xb1914
cmpl $0x22, (%rax)
jne 0xb18fb
movq 0x8(%rax), %rcx
xorl %edx, %edx
jmp 0xb1914
testb %dl, %dl
je 0xb191a
xorl %ecx, %ecx
movl 0x2258(%r15), %ebp
testq %rcx, %rcx
je 0xb1ba0
movq %rcx, 0x18(%rbx)
cmpb $0xa, (%r8)
jne 0xb1a94
movq 0x8(%r15), %rcx
movq 0x18(%rcx), %rsi
movq 0x20(%r8), %rdx
movl $0x18, %eax
cmpq %rdx, %rsi
je 0xb1999
jle 0xb195d
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rsi
cmpq %rsi, %rdx
jl 0xb1950
cmpq %rdx, %rsi
je 0xb1999
movl $0x10, %eax
cmpb $0x1c, (%rcx)
jne 0xb1999
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
sete %dil
je 0xb1985
cmpq %r8, 0x8(%rdx)
je 0xb1988
movq 0x18(%rdx), %rdx
jmp 0xb1970
movq %rsi, %rdx
testb %dil, %dil
je 0xb199d
movq 0x10(%rcx), %rcx
cmpb $0x1c, (%rcx)
movq %rdx, %rsi
je 0xb196c
movq (%r8,%rax), %rdx
movq %rdx, 0x8(%rbx)
movzbl (%r14), %eax
cmpq $0xa, %rax
jne 0xb1a43
movq 0x8(%r15), %rcx
movq 0x18(%rcx), %rsi
movq 0x20(%r14), %rdx
movl $0x18, %eax
cmpq %rdx, %rsi
je 0xb1a10
jle 0xb19d4
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rsi
cmpq %rsi, %rdx
jl 0xb19c7
cmpq %rdx, %rsi
je 0xb1a10
movl $0x10, %eax
cmpb $0x1c, (%rcx)
jne 0xb1a10
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
sete %dil
je 0xb19fc
cmpq %r14, 0x8(%rdx)
je 0xb19ff
movq 0x18(%rdx), %rdx
jmp 0xb19e7
movq %rsi, %rdx
testb %dil, %dil
je 0xb1a14
movq 0x10(%rcx), %rcx
cmpb $0x1c, (%rcx)
movq %rdx, %rsi
je 0xb19e3
movq (%r14,%rax), %rdx
movq %rdx, 0x10(%rbx)
leaq 0x80e(%rip), %rax       # 0xb222d
movq %rax, (%rbx)
movabsq $0x200000004, %rax      # imm = 0x200000004
movq %rax, 0x60(%rbx)
movabsq $0x200000002, %rax      # imm = 0x200000002
movq %rax, 0x70(%rbx)
jmp 0xb1b9c
leaq 0xa0f66(%rip), %rcx     # 0x1529b0
cmpb $0x1, (%rax,%rcx)
jne 0xb1a73
leaq 0x614ea(%rip), %rdx     # 0x112f41
movq %r15, %rdi
movq %r14, %rsi
callq 0xe212
movsd %xmm0, 0x10(%rbx)
leaq 0xe27(%rip), %rax       # 0xb2895
jmp 0xb1b2e
movq 0x10(%r12), %rax
movq 0x10(%rax), %rsi
movq %r15, %rdi
callq 0x47b96
testb %al, %al
je 0xb1a94
leaq 0xe1e(%rip), %rax       # 0xb28ad
jmp 0xb1b2e
movl %ebp, 0x2258(%r15)
movq 0x10(%r12), %rsi
movq %r15, %rdi
callq 0x47b96
testb %al, %al
je 0xb1ba0
movzbl (%r14), %eax
cmpq $0xa, %rax
jne 0xb1b48
movq 0x8(%r15), %rcx
movq 0x18(%rcx), %rsi
movq 0x20(%r14), %rdx
movl $0x18, %eax
cmpq %rdx, %rsi
je 0xb1b1f
jle 0xb1ae3
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rsi
cmpq %rsi, %rdx
jl 0xb1ad6
cmpq %rdx, %rsi
je 0xb1b1f
movl $0x10, %eax
cmpb $0x1c, (%rcx)
jne 0xb1b1f
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
sete %dil
je 0xb1b0b
cmpq %r14, 0x8(%rdx)
je 0xb1b0e
movq 0x18(%rdx), %rdx
jmp 0xb1af6
movq %rsi, %rdx
testb %dil, %dil
je 0xb1b23
movq 0x10(%rcx), %rcx
cmpb $0x1c, (%rcx)
movq %rdx, %rsi
je 0xb1af2
movq (%r14,%rax), %rdx
movq %rdx, 0x8(%rbx)
leaq 0xdd0(%rip), %rax       # 0xb28fe
movq %rax, (%rbx)
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x60(%rbx)
movl $0x2, 0x70(%rbx)
jmp 0xb1b9c
leaq 0xa0e61(%rip), %rcx     # 0x1529b0
cmpb $0x1, (%rax,%rcx)
jne 0xb1b75
leaq 0x613e5(%rip), %rdx     # 0x112f41
movq %r15, %rdi
movq %r14, %rsi
callq 0xe212
movsd %xmm0, 0x8(%rbx)
leaq 0xdce(%rip), %rax       # 0xb2941
jmp 0xb1b91
movq 0x10(%r12), %rax
movq 0x10(%rax), %rsi
movq %r15, %rdi
callq 0x47b96
testb %al, %al
je 0xb1ba0
leaq 0xdeb(%rip), %rax       # 0xb297c
movq %rax, (%rbx)
movq $0x4, 0x60(%rbx)
movb $0x1, %al
jmp 0xb1ba9
movl %ebp, 0x2258(%r15)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq