// File: /workspace/github_c_makefile_star2_O3/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, 0x8(%rsp)
movq %rcx, %rbx
movq %rdx, (%rsp)
movq %rsi, %rbp
movq %rdi, %r13
leaq 0x182c7f(%rip), %rax    # 0x19bdd0
movq (%rax), %rsi
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0xd6675
movq $0x0, 0x10(%r14)
xorl %eax, %eax
callq 0x109c82
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
movq %r14, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xd68a8
movq %rax, %r15
movq (%rbp), %r14
leaq 0x17950b(%rip), %rax    # 0x1926a0
movl 0x179505(%rip), %ecx    # 0x1926a0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r14, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x191ef
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x191ef
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x191ef
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x191f8
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x1921f
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %r12
leaq 0x17948c(%rip), %rdi    # 0x1926a0
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
movq %rbp, %rdi
callq *0x28(%r12)
movq %rax, %r14
testq %rax, %rax
jne 0x19258
leaq 0x114411(%rip), %rdi    # 0x12d647
leaq 0x11a50e(%rip), %rsi    # 0x13374b
leaq 0x114436(%rip), %rdx    # 0x12d67a
leaq 0x114045(%rip), %rcx    # 0x12d290
movl $0x66d, %r8d            # imm = 0x66D
xorl %eax, %eax
callq 0xbe4ef
cmpq $0x0, 0x18(%r13)
movq %rbx, 0x10(%rsp)
je 0x1932a
movq %r13, %rbx
movq (%r14), %r13
leaq 0x17be0b(%rip), %rax    # 0x195080
movl 0x17be05(%rip), %ecx    # 0x195080
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 0x192cf
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x192cf
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x192cf
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x192d8
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x192ff
movabsq $0x42e8cf600b8ae93d, %rdi # imm = 0x42E8CF600B8AE93D
movq %r13, %rsi
callq 0xe9bc5
movq %rax, %r12
leaq 0x17bd8c(%rip), %rdi    # 0x195080
movq %r13, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r14, %rdi
movq %rbp, %rsi
movq %rbx, %r13
movq %rbx, %rdx
movq (%rsp), %rcx
movq %r15, %r8
callq *0x10(%r12)
movq %rax, %r14
testq %rax, %rax
movq 0x10(%rsp), %rbx
jne 0x1946a
jmp 0x1932d
xorl %r15d, %r15d
cmpb $0x1, 0x20(%r13)
jne 0x1934c
movq 0x8(%r15), %rdx
leaq 0x11434f(%rip), %rsi    # 0x12d68e
xorl %r14d, %r14d
movq 0x8(%rsp), %rdi
jmp 0x19463
leaq 0x4(%rbx), %rdx
leaq 0x114341(%rip), %rsi    # 0x12d698
movq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rdx, (%rsp)
xorl %eax, %eax
callq 0xed3f
cmpq $0x0, 0x10(%r15)
je 0x19451
leaq 0x183734(%rip), %r13    # 0x19cab0
xorl %r12d, %r12d
movq %r15, %rbx
movq 0x8(%r15), %rax
movb (%rax,%r12), %r15b
movq (%r14), %rbp
movl (%r13), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r13,%rax,8), %rcx
movq 0x18(%r13,%rax,8), %rdx
andq %rbp, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %rbp, %rdx
je 0x193e4
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0x193e4
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0x193e4
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0x193ed
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x19410
movabsq $0x5ea8cabb93ff3b7e, %rdi # imm = 0x5EA8CABB93FF3B7E
movq %rbp, %rsi
callq 0xe9bc5
movq %rax, %r14
movq %r13, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x115fac
movsbl %r15b, %ebp
movq %r14, %rdi
movq 0x8(%rsp), %r14
movq %r14, %rsi
movl %ebp, %edx
callq 0xfe4cd
cmpb $0xa, %bpl
jne 0x19441
movq %r14, %rdi
leaq 0x114341(%rip), %rsi    # 0x12d777
movq (%rsp), %rdx
xorl %eax, %eax
callq 0xed3f
incq %r12
movq %rbx, %r15
cmpq 0x10(%rbx), %r12
jb 0x1937f
leaq 0x114249(%rip), %rsi    # 0x12d6a1
movq %r14, %rdi
xorl %r14d, %r14d
movq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0xed3f
leaq 0x18(%rsp), %rdi
callq 0xd6d2c
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq