// File: /workspace/github_cpp_makefile_star2_O3/mattn[P]wandbox-run/./json.hpp
// Function: 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>::parser::parse_internal(bool)
basic_json parse_internal(bool keep)
        {
            auto result = basic_json(value_t::discarded);

            switch (last_token)
            {
                case lexer::token_type::begin_object:
                {
                    if (keep and (not callback
                                  or ((keep = callback(depth++, parse_event_t::object_start, result)) != 0)))
                    {
                        // explicitly set result to object to cope with {}
                        result.m_type = value_t::object;
                        result.m_value = value_t::object;
                    }

                    // read next token
                    get_token();

                    // closing } -> we are done
                    if (last_token == lexer::token_type::end_object)
                    {
                        get_token();
                        if (keep and callback and not callback(--depth, parse_event_t::object_end, result))
                        {
                            result = basic_json(value_t::discarded);
                        }
                        return result;
                    }

                    // no comma is expected here
                    unexpect(lexer::token_type::value_separator);

                    // otherwise: parse key-value pairs
                    do
                    {
                        // ugly, but could be fixed with loop reorganization
                        if (last_token == lexer::token_type::value_separator)
                        {
                            get_token();
                        }

                        // store key
                        expect(lexer::token_type::value_string);
                        const auto key = m_lexer.get_string();

                        bool keep_tag = false;
                        if (keep)
                        {
                            if (callback)
                            {
                                basic_json k(key);
                                keep_tag = callback(depth, parse_event_t::key, k);
                            }
                            else
                            {
                                keep_tag = true;
                            }
                        }

                        // parse separator (:)
                        get_token();
                        expect(lexer::token_type::name_separator);

                        // parse and add value
                        get_token();
                        auto value = parse_internal(keep);
                        if (keep and keep_tag and not value.is_discarded())
                        {
                            result[key] = std::move(value);
                        }
                    }
                    while (last_token == lexer::token_type::value_separator);

                    // closing }
                    expect(lexer::token_type::end_object);
                    get_token();
                    if (keep and callback and not callback(--depth, parse_event_t::object_end, result))
                    {
                        result = basic_json(value_t::discarded);
                    }

                    return result;
                }

                case lexer::token_type::begin_array:
                {
                    if (keep and (not callback
                                  or ((keep = callback(depth++, parse_event_t::array_start, result)) != 0)))
                    {
                        // explicitly set result to object to cope with []
                        result.m_type = value_t::array;
                        result.m_value = value_t::array;
                    }

                    // read next token
                    get_token();

                    // closing ] -> we are done
                    if (last_token == lexer::token_type::end_array)
                    {
                        get_token();
                        if (callback and not callback(--depth, parse_event_t::array_end, result))
                        {
                            result = basic_json(value_t::discarded);
                        }
                        return result;
                    }

                    // no comma is expected here
                    unexpect(lexer::token_type::value_separator);

                    // otherwise: parse values
                    do
                    {
                        // ugly, but could be fixed with loop reorganization
                        if (last_token == lexer::token_type::value_separator)
                        {
                            get_token();
                        }

                        // parse value
                        auto value = parse_internal(keep);
                        if (keep and not value.is_discarded())
                        {
                            result.push_back(std::move(value));
                        }
                    }
                    while (last_token == lexer::token_type::value_separator);

                    // closing ]
                    expect(lexer::token_type::end_array);
                    get_token();
                    if (keep and callback and not callback(--depth, parse_event_t::array_end, result))
                    {
                        result = basic_json(value_t::discarded);
                    }

                    return result;
                }

                case lexer::token_type::literal_null:
                {
                    get_token();
                    result.m_type = value_t::null;
                    break;
                }

                case lexer::token_type::value_string:
                {
                    const auto s = m_lexer.get_string();
                    get_token();
                    result = basic_json(s);
                    break;
                }

                case lexer::token_type::literal_true:
                {
                    get_token();
                    result.m_type = value_t::boolean;
                    result.m_value = true;
                    break;
                }

                case lexer::token_type::literal_false:
                {
                    get_token();
                    result.m_type = value_t::boolean;
                    result.m_value = false;
                    break;
                }

                case lexer::token_type::value_unsigned:
                case lexer::token_type::value_integer:
                case lexer::token_type::value_float:
                {
                    m_lexer.get_number(result, last_token);
                    get_token();
                    break;
                }

                default:
                {
                    // the last token was unexpected
                    unexpect(last_token);
                }
            }

            if (keep and callback and not callback(depth, parse_event_t::value, result))
            {
                result = basic_json(value_t::discarded);
            }
            return result;
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r12
movb $0x8, (%rdi)
callq 0x1839a
movl 0x28(%r14), %edx
leal -0x1(%rdx), %eax
cmpl $0x8, %eax
ja 0x17ec4
leaq 0xb333c(%rip), %rcx     # 0xcb020
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x30(%r14), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x19b7e
movq %r15, %rdi
callq 0x18704
movl %eax, 0x28(%r14)
jmp 0x17ece
testb %bpl, %bpl
je 0x17f4d
cmpq $0x0, 0x18(%r14)
je 0x17d48
leaq 0x8(%r14), %rdi
movl (%r14), %eax
leal 0x1(%rax), %ecx
movl %ecx, (%r14)
leaq 0x20(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x10(%rsp), %rdx
movb $0x2, (%rdx)
movq %r12, %rcx
callq *0x20(%r14)
testb %al, %al
je 0x17f4d
movb $0x2, (%r12)
movl $0x18, %edi
callq 0x1d4b0
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, 0x8(%r12)
movb $0x1, %bl
jmp 0x17f4f
leaq 0x30(%r14), %rdi
callq 0x18704
movl %eax, 0x28(%r14)
movb $0x0, (%r12)
jmp 0x17ece
leaq 0x30(%r14), %r15
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x19586
movq %r15, %rdi
callq 0x18704
movl %eax, 0x28(%r14)
leaq 0x58(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x19904
leaq 0x58(%rsp), %r15
movq %r15, %rdi
callq 0x1839a
movb (%r12), %al
movb (%r15), %cl
movb %cl, (%r12)
movb %al, (%r15)
movq 0x8(%r12), %rax
movq 0x8(%r15), %rcx
movq %rcx, 0x8(%r12)
movq %rax, 0x8(%r15)
movq %r12, %rdi
callq 0x1839a
movq %r15, %rdi
callq 0x174ba
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x17ece
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1c0c0
jmp 0x17ece
testb %bpl, %bpl
je 0x17fb6
cmpq $0x0, 0x18(%r14)
je 0x17e50
leaq 0x8(%r14), %rdi
movl (%r14), %eax
leal 0x1(%rax), %ecx
movl %ecx, (%r14)
leaq 0x20(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x10(%rsp), %rdx
movb $0x0, (%rdx)
movq %r12, %rcx
callq *0x20(%r14)
testb %al, %al
je 0x17fb6
movb $0x1, (%r12)
movl $0x30, %edi
callq 0x1d4b0
movq %rax, %rcx
addq $0x8, %rcx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
xorl %edx, %edx
movq %rdx, 0x10(%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %rdx, 0x28(%rax)
movq %rax, 0x8(%r12)
movb $0x1, %bl
jmp 0x17fb8
leaq 0x30(%r14), %rdi
callq 0x18704
movl %eax, 0x28(%r14)
movb $0x4, (%r12)
movq $0x1, 0x8(%r12)
jmp 0x17ece
leaq 0x30(%r14), %rdi
callq 0x18704
movl %eax, 0x28(%r14)
movb $0x4, (%r12)
movq $0x0, 0x8(%r12)
jmp 0x17ece
movq %r14, %rdi
movl %edx, %esi
callq 0x1937a
testb %bpl, %bpl
je 0x1806c
cmpq $0x0, 0x18(%r14)
je 0x1806c
leaq 0x8(%r14), %rdi
movl (%r14), %eax
leaq 0x20(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x10(%rsp), %rdx
movb $0x5, (%rdx)
movq %r12, %rcx
callq *0x20(%r14)
testb %al, %al
jne 0x1806c
leaq 0x68(%rsp), %r14
movb $0x8, (%r14)
movq %r14, %rdi
callq 0x1839a
movq %r14, %rdi
callq 0x1839a
movb (%r12), %al
movb (%r14), %cl
movb %cl, (%r12)
movb %al, (%r14)
movq 0x8(%r12), %rax
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%r12)
movq %rax, 0x8(%r14)
movq %r12, %rdi
callq 0x1839a
jmp 0x18064
xorl %ebx, %ebx
leaq 0x30(%r14), %r15
movq %r15, %rdi
callq 0x18704
movl %eax, 0x28(%r14)
cmpl $0xa, %eax
jne 0x18013
movq %r15, %rdi
callq 0x18704
movl %eax, 0x28(%r14)
cmpq $0x0, 0x18(%r14)
je 0x1806c
leaq 0x8(%r14), %rdi
movl (%r14), %eax
decl %eax
movl %eax, (%r14)
leaq 0x20(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x10(%rsp), %rdx
movb $0x3, (%rdx)
movq %r12, %rcx
callq *0x20(%r14)
testb %al, %al
jne 0x1806c
leaq 0x88(%rsp), %r14
jmp 0x18081
xorl %ebx, %ebx
leaq 0x30(%r14), %r15
movq %r15, %rdi
callq 0x18704
movl %eax, 0x28(%r14)
cmpl $0xb, %eax
jne 0x18029
movq %r15, %rdi
callq 0x18704
movl %eax, 0x28(%r14)
cmpq $0x0, 0x18(%r14)
setne %al
andb %al, %bl
cmpb $0x1, %bl
jne 0x1806c
leaq 0x8(%r14), %rdi
movl (%r14), %esi
decl %esi
movl %esi, (%r14)
movl $0x1, %edx
movq %r12, %rcx
callq 0x19356
testb %al, %al
jne 0x1806c
leaq 0xa8(%rsp), %r14
jmp 0x18081
movq %r14, %rdi
movl $0xd, %esi
callq 0x1937a
cmpl $0xd, 0x28(%r14)
jne 0x180a6
jmp 0x1809a
movq %r14, %rdi
movl $0xd, %esi
callq 0x1937a
cmpl $0xd, 0x28(%r14)
movq %r12, 0x8(%rsp)
jne 0x18161
jmp 0x18155
jmp 0x18380
jmp 0x18380
jmp 0x18380
movq %r12, 0x8(%rsp)
jmp 0x18360
movq %r14, %rdi
callq 0x174ba
movq %r12, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x8, (%r14)
movq %r14, %rdi
callq 0x1839a
movq %r12, %rdi
movq %r14, %rsi
callq 0x1747a
jmp 0x18064
movq %r15, %rdi
callq 0x18704
movl %eax, 0x28(%r14)
movzbl %bl, %edx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x17cac
cmpb $0x8, 0x20(%rsp)
setne %al
andb %bl, %al
cmpb $0x1, %al
jne 0x180d1
leaq 0x20(%rsp), %rsi
movq %r12, %rdi
callq 0x19a5c
leaq 0x20(%rsp), %rdi
callq 0x174ba
cmpl $0xd, 0x28(%r14)
je 0x1809a
movq %r14, %rdi
movl $0xa, %esi
callq 0x1843c
movq %r15, %rdi
callq 0x18704
movl %eax, 0x28(%r14)
cmpq $0x0, 0x18(%r14)
setne %al
andb %al, %bl
cmpb $0x1, %bl
jne 0x1806c
leaq 0x8(%r14), %rdi
movl (%r14), %esi
decl %esi
movl %esi, (%r14)
movl $0x3, %edx
movq %r12, %rcx
callq 0x19356
testb %al, %al
jne 0x1806c
leaq 0x78(%rsp), %r14
jmp 0x18081
movq %r12, 0x8(%rsp)
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x174ba
jmp 0x18388
jmp 0x18380
movq %r15, %rdi
callq 0x18704
movl %eax, 0x28(%r14)
movq %r14, %rdi
movl $0x4, %esi
callq 0x1843c
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x19586
xorl %ebp, %ebp
testb %bl, %bl
je 0x181d4
movb $0x1, %bpl
cmpq $0x0, 0x18(%r14)
je 0x181d4
leaq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x19904
movl (%r14), %eax
movl %eax, 0x44(%rsp)
movb $0x4, 0x7(%rsp)
cmpq $0x0, 0x18(%r14)
je 0x18337
leaq 0x8(%r14), %rdi
leaq 0x44(%rsp), %rsi
leaq 0x7(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq *0x20(%r14)
movl %eax, %ebp
leaq 0x10(%rsp), %rdi
callq 0x174ba
movq %r15, %rdi
callq 0x18704
movl %eax, 0x28(%r14)
movq %r14, %rdi
movl $0xc, %esi
callq 0x1843c
movq %r15, %rdi
callq 0x18704
movl %eax, 0x28(%r14)
movzbl %bl, %edx
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x17cac
andb %bl, %bpl
cmpb $0x1, %bpl
jne 0x182ad
movb 0x10(%rsp), %al
cmpb $0x8, %al
je 0x182ad
movq %r12, %rbp
leaq 0x48(%rsp), %r12
movb %al, (%r12)
leaq 0x10(%rsp), %r13
movq 0x8(%r13), %rax
movq %rax, 0x8(%r12)
movq %r13, %rdi
callq 0x1839a
movb $0x0, (%r13)
movq $0x0, 0x8(%r13)
movq %r12, %rdi
callq 0x1839a
leaq 0x20(%rsp), %rsi
movq %rbp, %rdi
callq 0x19930
movq %rax, %r12
leaq 0x48(%rsp), %r13
movq %r13, %rdi
callq 0x1839a
movb (%r12), %al
movb (%r13), %cl
movb %cl, (%r12)
movb %al, (%r13)
movq 0x8(%r12), %rax
movq 0x8(%r13), %rcx
movq %rcx, 0x8(%r12)
movq %rax, 0x8(%r13)
movq %r12, %rdi
callq 0x1839a
movq %r13, %rdi
callq 0x174ba
movq 0x8(%rsp), %r12
leaq 0x10(%rsp), %rdi
callq 0x174ba
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x182d2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1c0c0
cmpl $0xd, 0x28(%r14)
je 0x18155
movq %r14, %rdi
movl $0xb, %esi
callq 0x1843c
movq %r15, %rdi
callq 0x18704
movl %eax, 0x28(%r14)
cmpq $0x0, 0x18(%r14)
setne %al
andb %al, %bl
cmpb $0x1, %bl
jne 0x1806c
leaq 0x8(%r14), %rdi
movl (%r14), %esi
decl %esi
movl %esi, (%r14)
movl $0x1, %edx
movq %r12, %rcx
callq 0x19356
testb %al, %al
jne 0x1806c
leaq 0x98(%rsp), %r14
jmp 0x18081
callq 0x15377
movq %rax, %r14
leaq 0x48(%rsp), %rdi
callq 0x174ba
jmp 0x18350
jmp 0x18360
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x174ba
jmp 0x18363
jmp 0x18385
jmp 0x18360
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x18388
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1c0c0
jmp 0x18388
movq %r12, 0x8(%rsp)
movq %rax, %r14
movq 0x8(%rsp), %rdi
callq 0x174ba
movq %r14, %rdi
callq 0xc7ad0