user: What is the c source code of the assembly code below?

```asm
<pathForImage>:
  endbr64
  push   %r14
  xor    %edi,%edi
  push   %r13
  lea    D17(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x50,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    0x11(%rsp),%r14
  lea    0xd(%rsp),%rbx
  call   <time@plt>
  lea    0x8(%rsp),%rdi
  lea    0x20(%rsp),%rbp
  mov    %eax,0x8(%rsp)
  call   <localtime@plt>
  xor    %edx,%edx
  mov    $0xf,%esi
  mov    %r14,%rdi
  mov    %rax,%r12
  mov    %dx,0x1d(%rsp)
  mov    %rax,%rcx
  lea    D24(%rip),%rdx
  movq   $0x0,0x11(%rsp)
  movl   $0x0,0x19(%rsp)
  movb   $0x0,0x1f(%rsp)
  call   <strftime@plt>
  mov    %r12,%rcx
  mov    $0x4,%esi
  mov    %rbx,%rdi
  lea    D56(%rip),%rdx
  movl   $0x0,0xd(%rsp)
  call   <strftime@plt>
  pxor   %xmm0,%xmm0
  mov    %r12,%rcx
  mov    %rbp,%rdi
  lea    D69(%rip),%rdx
  mov    $0x28,%esi
  movaps %xmm0,0x20(%rsp)
  movaps %xmm0,0x30(%rsp)
  movq   $0x0,0x40(%rsp)
  call   <strftime@plt>
  mov    $0x4b,%esi
  mov    $0x1,%edi
  call   <calloc@plt>
  mov    %r14,%rcx
  mov    %r13,%rdx
  lea    D68(%rip),%rsi
  mov    %rax,%r12
  mov    %rax,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  mov    $0x1ed,%esi
  mov    %r12,%rdi
  call   <mkdir@plt>
  mov    %rbx,%r8
  mov    %r14,%rcx
  mov    %r13,%rdx
  lea    D27(%rip),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  mov    $0x1ed,%esi
  mov    %r12,%rdi
  call   <mkdir@plt>
  xor    %eax,%eax
  mov    %rbp,%r9
  mov    %rbx,%r8
  mov    %r14,%rcx
  mov    %r13,%rdx
  lea    D32(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L4
  add    $0x50,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L4:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D17
type_infered: string
name: unpack_data
arguments: data_label: D24
type_infered: string
name: unpack_data
arguments: data_label: D56
type_infered: string
name: unpack_data
arguments: data_label: D69
type_infered: string
name: unpack_data
arguments: data_label: D68
type_infered: string
name: unpack_data
arguments: data_label: D27
type_infered: string
name: unpack_data
arguments: data_label: D32
type_infered: string

tool: D17: /jobe/vids

tool: D24: %Y%m%d

tool: D56: %H

tool: D69: driveway_snap_%Y%m%d_%H%M%S.jpg

tool: D68: %s/%s

tool: D27: %s/%s/%s

tool: D32: %s/%s/%s/%s

assistant: ```c
char *pathForImage() {
  const char *basePath = "/jobe/vids";
  time_t rawtime = time(NULL);
  struct tm *curtime = localtime(&rawtime);
  const char *dayDirFormat = "%Y%m%d";
  char dayDir[15] = {0};
  (void)strftime(dayDir, sizeof(dayDir), dayDirFormat, curtime);
  const char *hourFormat = "%H";
  char hourDir[4] = {0};
  (void)strftime(hourDir, sizeof(hourDir), hourFormat, curtime);
  const char *fileFormat = "driveway_snap_%Y%m%d_%H%M%S.jpg";
  char file[40] = {0};
  (void)strftime(file, sizeof(file), fileFormat, curtime);
  char *fullPath = calloc(sizeof(char), 75);
  sprintf(fullPath, "%s/%s", basePath, dayDir);
  mkdir(fullPath, 0755);
  sprintf(fullPath, "%s/%s/%s", basePath, dayDir, hourDir);
  mkdir(fullPath, 0755);
  sprintf(fullPath, "%s/%s/%s/%s", basePath, dayDir, hourDir, file);
  return fullPath;
}
```