// File: /workspace/github_c_makefile_star2_O3/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, %r14
leaq 0x8(%rdi), %r15
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x28764
movq %rsp, %rdi
movq %r12, %rsi
callq 0x1a414
movq %rsp, %rdi
callq 0x1a504
testb %al, %al
je 0x1a276
movq (%r15), %rdi
leaq 0x3a63e(%rip), %rsi     # 0x548a7
callq 0xc750
movq %rax, %r15
testq %rax, %rax
jne 0x1a2de
leaq 0x37d84(%rip), %rdx     # 0x52001
leaq 0x60(%rsp), %rdi
movl $0x3, %esi
movl $0xd92, %ecx            # imm = 0xD92
callq 0x268b2
movq 0x57d58(%rip), %rdi     # 0x71ff0
leaq 0x386b8(%rip), %rsi     # 0x52957
movl $0x15, %edx
callq 0xc700
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
movq 0x57d38(%rip), %rdi     # 0x71ff0
callq 0xc700
leaq 0x37fa9(%rip), %rsi     # 0x5226d
movl $0x1, %edx
movq %rax, %rdi
callq 0xc700
leaq 0x60(%rsp), %rdi
callq 0x269f4
xorl %r15d, %r15d
leaq 0x60(%rsp), %rdi
callq 0xc3f0
leaq 0x70(%rsp), %rdi
movq %rbx, %rsi
callq 0x1a604
leaq 0x40(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x130af
leaq 0x50(%rsp), %rbx
movq -0x10(%rbx), %rdi
movq %r15, %rsi
callq 0xc6d0
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0x1a32b
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xc600
movq %r15, %rdi
callq 0xc5c0
movq 0x57c66(%rip), %rsi     # 0x71fa0
leaq 0x60(%rsp), %rdi
callq 0xc440
leaq 0xe0(%rsp), %rdi
callq 0xc1d0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a36c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a387
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xc600
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x1a3bf
jmp 0x1a39a
movq %rax, %rbx
movq 0x57bfc(%rip), %rsi     # 0x71fa0
leaq 0x60(%rsp), %rdi
callq 0xc440
leaq 0xe0(%rsp), %rdi
callq 0xc1d0
jmp 0x1a3d6
jmp 0x1a3bf
movq %rax, %rbx
jmp 0x1a3d6
movq %rax, %rbx
jmp 0x1a3f1
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x269f4
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a3f1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a40c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xc600
movq %rbx, %rdi
callq 0xcbb0