// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_func_s_expand_definition
er_t xoico_func_s_expand_definition( const xoico_func_s* o, const xoico_host* host, sz_t indent, x_sink* sink )
{
    // xoico_func.x:305:1
    
    if( !o->expandable ) return  0;
    xoico_compiler_s* compiler = xoico_host_a_compiler(host);
    
    const xoico_signature_s* signature = o->signature;
    ASSERT( signature );
    if( o->body && !o->body->go_inline )
    {
        x_sink_push_fa(sink,"\n" );
        x_sink_push_fa(sink,"#rn{ }", indent );
        BLM_TRY(xoico_signature_s_expand_declaration(signature,host, xoico_compiler_s_nameof(compiler,o->global_name ), indent, sink ))
        x_sink_push_fa(sink,"\n" );
        BLM_TRY(xoico_body_s_expand(o->body,host, signature, indent, sink ))
        x_sink_push_fa(sink,"\n" );
    }
    
    return  0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpb $0x1, 0x28(%rdi)
jne 0x1c074
movq %rcx, %rbx
movq %rsi, %r15
movq %rdi, %r12
movq %rdx, (%rsp)
movq (%rsi), %r13
leaq 0x183707(%rip), %rax    # 0x19f6a0
movl 0x183701(%rip), %ecx    # 0x19f6a0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r13, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x1bff7
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x1bff7
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x1bff7
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x1c134
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x1c027
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r13, %rsi
callq 0xf3f85
movq %rax, %r14
leaq 0x183684(%rip), %rdi    # 0x19f6a0
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, %rdi
callq *0x20(%r14)
movq %rax, %r14
movq 0x40(%r12), %rbp
testq %rbp, %rbp
jne 0x1c064
leaq 0x11c605(%rip), %rdi    # 0x138647
leaq 0x122586(%rip), %rsi    # 0x13e5cf
leaq 0x11c779(%rip), %rdx    # 0x1387c9
leaq 0x11c239(%rip), %rcx    # 0x138290
movl $0x79f, %r8d            # imm = 0x79F
xorl %eax, %eax
callq 0xc8053
movq 0x38(%r12), %rax
testq %rax, %rax
je 0x1c074
cmpb $0x0, 0x20(%rax)
je 0x1c089
xorl %r13d, %r13d
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x13765e(%rip), %rsi    # 0x1536ee
xorl %r13d, %r13d
movq %rbx, %rdi
xorl %eax, %eax
callq 0xee2a
leaq 0x11c6d3(%rip), %rsi    # 0x138777
movq %rbx, %rdi
movq (%rsp), %rdx
xorl %eax, %eax
callq 0xee2a
movq 0x10(%r12), %rsi
movq %r14, %rdi
callq 0xe39f
movq %rbp, %rdi
movq %r15, %rsi
movq %rax, %rdx
movq %rbx, %r8
callq 0x15d34
movq %rbx, %rdi
leaq 0x137614(%rip), %rsi    # 0x1536ee
xorl %eax, %eax
callq 0xee2a
movq 0x38(%r12), %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq (%rsp), %rcx
movq %rbx, %r8
callq 0x196c0
movq %rax, %r14
testq %rax, %rax
je 0x1c112
leaq 0x18ccc9(%rip), %rax    # 0x1a8dd0
movq (%rax), %rdi
callq 0xe0b30
movq %r14, %r13
testq %r14, %r14
jne 0x1c077
leaq 0x1375cc(%rip), %rsi    # 0x1536ee
xorl %r13d, %r13d
movq %rbx, %rdi
xorl %eax, %eax
callq 0xee2a
jmp 0x1c077
xorl %r14d, %r14d
jmp 0x1bffb