// File: /workspace/github_c_makefile_star2_O2/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 $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
cmpq %rdx, %rsi
je 0x85e8e
xorl %ecx, %ecx
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x8(%rax), %rcx
jae 0x85e8e
movq (%rax), %rbx
movq %rcx, 0x20(%rsp)
imulq $0x30, %rcx, %rax
cmpb $0x0, 0x28(%rbx,%rax)
jne 0x85d73
addq %rax, %rbx
movq 0x18(%rbx), %rax
movq %rax, (%rsp)
movl 0x10(%rax), %edi
leal -0x1(%rdi), %eax
cmpl $0xc, %eax
ja 0x85a3c
movq (%rbx), %rbp
movq 0x8(%rsp), %rcx
leaq (%rcx,%rbp), %r13
addq 0x10(%rsp), %rbp
leaq 0x428fc(%rip), %rcx     # 0xc808c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x20(%rbx), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq *0x90(%rdi)
jmp 0x85d73
movq 0x20(%rbx), %rbx
movq (%rsp), %rax
movq 0x18(%rax), %r15
xorl %r14d, %r14d
cmpq %r14, %r15
je 0x85d73
movq (%r13,%r14,8), %rsi
movq (%rbp,%r14,8), %r12
testq %rsi, %rsi
je 0x857de
movq %rbx, %rdi
callq *0xb8(%rbx)
movq (%rsp), %rax
testb $0x2, 0x15(%rax)
jne 0x857f2
movq %r12, %rdi
callq 0x6026d
jmp 0x85803
testq %r12, %r12
je 0x85803
movq %rbx, %rdi
movq %r12, %rsi
callq *0xc0(%rbx)
incq %r14
jmp 0x857bd
movq (%rbp), %rax
jmp 0x85ce5
movq (%rsp), %rax
movq 0x18(%rax), %r14
xorl %r15d, %r15d
cmpq %r15, %r14
je 0x85d73
movq (%r13,%r15,8), %rdi
movq (%rbp,%r15,8), %rbx
callq 0x871bf
movq (%rsp), %rax
testb $0x2, 0x15(%rax)
jne 0x85848
movq %rbx, %rdi
callq 0x6026d
jmp 0x85850
movq %rbx, %rdi
callq 0x87217
incq %r15
jmp 0x8581c
cmpq $0x0, 0x10(%r13)
je 0x85876
xorl %ebx, %ebx
cmpq 0x8(%r13), %rbx
jae 0x85876
movq (%r13), %rax
movq (%rax,%rbx,8), %rdi
callq 0x871bf
incq %rbx
jmp 0x8585e
movq 0x8(%rbp), %rax
testq %rax, %rax
je 0x85be2
leaq 0x10(%r13), %rbx
movq (%rbx), %rdx
cmpq %rdx, %rax
jbe 0x858c2
movq (%r13), %rsi
pushq $0x8
popq %r14
movq %r14, %rdi
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x60263
movq %rax, (%r13)
movq 0x10(%r13), %rdx
movq 0x8(%rbp), %rcx
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %r8
callq 0x60263
movq %rax, (%r13)
movq (%rsp), %rax
testb $0x2, 0x15(%rax)
jne 0x85ca0
xorl %ebx, %ebx
movq 0x8(%rbp), %rax
cmpq %rax, %rbx
jae 0x85d6f
movq (%rbp), %rax
movq (%rax,%rbx,8), %rdi
callq 0x6026d
movq (%r13), %rcx
movq %rax, (%rcx,%rbx,8)
incq %rbx
jmp 0x858d2
movq (%r13), %rsi
testq %rsi, %rsi
je 0x8590b
movq 0x8(%r13), %rdi
callq 0x871a0
movq (%rbp), %rsi
testq %rsi, %rsi
je 0x85be9
movq (%rsp), %rax
testb $0x2, 0x15(%rax)
jne 0x85cc9
movq %rsi, %rdi
callq 0x6026d
jmp 0x85cd2
movq (%r13), %rdi
testq %rdi, %rdi
je 0x85941
callq 0x871bf
movq (%rbp), %rdi
testq %rdi, %rdi
je 0x85bae
movq (%rsp), %rax
testb $0x2, 0x15(%rax)
je 0x859cb
callq 0x87217
jmp 0x85ce5
movq 0x20(%rbx), %r12
leaq 0x10(%r13), %rbx
cmpq $0x0, 0x10(%r13)
je 0x85bf0
xorl %r14d, %r14d
cmpq 0x8(%r13), %r14
jae 0x85bb8
movq (%r13), %rax
movq (%rax,%r14,8), %rsi
movq %r12, %rdi
callq *0xb8(%r12)
incq %r14
jmp 0x85978
movq (%r13), %rsi
testq %rsi, %rsi
je 0x859ad
movq 0x20(%rbx), %rdi
callq *0xb8(%rdi)
movq (%rbp), %rsi
testq %rsi, %rsi
je 0x85bae
movq (%rsp), %rax
testb $0x2, 0x15(%rax)
jne 0x85cdb
movq %rsi, %rdi
callq 0x6026d
jmp 0x85ce5
movq 0x20(%rbx), %r12
cmpb $0x1, 0x2b(%r12)
jne 0x85bbd
movq 0x8(%rbp), %rdx
movq (%r13), %rax
movq 0x10(%r13), %rcx
cmpq %rcx, %rdx
jbe 0x85a33
leaq 0x10(%r13), %rbx
movq 0x18(%r12), %rdi
movq %rax, %rsi
movq %rcx, %rdx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x60263
movq %rax, (%r13)
movq 0x18(%r12), %rdi
movq 0x10(%r13), %rdx
movq 0x8(%rbp), %rcx
movq %rax, %rsi
movq %rbx, %r8
callq 0x60263
movq %rax, (%r13)
movq 0x8(%rbp), %rdx
movq (%rbp), %rsi
jmp 0x85d5d
callq 0x610e5
leaq 0x42d23(%rip), %rdi     # 0xc876b
leaq 0x4268f(%rip), %rsi     # 0xc80de
movl $0x3db, %edx            # imm = 0x3DB
leaq 0x42ce7(%rip), %rcx     # 0xc8742
movq %rax, %r8
xorl %eax, %eax
callq 0x60186
jmp 0x85d73
cmpq $0x0, 0x10(%r13)
je 0x85d09
movq 0x18(%r13), %rdi
callq 0x83402
cmpb $0x0, 0x2a(%rax)
je 0x85cee
movq (%r13), %rdi
callq 0x60230
jmp 0x85d09
movq 0x20(%rbx), %r12
movq (%rsp), %rax
movq 0x18(%rax), %r14
movq 0x18(%r12), %rbx
cmpb $0x0, 0x2b(%r12)
je 0x85ac6
imulq %r14, %rbx
movq %r13, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x60300
jmp 0x85d73
subq $0x1, %r14
jb 0x85d73
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq *0x90(%r12)
addq %rbx, %rbp
addq %rbx, %r13
jmp 0x85ac6
cmpq $0x0, 0x10(%r13)
je 0x85b20
movq 0x18(%r13), %rdi
callq 0x83402
movq %rax, %rbx
xorl %r14d, %r14d
cmpq 0x8(%r13), %r14
jae 0x85b20
movq (%r13), %rax
movq (%rax,%r14,8), %rsi
testq %rsi, %rsi
je 0x85b1b
movq %rbx, %rdi
callq *0xb8(%rbx)
incq %r14
jmp 0x85aff
cmpq $0x0, 0x8(%rbp)
je 0x85c8d
leaq 0x10(%r13), %rbx
movq 0x18(%rbp), %rdi
callq 0x83402
movq %rax, %r12
movq (%rbx), %rdx
cmpq %rdx, 0x8(%rbp)
jbe 0x85b77
movq (%r13), %rsi
pushq $0x8
popq %r14
movq %r14, %rdi
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x60263
movq %rax, (%r13)
movq 0x10(%r13), %rdx
movq 0x8(%rbp), %rcx
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %r8
callq 0x60263
movq %rax, (%r13)
movq (%rsp), %rax
testb $0x2, 0x15(%rax)
jne 0x85dc4
xorl %ebx, %ebx
movq 0x8(%rbp), %rax
cmpq %rax, %rbx
jae 0x85c8f
movq (%rbp), %rax
movq (%rax,%rbx,8), %rdi
callq 0x6026d
movq (%r13), %rcx
movq %rax, (%rcx,%rbx,8)
incq %rbx
jmp 0x85b87
andq $0x0, (%r13)
jmp 0x85d73
movq (%rbx), %rdx
jmp 0x85bf2
cmpq $0x0, 0x10(%r13)
je 0x85dfc
cmpb $0x0, 0x2a(%r12)
je 0x85e02
movq (%r13), %rdi
callq 0x60230
jmp 0x85e1f
xorl %eax, %eax
jmp 0x85d6f
xorl %eax, %eax
jmp 0x85cd2
xorl %edx, %edx
cmpq %rdx, 0x8(%rbp)
jbe 0x85c2b
movq (%r13), %rsi
pushq $0x8
popq %r14
movq %r14, %rdi
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x60263
movq %rax, (%r13)
movq 0x10(%r13), %rdx
movq 0x8(%rbp), %rcx
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %r8
callq 0x60263
movq %rax, (%r13)
movq (%rsp), %rax
testb $0x2, 0x15(%rax)
jne 0x85c5e
xorl %ebx, %ebx
movq 0x8(%rbp), %rax
cmpq %rax, %rbx
jae 0x85d6f
movq (%rbp), %rax
movq (%rax,%rbx,8), %rdi
callq 0x6026d
movq (%r13), %rcx
movq %rax, (%rcx,%rbx,8)
incq %rbx
jmp 0x85c37
xorl %ebx, %ebx
movq 0x8(%rbp), %rax
cmpq %rax, %rbx
jae 0x85d6f
movq (%rbp), %rax
movq (%rax,%rbx,8), %rsi
movq %r12, %rdi
callq *0xc0(%r12)
movq (%r13), %rcx
movq %rax, (%rcx,%rbx,8)
incq %rbx
jmp 0x85c60
xorl %eax, %eax
movq %rax, 0x8(%r13)
movq 0x18(%rbp), %rax
movq %rax, 0x18(%r13)
jmp 0x85d73
xorl %ebx, %ebx
movq 0x8(%rbp), %rax
cmpq %rax, %rbx
jae 0x85d6f
movq (%rbp), %rax
movq (%rax,%rbx,8), %rdi
callq 0x87217
movq (%r13), %rcx
movq %rax, (%rcx,%rbx,8)
incq %rbx
jmp 0x85ca2
movq 0x8(%rbp), %rdi
callq 0x871f5
movq %rax, (%r13)
jmp 0x85d6b
movq 0x20(%rbx), %rdi
callq *0xc0(%rdi)
movq %rax, (%r13)
jmp 0x85d73
movq 0x18(%rax), %r8
movq 0x88(%rax), %rdi
movq (%r13), %rdx
movq 0x8(%r13), %rcx
movq %rax, %rsi
callq 0x60286
xorps %xmm0, %xmm0
movups %xmm0, (%r13)
andq $0x0, 0x10(%r13)
movq 0x18(%rbp), %rdi
movq %rdi, 0x18(%r13)
cmpq $0x0, 0x8(%rbp)
je 0x85d73
leaq 0x10(%r13), %rbx
callq 0x83402
movq %rax, %r12
movq 0x18(%rax), %rdi
movq (%r13), %rsi
movq 0x10(%r13), %rdx
movq 0x8(%rbp), %rcx
movq %rbx, %r8
callq 0x60263
movq %rax, (%r13)
cmpb $0x0, 0x2b(%r12)
je 0x85d80
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
imulq 0x18(%r12), %rdx
movq %rax, %rdi
callq 0x60300
movq 0x8(%rbp), %rax
movq %rax, 0x8(%r13)
movq 0x20(%rsp), %rcx
incq %rcx
jmp 0x85734
xorl %r15d, %r15d
movq 0x8(%rbp), %rax
cmpq %rax, %r15
jae 0x85d6f
movq 0x18(%r12), %rbx
imulq %r15, %rbx
movq (%r13), %r14
addq %rbx, %r14
addq (%rbp), %rbx
movq %r12, %rdi
movq %r14, %rsi
callq *0x80(%r12)
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq *0x90(%r12)
incq %r15
jmp 0x85d83
xorl %ebx, %ebx
movq 0x8(%rbp), %rax
cmpq %rax, %rbx
jae 0x85c8f
movq (%rbp), %rax
movq (%rax,%rbx,8), %rsi
testq %rsi, %rsi
je 0x85ded
movq %r12, %rdi
callq *0xc0(%r12)
jmp 0x85def
xorl %eax, %eax
movq (%r13), %rcx
movq %rax, (%rcx,%rbx,8)
incq %rbx
jmp 0x85dc6
movq (%r13), %rsi
jmp 0x85e2e
movq 0x18(%r12), %r8
movq 0x88(%r12), %rdi
movq (%r13), %rdx
movq 0x8(%r13), %rcx
movq %r12, %rsi
callq 0x60286
xorps %xmm0, %xmm0
movups %xmm0, (%r13)
andq $0x0, 0x10(%r13)
xorl %esi, %esi
leaq 0x10(%r13), %r8
movq 0x18(%r12), %rdi
movq 0x8(%rbp), %rcx
xorl %edx, %edx
callq 0x60263
movq %rax, (%r13)
xorl %r15d, %r15d
movq 0x8(%rbp), %rax
cmpq %rax, %r15
jae 0x85d6f
movq 0x18(%r12), %rbx
imulq %r15, %rbx
movq (%r13), %r14
addq %rbx, %r14
addq (%rbp), %rbx
movq %r12, %rdi
movq %r14, %rsi
callq *0x80(%r12)
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq *0x90(%r12)
incq %r15
jmp 0x85e49
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq