// File: /workspace/github_cpp_makefile_star2_O3/jo-qzy[P]MyJson/./json.hpp
// Function: JSON::value_parse::parse_string(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>>>&)
int parse_string(std::string& tmp_str, std::string::const_iterator& tmp_it) {
            char ch = 0;
            tmp_it++;
            while (tmp_it != json_source.end()) {
                ch = *tmp_it++;
                switch (ch) {
                case '\"':
                    return PARSE_OK;
                case '\\':
                    if (tmp_it != json_source.end()) {
                        switch (*tmp_it++) {
                        case '\"': tmp_str += '\"'; break;
                        case 'n': tmp_str += '\n'; break;
                        case 'r': tmp_str += '\r'; break;
                        case 't': tmp_str += '\t'; break;
                        case 'f': tmp_str += '\f'; break;
                        case 'b': tmp_str += '\b'; break;
                        case '/': tmp_str += '/'; break;
                        case '\\': tmp_str += '\\'; break;
                        case 'u': { 
                            unsigned u = 0;
                            int ret = 0;
                            if ((ret = parse_hex4(tmp_it, u)) != PARSE_OK)
                                return ret;
                            if (u >= 0xD800 && u <= 0xDBFF) {
                                CHECK_ITERATOR(tmp_it);
                                if (*tmp_it++ != '\\')
                                    return PARSE_INVALID_UNICODE_SURROGATE;
                                CHECK_ITERATOR(tmp_it);
                                if (*tmp_it++ != 'u')
                                    return PARSE_INVALID_UNICODE_SURROGATE;
                                unsigned tmp_u;
                                if ((ret = parse_hex4(tmp_it, tmp_u)) != PARSE_OK)
                                    return ret;
                                if (tmp_u <0xDC00 || tmp_u > 0xDFFF)
                                    return PARSE_INVALID_UNICODE_SURROGATE;
                                u = 0x10000 + (u - 0xD800) * 0x400 + (tmp_u - 0xDC00);
                            }
                            if (u > 0x10FFFF)
                                return PARSE_INVALID_UNICODE_HEX;
                            encode_utf8(u, tmp_str);
                            break;
                        }
                        default: return PARSE_INVALID_STRING_ESCAPE;
                        }
                    }
                    else
                        return PARSE_MISS_QUOTATION_MARK;
                    break;
                case '\0':
                    return PARSE_MISS_QUOTATION_MARK;
                default:
                    if (ch < 0x20)
                        return PARSE_INVALID_STRING_CHAR;
                    tmp_str += ch;
                    break;
                }
            }
            return PARSE_MISS_QUOTATION_MARK;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rdx), %rax
incq %rax
movq %rax, (%rdx)
movq (%rdi), %rcx
addq 0x8(%rdi), %rcx
cmpq %rcx, %rax
je 0x50de
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x213f(%rip), %r13      # 0x705c
leaq -0x2c(%rbp), %r12
leaq 0x1(%rax), %rsi
movq %rsi, (%rbx)
movzbl (%rax), %edx
cmpl $0x5c, %edx
je 0x4f69
testl %edx, %edx
je 0x50de
cmpl $0x22, %edx
je 0x50f2
cmpb $0x20, %dl
jl 0x50f6
movsbl %dl, %esi
movq %r14, %rdi
callq 0x21b0
movq (%r15), %rcx
addq 0x8(%r15), %rcx
movq (%rbx), %rax
cmpq %rcx, %rax
jne 0x4f21
jmp 0x50de
cmpq %rcx, %rsi
je 0x50de
leaq 0x2(%rax), %rcx
movq %rcx, (%rbx)
movzbl 0x1(%rax), %ecx
movl $0x7, %eax
cmpl $0x61, %ecx
jg 0x4fa4
cmpl $0x22, %ecx
je 0x4fca
cmpl $0x2f, %ecx
je 0x4fc0
cmpl $0x5c, %ecx
jne 0x50e3
movq %r14, %rdi
movl $0x5c, %esi
jmp 0x4f50
leal -0x6e(%rcx), %edx
cmpl $0x7, %edx
ja 0x4fd7
movslq (%r13,%rdx,4), %rcx
addq %r13, %rcx
jmpq *%rcx
movq %r14, %rdi
movl $0xa, %esi
jmp 0x4f50
movq %r14, %rdi
movl $0x2f, %esi
jmp 0x4f50
movq %r14, %rdi
movl $0x22, %esi
jmp 0x4f50
cmpl $0x62, %ecx
je 0x50d1
cmpl $0x66, %ecx
jne 0x50e3
movq %r14, %rdi
movl $0xc, %esi
jmp 0x4f50
movl $0x0, -0x2c(%rbp)
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x53f2
testl %eax, %eax
jne 0x50e3
movl -0x2c(%rbp), %eax
movl %eax, %ecx
andl $0xfffffc00, %ecx       # imm = 0xFFFFFC00
cmpl $0xd800, %ecx           # imm = 0xD800
jne 0x509d
movq (%r15), %rdx
addq 0x8(%r15), %rdx
movq (%rbx), %rcx
movl $0x5, %eax
cmpq %rdx, %rcx
je 0x50e3
leaq 0x1(%rcx), %rsi
movq %rsi, (%rbx)
cmpb $0x5c, (%rcx)
jne 0x5104
cmpq %rdx, %rsi
je 0x50e3
leaq 0x2(%rcx), %rax
movq %rax, (%rbx)
cmpb $0x75, 0x1(%rcx)
movl $0x9, %eax
jne 0x50e3
movq %r15, %rdi
movq %rbx, %rsi
leaq -0x30(%rbp), %rdx
callq 0x53f2
testl %eax, %eax
jne 0x50e3
movl -0x30(%rbp), %eax
leal -0xe000(%rax), %ecx
cmpl $0xfffffbff, %ecx       # imm = 0xFFFFFBFF
jbe 0x5104
movl -0x2c(%rbp), %ecx
shll $0xa, %ecx
addl %ecx, %eax
addl $0xfca02400, %eax       # imm = 0xFCA02400
movl %eax, -0x2c(%rbp)
cmpl $0x110000, %eax         # imm = 0x110000
jae 0x50fd
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x5476
jmp 0x4f55
movq %r14, %rdi
movl $0x9, %esi
jmp 0x4f50
movq %r14, %rdi
movl $0xd, %esi
jmp 0x4f50
movq %r14, %rdi
movl $0x8, %esi
jmp 0x4f50
movl $0x5, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0x50e3
movl $0x6, %eax
jmp 0x50e3
movl $0x8, %eax
jmp 0x50e3
movl $0x9, %eax
jmp 0x50e3
nop