// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_body_s_expand
er_t xoico_body_s_expand( const xoico_body_s* o, const xoico_host* host, const xoico_signature_s* signature, sz_t indent, x_sink* sink )
{
    // xoico_body.x:406:1
    BLM_INIT_LEVEL(0);
    const st_s* final_code = NULL;
    st_s* st_out = ((st_s*)BLM_LEVEL_T_PUSH(0,st_s,st_s_create()));
    
    xoico_cengine* cengine = xoico_host_a_cengine(host);
    ASSERT( cengine );
    
    if( o->code )
    {
        BLM_TRY(xoico_cengine_a_translate(cengine,host, o, signature, ( x_sink* )st_out ))
        final_code = st_out;
    }
    
    if( o->go_inline )
    {
        x_sink_push_fa(sink,"{#<sc_t>}", final_code->sc );
    }
    else
    {
        x_sink_push_fa(sink,"{\n#rn{ }", indent + 4 );
        for(sz_t i = 0; i < final_code->size; i++ )
        {
            char c = final_code->sc[ i ];
            x_sink_push_char(sink,c );
            if( c == '\n' ) x_sink_push_fa(sink,"#rn{ }", indent + 4 );
        }
        x_sink_push_fa(sink,"\n#rn{ }}", indent );
    }
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %rbx
movq %rcx, (%rsp)
movq %rdx, %r12
movq %rsi, %rbp
movq %rdi, %r13
leaq 0x107113(%rip), %rax    # 0x117dd0
movq (%rax), %rsi
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x717f5
andq $0x0, 0x10(%r14)
xorl %eax, %eax
callq 0x8eb65
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
movq %r14, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0x71967
movq %rax, %r15
movq %rbp, %rdi
callq 0x2d67b
movq %rbp, %rdi
callq *0x28(%rax)
movq %rax, %r14
testq %rax, %rax
jne 0x10d32
leaq 0x99937(%rip), %rdi     # 0xaa647
leaq 0x9fc3b(%rip), %rsi     # 0xb0952
leaq 0x9995c(%rip), %rdx     # 0xaa67a
leaq 0x9956b(%rip), %rcx     # 0xaa290
movl $0x66d, %r8d            # imm = 0x66D
xorl %eax, %eax
callq 0x5ffac
cmpq $0x0, 0x18(%r13)
je 0x10dad
movq %r12, 0x8(%rsp)
movq %r13, 0x10(%rsp)
movq (%r14), %r13
leaq 0x100333(%rip), %rdi    # 0x111080
movq %r13, %rsi
callq 0x2d583
movq %rax, %r12
testq %rax, %rax
jne 0x10d84
movabsq $0x42e8cf600b8ae93d, %rdi # imm = 0x42E8CF600B8AE93D
movq %r13, %rsi
callq 0x79b94
movq %rax, %r12
leaq 0x100307(%rip), %rdi    # 0x111080
movq %r13, %rsi
movq %rax, %rdx
callq 0x98d4b
movq %r14, %rdi
movq %rbp, %rsi
movq 0x10(%rsp), %r13
movq %r13, %rdx
movq 0x8(%rsp), %rcx
movq %r15, %r8
callq *0x10(%r12)
movq %rax, %r14
testq %rax, %rax
jne 0x10e3b
jmp 0x10db0
xorl %r15d, %r15d
cmpb $0x1, 0x20(%r13)
jne 0x10dca
movq 0x8(%r15), %rdx
leaq 0x998cc(%rip), %rsi     # 0xaa68e
xorl %r14d, %r14d
movq %rbx, %rdi
jmp 0x10e34
movq (%rsp), %rax
leaq 0x4(%rax), %r14
leaq 0x998bf(%rip), %rsi     # 0xaa698
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xdd43
leaq 0x9998a(%rip), %r12     # 0xaa777
xorl %r13d, %r13d
cmpq 0x10(%r15), %r13
jae 0x10e23
movq 0x8(%r15), %rax
movsbl (%rax,%r13), %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x10e57
cmpl $0xa, %ebp
jne 0x10e1e
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0xdd43
incq %r13
jmp 0x10df0
leaq 0x99877(%rip), %rsi     # 0xaa6a1
xorl %r14d, %r14d
movq %rbx, %rdi
movq (%rsp), %rdx
xorl %eax, %eax
callq 0xdd43
leaq 0x18(%rsp), %rdi
callq 0x71b64
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq