// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, 0x20(%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x40(%rsi), %rsi
subq 0x30(%r14), %rsi
addq $-0x2, %rsi
callq 0x22d30
movq 0x30(%r14), %r15
movq 0x40(%r14), %rax
leaq 0x1(%r15), %r13
decq %rax
cmpq %rax, %r13
jae 0x267a0
leaq 0x180c3(%rip), %r12     # 0x3e655
movb 0x1(%r15), %al
cmpb $0x5c, %al
jne 0x265c7
leaq 0x2(%r15), %r13
movzbl 0x2(%r15), %eax
cmpl $0x61, %eax
jg 0x265e3
cmpl $0x22, %eax
je 0x26607
cmpl $0x2f, %eax
je 0x26613
cmpl $0x5c, %eax
jne 0x2674e
leaq 0x18099(%rip), %rsi     # 0x3e65b
jmp 0x26746
movq 0x8(%rbx), %rsi
movsbl %al, %r8d
movl $0x1, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x232a0
jmp 0x2674e
leal -0x6e(%rax), %ecx
cmpl $0x7, %ecx
ja 0x2661f
leaq 0x17a42(%rip), %rdx     # 0x3e034
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
leaq 0x1a3b1(%rip), %rsi     # 0x409b3
jmp 0x26746
leaq 0x19a22(%rip), %rsi     # 0x40030
jmp 0x26746
leaq 0x19c1f(%rip), %rsi     # 0x40239
jmp 0x26746
movq %r12, %rsi
cmpl $0x62, %eax
je 0x26746
cmpl $0x66, %eax
jne 0x2674e
leaq 0x1801c(%rip), %rsi     # 0x3e657
jmp 0x26746
leaq 0x10(%rsp), %rbp
movq %rbp, (%rsp)
movl 0x3(%r15), %eax
movl %eax, 0x10(%rsp)
movq $0x4, 0x8(%rsp)
movb $0x0, 0x14(%rsp)
movq %rbp, %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x21490
movq %rax, %r13
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x2667f
callq 0x22130
movq %r13, %rax
andq $-0x400, %rax           # imm = 0xFC00
cmpq $0xd800, %rax           # imm = 0xD800
jne 0x26766
leaq 0x8(%r15), %rax
cmpq 0x48(%r14), %rax
jae 0x267b2
cmpb $0x5c, 0x7(%r15)
jne 0x267b2
cmpb $0x75, (%rax)
jne 0x267b2
movq %r12, %rbp
leaq 0x10(%rsp), %r12
movq %r12, (%rsp)
movl 0x9(%r15), %eax
movl %eax, 0x10(%rsp)
movq $0x4, 0x8(%rsp)
movb $0x0, 0x14(%rsp)
movq %r12, %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x21490
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x266fb
movq %rax, %r12
callq 0x22130
movq %r12, %rax
movq %rsp, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x21990
movq %rbp, %r12
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x21440
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x26730
callq 0x22130
addq $0xc, %r15
jmp 0x2679b
leaq 0x17f1c(%rip), %rsi     # 0x3e659
jmp 0x26746
leaq 0x179e8(%rip), %rsi     # 0x3e12e
movq %rbx, %rdi
callq 0x233d0
movq %r13, %r15
incq %r13
movq 0x40(%r14), %rax
decq %rax
cmpq %rax, %r13
jb 0x26592
jmp 0x267a0
movq %rsp, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x21990
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x21440
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x26797
callq 0x22130
addq $0x6, %r15
movq %r15, %r13
jmp 0x2674e
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 0x17e97(%rip), %rsi     # 0x3e65d
movq %rax, %rdi
callq 0x23390
movq 0x277b3(%rip), %rsi     # 0x4df88
movq 0x2775c(%rip), %rdx     # 0x4df38
movq %r15, %rdi
callq 0x230a0
jmp 0x267e8
jmp 0x26813
movq %rax, %r14
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x26816
callq 0x22130
jmp 0x26816
jmp 0x26813
jmp 0x26813
movq %rax, %r14
movq %r15, %rdi
callq 0x21c50
jmp 0x26816
jmp 0x26813
movq %rax, %r14
movq (%rbx), %rdi
cmpq 0x20(%rsp), %rdi
je 0x26825
callq 0x22130
movq %r14, %rdi
callq 0x23170
nop