// File: /workspace/github_cpp_makefile_star2_O2/oknenavin[P]cxon/test/../src/cxon/lang/common/cio/variant.hxx
// Function: bool cxon::cio::var::variant_read<cxon::JSON<cxon::json::format_traits>, boost::variant2::variant<std::nullptr_t, boost::container::map<int, int, std::less<int>, void, void>, boost::container::stable_vector<int, void>, boost::container::basic_string<char, std::char_traits<char>, void>, int, bool>, char const*, cxon::context<cxon::JSON<cxon::json::format_traits>>>(boost::variant2::variant<std::nullptr_t, boost::container::map<int, int, std::less<int>, void, void>, boost::container::stable_vector<int, void>, boost::container::basic_string<char, std::char_traits<char>, void>, int, bool>&, char const*&, char const*, cxon::context<cxon::JSON<cxon::json::format_traits>>&)
inline bool variant_read(V& v, II& i, II e, Cx& cx) {
            if (!consume<X>(i, e, cx))
                return false;
            switch (peek(i, e)) {
                case X::map::beg:
                    return imp::variant_read_<X, is_map>(v, i, e, cx);
                case X::list::beg:
                    return imp::variant_read_<X, is_list>(v, i, e, cx);
                case X::string::del:
                    return imp::variant_read_<X, is_string>(v, i, e, cx);
                case '-': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'I': case 'N':
                    return imp::variant_read_<X, is_number>(v, i, e, cx);
                case *X::id::pos: case *X::id::neg:
                    return imp::variant_read_<X, is_bool>(v, i, e, cx);
                case *X::id::nil:
                    return imp::variant_read_<X, is_null>(v, i, e, cx);
            }
            return cx/json::read_error::unexpected;
        }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x1e8e2
movq (%r15), %rax
cmpq %r14, %rax
je 0x8b5bf
movzbl (%rax), %eax
leal -0x22(%rax), %ecx
cmpl $0x39, %ecx
ja 0x8b58f
movabsq $0x108000ffc800, %rdx   # imm = 0x108000FFC800
btq %rcx, %rdx
jae 0x8b564
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x8be00
testq %rcx, %rcx
je 0x8b60d
cmpq $0x39, %rcx
jne 0x8b58f
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x8bc06
cmpl $0x66, %eax
je 0x8b5d5
cmpl $0x6e, %eax
je 0x8b5f1
cmpl $0x74, %eax
je 0x8b5d5
cmpl $0x7b, %eax
jne 0x8b5bf
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x8b62a
pushq $0x1
popq %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1e782
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x8be60
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x8bf48
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x8bd36
nop