user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %edi,-0x74(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <time@plt>
  lea    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <localtime@plt>
  mov    %rax,-0x60(%rbp)
  mov    -0x60(%rbp),%rdx
  lea    -0x50(%rbp),%rax
  mov    %rdx,%rcx
  lea    D106(%rip),%rdx
  mov    $0x20,%esi
  mov    %rax,%rdi
  call   <strftime@plt>
  mov    -0x60(%rbp),%rdx
  lea    -0x30(%rbp),%rax
  mov    %rdx,%rcx
  lea    D76(%rip),%rdx
  mov    $0x20,%esi
  mov    %rax,%rdi
  call   <strftime@plt>
  lea    -0x30(%rbp),%rax
  lea    D80(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x58(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x25,%edx
  mov    $0x1,%esi
  lea    D102(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x58(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x58(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x22,%edx
  mov    $0x1,%esi
  lea    D40(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x58(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  lea    -0x50(%rbp),%rdx
  mov    -0x58(%rbp),%rax
  lea    D107(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x58(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x58(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x25,%edx
  mov    $0x1,%esi
  lea    D102(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  movl   $0x0,-0x6c(%rbp)
  movl   $0x0,-0x68(%rbp)
  jmp    L23
L10:
  movl   $0x0,-0x64(%rbp)
  jmp    L44
L25:
  mov    -0x6c(%rbp),%edx
  mov    -0x58(%rbp),%rax
  lea    D21(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  addl   $0x1,-0x6c(%rbp)
  addl   $0x1,-0x64(%rbp)
L44:
  cmpl   $0x8,-0x64(%rbp)
  jle    L25
  mov    -0x6c(%rbp),%edx
  mov    -0x58(%rbp),%rax
  lea    D89(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  addl   $0x1,-0x6c(%rbp)
  addl   $0x1,-0x68(%rbp)
L23:
  cmpl   $0x9,-0x68(%rbp)
  jle    L10
  mov    -0x58(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x12,%edx
  mov    $0x1,%esi
  lea    D55(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L8
  call   <__stack_chk_fail@plt>
L8:
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D106
type: string
name: read_data
arguments: label: D76
type: string
name: read_data
arguments: label: D80
type: string
name: read_data
arguments: label: D102
type: string
name: read_data
arguments: label: D15
type: string
name: read_data
arguments: label: D40
type: string
name: read_data
arguments: label: D107
type: string
name: read_data
arguments: label: D21
type: string
name: read_data
arguments: label: D89
type: string
name: read_data
arguments: label: D55
type: string

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

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

tool: D80: w

tool: D102: ####################################


tool: D15: #


tool: D40: # -- TEXTPATGEN GENERATED FILE --


tool: D107: # -- %s --


tool: D21: D-%04d 

tool: D89: D-%04d


tool: D55: # -- 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;
}
```