// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_flect.c
// Function: bcore_self_s_parse_src
bcore_self_s* bcore_self_s_parse_src( sr_s src, uz_t size_of, uz_t align_of, sc_t namespace, bl_t advanced_checks )
{
    bcore_life_s* l = bcore_life_s_create();
    src = bcore_life_s_push_sr( l, sr_cp( src, TYPEOF_bcore_source_s ) );
    bcore_self_s* o = bcore_self_s_create();

    st_s* identifier = st_s_create_l( l );

    if( bcore_source_r_parse_bl_fa( &src, " #?':'" ) )
    {
        ASSERT( namespace );
        st_s* name = st_s_create();
        bcore_source_r_parse_fa( &src, " #name", name );
        st_s_copy_fa( identifier, "#<sc_t>_#<sc_t>", namespace, name->sc );
        st_s_discard( name );
    }
    else
    {
        bcore_source_r_parse_fa( &src, " #name", identifier );
    }

    o->type = ( identifier->size > 0 ) ? entypeof( identifier->sc ) : 0;
    if( o->type ) bcore_source_r_parse_fa( &src, " =" );

    bl_t aware = bcore_source_r_parse_bl_fa( &src, " #?w'aware'" );

    bcore_source_r_parse_fa( &src, " #name", identifier );
    tp_t type2 = ( identifier->size > 0 ) ? entypeof( identifier->sc ) : 0;

    bcore_source_r_parse_fa( &src, " #name", identifier );
    tp_t type3 = ( identifier->size > 0 ) ? entypeof( identifier->sc ) : 0;

    if( aware || bcore_source_r_parse_bl_fa( &src, " #=?'{'" ) )
    {
        o->trait  = type2 ? type2 : typeof( "bcore_inst" );
        o->parent = type3;
        o->body = bcore_self_body_s_create();
        bcore_self_body_s_parse_src( o->body, src, o, aware, advanced_checks );

        if( !o->type )
        {
            o->type = bcore_self_body_s_fold_tp( o->body, bcore_tp_init() );
        }
    }
    else
    {
        if( !o->type ) bcore_source_r_parse_errf( &src, "Anonymous types need a body." );
        const bcore_self_s* self_l = bcore_flect_try_self( type2 );
        if( !self_l ) bcore_source_r_parse_errf( &src, "Type %s not defined.", ifnameof( type2 ) );
        o->trait = self_l->trait;
        o->parent = self_l->parent;
        o->body = bcore_self_body_s_clone( self_l->body );
        o->size = self_l->size;
    }

    o->size = size_of;
    o->align = align_of;
    bcore_life_s_discard( l );
    return o;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %ecx, 0x44(%rsp)
movq %rdx, 0x18(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdi, 0x50(%rsp)
leaq 0xe0(%rsp), %rbx
movabsq $-0x7e8ee9b9b4bbaa8, %r15 # imm = 0xF817116464B44558
xorl %eax, %eax
callq 0xe03d4
movq %rax, %r13
movq (%rbx), %r14
movq 0x8(%rbx), %rdi
movq 0x10(%rbx), %r12
movq %r15, %rsi
callq 0xf58f8
movq %r14, 0x60(%rsp)
movq %rax, 0x68(%rsp)
movq %r12, 0x70(%rsp)
movq %r12, 0x10(%rsp)
movups 0x60(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe0795
movl $0x38, %esi
xorl %edi, %edi
callq 0xc8315
movq %rax, %r12
movl $0x38, %esi
movq %rax, %rdi
callq 0xc8366
movabsq $-0x4b706df6ad0a9f1, %rax # imm = 0xFB48F920952F560F
movq %rax, (%r12)
movq %r13, 0x48(%rsp)
movq %r13, %rdi
callq 0x114f1d
movq %rax, %r14
movq 0x8(%rbx), %rbp
movq 0x8(%rbp), %r13
cmpq %r15, %r13
je 0xcdd1e
leaq 0xdc034(%rip), %rax     # 0x1a9cc8
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r13, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0xcdcee
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0xcdcee
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0xcdcee
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0xce4d6
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0xcdd1e
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r13, %rsi
callq 0xf3f85
movq %rax, %rbp
leaq 0xdbfb5(%rip), %rdi     # 0x1a9cc8
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq (%rbx), %rsi
leaq 0x6b255(%rip), %rdx     # 0x138f7d
movq %rbp, %rdi
callq 0x10a947
testb %al, %al
je 0xcdda7
movq 0x18(%rsp), %r15
testq %r15, %r15
jne 0xcdd67
leaq 0x6a902(%rip), %rdi     # 0x138647
leaq 0x84057(%rip), %rsi     # 0x151da3
leaq 0x80e4e(%rip), %rdx     # 0x14eba1
leaq 0x80894(%rip), %rcx     # 0x14e5ee
movl $0x6fc, %r8d            # imm = 0x6FC
xorl %eax, %eax
callq 0xc8053
xorl %eax, %eax
callq 0x114bbb
movq %rax, %r13
leaq 0x8150a(%rip), %rsi     # 0x14f282
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x10bb90
movq 0x8(%r13), %rcx
leaq 0x6afec(%rip), %rsi     # 0x138d7c
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x114736
movq %r13, %rdi
callq 0x114f61
jmp 0xcddbb
leaq 0x814d4(%rip), %rsi     # 0x14f282
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x10bb90
cmpq $0x0, 0x10(%r14)
je 0xcddcd
movq 0x8(%r14), %rdi
callq 0xe1270
jmp 0xcddcf
xorl %eax, %eax
movq %rax, 0x8(%r12)
testq %rax, %rax
je 0xcddea
leaq 0x6c25b(%rip), %rsi     # 0x13a03b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10bb90
movq 0x8(%rbx), %r13
movq 0x8(%r13), %r15
movabsq $-0x7e8ee9b9b4bbaa8, %rax # imm = 0xF817116464B44558
cmpq %rax, %r15
je 0xcde96
leaq 0xdbebc(%rip), %rax     # 0x1a9cc8
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r15, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0xcde66
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0xcde66
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0xcde66
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0xce4dd
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0xcde96
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0xdbe3d(%rip), %rdi     # 0x1a9cc8
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq (%rbx), %rsi
leaq 0x6a306(%rip), %rdx     # 0x1381a6
movq %r13, %rdi
callq 0x10a947
movl %eax, %ebp
leaq 0x813d1(%rip), %rsi     # 0x14f282
xorl %r15d, %r15d
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x10bb90
cmpq $0x0, 0x10(%r14)
je 0xcded4
movq 0x8(%r14), %rdi
callq 0xe1270
movq %rax, %r15
leaq 0x813a7(%rip), %rsi     # 0x14f282
xorl %r13d, %r13d
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x10bb90
cmpq $0x0, 0x10(%r14)
je 0xcdefe
movq 0x8(%r14), %rdi
callq 0xe1270
movq %rax, %r13
testb %bpl, %bpl
jne 0xcdfd7
movb %bpl, 0x18(%rsp)
movq 0x8(%rbx), %rbp
movq 0x8(%rbp), %r14
movabsq $-0x7e8ee9b9b4bbaa8, %rax # imm = 0xF817116464B44558
cmpq %rax, %r14
je 0xcdfb8
leaq 0xdbd9a(%rip), %rax     # 0x1a9cc8
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r14, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0xcdf88
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0xcdf88
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0xcdf88
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0xce4ed
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0xcdfb8
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r14, %rsi
callq 0xf3f85
movq %rax, %rbp
leaq 0xdbd1b(%rip), %rdi     # 0x1a9cc8
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
movq (%rbx), %rsi
leaq 0x6a609(%rip), %rdx     # 0x1385cb
movq %rbp, %rdi
callq 0x10a947
testb %al, %al
movb 0x18(%rsp), %bpl
je 0xce3da
testq %r15, %r15
movabsq $-0x55a2d062927a0ff9, %rax # imm = 0xAA5D2F9D6D85F007
cmovneq %r15, %rax
movq %rax, 0x10(%r12)
movq %r13, 0x18(%r12)
movl $0x20, %esi
xorl %edi, %edi
callq 0xc8315
movq %rax, %r14
movl $0x20, %esi
movq %rax, %rdi
callq 0xc8366
movb $0x1, 0x18(%r14)
movq %r14, 0x30(%r12)
movups (%rbx), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0x30(%rsp)
xorl %eax, %eax
callq 0xe03d4
movq %rax, %r13
movq 0x20(%rsp), %rbx
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %r15
movabsq $-0x7e8ee9b9b4bbaa8, %rsi # imm = 0xF817116464B44558
callq 0xf58f8
movq %rbx, 0x78(%rsp)
movq %rax, 0x80(%rsp)
movq %r15, 0x88(%rsp)
movq %r15, 0x10(%rsp)
movups 0x78(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x90(%rsp), %rbx
movq %rbx, %rdi
movq %r13, 0x18(%rsp)
movq %r13, %rsi
callq 0xe0795
movq 0x10(%rbx), %rax
movq %rax, 0x30(%rsp)
movups (%rbx), %xmm0
movaps %xmm0, 0x20(%rsp)
movq %r14, %rdi
callq 0xccd38
testb %bpl, %bpl
je 0xce0f3
movl $0x28, %esi
xorl %edi, %edi
callq 0xc8315
movq %rax, %rbx
movl $0x28, %esi
movq %rax, %rdi
callq 0xc8366
movabsq $-0x388c46b188de83fe, %rax # imm = 0xC773B94E77217C02
movq %rax, (%rbx)
movabsq $-0x509bedb379fdb7b2, %rax # imm = 0xAF64124C8602484E
movq %rax, 0x8(%rbx)
movl $0x1, 0x10(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0xccd8e
movq 0x28(%rsp), %r15
movq 0x8(%r15), %rbx
movabsq $-0x7e8ee9b9b4bbaa8, %rax # imm = 0xF817116464B44558
cmpq %rax, %rbx
je 0xce1a0
leaq 0xdbbb2(%rip), %rax     # 0x1a9cc8
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 0xce170
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbx, %rdx
je 0xce170
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbx, %rdx
je 0xce170
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbx, %rdx
jne 0xce4e5
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0xce1a0
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %rbx, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0xdbb33(%rip), %rdi     # 0x1a9cc8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x12128c
movq 0x20(%rsp), %rsi
leaq 0x81b9e(%rip), %rdx     # 0x14fd4a
movq %r15, %rdi
callq 0x10a947
testb %al, %al
je 0xce45a
movzbl 0x44(%rsp), %ebx
leaq 0xdbb00(%rip), %r13     # 0x1a9cc8
movq 0x28(%rsp), %rbp
movq 0x8(%rbp), %r15
movabsq $-0x7e8ee9b9b4bbaa8, %rax # imm = 0xF817116464B44558
cmpq %rax, %r15
je 0xce26b
movl (%r13), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r13,%rax,8), %rcx
movq 0x18(%r13,%rax,8), %rdx
andq %r15, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0xce23f
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0xce23f
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0xce23f
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0xce3cc
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0xce26b
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r15, %rsi
callq 0xf3f85
movq %rax, %rbp
movq %r13, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq 0x20(%rsp), %rsi
movq %rbp, %rdi
leaq 0x81ad8(%rip), %rdx     # 0x14fd52
callq 0x10a947
testb %al, %al
jne 0xce45a
movq 0x28(%rsp), %rbp
movq 0x8(%rbp), %r15
movabsq $-0x7e8ee9b9b4bbaa8, %rax # imm = 0xF817116464B44558
cmpq %rax, %r15
je 0xce32a
movl (%r13), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r13,%rax,8), %rcx
movq 0x18(%r13,%rax,8), %rdx
andq %r15, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0xce2fe
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0xce2fe
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0xce2fe
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0xce3d3
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0xce32a
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r15, %rsi
callq 0xf3f85
movq %rax, %rbp
movq %r13, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq 0x20(%rsp), %rsi
movq %rbp, %rdi
leaq 0x81a21(%rip), %rdx     # 0x14fd5a
callq 0x10a947
testb %al, %al
jne 0xce455
movl $0x28, %esi
xorl %edi, %edi
callq 0xc8315
movq %rax, %r15
movl $0x28, %esi
movq %rax, %rdi
callq 0xc8366
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r15, %rdi
movq %r12, %rsi
movl %ebx, %edx
callq 0xc9a08
testq %rax, %rax
je 0xce393
callq 0xc8ba5
xorl %eax, %eax
callq 0xc7c4f
movabsq $-0x388c46b188de83fe, %rax # imm = 0xC773B94E77217C02
cmpq %rax, (%r15)
jne 0xce3bc
cmpq $0x0, 0x8(%r14)
je 0xce3bc
leaq 0x20(%rsp), %rdi
leaq 0x819b6(%rip), %rsi     # 0x14fd6b
xorl %eax, %eax
callq 0x10bf92
movq %r14, %rdi
movq %r15, %rsi
callq 0xccd8e
jmp 0xce1c8
xorl %ebp, %ebp
jmp 0xce243
xorl %ebp, %ebp
jmp 0xce302
cmpq $0x0, 0x8(%r12)
jne 0xce3f3
leaq 0x807cf(%rip), %rsi     # 0x14ebb8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10be56
movq %r15, %rdi
callq 0xcf019
movq %rax, %r14
testq %rax, %rax
jne 0xce42a
movq %r15, %rdi
callq 0xe0cbc
testq %rax, %rax
leaq 0x852da(%rip), %rdx     # 0x1536ef
cmovneq %rax, %rdx
leaq 0x807b5(%rip), %rsi     # 0x14ebd5
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10be56
movq 0x10(%r14), %rax
movq %rax, 0x10(%r12)
movq 0x18(%r14), %rax
movq %rax, 0x18(%r12)
movq 0x30(%r14), %rdi
callq 0xcccf0
movq %rax, 0x30(%r12)
movq 0x20(%r14), %rax
movq %rax, 0x20(%r12)
jmp 0xce4a3
movb $0x0, 0x18(%r14)
movq 0x18(%rsp), %rdi
callq 0xe0403
cmpq $0x0, 0x8(%r12)
jne 0xce4a3
movabsq $-0x340d631b7bdddcdb, %rax # imm = 0xCBF29CE484222325
movq 0x30(%r12), %rcx
movq 0x8(%rcx), %rbx
testq %rbx, %rbx
je 0xce49e
movq (%rcx), %r14
xorl %r15d, %r15d
movq (%r14,%r15,8), %rdi
movq %rax, %rsi
callq 0xc9751
incq %r15
cmpq %r15, %rbx
jne 0xce48a
movq %rax, 0x8(%r12)
movq 0x50(%rsp), %rax
movq %rax, 0x20(%r12)
movq 0x58(%rsp), %rax
movq %rax, 0x28(%r12)
movq 0x48(%rsp), %rdi
callq 0xe0403
movq %r12, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
jmp 0xcdcf2
xorl %r13d, %r13d
jmp 0xcde6a
xorl %r15d, %r15d
jmp 0xce174
xorl %ebp, %ebp
jmp 0xcdf8c