// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_che_s_push_typespec
er_t xoico_che_s_push_typespec( xoico_che_s* o, const xoico_typespec_s* typespec, xoico_che_result* result )
{
    // xoico_che.x:1121:1
    BLM_INIT_LEVEL(0);
    tp_t type = typespec->type;
    
    if( type == ((tp_t)(TYPEOF_type_object)) )
    {
        ERR_fa( "Cannot resolve 'type_object' at this point." );
    }
    else if( type == ((tp_t)(TYPEOF_type_deduce)) )
    {
        ERR_fa( "Cannot resolve 'type_deduce' at this point." );
    }
    else if( type == 0 )
    {
        ERR_fa( "Type is 0." );
    }
    
    st_s* st_type = ((st_s*)BLM_LEVEL_T_PUSH(0,st_s,st_s_create_sc(xoico_che_s_nameof(o,type ) )));
    
    if( st_type->size == 0 )
    {
        ERR_fa( "Type '#<tp_t>' has no name.", type );
    }
    
    sc_t sc_type = st_type->sc;
    if( typespec->flag_static   ) BLM_TRY(xoico_che_result_push_fa(result,"static " ))
    if( typespec->access_class == TYPEOF_const ) BLM_TRY(xoico_che_result_push_fa(result,"const " ))
    if( typespec->flag_volatile ) BLM_TRY(xoico_che_result_push_fa(result,"volatile " ))
    BLM_TRY(xoico_che_result_push_fa(result,"#<sc_t>", sc_type ))
    
    for(sz_t i = 0; i < typespec->indirection; i++ ) BLM_TRY(xoico_che_result_push_fa(result,"*" ))
    if( typespec->flag_restrict ) BLM_TRY(xoico_che_result_push_fa(result,"restrict " ))
    
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
leaq 0xfaaa9(%rip), %rax     # 0x117dd0
movq (%rax), %rsi
movq %rsp, %r15
movq %r15, %rdi
callq 0x717f5
andq $0x0, 0x10(%r15)
movq 0x8(%r14), %r15
movabsq $-0x59040ffc58933ff2, %rax # imm = 0xA6FBF003A76CC00E
cmpq %rax, %r15
je 0x1d399
testq %r15, %r15
je 0x1d37d
movabsq $0x213393bef2495d15, %rax # imm = 0x213393BEF2495D15
cmpq %rax, %r15
jne 0x1d3ba
leaq 0x905ea(%rip), %rdi     # 0xad952
leaq 0x8cf21(%rip), %rsi     # 0xaa290
leaq 0x905f6(%rip), %rcx     # 0xad96c
movl $0x1c9a, %edx           # imm = 0x1C9A
jmp 0x1d3b3
leaq 0x905ce(%rip), %rdi     # 0xad952
leaq 0x8cf05(%rip), %rsi     # 0xaa290
leaq 0x90606(%rip), %rcx     # 0xad998
movl $0x1ca2, %edx           # imm = 0x1CA2
jmp 0x1d3b3
leaq 0x905b2(%rip), %rdi     # 0xad952
leaq 0x8cee9(%rip), %rsi     # 0xaa290
leaq 0x8cef1(%rip), %rcx     # 0xaa29f
movl $0x1c9e, %edx           # imm = 0x1C9E
xorl %eax, %eax
callq 0x60186
movq %r12, %rdi
movq %r15, %rsi
callq 0x1cf9d
movq %rax, %rdi
callq 0x8ed62
movq %rsp, %rdi
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
xorl %esi, %esi
movq %rax, %rcx
callq 0x71967
movq %rax, %r12
cmpq $0x0, 0x10(%rax)
jne 0x1d412
leaq 0x9055d(%rip), %rdi     # 0xad952
leaq 0x8ce94(%rip), %rsi     # 0xaa290
leaq 0x905a0(%rip), %rcx     # 0xad9a3
movl $0x1ca9, %edx           # imm = 0x1CA9
movq %r15, %r8
xorl %eax, %eax
callq 0x60186
movq 0x8(%r12), %r15
cmpb $0x1, 0x28(%r14)
jne 0x1d438
leaq 0x8cea6(%rip), %rsi     # 0xaa2cb
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1edfd
testq %rax, %rax
jne 0x1d4d9
movabsq $0x65c9718e19e3df34, %rax # imm = 0x65C9718E19E3DF34
cmpq %rax, 0x10(%r14)
jne 0x1d45e
leaq 0x8ce84(%rip), %rsi     # 0xaa2d3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1edfd
testq %rax, %rax
jne 0x1d4d9
cmpb $0x1, 0x29(%r14)
jne 0x1d47b
leaq 0x8ce6e(%rip), %rsi     # 0xaa2da
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1edfd
testq %rax, %rax
jne 0x1d4d9
leaq 0xa5687(%rip), %rsi     # 0xc2b09
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x1edfd
testq %rax, %rax
jne 0x1d4d9
pushq $-0x1
popq %r13
leaq 0x98c63(%rip), %r15     # 0xb6102
incq %r13
cmpq 0x20(%r14), %r13
jge 0x1d4bc
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x1edfd
testq %rax, %rax
je 0x1d49f
jmp 0x1d4d9
cmpb $0x1, 0x2a(%r14)
jne 0x1d4f5
leaq 0x8ce1b(%rip), %rsi     # 0xaa2e5
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1edfd
testq %rax, %rax
je 0x1d4f5
movq %rax, %r12
movq %rsp, %rdi
callq 0x71b64
movq %r12, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
xorl %r12d, %r12d
jmp 0x1d4dc