// File: /workspace/github_cpp_makefile_star2_O2/SYZYGYfpga[P]syzygy-tools/include/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()
    {
        // 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
leaq 0x2baa(%rip), %r14      # 0x805c
movq %rbx, %rdi
callq 0x5592
movl 0x10(%rbx), %eax
leal -0x9(%rax), %ecx
cmpl $0x2, %ecx
jb 0x54b2
leal -0x20(%rax), %ecx
cmpl $0x1a, %ecx
ja 0x54d6
movslq (%r14,%rcx,4), %rax
addq %r14, %rax
jmpq *%rax
cmpl $0xd, %eax
je 0x54b2
leal 0x1(%rax), %ecx
cmpl $0x2, %ecx
jb 0x5527
cmpl $0x5b, %eax
je 0x5551
cmpl $0x5d, %eax
je 0x5587
cmpl $0x66, %eax
je 0x556b
cmpl $0x6e, %eax
je 0x5555
cmpl $0x7d, %eax
je 0x5563
cmpl $0x7b, %eax
je 0x5567
cmpl $0x74, %eax
jne 0x552b
leaq 0x3568(%rip), %rsi      # 0x8a79
pushq $0x4
popq %rdx
pushq $0x1
jmp 0x5577
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x593c
pushq $0xf
jmp 0x5589
leaq 0x3557(%rip), %rax      # 0x8a89
movq %rax, 0x58(%rbx)
pushq $0xe
jmp 0x5589
pushq $0xd
jmp 0x5589
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x563e
pushq $0xc
jmp 0x5589
pushq $0x8
jmp 0x5589
leaq 0x3528(%rip), %rsi      # 0x8a84
pushq $0x4
popq %rdx
pushq $0x3
jmp 0x5577
pushq $0xb
jmp 0x5589
pushq $0x9
jmp 0x5589
leaq 0x350c(%rip), %rsi      # 0x8a7e
pushq $0x5
popq %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x55cc
pushq $0xa
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq