// File: /workspace/github_c_makefile_star2_O3/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
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1088fe(%rip), %rsi    # 0x12e41b
callq 0x21667
testq %rax, %rax
jne 0x25b63
leaq 0x108903(%rip), %rsi    # 0x12e431
movq %rbx, %rdi
callq 0x21667
testq %rax, %rax
jne 0x25b63
leaq 0x10890e(%rip), %rsi    # 0x12e450
movq %rbx, %rdi
callq 0x21667
testq %rax, %rax
jne 0x25b63
leaq 0x108912(%rip), %rsi    # 0x12e468
movq %rbx, %rdi
callq 0x21901
testq %rax, %rax
je 0x25b87
movq %rax, %r15
leaq 0x176263(%rip), %rax    # 0x19bdd0
movq (%rax), %rdi
callq 0xd6d2c
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r14), %r15
leaq 0x16cb0f(%rip), %rbp    # 0x1926a0
movl 0x16cb09(%rip), %eax    # 0x1926a0
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rbp,%rax,8), %rcx
movq 0x18(%rbp,%rax,8), %rdx
andq %r15, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0x25bea
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x25bea
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x25bea
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x25bf3
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x25c1a
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %r12
leaq 0x16ca91(%rip), %rdi    # 0x1926a0
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r14, %rdi
callq *0x20(%r12)
movq 0xb0(%rbx), %rsi
leaq 0x50(%rax), %rdi
callq 0xca9a0
testb %al, %al
je 0x25d70
cmpq $0x0, 0x10(%rbx)
je 0x25cfe
xorl %r12d, %r12d
leaq 0x16c839(%rip), %r14    # 0x192488
movq 0x8(%rbx), %rax
movq (%rax,%r12,8), %r15
movq (%r15), %r13
movl 0x16c828(%rip), %eax    # 0x192488
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r14,%rax,8), %rcx
movq 0x18(%r14,%rax,8), %rdx
andq %r13, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x25cb3
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x25cb3
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x25cb3
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x25cbc
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x25cdf
movabsq $0x5d91f496b6479859, %rdi # imm = 0x5D91F496B6479859
movq %r13, %rsi
callq 0xe9bc5
movq %rax, %rbp
movq %r14, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r15, %rdi
movq %rbx, %rsi
callq *0x30(%rbp)
testq %rax, %rax
jne 0x25b63
incq %r12
cmpq 0x10(%rbx), %r12
jb 0x25c4f
cmpq $0x0, 0x128(%rbx)
je 0x25e59
leaq 0x178(%rbx), %r14
xorl %r15d, %r15d
xorl %ebp, %ebp
movq 0x120(%rbx), %rax
movq (%rax,%rbp,8), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1b0d5
testq %rax, %rax
jne 0x25e3f
movq 0x140(%rbx), %rdi
movq %r12, %rsi
callq 0x25e61
testq %rax, %rax
jne 0x25e3f
movq 0x8(%r12), %rsi
movq %r14, %rdi
movq %r12, %rdx
callq 0xca6bb
incq %rbp
cmpq 0x128(%rbx), %rbp
jb 0x25d18
jmp 0x25b75
movq 0x148(%rbx), %r12
movq 0x90(%rbx), %r15
movq 0xb0(%rbx), %rbx
movq (%r14), %r13
movl 0x16c912(%rip), %eax    # 0x1926a0
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 0x25de1
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x25de1
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x25de1
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x25dea
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x25e11
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r13, %rsi
callq 0xe9bc5
movq %rax, %rbp
leaq 0x16c89a(%rip), %rdi    # 0x1926a0
movq %r13, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r14, %rdi
movq %rbx, %rsi
callq *0x48(%rbp)
leaq 0x108666(%rip), %rsi    # 0x12e487
movq %r12, %rdi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x13254
movq %rax, %r13
leaq 0x175f87(%rip), %rax    # 0x19bdd0
movq (%rax), %rdi
callq 0xd6d2c
movq %r13, %r15
jmp 0x25b75
xorl %r15d, %r15d
jmp 0x25b75