// File: /workspace/github_cpp_makefile_star2_O2/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> 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>::parse<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, 0>(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::function<bool (int, 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>::parse_event_t, 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>&)>)
static basic_json parse(IteratorType first, IteratorType last,
                            const parser_callback_t cb = nullptr)
    {
        // assertion to check that the iterator range is indeed contiguous,
        // see http://stackoverflow.com/a/35008842/266378 for more discussion
        assert(std::accumulate(first, last, std::pair<bool, int>(true, 0),
                               [&first](std::pair<bool, int> res, decltype(*first) val)
        {
            res.first &= (val == *(std::next(std::addressof(*first), res.second++)));
            return res;
        }).first);

        // assertion to check that each element is 1 byte long
        static_assert(sizeof(typename std::iterator_traits<IteratorType>::value_type) == 1,
                      "each element in the iterator range must have the size of 1 byte");

        // if iterator range is empty, create a parser with an empty string
        // to generate "unexpected EOF" error message
        if (std::distance(first, last) <= 0)
        {
            return parser("").parse();
        }

        return parser(first, last, cb).parse();
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rcx, %r15
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rcx
movq %rsi, (%rcx)
pushq $0x1
popq %rdx
movq %rsi, %rdi
movq %r14, %rsi
callq 0x17342
testb $0x1, %al
je 0x1729f
movq 0x8(%rsp), %r12
movq %r14, %rax
subq %r12, %rax
testq %rax, %rax
jle 0x1724a
leaq 0x38(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x172fc
leaq 0x58(%rsp), %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x1747a
leaq 0x58(%rsp), %rsi
movq %rbx, %rdi
callq 0x173e0
leaq 0x58(%rsp), %rdi
callq 0x17460
leaq 0x38(%rsp), %rdi
jmp 0x17286
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
movaps %xmm0, 0x10(%rdx)
leaq 0xb3ba4(%rip), %rsi     # 0xcae04
leaq 0x58(%rsp), %rdi
callq 0x173a0
leaq 0x58(%rsp), %rsi
movq %rbx, %rdi
callq 0x173e0
leaq 0x58(%rsp), %rdi
callq 0x17460
leaq 0x10(%rsp), %rdi
callq 0x16fa6
movq %rbx, %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0xb2f89(%rip), %rdi     # 0xca22f
leaq 0xb3058(%rip), %rsi     # 0xca305
leaq 0xb305c(%rip), %rcx     # 0xca310
movl $0x1b2a, %edx           # imm = 0x1B2A
callq 0x13130
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x17460
jmp 0x172d0
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
jmp 0x172ee
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x17460
jmp 0x172e9
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x16fa6
movq %rbx, %rdi
callq 0xc6e00
nop