// File: /workspace/github_cpp_makefile_star2_O3/oknenavin[P]cxon/test/../src/cxon/lang/cbor/fundamental.hxx
// Function: bool cxon::cbor::imp::read_floating_point_<cxon::cbor::format_traits, double, char const*, cxon::context<cxon::CBOR<cxon::cbor::format_traits>, cxon::napa::imp::var<cxon::node::recursion_guard, unsigned int>>>(double&, char const*&, char const*, cxon::context<cxon::CBOR<cxon::cbor::format_traits>, cxon::napa::imp::var<cxon::node::recursion_guard, unsigned int>>&)
inline bool read_floating_point_(T& t, II& i, II e, Cx& cx) {
                switch (bio::peek(i, e) & X::mjr) {
                    case X::svn: {
                        II const o = i;
                        switch (bio::get(i, e)) {
                            case X::fp16:
                                return  (bio ::get<2>(t, i, e)) ||
                                        (bio::rewind(i, o), cx/cbor::read_error::floating_point_invalid)
                                ;
                            case X::fp32:
                                return  (bio ::get<4>(t, i, e)) ||
                                        (bio::rewind(i, o), cx/cbor::read_error::floating_point_invalid)
                                ;
                            case X::fp64:
                                return  (bio ::get<8>(t, i, e)) ||
                                        (bio::rewind(i, o), cx/cbor::read_error::floating_point_invalid)
                                ;
                            default:
                                return  (bio::rewind(i, o), cx/cbor::read_error::floating_point_invalid);
                        }
                        break;
                    }
                    // from integral
                    case X::pint: {
                        unsigned_type_<T> u;
                        return read_unsigned_<X>(u, i, e, cx) && (t = T(u), true);
                    }
                    case X::nint: {
                        signed_type_<T> u;
                        return read_signed_<X>(u, i, e, cx) && (t = T(u), true);
                    }
                    default:
                        return cx/cbor::read_error::floating_point_invalid;
                }
            }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rcx, %r14
movq (%rsi), %rax
cmpq %rdx, %rax
je 0x18908
movq %rdi, %rbx
movzbl (%rax), %ecx
andl $0xe0, %ecx
je 0x18895
cmpl $0x20, %ecx
je 0x1886a
cmpl $0xe0, %ecx
jne 0x1890b
leaq 0x1(%rax), %rcx
movq %rcx, (%rsi)
movzbl (%rax), %edi
cmpl $0xfb, %edi
je 0x188ec
cmpl $0xfa, %edi
je 0x188cd
cmpl $0xf9, %edi
jne 0x18908
subq %rcx, %rdx
cmpq $0x2, %rdx
jl 0x18908
leaq 0x3(%rax), %rcx
movq %rcx, (%rsi)
movzbl 0x1(%rax), %ebp
movzbl 0x2(%rax), %ecx
movl %ebp, %edi
shrl $0x2, %edi
andl $0x1f, %edi
movl %ebp, %eax
andl $0x3, %eax
shll $0x8, %eax
orl %ecx, %eax
cmpl $0x1f, %edi
je 0x18926
testl %edi, %edi
jne 0x1893b
cvtsi2sd %eax, %xmm0
movl $0xffffffe8, %edi       # imm = 0xFFFFFFE8
jmp 0x18947
leaq 0x8(%rsp), %rdi
movq %r14, %rcx
callq 0x1728c
testb %al, %al
je 0x1891d
movq 0x8(%rsp), %rcx
notq %rcx
cvtsi2sd %rcx, %xmm0
movsd %xmm0, (%rbx)
jmp 0x1891d
leaq 0x8(%rsp), %rdi
movq %r14, %rcx
callq 0x170e4
testb %al, %al
je 0x1891d
movsd 0x8(%rsp), %xmm0
unpcklps 0x2b77d(%rip), %xmm0    # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x2b785(%rip), %xmm0    # 0x44040
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
jmp 0x1891d
subq %rcx, %rdx
cmpq $0x4, %rdx
jl 0x18908
leaq 0x5(%rax), %rcx
movq %rcx, (%rsi)
movl 0x1(%rax), %eax
bswapl %eax
movd %eax, %xmm0
cvtss2sd %xmm0, %xmm0
jmp 0x18959
subq %rcx, %rdx
cmpq $0x8, %rdx
jl 0x18908
leaq 0x9(%rax), %rcx
movq %rcx, (%rsi)
movq 0x1(%rax), %rax
bswapq %rax
movq %rax, (%rbx)
jmp 0x1895d
movq %rax, (%rsi)
callq 0x16fd8
movl $0x5, (%r14)
movq %rax, 0x8(%r14)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
leaq 0x2b77c(%rip), %rax     # 0x440b0
movsd (%rax,%rcx,8), %xmm0
jmp 0x1894c
orl $0x400, %eax            # imm = 0x400
addl $-0x19, %edi
cvtsi2sd %eax, %xmm0
callq 0x4340
testb %bpl, %bpl
jns 0x18959
xorpd 0x2b727(%rip), %xmm0    # 0x44080
movsd %xmm0, (%rbx)
movb $0x1, %al
jmp 0x1891d
nop