// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_group_s_expand_declaration
er_t xoico_group_s_expand_declaration( const xoico_group_s* o, sz_t indent, x_sink* sink )
{
    // xoico_group.x:938:1
    BLM_INIT_LEVEL(0);
    if( !o->expandable ) BLM_RETURNV(er_t, 0)
    
    x_sink_push_fa(sink,"\n" );
    x_sink_push_fa(sink,"#rn{ }//#rn{-}\n", indent, sz_max( 0, 118 - indent ) );
    x_sink_push_fa(sink,"#rn{ }// group: #<sc_t>", indent, o->st_name.sc );
    if( o->explicit_embeddings.size > 0 )
    {
        x_sink_push_fa(sink,"; embeds:" );
        {const bcore_arr_st_s* __a=&(o->explicit_embeddings );if(__a)for(sz_t __i=0;__i<__a->size;__i++){st_s* st=__a->data[__i]; x_sink_push_fa(sink," #<st_s*>", st );}}
    }
    x_sink_push_fa(sink,"\n" );
    
    {const bcore_arr_st_s* __a=&(o->includes_in_declaration );if(__a)for(sz_t __i=0;__i<__a->size;__i++){st_s* e=__a->data[__i]; x_sink_push_fa(sink,"##include #<sc_t>\n", e->sc );}}
    
    x_sink_push_fa(sink,"\n" );
    x_sink_push_fa(sink,"#rn{ }##define TYPEOF_#<sc_t> 0x#pl16'0'{#X<tp_t>}ull\n", indent, o->st_name.sc, btypeof( o->st_name.sc ) );
    
    st_s* st_spect_name = ((st_s*)BLM_LEVEL_T_PUSH(0,st_s,xoico_group_s_create_spect_name( o )));
    sc_t sc_spect_name = st_spect_name->sc;
    
    x_sink_push_fa(sink,"#rn{ }##define TYPEOF_#<sc_t> 0x#pl16'0'{#X<tp_t>}ull\n", indent, sc_spect_name, btypeof( sc_spect_name ) );
    
    {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_declaration(e,((const xoico_host*)(o)), indent, sink ))
    }}x_sink_push_fa(sink,"#rn{ }##define BETH_EXPAND_GROUP_#<sc_t>", indent, o->st_name.sc );
    
    BLM_TRY(xoico_group_s_expand_forward(o,indent + 2, sink ))
    
    {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_indef_typedef(e,((const xoico_host*)(o)), indent, sink ))
    }}BLM_TRY(xoico_group_s_expand_spect_declaration(o,indent + 2, sink ))
    
    {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_indef_declaration(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_declaration(func,((const xoico_host*)(o)), indent + 2, sink ))
    }}x_sink_push_fa(sink,"\n" );
    
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
leaq 0x1013e6(%rip), %rax    # 0x117dd0
movq (%rax), %rsi
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x717f5
andq $0x0, 0x10(%r12)
cmpb $0x1, 0xc8(%r14)
jne 0x16b92
leaq 0xafbb6(%rip), %rsi     # 0xc65cb
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdd43
pushq $0x76
popq %rax
subq %r15, %rax
testq %rax, %rax
movl $0x0, %ecx
cmovgq %rax, %rcx
leaq 0x94b50(%rip), %rsi     # 0xab588
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xdd43
movq 0x90(%r14), %rcx
leaq 0x94b45(%rip), %rsi     # 0xab598
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xdd43
cmpq $0x0, 0x78(%r14)
je 0x16aa2
leaq 0x94b42(%rip), %rsi     # 0xab5b0
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdd43
leaq 0x9dfa2(%rip), %r12     # 0xb4a21
xorl %r13d, %r13d
cmpq 0x78(%r14), %r13
jae 0x16aa2
movq 0x70(%r14), %rax
movq (%rax,%r13,8), %rdx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0xdd43
incq %r13
jmp 0x16a82
leaq 0xafb22(%rip), %rsi     # 0xc65cb
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdd43
leaq 0x94b00(%rip), %r12     # 0xab5ba
xorl %r13d, %r13d
cmpq 0x38(%r14), %r13
jae 0x16ae1
movq 0x30(%r14), %rax
movq (%rax,%r13,8), %rax
movq 0x8(%rax), %rdx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0xdd43
incq %r13
jmp 0x16abd
leaq 0xafae3(%rip), %rsi     # 0xc65cb
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdd43
movq 0x90(%r14), %r13
movq %r13, %rdi
callq 0x10aad
leaq 0x9359f(%rip), %r12     # 0xaa0a9
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r13, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0xdd43
movq %r14, %rdi
callq 0x13be2
leaq 0x8(%rsp), %rdi
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
xorl %esi, %esi
movq %rax, %rcx
callq 0x71967
movq 0x8(%rax), %r13
movq %r13, %rdi
callq 0x10aad
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r13, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0xdd43
cmpq 0x10(%r14), %rbp
jae 0x16b97
movq 0x8(%r14), %rax
movq (%rax,%rbp,8), %r12
movq %r12, %rdi
callq 0x2d62b
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq *0x60(%rax)
incq %rbp
testq %rax, %rax
je 0x16b63
jmp 0x16c0d
xorl %r13d, %r13d
jmp 0x16c10
movq 0x90(%r14), %rcx
leaq 0x94a28(%rip), %rsi     # 0xab5cd
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xdd43
leaq 0x2(%r15), %r12
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x1680f
testq %rax, %rax
jne 0x16c0d
xorl %ebp, %ebp
cmpq 0x10(%r14), %rbp
jae 0x16bfa
movq 0x8(%r14), %rax
movq (%rax,%rbp,8), %r13
movq %r13, %rdi
callq 0x2d62b
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq *0x48(%rax)
incq %rbp
testq %rax, %rax
je 0x16bcb
jmp 0x16c0d
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x168c6
testq %rax, %rax
je 0x16c2c
movq %rax, %r13
leaq 0x8(%rsp), %rdi
callq 0x71b64
movq %r13, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
cmpq 0x10(%r14), %rbp
jae 0x16c60
movq 0x8(%r14), %rax
movq (%rax,%rbp,8), %r13
movq %r13, %rdi
callq 0x2d62b
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq *0x68(%rax)
movq %rax, %r13
incq %rbp
testq %rax, %rax
je 0x16c2e
jmp 0x16c10
xorl %r15d, %r15d
cmpq 0x128(%r14), %r15
jae 0x16c95
movq 0x120(%r14), %rax
movq (%rax,%r15,8), %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11871
movq %rax, %r13
incq %r15
testq %rax, %rax
je 0x16c63
jmp 0x16c10
leaq 0xaf92f(%rip), %rsi     # 0xc65cb
xorl %r13d, %r13d
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdd43
jmp 0x16c10