// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movq %rcx, 0x30(%rsp)
movq %r8, 0x28(%rsp)
movq %r9, 0x20(%rsp)
movq 0x48(%rsp), %rax
movl 0x2258(%rax), %eax
movl %eax, 0x14(%rsp)
movq 0x38(%rsp), %rdi
callq 0xfb220
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
je 0xf9bd1
movq 0x18(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x28(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
jne 0xf9a8a
movq 0x48(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0xfc80
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x20(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
jne 0xf99bb
movq 0x48(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0xfc80
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x40(%rsp), %rax
leaq 0xb16(%rip), %rcx       # 0xfa490
movq %rcx, (%rax)
movq 0x40(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %edx
movl $0x2, %r9d
leaq 0xf59d2(%rip), %rax     # 0x1ef36b
movl %r9d, %ecx
movl %r9d, %r8d
movq %rax, (%rsp)
movl $0xea58, 0x8(%rsp)      # imm = 0xEA58
callq 0xe54b0
andb $0x1, %al
movb %al, 0x57(%rsp)
jmp 0xf9be4
movq 0x20(%rsp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x120b14(%rip), %rax    # 0x21a4e0
testb $0x1, (%rax,%rcx)
je 0xf9a2b
movq 0x48(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x12760
movq 0x40(%rsp), %rax
movsd %xmm0, 0x10(%rax)
movq 0x40(%rsp), %rax
leaq 0x1849(%rip), %rcx      # 0xfb240
movq %rcx, (%rax)
movq 0x40(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %edx
movl $0x2, %ecx
leaq 0xf5956(%rip), %r8      # 0x1ef36b
movl $0xea5e, %r9d           # imm = 0xEA5E
callq 0xe4950
andb $0x1, %al
movb %al, 0x57(%rsp)
jmp 0xf9be4
movq 0x48(%rsp), %rdi
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
callq 0x473f0
testb $0x1, %al
jne 0xf9a48
jmp 0xf9a88
movq 0x40(%rsp), %rax
leaq 0x181c(%rip), %rcx      # 0xfb270
movq %rcx, (%rax)
movq 0x40(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %edx
movl $0x2, %ecx
leaq 0xf58f9(%rip), %r8      # 0x1ef36b
movl $0xea63, %r9d           # imm = 0xEA63
callq 0xe4950
andb $0x1, %al
movb %al, 0x57(%rsp)
jmp 0xf9be4
jmp 0xf9a8a
movq 0x48(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0xe59a0
movq 0x48(%rsp), %rdi
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0x473f0
testb $0x1, %al
jne 0xf9ab4
jmp 0xf9bcf
movq 0x20(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
jne 0xf9b1c
movq 0x48(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0xfc80
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x40(%rsp), %rax
leaq 0x1818(%rip), %rcx      # 0xfb300
movq %rcx, (%rax)
movq 0x40(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %edx
movl $0x2, %ecx
leaq 0xf5865(%rip), %r8      # 0x1ef36b
movl $0xea6d, %r9d           # imm = 0xEA6D
callq 0xe4950
andb $0x1, %al
movb %al, 0x57(%rsp)
jmp 0xf9be4
movq 0x20(%rsp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x1209b3(%rip), %rax    # 0x21a4e0
testb $0x1, (%rax,%rcx)
je 0xf9b7e
movq 0x48(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x12760
movq 0x40(%rsp), %rax
movsd %xmm0, 0x8(%rax)
movq 0x40(%rsp), %rax
leaq 0x1828(%rip), %rcx      # 0xfb380
movq %rcx, (%rax)
movq 0x40(%rsp), %rdi
movl $0x4, %esi
leaq 0xf57ff(%rip), %rdx     # 0x1ef36b
movl $0xea73, %ecx           # imm = 0xEA73
callq 0xe4820
andb $0x1, %al
movb %al, 0x57(%rsp)
jmp 0xf9be4
movq 0x48(%rsp), %rdi
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
callq 0x473f0
testb $0x1, %al
jne 0xf9b9b
jmp 0xf9bcd
movq 0x40(%rsp), %rax
leaq 0x1849(%rip), %rcx      # 0xfb3f0
movq %rcx, (%rax)
movq 0x40(%rsp), %rdi
movl $0x4, %esi
leaq 0xf57b0(%rip), %rdx     # 0x1ef36b
movl $0xea78, %ecx           # imm = 0xEA78
callq 0xe4820
andb $0x1, %al
movb %al, 0x57(%rsp)
jmp 0xf9be4
jmp 0xf9bcf
jmp 0xf9bd1
movq 0x48(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0xe59a0
movb $0x0, 0x57(%rsp)
movb 0x57(%rsp), %al
andb $0x1, %al
addq $0x58, %rsp
retq
nop