// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_group_s_expand_init1
er_t xoico_group_s_expand_init1( const xoico_group_s* o, sz_t indent, x_sink* sink )
{
    // xoico_group.x:1040:1
    
    if( !o->expandable ) return  0;
    x_sink_push_fa(sink,"\n" );
    x_sink_push_fa(sink,"#rn{ }// group: #<sc_t>\n", indent, o->st_name.sc );
    {const xoico_group_s* __a=o ;if(__a)for(sz_t __i=0;__i<__a->size;__i++){xoico* e=__a->data[__i]; BLM_TRY(xoico_a_expand_init1(e,((const xoico_host*)(o)), indent, sink ))
    }}{const xoico_funcs_s* __a=&(o->funcs );if(__a)for(sz_t __i=0;__i<__a->size;__i++){xoico_func_s* func=__a->data[__i]; BLM_TRY(xoico_func_s_expand_init1(func,((const xoico_host*)(o)), indent, sink ))
    
    }}if( o->short_spect_name )
    {
        x_sink_push_fa(sink,"#rn{ }BCORE_REGISTER_SPECT( #<sc_t> );\n", indent, o->st_name.sc );
    }
    else
    {
        x_sink_push_fa(sink,"#rn{ }XOILA_REGISTER_SPECT( #<sc_t> );\n", indent, o->st_name.sc );
    }
    
    if( o->is_retrievable )
    {
        x_sink_push_fa(sink,"#rn{ }{\n", indent );
        x_sink_push_fa(sink,"#rn{ }   bcore_arr_tp_s* arr = bcore_arr_tp_s_create();\n", indent );
        {const bcore_arr_tp_s* __a=o->retrievable_stamps ;if(__a)for(sz_t __i=0;__i<__a->size;__i++){tp_t type=__a->data[__i];
        {
            x_sink_push_fa(sink,"#rn{ }   bcore_arr_tp_s_push( arr, TYPEOF_#<sc_t> );\n", indent, xoico_compiler_s_nameof(o->compiler,type ) );
        }
        }}x_sink_push_fa(sink,"#rn{ }   bcore_xoila_set_arr_traitline_stamps_d( TYPEOF_#<sc_t>, arr );\n", indent, xoico_compiler_s_nameof(o->compiler,o->tp_name ) );
        x_sink_push_fa(sink,"#rn{ }}\n", indent );
    }
    
    
    if( o->defines_group_signal_init1 )
    {
        x_sink_push_fa(sink,"#rn{ }#<sc_t>_group_signal_init1();\n", indent, o->st_name.sc );
    }
    
    return  0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpb $0x1, 0xc8(%rdi)
jne 0x1728d
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0xaf4e7(%rip), %rsi     # 0xc65cb
xorl %r13d, %r13d
movq %rdx, %rdi
xorl %eax, %eax
callq 0xdd43
movq 0x90(%r15), %rcx
leaq 0x94619(%rip), %rsi     # 0xab718
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xdd43
cmpq 0x10(%r15), %r13
jae 0x17150
movq 0x8(%r15), %rax
movq (%rax,%r13,8), %r12
movq %r12, %rdi
callq 0x2d62b
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq *0x78(%rax)
incq %r13
testq %rax, %rax
je 0x1710c
movq %rax, %r12
leaq 0x100c8d(%rip), %rax    # 0x117dd0
movq (%rax), %rdi
callq 0x71b64
jmp 0x17290
xorl %r12d, %r12d
cmpq 0x128(%r15), %r12
jae 0x1717a
movq 0x120(%r15), %rax
movq (%rax,%r12,8), %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x11ae4
incq %r12
jmp 0x17153
movq 0x90(%r15), %rcx
leaq 0x945a9(%rip), %rax     # 0xab731
leaq 0x945ca(%rip), %rsi     # 0xab759
cmpb $0x0, 0xd8(%r15)
cmovneq %rax, %rsi
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xdd43
cmpb $0x1, 0xca(%r15)
jne 0x17263
leaq 0x93c52(%rip), %rsi     # 0xaae0f
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xdd43
leaq 0x945b0(%rip), %rsi     # 0xab781
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xdd43
movq 0xd0(%r15), %r13
testq %r13, %r13
je 0x17225
leaq 0x945c9(%rip), %r12     # 0xab7ba
xorl %ebp, %ebp
cmpq 0x10(%r13), %rbp
jae 0x17225
movq 0x8(%r13), %rax
movq (%rax,%rbp,8), %rsi
movq 0x140(%r15), %rdi
callq 0xdad8
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xdd43
incq %rbp
jmp 0x171f3
movq 0xa8(%r15), %rsi
movq 0x140(%r15), %rdi
callq 0xdad8
leaq 0x945b1(%rip), %rsi     # 0xab7f0
movq %r14, %rdi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xdd43
leaq 0x93cb8(%rip), %rsi     # 0xaaf0e
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xdd43
cmpb $0x1, 0xd9(%r15)
jne 0x1728d
movq 0x90(%r15), %rcx
leaq 0x945be(%rip), %rsi     # 0xab839
xorl %r12d, %r12d
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xdd43
jmp 0x17290
xorl %r12d, %r12d
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq