// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/lib/bcore/bcore.xo.c
// Function: bcore_shell_help_to_sink
void bcore_shell_help_to_sink( bcore_shell* o, const bcore_shell_control_s* control, bcore_sink* sink )
{
    // bcore_shell.h:326:1
    BLM_INIT_LEVEL(0);
    bcore_arr_tp_s op_groups;BLM_T_INIT_SPUSH(bcore_arr_tp_s, &op_groups);;
    bcore_shell_a_push_op_groups(o,&(op_groups ));
    
    {const bcore_arr_tp_s* __a=&(op_groups );if(__a)for(sz_t __i=0;__i<__a->size;__i++){tp_t tp_group=__a->data[__i];
    {BLM_INIT_LEVEL(4);
        bcore_sink_a_push_fa(sink,"#p80'*'{******** #<sc_t> }\n", bnameof( tp_group ) );
        bcore_arr_st_s table;BLM_T_INIT_SPUSH(bcore_arr_st_s, &table);;
        {const bcore_arr_tp_s* __a=x_group_get_arr_traitline_stamps(tp_group ) ;if(__a)for(sz_t __i=0;__i<__a->size;__i++){tp_t t=__a->data[__i];
        {BLM_INIT_LEVEL(8);
            bcore_shell_op* op =((bcore_shell_op*)( ((x_inst*)BLM_LEVEL_TV_PUSH(0,t ,x_inst_t_create(t )))));
            st_s key;BLM_T_INIT_SPUSH(st_s, &key);;
            bcore_shell_op_a_get_key(op,&(key ));
            st_s_replace_char_char(&(key),' ', ',' );
            st_s sign;BLM_T_INIT_SPUSH(st_s, &sign);;
            st_s_push_fa(&(sign),"#<sc_t> ", key.sc );
            bcore_shell_op_arg_signature_to_sink(op,((bcore_sink*)(&(sign ))));
            st_s info;BLM_T_INIT_SPUSH(st_s, &info);;
            bcore_shell_op_a_get_info(op,&(info ));
            bcore_arr_st_s_push_fa(&(table),"#<st_s*>", (&(sign)) );
            bcore_arr_st_s_push_fa(&(table),": #<st_s*>", (&(info)) );
        BLM_DOWN();}
        }}bcore_arr_st_s_table_to_sink(&(table),-1, 2, sink );
    BLM_DOWN();}
    
    }}if( x_hmap_tp_keys(((const x_hmap_tp*)(&(control->hmap_alias)))) > 0 )
    {BLM_INIT_LEVEL(1);
        bcore_sink_a_push_fa(sink,"#p80'*'{******** #<sc_t> }\n", "ALIAS" );
        bcore_arr_st_s table;BLM_T_INIT_SPUSH(bcore_arr_st_s, &table);;
        for(sz_t i = 0; i < x_hmap_tp_size(((const x_hmap_tp*)(&(control->hmap_alias)))); i++ )
        {
            tp_t key = x_hmap_tp_idx_key(((const x_hmap_tp*)(&(control->hmap_alias))),i );
            if( key )
            {
                const st_s* expression = ((const st_s*)(x_hmap_tp_c_idx_val(((const x_hmap_tp*)(&(control->hmap_alias))),i )));
                bcore_arr_st_s_push_fa(&(table),"#<st_s*>", bcore_hmap_name_s_get(&(control->hmap_name),key ) );
                bcore_arr_st_s_push_fa(&(table),": #<st_s*>", expression );
            }
        }
        bcore_arr_st_s_table_to_sink(&(table),-1, 2, sink );
    BLM_DOWN();}
    BLM_DOWN();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rdx, (%rsp)
movq %rsi, 0x20(%rsp)
movq %rdi, %rbx
leaq 0xe6863(%rip), %rax     # 0x117dd0
movq (%rax), %rsi
leaq 0xf8(%rsp), %r15
movq %r15, 0x30(%rsp)
movq %r15, %rdi
callq 0x717f5
andq $0x0, 0x10(%r15)
leaq 0x58(%rsp), %r14
movq %r14, %rdi
callq 0x5b881
movabsq $-0x79c1eb0a2e5b4c6b, %rsi # imm = 0x863E14F5D1A4B395
movq %r15, %rdi
movq %r14, %rdx
callq 0x71998
movq %rbx, %rdi
movq %r14, %rsi
callq 0x31505
xorl %ecx, %ecx
cmpq 0x68(%rsp), %rcx
jae 0x317c5
movq 0x60(%rsp), %rax
movq %rcx, 0x28(%rsp)
movq (%rax,%rcx,8), %r15
leaq 0xc8(%rsp), %rdi
movq %rdi, 0x8(%rsp)
leaq 0xf8(%rsp), %rsi
callq 0x717f5
movq 0x8(%rsp), %r13
movq $0x4, 0x10(%r13)
movq %r15, %rdi
callq 0x71db6
movq (%rsp), %rdi
leaq 0x833f8(%rip), %rsi     # 0xb4a04
movq %rax, %rdx
xorl %eax, %eax
callq 0x87cf1
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
callq 0x5c299
movq %r13, %rdi
movabsq $-0x3a338903c1418376, %rsi # imm = 0xC5CC76FC3EBE7C8A
movq %rbx, %rdx
callq 0x71998
movq %r15, %rdi
callq 0x31527
testq %rax, %rax
je 0x3179a
xorl %r14d, %r14d
movq %rax, 0x10(%rsp)
cmpq 0x10(%rax), %r14
jae 0x3179a
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax,%r14,8), %r13
movq 0x8(%rsp), %rsi
leaq 0x98(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x717f5
movq 0x18(%rsp), %r15
movq $0x8, 0x10(%r15)
movq %r13, %rdi
callq 0x318f1
movq %r15, %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %rax, %rcx
callq 0x71967
movq %rax, %r13
leaq 0x78(%rsp), %r12
movq %r12, %rdi
callq 0x8e048
movq %r15, %rdi
movabsq $-0x503db0e6e1c2e704, %rbx # imm = 0xAFC24F191E3D18FC
movq %rbx, %rsi
movq %r12, %rdx
callq 0x71998
movq %r13, %rdi
movq %r12, %rsi
callq 0x31910
movq %r12, %rdi
pushq $0x20
popq %rsi
pushq $0x2c
popq %rdx
callq 0x8fdd4
leaq 0x148(%rsp), %r12
movq %r12, %rdi
callq 0x8e048
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x71998
movq 0x80(%rsp), %rdx
movq %r12, %rdi
leaq 0x78d2e(%rip), %rsi     # 0xaa443
xorl %eax, %eax
callq 0x8f4ef
movq %r13, %rdi
movq %r12, %rsi
callq 0x31932
leaq 0x128(%rsp), %rbp
movq %rbp, %rdi
callq 0x8e048
movq %r15, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x71998
movq %r13, %rdi
callq 0x5849b
movq %r13, %rdi
movq %rbp, %rsi
callq *0x28(%rax)
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
leaq 0x832bd(%rip), %rsi     # 0xb4a22
movq %r12, %rdx
xorl %eax, %eax
callq 0x5c5d2
movq %rbx, %rdi
leaq 0x832a7(%rip), %rsi     # 0xb4a20
movq %rbp, %rdx
xorl %eax, %eax
callq 0x5c5d2
leaq 0x18(%rsp), %rdi
callq 0x71b48
movq 0x10(%rsp), %rax
incq %r14
jmp 0x31651
leaq 0x38(%rsp), %rdi
pushq $-0x1
popq %rsi
pushq $0x2
popq %rdx
movq (%rsp), %rcx
callq 0x5c8ad
leaq 0x8(%rsp), %rdi
callq 0x71b48
movq 0x28(%rsp), %rcx
incq %rcx
jmp 0x315b9
movq 0x20(%rsp), %r12
leaq 0x50(%r12), %rbx
movq %rbx, %rdi
callq 0x31a67
testq %rax, %rax
jle 0x318d5
leaq 0xc8(%rsp), %r15
movq %r15, 0x38(%rsp)
leaq 0xf8(%rsp), %rsi
movq %r15, %rdi
callq 0x717f5
movq $0x1, 0xd8(%rsp)
leaq 0x831f4(%rip), %rsi     # 0xb4a04
leaq 0x83214(%rip), %rdx     # 0xb4a2b
movq (%rsp), %rdi
xorl %eax, %eax
callq 0x87cf1
leaq 0x98(%rsp), %r14
movq %r14, %rdi
callq 0x5c299
movq %r15, %rdi
movabsq $-0x3a338903c1418376, %rsi # imm = 0xC5CC76FC3EBE7C8A
movq %r14, %rdx
callq 0x71998
addq $0x20, %r12
xorl %r13d, %r13d
movq %rbx, %rdi
callq 0x31a77
cmpq %rax, %r13
jge 0x318b4
movq %rbx, %rdi
movq %r13, %rsi
callq 0x31a87
testq %rax, %rax
je 0x318af
movq %rax, %rbp
movq %rbx, %rdi
movq %r13, %rsi
callq 0x31a9d
movq %rax, %r15
movq %r12, %rdi
movq %rbp, %rsi
callq 0x6f4a4
movq %r14, %rdi
leaq 0x83191(%rip), %rsi     # 0xb4a22
movq %rax, %rdx
xorl %eax, %eax
callq 0x5c5d2
movq %r14, %rdi
leaq 0x8317b(%rip), %rsi     # 0xb4a20
movq %r15, %rdx
xorl %eax, %eax
callq 0x5c5d2
incq %r13
jmp 0x3184e
leaq 0x98(%rsp), %rdi
pushq $-0x1
popq %rsi
pushq $0x2
popq %rdx
movq (%rsp), %rcx
callq 0x5c8ad
leaq 0x38(%rsp), %rdi
callq 0x71b48
leaq 0x30(%rsp), %rdi
callq 0x71b48
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq