// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_group_s_finalize
er_t xoico_group_s_finalize( xoico_group_s* o, const xoico_host* host )
{
    // xoico_group.x:871:1
    
    /// default features
    BLM_TRY(xoico_group_s_push_inexpandable_feature_from_sc(o,"d @* clone( c @* o );" ))
    BLM_TRY(xoico_group_s_push_inexpandable_feature_from_sc(o,"void copy( m @* o, c @* src );" ))
    BLM_TRY(xoico_group_s_push_inexpandable_feature_from_sc(o,"void discard( m @* o );" ))
    BLM_TRY(xoico_group_s_push_inexpandable_func_from_sc(o,"d obliv @* t_create( tp_t t );" ))
    
    // check validity of trait name
    if( !xoico_compiler_s_is_group(xoico_host_a_compiler(host),o->trait_name ) )
    {
        return  x_source_point_s_parse_error_fa(o->source_point,"In group '#<sc_t>': Trait name '#<sc_t>' is not a group.", o->st_name.sc, xoico_host_a_nameof(host,o->trait_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_finalize(e,((const xoico_host*)(o ))))
    }}{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_finalize(func,((const xoico_host*)(o ))))
        BLM_TRY(xoico_compiler_s_register_func(o->compiler,func ))
        bcore_hmap_tpvd_s_set(&(o->hmap_func),func->name, ( vd_t )func );
    }
    }}return  0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x11251f(%rip), %rsi    # 0x13941b
callq 0x22193
movq %rax, %r14
testq %rax, %rax
je 0x26f1d
leaq 0x181ec0(%rip), %rax    # 0x1a8dd0
movq (%rax), %rdi
callq 0xe0b30
jmp 0x26fa7
leaq 0x11250d(%rip), %rsi    # 0x139431
movq %rbx, %rdi
callq 0x22193
movq %rax, %r12
testq %rax, %rax
je 0x26f46
leaq 0x181e95(%rip), %rax    # 0x1a8dd0
movq (%rax), %rdi
callq 0xe0b30
movq %r12, %r14
testq %r12, %r12
jne 0x26fa7
leaq 0x1124fe(%rip), %rsi    # 0x139450
movq %rbx, %rdi
callq 0x22193
movq %rax, %r12
testq %rax, %rax
je 0x26f74
leaq 0x181e67(%rip), %rax    # 0x1a8dd0
movq (%rax), %rdi
callq 0xe0b30
movq %r12, %r14
testq %r12, %r12
jne 0x26fa7
leaq 0x1124e8(%rip), %rsi    # 0x139468
movq %rbx, %rdi
callq 0x22456
movq %rax, %r12
testq %rax, %rax
je 0x26fa2
leaq 0x181e39(%rip), %rax    # 0x1a8dd0
movq (%rax), %rdi
callq 0xe0b30
movq %r12, %r14
testq %r12, %r12
je 0x26fb9
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r15), %r12
leaq 0x1786dd(%rip), %rbp    # 0x19f6a0
movl 0x1786d7(%rip), %eax    # 0x19f6a0
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rbp,%rax,8), %rcx
movq 0x18(%rbp,%rax,8), %rdx
andq %r12, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0x27020
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x27020
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x27020
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x27318
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x27050
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r12, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0x17865b(%rip), %rdi    # 0x19f6a0
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, %rdi
callq *0x20(%r13)
movq 0xb0(%rbx), %rsi
leaq 0x50(%rax), %rdi
callq 0xd4857
testb %al, %al
je 0x27172
testq %rbx, %rbx
je 0x27245
cmpq $0x0, 0x10(%rbx)
setne %r12b
je 0x27248
xorl %r15d, %r15d
movq %r14, 0x8(%rsp)
movq 0x8(%rbx), %rax
movq (%rax,%r15,8), %r14
movq (%r14), %r13
movl 0x1783e8(%rip), %eax    # 0x19f488
cltq
leaq (%rax,%rax,2), %rax
leaq 0x1783db(%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 0x270fa
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x270fa
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x270fa
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x2716e
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x2712a
movabsq $0x5d91f496b6479859, %rdi # imm = 0x5D91F496B6479859
movq %r13, %rsi
callq 0xf3f85
movq %rax, %rbp
leaq 0x178369(%rip), %rdi    # 0x19f488
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r14, %rdi
movq %rbx, %rsi
callq *0x30(%rbp)
movq %rax, %r14
testq %rax, %rax
je 0x2714f
leaq 0x181c8e(%rip), %rax    # 0x1a8dd0
movq (%rax), %rdi
callq 0xe0b30
movq %r14, 0x8(%rsp)
testq %r14, %r14
jne 0x2724d
incq %r15
cmpq 0x10(%rbx), %r15
setb %r12b
jb 0x2708f
jmp 0x2724d
xorl %ebp, %ebp
jmp 0x270fe
movq 0x148(%rbx), %r12
movq 0x90(%rbx), %r14
movq 0xb0(%rbx), %rbx
movq (%r15), %r13
movl 0x178510(%rip), %eax    # 0x19f6a0
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rbp,%rax,8), %rcx
movq 0x18(%rbp,%rax,8), %rdx
andq %r13, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x271e7
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x271e7
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x271e7
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x27320
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x27217
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r13, %rsi
callq 0xf3f85
movq %rax, %rbp
leaq 0x178494(%rip), %rdi    # 0x19f6a0
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, %rdi
movq %rbx, %rsi
callq *0x48(%rbp)
leaq 0x112260(%rip), %rsi    # 0x139487
movq %r12, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x13591
xorl %r12d, %r12d
movq %r14, 0x8(%rsp)
testb $0x1, %r12b
je 0x2725d
movq 0x8(%rsp), %r14
jmp 0x26fa7
cmpq $0x0, 0x128(%rbx)
je 0x27310
leaq 0x178(%rbx), %rax
movq %rax, 0x10(%rsp)
xorl %r14d, %r14d
leaq 0x181b4f(%rip), %rbp    # 0x1a8dd0
xorl %r15d, %r15d
movq 0x120(%rbx), %rax
movq (%rax,%r15,8), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1b7f3
movq %rax, %r13
testq %rax, %rax
je 0x272b0
movq (%rbp), %rdi
callq 0xe0b30
movq %r13, 0x8(%rsp)
testq %r13, %r13
jne 0x272df
movq 0x140(%rbx), %rdi
movq %r12, %rsi
callq 0x27327
movq %rax, %r13
testq %rax, %rax
je 0x272da
movq (%rbp), %rdi
callq 0xe0b30
movq %r13, 0x8(%rsp)
testq %r13, %r13
je 0x272fa
xorl %eax, %eax
testb %al, %al
je 0x27253
incq %r15
cmpq 0x128(%rbx), %r15
jb 0x27284
jmp 0x26fa7
movq 0x8(%r12), %rsi
movq 0x10(%rsp), %rdi
movq %r12, %rdx
callq 0xd45e4
movb $0x1, %al
jmp 0x272e1
xorl %r14d, %r14d
jmp 0x26fa7
xorl %r13d, %r13d
jmp 0x27024
xorl %ebp, %ebp
jmp 0x271eb