// File: /workspace/github_cpp_makefile_star2_O3/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 0x44c89
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x152da
leaq 0x2c7d8(%rip), %rsi     # 0x713e8
leaq 0x48(%rsp), %rdi
callq 0xdb40
leaq 0xa8(%rsp), %rdi
leaq 0x44(%rsp), %rsi
callq 0x61b3f
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0xb0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x44c51
movq 0x58(%rsp), %rdi
movq 0xa8(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x44c7d
leaq 0xb8(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x44c78
movq 0xb8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x44cf1
leaq 0x48(%rsp), %rdi
callq 0xd180
jmp 0x44d02
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x152da
leaq 0x28712(%rip), %rsi     # 0x6d3bf
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 0x44e7d
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x44e84
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 0x44d26
movq %rsi, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x44d2c
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 0x2866f(%rip), %rsi     # 0x6d3bf
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 0x44d81
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x44d88
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 0x44dd2
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x44dda
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 0x44e19
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x44e30
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x44e4b
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x44e6c
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x44eda
movq 0x58(%rsp), %rsi
jmp 0x44ed2
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 0x44ec3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x44eda
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 0x152da
movq (%rsp), %rax
movq 0x8(%rsp), %rdx
movq %rax, %rcx
testq %rdx, %rdx
je 0x44f4a
movq %rax, %rsi
movb (%rsi), %dil
cmpb $0x2f, %dil
setne %r8b
cmpq %rax, %rcx
sete %r9b
orb %r8b, %r9b
jne 0x44f2f
cmpb $0x2f, -0x1(%rcx)
je 0x44f3e
movb %dil, (%rcx)
incq %rcx
movq (%rsp), %rax
movq 0x8(%rsp), %rdx
incq %rsi
leaq (%rax,%rdx), %rdi
cmpq %rdi, %rsi
jne 0x44f12
movq %rcx, %rsi
subq %rax, %rsi
movq %rsp, %rdx
movq %rsi, 0x8(%rdx)
movb $0x0, (%rcx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4509c
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x44f7b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x44fa0
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 0x44fb7
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x4506f
movq 0x30(%rsp), %rsi
jmp 0x45062
jmp 0x4506c
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x44ff6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x44ff6
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x45016
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x45016
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4503e
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x4503e
jmp 0x4503b
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x4506f
movq 0x58(%rsp), %rsi
jmp 0x45062
jmp 0x4506c
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4506f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x4506f
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x45094
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xd530
movq %rbx, %rdi
callq 0xda70