// File: /workspace/github_c_makefile_star2_O1/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 $0x58, %rsp
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %r14
leaq 0x18162e(%rip), %rax    # 0x1a8dd0
movq (%rax), %rsi
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0xe0431
movq $0x0, 0x10(%r15)
cmpb $0x1, 0xc8(%r14)
jne 0x27dd6
leaq 0x12bf1f(%rip), %rsi    # 0x1536ee
movq %r13, %rdi
xorl %eax, %eax
callq 0xee2a
movl $0x76, %eax
subq %rbp, %rax
testq %rax, %rax
movl $0x0, %ecx
cmovgq %rax, %rcx
leaq 0x111d94(%rip), %rsi    # 0x139588
movq %r13, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0xee2a
movq 0x90(%r14), %rcx
leaq 0x111d89(%rip), %rsi    # 0x139598
movq %r13, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0xee2a
cmpq $0x0, 0x78(%r14)
je 0x27862
leaq 0x111d86(%rip), %rsi    # 0x1395b0
movq %r13, %rdi
xorl %eax, %eax
callq 0xee2a
cmpq $0x0, 0x78(%r14)
je 0x27862
leaq 0x11af47(%rip), %r15    # 0x142789
xorl %ebx, %ebx
movq 0x70(%r14), %rax
movq (%rax,%rbx,8), %rdx
movq %r13, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0xee2a
incq %rbx
cmpq 0x78(%r14), %rbx
jb 0x27844
leaq 0x12be85(%rip), %rsi    # 0x1536ee
movq %r13, %rdi
xorl %eax, %eax
callq 0xee2a
cmpq $0x0, 0x38(%r14)
je 0x278a5
leaq 0x111d39(%rip), %r15    # 0x1395ba
xorl %ebx, %ebx
movq 0x30(%r14), %rax
movq (%rax,%rbx,8), %rax
movq 0x8(%rax), %rdx
movq %r13, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0xee2a
incq %rbx
cmpq 0x38(%r14), %rbx
jb 0x27883
movabsq $-0x340d631b7bdddcdb, %rbx # imm = 0xCBF29CE484222325
movabsq $-0x509c42b379fe4821, %r12 # imm = 0xAF63BD4C8601B7DF
leaq 0x12be2e(%rip), %rsi    # 0x1536ee
movq %r13, %rdi
xorl %eax, %eax
callq 0xee2a
movq 0x90(%r14), %rcx
movq %r12, %r8
testq %rcx, %rcx
je 0x2790a
movb (%rcx), %al
movq %rbx, %r8
testb %al, %al
je 0x2790a
movabsq $0x100000001b3, %rdx    # imm = 0x100000001B3
leaq 0x1(%rcx), %rsi
movq %rbx, %rdi
movzbl %al, %r8d
xorq %rdi, %r8
imulq %rdx, %r8
movb (%rsi), %al
incq %rsi
movq %r8, %rdi
testb %al, %al
jne 0x278f3
leaq 0x110798(%rip), %rsi    # 0x1380a9
movq %r13, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0xee2a
movq %r14, %rdi
callq 0x21cb5
leaq 0x28(%rsp), %rdi
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
xorl %esi, %esi
movq %rax, %rcx
callq 0xe0676
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0x2797c
movb (%rcx), %sil
testb %sil, %sil
je 0x27979
movabsq $0x100000001b3, %rax    # imm = 0x100000001B3
leaq 0x1(%rcx), %rdx
movzbl %sil, %r12d
xorq %rbx, %r12
imulq %rax, %r12
movb (%rdx), %sil
incq %rdx
movq %r12, %rbx
testb %sil, %sil
jne 0x2795e
jmp 0x2797c
movq %rbx, %r12
leaq 0x110726(%rip), %rsi    # 0x1380a9
movq %r13, %rdi
movq %rbp, 0x18(%rsp)
movq %rbp, %rdx
movq %r12, %r8
xorl %eax, %eax
callq 0xee2a
testq %r14, %r14
movq %r13, 0x10(%rsp)
je 0x27a9e
cmpq $0x0, 0x10(%r14)
sete %bpl
je 0x27aa1
xorl %ebx, %ebx
movq 0x8(%r14), %rax
movq (%rax,%rbx,8), %r12
movq (%r12), %r13
movl 0x177abf(%rip), %eax    # 0x19f488
cltq
leaq (%rax,%rax,2), %rax
leaq 0x177ab2(%rip), %rdx    # 0x19f488
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r13, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x27a23
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x27a23
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x27a23
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x27a99
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x27a53
movabsq $0x5d91f496b6479859, %rdi # imm = 0x5D91F496B6479859
movq %r13, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0x177a40(%rip), %rdi    # 0x19f488
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r12, %rdi
movq %r14, %rsi
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %r13
movq %r13, %rcx
callq *0x60(%r15)
movq %rax, %r15
testq %rax, %rax
je 0x27a81
leaq 0x28(%rsp), %rdi
callq 0xe0b30
movq %r15, 0x8(%rsp)
testq %r15, %r15
jne 0x27aa1
incq %rbx
cmpq 0x10(%r14), %rbx
setae %bpl
jb 0x279b7
jmp 0x27aa1
xorl %r15d, %r15d
jmp 0x27a27
movb $0x1, %bpl
testb $0x1, %bpl
je 0x27de4
movq 0x90(%r14), %rcx
leaq 0x111b14(%rip), %rsi    # 0x1395cd
movq %r13, %rdi
movq 0x18(%rsp), %rbx
movq %rbx, %rdx
xorl %eax, %eax
callq 0xee2a
addq $0x2, %rbx
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x273e3
movq %rax, %r15
testq %rax, %rax
movq 0x8(%rsp), %rax
je 0x27af7
leaq 0x28(%rsp), %rdi
callq 0xe0b30
movq %r15, %rax
testq %r15, %r15
jne 0x27de9
movq %rbx, 0x20(%rsp)
testq %r14, %r14
movq %rax, 0x8(%rsp)
je 0x27c0b
cmpq $0x0, 0x10(%r14)
sete %bpl
je 0x27c0e
xorl %ebx, %ebx
movq 0x8(%r14), %rax
movq (%rax,%rbx,8), %r12
movq (%r12), %r13
movl 0x177952(%rip), %eax    # 0x19f488
cltq
leaq (%rax,%rax,2), %rax
leaq 0x177945(%rip), %rdx    # 0x19f488
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r13, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x27b90
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x27b90
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x27b90
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x27c06
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x27bc0
movabsq $0x5d91f496b6479859, %rdi # imm = 0x5D91F496B6479859
movq %r13, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0x1778d3(%rip), %rdi    # 0x19f488
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r12, %rdi
movq %r14, %rsi
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %r13
movq %r13, %rcx
callq *0x48(%r15)
movq %rax, %r15
testq %rax, %rax
je 0x27bee
leaq 0x28(%rsp), %rdi
callq 0xe0b30
movq %r15, 0x8(%rsp)
testq %r15, %r15
jne 0x27c0e
incq %rbx
cmpq 0x10(%r14), %rbx
setae %bpl
jb 0x27b24
jmp 0x27c0e
xorl %r15d, %r15d
jmp 0x27b94
movb $0x1, %bpl
testb $0x1, %bpl
je 0x27de4
movq %r14, %rdi
movq 0x20(%rsp), %rsi
movq %r13, %rdx
callq 0x27599
movq %rax, %r15
testq %rax, %rax
movq 0x8(%rsp), %rax
je 0x27c42
leaq 0x28(%rsp), %rdi
callq 0xe0b30
movq %r15, %rax
testq %r15, %r15
jne 0x27de9
testq %r14, %r14
movq %rax, 0x8(%rsp)
je 0x27d4e
cmpq $0x0, 0x10(%r14)
sete %bpl
je 0x27d51
xorl %ebx, %ebx
movq 0x8(%r14), %rax
movq (%rax,%rbx,8), %r12
movq (%r12), %r13
movl 0x17780c(%rip), %eax    # 0x19f488
cltq
leaq (%rax,%rax,2), %rax
leaq 0x1777ff(%rip), %rdx    # 0x19f488
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r13, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x27cd6
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x27cd6
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x27cd6
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x27d49
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x27d06
movabsq $0x5d91f496b6479859, %rdi # imm = 0x5D91F496B6479859
movq %r13, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0x17778d(%rip), %rdi    # 0x19f488
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r12, %rdi
movq %r14, %rsi
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rcx
callq *0x68(%r15)
movq %rax, %r15
testq %rax, %rax
je 0x27d31
leaq 0x28(%rsp), %rdi
callq 0xe0b30
movq %r15, 0x8(%rsp)
testq %r15, %r15
jne 0x27d51
incq %rbx
cmpq 0x10(%r14), %rbx
setae %bpl
jb 0x27c6a
jmp 0x27d51
xorl %r15d, %r15d
jmp 0x27cda
movb $0x1, %bpl
testb $0x1, %bpl
je 0x27de4
cmpq $0x0, 0x128(%r14)
setne %bl
je 0x27db9
xorl %r13d, %r13d
leaq 0x28(%rsp), %r15
movq 0x20(%rsp), %rbp
movq 0x120(%r14), %rax
movq (%rax,%r13,8), %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq 0x10(%rsp), %rcx
callq 0x1bd5e
movq %rax, %r12
testq %rax, %rax
je 0x27da5
movq %r15, %rdi
callq 0xe0b30
movq %r12, 0x8(%rsp)
testq %r12, %r12
jne 0x27db9
incq %r13
cmpq 0x128(%r14), %r13
setb %bl
jb 0x27d75
testb $0x1, %bl
movq 0x8(%rsp), %rax
jne 0x27de9
leaq 0x12b924(%rip), %rsi    # 0x1536ee
movq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0xee2a
leaq 0x28(%rsp), %rdi
callq 0xe0b30
xorl %eax, %eax
jmp 0x27de9
movq 0x8(%rsp), %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq