// File: /workspace/github_c_makefile_star2_O3/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 0x1b794
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r12
movq 0x38(%rdi), %rax
testq %rax, %rax
je 0x1b624
movb 0x20(%rax), %r13b
jmp 0x1b627
xorl %r13d, %r13d
movq %rdx, 0x10(%rsp)
movq 0x40(%r12), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x1b664
leaq 0x112005(%rip), %rdi    # 0x12d647
leaq 0x117f86(%rip), %rsi    # 0x1335cf
leaq 0x112159(%rip), %rdx    # 0x12d7a9
leaq 0x111c39(%rip), %rcx    # 0x12d290
movl $0x783, %r8d            # imm = 0x783
xorl %eax, %eax
callq 0xbe4ef
movq (%r14), %rbp
leaq 0x177032(%rip), %rax    # 0x1926a0
movl 0x17702c(%rip), %ecx    # 0x1926a0
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 0x1b6c8
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0x1b6c8
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0x1b6c8
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0x1b6d1
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x1b6f8
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %rbp, %rsi
callq 0xe9bc5
movq %rax, %r15
leaq 0x176fb3(%rip), %rdi    # 0x1926a0
movq %rbp, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r14, %rdi
callq *0x20(%r15)
movq %rax, %r15
testb %r13b, %r13b
je 0x1b78c
leaq 0x112062(%rip), %rsi    # 0x12d774
xorl %ebp, %ebp
movq %rbx, %rdi
movq 0x10(%rsp), %r13
movq %r13, %rdx
xorl %eax, %eax
callq 0xed3f
leaq 0x11206d(%rip), %rsi    # 0x12d79a
movq %rbx, %rdi
xorl %eax, %eax
callq 0xed3f
movq 0x10(%r12), %rsi
movq %r15, %rdi
callq 0xe3d7
movq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
movq %rbx, %r8
callq 0x1588d
movq 0x38(%r12), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r13, %rcx
movq %rbx, %r8
callq 0x1912a
testq %rax, %rax
je 0x1b796
movq %rax, %rbx
leaq 0x180651(%rip), %rax    # 0x19bdd0
movq (%rax), %rdi
callq 0xd6d2c
movq %rbx, %rbp
jmp 0x1b796
cmpb $0x0, 0x2a(%r12)
je 0x1b7a8
xorl %ebp, %ebp
movq %rbp, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x111fc5(%rip), %rsi    # 0x12d774
xorl %ebp, %ebp
movq %rbx, %rdi
movq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0xed3f
movq 0x10(%r12), %rsi
movq %r15, %rdi
callq 0xe3d7
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %rax, %rdx
movq %rbx, %r8
callq 0x1588d
leaq 0x1160e1(%rip), %rsi    # 0x1318c8
movq %rbx, %rdi
xorl %eax, %eax
callq 0xed3f
jmp 0x1b796