// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/lib/bcore/bcore_bin_ml.c
// Function: interpret
static sr_s interpret( const bcore_bin_ml_interpreter_s* o, sr_s obj, sr_s source )
{
    bcore_life_s* l = bcore_life_s_create();
    sr_s src_l = sr_cl( sr_cp( source, TYPEOF_bcore_source_s ), l );

    if( !obj.o )
    {
        tp_t type = get_type( &src_l );
        if( type )
        {
            bl_t create_instance = get_flag( &src_l );
            if( create_instance )
            {
                obj = interpret( o, bcore_inst_t_create_sr( type ), src_l );
            }
            else
            {
                obj.p = bcore_inst_s_get_typed( type );
            }
        }
    }
    else
    {
        obj = sr_cp( obj, TYPEOF_bcore_via_s );
        sr_s obj_l = sr_cw( obj );
        if( sr_s_type( &obj_l ) == TYPEOF_st_s )
        {
            st_s* string = obj_l.o;
            st_s_clear( string );
            u0_t c = 0;
            bcore_source_x_get_data( src_l, &c, sizeof( c ) );
            while( c != 0 )
            {
                st_s_push_char( string, c );
                bcore_source_x_get_data( src_l, &c, sizeof( c ) );
            }
        }
        else if( bcore_via_x_is_leaf( obj_l ) )
        {
            switch( sr_s_type( &obj_l ) )
            {
                case TYPEOF_aware_t : bcore_source_x_get_data( src_l, obj_l.o, sizeof( aware_t ) ); break;
                case TYPEOF_bl_t    : bcore_source_x_get_data( src_l, obj_l.o, sizeof( bl_t ) ); break;
                case TYPEOF_f2_t    : bcore_source_x_get_data( src_l, obj_l.o, sizeof( f2_t ) ); break;
                case TYPEOF_f3_t    : bcore_source_x_get_data( src_l, obj_l.o, sizeof( f3_t ) ); break;
                case TYPEOF_s0_t    : bcore_source_x_get_data( src_l, obj_l.o, sizeof( s0_t ) ); break;
                case TYPEOF_s1_t    : bcore_source_x_get_data( src_l, obj_l.o, sizeof( s1_t ) ); break;
                case TYPEOF_s2_t    : bcore_source_x_get_data( src_l, obj_l.o, sizeof( s2_t ) ); break;
                case TYPEOF_s3_t    : bcore_source_x_get_data( src_l, obj_l.o, sizeof( s3_t ) ); break;
                case TYPEOF_sz_t    : bcore_source_x_get_data( src_l, obj_l.o, sizeof( sz_t ) ); break;
                case TYPEOF_uz_t    : bcore_source_x_get_data( src_l, obj_l.o, sizeof( uz_t ) ); break;
                case TYPEOF_tp_t    : bcore_source_x_get_data( src_l, obj_l.o, sizeof( tp_t ) ); break;
                case TYPEOF_u0_t    : bcore_source_x_get_data( src_l, obj_l.o, sizeof( u0_t ) ); break;
                case TYPEOF_u1_t    : bcore_source_x_get_data( src_l, obj_l.o, sizeof( u1_t ) ); break;
                case TYPEOF_u2_t    : bcore_source_x_get_data( src_l, obj_l.o, sizeof( u2_t ) ); break;
                case TYPEOF_u3_t    : bcore_source_x_get_data( src_l, obj_l.o, sizeof( u3_t ) ); break;
                default: ERR( "Cannot read type '%s' from a binary stream", ifnameof( sr_s_type( &obj_l ) ) );
            }
        }
        else
        {
            uz_t size = 0;
            bcore_source_x_get_data( src_l, &size, sizeof( uz_t ) );
            if( bcore_via_x_is_pure_array( obj_l ) )
            {
                sr_s arr_l = sr_cp( obj_l, TYPEOF_bcore_array_s );
                if( bcore_array_x_is_mutable_mono_typed( arr_l ) ) bcore_array_x_set_gtype( arr_l, sr_to_tp( interpret( o, sr_null(), src_l ) ) );
                bcore_array_x_set_size( arr_l, size );
                for( uz_t i = 0; i < size; i++ ) bcore_array_x_set( arr_l, i, interpret( o, sr_null(), src_l ) );
            }
            else
            {
                for( uz_t i = 0; i < size; i++ )
                {
                    tp_t name = get_type( &src_l );
                    uz_t idx = bcore_via_x_nget_index( obj_l, name );
                    if( bcore_via_x_iis_link( obj_l, idx ) )
                    {
                        bcore_via_x_iset( obj_l, idx, interpret( o, sr_null(), src_l ) );
                    }
                    else
                    {
                        sr_s item = bcore_via_x_iget( obj_l, idx );
                        if( item.o )
                        {
                            ASSERT( get_type( &src_l ) == sr_s_type( &item ) );
                            ASSERT( get_flag( &src_l ) == true );
                        }
                        if( sr_s_is_strong( &item ) )  // if item is detached --> refeed it
                        {
                            bcore_via_x_iset( obj_l, idx, interpret( o, item, src_l ) );
                        }
                        else
                        {
                            sr_down( interpret( o, item, src_l ) );
                        }
                    }
                }
            }
        }
        bcore_via_r_source(  &obj_l, source.o );
        bcore_via_r_mutated( &obj_l );
    }
    bcore_life_s_discard( l );
    return obj;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movq %rdi, %r12
leaq 0x200(%rsp), %rbp
xorl %eax, %eax
callq 0x717ac
movq %rax, %r13
movq 0x218(%rsp), %r14
movq 0x220(%rsp), %rdi
movq 0x228(%rsp), %rbx
movabsq $-0x7e8ee9b9b4bbaa8, %rsi # imm = 0xF817116464B44558
callq 0x7abc8
movq %r14, 0xd8(%rsp)
movq %r14, 0x118(%rsp)
movq %rax, 0x120(%rsp)
movq %rbx, 0x128(%rsp)
movq %rbx, 0x10(%rsp)
movups 0x118(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x38(%rsp), %rdi
movq %r13, %rsi
callq 0x8ced9
cmpq $0x0, (%rbp)
je 0x9e7d0
movq %r13, 0xd0(%rsp)
movabsq $0x541d0401d4dcff33, %r13 # imm = 0x541D0401D4DCFF33
movq 0x8(%rbp), %rdi
movq 0x10(%rbp), %rbx
movq %r13, %rsi
callq 0x7abc8
movq %rax, 0x8(%rbp)
movq (%rbp), %rax
movq %rax, 0x70(%rsp)
movq 0x8(%rbp), %rax
movq %rax, 0x78(%rsp)
andq $-0x3, %rbx
movq %rbx, 0x80(%rsp)
movq 0x78(%rsp), %rbp
testq %rbp, %rbp
je 0x9e670
movabsq $-0x503db0e6e1c2e704, %rax # imm = 0xAFC24F191E3D18FC
cmpq %rax, 0x8(%rbp)
jne 0x9e670
movq %r12, %rbx
movq 0x70(%rsp), %r14
movq %r14, %rdi
callq 0x8f0c3
leaq 0x50(%rsp), %r15
movb $0x0, (%r15)
pushq $0x1
popq %r12
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x9fb30
movb 0x50(%rsp), %al
testb %al, %al
je 0x9eb21
movsbl %al, %esi
movq %r14, %rdi
callq 0x8f0ee
jmp 0x9e639
movq 0x80(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x70(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x9f852
testb %al, %al
je 0x9e83d
testq %rbp, %rbp
je 0x9ee0f
movq 0x8(%rbp), %rdi
movabsq $-0x73f6ae1ad309fd45, %rax # imm = 0x8C0951E52CF602BB
cmpq %rax, %rdi
je 0x9ee3c
movabsq $-0x6bce971ace902370, %rax # imm = 0x943168E5316FDC90
cmpq %rax, %rdi
je 0x9ee74
movabsq $-0x6119581ac7eacd63, %rax # imm = 0x9EE6A7E53815329D
cmpq %rax, %rdi
je 0x9ee58
movabsq $-0x5fc2af85f419929b, %rax # imm = 0xA03D507A0BE66D65
cmpq %rax, %rdi
je 0x9e7b1
movabsq $-0x5aa4411ac4e2880e, %rax # imm = 0xA55BBEE53B1D77F2
cmpq %rax, %rdi
je 0x9e7b1
movabsq $-0x58737885f0577326, %rax # imm = 0xA78C877A0FA88CDA
cmpq %rax, %rdi
je 0x9ee58
movabsq $-0x4882601bdca6aefb, %rax # imm = 0xB77D9FE423595105
cmpq %rax, %rdi
je 0x9e7b1
movabsq $-0x3f1363e6d8155aed, %rax # imm = 0xC0EC9C1927EAA513
cmpq %rax, %rdi
je 0x9e7b1
movabsq $-0x3ac242643d9c35a8, %rax # imm = 0xC53DBD9BC263CA58
cmpq %rax, %rdi
je 0x9ee3c
movabsq $0x6d07f9ef5b68e8a2, %rax # imm = 0x6D07F9EF5B68E8A2
cmpq %rax, %rdi
je 0x9e7b1
movabsq $0x510c2417c67dabeb, %rax # imm = 0x510C2417C67DABEB
cmpq %rax, %rdi
je 0x9ee58
movabsq $0x585a3b17ca3de200, %rax # imm = 0x585A3B17CA3DE200
cmpq %rax, %rdi
je 0x9e7b1
movabsq $0x62367a17d02b474d, %rax # imm = 0x62367A17D02B474D
cmpq %rax, %rdi
je 0x9ee3c
movabsq $0x69849117d3eb7d62, %rax # imm = 0x69849117D3EB7D62
cmpq %rax, %rdi
je 0x9ee74
movabsq $-0x388c46b188de83fe, %rax # imm = 0xC773B94E77217C02
cmpq %rax, %rdi
jne 0x9ee11
movq 0x70(%rsp), %rdi
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rsp)
pushq $0x8
jmp 0x9ee8e
leaq 0x38(%rsp), %rdi
callq 0x9fac5
testq %rax, %rax
je 0x9eeec
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0x9fae7
testb %al, %al
je 0x9eb29
leaq 0x1b0(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x9d2e0
movq 0x48(%rsp), %rax
movq %rax, 0x28(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
movq %rbp, %rdi
callq 0x9e528
jmp 0x9eeec
leaq 0x90(%rsp), %rdi
andq $0x0, (%rdi)
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rsp)
pushq $0x8
popq %rsi
callq 0x9fb30
movq 0x80(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x70(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x9f8c7
testb %al, %al
movq %r12, 0xc8(%rsp)
je 0x9eb3a
movabsq $-0x5073d588c3beb52e, %r15 # imm = 0xAF8C2A773C414AD2
movq 0x70(%rsp), %r14
movq %rbp, %rdi
movq %r15, %rsi
callq 0x7abc8
movq %r14, 0x98(%rsp)
movq %rax, 0xa0(%rsp)
movq %rbx, 0xa8(%rsp)
movq %rbx, 0x10(%rsp)
movups 0x98(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x7e214
testb %al, %al
je 0x9e9b7
xorps %xmm0, %xmm0
movaps %xmm0, 0xe0(%rsp)
andq $0x0, 0xf0(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x28(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0xe0(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x50(%rsp), %r12
movq %r12, %rdi
callq 0x9e528
movq %r12, %rdi
callq 0x8dd21
movq %rax, %r14
testb $0x2, 0x10(%r12)
je 0x9e958
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x50(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x8cdc1
movups 0x98(%rsp), %xmm0
movaps %xmm0, 0x50(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x58(%rsp), %rdi
movq 0x8(%rdi), %rax
cmpq %r15, %rax
je 0x9e98b
movq %rax, %rdi
callq 0x9fa75
movq %rax, %rdi
movq 0x50(%rsp), %rsi
movq %r14, %rdx
callq 0x7c5ed
testb $0x2, 0x60(%rsp)
je 0x9e9b7
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x50(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x8cdc1
movq 0x90(%rsp), %r14
movups 0x98(%rsp), %xmm0
movaps %xmm0, 0x50(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x58(%rsp), %rdi
movq 0x8(%rdi), %rax
cmpq %r15, %rax
je 0x9e9f2
movq %rax, %rdi
callq 0x9fa75
movq %rax, %rdi
movq 0x50(%rsp), %rsi
movq %r14, %rdx
callq 0x7b8b6
testb $0x2, 0x60(%rsp)
je 0x9ea1e
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x50(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x8cdc1
xorl %r12d, %r12d
leaq 0x198(%rsp), %r14
cmpq 0x90(%rsp), %r12
jae 0x9ee02
xorps %xmm1, %xmm1
movaps %xmm1, 0x150(%rsp)
andq $0x0, 0x160(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x28(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x160(%rsp), %rax
movq %rax, 0x10(%rsp)
movups %xmm1, (%rsp)
movq %r14, %rdi
callq 0x9e528
movq 0x1a8(%rsp), %rax
movq %rax, 0x60(%rsp)
movups 0x198(%rsp), %xmm0
movaps %xmm0, 0x50(%rsp)
movups 0x98(%rsp), %xmm0
movaps %xmm0, 0xb0(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0xb8(%rsp), %rdi
movq 0x8(%rdi), %rax
cmpq %r15, %rax
je 0x9eace
movq %rax, %rdi
callq 0x9fa75
movq %rax, %rdi
movq 0xb0(%rsp), %rsi
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x50(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r12, %rdx
callq 0x7c988
testb $0x2, 0xc0(%rsp)
je 0x9eb19
movq 0xc0(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0xb0(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x8cdc1
incq %r12
jmp 0x9ea29
movq %rbx, %r12
jmp 0x9ee94
movq %r14, %rdi
callq 0x9f70e
movq %rax, 0x8(%rbp)
jmp 0x9eeec
leaq 0x38(%rsp), %r12
xorl %ebx, %ebx
cmpq 0x90(%rsp), %rbx
jae 0x9ee02
movq %r12, %rdi
callq 0x9fac5
movq %rax, %r14
movaps 0x70(%rsp), %xmm0
movaps %xmm0, 0x50(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x58(%rsp), %rdi
movq 0x8(%rdi), %rax
cmpq %r13, %rax
je 0x9eb8a
movq %rax, %rdi
callq 0x9f991
movq %rax, %rdi
movq 0x50(%rsp), %rsi
movq %r14, %rdx
callq 0x8ae97
movq %rax, %r15
testb $0x2, 0x60(%rsp)
je 0x9ebb9
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x50(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x8cdc1
movaps 0x70(%rsp), %xmm0
movaps %xmm0, 0x50(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x58(%rsp), %rdi
movq 0x8(%rdi), %rax
cmpq %r13, %rax
je 0x9ebe9
movq %rax, %rdi
callq 0x9f991
movq %rax, %rdi
movq 0x50(%rsp), %rsi
movq %r15, %rdx
callq 0x8b2ba
movl %eax, %r14d
testb $0x2, 0x60(%rsp)
je 0x9ec18
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x50(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x8cdc1
testb %r14b, %r14b
je 0x9ec7d
xorps %xmm1, %xmm1
movaps %xmm1, 0x130(%rsp)
andq $0x0, 0x140(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x28(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x140(%rsp), %rax
movq %rax, 0x10(%rsp)
movups %xmm1, (%rsp)
leaq 0x180(%rsp), %rdi
callq 0x9e528
movq 0x190(%rsp), %rax
movq %rax, 0x28(%rsp)
movups 0x180(%rsp), %xmm0
jmp 0x9edd7
movq 0x80(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x70(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x50(%rsp), %rdi
movq %r15, %rsi
callq 0x9f926
cmpq $0x0, 0x50(%rsp)
je 0x9ed25
movq %r12, %rdi
callq 0x9fac5
movq 0x58(%rsp), %rcx
testq %rcx, %rcx
je 0x9ecc0
movq 0x8(%rcx), %rcx
jmp 0x9ecc2
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x9ecf0
leaq 0xb979(%rip), %rdi      # 0xaa647
leaq 0x2d9be(%rip), %rsi     # 0xcc693
leaq 0x2d5de(%rip), %rdx     # 0xcc2ba
leaq 0x2d93b(%rip), %rcx     # 0xcc61e
movl $0x13b, %r8d            # imm = 0x13B
xorl %eax, %eax
callq 0x5ffac
movq %r12, %rdi
callq 0x9fae7
testb %al, %al
jne 0x9ed25
leaq 0xb944(%rip), %rdi      # 0xaa647
leaq 0x2d9b2(%rip), %rsi     # 0xcc6bc
leaq 0x2d5a9(%rip), %rdx     # 0xcc2ba
leaq 0x2d906(%rip), %rcx     # 0xcc61e
movl $0x13c, %r8d            # imm = 0x13C
xorl %eax, %eax
callq 0x5ffac
testb $0x2, 0x60(%rsp)
jne 0x9ed8e
movq 0x48(%rsp), %rax
movq %rax, 0x28(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x50(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x100(%rsp), %rdi
callq 0x9e528
testb $0x2, 0x110(%rsp)
je 0x9edfa
movq 0x110(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x100(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x8cdc1
jmp 0x9edfa
movq 0x48(%rsp), %rax
movq %rax, 0x28(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x50(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x168(%rsp), %rdi
callq 0x9e528
movq 0x178(%rsp), %rax
movq %rax, 0x28(%rsp)
movups 0x168(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x70(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r15, %rdi
callq 0x9fb87
incq %rbx
jmp 0x9eb41
movq 0xc8(%rsp), %r12
jmp 0x9ee94
xorl %edi, %edi
callq 0x9f8b1
leaq 0x2d49d(%rip), %rdi     # 0xcc2ba
leaq 0x2d7fa(%rip), %rsi     # 0xcc61e
leaq 0x2d83d(%rip), %rcx     # 0xcc668
movl $0x11e, %edx            # imm = 0x11E
movq %rax, %r8
xorl %eax, %eax
callq 0x60031
jmp 0x9ee94
movq 0x70(%rsp), %rdi
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rsp)
pushq $0x1
jmp 0x9ee8e
movq 0x70(%rsp), %rdi
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rsp)
pushq $0x4
jmp 0x9ee8e
movq 0x70(%rsp), %rdi
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rsp)
pushq $0x2
popq %rsi
callq 0x9fb30
movq 0x8(%rbp), %rax
movq %rbp, %rdi
cmpq %r13, %rax
je 0x9eeab
movq %rax, %rdi
callq 0x9f991
movq %rax, %rdi
movq 0x70(%rsp), %r14
movq %r14, %rsi
movq 0xd8(%rsp), %rdx
callq 0x8b49b
movq 0x8(%rbp), %rdi
cmpq %r13, %rdi
je 0x9eed1
callq 0x9f991
movq %rax, %rbp
movq %rbp, %rdi
movq %r14, %rsi
callq 0x8b4b1
leaq 0x200(%rsp), %rbp
movq 0xd0(%rsp), %r13
movq %r13, %rdi
callq 0x717c7
movq 0x10(%rbp), %rax
movq %rax, 0x10(%r12)
movups (%rbp), %xmm0
movups %xmm0, (%r12)
movq %r12, %rax
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq