// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %r8, %r15
movq %rsi, %r14
movq %rdi, %rbx
movl %ecx, 0x44(%rsp)
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
testl %ecx, %ecx
je 0x46416
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x155e4
leaq 0x2d03c(%rip), %rsi     # 0x733d8
leaq 0x48(%rsp), %rdi
callq 0xdb40
leaq 0xa8(%rsp), %rdi
leaq 0x44(%rsp), %rsi
callq 0x63483
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0xb0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x463dd
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x46402
leaq 0xb8(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x463fd
movq 0xb8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x4647e
movq 0xa8(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0xd180
jmp 0x4648f
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x155e4
leaq 0x29342(%rip), %rsi     # 0x6f77c
leaq 0x20(%rsp), %rdi
callq 0xdb40
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0xdb40
leaq 0x10(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4660a
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x46611
leaq 0xa8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xd5e0
leaq 0x78(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x464b3
movq %rsi, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x464b9
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x2929f(%rip), %rsi     # 0x6f77c
leaq 0x68(%rsp), %rdi
callq 0xdb40
leaq 0x30(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4650e
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x46515
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r15, %rsi
callq 0xdb40
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4655f
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x46567
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rsp, %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x88(%rsp), %rdi
movq %r15, %rsi
callq 0xd6e0
movq (%r15), %rdi
cmpq %r13, %rdi
je 0x465a6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x465bd
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x465d8
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x465f9
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x46667
movq 0x58(%rsp), %rsi
jmp 0x4665f
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rsp, %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x88(%rsp), %rdi
movq %r15, %rsi
callq 0xd6e0
movq (%r15), %rdi
cmpq %rbp, %rdi
je 0x46650
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x46667
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x155e4
movq (%rsp), %rdx
cmpq $0x0, 0x8(%rsp)
je 0x466d0
movq %rdx, %rax
movq %rdx, %rcx
movb (%rcx), %sil
cmpb $0x2f, %sil
jne 0x466b4
movb $0x2f, %sil
cmpq %rdx, %rax
je 0x466b4
cmpb $0x2f, -0x1(%rax)
je 0x466ba
movb %sil, (%rax)
incq %rax
incq %rcx
movq (%rsp), %rdx
movq 0x8(%rsp), %rsi
addq %rdx, %rsi
cmpq %rsi, %rcx
jne 0x4669d
jmp 0x466d3
movq %rdx, %rax
movq %rax, %rcx
subq %rdx, %rcx
movq %rsp, %rdx
movq %rcx, 0x8(%rdx)
movb $0x0, (%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x46826
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x46704
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x46729
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xd530
movq %rbx, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x46740
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x467f8
movq 0x30(%rsp), %rsi
jmp 0x467eb
jmp 0x467f5
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4677f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x4677f
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4679f
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x4679f
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x467c7
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x467c7
jmp 0x467c4
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x467f8
movq 0x58(%rsp), %rsi
jmp 0x467eb
jmp 0x467f5
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x467f8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x467f8
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x4681d
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xd530
movq %rbx, %rdi
callq 0xda70
nop