// File: /workspace/github_c_makefile_star2_O3/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 $0x98, %rsp
movl %ecx, 0x2c(%rsp)
movq %rdx, 0x20(%rsp)
movq %rsi, 0x60(%rsp)
movq %rdi, 0x58(%rsp)
leaq 0xd0(%rsp), %rbx
movabsq $-0x7e8ee9b9b4bbaa8, %r15 # imm = 0xF817116464B44558
xorl %eax, %eax
callq 0xd6618
movq %rax, %r13
movq (%rbx), %r14
movq 0x8(%rbx), %rdi
movq 0x10(%rbx), %r12
movq %r15, %rsi
callq 0xeb464
movq %r14, 0x68(%rsp)
movq %rax, 0x70(%rsp)
movq %r12, 0x78(%rsp)
movq %r12, 0x10(%rsp)
movups 0x68(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd69ba
movl $0x38, %esi
xorl %edi, %edi
callq 0xbe7b1
movq %rax, %r12
movl $0x38, %esi
movq %rax, %rdi
callq 0xbe802
movabsq $-0x4b706df6ad0a9f1, %rax # imm = 0xFB48F920952F560F
movq %rax, (%r12)
movq %r13, 0x50(%rsp)
movq %r13, %rdi
callq 0x109fe4
movq %rax, %r14
movq 0x8(%rbx), %rbp
movq 0x8(%rbp), %r13
cmpq %r15, %r13
je 0xc3c18
leaq 0xd9136(%rip), %rax     # 0x19ccc8
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 0xc3be8
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0xc3be8
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0xc3be8
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0xc3bf1
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0xc3c18
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r13, %rsi
callq 0xe9bc5
movq %rax, %rbp
leaq 0xd90bb(%rip), %rdi     # 0x19ccc8
movq %r13, %rsi
movq %rax, %rdx
callq 0x115fac
movq (%rbx), %rsi
leaq 0x6a35b(%rip), %rdx     # 0x12df7d
movq %rbp, %rdi
callq 0xffd5a
testb %al, %al
je 0xc3ca1
movq 0x20(%rsp), %r15
testq %r15, %r15
jne 0xc3c61
leaq 0x69a08(%rip), %rdi     # 0x12d647
leaq 0x83183(%rip), %rsi     # 0x146dc9
leaq 0x7ff94(%rip), %rdx     # 0x143be1
leaq 0x7f9da(%rip), %rcx     # 0x14362e
movl $0x6fc, %r8d            # imm = 0x6FC
xorl %eax, %eax
callq 0xbe4ef
xorl %eax, %eax
callq 0x109c82
movq %rax, %r13
leaq 0x80621(%rip), %rsi     # 0x144293
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x100f8a
movq 0x8(%r13), %rcx
leaq 0x6a0f2(%rip), %rsi     # 0x12dd7c
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x1097fd
movq %r13, %rdi
callq 0x10a028
jmp 0xc3cb5
leaq 0x805eb(%rip), %rsi     # 0x144293
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x100f8a
cmpq $0x0, 0x10(%r14)
je 0xc3cee
movq 0x8(%r14), %rdi
callq 0xd7476
movq %r12, %rcx
addq $0x8, %rcx
movq %rax, 0x8(%r12)
testq %rax, %rax
movq %rcx, 0x20(%rsp)
je 0xc3d03
leaq 0x6b359(%rip), %rsi     # 0x12f03b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x100f8a
jmp 0xc3d03
movq %r12, %rax
addq $0x8, %rax
movq %rax, 0x20(%rsp)
movq $0x0, 0x8(%r12)
movq 0x8(%rbx), %r13
movq 0x8(%r13), %r15
movabsq $-0x7e8ee9b9b4bbaa8, %rax # imm = 0xF817116464B44558
cmpq %rax, %r15
je 0xc3dab
leaq 0xd8fa3(%rip), %rax     # 0x19ccc8
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 0xc3d7b
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0xc3d7b
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0xc3d7b
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0xc3d84
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0xc3dab
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %r13
leaq 0xd8f28(%rip), %rdi     # 0x19ccc8
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
movq (%rbx), %rsi
leaq 0x693f1(%rip), %rdx     # 0x12d1a6
movq %r13, %rdi
callq 0xffd5a
movl %eax, %ebp
leaq 0x804cd(%rip), %rsi     # 0x144293
xorl %r15d, %r15d
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x100f8a
cmpq $0x0, 0x10(%r14)
je 0xc3de9
movq 0x8(%r14), %rdi
callq 0xd7476
movq %rax, %r15
leaq 0x804a3(%rip), %rsi     # 0x144293
xorl %r13d, %r13d
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x100f8a
cmpq $0x0, 0x10(%r14)
je 0xc3e13
movq 0x8(%r14), %rdi
callq 0xd7476
movq %rax, %r13
movb %bpl, 0x1f(%rsp)
testb %bpl, %bpl
jne 0xc3ee3
movq 0x8(%rbx), %rbp
movq 0x8(%rbp), %r14
movabsq $-0x7e8ee9b9b4bbaa8, %rax # imm = 0xF817116464B44558
cmpq %rax, %r14
je 0xc3ec9
leaq 0xd8e85(%rip), %rax     # 0x19ccc8
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 0xc3e99
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0xc3e99
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0xc3e99
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0xc3ea2
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0xc3ec9
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %rbp
leaq 0xd8e0a(%rip), %rdi     # 0x19ccc8
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
movq (%rbx), %rsi
leaq 0x696f8(%rip), %rdx     # 0x12d5cb
movq %rbp, %rdi
callq 0xffd5a
testb %al, %al
je 0xc42ba
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 0xbe7b1
movq %rax, %r14
movl $0x20, %esi
movq %rax, %rdi
callq 0xbe802
movb $0x1, 0x18(%r14)
movq %r14, 0x30(%r12)
movups (%rbx), %xmm0
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
movq 0x10(%rbx), %rax
movq %rax, 0x10(%r15)
xorl %eax, %eax
callq 0xd6618
movq %rax, %rbp
movq (%r15), %rbx
movq 0x8(%r15), %rdi
movq 0x10(%r15), %r13
movabsq $-0x7e8ee9b9b4bbaa8, %rsi # imm = 0xF817116464B44558
callq 0xeb464
movq %rbx, 0x80(%rsp)
movq %rax, 0x88(%rsp)
movq %r13, 0x90(%rsp)
movq %r13, 0x10(%rsp)
movups 0x80(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r15, %rdi
movq %rbp, 0x48(%rsp)
movq %rbp, %rsi
callq 0xd69ba
movq %r14, %rdi
callq 0xc2c53
cmpb $0x0, 0x1f(%rsp)
je 0xc3fed
movl $0x28, %esi
xorl %edi, %edi
callq 0xbe7b1
movq %rax, %rbx
movl $0x28, %esi
movq %rax, %rdi
callq 0xbe802
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 0xc2cae
movq 0x38(%rsp), %r15
movq 0x8(%r15), %rbx
movabsq $-0x7e8ee9b9b4bbaa8, %rax # imm = 0xF817116464B44558
cmpq %rax, %rbx
je 0xc4096
leaq 0xd8cb8(%rip), %rax     # 0x19ccc8
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 0xc4066
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbx, %rdx
je 0xc4066
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbx, %rdx
je 0xc4066
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbx, %rdx
jne 0xc406f
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0xc4096
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %rbx, %rsi
callq 0xe9bc5
movq %rax, %r15
leaq 0xd8c3d(%rip), %rdi     # 0x19ccc8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x115fac
movq 0x30(%rsp), %rsi
leaq 0x80cb9(%rip), %rdx     # 0x144d5b
movq %r15, %rdi
callq 0xffd5a
testb %al, %al
je 0xc432d
movzbl 0x2c(%rsp), %ebx
leaq 0xd8c0a(%rip), %r13     # 0x19ccc8
movq 0x38(%rsp), %rbp
movq 0x8(%rbp), %r15
movabsq $-0x7e8ee9b9b4bbaa8, %rax # imm = 0xF817116464B44558
cmpq %rax, %r15
je 0xc415d
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 0xc4131
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0xc4131
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0xc4131
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0xc413a
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0xc415d
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %rbp
movq %r13, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
movq 0x30(%rsp), %rsi
movq %rbp, %rdi
leaq 0x80bf7(%rip), %rdx     # 0x144d63
callq 0xffd5a
testb %al, %al
jne 0xc432d
movq 0x38(%rsp), %rbp
movq 0x8(%rbp), %r15
movabsq $-0x7e8ee9b9b4bbaa8, %rax # imm = 0xF817116464B44558
cmpq %rax, %r15
je 0xc4218
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 0xc41ec
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0xc41ec
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0xc41ec
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0xc41f5
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0xc4218
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %rbp
movq %r13, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
movq 0x30(%rsp), %rsi
movq %rbp, %rdi
leaq 0x80b44(%rip), %rdx     # 0x144d6b
callq 0xffd5a
testb %al, %al
jne 0xc4328
movl $0x28, %esi
xorl %edi, %edi
callq 0xbe7b1
movq %rax, %r15
movl $0x28, %esi
movq %rax, %rdi
callq 0xbe802
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r15, %rdi
movq %r12, %rsi
movl %ebx, %edx
callq 0xbfe93
testq %rax, %rax
je 0xc4281
callq 0xbf031
xorl %eax, %eax
callq 0xbe0eb
movabsq $-0x388c46b188de83fe, %rax # imm = 0xC773B94E77217C02
cmpq %rax, (%r15)
jne 0xc42aa
cmpq $0x0, 0x8(%r14)
je 0xc42aa
leaq 0x30(%rsp), %rdi
leaq 0x80ad9(%rip), %rsi     # 0x144d7c
xorl %eax, %eax
callq 0x10138a
movq %r14, %rdi
movq %r15, %rsi
callq 0xc2cae
jmp 0xc40be
movq 0x20(%rsp), %rax
cmpq $0x0, (%rax)
jne 0xc42d6
leaq 0x7f92c(%rip), %rsi     # 0x143bf8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10124e
movq %r15, %rdi
callq 0xc4e97
movq %rax, %r14
testq %rax, %rax
jne 0xc430d
movq %r15, %rdi
callq 0xd6ec4
testq %rax, %rax
leaq 0x8441d(%rip), %rdx     # 0x148715
cmovneq %rax, %rdx
leaq 0x7f912(%rip), %rsi     # 0x143c15
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10124e
movups 0x10(%r14), %xmm0
movups %xmm0, 0x10(%r12)
movq 0x30(%r14), %rdi
callq 0xc2c0b
movq %rax, 0x30(%r12)
jmp 0xc4379
movb $0x0, 0x18(%r14)
movq 0x48(%rsp), %rdi
callq 0xd6647
movq 0x20(%rsp), %r13
cmpq $0x0, (%r13)
jne 0xc4379
movabsq $-0x340d631b7bdddcdb, %rax # imm = 0xCBF29CE484222325
movq 0x30(%r12), %rcx
movq 0x8(%rcx), %rbx
testq %rbx, %rbx
je 0xc4375
movq (%rcx), %r14
xorl %r15d, %r15d
movq (%r14,%r15,8), %rdi
movq %rax, %rsi
callq 0xbfbd9
incq %r15
cmpq %r15, %rbx
jne 0xc4361
movq %rax, (%r13)
movq 0x58(%rsp), %rax
movq %rax, 0x20(%r12)
movq 0x60(%rsp), %rax
movq %rax, 0x28(%r12)
movq 0x50(%rsp), %rdi
callq 0xd6647
movq %r12, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq