// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/unittest/googletest/googletest/src/gtest.cc
// Function: testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile[abi:cxx11]()
std::string UnitTestOptions::GetAbsolutePathToOutputFile() {
  const char* const gtest_output_flag = GTEST_FLAG(output).c_str();
  if (gtest_output_flag == NULL)
    return "";

  const char* const colon = strchr(gtest_output_flag, ':');
  if (colon == NULL)
    return internal::FilePath::ConcatPaths(
        internal::FilePath(
            UnitTest::GetInstance()->original_working_dir()),
        internal::FilePath(kDefaultOutputFile)).string();

  internal::FilePath output_name(colon + 1);
  if (!output_name.IsAbsolutePath())
    // TODO(wan@google.com): on Windows \some\path is not an absolute
    // path (as its meaning depends on the current drive), yet the
    // following logic for turning it into an absolute path is wrong.
    // Fix it.
    output_name = internal::FilePath::ConcatPaths(
        internal::FilePath(UnitTest::GetInstance()->original_working_dir()),
        internal::FilePath(colon + 1));

  if (!output_name.IsDirectory())
    return output_name.string();

  internal::FilePath result(internal::FilePath::GenerateUniqueFileName(
      output_name, internal::GetCurrentExecutableName(),
      GetOutputFormat().c_str()));
  return result.string();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
movq 0x61258(%rip), %rdi     # 0x72738
testq %rdi, %rdi
je 0x1172f
movl $0x3a, %esi
callq 0xc240
testq %rax, %rax
je 0x1177b
movq %rax, %r15
leaq 0x1(%rax), %r14
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %r14, %rdi
callq 0xc260
leaq (%r15,%rax), %rdx
incq %rdx
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x2e9c2
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x28764
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1154f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
movq 0x68(%rsp), %rsi
cmpb $0x2f, (%rsi)
je 0x1167e
callq 0x10cf2
movq 0x612f7(%rip), %rax     # 0x72860
movq 0x10(%rax), %rsi
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x287b2
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x28764
leaq 0xb8(%rsp), %r15
movq %r15, -0x10(%r15)
movq %r14, %rdi
callq 0xc260
leaq (%rax,%r14), %rdx
leaq 0xa8(%rsp), %rdi
movq %r14, %rsi
callq 0x2e9c2
leaq 0x88(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x28764
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x88(%rsp), %rdx
callq 0x11aa0
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xc300
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x11605
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11626
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xc600
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
je 0x11643
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1165e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11679
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xc600
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
testq %rdx, %rdx
je 0x1174d
cmpb $0x2f, -0x1(%rsi,%rdx)
jne 0x1174d
leaq 0x48(%rsp), %rdi
callq 0x112c1
leaq 0x28(%rsp), %rdi
callq 0x11452
movq 0x28(%rsp), %rcx
leaq 0x8(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0x11c60
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x116df
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x116fa
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x2ea58
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1175f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x1175f
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x4678a(%rip), %rdx     # 0x57ec7
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x2e9c2
jmp 0x1189e
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x2ea58
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1189e
movq 0x78(%rsp), %rsi
jmp 0x11896
callq 0x10cf2
movq 0x610d9(%rip), %rax     # 0x72860
movq 0x10(%rax), %rsi
leaq 0x48(%rsp), %rdi
leaq 0xa8(%rsp), %rdx
callq 0x287b2
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x28764
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3fa41(%rip), %rsi     # 0x51200
leaq 0x3fa49(%rip), %rdx     # 0x5120f
leaq 0x88(%rsp), %rdi
callq 0x2e9c2
leaq 0x28(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x28764
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0x11aa0
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x2ea58
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11830
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1184b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xc600
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x11868
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11883
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1189e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xc600
movq %rbx, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x11a63
movq 0x18(%rsp), %rsi
jmp 0x119ad
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x118ee
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x118ee
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11a63
movq 0x58(%rsp), %rsi
jmp 0x119ad
jmp 0x11a60
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1192e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x1192e
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11954
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x11954
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
je 0x11976
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x11976
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11996
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x11996
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11a63
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x11a63
jmp 0x11a60
jmp 0x11a60
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x119e7
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x119e7
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11a07
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x11a07
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x11a29
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x11a29
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11a49
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x11a49
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11a97
movq 0x58(%rsp), %rsi
jmp 0x11a76
jmp 0x11a94
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11a97
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x11a97
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x11a97
movq 0x18(%rsp), %rsi
jmp 0x11a76
movq %rax, %rbx
movq %rbx, %rdi
callq 0xcbb0
nop