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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpb $0x1, 0x28(%rdi)
jne 0x1bf51
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
movq 0x38(%rdi), %rax
testq %rax, %rax
je 0x1bd91
movb 0x20(%rax), %r13b
jmp 0x1bd94
xorl %r13d, %r13d
movq 0x40(%r12), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x1bdcc
leaq 0x11c89d(%rip), %rdi    # 0x138647
leaq 0x12281e(%rip), %rsi    # 0x13e5cf
leaq 0x11c9f1(%rip), %rdx    # 0x1387a9
leaq 0x11c4d1(%rip), %rcx    # 0x138290
movl $0x783, %r8d            # imm = 0x783
xorl %eax, %eax
callq 0xc8053
movq %r15, 0x10(%rsp)
movq (%r14), %rbp
leaq 0x1838c5(%rip), %rax    # 0x19f6a0
movl 0x1838bf(%rip), %ecx    # 0x19f6a0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %rbp, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %rbp, %rdx
je 0x1be39
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0x1be39
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0x1be39
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0x1bf65
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x1be69
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %rbp, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0x183842(%rip), %rdi    # 0x19f6a0
movq %rbp, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r14, %rdi
callq *0x20(%r15)
movq %rax, %r15
testb %r13b, %r13b
je 0x1bf02
leaq 0x11c8f1(%rip), %rsi    # 0x138774
xorl %ebp, %ebp
movq %rbx, %rdi
movq 0x10(%rsp), %r13
movq %r13, %rdx
xorl %eax, %eax
callq 0xee2a
leaq 0x11c8fc(%rip), %rsi    # 0x13879a
movq %rbx, %rdi
xorl %eax, %eax
callq 0xee2a
movq 0x10(%r12), %rsi
movq %r15, %rdi
callq 0xe39f
movq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
movq %rbx, %r8
callq 0x15d34
movq 0x38(%r12), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r13, %rcx
movq %rbx, %r8
callq 0x196c0
movq %rax, %rbx
testq %rax, %rax
je 0x1befb
leaq 0x18cee0(%rip), %rax    # 0x1a8dd0
movq (%rax), %rdi
callq 0xe0b30
movq %rbx, %rbp
testq %rbx, %rbx
jne 0x1bf53
jmp 0x1bf51
cmpb $0x0, 0x2a(%r12)
jne 0x1bf51
leaq 0x11c863(%rip), %rsi    # 0x138774
movq %rbx, %rdi
movq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0xee2a
movq 0x10(%r12), %rsi
movq %r15, %rdi
callq 0xe39f
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %rax, %rdx
movq %rbx, %r8
callq 0x15d34
leaq 0x120981(%rip), %rsi    # 0x13c8c8
movq %rbx, %rdi
xorl %eax, %eax
callq 0xee2a
xorl %ebp, %ebp
movq %rbp, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
jmp 0x1be3d