// File: /workspace/github_c_makefile_star2_O1/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 $0xc8, %rsp
movq %r9, 0x40(%rsp)
movq %r8, %rbx
movq %rcx, 0x48(%rsp)
movq %rdx, %r12
movq %rsi, %rbp
movq %rdi, %r14
leaq 0x13c2d1(%rip), %rax    # 0x1a8dd0
movq (%rax), %rsi
leaq 0x98(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0xe0431
movq 0x18(%rsp), %r13
movq $0x0, 0x10(%r13)
callq 0x5c50a
movabsq $-0x74dceedd59a2bd6f, %rdx # imm = 0x8B231122A65D4291
movq %r13, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xe0676
movq %rax, %r15
leaq 0x8(%r14), %rdi
movq %rdi, 0x38(%rsp)
callq 0xee7cd
movq %r13, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0xe0900
movq %r15, %rdi
movq %rax, %rsi
callq 0x5c826
cmpq $0x0, 0x10(%r15)
je 0x6cbd7
movq %rbx, 0x20(%rsp)
movq %r12, 0x30(%rsp)
leaq 0x50(%rsp), %r12
movq %r12, %rdi
callq 0x112ba5
movabsq $0x79b76918ff0af12a, %rsi # imm = 0x79B76918FF0AF12A
movq %r13, %rdi
movq %r12, %rdx
callq 0xe06ab
movq (%rbp), %rdx
leaq 0x68(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
movq %rbp, %rcx
callq 0x5cf36
movq 0x10(%r13), %rax
movq %rax, 0x10(%r12)
movups (%r13), %xmm0
movaps %xmm0, (%r12)
movq (%r12), %rcx
movq 0x8(%r12), %rax
testq %rax, %rax
je 0x6cbfb
movq 0x8(%rax), %rbp
jmp 0x6cbfd
movq 0x10(%r14), %rdx
leaq 0xd5d9c(%rip), %rsi     # 0x14297e
movq %rbx, %rdi
xorl %eax, %eax
callq 0x109273
movq 0x18(%rsp), %rdi
callq 0xe0b30
jmp 0x6cf6b
xorl %ebp, %ebp
testq %rcx, %rcx
je 0x6cf1c
movq %rcx, 0x28(%rsp)
movq 0x18(%rsp), %rsi
movq %r13, 0x10(%rsp)
movq %r13, %rdi
callq 0xe0431
movq 0x10(%rsp), %r14
movq $0x1, 0x10(%r14)
leaq 0x13d4c7(%rip), %rax    # 0x1aa0f8
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %rbp, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %rbp, %rdx
je 0x6cc8b
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0x6cc8b
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0x6cc8b
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0x6cf7d
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x6ccbb
movabsq $0x541d0401d4dcff33, %rdi # imm = 0x541D0401D4DCFF33
movq %rbp, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0x13d448(%rip), %rdi    # 0x1aa0f8
movq %rbp, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, %rdi
xorl %esi, %esi
callq 0x10decf
movl %eax, %ebx
testb %al, %al
je 0x6cf35
movb %bl, 0xf(%rsp)
movq 0x40(%rsp), %rbx
movq %rbx, %rdi
callq 0x6b462
movq %rbx, 0x8(%rax)
movabsq $0x65568789b6f2bdaf, %rdx # imm = 0x65568789B6F2BDAF
movl $0x1, %esi
movq %r14, %rdi
movq %rax, %rcx
callq 0xe0676
movq %rax, %r12
leaq 0x90(%rax), %r14
cmpq $0x0, 0xa0(%rax)
je 0x6cd21
leaq 0xcbb3b(%rip), %rsi     # 0x138854
movq %r14, %rdi
callq 0x115620
movq %r14, %rdi
movq 0x38(%rsp), %rsi
callq 0x1154c9
movq 0x48(%rsp), %rdi
callq 0xc8348
movq %rax, %rbx
testq %rax, %rax
movq 0x20(%rsp), %rbp
je 0x6cd57
movq (%rbx), %rsi
movabsq $0x2e28ff78616384dd, %rdi # imm = 0x2E28FF78616384DD
callq 0x1222bd
movq 0x18(%r12), %r14
testq %r14, %r14
je 0x6ce06
movq (%r14), %r13
leaq 0x13c6f9(%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 %r13, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x6cdc9
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x6cdc9
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x6cdc9
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x6cf85
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x6cdf9
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r13, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0x13c67a(%rip), %rdi    # 0x1a9468
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, %rdi
movq %r14, %rsi
callq *0xb8(%r15)
movq %rbx, 0x18(%r12)
movq %rbp, %rdi
callq 0xc8348
movq %rax, %rbx
testq %rax, %rax
je 0x6ce2d
movq (%rbx), %rsi
movabsq $0x7652a8509073840b, %rdi # imm = 0x7652A8509073840B
callq 0x1222bd
movq 0x10(%r12), %r14
testq %r14, %r14
je 0x6cedc
movq (%r14), %r15
leaq 0x13c623(%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 0x6ce9f
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x6ce9f
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x6ce9f
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x6cf8d
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x6cecf
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0x13c5a4(%rip), %rdi    # 0x1a9468
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r13, %rdi
movq %r14, %rsi
callq *0xb8(%r13)
movq %rbx, 0x10(%r12)
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq %r12, %rdx
callq 0x6a35f
testq %rax, %rax
je 0x6cf0c
movq %rax, %rbx
movq 0x10(%rsp), %rdi
callq 0xe0b30
movl %ebx, %edi
callq 0x59990
leaq 0x10(%rsp), %rdi
callq 0xe0b11
movb 0xf(%rsp), %bl
jmp 0x6cf5d
movq 0x10(%r14), %rdx
leaq 0xd5a57(%rip), %rsi     # 0x14297e
movq 0x20(%rsp), %rdi
xorl %eax, %eax
callq 0x109273
jmp 0x6cf61
movq %rbp, %rdi
callq 0xe0cbc
leaq 0xd5a55(%rip), %rsi     # 0x142999
movq 0x20(%rsp), %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x109273
movq 0x10(%rsp), %rdi
callq 0xe0b30
testb %bl, %bl
je 0x6cf6b
leaq 0x18(%rsp), %rdi
callq 0xe0b11
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
jmp 0x6cc8f
xorl %r15d, %r15d
jmp 0x6cdcd
xorl %r13d, %r13d
jmp 0x6cea3