// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_embedded_data_s_expand_definition
er_t xoico_embedded_data_s_expand_definition( const xoico_embedded_data_s* o, const xoico_host* host, sz_t indent, x_sink* sink )
{
    // xoico_embedded_data.x:83:5
    
    if( o->embed_method == TYPEOF_as_string || o->embed_method == TYPEOF_as_string_without_comments )
    {
        x_sink_push_fa(sink,"#rn{ }st_s* #<sc_t>( void )\n", indent, xoico_host_a_nameof(host,o->function_name ) );
        x_sink_push_fa(sink,"#rn{ }{\n"                            , indent );
    
        x_sink_push_fa(sink,"#rn{ }    sc_t sc[] =\n", indent );
        x_sink_push_fa(sink,"#rn{ }    {\n" , indent );
        x_sink_push_fa(sink,"#rn{ }        \"" , indent );
    
        sz_t lines = 0;
    
        for(sz_t i = 0; i < o->arr->size; i++ )
        {
            u0_t c = o->arr->data[ i ];
            switch( c )
            {
                case '\\': x_sink_push_sc(sink,"\\\\" ); break;
                case '"' : x_sink_push_sc(sink,"\\\"" ); break;
                case '\n':
                {
                    if( i + 1 < o->arr->size )
                    {
                        x_sink_push_fa(sink,"\\n\",\n" );
                        x_sink_push_fa(sink,"#rn{ }        \"" , indent );
                        lines++;
                    }
                }
                break;
    
                default: x_sink_push_char(sink,c );  break;
            }
        }
        x_sink_push_fa(sink,"\\n\"\n" );
        x_sink_push_fa(sink,"#rn{ }    };\n", indent );
        lines++;
    
        x_sink_push_fa(sink,"#rn{ }    st_s* st = st_s_create();\n", indent );
        x_sink_push_fa(sink,"#rn{ }    for( sz_t i = 0; i < #<sz_t>; i++ )\n", indent, lines );
        x_sink_push_fa(sink,"#rn{ }    {\n", indent );
        x_sink_push_fa(sink,"#rn{ }        st_s_push_sc( st, sc[ i ] );\n", indent );
        x_sink_push_fa(sink,"#rn{ }    }\n", indent );
        x_sink_push_fa(sink,"#rn{ }    return st;\n", indent );
        x_sink_push_fa(sink,"#rn{ }}\n", indent );
    }
    
    return  0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movq %rdx, (%rsp)
movq %rsi, %r12
movq %rdi, 0x8(%rsp)
movq 0x18(%rdi), %rax
movabsq $0x29f0bb6cbdaf87e3, %rcx # imm = 0x29F0BB6CBDAF87E3
cmpq %rcx, %rax
je 0x1fbf4
movabsq $-0x4513c06eae19ddf9, %rcx # imm = 0xBAEC3F9151E62207
cmpq %rcx, %rax
jne 0x2003b
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rbx
movq (%r12), %rbp
leaq 0x172a98(%rip), %rax    # 0x1926a0
movl 0x172a92(%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 0x1fc62
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0x1fc62
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0x1fc62
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0x1fc6b
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x1fc92
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %rbp, %rsi
callq 0xe9bc5
movq %rax, %r13
leaq 0x172a19(%rip), %rdi    # 0x1926a0
movq %rbp, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r12, %rdi
movq %rbx, %rsi
callq *0x48(%r13)
leaq 0x10e14f(%rip), %rsi    # 0x12ddf2
movq %r14, %rdi
movq (%rsp), %rbx
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xed3f
leaq 0x10e151(%rip), %rsi    # 0x12de0f
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xed3f
leaq 0x10e146(%rip), %rsi    # 0x12de18
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xed3f
leaq 0x10e149(%rip), %rsi    # 0x12de2f
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xed3f
leaq 0x10e142(%rip), %rsi    # 0x12de3c
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xed3f
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x10(%rcx), %rax
testq %rax, %rax
je 0x1ff7d
leaq 0x17cd8c(%rip), %rbp    # 0x19cab0
movq $0x0, 0x10(%rsp)
xorl %ebx, %ebx
movq 0x8(%rcx), %rcx
movzbl (%rcx,%rbx), %r15d
cmpl $0xa, %r15d
je 0x1fe89
cmpl $0x22, %r15d
je 0x1fded
cmpl $0x5c, %r15d
jne 0x1fec6
movq (%r14), %r13
movl (%rbp), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rbp,%rax,8), %rcx
movq 0x18(%rbp,%rax,8), %rdx
andq %r13, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x1fdaf
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x1fdaf
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x1fdaf
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x1fdb8
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x1fddb
movabsq $0x5ea8cabb93ff3b7e, %rdi # imm = 0x5EA8CABB93FF3B7E
movq %r13, %rsi
callq 0xe9bc5
movq %rax, %r12
movq %rbp, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r12, %rdi
movq %r14, %rsi
leaq 0x10e064(%rip), %rdx    # 0x12de4c
jmp 0x1fe7f
movq (%r14), %r13
movl (%rbp), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rbp,%rax,8), %rcx
movq 0x18(%rbp,%rax,8), %rdx
andq %r13, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x1fe46
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x1fe46
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x1fe46
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x1fe4f
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x1fe72
movabsq $0x5ea8cabb93ff3b7e, %rdi # imm = 0x5EA8CABB93FF3B7E
movq %r13, %rsi
callq 0xe9bc5
movq %rax, %r12
movq %rbp, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r12, %rdi
movq %r14, %rsi
leaq 0x10dfd0(%rip), %rdx    # 0x12de4f
callq 0xfe4f3
jmp 0x1ff5a
leaq 0x1(%rbx), %rcx
cmpq %rax, %rcx
jae 0x1ff5a
movq %r14, %rdi
leaq 0x10dfb2(%rip), %rsi    # 0x12de52
xorl %eax, %eax
callq 0xed3f
movq %r14, %rdi
leaq 0x10df8b(%rip), %rsi    # 0x12de3c
movq (%rsp), %rdx
xorl %eax, %eax
callq 0xed3f
incq 0x10(%rsp)
jmp 0x1ff5a
movq (%r14), %r13
movl (%rbp), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rbp,%rax,8), %rcx
movq 0x18(%rbp,%rax,8), %rdx
andq %r13, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x1ff1f
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x1ff1f
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x1ff1f
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x1ff28
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x1ff4b
movabsq $0x5ea8cabb93ff3b7e, %rdi # imm = 0x5EA8CABB93FF3B7E
movq %r13, %rsi
callq 0xe9bc5
movq %rax, %r12
movq %rbp, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x115fac
movsbl %r15b, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0xfe4cd
incq %rbx
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x10(%rcx), %rax
cmpq %rax, %rbx
jb 0x1fd2f
movq 0x10(%rsp), %r15
incq %r15
jmp 0x1ff83
movl $0x1, %r15d
leaq 0x10dece(%rip), %rsi    # 0x12de58
movq %r14, %rdi
xorl %eax, %eax
callq 0xed3f
leaq 0x10dec2(%rip), %rsi    # 0x12de5d
movq %r14, %rdi
movq (%rsp), %rbx
movq %rbx, %rdx
xorl %eax, %eax
callq 0xed3f
leaq 0x10deb8(%rip), %rsi    # 0x12de6b
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xed3f
leaq 0x10dec9(%rip), %rsi    # 0x12de90
movq %r14, %rdi
movq %rbx, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0xed3f
leaq 0x10de51(%rip), %rsi    # 0x12de2f
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xed3f
leaq 0x10decd(%rip), %rsi    # 0x12debf
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xed3f
leaq 0x10dee5(%rip), %rsi    # 0x12deeb
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xed3f
leaq 0x10dede(%rip), %rsi    # 0x12def8
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xed3f
leaq 0x10dee0(%rip), %rsi    # 0x12df0e
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xed3f
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq