// File: /workspace/github_cpp_makefile_star2_O2/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, %r14
movq %rsi, %r15
movq %rdi, %r12
movq (%rdx), %rax
incq %rax
movq %rax, (%rdx)
pushq $0x5
popq %rbx
leaq 0x27b0(%rip), %r13      # 0x705c
movq (%r12), %rdx
addq 0x8(%r12), %rdx
cmpq %rdx, %rax
je 0x4a56
leaq 0x1(%rax), %rsi
movq %rsi, (%r14)
movzbl (%rax), %ecx
cmpl $0x5c, %ecx
je 0x48f2
testl %ecx, %ecx
je 0x4a56
cmpl $0x22, %ecx
je 0x4a4f
cmpb $0x20, %cl
jl 0x4a53
movsbl %cl, %esi
movq %r15, %rdi
jmp 0x4a42
cmpq %rdx, %rsi
je 0x4a56
leaq 0x2(%rax), %rcx
movq %rcx, (%r14)
movzbl 0x1(%rax), %eax
leal -0x6e(%rax), %ecx
cmpl $0x7, %ecx
jbe 0x4945
cmpl $0x66, %eax
je 0x4a27
cmpl $0x2f, %eax
je 0x4a35
cmpl $0x5c, %eax
je 0x4a2e
cmpl $0x62, %eax
je 0x4a3c
cmpl $0x22, %eax
jne 0x4a6f
movq %r15, %rdi
pushq $0x22
jmp 0x4a41
movslq (%r13,%rcx,4), %rax
addq %r13, %rax
jmpq *%rax
movq %r15, %rdi
pushq $0xa
jmp 0x4a41
movq %r15, %rdi
pushq $0xd
jmp 0x4a41
andl $0x0, -0x2c(%rbp)
movq %r12, %rdi
movq %r14, %rsi
leaq -0x2c(%rbp), %rdx
callq 0x4d2a
testl %eax, %eax
jne 0x4a67
movl -0x2c(%rbp), %eax
movl %eax, %ecx
andl $0xfffffc00, %ecx       # imm = 0xFFFFFC00
cmpl $0xd800, %ecx           # imm = 0xD800
jne 0x4a08
movq (%r12), %rcx
addq 0x8(%r12), %rcx
movq (%r14), %rax
cmpq %rcx, %rax
je 0x4a56
leaq 0x1(%rax), %rdx
movq %rdx, (%r14)
cmpb $0x5c, (%rax)
jne 0x4a6b
cmpq %rcx, %rdx
je 0x4a56
leaq 0x2(%rax), %rcx
movq %rcx, (%r14)
cmpb $0x75, 0x1(%rax)
jne 0x4a6b
movq %r12, %rdi
movq %r14, %rsi
leaq -0x30(%rbp), %rdx
callq 0x4d2a
testl %eax, %eax
jne 0x4a67
movl -0x30(%rbp), %eax
leal -0xe000(%rax), %ecx
cmpl $0xfffffbff, %ecx       # imm = 0xFFFFFBFF
jbe 0x4a6b
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 0x4a73
movq %r12, %rdi
leaq -0x2c(%rbp), %rsi
movq %r15, %rdx
callq 0x4dd4
jmp 0x4a47
movq %r15, %rdi
pushq $0x9
jmp 0x4a41
movq %r15, %rdi
pushq $0xc
jmp 0x4a41
movq %r15, %rdi
pushq $0x5c
jmp 0x4a41
movq %r15, %rdi
pushq $0x2f
jmp 0x4a41
movq %r15, %rdi
pushq $0x8
popq %rsi
callq 0x2170
movq (%r14), %rax
jmp 0x48ac
xorl %ebx, %ebx
jmp 0x4a56
pushq $0x6
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %ebx
jmp 0x4a56
pushq $0x9
jmp 0x4a55
pushq $0x7
jmp 0x4a55
pushq $0x8
jmp 0x4a55
nop