// File: /workspace/github_c_makefile_star2_O0/johsteffens[P]beth/lib/bcore/bcore_sr.c
// Function: sr_s_to_tp
tp_t sr_s_to_tp( const sr_s* o )
{
    tp_t v = 0;
    if( !o->o ) return v;
    switch( sr_s_type( o ) )
    {
        case TYPEOF_u0_t: v = *( u0_t* )o->o; break;
        case TYPEOF_u1_t: v = *( u1_t* )o->o; break;
        case TYPEOF_u2_t: v = *( u2_t* )o->o; break;
        case TYPEOF_u3_t: v = *( u3_t* )o->o; break;
        case TYPEOF_s0_t: v = *( s0_t* )o->o; break;
        case TYPEOF_s1_t: v = *( s1_t* )o->o; break;
        case TYPEOF_s2_t: v = *( s2_t* )o->o; break;
        case TYPEOF_s3_t: v = *( s3_t* )o->o; break;
        case TYPEOF_uz_t: v = *( uz_t* )o->o; break;
        case TYPEOF_sz_t: v = *( sz_t* )o->o; break;
        case TYPEOF_tp_t: v = *( tp_t* )o->o; break;
        case TYPEOF_aware_t: v = *( aware_t* )o->o; break;
        default: ERR_fa( "Cannot convert '#<sc_t>' to tp_t.", ifnameof( sr_s_type( o ) ) );
    }
    return v;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
jne 0xfd4ab
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xfd6f1
movq -0x10(%rbp), %rdi
callq 0xfb800
movq %rax, %rcx
movq %rcx, -0x20(%rbp)
movabsq $-0x73f6ae1ad309fd45, %rcx # imm = 0x8C0951E52CF602BB
subq %rcx, %rax
je 0xfd5de
jmp 0xfd4d0
movq -0x20(%rbp), %rax
movabsq $-0x6bce971ace902370, %rcx # imm = 0x943168E5316FDC90
subq %rcx, %rax
je 0xfd5f1
jmp 0xfd4e9
movq -0x20(%rbp), %rax
movabsq $-0x6119581ac7eacd63, %rcx # imm = 0x9EE6A7E53815329D
subq %rcx, %rax
je 0xfd604
jmp 0xfd502
movq -0x20(%rbp), %rax
movabsq $-0x5aa4411ac4e2880e, %rcx # imm = 0xA55BBEE53B1D77F2
subq %rcx, %rax
je 0xfd616
jmp 0xfd51b
movq -0x20(%rbp), %rax
movabsq $-0x4882601bdca6aefb, %rcx # imm = 0xB77D9FE423595105
subq %rcx, %rax
je 0xfd674
jmp 0xfd534
movq -0x20(%rbp), %rax
movabsq $-0x3f1363e6d8155aed, %rcx # imm = 0xC0EC9C1927EAA513
subq %rcx, %rax
je 0xfd684
jmp 0xfd54d
movq -0x20(%rbp), %rax
movabsq $-0x388c46b188de83fe, %rcx # imm = 0xC773B94E77217C02
subq %rcx, %rax
je 0xfd6a4
jmp 0xfd566
movq -0x20(%rbp), %rax
movabsq $0x510c2417c67dabeb, %rcx # imm = 0x510C2417C67DABEB
subq %rcx, %rax
je 0xfd651
jmp 0xfd57f
movq -0x20(%rbp), %rax
movabsq $0x585a3b17ca3de200, %rcx # imm = 0x585A3B17CA3DE200
subq %rcx, %rax
je 0xfd664
jmp 0xfd598
movq -0x20(%rbp), %rax
movabsq $0x62367a17d02b474d, %rcx # imm = 0x62367A17D02B474D
subq %rcx, %rax
je 0xfd629
jmp 0xfd5ad
movq -0x20(%rbp), %rax
movabsq $0x69849117d3eb7d62, %rcx # imm = 0x69849117D3EB7D62
subq %rcx, %rax
je 0xfd63d
jmp 0xfd5c2
movq -0x20(%rbp), %rax
movabsq $0x6d07f9ef5b68e8a2, %rcx # imm = 0x6D07F9EF5B68E8A2
subq %rcx, %rax
je 0xfd694
jmp 0xfd6b4
movq -0x10(%rbp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
movq %rax, -0x18(%rbp)
jmp 0xfd6e9
movq -0x10(%rbp), %rax
movq (%rax), %rax
movzwl (%rax), %eax
movq %rax, -0x18(%rbp)
jmp 0xfd6e9
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movq %rax, -0x18(%rbp)
jmp 0xfd6e9
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0xfd6e9
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbq (%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0xfd6e9
movq -0x10(%rbp), %rax
movq (%rax), %rax
movswq (%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0xfd6e9
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq (%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0xfd6e9
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0xfd6e9
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0xfd6e9
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0xfd6e9
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0xfd6e9
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0xfd6e9
movq -0x10(%rbp), %rdi
callq 0xfb800
movq %rax, %rdi
callq 0xfca60
movq %rax, %r8
leaq 0x58ced(%rip), %rdi     # 0x1563bc
leaq 0x58c32(%rip), %rsi     # 0x156308
movl $0x159, %edx            # imm = 0x159
leaq 0x58ce5(%rip), %rcx     # 0x1563c7
movb $0x0, %al
callq 0x9d0f0
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)