// File: /workspace/github_cpp_makefile_star2_O2/xelia-it[P]mustache/test/src/../../src/../third-party/json/single_include/nlohmann/json.hpp
// Function: nlohmann::json_abi_v3_11_2::detail::lexer<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<char const*>>::scan()
token_type scan()
    {
        // initially, skip the BOM
        if (position.chars_read_total == 0 && !skip_bom())
        {
            error_message = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
            return token_type::parse_error;
        }

        // read next character and ignore whitespace
        skip_whitespace();

        // ignore comments
        while (ignore_comments && current == '/')
        {
            if (!scan_comment())
            {
                return token_type::parse_error;
            }

            // skip following whitespace
            skip_whitespace();
        }

        switch (current)
        {
            // structural characters
            case '[':
                return token_type::begin_array;
            case ']':
                return token_type::end_array;
            case '{':
                return token_type::begin_object;
            case '}':
                return token_type::end_object;
            case ':':
                return token_type::name_separator;
            case ',':
                return token_type::value_separator;

            // literals
            case 't':
            {
                std::array<char_type, 4> true_literal = {{static_cast<char_type>('t'), static_cast<char_type>('r'), static_cast<char_type>('u'), static_cast<char_type>('e')}};
                return scan_literal(true_literal.data(), true_literal.size(), token_type::literal_true);
            }
            case 'f':
            {
                std::array<char_type, 5> false_literal = {{static_cast<char_type>('f'), static_cast<char_type>('a'), static_cast<char_type>('l'), static_cast<char_type>('s'), static_cast<char_type>('e')}};
                return scan_literal(false_literal.data(), false_literal.size(), token_type::literal_false);
            }
            case 'n':
            {
                std::array<char_type, 4> null_literal = {{static_cast<char_type>('n'), static_cast<char_type>('u'), static_cast<char_type>('l'), static_cast<char_type>('l')}};
                return scan_literal(null_literal.data(), null_literal.size(), token_type::literal_null);
            }

            // string
            case '\"':
                return scan_string();

            // number
            case '-':
            case '0':
            case '1':
            case '2':
            case '3':
            case '4':
            case '5':
            case '6':
            case '7':
            case '8':
            case '9':
                return scan_number();

            // end of input (the null byte is needed when parsing from
            // string literals)
            case '\0':
            case std::char_traits<char_type>::eof():
                return token_type::end_of_input;

            // error
            default:
                error_message = "invalid literal";
                return token_type::parse_error;
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cmpq $0x0, 0x20(%rdi)
jne 0x61e65
movq %rbx, %rdi
callq 0x61f8c
testb %al, %al
je 0x61ebd
movq %rbx, %rdi
callq 0x61fd8
pushq $0xe
popq %r14
movl 0x14(%rbx), %eax
cmpb $0x1, 0x10(%rbx)
jne 0x61e95
cmpl $0x2f, %eax
jne 0x61e95
movq %rbx, %rdi
callq 0x62008
testb %al, %al
je 0x61ecc
movq %rbx, %rdi
callq 0x61fd8
jmp 0x61e71
leal -0x22(%rax), %ecx
cmpl $0x18, %ecx
ja 0x61ed8
leaq 0x169c0(%rip), %rax     # 0x78864
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x62576
leaq 0x17722(%rip), %rax     # 0x795e6
movq %rax, 0x70(%rbx)
pushq $0xe
popq %r14
movl %r14d, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leal 0x1(%rax), %ecx
cmpl $0x2, %ecx
jb 0x61f0b
cmpl $0x5b, %eax
je 0x61f5a
cmpl $0x7d, %eax
je 0x61f85
cmpl $0x66, %eax
je 0x61f61
cmpl $0x6e, %eax
je 0x61f34
cmpl $0x74, %eax
je 0x61f49
cmpl $0x7b, %eax
je 0x61f45
cmpl $0x5d, %eax
jne 0x61f0f
pushq $0xa
jmp 0x61eca
pushq $0xf
jmp 0x61eca
leaq 0x176fd(%rip), %rax     # 0x79613
movq %rax, 0x70(%rbx)
jmp 0x61ecc
pushq $0xc
jmp 0x61eca
pushq $0xd
jmp 0x61eca
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x62104
leaq -0x14(%rbp), %rsi
movl $0x6c6c756e, (%rsi)     # imm = 0x6C6C756E
pushq $0x4
popq %rdx
pushq $0x3
jmp 0x61f74
pushq $0x9
jmp 0x61eca
leaq -0x18(%rbp), %rsi
movl $0x65757274, (%rsi)     # imm = 0x65757274
pushq $0x4
popq %rdx
pushq $0x1
jmp 0x61f74
pushq $0x8
jmp 0x61eca
leaq -0x20(%rbp), %rsi
movb $0x65, 0x4(%rsi)
movl $0x736c6166, (%rsi)     # imm = 0x736C6166
pushq $0x5
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
callq 0x62088
movl %eax, %r14d
jmp 0x61ecc
pushq $0xb
jmp 0x61eca