// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore.xo.c
// Function: bcore_shell_op_default_enter_s_run
BCORE_DEFINE_OBJECT_INST_P_NASC_END( bcore_shell_op_default_enter_s )

void bcore_shell_op_default_enter_s_run( bcore_shell_op_default_enter_s* o, bcore_shell* obj, const bcore_main_frame_s* main_frame, x_source* source, bcore_sink* sink, bcore_shell_control_s* control )
{
    // bcore_shell.h:532:9
    BLM_INIT_LEVEL(0);
    const x_stamp_path_s* path = x_stamp_path_s_parse(((x_stamp_path_s*)BLM_LEVEL_T_PUSH(0,x_stamp_path_s,x_stamp_path_s_create())),((x_source*)BLM_LEVEL_A_PUSH(0,x_source_create_from_st(&(o->path )))) );
    if( path->size == 0 )
    {
        bcore_sink_a_push_fa(sink,"Path '#<sc_t>' not found.\n", o->path.sc );
        BLM_RETURN();
    }
    sr_s sr;BLM_T_INIT_SPUSH(sr_s, &sr);;
    sr = x_stamp_path_s_get_sr_in(path,((const x_inst*)(obj )));
    bcore_shell* shell_o =((bcore_shell*)( sr.o));
    tp_t shell_t = sr_s_type(&(sr));
    
    if( shell_o )
    {BLM_INIT_LEVEL(1);
        if( !x_stamp_t_is_aware(shell_t ) )
        {
            bcore_sink_a_push_fa(sink,"Selected object '#<sc_t>' is oblivious. Cannot enter.\n", bnameof( shell_t ) );
            BLM_RETURN();
        }
    
        bcore_shell_control_s* control_child = ((bcore_shell_control_s*)BLM_LEVEL_T_PUSH(1,bcore_shell_control_s,bcore_shell_control_s_spawn(control)));
        if( control_child->path.size ) st_s_push_sc(&(control_child->path),"|" );
        st_s_push_st(&(control_child->path),&(o->path ));
        x_source_a_attach( &(control_child->source ), (x_source*)( ((x_source*)bcore_fork(source))));
        x_sink_a_attach( &(control_child->sink ), (x_sink*)( ((bcore_sink*)bcore_fork(sink))));
        BLM_TRY_EXIT(bcore_shell_loop(shell_o,main_frame, control_child ))
    BLM_DOWN();}
    else
    {
        bcore_sink_a_push_fa(sink,"Path '#<sc_t>' not found.\n", o->path.sc );
    }
    BLM_DOWN();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %r9, 0x10(%rsp)
movq %r8, %rbx
movq %rcx, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq %rsi, %r14
movq %rdi, %r15
leaq 0x135538(%rip), %rax    # 0x19bdd0
movq (%rax), %rsi
leaq 0x30(%rsp), %r12
movq %r12, 0x28(%rsp)
movq %r12, %rdi
callq 0xd6675
movq $0x0, 0x10(%r12)
callq 0x56c50
movabsq $-0x74dceedd59a2bd6f, %rdx # imm = 0x8B231122A65D4291
movq %r12, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xd68a8
movq %rax, %rbp
leaq 0x8(%r15), %r13
movq %r13, %rdi
callq 0xe4653
movq %r12, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0xd6b17
movq %rbp, %rdi
movq %rax, %rsi
callq 0x56f5e
cmpq $0x0, 0x10(%rbp)
je 0x66965
movq %rbx, 0x8(%rsp)
leaq 0x90(%rsp), %rbx
movq %rbx, %rdi
callq 0x107c9f
leaq 0x30(%rsp), %rdi
movabsq $0x79b76918ff0af12a, %rsi # imm = 0x79B76918FF0AF12A
movq %rbx, %rdx
callq 0xd68d9
movq (%r14), %rdx
leaq 0x60(%rsp), %r12
movq %r12, %rdi
movq %rbp, %rsi
movq %r14, %rcx
callq 0x57639
movq 0x10(%r12), %rax
movq %rax, 0x10(%rbx)
movups (%r12), %xmm0
movaps %xmm0, (%rbx)
movq (%rbx), %rbp
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x66984
movq 0x8(%rax), %r14
jmp 0x66987
movq 0x10(%r15), %rdx
leaq 0xd0e86(%rip), %rsi     # 0x1377f6
movq %rbx, %rdi
xorl %eax, %eax
callq 0xfe6d6
leaq 0x30(%rsp), %rdi
jmp 0x66b51
xorl %r14d, %r14d
testq %rbp, %rbp
movq 0x8(%rsp), %rbx
je 0x66b10
movq %r12, (%rsp)
leaq 0x30(%rsp), %rsi
movq %r12, %rdi
callq 0xd6675
movq $0x1, 0x70(%rsp)
leaq 0x136742(%rip), %rax    # 0x19d0f8
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 0x66a0c
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x66a0c
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x66a0c
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x66a15
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x66a3c
movabsq $0x541d0401d4dcff33, %rdi # imm = 0x541D0401D4DCFF33
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %r15
leaq 0x1366c7(%rip), %rdi    # 0x19d0f8
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r15, %rdi
xorl %esi, %esi
callq 0x103271
testb %al, %al
je 0x66b31
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x652a8
movq %rbx, 0x8(%rax)
leaq 0x60(%rsp), %rdi
movabsq $0x65568789b6f2bdaf, %rdx # imm = 0x65568789B6F2BDAF
movl $0x1, %esi
movq %rax, %rcx
callq 0xd68a8
movq %rax, %r14
leaq 0x90(%rax), %r15
cmpq $0x0, 0xa0(%rax)
je 0x66a9e
leaq 0xc6dbe(%rip), %rsi     # 0x12d854
movq %r15, %rdi
callq 0x10a6fa
movq %r15, %rdi
movq %r13, %rsi
callq 0x10a596
leaq 0x18(%r14), %rbx
movq 0x18(%rsp), %rdi
callq 0xbe7e4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6475d
movq %r14, %rbx
addq $0x10, %rbx
movq 0x8(%rsp), %rdi
callq 0xbe7e4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x64842
movq %rbp, %rdi
movq 0x20(%rsp), %rsi
movq %r14, %rdx
callq 0x641e8
testq %rax, %rax
je 0x66b06
movq %rax, %rbx
movq (%rsp), %rdi
callq 0xd6d2c
movl %ebx, %edi
callq 0x54258
movq %rsp, %rdi
callq 0xd6d0d
jmp 0x66b25
movq 0x10(%r15), %rdx
leaq 0xd0cdb(%rip), %rsi     # 0x1377f6
movq %rbx, %rdi
xorl %eax, %eax
callq 0xfe6d6
leaq 0x28(%rsp), %rdi
callq 0xd6d0d
jmp 0x66b56
movq %r14, %rdi
callq 0xd6ec4
leaq 0xd0cd1(%rip), %rsi     # 0x137811
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xfe6d6
movq (%rsp), %rdi
callq 0xd6d2c
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq