// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_func_s_finalize
er_t xoico_func_s_finalize( xoico_func_s* o, const xoico_host* host )
{
    // xoico_func.x:220:1
    
    xoico_compiler_s* compiler = xoico_host_a_compiler(host);
    BLM_TRY(xoico_func_s_freeze_global_name(o,host ))
    o->obj_type = xoico_host_a_obj_type(host);
    
    if( !o->signature )
    {
        const xoico_signature_s* signature = xoico_compiler_s_get_signature(compiler,o->signature_global_name );
        if( !signature )
        {
            return  x_source_point_s_parse_error_fa(&(o->source_point),"Function #<sc_t>: Could not find signature #<sc_t>",
                xoico_compiler_s_nameof(compiler,o->name ),
                xoico_compiler_s_nameof(compiler,o->signature_global_name )
            );
        }
    
        o->signature = xoico_signature_s_clone(signature);
        BLM_TRY(xoico_signature_s_relent(o->signature,host, xoico_host_a_obj_type(host) ))
        if( xoico_host_defines_transient_map(host) ) BLM_TRY(xoico_signature_s_convert_transient_types(o->signature,host, xoico_host_a_transient_map(host) ))
    }
    
    if( o->body ) BLM_TRY(xoico_body_s_finalize(o->body,host ))
    
    return  0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %r15
leaq 0x183e92(%rip), %rbp    # 0x19f6a0
movl 0x183e8c(%rip), %eax    # 0x19f6a0
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 0x1b86b
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x1b86b
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x1b86b
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x1bbba
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x1b89b
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0x183e10(%rip), %rdi    # 0x19f6a0
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq %rbx, %rdi
callq *0x20(%r12)
movq %rax, %r12
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1a412
movq (%rbx), %r15
movl 0x183de6(%rip), %eax    # 0x19f6a0
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 0x1b911
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x1b911
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x1b911
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x1bbc2
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x1b941
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0x183d6a(%rip), %rdi    # 0x19f6a0
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq %rbx, %rdi
callq *0x30(%r13)
movq %rax, 0x18(%r14)
cmpq $0x0, 0x40(%r14)
jne 0x1bba9
movq 0x20(%r14), %rsi
movq %r12, %rdi
callq 0x15c23
movq %rax, %r15
testq %rax, %rax
je 0x1bb6e
movq %r15, %rdi
callq 0x149d9
movq %rax, %r12
movq %rax, 0x40(%r14)
movq (%rbx), %r13
movl 0x183d19(%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 0x1b9de
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x1b9de
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x1b9de
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x1bbca
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x1ba0e
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r13, %rsi
callq 0xf3f85
movq %rax, %rbp
leaq 0x183c9d(%rip), %rdi    # 0x19f6a0
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq %rbx, %rdi
callq *0x30(%rbp)
movq %r12, %rdi
movq %rax, %rdx
callq 0x14c06
movq (%rbx), %r12
movl 0x183c78(%rip), %eax    # 0x19f6a0
cltq
leaq (%rax,%rax,2), %rax
leaq 0x183c6b(%rip), %rbp    # 0x19f6a0
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 0x1ba86
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x1ba86
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x1ba86
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x1bbd1
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x1bab6
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r12, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0x183bf5(%rip), %rdi    # 0x19f6a0
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
cmpq $0x0, 0x40(%r13)
je 0x1bb6a
movq 0x40(%r14), %r14
movq (%rbx), %r12
movl 0x183bd2(%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 0x1bb25
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x1bb25
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x1bb25
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x1bbd9
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x1bb55
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r12, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0x183b56(%rip), %rdi    # 0x19f6a0
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
movq %rbx, %rdi
callq *0x40(%r13)
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x14a9d
xorl %eax, %eax
jmp 0x1bba4
leaq 0x48(%r14), %rbx
movq 0x8(%r14), %rsi
movq %r12, %rdi
callq 0xe39f
movq %rax, %r13
movq 0x20(%r14), %rsi
movq %r12, %rdi
callq 0xe39f
leaq 0x11cbad(%rip), %rsi    # 0x138741
movq %rbx, %rdi
movq %r13, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x13591
testq %r15, %r15
je 0x1bbab
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r12d, %r12d
jmp 0x1b86f
xorl %r13d, %r13d
jmp 0x1b915
xorl %ebp, %ebp
jmp 0x1b9e2
xorl %r13d, %r13d
jmp 0x1ba8a
xorl %r13d, %r13d
jmp 0x1bb29