// File: 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
subq $0x2f0, %rsp            # imm = 0x2F0
movq %rdi, -0x2e8(%rbp)
movq %rdi, %rax
movq %rax, -0x2e0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x4340
movq %rax, -0x30(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x42a0
movq 0x30(%rax), %rcx
movq %rcx, -0x40(%rbp)
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movaps %xmm2, -0x50(%rbp)
movaps %xmm1, -0x60(%rbp)
movaps %xmm0, -0x70(%rbp)
leaq -0x1e8(%rbp), %rdi
callq 0x44b0
leaq 0x3c58(%rip), %rsi      # 0x135d0
leaq -0x70(%rbp), %rdi
callq 0x11130
movq %rdx, -0x2d8(%rbp)
movq %rax, -0x2d0(%rbp)
jmp 0xf991
movq -0x2d8(%rbp), %rax
movq -0x2d0(%rbp), %rcx
movq %rcx, -0x1f8(%rbp)
movq %rax, -0x1f0(%rbp)
movq -0x1f8(%rbp), %rsi
movq -0x1f0(%rbp), %rdx
leaq -0x1e8(%rbp), %rdi
callq 0x10e50
jmp 0xf9c9
movb $0x0, -0x205(%rbp)
movq -0x18(%rbp), %rsi
leaq 0x3c07(%rip), %rdx      # 0x135e2
leaq -0x228(%rbp), %rdi
callq 0x11230
jmp 0xf9e9
leaq -0x248(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
callq 0x4390
jmp 0xf9fe
movq -0x2e8(%rbp), %rdi
leaq -0x228(%rbp), %rsi
leaq -0x248(%rbp), %rdx
callq 0x11160
jmp 0xfa1a
leaq -0x248(%rbp), %rdi
callq 0x4230
leaq -0x228(%rbp), %rdi
callq 0x4230
movq -0x20(%rbp), %rdi
leaq 0x3ebe(%rip), %rsi      # 0x138fb
callq 0x112b0
movb %al, -0x2e9(%rbp)
jmp 0xfa4a
movb -0x2e9(%rbp), %al
testb $0x1, %al
jne 0xfa59
jmp 0xfb2c
movq -0x20(%rbp), %rdx
leaq 0x3b80(%rip), %rsi      # 0x135e4
leaq -0x268(%rbp), %rdi
callq 0x112e0
jmp 0xfa72
movq -0x2e8(%rbp), %rdi
leaq -0x268(%rbp), %rsi
callq 0x4470
jmp 0xfa87
leaq -0x268(%rbp), %rdi
callq 0x4230
jmp 0xfb2c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
jmp 0xfc77
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
jmp 0xfae1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
leaq -0x248(%rbp), %rdi
callq 0x4230
leaq -0x228(%rbp), %rdi
callq 0x4230
jmp 0xfc77
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
jmp 0xfc6b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
leaq -0x268(%rbp), %rdi
callq 0x4230
jmp 0xfc6b
cmpq $0x0, -0x28(%rbp)
je 0xfbd7
movq -0x28(%rbp), %rsi
leaq -0x2a8(%rbp), %rdi
callq 0x11440
jmp 0xfb49
leaq 0x3a94(%rip), %rsi      # 0x135e4
leaq -0x288(%rbp), %rdi
leaq -0x2a8(%rbp), %rdx
callq 0x113f0
jmp 0xfb65
movq -0x2e8(%rbp), %rdi
leaq -0x288(%rbp), %rsi
callq 0x4470
jmp 0xfb7a
leaq -0x288(%rbp), %rdi
callq 0x4230
leaq -0x2a8(%rbp), %rdi
callq 0x4230
jmp 0xfbd7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
jmp 0xfbc6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
leaq -0x288(%rbp), %rdi
callq 0x4230
leaq -0x2a8(%rbp), %rdi
callq 0x4230
jmp 0xfc6b
movq -0x10(%rbp), %rdx
leaq 0x3bd5(%rip), %rsi      # 0x137b7
leaq -0x2c8(%rbp), %rdi
callq 0x112e0
jmp 0xfbf0
movq -0x2e8(%rbp), %rdi
leaq -0x2c8(%rbp), %rsi
callq 0x4470
jmp 0xfc05
leaq -0x2c8(%rbp), %rdi
callq 0x4230
movb $0x1, -0x205(%rbp)
testb $0x1, -0x205(%rbp)
jne 0xfc4f
jmp 0xfc43
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
leaq -0x2c8(%rbp), %rdi
callq 0x4230
jmp 0xfc6b
movq -0x2e8(%rbp), %rdi
callq 0x4230
leaq -0x1e8(%rbp), %rdi
callq 0x40c0
movq -0x2e0(%rbp), %rax
addq $0x2f0, %rsp            # imm = 0x2F0
popq %rbp
retq
movq -0x2e8(%rbp), %rdi
callq 0x4230
leaq -0x1e8(%rbp), %rdi
callq 0x40c0
movq -0x200(%rbp), %rdi
callq 0x4610
nop