// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore.xo.c
// Function: x_bcml_parse_create_object
er_t x_bcml_parse_create_object( bl_t parse_existence, tp_t given_type, x_source* source, sr_s* obj )
{
    // bcore_x_bcml.h:181:1
    BLM_INIT_LEVEL(0);
    er_t er = 0;
    tp_t type = given_type ? given_type : x_bcml_parse_type(source );
    bl_t flag = parse_existence ? x_bcml_parse_flag(source ) : true;
    
    if( type )
    {
        if( bcore_flect_exists( type ) )
        {
            if( flag )
            {
                x_inst* inst = ((x_inst*)BLM_LEVEL_TV_PUSH(0,type ,x_inst_t_create(type )));
                BLM_TRY(x_bcml_t_parse_body(((x_bcml*)( inst)),type, source ))
                (*(obj)) = sr_tsm(type, ((x_inst*)bcore_fork(inst)) );
            }
            else // no instance
            {
                obj->p = bcore_inst_s_get_typed( type );
            }
        }
        else
        {
            BLM_RETURNV(er_t, bcore_error_push_fa(TYPEOF_parse_error, "Type '#<sc_t>' has no reflection.", bnameof( type ) ))
        }
    }
    
    BLM_RETURNV(er_t, er)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %ebp
leaq 0x128b29(%rip), %rax    # 0x1a8dd0
movq (%rax), %rsi
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0xe0431
movq $0x0, 0x10(%r12)
testq %r15, %r15
jne 0x80392
movq $0x0, (%rsp)
movq (%r14), %r15
leaq 0x1299ed(%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 0x80335
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x80335
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x80335
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x80671
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x80365
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0x12996e(%rip), %rdi    # 0x1a9cc8
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
cmpq $0x0, 0x10(%r12)
jne 0x8037c
leaq 0xc4baa(%rip), %rsi     # 0x144f1e
movq %r12, %rdi
callq 0xf592c
movq %rsp, %r15
movl $0x8, %edx
movq %r14, %rdi
movq %r15, %rsi
callq *0x10(%r12)
movq (%r15), %r15
testb %bpl, %bpl
je 0x80466
movb $0x0, (%rsp)
movq (%r14), %r12
leaq 0x12991f(%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 %r12, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0x80403
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x80403
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x80403
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x80669
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x80433
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r12, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0x1298a0(%rip), %rdi    # 0x1a9cc8
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
cmpq $0x0, 0x10(%r13)
jne 0x80449
leaq 0xc4add(%rip), %rsi     # 0x144f1e
movq %r13, %rdi
callq 0xf592c
movq %rsp, %r12
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
callq *0x10(%r13)
cmpb $0x0, (%r12)
sete %bpl
jmp 0x80468
xorl %ebp, %ebp
testq %r15, %r15
je 0x8064a
movq %r15, %rdi
callq 0xcedbf
testb %al, %al
je 0x80524
testb %bpl, %bpl
je 0x8054f
leaq 0x128fd7(%rip), %rax    # 0x1a9468
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 0x804eb
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x804eb
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x804eb
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x80679
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x8051b
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r14
leaq 0x128f58(%rip), %rdi    # 0x1a9468
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r14, 0x8(%rbx)
jmp 0x8064a
movq %r15, %rdi
callq 0xe0cbc
leaq 0xc296d(%rip), %rsi     # 0x142ea0
movabsq $0x690af8765815ec4d, %rdi # imm = 0x690AF8765815EC4D
movq %rax, %rdx
xorl %eax, %eax
callq 0xc87b0
movq %rax, %r14
jmp 0x8064d
movabsq $-0x3b1008a961ddaa8, %rdi # imm = 0xFC4EFF7569E22558
movq %r15, %rsi
callq 0x1222bd
leaq 0x128f00(%rip), %rax    # 0x1a9468
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 0x805c2
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x805c2
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x805c2
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x80681
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x805f2
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0x128e81(%rip), %rdi    # 0x1a9468
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r12, %rdi
callq *0xa8(%r12)
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %rax, %rcx
callq 0xe0676
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x81a8d
movq %rax, %r14
testq %rax, %rax
jne 0x8064d
movq %r12, %rdi
callq 0xc8348
movq %rax, %r14
movq %r15, %rdi
callq 0x1123e1
movq %r14, (%rbx)
movq %rax, 0x8(%rbx)
movq $0x2, 0x10(%rbx)
xorl %r14d, %r14d
leaq 0x8(%rsp), %rdi
callq 0xe0b30
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r13d, %r13d
jmp 0x80407
xorl %r12d, %r12d
jmp 0x80339
xorl %r14d, %r14d
jmp 0x804ef
xorl %r12d, %r12d
jmp 0x805c6