// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_stamp_create_structured_multiline_string
st_s* xoico_stamp_create_structured_multiline_string( const sc_t s, sz_t indent )
{
    // xoico_stamp.x:227:1
    
    st_s* out = st_s_create();
    sz_t ind = indent;
    bl_t newline = true;
    for(sz_t i = 0; s[ i ] != 0; i++ )
    {
        char c = s[ i ];
        if( c == ';' )
        {
            if( newline ) st_s_push_fa(out,"#rn{ }\"", ind );
            st_s_push_char(out,c );
            st_s_push_fa(out,"\"\n" );
            newline = true;
        }
        else if( c == '{' )
        {
            if( newline )
            {
                st_s_push_fa(out,"#rn{ }\"{\"", ind );
            }
            else
            {
                st_s_push_fa(out,"\"\n#rn{ }\"{\"", ind );
            }
            if( s[ i + 1 ] != 0 ) st_s_push_char(out,'\n' );
            ind += 4;
            newline = true;
    
        }
        else if( c == '}' )
        {
            ind -= 4;
            if( newline )
            {
                st_s_push_fa(out,"#rn{ }\"}\"", ind );
            }
            else
            {
                st_s_push_fa(out,"\"\n#rn{ }\"}\"", ind );
            }
            if( s[ i + 1 ] != 0 ) st_s_push_char(out,'\n' );
            newline = true;
        }
        else if( c == ' ' )
        {
            if( !newline )
            {
                if( s[ i + 1 ] != ';' && s[ i + 1 ] != '{' && s[ i + 1 ] != '}' && s[ i + 1 ] != 0 )
                {
                    st_s_push_char(out,c );
                }
            }
        }
        else
        {
            if( newline )
            {
                st_s_push_fa(out,"#rn{ }\"", ind );
                newline = false;
            }
            st_s_push_char(out,c );
        }
    }
    
    if( !newline ) st_s_push_char(out,'"' );
    return  out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
xorl %eax, %eax
callq 0x109c82
movq %rax, %rbx
incq %r15
movb $0x1, %bpl
leaq 0x1039a4(%rip), %r13    # 0x12f1c5
movb -0x1(%r15), %r12b
movzbl %r12b, %eax
cmpl $0x7a, %eax
jg 0x2b87d
cmpl $0x20, %eax
je 0x2b8c8
cmpl $0x3b, %eax
jne 0x2b921
testb $0x1, %bpl
je 0x2b85a
movq %rbx, %rdi
leaq 0x103961(%rip), %rsi    # 0x12f1b1
movq %r14, %rdx
xorl %eax, %eax
callq 0x10a8a5
movq %rbx, %rdi
movl $0x3b, %esi
callq 0x10a448
movq %rbx, %rdi
leaq 0x102de5(%rip), %rsi    # 0x12e656
xorl %eax, %eax
callq 0x10a8a5
jmp 0x2b91c
cmpl $0x7b, %eax
je 0x2b8e2
cmpl $0x7d, %eax
jne 0x2b925
addq $-0x4, %r14
testb $0x1, %bpl
movq %r13, %rsi
leaq 0x10392a(%rip), %rax    # 0x12f1c7
cmovneq %rax, %rsi
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x10a8a5
movb $0x1, %bpl
cmpb $0x0, (%r15)
je 0x2b94d
movq %rbx, %rdi
movl $0xa, %esi
jmp 0x2b948
testb $0x1, %bpl
jne 0x2b94d
movzbl (%r15), %eax
cmpl $0x7a, %eax
jg 0x2b955
testl %eax, %eax
je 0x2b94d
cmpl $0x3b, %eax
je 0x2b94d
jmp 0x2b95f
testb $0x1, %bpl
leaq 0x1038cc(%rip), %rsi    # 0x12f1b9
leaq 0x1038c7(%rip), %rax    # 0x12f1bb
cmovneq %rax, %rsi
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x10a8a5
cmpb $0x0, (%r15)
je 0x2b918
movq %rbx, %rdi
movl $0xa, %esi
callq 0x10a448
addq $0x4, %r14
movb $0x1, %bpl
jmp 0x2b94d
testl %eax, %eax
je 0x2b969
testb $0x1, %bpl
je 0x2b941
xorl %ebp, %ebp
movq %rbx, %rdi
leaq 0x10387a(%rip), %rsi    # 0x12f1b1
movq %r14, %rdx
xorl %eax, %eax
callq 0x10a8a5
movsbl %r12b, %esi
movq %rbx, %rdi
callq 0x10a448
incq %r15
jmp 0x2b821
cmpl $0x7b, %eax
je 0x2b94d
cmpl $0x7d, %eax
je 0x2b94d
movq %rbx, %rdi
movl $0x20, %esi
jmp 0x2b948
testb $0x1, %bpl
jne 0x2b97c
movq %rbx, %rdi
movl $0x22, %esi
callq 0x10a448
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq