// File: /workspace/github_cpp_makefile_star2_O2/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::lexer<nlohmann::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::adl_serializer>>::scan()
token_type scan()
    {
        // initially, skip the BOM
        if (position.chars_read_total == 0 and not skip_bom())
        {
            error_message = "invalid BOM; must be 0xEF 0xBB 0xBF if given";
            return token_type::parse_error;
        }

        // read next character and ignore whitespace
        do
        {
            get();
        }
        while (current == ' ' or current == '\t' or current == '\n' or current == '\r');

        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':
                return scan_literal("true", 4, token_type::literal_true);
            case 'f':
                return scan_literal("false", 5, token_type::literal_false);
            case 'n':
                return scan_literal("null", 4, 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>::eof():
                return token_type::end_of_input;

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

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x18(%rdi)
jne 0xdbf6
movq %rbx, %rdi
callq 0xdce6
testb %al, %al
je 0xdc72
leaq 0x255cb(%rip), %r14     # 0x331c8
movq %rbx, %rdi
callq 0xdd28
movl 0x10(%rbx), %eax
leal -0x9(%rax), %ecx
cmpl $0x2, %ecx
jb 0xdbfd
leal -0x20(%rax), %ecx
cmpl $0x1a, %ecx
ja 0xdc21
movslq (%r14,%rcx,4), %rax
addq %r14, %rax
jmpq *%rax
cmpl $0xd, %eax
je 0xdbfd
leal 0x1(%rax), %ecx
cmpl $0x2, %ecx
jb 0xdc81
cmpl $0x5b, %eax
je 0xdca5
cmpl $0x5d, %eax
je 0xdcdb
cmpl $0x66, %eax
je 0xdcbf
cmpl $0x6e, %eax
je 0xdca9
cmpl $0x7d, %eax
je 0xdcb7
cmpl $0x7b, %eax
je 0xdcbb
cmpl $0x74, %eax
jne 0xdc85
leaq 0x25cbc(%rip), %rsi     # 0x33918
pushq $0x4
popq %rdx
pushq $0x1
jmp 0xdccb
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xe262
leaq 0x26d73(%rip), %rax     # 0x349ec
movq %rax, 0x68(%rbx)
pushq $0xe
jmp 0xdcdd
pushq $0xf
jmp 0xdcdd
leaq 0x26d8d(%rip), %rax     # 0x34a19
jmp 0xdc79
pushq $0xd
jmp 0xdcdd
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xde02
pushq $0xc
jmp 0xdcdd
pushq $0x8
jmp 0xdcdd
leaq 0x25c7f(%rip), %rsi     # 0x3392f
pushq $0x4
popq %rdx
pushq $0x3
jmp 0xdccb
pushq $0xb
jmp 0xdcdd
pushq $0x9
jmp 0xdcdd
leaq 0x25c57(%rip), %rsi     # 0x3391d
pushq $0x5
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xdd90
pushq $0xa
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq