user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  lea    D72(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rbp
  lea    0x10(%rsp),%r14
  mov    %rbp,%rdi
  call   <time@plt>
  mov    %rbp,%rdi
  lea    0x30(%rsp),%rbp
  call   <localtime@plt>
  lea    D19(%rip),%rdx
  mov    $0x20,%esi
  mov    %r14,%rdi
  mov    %rax,%r12
  mov    %rax,%rcx
  call   <strftime@plt>
  mov    %r12,%rcx
  mov    %rbp,%rdi
  mov    $0x20,%esi
  lea    D62(%rip),%rdx
  lea    D53(%rip),%r12
  call   <strftime@plt>
  mov    %rbp,%rdi
  lea    D57(%rip),%rsi
  call   <fopen@plt>
  mov    $0x25,%edx
  mov    $0x1,%esi
  mov    %r13,%rdi
  mov    %rax,%rbp
  mov    %rax,%rcx
  call   <fwrite@plt>
  mov    %r12,%rdi
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x22,%edx
  mov    $0x1,%esi
  lea    D48(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    %r12,%rdi
  mov    $0x2,%edx
  mov    $0x1,%esi
  call   <fwrite@plt>
  mov    %r14,%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D18(%rip),%rsi
  call   <fprintf@plt>
  mov    %r12,%rdi
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D28(%rip),%r12
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x25,%edx
  mov    %r13,%rdi
  mov    $0x1,%esi
  call   <fwrite@plt>
  nop
L7:
  mov    %ebx,%ecx
  mov    %ebx,%edx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <fprintf@plt>
  cmp    $0x19,%ebx
  jne    L7
  lea    D4(%rip),%rdi
  mov    %rbp,%rcx
  mov    $0x12,%edx
  mov    $0x1,%esi
  call   <fwrite@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  add    $0x60,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D72
data_type: string
name: disassemble_data
arguments: tag: D19
data_type: string
name: disassemble_data
arguments: tag: D62
data_type: string
name: disassemble_data
arguments: tag: D53
data_type: string
name: disassemble_data
arguments: tag: D57
data_type: string
name: disassemble_data
arguments: tag: D48
data_type: string
name: disassemble_data
arguments: tag: D18
data_type: string
name: disassemble_data
arguments: tag: D28
data_type: string
name: disassemble_data
arguments: tag: D4
data_type: string

tool: D72: ####################################


tool: D19: %Y-%m-%dT%H:%M:%S%z

tool: D62: 00_%Y%m%d_%H%M%S.txt

tool: D53: #


tool: D57: w

tool: D48: # -- TEXTPATGEN GENERATED FILE --


tool: D18: # -- %s --


tool: D28: %04X:The_Quick_Brown_Fox_Jumps_over_the_Lazy_Dog:%04d


tool: D4: # -- End of file.


assistant: ```c
int main(int argc, char *argv[]) {
  int num, length;
  FILE *fp;
  time_t timer;
  char buffer1[32], buffer2[32];
  struct tm *tm_info;
  time(&timer);
  tm_info = localtime(&timer);
  strftime(buffer1, 32, "%Y-%m-%dT%H:%M:%S%z", tm_info);
  strftime(buffer2, 32, "00_%Y%m%d_%H%M%S.txt", tm_info);
  fp = fopen(buffer2, "w");
  fprintf(fp, "####################################\n");
  fprintf(fp, "#\n");
  fprintf(fp, "# -- TEXTPATGEN GENERATED FILE --\n");
  fprintf(fp, "#\n");
  fprintf(fp, "# -- %s --\n", buffer1);
  fprintf(fp, "#\n");
  fprintf(fp, "####################################\n");
  num = 0;
  for (length = 0; length < 25; length++) {
    fprintf(fp, "%04X:The_Quick_Brown_Fox_Jumps_over_the_Lazy_Dog:%04d\n", num, num);
    num++;
  }
  fprintf(fp, "# -- End of file.\n");
  fclose(fp);
  return 0;
}
```