// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movq (%rsi), %r13
cmpq %rdx, %r13
je 0x198f8
movb (%r13), %al
andb $-0x20, %al
jmp 0x198fa
movb $-0x20, %al
testb %al, %al
je 0x19959
movzbl %al, %eax
cmpl $0x20, %eax
je 0x19927
cmpl $0xe0, %eax
jne 0x19a81
cmpq %r12, %r13
je 0x1999b
leaq 0x1(%r13), %rax
movq %rax, (%r15)
movb (%r13), %al
jmp 0x1999d
movq %rsp, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x1825a
testb %al, %al
je 0x19a93
movq (%rsp), %rcx
notq %rcx
movq %rcx, (%rsp)
cvtsi2sd %rcx, %xmm0
movsd %xmm0, (%rbx)
jmp 0x19a93
movq %rsp, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x1808a
testb %al, %al
je 0x19a93
movsd (%rsp), %xmm0
unpcklps 0x2d6b2(%rip), %xmm0    # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x2d6ba(%rip), %xmm0    # 0x47040
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
jmp 0x19a93
movb $-0x1, %al
cmpb $-0x5, %al
je 0x19a1f
movzbl %al, %eax
cmpl $0xfa, %eax
je 0x199fa
cmpl $0xf9, %eax
jne 0x19a7e
movq (%r15), %rax
subq %rax, %r12
cmpq $0x2, %r12
jl 0x19a7e
leaq 0x2(%rax), %rcx
movq %rcx, (%r15)
movzbl (%rax), %ebp
movzbl 0x1(%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 0x19a3f
testl %edi, %edi
jne 0x19a54
cvtsi2sd %eax, %xmm0
movl $0xffffffe8, %edi       # imm = 0xFFFFFFE8
jmp 0x19a60
movq (%r15), %rax
subq %rax, %r12
cmpq $0x4, %r12
jl 0x19a7e
leaq 0x4(%rax), %rcx
movq %rcx, (%r15)
movl (%rax), %eax
bswapl %eax
movd %eax, %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, (%rbx)
jmp 0x19a3b
movq (%r15), %rax
subq %rax, %r12
cmpq $0x8, %r12
jl 0x19a7e
leaq 0x8(%rax), %rcx
movq %rcx, (%r15)
movq (%rax), %rax
bswapq %rax
movq %rax, (%rbx)
movb $0x1, %al
jmp 0x19a93
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
leaq 0x2d633(%rip), %rax     # 0x47080
movsd (%rax,%rcx,8), %xmm0
jmp 0x19a65
orl $0x400, %eax            # imm = 0x400
addl $-0x19, %edi
cvtsi2sd %eax, %xmm0
callq 0x4340
testb %bpl, %bpl
jns 0x19a72
xorpd 0x2d5de(%rip), %xmm0    # 0x47050
movsd %xmm0, (%rbx)
movb $0x1, %al
cmpq $0x1, %r12
jg 0x19a93
movq %r13, (%r15)
callq 0x17f7e
movl $0x5, (%r14)
movq %rax, 0x8(%r14)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq