// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
leaq 0x18f512(%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), %rax
movq 0x8(%rax), %rax
movq %rax, -0x68(%rbp)
movabsq $0x213393bef2495d15, %rax # imm = 0x213393BEF2495D15
cmpq %rax, -0x68(%rbp)
jne 0x22e8d
leaq 0x113dec(%rip), %rdi    # 0x136c5d
leaq 0x110770(%rip), %rsi    # 0x1335e8
movl $0x1bf1, %edx           # imm = 0x1BF1
leaq 0x113df3(%rip), %rcx    # 0x136c77
movb $0x0, %al
callq 0x9d0f0
jmp 0x22eec
movabsq $-0x59040ffc58933ff2, %rax # imm = 0xA6FBF003A76CC00E
cmpq %rax, -0x68(%rbp)
jne 0x22ec0
leaq 0x113db9(%rip), %rdi    # 0x136c5d
leaq 0x11073d(%rip), %rsi    # 0x1335e8
movl $0x1bf5, %edx           # imm = 0x1BF5
leaq 0x110740(%rip), %rcx    # 0x1335f7
movb $0x0, %al
callq 0x9d0f0
jmp 0x22eea
cmpq $0x0, -0x68(%rbp)
jne 0x22ee8
leaq 0x113d8f(%rip), %rdi    # 0x136c5d
leaq 0x110713(%rip), %rsi    # 0x1335e8
movl $0x1bf9, %edx           # imm = 0x1BF9
leaq 0x113dc2(%rip), %rcx    # 0x136ca3
movb $0x0, %al
callq 0x9d0f0
jmp 0x22eea
jmp 0x22eec
movq -0x28(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x10(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x22840
movq %rax, %rdi
callq 0xff550
movq -0xf0(%rbp), %rdi
movq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
movabsq $-0x503db0e6e1c2e704, %rdx # imm = 0xAFC24F191E3D18FC
callq 0xc01a0
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x22f5d
movq -0x68(%rbp), %r8
leaq 0x113d1a(%rip), %rdi    # 0x136c5d
leaq 0x11069e(%rip), %rsi    # 0x1335e8
movl $0x1c00, %edx           # imm = 0x1C00
leaq 0x113d58(%rip), %rcx    # 0x136cae
movb $0x0, %al
callq 0x9d0f0
movq -0x70(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x18(%rbp), %rax
testb $0x1, 0x28(%rax)
je 0x22fb6
movq -0x20(%rbp), %rdi
leaq 0x1106a5(%rip), %rsi    # 0x133623
movb $0x0, %al
callq 0x261b0
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x80(%rbp)
je 0x22fb4
movq -0x80(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0x88(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x231a8
jmp 0x22fb6
movq -0x18(%rbp), %rax
movabsq $0x65c9718e19e3df34, %rcx # imm = 0x65C9718E19E3DF34
cmpq %rcx, 0x10(%rax)
jne 0x23016
movq -0x20(%rbp), %rdi
leaq 0x110656(%rip), %rsi    # 0x13362b
movb $0x0, %al
callq 0x261b0
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x90(%rbp)
je 0x23014
movq -0x90(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0x98(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x231a8
jmp 0x23016
movq -0x18(%rbp), %rax
testb $0x1, 0x29(%rax)
je 0x2306c
movq -0x20(%rbp), %rdi
leaq 0x110607(%rip), %rsi    # 0x133632
movb $0x0, %al
callq 0x261b0
movq %rax, -0xa0(%rbp)
cmpq $0x0, -0xa0(%rbp)
je 0x2306a
movq -0xa0(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0xa8(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x231a8
jmp 0x2306c
movq -0x20(%rbp), %rdi
movq -0x78(%rbp), %rdx
leaq 0x12beaa(%rip), %rsi    # 0x14ef25
movb $0x0, %al
callq 0x261b0
movq %rax, -0xb0(%rbp)
cmpq $0x0, -0xb0(%rbp)
je 0x230ba
movq -0xb0(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0xb8(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x231a8
movq $0x0, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq -0x18(%rbp), %rcx
cmpq 0x20(%rcx), %rax
jge 0x23136
movq -0x20(%rbp), %rdi
leaq 0x11d8e1(%rip), %rsi    # 0x1409c2
movb $0x0, %al
callq 0x261b0
movq %rax, -0xc8(%rbp)
cmpq $0x0, -0xc8(%rbp)
je 0x23120
movq -0xc8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0xd0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x231a8
jmp 0x23122
movq -0xc0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xc0(%rbp)
jmp 0x230c5
movq -0x18(%rbp), %rax
testb $0x1, 0x2a(%rax)
je 0x23189
movq -0x20(%rbp), %rdi
leaq 0x1104f2(%rip), %rsi    # 0x13363d
movb $0x0, %al
callq 0x261b0
movq %rax, -0xd8(%rbp)
cmpq $0x0, -0xd8(%rbp)
je 0x23187
movq -0xd8(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0xe0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x231a8
jmp 0x23189
movq $0x0, -0xe8(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0xe8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xf0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)