// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_stamp_s_parse_extend
er_t xoico_stamp_s_parse_extend( xoico_stamp_s* o, x_source* source )
{
    // xoico_stamp.x:443:1
    BLM_INIT_LEVEL(0);
    st_s* buf = ((st_s*)BLM_LEVEL_T_PUSH(0,st_s,st_s_create()));
    bcore_self_s* self = ((bcore_self_s*)BLM_LEVEL_T_PUSH(0,bcore_self_s,bcore_self_s_create()));
    self->type = o->tp_name;
    self->trait = o->trait_name;
    
    if( x_source_parse_bl(source," #?'{'" ) )
    {
        while( !x_source_eos(source) && !x_source_parse_bl(source," #?'}'" ) )
        {
            if( x_source_parse_bl(source," #?w'func'" ) )
            {
                BLM_TRY(xoico_stamp_s_parse_func(o,source ))
            }
            else if( x_source_parse_bl(source," #?w'wrap'" ) )
            {
                BLM_TRY(xoico_stamp_s_parse_wrap(o,source ))
            }
            else
            {BLM_INIT_LEVEL(3);
                bl_t exit = false;
    
                st_s_clear(buf);
                bl_t arg_of_initializer = false;
    
                while( !exit && !x_source_eos(source) )
                {
                    u0_t c =  x_source_get_u0(source);
                    switch( c )
                    {
                        case ':':
                        {BLM_INIT_LEVEL(7);
                            st_s* name = ((st_s*)BLM_LEVEL_T_PUSH(7,st_s,st_s_create()));
                            BLM_TRY(xoico_group_s_parse_name_recursive(o->group,source, name ))
                            st_s_push_st(buf,name );
                        BLM_DOWN();}
                        break;
    
                        case '$':
                        {
                            arg_of_initializer = true;
                        }
                        break;
    
                        case '@':
                        {
                            st_s_push_st(buf,&(o->st_name ));
                        }
                        break;
    
                        case ';':
                        {
                            st_s_push_char(buf,c );
                            exit = true;
                        }
                        break;
    
                        case '"': // string literal
                        {
                            st_s_push_char(buf,c );
                            while( !x_source_eos(source) && ((c = x_source_get_char(source)) != '"') )
                            {
                                st_s_push_char(buf,c );
                                if( c == '\\' ) st_s_push_char(buf,x_source_get_char(source) );
                                if( c == '\n' ) BLM_RETURNV(er_t, x_source_parse_error_fa(source,"Newline in string literal." ))
                            }
                            if( x_source_eos(source) ) BLM_RETURNV(er_t, x_source_parse_error_fa(source,"End of file in string literal." ))
                            st_s_push_char(buf,c );
                        }
                        break;
    
                        default:
                        {
                            st_s_push_char(buf,c );
                        }
                        break;
                    }
                }
    
                if( arg_of_initializer ) o->has_compact_initializer = true;
    
                xoico_stamp_self_item_s* self_item = ((xoico_stamp_self_item_s*)BLM_LEVEL_T_PUSH(3,xoico_stamp_self_item_s,xoico_stamp_self_item_s_create()));
                self_item->arg_of_initializer = arg_of_initializer;
                st_s_copy(&(self_item->st),buf );
                x_source_point_s_setup_from_source(&(self_item->source_point),source );
                x_array_push_d(((x_array*)(BCORE_PASS_CREATE(xoico_stamp_arr_self_item_s,o->arr_self_item))),((x_inst*)(((xoico_stamp_self_item_s*)bcore_fork(self_item)) )));
            BLM_DOWN();}
        }
    }
    else
    {
        if( x_source_parse_bl(source," #?w'func'" ) )
        {
            BLM_TRY(xoico_stamp_s_parse_func(o,source ))
        }
        else  // a non-block must close with semicolon
        {
            BLM_TRY(x_source_parse_fa(source," ;" ))
        }
    }
    
    BLM_TRY(x_source_parse_fa(source," #-?';' " )) // closing semicolon is optional
    
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movabsq $-0x503db0e6e1c2e704, %r13 # imm = 0xAFC24F191E3D18FC
leaq 0x1002ff(%rip), %rax    # 0x117dd0
movq (%rax), %rsi
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x717f5
andq $0x0, 0x10(%r15)
xorl %eax, %eax
callq 0x8eb65
movq %r15, %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %rax, %rcx
callq 0x71967
movq %rax, %r12
xorl %eax, %eax
callq 0x63846
movabsq $-0x4b706df6ad0a9f1, %rdx # imm = 0xFB48F920952F560F
movq %r15, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0x71967
movups 0x28(%r14), %xmm0
movups %xmm0, 0x8(%rax)
leaq 0x92ac8(%rip), %rsi     # 0xaa5f6
movq %rbx, %rdi
callq 0xe5ff
testb %al, %al
je 0x17dd6
leaq 0x8(%r14), %rax
movq %rax, 0x20(%rsp)
leaq 0x9348b(%rip), %rbp     # 0xaafd9
movq %rbx, %rdi
callq 0xe626
testb %al, %al
jne 0x17e27
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xe5ff
testb %al, %al
jne 0x17e27
movq %rbx, %rdi
leaq 0x93e25(%rip), %rsi     # 0xab9a0
callq 0xe5ff
testb %al, %al
je 0x17b91
movq %r14, %rdi
movq %rbx, %rsi
callq 0x160ac
jmp 0x17baf
movq %rbx, %rdi
leaq 0x93e10(%rip), %rsi     # 0xab9ab
callq 0xe5ff
testb %al, %al
je 0x17bb9
movq %r14, %rdi
movq %rbx, %rsi
callq 0x17a1f
testq %rax, %rax
je 0x17b4e
jmp 0x17e38
leaq 0x88(%rsp), %rdi
movq %rdi, 0x8(%rsp)
leaq 0x28(%rsp), %rsi
callq 0x717f5
movq 0x8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq $0x3, 0x10(%rax)
movq %r12, %rdi
callq 0x8f0c3
movl $0x0, 0x4(%rsp)
movq %rbx, %rdi
callq 0xe626
testb %al, %al
jne 0x17d51
movq %rbx, %rdi
callq 0x104d1
cmpb $0x22, %al
je 0x17cc6
movzbl %al, %ecx
cmpl $0x3a, %ecx
je 0x17c3d
cmpl $0x40, %ecx
je 0x17cb4
cmpl $0x24, %ecx
je 0x17d3b
cmpl $0x3b, %ecx
je 0x17d46
movsbl %al, %esi
jmp 0x17d2e
movq 0x8(%rsp), %rsi
leaq 0x58(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x717f5
movq 0x10(%rsp), %r15
movq $0x7, 0x10(%r15)
xorl %eax, %eax
callq 0x8eb65
movq %r15, %rdi
pushq $0x7
popq %rsi
movq %r13, %rbp
movq %r13, %rdx
movq %rax, %rcx
callq 0x71967
movq %rax, %r13
movq 0xc8(%r14), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x13c0c
testq %rax, %rax
jne 0x17e5a
movq %r12, %rdi
movq %r13, %rsi
callq 0x8f23a
leaq 0x10(%rsp), %rdi
callq 0x71b48
movq %rbp, %r13
jmp 0x17bf2
movq %r12, %rdi
movq 0x20(%rsp), %rsi
callq 0x8f23a
jmp 0x17bf2
movl %eax, %r15d
movsbl %al, %esi
movq %r12, %rdi
callq 0x8f0ee
movq %rbx, %rdi
callq 0xe626
testb %al, %al
jne 0x17d1a
movq %rbx, %rdi
callq 0x104a2
cmpb $0x22, %al
je 0x17d17
movl %eax, %r15d
movsbl %al, %esi
movq %r12, %rdi
callq 0x8f0ee
cmpb $0xa, %r15b
je 0x17df6
movzbl %r15b, %eax
cmpl $0x5c, %eax
jne 0x17cd4
movq %rbx, %rdi
callq 0x104a2
jmp 0x17cc9
movb $0x22, %r15b
movq %rbx, %rdi
callq 0xe626
testb %al, %al
jne 0x17e64
movsbl %r15b, %esi
movq %r12, %rdi
callq 0x8f0ee
jmp 0x17bf2
movb $0x1, %al
movl %eax, 0x4(%rsp)
jmp 0x17bf2
movq %r12, %rdi
pushq $0x3b
popq %rsi
callq 0x8f0ee
testb $0x1, 0x4(%rsp)
je 0x17d5d
movb $0x1, 0x39(%r14)
callq 0x19445
movq 0x18(%rsp), %rdi
pushq $0x3
popq %rsi
movabsq $-0x4a7225c98ee69178, %rdx # imm = 0xB58DDA3671196E88
movq %rax, %rcx
callq 0x71967
movq %rax, %r15
movl 0x4(%rsp), %eax
movb %al, 0x40(%r15)
leaq 0x20(%r15), %rdi
movq %r12, %rsi
callq 0x8e4fd
leaq 0x8(%r15), %rdi
movq %rbx, %rsi
callq 0xdc7d
movq 0x40(%r14), %rbp
testq %rbp, %rbp
jne 0x17db4
callq 0x194bf
movq %rax, %rbp
movq %rax, 0x40(%r14)
movq %r15, %rdi
callq 0x6026d
movq %rbp, %rdi
movq %rax, %rsi
callq 0xf6dd
leaq 0x8(%rsp), %rdi
callq 0x71b48
jmp 0x17b47
leaq 0x93bc3(%rip), %rsi     # 0xab9a0
movq %rbx, %rdi
callq 0xe5ff
testb %al, %al
je 0x17e11
movq %r14, %rdi
movq %rbx, %rsi
callq 0x160ac
jmp 0x17e22
leaq 0x92745(%rip), %rsi     # 0xaa542
movq %rbx, %rdi
xorl %eax, %eax
callq 0xd7c4
movq %rax, %r15
movq 0x8(%rsp), %rdi
jmp 0x17e40
leaq 0x96aaf(%rip), %rsi     # 0xae8c7
movq %rbx, %rdi
xorl %eax, %eax
callq 0xd600
testq %rax, %rax
jne 0x17e38
leaq 0x928ea(%rip), %rsi     # 0xaa718
movq %rbx, %rdi
xorl %eax, %eax
callq 0xd600
movq %rax, %r15
leaq 0x28(%rsp), %rdi
callq 0x71b64
movq %r15, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq 0x10(%rsp), %rdi
jmp 0x17e40
leaq 0x93b4b(%rip), %rsi     # 0xab9b6
jmp 0x17dfd