// File: 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>::lexer::get_string() const
string_t get_string() const
        {
            assert(m_cursor - m_start >= 2);

            string_t result;
            result.reserve(static_cast<size_t>(m_cursor - m_start - 2));

            // iterate the result between the quotes
            for (const lexer_char_t* i = m_start + 1; i < m_cursor - 1; ++i)
            {
                // find next escape character
                auto e = std::find(i, m_cursor - 1, '\\');
                if (e != i)
                {
                    // see https://github.com/nlohmann/json/issues/365#issuecomment-262874705
                    for (auto k = i; k < e; k++)
                    {
                        result.push_back(static_cast<typename string_t::value_type>(*k));
                    }
                    i = e - 1; // -1 because of ++i
                }
                else
                {
                    // processing escaped character
                    // read next character
                    ++i;

                    switch (*i)
                    {
                        // the default escapes
                        case 't':
                        {
                            result += "\t";
                            break;
                        }
                        case 'b':
                        {
                            result += "\b";
                            break;
                        }
                        case 'f':
                        {
                            result += "\f";
                            break;
                        }
                        case 'n':
                        {
                            result += "\n";
                            break;
                        }
                        case 'r':
                        {
                            result += "\r";
                            break;
                        }
                        case '\\':
                        {
                            result += "\\";
                            break;
                        }
                        case '/':
                        {
                            result += "/";
                            break;
                        }
                        case '"':
                        {
                            result += "\"";
                            break;
                        }

                        // unicode
                        case 'u':
                        {
                            // get code xxxx from uxxxx
                            auto codepoint = std::strtoul(std::string(reinterpret_cast<typename string_t::const_pointer>(i + 1),
                                                          4).c_str(), nullptr, 16);

                            // check if codepoint is a high surrogate
                            if (codepoint >= 0xD800 and codepoint <= 0xDBFF)
                            {
                                // make sure there is a subsequent unicode
                                if ((i + 6 >= m_limit) or * (i + 5) != '\\' or * (i + 6) != 'u')
                                {
                                    JSON_THROW(std::invalid_argument("missing low surrogate"));
                                }

                                // get code yyyy from uxxxx\uyyyy
                                auto codepoint2 = std::strtoul(std::string(reinterpret_cast<typename string_t::const_pointer>
                                                               (i + 7), 4).c_str(), nullptr, 16);
                                result += to_unicode(codepoint, codepoint2);
                                // skip the next 10 characters (xxxx\uyyyy)
                                i += 10;
                            }
                            else if (codepoint >= 0xDC00 and codepoint <= 0xDFFF)
                            {
                                // we found a lone low surrogate
                                JSON_THROW(std::invalid_argument("missing high surrogate"));
                            }
                            else
                            {
                                // add unicode character(s)
                                result += to_unicode(codepoint);
                                // skip the next four characters (xxxx)
                                i += 4;
                            }
                            break;
                        }
                    }
                }
            }

            return result;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rdi, -0x100(%rbp)
movq %rdi, %rax
movq %rax, -0xf8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, -0xf0(%rbp)
movq 0x60(%rcx), %rax
movq 0x50(%rcx), %rcx
subq %rcx, %rax
cmpq $0x2, %rax
jl 0x1b4b2
jmp 0x1b4d1
leaq 0xba072(%rip), %rdi     # 0xd552b
leaq 0xb9221(%rip), %rsi     # 0xd46e1
movl $0x2b2b, %edx           # imm = 0x2B2B
leaq 0xba077(%rip), %rcx     # 0xd5543
callq 0x13130
movq -0x100(%rbp), %rdi
movb $0x0, -0x11(%rbp)
callq 0xa22c0
movq -0xf0(%rbp), %rcx
movq -0x100(%rbp), %rdi
movq 0x50(%rcx), %rax
movq 0x60(%rcx), %rsi
subq %rax, %rsi
addq $-0x2, %rsi
callq 0xa2640
jmp 0x1b505
movq -0xf0(%rbp), %rax
movq 0x50(%rax), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
movq -0xf0(%rbp), %rcx
movq -0x30(%rbp), %rax
movq 0x60(%rcx), %rcx
addq $-0x1, %rcx
cmpq %rcx, %rax
jae 0x1ba18
movq -0xf0(%rbp), %rax
movq -0x30(%rbp), %rdi
movq 0x60(%rax), %rsi
decq %rsi
movb $0x5c, -0x39(%rbp)
leaq -0x39(%rbp), %rdx
callq 0x1ddb0
movq %rax, -0x108(%rbp)
jmp 0x1b55c
movq -0x108(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x30(%rbp), %rax
je 0x1b5ca
movq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x1b5b9
movq -0x100(%rbp), %rdi
movq -0x48(%rbp), %rax
movsbl (%rax), %esi
callq 0xa2a60
jmp 0x1b598
jmp 0x1b59a
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x1b579
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x1ba3e
movq -0x38(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x1ba05
movq -0x30(%rbp), %rax
incq %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
addl $-0x22, %eax
movl %eax, %ecx
movq %rcx, -0x110(%rbp)
subl $0x53, %eax
ja 0x1ba03
movq -0x110(%rbp), %rax
leaq 0xb8a49(%rip), %rcx     # 0xd4048
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x100(%rbp), %rdi
leaq 0xba076(%rip), %rsi     # 0xd568c
callq 0xa3bd0
jmp 0x1b61d
jmp 0x1ba03
movq -0x100(%rbp), %rdi
leaq 0xba05e(%rip), %rsi     # 0xd568e
callq 0xa3bd0
jmp 0x1b637
jmp 0x1ba03
movq -0x100(%rbp), %rdi
leaq 0xba046(%rip), %rsi     # 0xd5690
callq 0xa3bd0
jmp 0x1b651
jmp 0x1ba03
movq -0x100(%rbp), %rdi
leaq 0xbbe90(%rip), %rsi     # 0xd74f4
callq 0xa3bd0
jmp 0x1b66b
jmp 0x1ba03
movq -0x100(%rbp), %rdi
leaq 0xba014(%rip), %rsi     # 0xd5692
callq 0xa3bd0
jmp 0x1b685
jmp 0x1ba03
movq -0x100(%rbp), %rdi
leaq 0xb9ffc(%rip), %rsi     # 0xd5694
callq 0xa3bd0
jmp 0x1b69f
jmp 0x1ba03
movq -0x100(%rbp), %rdi
leaq 0xb9fe4(%rip), %rsi     # 0xd5696
callq 0xa3bd0
jmp 0x1b6b9
jmp 0x1ba03
movq -0x100(%rbp), %rdi
leaq 0xb9fcc(%rip), %rsi     # 0xd5698
callq 0xa3bd0
jmp 0x1b6d3
jmp 0x1ba03
movq -0x30(%rbp), %rax
incq %rax
movq %rax, -0x120(%rbp)
leaq -0x71(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x26cc0
movq -0x120(%rbp), %rsi
movq -0x118(%rbp), %rcx
leaq -0x70(%rbp), %rdi
movl $0x4, %edx
callq 0xa4ce0
jmp 0x1b714
leaq -0x70(%rbp), %rdi
callq 0xa3e10
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x10, %edx
callq 0x13590
movq %rax, -0x128(%rbp)
leaq -0x70(%rbp), %rdi
callq 0xa23d0
leaq -0x71(%rbp), %rdi
callq 0x26ce0
movq -0x128(%rbp), %rax
movq %rax, -0x50(%rbp)
cmpq $0xd800, -0x50(%rbp)    # imm = 0xD800
jb 0x1b92b
cmpq $0xdbff, -0x50(%rbp)    # imm = 0xDBFF
ja 0x1b92b
movq -0xf0(%rbp), %rcx
movq -0x30(%rbp), %rax
addq $0x6, %rax
cmpq 0x68(%rcx), %rax
jae 0x1b79d
movq -0x30(%rbp), %rax
movzbl 0x5(%rax), %eax
cmpl $0x5c, %eax
jne 0x1b79d
movq -0x30(%rbp), %rax
movzbl 0x6(%rax), %eax
cmpl $0x75, %eax
je 0x1b818
movl $0x10, %edi
callq 0x25740
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x130(%rbp)
leaq 0xb9edf(%rip), %rsi     # 0xd569a
callq 0x39560
jmp 0x1b7c2
movq -0x130(%rbp), %rdi
leaq 0xf96d8(%rip), %rsi     # 0x114ea8
leaq 0x13949(%rip), %rdx     # 0x2f120
callq 0x26790
jmp 0x1ba53
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x71(%rbp), %rdi
callq 0x26ce0
jmp 0x1ba3e
movq -0x130(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x257a0
jmp 0x1ba3e
movq -0x30(%rbp), %rax
addq $0x7, %rax
movq %rax, -0x140(%rbp)
leaq -0xa1(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0x26cc0
movq -0x140(%rbp), %rsi
movq -0x138(%rbp), %rcx
leaq -0xa0(%rbp), %rdi
movl $0x4, %edx
callq 0xa4ce0
jmp 0x1b85b
leaq -0xa0(%rbp), %rdi
movq %rdi, -0x150(%rbp)
callq 0xa3e10
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x10, %edx
callq 0x13590
movq -0x150(%rbp), %rdi
movq %rax, -0x148(%rbp)
callq 0xa23d0
leaq -0xa1(%rbp), %rdi
callq 0x26ce0
movq -0x148(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x50(%rbp), %rsi
movq -0x80(%rbp), %rdx
leaq -0xc8(%rbp), %rdi
callq 0x1de00
jmp 0x1b8bf
movq -0x100(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0xa3af0
jmp 0x1b8d4
leaq -0xc8(%rbp), %rdi
callq 0xa23d0
movq -0x30(%rbp), %rax
addq $0xa, %rax
movq %rax, -0x30(%rbp)
jmp 0x1ba01
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0xa1(%rbp), %rdi
callq 0x26ce0
jmp 0x1ba3e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0xa23d0
jmp 0x1ba3e
cmpq $0xdc00, -0x50(%rbp)    # imm = 0xDC00
jb 0x1b9a0
cmpq $0xdfff, -0x50(%rbp)    # imm = 0xDFFF
ja 0x1b9a0
movl $0x10, %edi
callq 0x25740
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x158(%rbp)
leaq 0xb9d53(%rip), %rsi     # 0xd56b0
callq 0x39560
jmp 0x1b964
movq -0x158(%rbp), %rdi
leaq 0xf9536(%rip), %rsi     # 0x114ea8
leaq 0x137a7(%rip), %rdx     # 0x2f120
callq 0x26790
jmp 0x1ba53
movq -0x158(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x257a0
jmp 0x1ba3e
movq -0x50(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
leaq -0xe8(%rbp), %rdi
callq 0x1de00
jmp 0x1b9b6
movq -0x100(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0xa3af0
jmp 0x1b9cb
leaq -0xe8(%rbp), %rdi
callq 0xa23d0
movq -0x30(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
jmp 0x1b9ff
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0xa23d0
jmp 0x1ba3e
jmp 0x1ba01
jmp 0x1ba03
jmp 0x1ba05
jmp 0x1ba07
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x1b518
movb $0x1, -0x11(%rbp)
testb $0x1, -0x11(%rbp)
jne 0x1ba2e
movq -0x100(%rbp), %rdi
callq 0xa23d0
movq -0xf8(%rbp), %rax
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
movq -0x100(%rbp), %rdi
callq 0xa23d0
movq -0x20(%rbp), %rdi
callq 0xd1250
nopw %cs:(%rax,%rax)
nopl (%rax)