// File: /workspace/github_cpp_makefile_star2_O1/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 0xf676
movq %rbx, %rdi
callq 0xf7b8
testb %al, %al
je 0xf705
leaq 0x2db4b(%rip), %r14     # 0x3d1c8
movq %rbx, %rdi
callq 0x57f2
movl 0x10(%rbx), %eax
cmpl $0x1f, %eax
jle 0xf6a3
cmpl $0x5a, %eax
jg 0xf6d4
addl $-0x20, %eax
cmpl $0x1a, %eax
ja 0xf6bc
movslq (%r14,%rax,4), %rax
addq %r14, %rax
jmpq *%rax
leal -0x9(%rax), %ecx
cmpl $0x2, %ecx
jb 0xf67d
leal 0x1(%rax), %ecx
cmpl $0x2, %ecx
jb 0xf758
cmpl $0xd, %eax
je 0xf67d
leaq 0x2ef94(%rip), %rax     # 0x3e657
jmp 0xf70c
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xfd50
cmpl $0x6d, %eax
jle 0xf71a
cmpl $0x7a, %eax
jg 0xf743
cmpl $0x6e, %eax
je 0xf77c
cmpl $0x74, %eax
jne 0xf6bc
leaq 0x2e228(%rip), %rsi     # 0x3d91b
movl $0x4, %edx
movq %rbx, %rdi
movl $0x1, %ecx
jmp 0xf790
leaq 0x2ef1e(%rip), %rax     # 0x3e62a
movq %rax, 0x68(%rbx)
movl $0xe, %eax
jmp 0xf7af
cmpl $0x5b, %eax
je 0xf7aa
cmpl $0x5d, %eax
je 0xf7a3
cmpl $0x66, %eax
jne 0xf6bc
leaq 0x2e1ec(%rip), %rsi     # 0x3d920
movl $0x5, %edx
movq %rbx, %rdi
movl $0x2, %ecx
jmp 0xf790
cmpl $0x7b, %eax
je 0xf79c
cmpl $0x7d, %eax
jne 0xf6bc
movl $0xb, %eax
jmp 0xf7af
movl $0xf, %eax
jmp 0xf7af
movl $0xc, %eax
jmp 0xf7af
movl $0xd, %eax
jmp 0xf7af
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xf878
leaq 0x2e1af(%rip), %rsi     # 0x3d932
movl $0x4, %edx
movq %rbx, %rdi
movl $0x3, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xf7fa
movl $0x9, %eax
jmp 0xf7af
movl $0xa, %eax
jmp 0xf7af
movl $0x8, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop