// File: /workspace/github_c_makefile_star2_O0/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_arg_s_parse
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
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
leaq 0x1aa872(%rip), %rax    # 0x1b2330
movq (%rax), %rax
movq %rax, -0x28(%rbp)
leaq -0x58(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xbfe80
movq -0x60(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x18(%rbp), %rdi
callq 0x5170
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
addq $0x8, %rdi
movq -0x20(%rbp), %rsi
callq 0x5560
movq -0x10(%rbp), %rdi
addq $0x20, %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x5f70
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x70(%rbp)
je 0x7b4a
movq -0x70(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0x78(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x7d10
movq -0x10(%rbp), %rax
movabsq $-0x59040ffc58933ff2, %rcx # imm = 0xA6FBF003A76CC00E
cmpq %rcx, 0x28(%rax)
jne 0x7b8e
movq -0x10(%rbp), %rdi
addq $0x8, %rdi
leaq 0x12bb4c(%rip), %rsi    # 0x1336b9
movb $0x0, %al
callq 0x7d20
movq %rax, -0x80(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0x80(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x7d10
movq -0x10(%rbp), %rax
testb $0x1, 0x4f(%rax)
je 0x7bbc
movq $0x0, -0x88(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0x88(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x7d10
movq -0x10(%rbp), %rax
movabsq $0x3173c900e37ae1df, %rcx # imm = 0x3173C900E37AE1DF
cmpq %rcx, 0x28(%rax)
jne 0x7c11
movq -0x10(%rbp), %rax
cmpq $0x0, 0x40(%rax)
jne 0x7c11
movq -0x10(%rbp), %rdi
addq $0x8, %rdi
leaq 0x12bb01(%rip), %rsi    # 0x1336eb
movb $0x0, %al
callq 0x7d20
movq %rax, -0x90(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0x90(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x7d10
movq -0x28(%rbp), %rax
movq %rax, -0xc0(%rbp)
movb $0x0, %al
callq 0xff2e0
movq -0xc0(%rbp), %rdi
movq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
callq 0xc01a0
movq %rax, -0x98(%rbp)
movq -0x20(%rbp), %rdi
movq -0x98(%rbp), %rdx
leaq 0x12cf22(%rip), %rsi    # 0x134b7b
movb $0x0, %al
callq 0x4a20
movq %rax, -0xa0(%rbp)
cmpq $0x0, -0xa0(%rbp)
je 0x7c95
movq -0xa0(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0xa8(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x7d10
movq -0x98(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x7cd2
movq -0x20(%rbp), %rdi
leaq 0x12ba57(%rip), %rsi    # 0x133705
movb $0x0, %al
callq 0x4c80
movq %rax, -0xb0(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0xb0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x7d10
movq -0x68(%rbp), %rdi
movq -0x98(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x5140
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x50(%rax)
movq $0x0, -0xb8(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0xb8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
nopl (%rax)