// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_stamp_create_structured_multiline_string_nasc
st_s* xoico_stamp_create_structured_multiline_string_nasc( const sc_t s, sz_t indent )
{
    // xoico_stamp.x:301: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_sc(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_sc(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_sc(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 0x8eb65
movq %rax, %rbx
incq %r15
movb $0x1, %r13b
leaq 0x92500(%rip), %r12     # 0xab6d2
movzbl -0x1(%r15), %ebp
cmpl $0x20, %ebp
je 0x192e1
cmpl $0x3b, %ebp
je 0x19229
cmpl $0x7b, %ebp
je 0x1929e
cmpl $0x7d, %ebp
je 0x19261
testl %ebp, %ebp
je 0x19309
testb $0x1, %r13b
je 0x19218
xorl %r13d, %r13d
movq %rbx, %rdi
leaq 0x92fa3(%rip), %rsi     # 0xac1b1
movq %r14, %rdx
xorl %eax, %eax
callq 0x8f4ef
movsbl %bpl, %esi
movq %rbx, %rdi
callq 0x8f0ee
jmp 0x192d9
testb $0x1, %r13b
je 0x19243
movq %rbx, %rdi
leaq 0x92f78(%rip), %rsi     # 0xac1b1
movq %r14, %rdx
xorl %eax, %eax
callq 0x8f4ef
movq %rbx, %rdi
pushq $0x3b
popq %rsi
callq 0x8f0ee
movq %rbx, %rdi
leaq 0x92479(%rip), %rsi     # 0xab6d1
xorl %eax, %eax
callq 0x8f4ef
jmp 0x192d6
addq $-0x4, %r14
testb $0x1, %r13b
leaq 0x92f6e(%rip), %rsi     # 0xac1de
leaq 0x92f50(%rip), %rax     # 0xac1c7
cmovneq %rax, %rsi
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x8f4ef
movb $0x1, %r13b
cmpb $0x0, (%r15)
je 0x192d9
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8f392
jmp 0x192d9
testb $0x1, %r13b
leaq 0x92f28(%rip), %rsi     # 0xac1d1
leaq 0x92f0b(%rip), %rax     # 0xac1bb
cmovneq %rax, %rsi
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x8f4ef
cmpb $0x0, (%r15)
je 0x192d2
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8f392
addq $0x4, %r14
movb $0x1, %r13b
incq %r15
jmp 0x191d2
testb $0x1, %r13b
jne 0x192d9
movzbl (%r15), %eax
testl %eax, %eax
je 0x192d9
cmpl $0x3b, %eax
je 0x192d9
cmpl $0x7b, %eax
je 0x192d9
cmpl $0x7d, %eax
je 0x192d9
movq %rbx, %rdi
pushq $0x20
popq %rsi
jmp 0x1921f
testb $0x1, %r13b
jne 0x1931e
leaq 0x91b34(%rip), %rsi     # 0xaae4a
movq %rbx, %rdi
callq 0x8f392
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq