// File: /workspace/github_c_makefile_star2_O1/deplinenoise[P]tundra/unittest/googletest/googletest/src/gtest.cc
// Function: testing::internal::XmlUnitTestResultPrinter::OnTestIterationEnd(testing::UnitTest const&, int)
void XmlUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test,
                                                  int /*iteration*/) {
  FILE* xmlout = NULL;
  FilePath output_file(output_file_);
  FilePath output_dir(output_file.RemoveFileName());

  if (output_dir.CreateDirectoriesRecursively()) {
    xmlout = posix::FOpen(output_file_.c_str(), "w");
  }
  if (xmlout == NULL) {
    // TODO(wan): report the reason of the failure.
    //
    // We don't do it for now as:
    //
    //   1. There is no urgent need for it.
    //   2. It's a bit involved to make the errno variable thread-safe on
    //      all three operating systems (Linux, Windows, and Mac OS).
    //   3. To interpret the meaning of errno in a thread-safe way,
    //      we need the strerror_r() function, which is not available on
    //      Windows.
    GTEST_LOG_(FATAL) << "Unable to open file \"" 
                      << output_file_ << "\"";
  }
  std::stringstream stream;
  PrintXmlUnitTest(&stream, unit_test);
  fprintf(xmlout, "%s", StringStreamToString(&stream).c_str());
  fclose(xmlout);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x8(%rdi), %r14
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x28b24
movq %rsp, %rdi
movq %r12, %rsi
callq 0x1a6c8
movq %rsp, %rdi
callq 0x1a7b8
testb %al, %al
je 0x1a525
movq (%r14), %rdi
leaq 0x3b35c(%rip), %rsi     # 0x55877
callq 0xc750
movq %rax, %r14
jmp 0x1a528
xorl %r14d, %r14d
testq %r14, %r14
jne 0x1a592
leaq 0x38a9d(%rip), %rdx     # 0x52fd1
leaq 0x60(%rsp), %rdi
movl $0x3, %esi
movl $0xd92, %ecx            # imm = 0xD92
callq 0x26c0e
movq 0x58aa1(%rip), %rdi     # 0x72ff0
leaq 0x393d1(%rip), %rsi     # 0x53927
movl $0x15, %edx
callq 0xc700
movq 0x8(%r15), %rsi
movq 0x10(%r15), %rdx
movq 0x58a81(%rip), %rdi     # 0x72ff0
callq 0xc700
leaq 0x38cc2(%rip), %rsi     # 0x5323d
movl $0x1, %edx
movq %rax, %rdi
callq 0xc700
leaq 0x60(%rsp), %rdi
callq 0x26d50
leaq 0x60(%rsp), %rdi
callq 0xc3f0
leaq 0x70(%rsp), %rdi
movq %rbx, %rsi
callq 0x1a8ce
leaq 0x40(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x13163
leaq 0x50(%rsp), %rbx
movq -0x10(%rbx), %rdi
movq %r14, %rsi
callq 0xc6d0
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0x1a5df
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xc600
movq %r14, %rdi
callq 0xc5c0
movq 0x589b2(%rip), %rsi     # 0x72fa0
leaq 0x60(%rsp), %rdi
callq 0xc440
leaq 0xe0(%rsp), %rdi
callq 0xc1d0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a620
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a63b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xc600
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x1a673
jmp 0x1a64e
movq %rax, %rbx
movq 0x58948(%rip), %rsi     # 0x72fa0
leaq 0x60(%rsp), %rdi
callq 0xc440
leaq 0xe0(%rsp), %rdi
callq 0xc1d0
jmp 0x1a68a
jmp 0x1a673
movq %rax, %rbx
jmp 0x1a68a
movq %rax, %rbx
jmp 0x1a6a5
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x26d50
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a6a5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a6c0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xc600
movq %rbx, %rdi
callq 0xcbb0