// File: /workspace/github_cpp_makefile_star2_O1/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, %r14
movq %rdi, 0x30(%rsp)
leaq 0x8(%rsp), %rdi
callq 0x11254
cmpq $0x0, 0x8(%r14)
je 0x1d16e
movq 0x8(%rsp), %r15
addq $0x10, %r15
xorl %r13d, %r13d
leaq 0x10(%rsp), %rbx
movq (%r14), %rax
movb (%rax,%r13), %r12b
movzbl %r12b, %ebp
leal -0x8(%rbp), %eax
cmpl $0x5, %eax
ja 0x1d086
leaq 0x17ba6(%rip), %rcx     # 0x34c10
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
leaq 0x1963c(%rip), %rsi     # 0x366b4
jmpq *%rax
leaq 0x19630(%rip), %rsi     # 0x366b1
jmp 0x1d13b
leal -0x22(%rbp), %eax
cmpl $0x3a, %eax
ja 0x1d0ca
movabsq $0x400000000002001, %rcx # imm = 0x400000000002001
btq %rax, %rcx
jae 0x1d0ca
movb $0x5c, 0x10(%rsp)
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x7560
movb %r12b, 0x10(%rsp)
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x7560
jmp 0x1d148
cmpb $0x1f, %r12b
jg 0x1d157
movl $0x4, %edx
movq %r15, %rdi
leaq 0x195dd(%rip), %rsi     # 0x366c0
callq 0x7560
movq %rbx, %rdi
movl %ebp, %esi
callq 0x148bc
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rdi
callq 0x7560
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1d148
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x7480
jmp 0x1d148
leaq 0x19591(%rip), %rsi     # 0x366ba
jmp 0x1d13b
leaq 0x1958b(%rip), %rsi     # 0x366bd
jmp 0x1d13b
leaq 0x1957c(%rip), %rsi     # 0x366b7
movl $0x2, %edx
movq %r15, %rdi
callq 0x7560
incq %r13
cmpq 0x8(%r14), %r13
jb 0x1d050
jmp 0x1d16e
movb %r12b, 0x10(%rsp)
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x7560
jmp 0x1d148
movq 0x8(%rsp), %r14
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x114c9
testq %r14, %r14
je 0x1d19a
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1d1d3
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1d1d6
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x7480
jmp 0x1d1d6
jmp 0x1d1d3
jmp 0x1d1d3
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1d1ef
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x7960
nop