// File: /workspace/github_c_makefile_star2_O1/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
subq $0x18, %rsp
cmpb $0x1, 0xc8(%rdi)
jne 0x288e3
movq %rdx, %rbx
movq %rsi, %rbp
movq %rdi, %r15
leaq 0x12b0a9(%rip), %rsi    # 0x1536ee
xorl %r12d, %r12d
movq %rdx, %rdi
xorl %eax, %eax
callq 0xee2a
movq 0x90(%r15), %rcx
leaq 0x1110b8(%rip), %rsi    # 0x139718
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0xee2a
testq %r15, %r15
movq %rbx, 0x8(%rsp)
je 0x2877f
cmpq $0x0, 0x10(%r15)
setne %r12b
je 0x2877f
xorl %r14d, %r14d
movl %r12d, 0x4(%rsp)
movq %rbp, %rbx
movq 0x8(%r15), %rax
movq (%rax,%r14,8), %rbp
movq (%rbp), %r12
movl 0x176de1(%rip), %eax    # 0x19f488
cltq
leaq (%rax,%rax,2), %rax
leaq 0x176dd4(%rip), %rdx    # 0x19f488
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r12, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0x28701
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x28701
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x28701
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x2877a
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x28731
movabsq $0x5d91f496b6479859, %rdi # imm = 0x5D91F496B6479859
movq %r12, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0x176d62(%rip), %rdi    # 0x19f488
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
movq %rbp, %rdi
movq %r15, %rsi
movq %rbx, %rbp
movq %rbx, %rdx
movq 0x8(%rsp), %rcx
callq *0x78(%r13)
movq %rax, %r12
testq %rax, %rax
je 0x28762
leaq 0x18067b(%rip), %rax    # 0x1a8dd0
movq (%rax), %rdi
callq 0xe0b30
movq %r12, 0x10(%rsp)
testq %r12, %r12
jne 0x28781
incq %r14
cmpq 0x10(%r15), %r14
setb %r12b
jb 0x2868d
jmp 0x28786
xorl %r13d, %r13d
jmp 0x28705
jmp 0x28786
movl 0x4(%rsp), %r12d
testb $0x1, %r12b
movq 0x10(%rsp), %rbx
jne 0x288e5
cmpq $0x0, 0x128(%r15)
movq 0x8(%rsp), %r13
je 0x287cb
xorl %ebx, %ebx
movq 0x120(%r15), %rax
movq (%rax,%rbx,8), %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x1c13c
incq %rbx
cmpq 0x128(%r15), %rbx
jb 0x287a6
movq 0x90(%r15), %rcx
leaq 0x110f58(%rip), %rax    # 0x139731
leaq 0x110f79(%rip), %rsi    # 0x139759
cmpb $0x0, 0xd8(%r15)
cmovneq %rax, %rsi
movq %r13, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0xee2a
cmpb $0x1, 0xca(%r15)
jne 0x288ba
leaq 0x110601(%rip), %rsi    # 0x138e0f
movq %r13, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0xee2a
leaq 0x110f5f(%rip), %rsi    # 0x139781
movq %r13, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0xee2a
movq 0xd0(%r15), %rbx
testq %rbx, %rbx
je 0x2887c
cmpq $0x0, 0x10(%rbx)
je 0x2887c
leaq 0x110f71(%rip), %r12    # 0x1397ba
xorl %r14d, %r14d
movq 0x8(%rbx), %rax
movq (%rax,%r14,8), %rsi
movq 0x140(%r15), %rdi
callq 0xe39f
movq %r13, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xee2a
incq %r14
cmpq 0x10(%rbx), %r14
jb 0x2884c
movq 0xa8(%r15), %rsi
movq 0x140(%r15), %rdi
callq 0xe39f
leaq 0x110f5a(%rip), %rsi    # 0x1397f0
movq %r13, %rdi
movq %rbp, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xee2a
leaq 0x110661(%rip), %rsi    # 0x138f0e
movq %r13, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0xee2a
cmpb $0x1, 0xd9(%r15)
jne 0x288e3
movq 0x90(%r15), %rcx
leaq 0x110f67(%rip), %rsi    # 0x139839
movq %r13, %rdi
xorl %ebx, %ebx
movq %rbp, %rdx
xorl %eax, %eax
callq 0xee2a
jmp 0x288e5
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq