// File: /workspace/github_cpp_makefile_star2_O1/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 $0xc8, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movb $0x8, (%rdi)
callq 0x183f2
movl 0x28(%r14), %edx
leal -0x1(%rdx), %eax
cmpl $0x8, %eax
ja 0x17fe7
leaq 0xb32c0(%rip), %rcx     # 0xcb020
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x30(%r14), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x19c7c
movq %r15, %rdi
callq 0x1877e
movl %eax, 0x28(%r14)
jmp 0x17ff1
testb %bpl, %bpl
je 0x17ddd
cmpq $0x0, 0x18(%r14)
je 0x17dbe
leaq 0x8(%r14), %rdi
movl (%r14), %eax
leal 0x1(%rax), %ecx
movl %ecx, (%r14)
leaq 0x28(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x18(%rsp), %rdx
movb $0x2, (%rdx)
movq %rbx, %rcx
callq *0x20(%r14)
movl %eax, %ebp
testb %al, %al
je 0x17ddd
movb $0x2, (%rbx)
movl $0x18, %edi
callq 0x1d510
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, 0x8(%rbx)
leaq 0x30(%r14), %r15
movq %r15, %rdi
callq 0x1877e
movl %eax, 0x28(%r14)
cmpl $0xa, %eax
jne 0x1806a
movq %r15, %rdi
callq 0x1877e
movl %eax, 0x28(%r14)
cmpq $0x0, 0x18(%r14)
je 0x18344
leaq 0x8(%r14), %rdi
movl (%r14), %eax
decl %eax
movl %eax, (%r14)
leaq 0x28(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x18(%rsp), %rdx
movb $0x3, (%rdx)
movq %rbx, %rcx
callq *0x20(%r14)
testb %al, %al
jne 0x18344
leaq 0x98(%rsp), %r14
jmp 0x18325
leaq 0x30(%r14), %rdi
callq 0x1877e
movl %eax, 0x28(%r14)
movb $0x0, (%rbx)
jmp 0x17ff1
leaq 0x30(%r14), %r15
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x196aa
movq %r15, %rdi
callq 0x1877e
movl %eax, 0x28(%r14)
leaq 0x68(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x19a28
leaq 0x68(%rsp), %r15
movq %r15, %rdi
callq 0x183f2
movb (%rbx), %al
movb (%r15), %cl
movb %cl, (%rbx)
movb %al, (%r15)
movq 0x8(%rbx), %rax
movq 0x8(%r15), %rcx
movq %rcx, 0x8(%rbx)
movq %rax, 0x8(%r15)
movq %rbx, %rdi
callq 0x183f2
movq %r15, %rdi
callq 0x17518
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x17ff1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1c120
jmp 0x17ff1
testb %bpl, %bpl
je 0x17f4b
cmpq $0x0, 0x18(%r14)
je 0x17f15
leaq 0x8(%r14), %rdi
movl (%r14), %eax
leal 0x1(%rax), %ecx
movl %ecx, (%r14)
leaq 0x28(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x18(%rsp), %rdx
movb $0x0, (%rdx)
movq %rbx, %rcx
callq *0x20(%r14)
movl %eax, %ebp
testb %al, %al
je 0x17f4b
movb $0x1, (%rbx)
movl $0x30, %edi
callq 0x1d510
movq %rax, %rcx
addq $0x8, %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq $0x0, 0x28(%rax)
movq %rax, 0x8(%rbx)
leaq 0x30(%r14), %r15
movq %r15, %rdi
callq 0x1877e
movl %eax, 0x28(%r14)
cmpl $0xb, %eax
jne 0x18126
movq %r15, %rdi
callq 0x1877e
movl %eax, 0x28(%r14)
cmpq $0x0, 0x18(%r14)
setne %al
andb %al, %bpl
cmpb $0x1, %bpl
jne 0x18344
leaq 0x8(%r14), %rdi
movl (%r14), %esi
decl %esi
movl %esi, (%r14)
movl $0x1, %edx
movq %rbx, %rcx
callq 0x19458
testb %al, %al
jne 0x18344
leaq 0xb8(%rsp), %r14
jmp 0x18325
leaq 0x30(%r14), %rdi
callq 0x1877e
movl %eax, 0x28(%r14)
movb $0x4, (%rbx)
movq $0x1, 0x8(%rbx)
jmp 0x17ff1
leaq 0x30(%r14), %rdi
callq 0x1877e
movl %eax, 0x28(%r14)
movb $0x4, (%rbx)
movq $0x0, 0x8(%rbx)
jmp 0x17ff1
movq %r14, %rdi
movl %edx, %esi
callq 0x1947c
testb %bpl, %bpl
je 0x18344
cmpq $0x0, 0x18(%r14)
je 0x18344
leaq 0x8(%r14), %rdi
movl (%r14), %eax
leaq 0x28(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x18(%rsp), %rdx
movb $0x5, (%rdx)
movq %rbx, %rcx
callq *0x20(%r14)
testb %al, %al
jne 0x18344
leaq 0x78(%rsp), %r14
movb $0x8, (%r14)
movq %r14, %rdi
callq 0x183f2
movq %r14, %rdi
callq 0x183f2
movb (%rbx), %al
movb (%r14), %cl
movb %cl, (%rbx)
movb %al, (%r14)
movq 0x8(%rbx), %rax
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rbx)
movq %rax, 0x8(%r14)
movq %rbx, %rdi
callq 0x183f2
jmp 0x1833c
movq %r14, %rdi
movl $0xd, %esi
callq 0x1947c
movzbl %bpl, %r12d
leaq 0x28(%rsp), %r13
cmpl $0xd, 0x28(%r14)
jne 0x18093
movq %r15, %rdi
callq 0x1877e
movl %eax, 0x28(%r14)
movq %r13, %rdi
movq %r14, %rsi
movl %r12d, %edx
callq 0x17d28
cmpb $0x8, 0x28(%rsp)
setne %al
andb %bpl, %al
cmpb $0x1, %al
jne 0x180bb
movq %rbx, %rdi
movq %r13, %rsi
callq 0x19b70
movq %r13, %rdi
callq 0x17518
cmpl $0xd, 0x28(%r14)
je 0x18080
movq %r14, %rdi
movl $0xa, %esi
callq 0x18494
movq %r15, %rdi
callq 0x1877e
movl %eax, 0x28(%r14)
cmpq $0x0, 0x18(%r14)
setne %al
andb %al, %bpl
cmpb $0x1, %bpl
jne 0x18344
leaq 0x8(%r14), %rdi
movl (%r14), %esi
decl %esi
movl %esi, (%r14)
movl $0x3, %edx
movq %rbx, %rcx
callq 0x19458
testb %al, %al
jne 0x18344
leaq 0x88(%rsp), %r14
jmp 0x18325
movq %r14, %rdi
movl $0xd, %esi
callq 0x1947c
leaq 0x8(%r14), %rax
movq %rax, 0x60(%rsp)
leaq 0x18(%rsp), %r12
movzbl %bpl, %eax
movl %eax, 0x58(%rsp)
movq %rbx, 0x10(%rsp)
cmpl $0xd, 0x28(%r14)
jne 0x18161
movq %r15, %rdi
callq 0x1877e
movl %eax, 0x28(%r14)
movq %r14, %rdi
movl $0x4, %esi
callq 0x18494
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x196aa
testb %bpl, %bpl
je 0x181ce
cmpq $0x0, 0x18(%r14)
je 0x181d3
movq %r12, %rdi
leaq 0x28(%rsp), %rsi
callq 0x19a28
movl (%r14), %eax
movl %eax, 0x5c(%rsp)
movb $0x4, 0xf(%rsp)
cmpq $0x0, 0x18(%r14)
je 0x18359
movq 0x60(%rsp), %rdi
leaq 0x5c(%rsp), %rsi
leaq 0xf(%rsp), %rdx
movq %r12, %rcx
callq *0x20(%r14)
movl %eax, %r13d
movq %r12, %rdi
callq 0x17518
jmp 0x181d6
xorl %r13d, %r13d
jmp 0x181d6
movb $0x1, %r13b
movq %r15, %rdi
callq 0x1877e
movl %eax, 0x28(%r14)
movq %r14, %rdi
movl $0xc, %esi
callq 0x18494
movq %r15, %rdi
callq 0x1877e
movl %eax, 0x28(%r14)
movq %r12, %rdi
movq %r14, %rsi
movl 0x58(%rsp), %edx
callq 0x17d28
andb %bpl, %r13b
cmpb $0x1, %r13b
jne 0x182a6
movb 0x18(%rsp), %al
cmpb $0x8, %al
je 0x182a6
movb %al, 0x48(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x50(%rsp)
movq %r12, %rdi
callq 0x183f2
movb $0x0, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movq %rbx, %r13
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0x183f2
movq %r13, %rdi
leaq 0x28(%rsp), %rsi
callq 0x19a54
movq %rax, %r13
movq %rbx, %rdi
callq 0x183f2
movb (%r13), %al
movb 0x48(%rsp), %cl
movb %cl, (%r13)
movb %al, 0x48(%rsp)
movq 0x8(%r13), %rax
movq 0x50(%rsp), %rcx
movq %rcx, 0x8(%r13)
movq %rax, 0x50(%rsp)
movq %r13, %rdi
callq 0x183f2
movq %rbx, %rdi
callq 0x17518
movq 0x10(%rsp), %rbx
movq %r12, %rdi
callq 0x17518
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x182ca
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1c120
cmpl $0xd, 0x28(%r14)
je 0x1814e
movq %r14, %rdi
movl $0xb, %esi
callq 0x18494
movq %r15, %rdi
callq 0x1877e
movl %eax, 0x28(%r14)
cmpq $0x0, 0x18(%r14)
setne %al
andb %al, %bpl
cmpb $0x1, %bpl
jne 0x18344
movl (%r14), %esi
decl %esi
movl %esi, (%r14)
movq 0x60(%rsp), %rdi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x19458
testb %al, %al
jne 0x18344
leaq 0xa8(%rsp), %r14
movb $0x8, (%r14)
movq %r14, %rdi
callq 0x183f2
movq %rbx, %rdi
movq %r14, %rsi
callq 0x174d8
movq %r14, %rdi
callq 0x17518
movq %rbx, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x15377
jmp 0x183b5
jmp 0x183b5
jmp 0x183b5
movq %rbx, 0x10(%rsp)
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x183ce
movq %rax, %r14
leaq 0x48(%rsp), %rdi
callq 0x17518
jmp 0x1838b
jmp 0x18388
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x17518
jmp 0x183c4
jmp 0x183c1
jmp 0x183b5
movq %rbx, 0x10(%rsp)
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x17518
jmp 0x183e0
jmp 0x183bc
jmp 0x183c1
jmp 0x183b5
movq %rbx, 0x10(%rsp)
jmp 0x183bc
movq %rax, %r14
jmp 0x183e0
movq %rax, %r14
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x183e0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1c120
movq 0x10(%rsp), %rdi
callq 0x17518
movq %r14, %rdi
callq 0xc7b30