// File: /workspace/github_cpp_makefile_star2_O2/knei-knurow[P]lidar-visualizations/src/cloud-writers.cpp
// Function: CloudWriter::generate_filename(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)
std::string CloudWriter::generate_filename(const std::string& ext,
                                           const std::string& dir,
                                           const std::string& name,
                                           size_t cnt) {
  auto t = std::time(nullptr);
  auto tm = *std::localtime(&t);
  std::ostringstream oss;
  oss << std::put_time(&tm, "%d.%m.%Y-%H.%M.%S");

  std::string filename = dir + "/" + oss.str();
  if (name != "") {
    filename += "-" + name;
  }
  if (cnt != 0) {
    filename += "-" + std::to_string(cnt);
  }
  filename += "." + ext;
  return filename;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %r8, %rbx
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, -0x58(%rbp)
movq %rdi, -0x50(%rbp)
xorl %edi, %edi
callq 0x3270
leaq -0x80(%rbp), %rdi
movq %rax, (%rdi)
callq 0x31e0
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
leaq -0xc0(%rbp), %r14
movaps %xmm0, (%r14)
movaps %xmm1, 0x10(%r14)
movaps %xmm2, 0x20(%r14)
movq 0x30(%rax), %rax
movq %rax, 0x30(%r14)
leaq -0x238(%rbp), %r15
movq %r15, %rdi
callq 0x3340
leaq 0x2292(%rip), %rdx      # 0x85b0
movq %r15, %rdi
movq %r14, %rsi
callq 0x6d43
leaq 0x2292(%rip), %rdx      # 0x85c2
leaq -0x48(%rbp), %rdi
movq %r13, %rsi
callq 0x6f19
leaq -0x230(%rbp), %rsi
leaq -0x78(%rbp), %rdi
callq 0x33e0
movq %rbx, %r14
leaq -0x48(%rbp), %rsi
leaq -0x78(%rbp), %rdx
movq -0x50(%rbp), %rbx
movq %rbx, %rdi
callq 0x6ea8
leaq -0x78(%rbp), %rdi
callq 0x3130
leaq -0x48(%rbp), %rdi
callq 0x3130
leaq 0x255f(%rip), %rsi      # 0x88db
movq %r12, %rdi
callq 0x6f51
testb %al, %al
je 0x63b0
leaq 0x2235(%rip), %rsi      # 0x85c4
leaq -0x48(%rbp), %rdi
movq %r12, %rdx
callq 0x6f5e
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x34e0
leaq -0x48(%rbp), %rdi
callq 0x3130
testq %r14, %r14
je 0x63f3
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x7002
leaq 0x21fc(%rip), %rsi      # 0x85c4
leaq -0x48(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x6fd4
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x34e0
leaq -0x48(%rbp), %rdi
callq 0x3130
leaq -0x78(%rbp), %rdi
callq 0x3130
leaq 0x239d(%rip), %rsi      # 0x8797
leaq -0x48(%rbp), %rdi
movq -0x58(%rbp), %rdx
callq 0x6f5e
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x34e0
leaq -0x48(%rbp), %rdi
callq 0x3130
leaq -0x238(%rbp), %rdi
callq 0x3070
movq %rbx, %rax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x645a
jmp 0x646a
movq %rax, %r14
leaq -0x48(%rbp), %rdi
callq 0x3130
jmp 0x6452
movq %rax, %r14
leaq -0x78(%rbp), %rdi
jmp 0x6461
jmp 0x646a
movq %rax, %r14
leaq -0x48(%rbp), %rdi
callq 0x3130
jmp 0x646d
jmp 0x646a
movq %rax, %r14
movq -0x50(%rbp), %rdi
jmp 0x6488
movq %rax, %r14
leaq -0x78(%rbp), %rdi
callq 0x3130
jmp 0x6484
movq %rax, %r14
leaq -0x48(%rbp), %rdi
callq 0x3130
jmp 0x6494
jmp 0x6491
movq %rax, %r14
leaq -0x238(%rbp), %rdi
callq 0x3070
movq %r14, %rdi
callq 0x3480