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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x88,%rsp
  mov    %edi,-0x9c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  cmp    $0x1,%edi
  jle    L37
  mov    %rsi,%r13
  mov    -0x9c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  lea    0xf(,%rax,8),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L103:
  cmp    %rdx,%rsp
  je     L36
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L103
L37:
  lea    D0(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%eax
  jmp    L61
L36:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L21
  orq    $0x0,-0x8(%rsp,%rax,1)
L21:
  mov    %rsp,%r15
  mov    0x8(%r13),%rdi
  lea    D7(%rip),%rsi
  call   <strstr@plt>
  mov    %rax,-0xa8(%rbp)
  lea    0x8(%r13),%rbx
  mov    %r15,%r12
  mov    -0x9c(%rbp),%eax
  lea    -0x2(%rax),%eax
  lea    0x10(%r13,%rax,8),%r14
  jmp    L60
L64:
  lea    D37(%rip),%rsi
  mov    -0x98(%rbp),%rax
  mov    (%rax),%rdi
  call   <fopen@plt>
  mov    %rax,(%r12)
L119:
  add    $0x8,%rbx
  add    $0x8,%r12
  cmp    %r14,%rbx
  je     L77
L60:
  mov    %rbx,-0x98(%rbp)
  lea    D7(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strstr@plt>
  test   %rax,%rax
  jne    L119
  cmpq   $0x0,-0xa8(%rbp)
  je     L64
  lea    D12(%rip),%rsi
  mov    -0x98(%rbp),%rax
  mov    (%rax),%rdi
  call   <fopen@plt>
  mov    %rax,(%r12)
  jmp    L119
L77:
  lea    -0x90(%rbp),%rax
  mov    %rax,-0x98(%rbp)
  lea    D7(%rip),%r14
L144:
  mov    -0x98(%rbp),%rsi
  lea    D70(%rip),%rdi
  call   <scanf@plt>
  cmp    $0x1,%eax
  jne    L32
  mov    -0x98(%rbp),%rsi
  lea    D55(%rip),%rdi
  call   <printf@plt>
  mov    -0x9c(%rbp),%r12d
  mov    $0x1,%ebx
  jmp    L46
L108:
  add    $0x1,%rbx
  cmp    %rbx,%r12
  je     L144
L46:
  mov    0x0(%r13,%rbx,8),%rdi
  mov    %r14,%rsi
  call   <strstr@plt>
  test   %rax,%rax
  jne    L108
  mov    -0x8(%r15,%rbx,8),%rdi
  mov    -0x98(%rbp),%rdx
  lea    D55(%rip),%rsi
  call   <fprintf@plt>
  jmp    L108
L32:
  mov    $0x0,%eax
L61:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L93
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L93:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D0
data_type: string
name: extract_symbolic_data
arguments: data_label: D7
data_type: string
name: extract_symbolic_data
arguments: data_label: D37
data_type: string
name: extract_symbolic_data
arguments: data_label: D12
data_type: string
name: extract_symbolic_data
arguments: data_label: D70
data_type: string
name: extract_symbolic_data
arguments: data_label: D55
data_type: string

tool: D0: Too few arguments

tool: D7: -a

tool: D37: w

tool: D12: a

tool: D70: %79[^
]


tool: D55: %s


assistant: ```c
int main(int argc, char *argv[]) {
  char line[80];
  if (argc < 2) {
    puts("Too few arguments");
    return 1;
  }
  FILE *files[argc - 1];
  int i, j;
  int use = 0;
  if (strstr(argv[1], "-a"))
    use = 1;
  for (i = 1; i < argc; i++) {
    if (!strstr(argv[i], "-a")) {
      if (use) {
        files[i - 1] = fopen(argv[i], "a");
      } else {
        files[i - 1] = fopen(argv[i], "w");
      }
    }
  }
  while (scanf("%79[^\n]\n", line) == 1) {
    printf("%s\n", line);
    for (j = 1; j < argc; j++) {
      if (!strstr(argv[j], "-a"))
        fprintf(files[j - 1], "%s\n", line);
    }
  }
  return 0;
}
```