// File: oknenavin[P]cxon/test/../src/cxon/lang/common/cio/numeric.hxx
// Function: cxon::charconv::imp::from_chars_result cxon::cio::num::imp::from_chars_<cxon::json::format_traits, double>(char const*, char const*, double&)
inline charconv::imp::from_chars_result from_chars_(const char* b, const char* e, T& t) noexcept {
                if (e - b >= 3) {
                    CXON_IF_CONSTEXPR (!X::allow_javascript_nans) {
                        if (b[0] == '"') {
                            auto s = b[1] == '-' ? ++b + 1 : ++b;
                            switch (s[0]) {
                                case 'i':
                                    if (e - s >= 4 && s[1] == 'n' && s[2] == 'f' && s[3] == '"') {
                                        t = s != b ? -std::numeric_limits<T>::infinity() : std::numeric_limits<T>::infinity();
                                        return charconv::imp::from_chars_result{ s + 4, std::errc() };
                                    }
                                    break;
                                case 'n':
                                    if (e - s >= 4 && s[1] == 'a' && s[2] == 'n' && s[3] == '"') {
                                        t = s != b ? -std::numeric_limits<T>::quiet_NaN() : std::numeric_limits<T>::quiet_NaN();
                                        return charconv::imp::from_chars_result{ s + 4, std::errc() };
                                    }
                                    break;
                            }
                            return charconv::imp::from_chars_result { s != b ? --b : b, std::errc::invalid_argument };
                        }
                    }
                    CXON_IF_CONSTEXPR ( X::allow_javascript_nans) {
                        auto s = b[0] == '-' ? b + 1 : b;
                        switch (s[0]) {
                            case 'I':
                                if (e - s >= 8 && std::char_traits<char>::compare(s + 1, "nfinity", 7) == 0) {
                                    t = s != b ? -std::numeric_limits<T>::infinity() : std::numeric_limits<T>::infinity();
                                    return charconv::imp::from_chars_result { s + 8, std::errc() };
                                }
                                return charconv::imp::from_chars_result { b, std::errc::invalid_argument };
                            case 'N':
                                if (e - s >= 3 && s[1] == 'a' && s[2] == 'N') {
                                    t = s != b ? -std::numeric_limits<T>::quiet_NaN() : std::numeric_limits<T>::quiet_NaN();
                                    return charconv::imp::from_chars_result { s + 3, std::errc() };
                                }
                                return charconv::imp::from_chars_result { b, std::errc::invalid_argument };
                        }
                    }
                }
                auto const r = charconv::from_chars(b, e, t);
                return { r.ptr, r.ec };
            }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
cmpq $0x3, %rax
jl 0x2a79e
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x22, %eax
jne 0x2a79c
movq -0x18(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x2d, %eax
jne 0x2a55f
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x2a56f
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
movl %eax, -0x4c(%rbp)
subl $0x69, %eax
je 0x2a599
jmp 0x2a588
movl -0x4c(%rbp), %eax
subl $0x6e, %eax
je 0x2a66a
jmp 0x2a74d
movq -0x20(%rbp), %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
cmpq $0x4, %rax
jl 0x2a665
movq -0x30(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x6e, %eax
jne 0x2a665
movq -0x30(%rbp), %rax
movsbl 0x2(%rax), %eax
cmpl $0x66, %eax
jne 0x2a665
movq -0x30(%rbp), %rax
movsbl 0x3(%rax), %eax
cmpl $0x22, %eax
jne 0x2a665
movq -0x30(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x78(%rbp)
callq 0x2a830
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, -0x68(%rbp)
callq 0x2a830
movq -0x78(%rbp), %rcx
movq -0x70(%rbp), %rax
movaps %xmm0, %xmm1
movsd -0x68(%rbp), %xmm0
movsd %xmm1, -0x60(%rbp)
cmpq %rcx, %rax
movsd %xmm0, -0x58(%rbp)
jne 0x2a640
movsd -0x60(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movsd -0x58(%rbp), %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, (%rax)
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x10(%rbp)
movl $0x0, -0x8(%rbp)
jmp 0x2a7c9
jmp 0x2a74d
movq -0x20(%rbp), %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
cmpq $0x4, %rax
jl 0x2a74b
movq -0x30(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x61, %eax
jne 0x2a74b
movq -0x30(%rbp), %rax
movsbl 0x2(%rax), %eax
cmpl $0x6e, %eax
jne 0x2a74b
movq -0x30(%rbp), %rax
movsbl 0x3(%rax), %eax
cmpl $0x22, %eax
jne 0x2a74b
movq -0x30(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xa0(%rbp)
callq 0x2a840
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, -0x90(%rbp)
callq 0x2a840
movq -0xa0(%rbp), %rcx
movq -0x98(%rbp), %rax
movaps %xmm0, %xmm1
movsd -0x90(%rbp), %xmm0
movsd %xmm1, -0x88(%rbp)
cmpq %rcx, %rax
movsd %xmm0, -0x80(%rbp)
jne 0x2a729
movsd -0x88(%rbp), %xmm0
movsd %xmm0, -0x80(%rbp)
movsd -0x80(%rbp), %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, (%rax)
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x10(%rbp)
movl $0x0, -0x8(%rbp)
jmp 0x2a7c9
jmp 0x2a74d
leaq -0x10(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x18(%rbp), %rax
je 0x2a777
movq -0x18(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x18(%rbp)
movq %rax, -0xb0(%rbp)
jmp 0x2a782
movq -0x18(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xa8(%rbp), %rax
movq -0xb0(%rbp), %rcx
movq %rcx, (%rax)
movl $0x16, -0x8(%rbp)
jmp 0x2a7c9
jmp 0x2a79e
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movl $0x3, %ecx
callq 0x2a850
movq %rax, -0x40(%rbp)
movl %edx, -0x38(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x10(%rbp)
movl -0x38(%rbp), %eax
movl %eax, -0x8(%rbp)
movq -0x10(%rbp), %rax
movl -0x8(%rbp), %edx
addq $0xb0, %rsp
popq %rbp
retq
nopl (%rax)