// File: /workspace/github_c_makefile_star2_O1/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 0x876f6
movq 0x8(%rax), %rbx
jmp 0x876f8
xorl %ebx, %ebx
testq %rsi, %rsi
je 0x8770c
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x8770c
movq 0x8(%rax), %r12
jmp 0x8770f
xorl %r12d, %r12d
movq (%r15), %rbp
movq %rsi, 0x18(%rsp)
movq (%rsi), %r13
leaq 0x121d47(%rip), %rax    # 0x1a9468
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 0x8777b
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbx, %rdx
je 0x8777b
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbx, %rdx
je 0x8777b
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbx, %rdx
jne 0x87825
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x877ab
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %rbx, %rsi
callq 0xf3f85
movq %rax, %r14
leaq 0x121cc8(%rip), %rdi    # 0x1a9468
movq %rbx, %rsi
movq %rax, %rdx
callq 0x12128c
cmpq %r13, %rbp
je 0x877c6
cmpq %r12, 0x8(%r14)
jne 0x877ca
movq %r14, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq *0x90(%r14)
xorl %eax, %eax
jmp 0x877dd
movq %r14, %rdi
movq %rbp, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq *0x98(%r14)
movabsq $-0x4e68f1e683c13928, %rbx # imm = 0xB1970E197C3EC6D8
cmpq %rbx, %rax
movq 0x18(%rsp), %r14
jne 0x87b78
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x87b75
movabsq $-0x240ec4eb25c1f3e8, %rcx # imm = 0xDBF13B14DA3E0C18
cmpq %rcx, 0x8(%rax)
jne 0x87b75
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x8782d
movq 0x8(%rax), %rsi
jmp 0x8782f
xorl %r14d, %r14d
jmp 0x8777f
xorl %esi, %esi
movabsq $-0x196aeddfdbdcdb38, %rdi # imm = 0xE6951220242324C8
callq 0xf3e2a
testb %al, %al
je 0x8785b
movq (%r15), %r12
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x879d5
addq $0x8, %rax
jmp 0x879cd
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x8786a
movq 0x8(%rax), %r12
jmp 0x8786d
xorl %r12d, %r12d
leaq 0x122884(%rip), %rax    # 0x1aa0f8
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 0x878ce
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x878ce
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x878ce
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x87ba1
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x878fe
movabsq $0x541d0401d4dcff33, %rdi # imm = 0x541D0401D4DCFF33
movq %r12, %rsi
callq 0xf3f85
movq %rax, %r14
leaq 0x122805(%rip), %rdi    # 0x1aa0f8
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
xorl %r12d, %r12d
movq %r14, %rdi
xorl %esi, %esi
callq 0x10decf
movl $0x0, %r13d
testb %al, %al
movq 0x18(%rsp), %r14
je 0x879d8
movq (%r15), %r15
movq (%r15), %r12
leaq 0x11c2c5(%rip), %rax    # 0x1a3bf0
movl 0x11c2bf(%rip), %ecx    # 0x1a3bf0
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 0x87989
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x87989
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x87989
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x87ba9
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x879b9
movabsq $-0x104628ab2f6e56c8, %rdi # imm = 0xEFB9D754D091A938
movq %r12, %rsi
callq 0xf3f85
movq %rax, %r14
leaq 0x11c242(%rip), %rdi    # 0x1a3bf0
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, %rdi
callq *0x18(%r14)
movq %rax, %r12
testq %rax, %rax
movq 0x18(%rsp), %r14
je 0x879d2
movq (%rax), %r13
jmp 0x879d8
xorl %r12d, %r12d
xorl %r13d, %r13d
testq %r12, %r12
je 0x87b75
movq (%r14), %rbx
leaq 0x121435(%rip), %r14    # 0x1a8e20
movl (%r14), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r14,%rax,8), %rcx
movq 0x18(%r14,%rax,8), %rdx
andq %r13, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x87a45
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x87a45
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x87a45
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x87b9a
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x87a75
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %r13, %rsi
callq 0xf3f85
movq %rax, %rbp
leaq 0x1213b6(%rip), %rdi    # 0x1a8e20
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq %rbp, %rdi
movq %r12, 0x18(%rsp)
movq %r12, %rsi
xorl %edx, %edx
callq 0xf6359
cmpq $0x0, 0x18(%rbx)
je 0x87b87
movl $0x10, %r15d
xorl %r12d, %r12d
movq 0x10(%rbx), %rax
movups -0x10(%rax,%r15), %xmm0
movaps %xmm0, 0x40(%rsp)
movq (%rax,%r15), %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 %r13, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x87b12
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x87b12
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x87b12
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x87b71
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x87b3e
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %r13, %rsi
callq 0xf3f85
movq %rax, %rbp
movq %r14, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbp, %rdi
movq 0x18(%rsp), %rsi
callq 0xf7857
incq %r12
addq $0x18, %r15
cmpq 0x18(%rbx), %r12
jb 0x87a9b
jmp 0x87b87
xorl %ebp, %ebp
jmp 0x87b16
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movabsq $-0x4e68f1e683c13928, %rdi # imm = 0xB1970E197C3EC6D8
callq 0xc8638
xorl %eax, %eax
jmp 0x87b78
xorl %ebp, %ebp
jmp 0x87a49
xorl %r14d, %r14d
jmp 0x878d2
xorl %r14d, %r14d
jmp 0x8798d