// File: /workspace/github_c_makefile_star2_O1/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 0x27fc7
movq %rdx, %rbp
movq %rsi, %r14
movq %rdi, %r15
movq 0x140(%rdi), %r12
leaq 0x12b8c4(%rip), %rsi    # 0x1536ee
movq %rdx, %rdi
xorl %eax, %eax
callq 0xee2a
movb 0xd8(%r15), %bl
movq 0xb0(%r15), %rsi
movq %r12, %rdi
callq 0xe39f
movq 0x90(%r15), %r8
cmpb $0x1, %bl
movq %rbp, 0x18(%rsp)
movq %r14, 0x10(%rsp)
jne 0x27fdc
leaq 0x11178b(%rip), %rsi    # 0x1395f6
movq %rbp, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xee2a
leaq 0x1117a2(%rip), %rsi    # 0x139624
movq %rbp, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xee2a
leaq 0x111799(%rip), %rsi    # 0x13962f
movq %rbp, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xee2a
testq %r15, %r15
je 0x28140
cmpq $0x0, 0x10(%r15)
sete %r13b
je 0x28143
leaq 0x4(%r14), %rax
movq %rax, (%rsp)
xorl %r14d, %r14d
movq 0x8(%r15), %rax
movq (%rax,%r14,8), %rbx
movq (%rbx), %rbp
movl 0x1775b1(%rip), %eax    # 0x19f488
cltq
leaq (%rax,%rax,2), %rax
leaq 0x1775a4(%rip), %rdx    # 0x19f488
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %rbp, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %rbp, %rdx
je 0x27f35
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0x27f35
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0x27f35
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0x27fbf
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x27f65
movabsq $0x5d91f496b6479859, %rdi # imm = 0x5D91F496B6479859
movq %rbp, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0x17752e(%rip), %rdi    # 0x19f488
movq %rbp, %rsi
movq %rax, %rdx
callq 0x12128c
movq %rbx, %rdi
movq %r15, %rsi
movq (%rsp), %rdx
xorl %ecx, %ecx
movl $0x1, %r8d
movq 0x18(%rsp), %rbp
movq %rbp, %r9
callq *0x58(%r12)
movq %rax, %rbx
testq %rax, %rax
je 0x27fa0
leaq 0x180e3d(%rip), %rax    # 0x1a8dd0
movq (%rax), %rdi
callq 0xe0b30
movq %rbx, 0x8(%rsp)
testq %rbx, %rbx
jne 0x28143
incq %r14
cmpq 0x10(%r15), %r14
setae %r13b
jb 0x27ec6
jmp 0x28143
xorl %r12d, %r12d
jmp 0x27f39
xorl %r14d, %r14d
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, 0x20(%rsp)
leaq 0x11167d(%rip), %rsi    # 0x139665
movq %rbp, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xee2a
leaq 0x11169f(%rip), %rsi    # 0x13969e
movq %rbp, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xee2a
leaq 0x111697(%rip), %rsi    # 0x1396aa
movq %rbp, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xee2a
testq %r15, %r15
je 0x28170
cmpq $0x0, 0x10(%r15)
sete %r13b
je 0x28173
leaq 0x4(%r14), %rax
movq %rax, (%rsp)
xorl %r14d, %r14d
movq 0x8(%r15), %rax
movq (%rax,%r14,8), %rbx
movq (%rbx), %rbp
movl 0x177434(%rip), %eax    # 0x19f488
cltq
leaq (%rax,%rax,2), %rax
leaq 0x177427(%rip), %rdx    # 0x19f488
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %rbp, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %rbp, %rdx
je 0x280b2
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0x280b2
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0x280b2
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0x28138
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x280e2
movabsq $0x5d91f496b6479859, %rdi # imm = 0x5D91F496B6479859
movq %rbp, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0x1773b1(%rip), %rdi    # 0x19f488
movq %rbp, %rsi
movq %rax, %rdx
callq 0x12128c
movq %rbx, %rdi
movq %r15, %rsi
movq (%rsp), %rdx
movl $0x1, %ecx
movl $0x1, %r8d
movq 0x18(%rsp), %rbp
movq %rbp, %r9
callq *0x58(%r12)
movq %rax, %rbx
testq %rax, %rax
je 0x28120
leaq 0x180cbd(%rip), %rax    # 0x1a8dd0
movq (%rax), %rdi
callq 0xe0b30
movq %rbx, 0x8(%rsp)
testq %rbx, %rbx
jne 0x28173
incq %r14
cmpq 0x10(%r15), %r14
setae %r13b
jb 0x28043
jmp 0x28173
xorl %r12d, %r12d
jmp 0x280b6
movb $0x1, %r13b
testb $0x1, %r13b
movq 0x8(%rsp), %r14
je 0x27fca
leaq 0x111500(%rip), %rsi    # 0x139659
xorl %r14d, %r14d
movq %rbp, %rdi
movq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0xee2a
jmp 0x27fca
movb $0x1, %r13b
testb $0x1, %r13b
movq 0x8(%rsp), %r14
je 0x27fca
leaq 0x11154c(%rip), %rsi    # 0x1396d5
xorl %r14d, %r14d
movq %rbp, %rdi
movq 0x10(%rsp), %rbx
movq %rbx, %rdx
xorl %eax, %eax
callq 0xee2a
movq 0xb0(%r15), %rsi
movq 0x20(%rsp), %rdi
callq 0xe39f
movq 0x90(%r15), %r8
leaq 0x111524(%rip), %rsi    # 0x1396e1
movq %rbp, %rdi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xee2a
jmp 0x27fca