// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_sr.c
// Function: sr_s_to_f3
f3_t sr_s_to_f3( const sr_s* o )
{
    f3_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_f2_t: v = *( f2_t* )o->o; break;
        case TYPEOF_f3_t: v = *( f3_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_bl_t: v = *( bl_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 f3_t.", ifnameof( sr_s_type( o ) ) );
    }
    return v;
}

// Assembly:
movq (%rdi), %rax
xorpd %xmm0, %xmm0
testq %rax, %rax
je 0x108683
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
je 0x1084f3
movq 0x8(%rcx), %rdx
movabsq $-0x3f1363e6d8155aee, %rsi # imm = 0xC0EC9C1927EAA512
cmpq %rsi, %rdx
jle 0x108533
movabsq $0x585a3b17ca3de1ff, %rsi # imm = 0x585A3B17CA3DE1FF
cmpq %rsi, %rdx
jg 0x108577
movabsq $-0x388c46b188de83ff, %rsi # imm = 0xC773B94E77217C01
cmpq %rsi, %rdx
jg 0x108617
movabsq $-0x3f1363e6d8155aed, %rsi # imm = 0xC0EC9C1927EAA513
cmpq %rsi, %rdx
je 0x10867b
movabsq $-0x3ac242643d9c35a8, %rsi # imm = 0xC53DBD9BC263CA58
jmp 0x1085a7
xorl %edi, %edi
pushq %rax
callq 0xd6ec4
testq %rax, %rax
leaq 0x40210(%rip), %r8      # 0x148715
cmovneq %rax, %r8
leaq 0x438c7(%rip), %rdi     # 0x14bdd7
leaq 0x438cb(%rip), %rsi     # 0x14bde2
leaq 0x438cf(%rip), %rcx     # 0x14bded
movl $0xf3, %edx
xorl %eax, %eax
callq 0xbe6f9
xorpd %xmm0, %xmm0
addq $0x8, %rsp
retq
movabsq $-0x5fc2af85f419929c, %rsi # imm = 0xA03D507A0BE66D64
cmpq %rsi, %rdx
jle 0x1085b8
movabsq $-0x58737885f0577327, %rsi # imm = 0xA78C877A0FA88CD9
cmpq %rsi, %rdx
jg 0x1085fc
movabsq $-0x5fc2af85f419929b, %rsi # imm = 0xA03D507A0BE66D65
cmpq %rsi, %rdx
je 0x108684
movabsq $-0x5aa4411ac4e2880e, %rsi # imm = 0xA55BBEE53B1D77F2
jmp 0x108656
movabsq $0x69849117d3eb7d61, %rsi # imm = 0x69849117D3EB7D61
cmpq %rsi, %rdx
jg 0x10863d
movabsq $0x585a3b17ca3de200, %rsi # imm = 0x585A3B17CA3DE200
cmpq %rsi, %rdx
je 0x10867b
movabsq $0x62367a17d02b474d, %rsi # imm = 0x62367A17D02B474D
cmpq %rsi, %rdx
jne 0x1086a6
movsbl (%rax), %eax
jmp 0x10869e
movabsq $-0x73f6ae1ad309fd45, %rsi # imm = 0x8C0951E52CF602BB
cmpq %rsi, %rdx
je 0x10869b
movabsq $-0x6bce971ace902370, %rsi # imm = 0x943168E5316FDC90
cmpq %rsi, %rdx
je 0x108691
movabsq $-0x6119581ac7eacd63, %rsi # imm = 0x9EE6A7E53815329D
cmpq %rsi, %rdx
jne 0x1086a6
movl (%rax), %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
retq
movabsq $-0x58737885f0577326, %rsi # imm = 0xA78C877A0FA88CDA
cmpq %rsi, %rdx
je 0x108689
movabsq $-0x4882601bdca6aefb, %rsi # imm = 0xB77D9FE423595105
jmp 0x108656
movabsq $-0x388c46b188de83fe, %rsi # imm = 0xC773B94E77217C02
cmpq %rsi, %rdx
je 0x10865b
movabsq $0x510c2417c67dabeb, %rsi # imm = 0x510C2417C67DABEB
cmpq %rsi, %rdx
jne 0x1086a6
xorps %xmm0, %xmm0
cvtsi2sdl (%rax), %xmm0
retq
movabsq $0x69849117d3eb7d62, %rsi # imm = 0x69849117D3EB7D62
cmpq %rsi, %rdx
je 0x108696
movabsq $0x6d07f9ef5b68e8a2, %rsi # imm = 0x6D07F9EF5B68E8A2
cmpq %rsi, %rdx
jne 0x1086a6
movsd (%rax), %xmm1
unpcklps 0x2ec7a(%rip), %xmm1    # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x2ec82(%rip), %xmm1    # 0x1372f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
retq
xorps %xmm0, %xmm0
cvtsi2sdq (%rax), %xmm0
retq
movsd (%rax), %xmm0
retq
xorps %xmm0, %xmm0
cvtss2sd (%rax), %xmm0
retq
movzwl (%rax), %eax
jmp 0x10869e
movswl (%rax), %eax
jmp 0x10869e
movzbl (%rax), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
retq
movq 0x8(%rcx), %rdi
jmp 0x1084f5