// File: /workspace/github_c_makefile_star2_O3/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 0x169891(%rip), %rax    # 0x19bdd0
movq (%rax), %rsi
movq %rsp, %r15
movq %r15, %rdi
callq 0xd6675
movq $0x0, 0x10(%r15)
movq 0x8(%r14), %r15
movabsq $-0x59040ffc58933ff2, %rax # imm = 0xA6FBF003A76CC00E
cmpq %rax, %r15
je 0x325b4
testq %r15, %r15
je 0x32598
movabsq $0x213393bef2495d15, %rax # imm = 0x213393BEF2495D15
cmpq %rax, %r15
jne 0x325d5
leaq 0xfe3cf(%rip), %rdi     # 0x130952
leaq 0xfad06(%rip), %rsi     # 0x12d290
leaq 0xfe3db(%rip), %rcx     # 0x13096c
movl $0x1c9a, %edx           # imm = 0x1C9A
jmp 0x325ce
leaq 0xfe3b3(%rip), %rdi     # 0x130952
leaq 0xfacea(%rip), %rsi     # 0x12d290
leaq 0xfe3eb(%rip), %rcx     # 0x130998
movl $0x1ca2, %edx           # imm = 0x1CA2
jmp 0x325ce
leaq 0xfe397(%rip), %rdi     # 0x130952
leaq 0xfacce(%rip), %rsi     # 0x12d290
leaq 0xfacd6(%rip), %rcx     # 0x12d29f
movl $0x1c9e, %edx           # imm = 0x1C9E
xorl %eax, %eax
callq 0xbe6f9
movq %r12, %rdi
movq %r15, %rsi
callq 0x31f9d
movq %rax, %rdi
callq 0x109f0e
movq %rsp, %rdi
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
xorl %esi, %esi
movq %rax, %rcx
callq 0xd68a8
movq %rax, %r12
cmpq $0x0, 0x10(%rax)
jne 0x3262d
leaq 0xfe342(%rip), %rdi     # 0x130952
leaq 0xfac79(%rip), %rsi     # 0x12d290
leaq 0xfe385(%rip), %rcx     # 0x1309a3
movl $0x1ca9, %edx           # imm = 0x1CA9
movq %r15, %r8
xorl %eax, %eax
callq 0xbe6f9
movq 0x8(%r12), %r15
cmpb $0x1, 0x28(%r14)
jne 0x3264f
leaq 0xfac8b(%rip), %rsi     # 0x12d2cb
movq %rbx, %rdi
xorl %eax, %eax
callq 0x38f32
testq %rax, %rax
jne 0x326ab
movabsq $0x65c9718e19e3df34, %rax # imm = 0x65C9718E19E3DF34
cmpq %rax, 0x10(%r14)
jne 0x32675
leaq 0xfac6d(%rip), %rsi     # 0x12d2d3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x38f32
testq %rax, %rax
jne 0x326ab
cmpb $0x1, 0x29(%r14)
jne 0x32692
leaq 0xfac57(%rip), %rsi     # 0x12d2da
movq %rbx, %rdi
xorl %eax, %eax
callq 0x38f32
testq %rax, %rax
jne 0x326ab
leaq 0x1125dc(%rip), %rsi    # 0x144c75
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x38f32
testq %rax, %rax
je 0x326c7
movq %rax, %r12
movq %rsp, %rdi
callq 0xd6d2c
movq %r12, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
cmpq $0x0, 0x20(%r14)
jle 0x326f3
leaq 0x106601(%rip), %r15    # 0x138cd6
xorl %r13d, %r13d
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x38f32
testq %rax, %rax
jne 0x326ab
incq %r13
cmpq 0x20(%r14), %r13
jl 0x326d8
cmpb $0x1, 0x2a(%r14)
jne 0x32710
leaq 0xfabe4(%rip), %rsi     # 0x12d2e5
movq %rbx, %rdi
xorl %eax, %eax
callq 0x38f32
testq %rax, %rax
jne 0x326ab
xorl %r12d, %r12d
jmp 0x326ae