// File: /workspace/github_c_makefile_star2_O0/deplinenoise[P]tundra/unittest/googletest/googletest/src/gtest-filepath.cc
// Function: testing::internal::FilePath::MakeFileName(testing::internal::FilePath const&, testing::internal::FilePath const&, int, char const*)
FilePath FilePath::MakeFileName(const FilePath& directory,
                                const FilePath& base_name,
                                int number,
                                const char* extension) {
  std::string file;
  if (number == 0) {
    file = base_name.string() + "." + extension;
  } else {
    file = base_name.string() + "_" + StreamableToString(number)
        + "." + extension;
  }
  return ConcatPaths(directory, FilePath(file));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
movq %rdi, -0x168(%rbp)
movq %rdi, %rax
movq %rax, -0x160(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
leaq -0x48(%rbp), %rdi
callq 0xeb70
cmpl $0x0, -0x1c(%rbp)
jne 0x2d237
movq -0x18(%rbp), %rdi
callq 0x30940
movq %rax, -0x170(%rbp)
jmp 0x2d1a4
movq -0x170(%rbp), %rsi
leaq 0x5d3cc(%rip), %rdx     # 0x8a57e
leaq -0x88(%rbp), %rdi
callq 0x309d0
jmp 0x2d1c0
movq -0x28(%rbp), %rdx
leaq -0x68(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x30980
jmp 0x2d1d6
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0xe9f0
leaq -0x68(%rbp), %rdi
callq 0xf058
leaq -0x88(%rbp), %rdi
callq 0xf058
jmp 0x2d399
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
jmp 0x2d415
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
leaq -0x88(%rbp), %rdi
callq 0xf058
jmp 0x2d415
movq -0x18(%rbp), %rdi
callq 0x30940
movq %rax, -0x178(%rbp)
jmp 0x2d249
movq -0x178(%rbp), %rsi
leaq 0x5e5ca(%rip), %rdx     # 0x8b821
leaq -0x118(%rbp), %rdi
callq 0x309d0
jmp 0x2d265
leaq -0x138(%rbp), %rdi
leaq -0x1c(%rbp), %rsi
callq 0x35870
jmp 0x2d277
leaq -0xf8(%rbp), %rdi
leaq -0x118(%rbp), %rsi
leaq -0x138(%rbp), %rdx
callq 0x357a0
jmp 0x2d293
leaq 0x5d2e4(%rip), %rdx     # 0x8a57e
leaq -0xd8(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0x30980
jmp 0x2d2af
movq -0x28(%rbp), %rdx
leaq -0xb8(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x30980
jmp 0x2d2c8
leaq -0x48(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0xe9f0
leaq -0xb8(%rbp), %rdi
callq 0xf058
leaq -0xd8(%rbp), %rdi
callq 0xf058
leaq -0xf8(%rbp), %rdi
callq 0xf058
leaq -0x138(%rbp), %rdi
callq 0xf058
leaq -0x118(%rbp), %rdi
callq 0xf058
jmp 0x2d399
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
jmp 0x2d38b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
jmp 0x2d37f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
jmp 0x2d373
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0xf058
leaq -0xf8(%rbp), %rdi
callq 0xf058
leaq -0x138(%rbp), %rdi
callq 0xf058
leaq -0x118(%rbp), %rdi
callq 0xf058
jmp 0x2d415
movq -0x10(%rbp), %rax
movq %rax, -0x180(%rbp)
leaq -0x158(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x30820
jmp 0x2d3b6
movq -0x180(%rbp), %rsi
movq -0x168(%rbp), %rdi
leaq -0x158(%rbp), %rdx
callq 0x15140
jmp 0x2d3d2
leaq -0x158(%rbp), %rdi
callq 0x30870
leaq -0x48(%rbp), %rdi
callq 0xf058
movq -0x160(%rbp), %rax
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
leaq -0x158(%rbp), %rdi
callq 0x30870
leaq -0x48(%rbp), %rdi
callq 0xf058
movq -0x90(%rbp), %rdi
callq 0xee80
nopw (%rax,%rax)