// File: /workspace/github_cpp_makefile_star2_O3/ambersun1234[P]AVL_Tree/./googletest/googletest/src/gtest.cc
// Function: testing::internal::JsonUnitTestResultPrinter::EscapeJson(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string JsonUnitTestResultPrinter::EscapeJson(const std::string& str) {
  Message m;

  for (size_t i = 0; i < str.size(); ++i) {
    const char ch = str[i];
    switch (ch) {
      case '\\':
      case '"':
      case '/':
        m << '\\' << ch;
        break;
      case '\b':
        m << "\\b";
        break;
      case '\t':
        m << "\\t";
        break;
      case '\n':
        m << "\\n";
        break;
      case '\f':
        m << "\\f";
        break;
      case '\r':
        m << "\\r";
        break;
      default:
        if (ch < ' ') {
          m << "\\u00" << String::FormatByte(static_cast<unsigned char>(ch));
        } else {
          m << ch;
        }
        break;
    }
  }

  return m.GetString();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r15
movq %rdi, 0x28(%rsp)
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0x10f40
cmpq $0x0, 0x8(%r15)
movq (%rbx), %rax
movq %rax, (%rsp)
je 0x1cc81
movq (%rsp), %rax
leaq 0x10(%rax), %r12
xorl %r14d, %r14d
leaq 0x8(%rsp), %rbx
movq (%r15), %rax
movb (%rax,%r14), %r13b
movzbl %r13b, %ebp
leal -0x8(%rbp), %eax
cmpl $0x5, %eax
ja 0x1cb99
leaq 0x180c3(%rip), %rcx     # 0x34c40
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
leaq 0x19b59(%rip), %rsi     # 0x366e4
jmpq *%rax
leaq 0x19b4d(%rip), %rsi     # 0x366e1
jmp 0x1cc4e
leal -0x22(%rbp), %eax
cmpl $0x3a, %eax
ja 0x1cbdd
movabsq $0x400000000002001, %rcx # imm = 0x400000000002001
btq %rax, %rcx
jae 0x1cbdd
movb $0x5c, 0x8(%rsp)
movl $0x1, %edx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x7560
movb %r13b, 0x8(%rsp)
movl $0x1, %edx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x7560
jmp 0x1cc5b
cmpb $0x1f, %r13b
jg 0x1cc6a
movl $0x4, %edx
movq %r12, %rdi
leaq 0x19afa(%rip), %rsi     # 0x366f0
callq 0x7560
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1455c
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r12, %rdi
callq 0x7560
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1cc5b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7480
jmp 0x1cc5b
leaq 0x19aae(%rip), %rsi     # 0x366ea
jmp 0x1cc4e
leaq 0x19aa8(%rip), %rsi     # 0x366ed
jmp 0x1cc4e
leaq 0x19a99(%rip), %rsi     # 0x366e7
movl $0x2, %edx
movq %r12, %rdi
callq 0x7560
incq %r14
cmpq 0x8(%r15), %r14
jb 0x1cb63
jmp 0x1cc81
movb %r13b, 0x8(%rsp)
movl $0x1, %edx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x7560
jmp 0x1cc5b
movq 0x28(%rsp), %r14
movq %r14, %rdi
movq (%rsp), %rbx
movq %rbx, %rsi
callq 0x111a9
testq %rbx, %rbx
je 0x1cca3
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1ccdc
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1ccdf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7480
jmp 0x1ccdf
jmp 0x1ccdc
jmp 0x1ccdc
movq %rax, %r14
cmpq $0x0, (%rsp)
je 0x1ccf0
movq (%rsp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
callq 0x7960