user: 请从给定的汇编指令推导出C源代码:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  lea    D99(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  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>
  mov    %r14,%rdi
  mov    $0x20,%esi
  lea    D50(%rip),%rdx
  mov    %rax,%r12
  mov    %rax,%rcx
  call   <strftime@plt>
  mov    %r12,%rcx
  mov    %rbp,%rdi
  mov    $0x20,%esi
  lea    D8(%rip),%rdx
  call   <strftime@plt>
  mov    %rbp,%rdi
  lea    D21(%rip),%rsi
  lea    D63(%rip),%rbp
  call   <fopen@plt>
  mov    %r13,%rdi
  mov    $0x25,%edx
  mov    $0x1,%esi
  mov    %rax,%r12
  mov    %rax,%rcx
  call   <fwrite@plt>
  mov    %rbp,%rdi
  mov    %r12,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x22,%edx
  mov    $0x1,%esi
  lea    D20(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    %rbp,%rdi
  mov    $0x2,%edx
  mov    $0x1,%esi
  call   <fwrite@plt>
  mov    %r14,%rdx
  mov    %r12,%rdi
  xor    %eax,%eax
  lea    D83(%rip),%rsi
  lea    D17(%rip),%r14
  call   <fprintf@plt>
  mov    %rbp,%rdi
  mov    %r12,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  mov    $0x9,%ebp
  call   <fwrite@plt>
  mov    %r13,%rdi
  mov    %r12,%rcx
  mov    $0x25,%edx
  mov    $0x1,%esi
  lea    D79(%rip),%r13
  call   <fwrite@plt>
  nopl   0x0(%rax)
L24:
  lea    -0x9(%rbp),%ebx
  nopl   0x0(%rax,%rax,1)
L7:
  mov    %ebx,%edx
  mov    %r13,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  add    $0x1,%ebx
  cmp    %ebx,%ebp
  jne    L7
  mov    %ebp,%edx
  mov    %r14,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  add    $0xa,%ebp
  cmp    $0x6d,%ebp
  jne    L24
  lea    D18(%rip),%rdi
  mov    %r12,%rcx
  mov    $0x12,%edx
  mov    $0x1,%esi
  call   <fwrite@plt>
  mov    %r12,%rdi
  call   <fclose@plt>
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L11
  add    $0x60,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L11:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D99
datatype: string
name: parse_data
arguments: tag: D50
datatype: string
name: parse_data
arguments: tag: D8
datatype: string
name: parse_data
arguments: tag: D21
datatype: string
name: parse_data
arguments: tag: D63
datatype: string
name: parse_data
arguments: tag: D20
datatype: string
name: parse_data
arguments: tag: D83
datatype: string
name: parse_data
arguments: tag: D17
datatype: string
name: parse_data
arguments: tag: D79
datatype: string
name: parse_data
arguments: tag: D18
datatype: string

tool: D99: ####################################


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

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

tool: D21: w

tool: D63: #


tool: D20: # -- TEXTPATGEN GENERATED FILE --


tool: D83: # -- %s --


tool: D17: D-%04d


tool: D79: D-%04d 

tool: D18: # -- End of file.


assistant: ```c
int main(int argc, char *argv[]) {
  int num, length, width;
  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 < 10; length++) {
    for (width = 0; width < 9; width++) {
      fprintf(fp, "D-%04d ", num);
      num++;
    }
    fprintf(fp, "D-%04d\n", num);
    num++;
  }
  fprintf(fp, "# -- End of file.\n");
  fclose(fp);
  return 0;
}
```