// File: 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
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, 0x20(%rax)
jne 0x114633
movq -0x28(%rbp), %rdi
callq 0x114800
testb $0x1, %al
jne 0x114633
movq -0x28(%rbp), %rax
leaq 0x30db3(%rip), %rcx     # 0x1453d6
movq %rcx, 0x70(%rax)
movl $0xe, -0x4(%rbp)
jmp 0x1147ec
movq -0x28(%rbp), %rdi
callq 0x114870
movq -0x28(%rbp), %rcx
xorl %eax, %eax
testb $0x1, 0x10(%rcx)
movb %al, -0x29(%rbp)
je 0x114659
movq -0x28(%rbp), %rax
cmpl $0x2f, 0x14(%rax)
sete %al
movb %al, -0x29(%rbp)
movb -0x29(%rbp), %al
testb $0x1, %al
jne 0x114662
jmp 0x114686
movq -0x28(%rbp), %rdi
callq 0x1148e0
testb $0x1, %al
jne 0x11467b
movl $0xe, -0x4(%rbp)
jmp 0x1147ec
movq -0x28(%rbp), %rdi
callq 0x114870
jmp 0x11463c
movq -0x28(%rbp), %rax
movl 0x14(%rax), %eax
incl %eax
movl %eax, %ecx
movq %rcx, -0x38(%rbp)
subl $0x7e, %eax
ja 0x1147d6
movq -0x38(%rbp), %rax
leaq 0x2f4b7(%rip), %rcx     # 0x143b60
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x8, -0x4(%rbp)
jmp 0x1147ec
movl $0xa, -0x4(%rbp)
jmp 0x1147ec
movl $0x9, -0x4(%rbp)
jmp 0x1147ec
movl $0xb, -0x4(%rbp)
jmp 0x1147ec
movl $0xc, -0x4(%rbp)
jmp 0x1147ec
movl $0xd, -0x4(%rbp)
jmp 0x1147ec
movl 0x33ef9(%rip), %eax     # 0x1485f9
movl %eax, -0x14(%rbp)
leaq -0x14(%rbp), %rdi
callq 0x114ab0
movq %rax, -0x40(%rbp)
leaq -0x14(%rbp), %rdi
callq 0x114ad0
movq -0x28(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq %rax, %rdx
movl $0x1, %ecx
callq 0x1149d0
movl %eax, -0x4(%rbp)
jmp 0x1147ec
movl 0x33ec8(%rip), %eax     # 0x148604
movl %eax, -0x19(%rbp)
movb 0x33ec3(%rip), %al      # 0x148608
movb %al, -0x15(%rbp)
leaq -0x19(%rbp), %rdi
callq 0x114ae0
movq %rax, -0x48(%rbp)
leaq -0x19(%rbp), %rdi
callq 0x114b00
movq -0x28(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq %rax, %rdx
movl $0x2, %ecx
callq 0x1149d0
movl %eax, -0x4(%rbp)
jmp 0x1147ec
movl 0x33e7f(%rip), %eax     # 0x1485fd
movl %eax, -0x1d(%rbp)
leaq -0x1d(%rbp), %rdi
callq 0x114ab0
movq %rax, -0x50(%rbp)
leaq -0x1d(%rbp), %rdi
callq 0x114ad0
movq -0x28(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq %rax, %rdx
movl $0x3, %ecx
callq 0x1149d0
movl %eax, -0x4(%rbp)
jmp 0x1147ec
movq -0x28(%rbp), %rdi
callq 0x114b10
movl %eax, -0x4(%rbp)
jmp 0x1147ec
movq -0x28(%rbp), %rdi
callq 0x1156e0
movl %eax, -0x4(%rbp)
jmp 0x1147ec
movl $0xf, -0x4(%rbp)
jmp 0x1147ec
movq -0x28(%rbp), %rax
leaq 0x30c22(%rip), %rcx     # 0x145403
movq %rcx, 0x70(%rax)
movl $0xe, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop