// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_arg_s_parse
BCORE_DEFINE_OBJECT_INST_P_NASC_END( xoico_arg_s )

er_t xoico_arg_s_parse( xoico_arg_s* o, const xoico_host* host, x_source* source )
{
    // xoico_arg.x:33:1
    BLM_INIT_LEVEL(0);
    xoico_compiler_s* compiler = xoico_host_a_compiler(host);
    x_source_point_s_setup_from_source(&(o->source_point),source );
    BLM_TRY(xoico_typespec_s_parse(&(o->typespec),host, source ))
    
    if( o->typespec.type == ((tp_t)(TYPEOF_type_deduce)) )
    {
        BLM_RETURNV(er_t, x_source_point_s_parse_error_fa(&(o->source_point),"'$' (type_deduce) can not be used in an argument." ))
    }
    
    if( o->typespec.flag_variadic ) BLM_RETURNV(er_t, 0)
    
    if( o->typespec.type == ((tp_t)(TYPEOF_void)) && o->typespec.indirection == 0 )
    {
        BLM_RETURNV(er_t, x_source_point_s_parse_error_fa(&(o->source_point),"'void' is misplaced here." ))
    }
    
    st_s* s = ((st_s*)BLM_LEVEL_T_PUSH(0,st_s,st_s_create()));
    BLM_TRY(x_source_parse_fa(source,"#name ", s ))
    if( s->size == 0 )
    {
        BLM_RETURNV(er_t, x_source_parse_error_fa(source,"Argument: Name expected." ))
    }
    o->name = xoico_compiler_s_entypeof(compiler,s->sc );
    
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x195a22(%rip), %rax    # 0x1a8dd0
movq (%rax), %rsi
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0xe0431
movq $0x0, 0x10(%r12)
movq (%r15), %r12
leaq 0x18c2cf(%rip), %rax    # 0x19f6a0
movl 0x18c2c9(%rip), %ecx    # 0x19f6a0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r12, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0x1342f
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x1342f
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x1342f
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x13567
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x1345f
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r12, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0x18c24c(%rip), %rdi    # 0x19f6a0
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, %rdi
callq *0x20(%r13)
movq %rax, %r12
leaq 0x8(%rbx), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0xe9fb
leaq 0x20(%rbx), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x10314
movq %rax, %r15
testq %rax, %rax
jne 0x134c1
movq 0x28(%rbx), %rax
movabsq $-0x59040ffc58933ff2, %rcx # imm = 0xA6FBF003A76CC00E
cmpq %rcx, %rax
jne 0x134b8
leaq 0x124eb8(%rip), %rsi    # 0x138361
movq %r13, %rdi
xorl %eax, %eax
callq 0x13591
movq %rax, %r15
jmp 0x134c1
cmpb $0x0, 0x4f(%rbx)
je 0x134dd
xorl %r15d, %r15d
leaq 0x8(%rsp), %rdi
callq 0xe0b30
movq %r15, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movabsq $0x3173c900e37ae1df, %rcx # imm = 0x3173C900E37AE1DF
cmpq %rcx, %rax
jne 0x134f3
cmpq $0x0, 0x40(%rbx)
je 0x1356f
xorl %eax, %eax
callq 0x114bbb
leaq 0x8(%rsp), %rdi
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
xorl %esi, %esi
movq %rax, %rcx
callq 0xe0676
movq %rax, %r13
leaq 0x12638e(%rip), %rsi    # 0x1398ab
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xda10
movq %rax, %rbp
testq %rax, %rax
je 0x1353f
leaq 0x8(%rsp), %rdi
callq 0xe0b30
movq %rbp, %r15
testq %rbp, %rbp
jne 0x134cb
cmpq $0x0, 0x10(%r13)
je 0x1357b
movq 0x8(%r13), %rsi
addq $0x140, %r12            # imm = 0x140
movq %r12, %rdi
callq 0xddb52
movq %rax, 0x50(%rbx)
jmp 0x134be
xorl %r13d, %r13d
jmp 0x13433
leaq 0x124e1d(%rip), %rsi    # 0x138393
jmp 0x134a9
leaq 0x124e2b(%rip), %rsi    # 0x1383ad
movq %r14, %rdi
xorl %eax, %eax
callq 0xddb2
jmp 0x134b3