// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore.xo.c
// Function: x_btcl_functor_f3_s_copy_typed
er_t x_btcl_functor_f3_s_copy_typed( x_btcl_functor_f3_s* o, tp_t type, vc_t src )
{
    // bcore_x_btcl_functor_f3.x:44:5
    
    switch( type )
    {
        case ((tp_t)(TYPEOF_x_btcl_functor_f3_s)): x_btcl_functor_f3_s_copy(o,((const x_btcl_functor_f3_s*)(src)) ); break;
        case ((tp_t)(TYPEOF_x_btcl_functor_s)): BLM_TRY(x_btcl_functor_f3_s_from_functor(o,((const x_btcl_functor_s*)(src)) )) break;
        default:
        {
            if( bcore_tp_is_numeric( type ) )
            {BLM_INIT_LEVEL(4);
                x_btcl_operator_f3_const_nop_s* nop = ((x_btcl_operator_f3_const_nop_s*)BLM_LEVEL_T_PUSH(4,x_btcl_operator_f3_const_nop_s,x_btcl_operator_f3_const_nop_s_create()));
                nop->val = sr_s_to_f3(sr_s_twc( ((sr_s*)BLM_LEVEL_T_PUSH(4,sr_s,sr_s_create())),type, src ));
                x_btcl_operator_f3_a_attach( &(o->op_tree ), (x_btcl_operator_f3*)( ((x_btcl_operator_f3_const_nop_s*)bcore_fork(nop))));
            BLM_DOWN();}
            else
            {
                BLM_TRY(GERR_fa("Cannot convert from #<sc_t>.", bnameof( type ) ))
            }
        }
        break;
    }
    return  0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movabsq $0x73f13731f3140e07, %rax # imm = 0x73F13731F3140E07
cmpq %rax, %rsi
je 0x9c1fb
movq %rsi, %r15
movabsq $-0x1c14cd2ad50d125, %rax # imm = 0xFE3EB32D52AF2EDB
cmpq %rax, %rsi
jne 0x9c226
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9bc70
jmp 0x9c2f8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9c356
testq %rax, %rax
je 0x9c2f8
movq %rax, %rbx
leaq 0xffbb7(%rip), %rax     # 0x19bdd0
movq (%rax), %rdi
callq 0xd6d2c
jmp 0x9c2fa
movq %r15, %rdi
callq 0x115904
testq %rax, %rax
je 0x9c30c
leaq 0xffb92(%rip), %rax     # 0x19bdd0
movq (%rax), %rsi
leaq 0x8(%rsp), %r13
movq %r13, (%rsp)
movq %r13, %rdi
callq 0xd6675
movq $0x4, 0x10(%r13)
callq 0x95169
movabsq $0x50e723bc207f24dc, %rdx # imm = 0x50E723BC207F24DC
movl $0x4, %esi
movq %r13, %rdi
movq %rax, %rcx
callq 0xd68a8
movq %rax, %r12
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x107e03
movabsq $0x79b76918ff0af12a, %rdx # imm = 0x79B76918FF0AF12A
movl $0x4, %esi
movq %r13, %rdi
movq %rax, %rcx
callq 0xd68a8
movq %rax, %r13
movq %rax, %rdi
callq 0x107ca9
testq %r15, %r15
je 0x9c2ba
movq %r15, %rdi
callq 0x1074f1
movq %rax, %rbp
movq %r14, (%r13)
movq %rbp, 0x8(%r13)
movq $0x1, 0x10(%r13)
movq %r13, %rdi
callq 0x10847b
movsd %xmm0, 0x8(%r12)
addq $0x28, %rbx
movq %r12, %rdi
callq 0xbe7e4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97e59
movq %rsp, %rdi
callq 0xd6d0d
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0xd6ec4
leaq 0x9d25e(%rip), %rdi     # 0x139579
leaq 0x9b00c(%rip), %rsi     # 0x13732e
leaq 0x9d26f(%rip), %rcx     # 0x139598
xorl %ebx, %ebx
movl $0x2212, %edx           # imm = 0x2212
movq %rax, %r8
xorl %eax, %eax
callq 0xbedd5
testq %rax, %rax
je 0x9c2fa
movq %rax, %r14
leaq 0xffa87(%rip), %rax     # 0x19bdd0
movq (%rax), %rdi
callq 0xd6d2c
movq %r14, %rbx
jmp 0x9c2fa