// File: /workspace/github_c_makefile_star2_O0/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_stamp_s_expand_definition
er_t xoico_stamp_s_expand_definition( const xoico_stamp_s* o, const xoico_host* host, sz_t indent, x_sink* sink )
{
    // xoico_stamp.x:894:1
    BLM_INIT_LEVEL(0);
    st_s* embedded_string = ((st_s*)BLM_LEVEL_T_PUSH(0,st_s,xoico_stamp_create_embedded_string(o->self_source )));
    
    // 4095 is the C99-limit for string literals
    if( embedded_string->size > 4095 )
    {
        BLM_RETURNV(er_t, x_source_point_s_parse_error_fa(&(o->source_point),"Reflection embedding failed. (Stamp is too large)\n"
            "The embedded code would require a string literal larger than 4095 characters.\n"
            "This exceeds the limit defined in C99.\n"
        ))
    }
    
    sz_t idx = st_s_find_char(embedded_string,0, -1, '=' );
    sc_t self_def = "";
    if( idx < embedded_string->size )
    {
        self_def = embedded_string->sc + idx + 1;
    }
    
    x_sink_push_fa(sink,"\n" );
    x_sink_push_fa(sink,"#rn{ }BCORE_DEFINE_OBJECT_INST_P( #<sc_t> )\n", indent, o->st_name.sc );
    
    st_s* multiline_string = ((st_s*)BLM_LEVEL_T_PUSH(0,st_s,xoico_stamp_create_structured_multiline_string(self_def, indent )));
    x_sink_push_fa(sink,"#<sc_t>;\n", multiline_string->sc );
    
    {const xoico_funcs_s* __a=&(o->funcs );if(__a)for(sz_t __i=0;__i<__a->size;__i++){xoico_func_s* func=__a->data[__i]; BLM_TRY(xoico_func_s_expand_definition(func,((const xoico_host*)(o)), indent, sink ))
    
    }}BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
leaq 0x19716e(%rip), %rax    # 0x1b2330
movq (%rax), %rax
movq %rax, -0x30(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0xbfe80
movq -0x68(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x30(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rdi
callq 0x1b440
movq -0xc8(%rbp), %rdi
movq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
callq 0xc01a0
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
cmpq $0xfff, 0x10(%rax)      # imm = 0xFFF
jbe 0x1b26c
movq -0x10(%rbp), %rdi
addq $0xd0, %rdi
leaq 0x11a195(%rip), %rsi    # 0x1353e0
movb $0x0, %al
callq 0x7d20
movq %rax, -0x78(%rbp)
movq -0x68(%rbp), %rdi
callq 0xc0720
movq -0x78(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1b42c
movq -0x70(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movq $-0x1, %rdx
movl $0x3d, %ecx
callq 0x100390
movq %rax, -0x80(%rbp)
leaq 0x137792(%rip), %rax    # 0x152a22
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rax
movq -0x70(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x1b2bc
movq -0x70(%rbp), %rax
movq 0x8(%rax), %rax
addq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
movq -0x28(%rbp), %rdi
leaq 0x13775a(%rip), %rsi    # 0x152a21
movb $0x0, %al
callq 0x56e0
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
leaq 0x11a1a3(%rip), %rsi    # 0x135488
movb $0x0, %al
callq 0x56e0
movq -0x30(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x88(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x1b7d0
movq -0xd0(%rbp), %rdi
movq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
callq 0xc01a0
movq %rax, -0x90(%rbp)
movq -0x28(%rbp), %rdi
movq -0x90(%rbp), %rax
movq 0x8(%rax), %rdx
leaq 0x119bf8(%rip), %rsi    # 0x134f39
movb $0x0, %al
callq 0x56e0
movq -0x10(%rbp), %rax
addq $0x58, %rax
movq %rax, -0x98(%rbp)
cmpq $0x0, -0x98(%rbp)
je 0x1b40d
movq $0x0, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq -0x98(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x1b40b
movq -0x98(%rbp), %rax
movq 0x8(%rax), %rax
movq -0xa0(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0xcb20
movq %rax, -0xb0(%rbp)
cmpq $0x0, -0xb0(%rbp)
je 0x1b3f2
movq -0xb0(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x68(%rbp), %rdi
callq 0xc0720
movq -0xb8(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1b42c
jmp 0x1b3f4
movq -0xa0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa0(%rbp)
jmp 0x1b370
jmp 0x1b40d
movq $0x0, -0xc0(%rbp)
movq -0x68(%rbp), %rdi
callq 0xc0720
movq -0xc0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xd0, %rsp
popq %rbp
retq
nopl (%rax)