// File: /workspace/github_cpp_makefile_star2_O3/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, -0x70(%rbp)
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, -0x78(%rbp)
movq %rdi, %rbx
xorl %edi, %edi
callq 0x3210
leaq -0x80(%rbp), %rdi
movq %rax, (%rdi)
callq 0x31a0
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 0x3300
leaq 0x258a(%rip), %rdx      # 0x94d8
movq %r15, %rdi
movq %r14, %rsi
callq 0x8101
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x5b10
leaq 0x256e(%rip), %rsi      # 0x94ea
leaq -0x48(%rbp), %rdi
callq 0x3490
movq -0x70(%rbp), %r14
leaq -0x230(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0x3390
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0x60(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r15, %rcx
je 0x6fb7
movq -0x38(%rbp), %rdi
movq -0x68(%rbp), %rsi
cmpq %rdi, %rax
jbe 0x6fd7
leaq -0x58(%rbp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x6fd2
movq -0x58(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x6fe2
leaq -0x48(%rbp), %rdi
callq 0x30b0
jmp 0x6fef
leaq -0x68(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3280
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x700e
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x7014
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq -0x58(%rbp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x7049
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x705e
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3260
leaq 0x2796(%rip), %rsi      # 0x97fb
movq %r12, %rdi
callq 0x3090
testl %eax, %eax
je 0x70a9
leaq 0x2474(%rip), %rsi      # 0x94ec
leaq -0x48(%rbp), %rdi
movq %r12, %rdx
callq 0x82a2
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %rbx, %rdi
callq 0x30b0
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x70a9
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3260
testq %r14, %r14
je 0x71bc
movl $0x1, %esi
cmpq $0xa, %r14
jb 0x710c
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x7105
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x710a
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x710c
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x70cf
addl $-0x3, %esi
jmp 0x710c
addl $-0x2, %esi
jmp 0x710c
decl %esi
movl %esi, %esi
leaq -0x68(%rbp), %rdi
movq %r13, (%rdi)
xorl %edx, %edx
callq 0x32b0
leaq -0x68(%rbp), %r14
movq (%r14), %rdi
movl 0x8(%r14), %esi
movq -0x70(%rbp), %rdx
callq 0x83b5
leaq 0x23b5(%rip), %rcx      # 0x94ec
movl $0x1, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3280
movq %r15, -0x48(%rbp)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x7169
movq %rsi, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x7173
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq %r15, %rsi
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0x30b0
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x71a7
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3260
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x71bc
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3260
leaq 0x24fc(%rip), %rsi      # 0x96bf
leaq -0x48(%rbp), %rdi
movq -0x78(%rbp), %rdx
callq 0x82a2
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %rbx, %rdi
callq 0x30b0
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x71f9
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3260
movq 0x5dc8(%rip), %rsi      # 0xcfc8
leaq -0x238(%rbp), %rdi
callq 0x3130
leaq -0x1c8(%rbp), %rdi
callq 0x30c0
movq %rbx, %rax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x724a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x724a
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x728c
movq -0x58(%rbp), %rsi
jmp 0x727f
jmp 0x7289
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
jne 0x727b
jmp 0x728c
jmp 0x7289
movq %rax, %r14
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x728c
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x728c
movq %rax, %r14
movq (%rbx), %rdi
addq $0x10, %rbx
cmpq %rbx, %rdi
je 0x72dc
movq (%rbx), %rsi
jmp 0x72cd
movq %rax, %r14
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x72c0
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x72c0
jmp 0x72bd
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x72dc
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3260
jmp 0x72dc
jmp 0x72d9
movq %rax, %r14
movq 0x5ce5(%rip), %rsi      # 0xcfc8
leaq -0x238(%rbp), %rdi
callq 0x3130
leaq -0x1c8(%rbp), %rdi
callq 0x30c0
movq %r14, %rdi
callq 0x3430
nop