// File: halfflat[P]tinyopt/test/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 0x10b60
cmpl $0x0, -0x1c(%rbp)
jne 0x7b827
movq -0x18(%rbp), %rdi
callq 0xa38f0
movq %rax, -0x170(%rbp)
jmp 0x7b794
movq -0x170(%rbp), %rsi
leaq 0x4e2e1(%rip), %rdx     # 0xc9a83
leaq -0x88(%rbp), %rdi
callq 0x3c8f0
jmp 0x7b7b0
movq -0x28(%rbp), %rdx
leaq -0x68(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0xa2b40
jmp 0x7b7c6
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x109b0
leaq -0x68(%rbp), %rdi
callq 0x10fc8
leaq -0x88(%rbp), %rdi
callq 0x10fc8
jmp 0x7b989
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
jmp 0x7ba05
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x10fc8
jmp 0x7ba05
movq -0x18(%rbp), %rdi
callq 0xa38f0
movq %rax, -0x178(%rbp)
jmp 0x7b839
movq -0x178(%rbp), %rsi
leaq 0x525a1(%rip), %rdx     # 0xcdde8
leaq -0x118(%rbp), %rdi
callq 0x3c8f0
jmp 0x7b855
leaq -0x138(%rbp), %rdi
leaq -0x1c(%rbp), %rsi
callq 0xa2c60
jmp 0x7b867
leaq -0xf8(%rbp), %rdi
leaq -0x118(%rbp), %rsi
leaq -0x138(%rbp), %rdx
callq 0xa2b90
jmp 0x7b883
leaq 0x4e1f9(%rip), %rdx     # 0xc9a83
leaq -0xd8(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0xa2b40
jmp 0x7b89f
movq -0x28(%rbp), %rdx
leaq -0xb8(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0xa2b40
jmp 0x7b8b8
leaq -0x48(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x109b0
leaq -0xb8(%rbp), %rdi
callq 0x10fc8
leaq -0xd8(%rbp), %rdi
callq 0x10fc8
leaq -0xf8(%rbp), %rdi
callq 0x10fc8
leaq -0x138(%rbp), %rdi
callq 0x10fc8
leaq -0x118(%rbp), %rdi
callq 0x10fc8
jmp 0x7b989
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
jmp 0x7b97b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
jmp 0x7b96f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
jmp 0x7b963
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x10fc8
leaq -0xf8(%rbp), %rdi
callq 0x10fc8
leaq -0x138(%rbp), %rdi
callq 0x10fc8
leaq -0x118(%rbp), %rdi
callq 0x10fc8
jmp 0x7ba05
movq -0x10(%rbp), %rax
movq %rax, -0x180(%rbp)
leaq -0x158(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0xa3810
jmp 0x7b9a6
movq -0x180(%rbp), %rsi
movq -0x168(%rbp), %rdi
leaq -0x158(%rbp), %rdx
callq 0x7ba20
jmp 0x7b9c2
leaq -0x158(%rbp), %rdi
callq 0xa3900
leaq -0x48(%rbp), %rdi
callq 0x10fc8
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 0xa3900
leaq -0x48(%rbp), %rdi
callq 0x10fc8
movq -0x90(%rbp), %rdi
callq 0x10e00
nopw (%rax,%rax)