// File: /workspace/github_cpp_makefile_star2_O2/alfanick[P]rest-cpp/src/rest/json.hpp
// Function: nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, double, std::allocator>::lexer::get_string() const
string_t get_string() const
        {
            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)
            {
                // process escaped characters
                if (*i == '\\')
                {
                    // 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')
                                {
                                    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
                            {
                                // add unicode character(s)
                                result += to_unicode(codepoint);
                                // skip the next four characters (xxxx)
                                i += 4;
                            }
                            break;
                        }
                    }
                }
                else
                {
                    // all other characters are just copied to the end of the
                    // string
                    result.append(1, static_cast<typename string_t::value_type>(*i));
                }
            }

            return result;
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x10(%rdi), %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x40(%rsi), %rsi
subq 0x30(%r14), %rsi
addq $-0x2, %rsi
callq 0x32ec0
movq 0x30(%r14), %r13
leaq 0x143bd(%rip), %rbp     # 0x4a625
movq 0x40(%r14), %rax
movq %r13, %r15
incq %r13
decq %rax
cmpq %rax, %r13
jae 0x36448
movb (%r13), %al
cmpb $0x5c, %al
jne 0x362cf
movzbl 0x2(%r15), %eax
leaq 0x2(%r15), %r13
leal -0x6e(%rax), %ecx
cmpl $0x7, %ecx
jbe 0x362df
cmpl $0x22, %eax
je 0x363ef
cmpl $0x2f, %eax
je 0x36401
cmpl $0x5c, %eax
je 0x363f8
movq %rbp, %rsi
cmpl $0x62, %eax
je 0x36408
cmpl $0x66, %eax
jne 0x36268
leaq 0x1435d(%rip), %rsi     # 0x4a627
jmp 0x36408
movsbl %al, %edx
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0x31f50
jmp 0x36268
leaq 0x13d66(%rip), %rdx     # 0x4a04c
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
leaq 0x165ed(%rip), %rsi     # 0x4c8e3
jmp 0x36408
leaq 0x13e33(%rip), %rsi     # 0x4a135
jmp 0x36408
leaq 0x18(%rsp), %rax
leaq 0x7(%r15), %rbp
leaq 0x3(%r15), %rsi
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %r12
movq %rbp, %rdx
movq %r12, %rdi
callq 0x309f0
movq 0x8(%rsp), %rdi
xorl %esi, %esi
pushq $0x10
popq %rdx
callq 0x307d0
movq %r12, %rdi
movq %rax, %r13
callq 0x33b38
movq %r13, %rax
andq $-0x400, %rax           # imm = 0xFC00
cmpq $0xd800, %rax           # imm = 0xD800
jne 0x36415
leaq 0x8(%r15), %rax
cmpq 0x48(%r14), %rax
jae 0x3645a
cmpb $0x5c, (%rbp)
jne 0x3645a
cmpb $0x75, (%rax)
jne 0x3645a
leaq 0x18(%rsp), %rax
leaq 0xd(%r15), %rdx
leaq 0x9(%r15), %rsi
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x309f0
movq 0x8(%rsp), %rdi
xorl %esi, %esi
pushq $0x10
popq %rdx
callq 0x307d0
movq %r12, %rdi
movq %rax, %rbp
callq 0x33b38
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x30fe0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x33a00
leaq 0x14253(%rip), %rbp     # 0x4a625
movq %r12, %rdi
callq 0x33b38
addq $0xc, %r15
movq %r15, %r13
jmp 0x36268
leaq 0x1423c(%rip), %rsi     # 0x4a629
jmp 0x36408
leaq 0x15adb(%rip), %rsi     # 0x4bed1
jmp 0x36408
leaq 0x1422c(%rip), %rsi     # 0x4a62b
jmp 0x36408
leaq 0x15cd1(%rip), %rsi     # 0x4c0d9
movq %rbx, %rdi
callq 0x33910
jmp 0x36268
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x30fe0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x33a00
leaq 0x141f1(%rip), %rbp     # 0x4a625
movq %r12, %rdi
callq 0x33b38
addq $0x6, %r15
movq %r15, %r13
jmp 0x36268
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x30c90
movq %rax, %r15
leaq 0x141c1(%rip), %rsi     # 0x4a62d
movq %rax, %rdi
callq 0x338b0
movq 0x26b05(%rip), %rsi     # 0x5cf80
movq 0x26aa6(%rip), %rdx     # 0x5cf28
movq %r15, %rdi
callq 0x333b0
jmp 0x364b4
jmp 0x36490
jmp 0x364b4
leaq 0x8(%rsp), %rdi
movq %rax, %r14
callq 0x33b38
jmp 0x364b7
jmp 0x364b4
jmp 0x364b4
jmp 0x364b4
movq %r15, %rdi
movq %rax, %r14
callq 0x31400
jmp 0x364b7
jmp 0x364b4
movq %rax, %r14
movq %rbx, %rdi
callq 0x33b38
movq %r14, %rdi
callq 0x33510
nop