// File: /workspace/github_c_makefile_star2_O3/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 $0x28, %rsp
cmpb $0x1, 0xc8(%rdi)
jne 0x2699c
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
movq 0x140(%rdi), %r13
leaq 0x121ef7(%rip), %rsi    # 0x148714
movq %rdx, %rdi
xorl %eax, %eax
callq 0xed3f
movb 0xd8(%r15), %bl
movq 0xb0(%r15), %rsi
movq %r13, %rdi
callq 0xe3d7
movq 0x90(%r15), %r8
cmpb $0x1, %bl
movq %r14, 0x8(%rsp)
movq %r12, 0x10(%rsp)
jne 0x269a4
leaq 0x107d98(%rip), %rsi    # 0x12e5f6
movq %r12, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xed3f
leaq 0x107daf(%rip), %rsi    # 0x12e624
movq %r12, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xed3f
leaq 0x107da6(%rip), %rsi    # 0x12e62f
movq %r12, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xed3f
cmpq $0x0, 0x10(%r15)
je 0x2697c
movq 0x8(%rsp), %rax
addq $0x4, %rax
movq %rax, 0x18(%rsp)
xorl %r14d, %r14d
leaq 0x16bbcf(%rip), %rbp    # 0x192488
movq 0x8(%r15), %rax
movq (%rax,%r14,8), %r12
movq (%r12), %rbx
movl 0x16bbbd(%rip), %eax    # 0x192488
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rbp,%rax,8), %rcx
movq 0x18(%rbp,%rax,8), %rdx
andq %rbx, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %rbx, %rdx
je 0x2691e
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbx, %rdx
je 0x2691e
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbx, %rdx
je 0x2691e
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbx, %rdx
jne 0x26927
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x2694a
movabsq $0x5d91f496b6479859, %rdi # imm = 0x5D91F496B6479859
movq %rbx, %rsi
callq 0xe9bc5
movq %rax, %r13
movq %rbp, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r12, %rdi
movq %r15, %rsi
movq 0x18(%rsp), %rdx
xorl %ecx, %ecx
movl $0x1, %r8d
movq 0x10(%rsp), %r9
callq *0x58(%r13)
testq %rax, %rax
jne 0x26b1e
incq %r14
cmpq 0x10(%r15), %r14
jb 0x268b9
leaq 0x107cd6(%rip), %rsi    # 0x12e659
xorl %r12d, %r12d
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rdx
xorl %eax, %eax
callq 0xed3f
jmp 0x26b30
xorl %r12d, %r12d
jmp 0x26b30
movq %r13, 0x20(%rsp)
leaq 0x107cb5(%rip), %rsi    # 0x12e665
movq %r12, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xed3f
leaq 0x107cd7(%rip), %rsi    # 0x12e69e
movq %r12, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xed3f
leaq 0x107ccf(%rip), %rsi    # 0x12e6aa
movq %r12, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xed3f
cmpq $0x0, 0x10(%r15)
je 0x26acc
movq 0x8(%rsp), %rax
addq $0x4, %rax
movq %rax, 0x18(%rsp)
xorl %r14d, %r14d
leaq 0x16ba7d(%rip), %r13    # 0x192488
movq 0x8(%r15), %rax
movq (%rax,%r14,8), %r12
movq (%r12), %rbx
movl 0x16ba6b(%rip), %eax    # 0x192488
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r13,%rax,8), %rcx
movq 0x18(%r13,%rax,8), %rdx
andq %rbx, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %rbx, %rdx
je 0x26a70
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbx, %rdx
je 0x26a70
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbx, %rdx
je 0x26a70
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbx, %rdx
jne 0x26a79
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x26a9c
movabsq $0x5d91f496b6479859, %rdi # imm = 0x5D91F496B6479859
movq %rbx, %rsi
callq 0xe9bc5
movq %rax, %rbp
movq %r13, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r12, %rdi
movq %r15, %rsi
movq 0x18(%rsp), %rdx
movl $0x1, %ecx
movl $0x1, %r8d
movq 0x10(%rsp), %r9
callq *0x58(%rbp)
testq %rax, %rax
jne 0x26b1e
incq %r14
cmpq 0x10(%r15), %r14
jb 0x26a0b
leaq 0x107c02(%rip), %rsi    # 0x12e6d5
xorl %r12d, %r12d
movq 0x10(%rsp), %r14
movq %r14, %rdi
movq 0x8(%rsp), %rbx
movq %rbx, %rdx
xorl %eax, %eax
callq 0xed3f
movq 0xb0(%r15), %rsi
movq 0x20(%rsp), %rdi
callq 0xe3d7
movq 0x90(%r15), %r8
leaq 0x107bd5(%rip), %rsi    # 0x12e6e1
movq %r14, %rdi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xed3f
jmp 0x26b30
movq %rax, %r12
leaq 0x1752a8(%rip), %rax    # 0x19bdd0
movq (%rax), %rdi
callq 0xd6d2c
movq %r12, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq