// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_inst.c
// Function: copy_generic
static void copy_generic( const bcore_inst_s* p, vd_t dst, vc_t src )
{
    if( dst == src ) return;
    #ifdef RTCHECKS
        if( !dst ) ERR( "dst == NULL" );
        if( !src ) ERR( "src == NULL" );
        if( p->aware )
        {
            verify_aware_type( p->header.o_type, dst, __func__ );
            verify_aware_type( p->header.o_type, src, __func__ );
        }
    #endif // RTCHECKS
    for( uz_t i = 0; i < p->body->size; i++ )
    {
        const bcore_inst_item_s* inst_item = &p->body->data[ i ];
        if( inst_item->no_trace ) continue;

        const bcore_self_item_s* self_item = inst_item->self_item;
        void* dst_obj = ( u0_t* )dst + inst_item->offset;
        void* src_obj = ( u0_t* )src + inst_item->offset;

        switch( self_item->caps )
        {
            case BCORE_CAPS_SOLID_STATIC:
            {
                const bcore_inst_s* inst_p = inst_item->inst_p;
                inst_p->copy( inst_p, dst_obj, src_obj );
            }
            break;

            case BCORE_CAPS_LINK_STATIC:
            {
                bcore_link_static_s* dst = dst_obj;
                bcore_link_static_s* src = src_obj;
                if( dst->link )
                {
                    bcore_inst_p_discard( inst_item->inst_p, dst->link );
                }
                if( src->link )
                {
                    if( self_item->flags.f_deep_copy )
                    {
                        dst->link = bcore_inst_p_clone( inst_item->inst_p, src->link );
                    }
                    else
                    {
                        dst->link = bcore_fork( src->link );
                    }
                }
                else
                {
                    dst->link = NULL;
                }
            }
            break;

            case BCORE_CAPS_LINK_TYPED:
            {
                bcore_link_typed_s* dst = dst_obj;
                bcore_link_typed_s* src = src_obj;
                if( dst->link ) bcore_inst_t_discard( dst->type, dst->link );
                if( src->link )
                {
                    if( self_item->flags.f_deep_copy )
                    {
                        dst->link = bcore_inst_t_clone( src->type, src->link );
                    }
                    else
                    {
                        dst->link = bcore_fork( src->link );
                    }
                }
                else
                {
                    dst->link = NULL;
                }
                dst->type = src->type;
            }
            break;

            case BCORE_CAPS_LINK_AWARE:
            {
                bcore_link_aware_s* dst = dst_obj;
                bcore_link_aware_s* src = src_obj;
                if( dst->link ) bcore_inst_a_discard( dst->link );
                if( src->link )
                {
                    if( self_item->flags.f_deep_copy )
                    {
                        dst->link = bcore_inst_a_clone( src->link );
                    }
                    else
                    {
                        dst->link = bcore_fork( src->link );
                    }
                }
                else
                {
                    dst->link = NULL;
                }
            }
            break;

            case BCORE_CAPS_POINTER:
            {
                vd_t* dst = dst_obj;
                vd_t* src = src_obj;
                *dst = *src;
            }
            break;

            case BCORE_CAPS_ARRAY_DYN_SOLID_STATIC:
            {
                bcore_array_dyn_solid_static_s* dst = dst_obj;
                bcore_array_dyn_solid_static_s* src = src_obj;
                const bcore_inst_s* inst_p = inst_item->inst_p;
                if( inst_p->copy_flat )
                {
                    if( src->size > dst->space )
                    {
                        dst->data = bcore_un_alloc( inst_p->size, dst->data, dst->space, 0,         &dst->space );
                        dst->data = bcore_un_alloc( inst_p->size, dst->data, dst->space, src->size, &dst->space );
                    }
                    bcore_memcpy( dst->data, src->data, inst_p->size * src->size );
                    dst->size = src->size;
                }
                else
                {
                    if( dst->space > 0 ) // dst->space == 0 means array references external data
                    {
                        if( !inst_p->down_flat )
                        {
                            bcore_release_arg_arr( ( fp_t )inst_p->down, inst_p, dst->data, dst->size, inst_p->size );
                        }
                        else
                        {
                            bcore_free( dst->data );
                        }
                        dst->data = NULL;
                        dst->size = 0;
                        dst->space = 0;
                    }
                    dst->data = bcore_un_alloc( inst_p->size, dst->data, dst->space, src->size, &dst->space );
                    for( uz_t i = 0; i < src->size; i++ )
                    {
                        vd_t dst_obj = ( u0_t* )dst->data + i * inst_p->size;
                        vd_t src_obj = ( u0_t* )src->data + i * inst_p->size;
                        inst_p->init( inst_p, dst_obj );
                        inst_p->copy( inst_p, dst_obj, src_obj );
                    }
                    dst->size = src->size;
                }
            }
            break;

            case BCORE_CAPS_ARRAY_DYN_SOLID_TYPED:
            {
                bcore_array_dyn_solid_typed_s* dst = dst_obj;
                bcore_array_dyn_solid_typed_s* src = src_obj;

                if( dst->space > 0 ) // deplete dst
                {
                    const bcore_inst_s* inst_p = bcore_inst_s_get_typed( dst->type );
                    if( !inst_p->down_flat )
                    {
                        bcore_release_arg_arr( ( fp_t )inst_p->down, inst_p, dst->data, dst->size, inst_p->size );
                    }
                    else
                    {
                        bcore_free( dst->data );
                    }
                }
                dst->data = NULL;
                dst->size = 0;
                dst->space = 0;
                dst->type = src->type;
                if( src->size > 0 ) // fill dst with new data
                {
                    const bcore_inst_s* inst_p = bcore_inst_s_get_typed( src->type );
                    dst->data = bcore_un_alloc( inst_p->size, dst->data, dst->space, src->size, &dst->space );
                    if( inst_p->copy_flat )
                    {
                        bcore_memcpy( dst->data, src->data, inst_p->size * src->size );
                    }
                    else
                    {
                        for( uz_t i = 0; i < src->size; i++ )
                        {
                            vd_t dst_obj = ( u0_t* )dst->data + i * inst_p->size;
                            vc_t src_obj = ( u0_t* )src->data + i * inst_p->size;
                            inst_p->init( inst_p, dst_obj );
                            inst_p->copy( inst_p, dst_obj, src_obj );
                        }
                    }
                    dst->size = src->size;
                }
            }
            break;

            case BCORE_CAPS_ARRAY_DYN_LINK_STATIC:
            {
                bcore_array_dyn_link_static_s* dst = dst_obj;
                bcore_array_dyn_link_static_s* src = src_obj;
                const bcore_inst_s* inst_p = inst_item->inst_p;
                if( dst->space > 0 ) // dst->space == 0 means array references external data
                {
                    for( uz_t i = 0; i < dst->size; i++ ) inst_p->discard( inst_p, dst->data[ i ] );
                }
                if( src->size > dst->space )
                {
                    dst->data = bcore_un_alloc( sizeof( vd_t ), dst->data, dst->space, 0,         &dst->space );
                    dst->data = bcore_un_alloc( sizeof( vd_t ), dst->data, dst->space, src->size, &dst->space );
                }
                if( self_item->flags.f_deep_copy )
                {
                    for( uz_t i = 0; i < src->size; i++ ) dst->data[ i ] = inst_p->clone( inst_p, src->data[ i ] );
                }
                else
                {
                    for( uz_t i = 0; i < src->size; i++ ) dst->data[ i ] = bcore_fork( src->data[ i ] );
                }

                dst->size = src->size;
            }
            break;

            case BCORE_CAPS_ARRAY_DYN_LINK_TYPED:
            {
                bcore_array_dyn_link_typed_s* dst = dst_obj;
                bcore_array_dyn_link_typed_s* src = src_obj;
                if( dst->space > 0 ) // dst->space == 0 means array references external data
                {
                    const bcore_inst_s* inst_p = bcore_inst_s_get_typed( dst->type );
                    for( uz_t i = 0; i < dst->size; i++ ) bcore_inst_p_discard( inst_p, dst->data[ i ] );
                }
                if( src->size > 0 )
                {
                    const bcore_inst_s* inst_p = bcore_inst_s_get_typed( src->type );
                    if( src->size > dst->space )
                    {
                        dst->data = bcore_un_alloc( sizeof( vd_t ), dst->data, dst->space, 0,         &dst->space );
                        dst->data = bcore_un_alloc( sizeof( vd_t ), dst->data, dst->space, src->size, &dst->space );
                    }
                    if( self_item->flags.f_deep_copy )
                    {
                        for( uz_t i = 0; i < src->size; i++ ) dst->data[ i ] = bcore_inst_p_clone( inst_p, src->data[ i ] );
                    }
                    else
                    {
                        for( uz_t i = 0; i < src->size; i++ ) dst->data[ i ] = bcore_fork( src->data[ i ] );
                    }
                }
                dst->size = src->size;
                dst->type = src->type;
            }
            break;

            case BCORE_CAPS_ARRAY_DYN_LINK_AWARE:
            {
                bcore_array_dyn_link_aware_s* dst = dst_obj;
                bcore_array_dyn_link_aware_s* src = src_obj;
                if( dst->space > 0 )  // dst->space == 0 means array references external data
                {
                    for( uz_t i = 0; i < dst->size; i++ ) bcore_inst_a_discard( dst->data[ i ] );
                }
                if( src->size > 0 )
                {
                    if( src->size > dst->space )
                    {
                        dst->data = bcore_un_alloc( sizeof( vd_t ), dst->data, dst->space, 0,         &dst->space );
                        dst->data = bcore_un_alloc( sizeof( vd_t ), dst->data, dst->space, src->size, &dst->space );
                    }
                    if( self_item->flags.f_deep_copy )
                    {
                        for( uz_t i = 0; i < src->size; i++ )
                        {
                            dst->data[ i ] = bcore_inst_a_clone( src->data[ i ] );
                        }
                    }
                    else
                    {
                        for( uz_t i = 0; i < src->size; i++ )
                        {
                            dst->data[ i ] = bcore_fork( src->data[ i ] );
                        }
                    }
                }
                dst->size = src->size;
            }
            break;

            case BCORE_CAPS_ARRAY_FIX_SOLID_STATIC:
            {
                const bcore_inst_s* inst_p = inst_item->inst_p;
                uz_t arr_size = bcore_inst_item_s_array_fix_size( inst_item );
                uz_t element_size = inst_p->size;

                if( inst_p->copy_flat )
                {
                    bcore_memcpy( dst_obj, src_obj, element_size * arr_size );
                }
                else
                {
                    for( uz_t i = 0; i < arr_size; i++ )
                    {
                        vd_t dst = ( u0_t* )dst_obj + element_size * i;
                        vc_t src = ( u0_t* )src_obj + element_size * i;
                        bcore_inst_p_copy( inst_p, dst, src );
                    }
                }
            }
            break;

            case BCORE_CAPS_ARRAY_FIX_LINK_STATIC:
            {
                const bcore_inst_s* inst_p = inst_item->inst_p;
                uz_t arr_size = bcore_inst_item_s_array_fix_size( inst_item );
                vd_t* dst_arr = dst_obj;
                vd_t* src_arr = src_obj;
                for( uz_t i = 0; i < arr_size; i++ )
                {
                    vd_t dst = dst_arr[ i ];
                    vd_t src = src_arr[ i ];
                    bcore_inst_p_discard( inst_p, dst );
                    if( self_item->flags.f_deep_copy )
                    {
                        dst = bcore_inst_p_clone( inst_p, src );
                    }
                    else
                    {
                        dst = bcore_fork( src );
                    }
                }
            }
            break;

            case BCORE_CAPS_ARRAY_FIX_LINK_AWARE:
            {
                uz_t arr_size = bcore_inst_item_s_array_fix_size( inst_item );
                vd_t* dst_arr = dst_obj;
                vd_t* src_arr = src_obj;
                for( uz_t i = 0; i < arr_size; i++ )
                {
                    vd_t dst = dst_arr[ i ];
                    vd_t src = src_arr[ i ];
                    bcore_inst_a_discard( dst );
                    if( self_item->flags.f_deep_copy )
                    {
                        dst = bcore_inst_a_clone( src );
                    }
                    else
                    {
                        dst = bcore_fork( src );
                    }
                }
            }
            break;

            default:
            {
                ERR_fa( "Unhandled nesting '#<sc_t>'", bcore_flect_caps_e_sc( self_item->caps ) );
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
cmpq %rdx, %rsi
je 0x106a5e
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
cmpq $0x0, 0x8(%rax)
je 0x106a5e
xorl %r12d, %r12d
movq (%rax), %rbx
leaq (%r12,%r12,2), %rax
shlq $0x4, %rax
cmpb $0x0, 0x28(%rbx,%rax)
jne 0x106927
addq %rax, %rbx
movq 0x18(%rbx), %rax
movq %rax, 0x8(%rsp)
movl 0x10(%rax), %edi
leal -0x1(%rdi), %eax
cmpl $0xc, %eax
ja 0x1061ae
movq (%rbx), %rbp
movq 0x18(%rsp), %rcx
leaq (%rcx,%rbp), %r15
addq 0x10(%rsp), %rbp
leaq 0x4f653(%rip), %rcx     # 0x155144
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
movq %r15, (%rsp)
jmpq *%rax
movq 0x20(%rbx), %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq *0x90(%rdi)
jmp 0x106927
movq 0x8(%rsp), %rax
movq 0x18(%rax), %r15
testq %r15, %r15
je 0x106927
movq 0x20(%rbx), %rbx
xorl %r13d, %r13d
movq (%rsp), %rax
movq (%rax,%r13,8), %rsi
movq (%rbp,%r13,8), %r14
testq %rsi, %rsi
je 0x105b47
movq %rbx, %rdi
callq *0xb8(%rbx)
movq 0x8(%rsp), %rax
testb $0x2, 0x15(%rax)
jne 0x105b5c
movq %r14, %rdi
callq 0xc8348
jmp 0x105b6d
testq %r14, %r14
je 0x105b6d
movq %rbx, %rdi
movq %r14, %rsi
callq *0xc0(%rbx)
incq %r13
cmpq %r13, %r15
jne 0x105b2c
jmp 0x106927
movq (%rbp), %rax
jmp 0x1067b3
movq %rbp, 0x30(%rsp)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x106927
xorl %r13d, %r13d
movq (%rsp), %rax
movq (%rax,%r13,8), %r14
movq 0x30(%rsp), %rax
movq (%rax,%r13,8), %rbx
testq %r14, %r14
je 0x105c5f
movq (%r14), %r15
movl 0xa38a3(%rip), %eax     # 0x1a9468
cltq
leaq (%rax,%rax,2), %rax
leaq 0xa3896(%rip), %rdx     # 0x1a9468
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r15, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0x105c23
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x105c23
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x105c23
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x105d33
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x105c53
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r15, %rsi
callq 0xf3f85
movq %rax, %rbp
leaq 0xa3820(%rip), %rdi     # 0x1a9468
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq %rbp, %rdi
movq %r14, %rsi
callq *0xb8(%rbp)
movq 0x8(%rsp), %rax
testb $0x2, 0x15(%rax)
jne 0x105c77
movq %rbx, %rdi
callq 0xc8348
jmp 0x105d20
testq %rbx, %rbx
je 0x105d20
movq (%rbx), %r14
movl 0xa37df(%rip), %eax     # 0x1a9468
cltq
leaq (%rax,%rax,2), %rax
leaq 0xa37d2(%rip), %rdx     # 0x1a9468
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x105ce3
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x105ce3
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x105ce3
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x105d3a
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x105d13
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r14, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0xa3760(%rip), %rdi     # 0x1a9468
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, %rdi
movq %rbx, %rsi
callq *0xc0(%r15)
incq %r13
cmpq %r13, 0x28(%rsp)
jne 0x105ba2
jmp 0x106927
xorl %ebp, %ebp
jmp 0x105c27
xorl %r15d, %r15d
jmp 0x105ce7
cmpq $0x0, 0x10(%r15)
je 0x105e20
cmpq $0x0, 0x8(%r15)
je 0x105e20
xorl %r13d, %r13d
movq (%r15), %rax
movq (%rax,%r13,8), %rbx
testq %rbx, %rbx
je 0x105e0c
movq (%rbx), %r14
movl 0xa36f7(%rip), %eax     # 0x1a9468
cltq
leaq (%rax,%rax,2), %rax
leaq 0xa36ea(%rip), %rdx     # 0x1a9468
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x105dcb
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x105dcb
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x105dcb
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x105e1b
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x105dfb
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r14, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0xa3678(%rip), %rdi     # 0x1a9468
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, %rdi
movq %rbx, %rsi
callq *0xb8(%r15)
movq (%rsp), %r15
incq %r13
cmpq 0x8(%r15), %r13
jb 0x105d58
jmp 0x105e20
xorl %r15d, %r15d
jmp 0x105dcf
movq %rbp, %r14
movq 0x8(%rbp), %rax
testq %rax, %rax
je 0x10663f
leaq 0x10(%r15), %rbx
movq (%rbx), %rdx
cmpq %rdx, %rax
jbe 0x105e6c
movq (%r15), %rsi
movl $0x8, %edi
xorl %ecx, %ecx
movq %rbx, %r8
callq 0xc833e
movq %rax, (%r15)
movq 0x10(%r15), %rdx
movq 0x8(%r14), %rcx
movl $0x8, %edi
movq %rax, %rsi
movq %rbx, %r8
callq 0xc833e
movq %rax, (%r15)
movq 0x8(%rsp), %rax
testb $0x2, 0x15(%rax)
movq 0x8(%r14), %rax
jne 0x10655a
testq %rax, %rax
movq %rbp, %r14
je 0x10663f
xorl %ebx, %ebx
movq (%r14), %rax
movq (%rax,%rbx,8), %rdi
callq 0xc8348
movq (%r15), %rcx
movq %rax, (%rcx,%rbx,8)
incq %rbx
cmpq 0x8(%r14), %rbx
jb 0x105e8d
jmp 0x10663f
movq (%r15), %rbx
testq %rbx, %rbx
je 0x105f63
movq 0x8(%r15), %r14
movl 0xa35a4(%rip), %eax     # 0x1a9468
cltq
leaq (%rax,%rax,2), %rax
leaq 0xa3597(%rip), %rdx     # 0x1a9468
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x105f22
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x105f22
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x105f22
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x106a20
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x105f52
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r14, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0xa3521(%rip), %rdi     # 0x1a9468
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, %rdi
movq %rbx, %rsi
callq *0xb8(%r15)
movq (%rsp), %r15
movq (%rbp), %rbx
testq %rbx, %rbx
je 0x106553
movq 0x8(%rsp), %rax
testb $0x2, 0x15(%rax)
jne 0x106648
movq %rbx, %rdi
callq 0xc8348
jmp 0x1066f1
movq (%r15), %rbx
testq %rbx, %rbx
je 0x106040
movq (%rbx), %r14
movl 0xa34c7(%rip), %eax     # 0x1a9468
cltq
leaq (%rax,%rax,2), %rax
leaq 0xa34ba(%rip), %rdx     # 0x1a9468
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x105fff
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x105fff
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x105fff
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x106a28
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x10602f
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r14, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0xa3444(%rip), %rdi     # 0x1a9468
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, %rdi
movq %rbx, %rsi
callq *0xb8(%r15)
movq (%rsp), %r15
movq (%rbp), %rbx
testq %rbx, %rbx
je 0x1064b6
movq 0x8(%rsp), %rax
testb $0x2, 0x15(%rax)
jne 0x1066f9
movq %rbx, %rdi
jmp 0x106140
movq 0x20(%rbx), %rbx
cmpq $0x0, 0x10(%r15)
je 0x106092
cmpq $0x0, 0x8(%r15)
je 0x106092
xorl %r14d, %r14d
movq (%r15), %rax
movq (%rax,%r14,8), %rsi
movq %rbx, %rdi
callq *0xb8(%rbx)
incq %r14
cmpq 0x8(%r15), %r14
jb 0x106079
leaq 0x10(%r15), %r14
movq (%r14), %rdx
cmpq %rdx, 0x8(%rbp)
jbe 0x1060cf
movq (%r15), %rsi
movl $0x8, %edi
xorl %ecx, %ecx
movq %r14, %r8
callq 0xc833e
movq %rax, (%r15)
movq 0x10(%r15), %rdx
movq 0x8(%rbp), %rcx
movl $0x8, %edi
movq %rax, %rsi
movq %r14, %r8
callq 0xc833e
movq %rax, (%r15)
movq 0x8(%rsp), %rax
testb $0x2, 0x15(%rax)
movq 0x8(%rbp), %rax
jne 0x1064c2
testq %rax, %rax
je 0x10691f
xorl %ebx, %ebx
movq (%rbp), %rax
movq (%rax,%rbx,8), %rdi
callq 0xc8348
movq (%r15), %rcx
movq %rax, (%rcx,%rbx,8)
incq %rbx
cmpq 0x8(%rbp), %rbx
jb 0x1060ed
jmp 0x10691f
movq (%r15), %rsi
testq %rsi, %rsi
je 0x106121
movq 0x20(%rbx), %rdi
callq *0xb8(%rdi)
movq (%rbp), %rsi
testq %rsi, %rsi
je 0x1064b6
movq 0x8(%rsp), %rax
testb $0x2, 0x15(%rax)
jne 0x1067a9
movq %rsi, %rdi
callq 0xc8348
jmp 0x1067b3
movq 0x20(%rbx), %rbx
cmpb $0x1, 0x2b(%rbx)
jne 0x1064f4
movq 0x10(%r15), %rdx
cmpq %rdx, 0x8(%rbp)
jbe 0x106194
leaq 0x10(%r15), %r14
movq 0x18(%rbx), %rdi
movq (%r15), %rsi
xorl %ecx, %ecx
movq %r14, %r8
callq 0xc833e
movq %rax, (%r15)
movq 0x18(%rbx), %rdi
movq 0x10(%r15), %rdx
movq 0x8(%rbp), %rcx
movq %rax, %rsi
movq %r14, %r8
callq 0xc833e
movq %rax, (%r15)
movq (%r15), %rdi
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
imulq 0x18(%rbx), %rdx
callq 0xc83f1
jmp 0x10691f
callq 0xc9380
leaq 0x4f658(%rip), %rdi     # 0x155812
leaq 0x4efd5(%rip), %rsi     # 0x155196
movl $0x3db, %edx            # imm = 0x3DB
leaq 0x4f61c(%rip), %rcx     # 0x1557e9
movq %rax, %r8
xorl %eax, %eax
callq 0xc825d
jmp 0x106927
cmpq $0x0, 0x10(%r15)
je 0x1067d5
movq 0x18(%r15), %rbx
movl 0xa3277(%rip), %eax     # 0x1a9468
cltq
leaq (%rax,%rax,2), %rax
leaq 0xa326a(%rip), %rdx     # 0x1a9468
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %rbx, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %rbx, %rdx
je 0x10624f
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbx, %rdx
je 0x10624f
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbx, %rdx
je 0x10624f
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbx, %rdx
jne 0x106a30
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x10627f
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %rbx, %rsi
callq 0xf3f85
movq %rax, %r14
leaq 0xa31f4(%rip), %rdi     # 0x1a9468
movq %rbx, %rsi
movq %rax, %rdx
callq 0x12128c
cmpb $0x0, 0x2a(%r14)
je 0x1067bb
movq (%r15), %rdi
callq 0xc8307
jmp 0x1067d5
movq 0x20(%rbx), %r14
movq 0x8(%rsp), %rax
movq 0x18(%rax), %r15
movq 0x18(%r14), %rbx
cmpb $0x0, 0x2b(%r14)
je 0x106516
imulq %r15, %rbx
movq (%rsp), %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0xc83f1
jmp 0x106927
cmpq $0x0, 0x10(%r15)
je 0x106396
movq 0x18(%r15), %rbx
movl 0xa3188(%rip), %eax     # 0x1a9468
cltq
leaq (%rax,%rax,2), %rax
leaq 0xa317b(%rip), %rdx     # 0x1a9468
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %rbx, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %rbx, %rdx
je 0x10633e
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbx, %rdx
je 0x10633e
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbx, %rdx
je 0x10633e
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbx, %rdx
jne 0x106a3f
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x10636e
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %rbx, %rsi
callq 0xf3f85
movq %rax, %r14
leaq 0xa3105(%rip), %rdi     # 0x1a9468
movq %rbx, %rsi
movq %rax, %rdx
callq 0x12128c
cmpq $0x0, 0x8(%r15)
je 0x106396
xorl %ebx, %ebx
movq (%r15), %rax
movq (%rax,%rbx,8), %rsi
testq %rsi, %rsi
je 0x10638d
movq %r14, %rdi
callq *0xb8(%r14)
incq %rbx
cmpq 0x8(%r15), %rbx
jb 0x106377
cmpq $0x0, 0x8(%rbp)
je 0x106974
movq 0x18(%rbp), %r14
movl 0xa30bd(%rip), %eax     # 0x1a9468
cltq
leaq (%rax,%rax,2), %rax
leaq 0xa30b0(%rip), %rdx     # 0x1a9468
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x106409
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x106409
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x106409
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x106a47
movq (%rax,%rcx), %rbx
testq %rbx, %rbx
jne 0x106439
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r14, %rsi
callq 0xf3f85
movq %rax, %rbx
leaq 0xa303a(%rip), %rdi     # 0x1a9468
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
leaq 0x10(%r15), %r14
movq (%r14), %rdx
cmpq %rdx, 0x8(%rbp)
jbe 0x106476
movq (%r15), %rsi
movl $0x8, %edi
xorl %ecx, %ecx
movq %r14, %r8
callq 0xc833e
movq %rax, (%r15)
movq 0x10(%r15), %rdx
movq 0x8(%rbp), %rcx
movl $0x8, %edi
movq %rax, %rsi
movq %r14, %r8
callq 0xc833e
movq %rax, (%r15)
movq 0x8(%rsp), %rax
testb $0x2, 0x15(%rax)
movq 0x8(%rbp), %rax
jne 0x106942
testq %rax, %rax
je 0x106974
xorl %ebx, %ebx
movq (%rbp), %rax
movq (%rax,%rbx,8), %rdi
callq 0xc8348
movq (%r15), %rcx
movq %rax, (%rcx,%rbx,8)
incq %rbx
cmpq 0x8(%rbp), %rbx
jb 0x106494
jmp 0x106974
movq $0x0, (%r15)
jmp 0x106927
testq %rax, %rax
je 0x10691f
xorl %r14d, %r14d
movq (%rbp), %rax
movq (%rax,%r14,8), %rsi
movq %rbx, %rdi
callq *0xc0(%rbx)
movq (%r15), %rcx
movq %rax, (%rcx,%r14,8)
incq %r14
cmpq 0x8(%rbp), %r14
jb 0x1064ce
jmp 0x10691f
cmpq $0x0, 0x10(%r15)
je 0x1069af
cmpb $0x0, 0x2a(%rbx)
je 0x106986
movq (%r15), %rdi
callq 0xc8307
jmp 0x1069a0
testq %r15, %r15
je 0x106927
movq 0x10(%rsp), %rax
cmpq %rax, 0x18(%rsp)
movq (%rsp), %r13
je 0x10653f
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq *0x90(%r14)
addq %rbx, %rbp
addq %rbx, %r13
movq %r13, (%rsp)
decq %r15
jne 0x10651f
jmp 0x106927
xorl %eax, %eax
jmp 0x1066f1
testq %rax, %rax
movq %rbp, %r14
je 0x10663f
xorl %r13d, %r13d
movq (%r14), %rax
movq (%rax,%r13,8), %rbx
testq %rbx, %rbx
je 0x10661f
movq (%rbx), %r14
movl 0xa2ee6(%rip), %eax     # 0x1a9468
cltq
leaq (%rax,%rax,2), %rax
leaq 0xa2ed9(%rip), %rdx     # 0x1a9468
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x1065dc
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x1065dc
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x1065dc
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x10663a
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x10660c
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r14, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0xa2e67(%rip), %rdi     # 0x1a9468
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, %rdi
movq %rbx, %rsi
callq *0xc0(%r15)
movq (%rsp), %r15
jmp 0x106621
xorl %eax, %eax
movq (%r15), %rcx
movq %rax, (%rcx,%r13,8)
incq %r13
movq %rbp, %r14
cmpq 0x8(%rbp), %r13
jb 0x106569
jmp 0x10663f
xorl %r15d, %r15d
jmp 0x1065e0
movq 0x8(%r14), %rax
jmp 0x106923
movq 0x8(%rbp), %r14
movl 0xa2e16(%rip), %eax     # 0x1a9468
cltq
leaq (%rax,%rax,2), %rax
leaq 0xa2e09(%rip), %rdx     # 0x1a9468
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x1066b0
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x1066b0
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x1066b0
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x106a4e
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x1066e0
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r14, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0xa2d93(%rip), %rdi     # 0x1a9468
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, %rdi
movq %rbx, %rsi
callq *0xc0(%r15)
movq (%rsp), %r15
movq %rax, (%r15)
jmp 0x10691f
movq (%rbx), %r14
movl 0xa2d66(%rip), %eax     # 0x1a9468
cltq
leaq (%rax,%rax,2), %rax
leaq 0xa2d59(%rip), %rdx     # 0x1a9468
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x106760
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x106760
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x106760
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x106a56
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x106790
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r14, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0xa2ce3(%rip), %rdi     # 0x1a9468
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, %rdi
movq %rbx, %rsi
callq *0xc0(%r15)
movq (%rsp), %rcx
movq %rax, (%rcx)
jmp 0x106927
movq 0x20(%rbx), %rdi
callq *0xc0(%rdi)
movq %rax, (%r15)
jmp 0x106927
movq 0x18(%r14), %r8
movq 0x88(%r14), %rdi
movq (%r15), %rdx
movq 0x8(%r15), %rcx
movq %r14, %rsi
callq 0xc8361
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
movq $0x0, 0x10(%r15)
movq 0x18(%rbp), %rax
movq %rax, 0x18(%r15)
cmpq $0x0, 0x8(%rbp)
je 0x106927
movq %rbp, %rax
movq %rbp, %r13
movq 0x18(%rax), %r14
movl 0xa2c61(%rip), %eax     # 0x1a9468
cltq
leaq (%rax,%rax,2), %rax
leaq 0xa2c54(%rip), %rdx     # 0x1a9468
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x106865
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x106865
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x106865
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x106a38
movq (%rax,%rcx), %rbx
movq (%rsp), %r15
testq %rbx, %rbx
jne 0x106899
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r14, %rsi
callq 0xf3f85
movq %rax, %rbx
leaq 0xa2bda(%rip), %rdi     # 0x1a9468
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
leaq 0x10(%r15), %r8
movq 0x18(%rbx), %rdi
movq (%r15), %rsi
movq 0x10(%r15), %rdx
movq 0x8(%r13), %rcx
callq 0xc833e
movq %rax, (%r15)
cmpb $0x0, 0x2b(%rbx)
je 0x1068d4
movq (%r13), %rsi
movq 0x8(%r13), %rdx
imulq 0x18(%rbx), %rdx
movq %rax, %rdi
callq 0xc83f1
movq %r13, %rbp
jmp 0x10691f
cmpq $0x0, 0x8(%r13)
movq %r13, %rbp
je 0x10691f
xorl %r13d, %r13d
movq 0x18(%rbx), %r14
imulq %r13, %r14
movq (%rsp), %rax
movq (%rax), %r15
addq %r14, %r15
addq (%rbp), %r14
movq %rbx, %rdi
movq %r15, %rsi
callq *0x80(%rbx)
movq %rbx, %rdi
movq %r15, %rsi
movq (%rsp), %r15
movq %r14, %rdx
callq *0x90(%rbx)
incq %r13
cmpq 0x8(%rbp), %r13
jb 0x1068e1
movq 0x8(%rbp), %rax
movq %rax, 0x8(%r15)
incq %r12
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x8(%rax), %r12
jb 0x105aa8
jmp 0x106a5e
testq %rax, %rax
je 0x106974
xorl %r14d, %r14d
movq (%rbp), %rax
movq (%rax,%r14,8), %rsi
testq %rsi, %rsi
je 0x106962
movq %rbx, %rdi
callq *0xc0(%rbx)
jmp 0x106964
xorl %eax, %eax
movq (%r15), %rcx
movq %rax, (%rcx,%r14,8)
incq %r14
cmpq 0x8(%rbp), %r14
jb 0x10694a
movq 0x8(%rbp), %rax
movq %rax, 0x8(%r15)
movq 0x18(%rbp), %rax
movq %rax, 0x18(%r15)
jmp 0x106927
movq 0x18(%rbx), %r8
movq 0x88(%rbx), %rdi
movq (%r15), %rdx
movq 0x8(%r15), %rcx
movq %rbx, %rsi
callq 0xc8361
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
movq $0x0, 0x10(%r15)
leaq 0x10(%r15), %r8
movq 0x18(%rbx), %rdi
movq (%r15), %rsi
movq 0x10(%r15), %rdx
movq 0x8(%rbp), %rcx
callq 0xc833e
movq %rax, (%r15)
movq 0x8(%rbp), %rax
testq %rax, %rax
je 0x106923
xorl %r13d, %r13d
movq 0x18(%rbx), %r14
imulq %r13, %r14
movq (%rsp), %rax
movq (%rax), %r15
addq %r14, %r15
addq (%rbp), %r14
movq %rbx, %rdi
movq %r15, %rsi
callq *0x80(%rbx)
movq %rbx, %rdi
movq %r15, %rsi
movq (%rsp), %r15
movq %r14, %rdx
callq *0x90(%rbx)
incq %r13
movq 0x8(%rbp), %rax
cmpq %rax, %r13
jb 0x1069da
jmp 0x106923
xorl %r15d, %r15d
jmp 0x105f26
xorl %r15d, %r15d
jmp 0x106003
xorl %r14d, %r14d
jmp 0x106253
xorl %ebx, %ebx
jmp 0x106869
xorl %r14d, %r14d
jmp 0x106342
xorl %ebx, %ebx
jmp 0x10640d
xorl %r15d, %r15d
jmp 0x1066b4
xorl %r15d, %r15d
jmp 0x106764
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq