// File: /workspace/github_c_makefile_star2_O3/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 0x188de0(%rip), %rax    # 0x19bdd0
movq (%rax), %rsi
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0xd6675
movq $0x0, 0x10(%r12)
movq (%r15), %r12
leaq 0x17f68d(%rip), %rax    # 0x1926a0
movl 0x17f687(%rip), %ecx    # 0x1926a0
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 0x1306d
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x1306d
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x1306d
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x13076
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x1309d
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r12, %rsi
callq 0xe9bc5
movq %rax, %r13
leaq 0x17f60e(%rip), %rdi    # 0x1926a0
movq %r12, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r15, %rdi
callq *0x20(%r13)
movq %rax, %r12
leaq 0x10(%rbx), %r13
movq %r14, %rdi
callq 0xbe7e4
movq %r13, %rdi
movq %rax, %rsi
callq 0x242ed
movq (%r14), %r13
leaq 0x189c00(%rip), %rax    # 0x19ccc8
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r13, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x1311e
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x1311e
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x1311e
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x13127
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x1314e
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r13, %rsi
callq 0xe9bc5
movq %rax, %rbp
leaq 0x189b85(%rip), %rdi    # 0x19ccc8
movq %r13, %rsi
movq %rax, %rdx
callq 0x115fac
movq %rbp, %rdi
movq %r14, %rsi
callq 0xffe72
movq %rax, 0x18(%rbx)
leaq 0x20(%rbx), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x10262
testq %rax, %rax
jne 0x13196
leaq 0x8(%rbx), %rdi
movq 0x28(%rbx), %rax
movabsq $-0x59040ffc58933ff2, %rcx # imm = 0xA6FBF003A76CC00E
cmpq %rcx, %rax
jne 0x131b5
leaq 0x11a1d2(%rip), %rsi    # 0x12d361
xorl %eax, %eax
callq 0x13254
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0xd6d2c
movq %r15, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x0, 0x4f(%rbx)
je 0x131c0
xorl %r15d, %r15d
jmp 0x13199
movabsq $0x3173c900e37ae1df, %rcx # imm = 0x3173C900E37AE1DF
cmpq %rcx, %rax
jne 0x131d6
cmpq $0x0, 0x40(%rbx)
je 0x13232
xorl %eax, %eax
callq 0x109c82
leaq 0x8(%rsp), %rdi
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
xorl %esi, %esi
movq %rax, %rcx
callq 0xd68a8
movq %rax, %r13
leaq 0x11b6ab(%rip), %rsi    # 0x12e8ab
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xda80
testq %rax, %rax
jne 0x13196
cmpq $0x0, 0x10(%r13)
je 0x1323e
movq 0x8(%r13), %rsi
addq $0x140, %r12            # imm = 0x140
movq %r12, %rdi
callq 0xd3d8e
movq %rax, 0x50(%rbx)
jmp 0x131bb
leaq 0x11a15a(%rip), %rsi    # 0x12d393
jmp 0x1318f
leaq 0x11a168(%rip), %rsi    # 0x12d3ad
movq %r14, %rdi
xorl %eax, %eax
callq 0xde10
jmp 0x13196