// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_group_s_expand_spect_definition
er_t xoico_group_s_expand_spect_definition( const xoico_group_s* o, sz_t indent, x_sink* sink )
{
    // xoico_group.x:979:1
    
    xoico_compiler_s* compiler = o->compiler;
    if( !o->expandable ) return  0;
    x_sink_push_fa(sink,"\n" );
    if( o->short_spect_name )
    {
        x_sink_push_fa(sink,"#rn{ }BCORE_DEFINE_SPECT( #<sc_t>, #<sc_t> )\n", indent, xoico_compiler_s_nameof(compiler,o->trait_name ), o->st_name.sc );
        x_sink_push_fa(sink,"#rn{ }\"{\"\n", indent );
        x_sink_push_fa(sink,"#rn{ }    \"bcore_spect_header_s header;\"\n", indent );
        {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_spect_definition(e,((const xoico_host*)(o)), indent + 4, false, true, sink ))
        }}x_sink_push_fa(sink,"#rn{ }\"}\";\n", indent );
    }
    else
    {
        x_sink_push_fa(sink,"#rn{ }XOILA_DEFINE_SPECT_NASC_BEGIN( #<sc_t>, #<sc_t> )\n", indent, xoico_compiler_s_nameof(compiler,o->trait_name ), o->st_name.sc );
    
        x_sink_push_fa(sink,"#rn{ }\"{\",\n", indent );
        x_sink_push_fa(sink,"#rn{ }    \"bcore_spect_header_s header;\",\n", indent );
        {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_spect_definition(e,((const xoico_host*)(o)), indent + 4, true, true, sink ))
        }}x_sink_push_fa(sink,"#rn{ }\"}\",\n", indent );
    
        x_sink_push_fa(sink,"#rn{ }XOILA_DEFINE_SPECT_NASC_END( #<sc_t>, #<sc_t> )\n", indent, xoico_compiler_s_nameof(compiler,o->trait_name ), 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 0x16d7d
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %r15
movq 0x140(%rdi), %rbp
leaq 0xaf8eb(%rip), %rsi     # 0xc65cb
movq %rdx, %rdi
xorl %eax, %eax
callq 0xdd43
movb 0xd8(%r15), %bl
movq 0xb0(%r15), %rsi
movq %rbp, %rdi
callq 0xdad8
movq 0x90(%r15), %r8
leaq 0x4(%r13), %r12
cmpb $0x1, %bl
jne 0x16d84
leaq 0x948df(%rip), %rsi     # 0xab5f6
xorl %ebx, %ebx
movq %r14, %rdi
movq %r13, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xdd43
leaq 0x948f4(%rip), %rsi     # 0xab624
movq %r14, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0xdd43
leaq 0x948eb(%rip), %rsi     # 0xab62f
movq %r14, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0xdd43
cmpq 0x10(%r15), %rbx
jae 0x16e0e
movq 0x8(%r15), %rax
movq (%rax,%rbx,8), %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
movq %r14, %r8
callq 0x16e82
incq %rbx
testq %rax, %rax
je 0x16d51
jmp 0x16dfa
xorl %ebp, %ebp
jmp 0x16e70
movq %rbp, 0x8(%rsp)
leaq 0x948d5(%rip), %rsi     # 0xab665
xorl %ebx, %ebx
movq %r14, %rdi
movq %r13, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xdd43
leaq 0x948f5(%rip), %rsi     # 0xab69e
movq %r14, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0xdd43
leaq 0x948ed(%rip), %rsi     # 0xab6aa
movq %r14, %rdi
movq %r13, 0x10(%rsp)
movq %r13, %rdx
xorl %eax, %eax
callq 0xdd43
pushq $0x1
popq %r13
cmpq 0x10(%r15), %rbx
jae 0x16e26
movq 0x8(%r15), %rax
movq (%rax,%rbx,8), %rdi
movq %r15, %rsi
movq %r12, %rdx
movl %r13d, %ecx
movq %r14, %r8
callq 0x16e82
incq %rbx
testq %rax, %rax
je 0x16dd3
movq %rax, %rbp
leaq 0x100fcc(%rip), %rax    # 0x117dd0
movq (%rax), %rdi
callq 0x71b64
jmp 0x16e70
leaq 0x94844(%rip), %rsi     # 0xab659
xorl %ebp, %ebp
movq %r14, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0xdd43
jmp 0x16e70
leaq 0x948a8(%rip), %rsi     # 0xab6d5
xorl %ebp, %ebp
movq %r14, %rdi
movq 0x10(%rsp), %rbx
movq %rbx, %rdx
xorl %eax, %eax
callq 0xdd43
movq 0xb0(%r15), %rsi
movq 0x8(%rsp), %rdi
callq 0xdad8
movq 0x90(%r15), %r8
leaq 0x94881(%rip), %rsi     # 0xab6e1
movq %r14, %rdi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xdd43
movq %rbp, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq