// File: /workspace/github_cpp_makefile_star2_O3/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)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rax, 0x20(%rsp)
movq 0x40(%rsi), %rsi
subq 0x30(%r14), %rsi
addq $-0x2, %rsi
callq 0x22d30
movq 0x40(%r14), %rax
movq 0x30(%r14), %r15
leaq 0x1(%r15), %r13
decq %rax
cmpq %rax, %r13
jae 0x266e8
leaq 0x1717b(%rip), %r12     # 0x3d655
movb 0x1(%r15), %al
cmpb $0x5c, %al
jne 0x2650f
movzbl 0x2(%r15), %eax
leaq 0x2(%r15), %r13
cmpl $0x61, %eax
jg 0x2652b
cmpl $0x22, %eax
je 0x2654f
cmpl $0x2f, %eax
je 0x2655b
cmpl $0x5c, %eax
jne 0x26696
leaq 0x17151(%rip), %rsi     # 0x3d65b
jmp 0x2668e
movq 0x8(%rbx), %rsi
movsbl %al, %r8d
movl $0x1, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x23290
jmp 0x26696
leal -0x6e(%rax), %ecx
cmpl $0x7, %ecx
ja 0x26567
leaq 0x16afa(%rip), %rdx     # 0x3d034
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
leaq 0x19469(%rip), %rsi     # 0x3f9b3
jmp 0x2668e
leaq 0x18ada(%rip), %rsi     # 0x3f030
jmp 0x2668e
leaq 0x18cd7(%rip), %rsi     # 0x3f239
jmp 0x2668e
movq %r12, %rsi
cmpl $0x62, %eax
je 0x2668e
cmpl $0x66, %eax
jne 0x26696
leaq 0x170d4(%rip), %rsi     # 0x3d657
jmp 0x2668e
leaq 0x10(%rsp), %rbp
movl $0x10, %edx
xorl %esi, %esi
movq %rbp, (%rsp)
movq %rbp, %rdi
movl 0x3(%r15), %eax
movl %eax, 0x10(%rsp)
movq $0x4, 0x8(%rsp)
movb $0x0, 0x14(%rsp)
callq 0x21490
movq (%rsp), %rdi
movq %rax, %r13
cmpq %rbp, %rdi
je 0x265c7
callq 0x22130
movq %r13, %rax
andq $-0x400, %rax           # imm = 0xFC00
cmpq $0xd800, %rax           # imm = 0xD800
jne 0x266ae
leaq 0x8(%r15), %rax
cmpq 0x48(%r14), %rax
jae 0x266fa
cmpb $0x5c, 0x7(%r15)
jne 0x266fa
cmpb $0x75, (%rax)
jne 0x266fa
movq %r12, %rbp
leaq 0x10(%rsp), %r12
movl $0x10, %edx
xorl %esi, %esi
movq %r12, (%rsp)
movq %r12, %rdi
movl 0x9(%r15), %eax
movl %eax, 0x10(%rsp)
movq $0x4, 0x8(%rsp)
movb $0x0, 0x14(%rsp)
callq 0x21490
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x26643
movq %rax, %r12
callq 0x22130
movq %r12, %rax
movq %rsp, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x21990
movq 0x8(%rsp), %rdx
movq (%rsp), %rsi
movq %rbp, %r12
movq %rbx, %rdi
callq 0x21440
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x26678
callq 0x22130
addq $0xc, %r15
jmp 0x266e3
leaq 0x16fd4(%rip), %rsi     # 0x3d659
jmp 0x2668e
leaq 0x16aa0(%rip), %rsi     # 0x3d12e
movq %rbx, %rdi
callq 0x233c0
movq 0x40(%r14), %rax
movq %r13, %r15
incq %r13
decq %rax
cmpq %rax, %r13
jb 0x264da
jmp 0x266e8
movq %rsp, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x21990
movq 0x8(%rsp), %rdx
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x21440
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x266df
callq 0x22130
addq $0x6, %r15
movq %r15, %r13
jmp 0x26696
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x217b0
movq %rax, %r15
leaq 0x16f4f(%rip), %rsi     # 0x3d65d
movq %rax, %rdi
callq 0x23380
movq 0x2686b(%rip), %rsi     # 0x4cf88
movq 0x26814(%rip), %rdx     # 0x4cf38
movq %r15, %rdi
callq 0x23090
jmp 0x26730
jmp 0x2675b
movq (%rsp), %rdi
movq %rax, %r14
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2675e
callq 0x22130
jmp 0x2675e
jmp 0x2675b
jmp 0x2675b
movq %r15, %rdi
movq %rax, %r14
callq 0x21c50
jmp 0x2675e
jmp 0x2675b
movq %rax, %r14
movq (%rbx), %rdi
cmpq 0x20(%rsp), %rdi
je 0x2676d
callq 0x22130
movq %r14, %rdi
callq 0x23160
nop