// File: halfflat[P]tinyopt/test/googletest/googletest/src/gtest.cc
// Function: testing::internal::XmlUnitTestResultPrinter::OutputXmlAttribute(std::ostream*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void XmlUnitTestResultPrinter::OutputXmlAttribute(
    std::ostream* stream, const std::string& element_name,
    const std::string& name, const std::string& value) {
  const std::vector<std::string>& allowed_names =
      GetReservedOutputAttributesForElement(element_name);

  GTEST_CHECK_(std::find(allowed_names.begin(), allowed_names.end(), name) !=
               allowed_names.end())
      << "Attribute " << name << " is not allowed for element <" << element_name
      << ">.";

  *stream << " " << name << "=\"" << EscapeXmlAttribute(value) << "\"";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x40(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
callq 0x90010
movq -0xa8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x416b0
movq %rax, -0x50(%rbp)
movq -0x28(%rbp), %rdi
callq 0x416e0
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rdx
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0xa9620
movq %rax, -0xa0(%rbp)
jmp 0x8fdee
movq -0xa0(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rdi
callq 0x416e0
movq %rax, -0x70(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x41cb0
movzbl %al, %edi
callq 0x78790
movb %al, -0xa9(%rbp)
jmp 0x8fe23
movb -0xa9(%rbp), %al
testb $0x1, %al
jne 0x8fe2f
jmp 0x8fe45
jmp 0x8ff33
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x8fffa
leaq 0x3e26f(%rip), %rdx     # 0xce0bb
leaq -0x74(%rbp), %rdi
movl $0x3, %esi
movl $0x1068, %ecx           # imm = 0x1068
callq 0x7d880
jmp 0x8fe61
leaq -0x74(%rbp), %rdi
callq 0x1f280
movq %rax, -0xb8(%rbp)
jmp 0x8fe73
movq -0xb8(%rbp), %rdi
leaq 0x3ef82(%rip), %rsi     # 0xcee03
callq 0x10720
movq %rax, -0xc0(%rbp)
jmp 0x8fe8f
movq -0xc0(%rbp), %rdi
leaq 0x3efcc(%rip), %rsi     # 0xcee69
callq 0x10720
movq %rax, -0xc8(%rbp)
jmp 0x8feab
movq -0xc8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x10680
movq %rax, -0xd0(%rbp)
jmp 0x8fec4
movq -0xd0(%rbp), %rdi
leaq 0x3efa2(%rip), %rsi     # 0xcee74
callq 0x10720
movq %rax, -0xd8(%rbp)
jmp 0x8fee0
movq -0xd8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x10680
movq %rax, -0xe0(%rbp)
jmp 0x8fef9
movq -0xe0(%rbp), %rdi
leaq 0x3ef8b(%rip), %rsi     # 0xcee92
callq 0x10720
jmp 0x8ff0e
leaq -0x74(%rbp), %rdi
callq 0x7d9c0
jmp 0x8ff33
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x74(%rbp), %rdi
callq 0x7d9c0
jmp 0x8fffa
movq -0x8(%rbp), %rdi
leaq 0x3e5bc(%rip), %rsi     # 0xce4fa
callq 0x10720
movq %rax, -0xe8(%rbp)
jmp 0x8ff4c
movq -0xe8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x10680
movq %rax, -0xf0(%rbp)
jmp 0x8ff65
movq -0xf0(%rbp), %rdi
leaq 0x3f01e(%rip), %rsi     # 0xcef91
callq 0x10720
movq %rax, -0xf8(%rbp)
jmp 0x8ff81
movq -0x20(%rbp), %rsi
leaq -0x98(%rbp), %rdi
callq 0xa9670
jmp 0x8ff93
movq -0xf8(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x10680
movq %rax, -0x100(%rbp)
jmp 0x8ffaf
movq -0x100(%rbp), %rdi
leaq 0x3f10f(%rip), %rsi     # 0xcf0cc
callq 0x10720
jmp 0x8ffc4
leaq -0x98(%rbp), %rdi
callq 0x10fc8
leaq -0x40(%rbp), %rdi
callq 0x390a0
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10fc8
leaq -0x40(%rbp), %rdi
callq 0x390a0
movq -0x60(%rbp), %rdi
callq 0x10e00
nopl (%rax)