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

```asm
<main>:
  endbr64
  push   %r15
  lea    D45(%rip),%rsi
  lea    D59(%rip),%rdi
  push   %r14
  lea    D29(%rip),%r15
  push   %r13
  lea    D96(%rip),%r13
  push   %r12
  lea    D24(%rip),%r12
  push   %rbp
  lea    D33(%rip),%rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rbx
  call   <fopen@plt>
  mov    %rbp,%rsi
  lea    D64(%rip),%rdi
  mov    %rax,0x18(%rsp)
  call   <fopen@plt>
  mov    %rbp,%rsi
  lea    D30(%rip),%rdi
  mov    %rax,%r14
  call   <fopen@plt>
  mov    %rbp,%rsi
  lea    D49(%rip),%rdi
  lea    D6(%rip),%rbp
  mov    %rax,0x8(%rsp)
  call   <fopen@plt>
  mov    %rax,0x10(%rsp)
  nop
L32:
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  cmp    $0x1,%eax
  jne    L25
L65:
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L29
  mov    %r13,%rsi
  mov    %r14,%rdi
  mov    %rbx,%rdx
  call   <fprintf@plt>
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  cmp    $0x1,%eax
  je     L65
L25:
  mov    0x18(%rsp),%rdi
  call   <fclose@plt>
  mov    %r14,%rdi
  call   <fclose@plt>
  mov    0x8(%rsp),%rdi
  call   <fclose@plt>
  mov    0x10(%rsp),%rdi
  call   <fclose@plt>
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L18
  add    $0x88,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L29:
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <strstr@plt>
  mov    %rbx,%rdx
  mov    %r13,%rsi
  test   %rax,%rax
  je     L42
  mov    0x8(%rsp),%rdi
  call   <fprintf@plt>
  jmp    L32
  nopl   (%rax)
L42:
  mov    0x10(%rsp),%rdi
  call   <fprintf@plt>
  jmp    L32
L18:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D45
type_guessed: string
name: disassemble_data
arguments: data_label: D59
type_guessed: string
name: disassemble_data
arguments: data_label: D29
type_guessed: string
name: disassemble_data
arguments: data_label: D96
type_guessed: string
name: disassemble_data
arguments: data_label: D24
type_guessed: string
name: disassemble_data
arguments: data_label: D33
type_guessed: string
name: disassemble_data
arguments: data_label: D64
type_guessed: string
name: disassemble_data
arguments: data_label: D30
type_guessed: string
name: disassemble_data
arguments: data_label: D49
type_guessed: string
name: disassemble_data
arguments: data_label: D6
type_guessed: string

tool: D45: r

tool: D59: spooky.csv

tool: D29: Disappearance

tool: D96: %s


tool: D24: UFO

tool: D33: w

tool: D64: ufo.csv

tool: D30: disappearance.csv

tool: D49: other.csv

tool: D6: %79[^
]


assistant: ```c
int main() {
  char line[80];
  FILE *in = fopen("spooky.csv", "r");
  FILE *f_ufo = fopen("ufo.csv", "w");
  FILE *f_disap = fopen("disappearance.csv", "w");
  FILE *f_other = fopen("other.csv", "w");
  while (scanf("%79[^\n]\n", line) == 1) {
    if (strstr(line, "UFO")) {
      fprintf(f_ufo, "%s\n", line);
    } else if (strstr(line, "Disappearance")) {
      fprintf(f_disap, "%s\n", line);
    } else {
      fprintf(f_other, "%s\n", line);
    }
  }
  fclose(in);
  fclose(f_ufo);
  fclose(f_disap);
  fclose(f_other);
  return 0;
}
```