// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore.xo.c
// Function: x_btcl_generic_copy
er_t x_btcl_generic_copy( sr_s* sr, const sr_s* sb )
{
    // bcore_x_btcl.x:167:1
    
    er_t copy_typed_err = x_inst_t_copy_typed( sr->o,sr_s_o_type(sr), sr_s_o_type(sb), sb->o );
    if( copy_typed_err == ((tp_t)(TYPEOF_conversion_error)) )
    {
        if( sr_s_o_type(sb) == ((tp_t)(TYPEOF_x_btcl_list_s)) )
        {
            x_array* array = NULL;
            tp_t t_array = 0;
            if( x_array_t_is_array(sr_s_type(sr) ) )
            {
                array =((x_array*)( sr->o));
                t_array = sr_s_type(sr);
            }
            else if( x_stamp_t_is_aware(sr_s_type(sr) ) && ( array = x_array_feature_a_m_get_wrapped_array(((x_array_feature*)(sr->o))) ) )
            {
                t_array = array->_;
            }
    
            if( array )
            {
                const x_btcl_list_s* list = ((const x_btcl_list_s*)(sb->o));
                x_array_t_clear( array,t_array );
                for(sz_t i = 0; i < list->arr.size; i++ ) x_array_t_push_sr( array,t_array, sr_cw( list->arr.data[ i ] ) );
                bcore_error_remove_last_if_of(((tp_t)(TYPEOF_conversion_error)) );
                copy_typed_err = 0;
            }
        }
    }
    return  copy_typed_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %r15
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x7fece
movq 0x8(%rax), %rbx
jmp 0x7fed0
xorl %ebx, %ebx
testq %rsi, %rsi
je 0x7fee4
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x7fee4
movq 0x8(%rax), %r12
jmp 0x7fee7
xorl %r12d, %r12d
movq (%r15), %rbp
movq %rsi, 0x18(%rsp)
movq (%rsi), %r13
leaq 0x11c56f(%rip), %rax    # 0x19c468
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %rbx, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %rbx, %rdx
je 0x7ff4f
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbx, %rdx
je 0x7ff4f
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbx, %rdx
je 0x7ff4f
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbx, %rdx
jne 0x7ff58
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x7ff7f
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %rbx, %rsi
callq 0xe9bc5
movq %rax, %r14
leaq 0x11c4f4(%rip), %rdi    # 0x19c468
movq %rbx, %rsi
movq %rax, %rdx
callq 0x115fac
cmpq %r13, %rbp
je 0x7ff9a
cmpq %r12, 0x8(%r14)
jne 0x7ffab
movq %r14, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq *0x90(%r14)
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movabsq $-0x4e68f1e683c13928, %rbx # imm = 0xB1970E197C3EC6D8
movq %r14, %rdi
movq %rbp, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq *0x98(%r14)
cmpq %rbx, %rax
jne 0x7ff9c
movq 0x18(%rsp), %r13
movq 0x8(%r13), %rax
testq %rax, %rax
je 0x80335
movabsq $-0x240ec4eb25c1f3e8, %rcx # imm = 0xDBF13B14DA3E0C18
cmpq %rcx, 0x8(%rax)
jne 0x80335
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x80002
movq 0x8(%rax), %rsi
jmp 0x80004
xorl %esi, %esi
movabsq $-0x196aeddfdbdcdb38, %rdi # imm = 0xE6951220242324C8
callq 0xe9a82
testb %al, %al
je 0x80029
movq (%r15), %r12
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x80038
movq 0x8(%rax), %r15
jmp 0x8003b
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x80049
movq 0x8(%rax), %r12
jmp 0x8004c
xorl %r15d, %r15d
testq %r12, %r12
jne 0x80198
jmp 0x80335
xorl %r12d, %r12d
leaq 0x11d0a5(%rip), %rax    # 0x19d0f8
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r12, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0x800a9
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x800a9
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x800a9
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x800b2
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x800d9
movabsq $0x541d0401d4dcff33, %rdi # imm = 0x541D0401D4DCFF33
movq %r12, %rsi
callq 0xe9bc5
movq %rax, %r14
leaq 0x11d02a(%rip), %rdi    # 0x19d0f8
movq %r12, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r14, %rdi
xorl %esi, %esi
callq 0x103271
testb %al, %al
je 0x80335
movq (%r15), %r15
movq (%r15), %r12
leaq 0x116af8(%rip), %rax    # 0x196bf0
movl 0x116af2(%rip), %ecx    # 0x196bf0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r12, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0x80152
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x80152
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x80152
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x8015b
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x80182
movabsq $-0x104628ab2f6e56c8, %rdi # imm = 0xEFB9D754D091A938
movq %r12, %rsi
callq 0xe9bc5
movq %rax, %r14
leaq 0x116a79(%rip), %rdi    # 0x196bf0
movq %r12, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r15, %rdi
callq *0x18(%r14)
testq %rax, %rax
je 0x80335
movq %rax, %r12
movq (%rax), %r15
movq (%r13), %r13
leaq 0x11bc7d(%rip), %r14    # 0x19be20
movl (%r14), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r14,%rax,8), %rcx
movq 0x18(%r14,%rax,8), %rdx
andq %r15, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0x801f9
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x801f9
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x801f9
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x80202
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x80229
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %rbp
leaq 0x11bc02(%rip), %rdi    # 0x19be20
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
movq %rbp, %rdi
movq %r12, 0x18(%rsp)
movq %r12, %rsi
xorl %edx, %edx
callq 0xebeb6
cmpq $0x0, 0x18(%r13)
je 0x80321
movl $0x10, %ebx
xorl %r12d, %r12d
movq 0x10(%r13), %rax
movups -0x10(%rax,%rbx), %xmm0
movaps %xmm0, 0x40(%rsp)
movq (%rax,%rbx), %rax
andq $-0x3, %rax
movaps %xmm0, 0x20(%rsp)
movq %rax, 0x30(%rsp)
movl (%r14), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r14,%rax,8), %rcx
movq 0x18(%r14,%rax,8), %rdx
andq %r15, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0x802c4
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x802c4
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x802c4
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x802cd
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x802f0
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %rbp
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbp, %rdi
movq 0x18(%rsp), %rsi
callq 0xed355
incq %r12
addq $0x18, %rbx
cmpq 0x18(%r13), %r12
jb 0x8024e
movabsq $-0x4e68f1e683c13928, %rdi # imm = 0xB1970E197C3EC6D8
callq 0xbeac4
jmp 0x7ff9a
movq %rbx, %rax
jmp 0x7ff9c