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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x440,%rsp
  mov    %edi,-0x434(%rbp)
  mov    %rsi,-0x440(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpl   $0x1,-0x434(%rbp)
  jg     L24
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L106
L24:
  mov    -0x440(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  lea    D34(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x418(%rbp)
  mov    -0x418(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    $0x400,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  jmp    L109
L81:
  lea    -0x410(%rbp),%rax
  mov    $0x59,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L108
  jmp    L109
L108:
  lea    -0x428(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  lea    D14(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  mov    -0x428(%rbp),%eax
  test   %eax,%eax
  jne    L126
  jmp    L109
L126:
  movl   $0x1,-0x420(%rbp)
  lea    -0x410(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x41c(%rbp)
  movl   $0x5,-0x424(%rbp)
  jmp    L2
L102:
  mov    -0x424(%rbp),%eax
  cltq
  movzbl -0x410(%rbp,%rax,1),%eax
  cmp    $0x20,%al
  je     L37
  mov    -0x424(%rbp),%eax
  cltq
  movzbl -0x410(%rbp,%rax,1),%eax
  cmp    $0x59,%al
  jne    L67
  mov    -0x428(%rbp),%eax
  mov    -0x420(%rbp),%edx
  mov    %eax,%esi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L67:
  addl   $0x1,-0x420(%rbp)
  jmp    L103
L37:
  nop
L103:
  addl   $0x1,-0x424(%rbp)
L2:
  mov    -0x424(%rbp),%eax
  cmp    -0x41c(%rbp),%eax
  jl     L102
L109:
  mov    -0x418(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    $0x400,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  jne    L81
  mov    -0x418(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0x0,%eax
L106:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L132
  call   <__stack_chk_fail@plt>
L132:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D6
type_infered: string
name: disassemble_data
arguments: label: D34
type_infered: string
name: disassemble_data
arguments: label: D14
type_infered: string
name: disassemble_data
arguments: label: D17
type_infered: string

tool: D6: parameter 1: FloorAccess.txt

tool: D34: r

tool: D14: %d

tool: D17: INSERT INTO floor_access (address,floor) VALUES ('%d','%d');


assistant: ```c
int main(int argc, char *argv[]) {
  FILE *fp;
  char linebuf[1024];
  int buflen;
  int slot;
  int i, k;
  if (argc < 2) {
    printf("parameter 1: FloorAccess.txt\n");
    return 0;
  }
  fp = fopen(argv[1], "r");
  fgets(linebuf, 1024, fp);
  while (fgets(linebuf, 1024, fp) != NULL) {
    if (strchr(linebuf, 'Y') == NULL)
      continue;
    sscanf(linebuf, "%d", &slot);
    if (slot == 0)
      continue;
    k = 1;
    buflen = strlen(linebuf);
    for (i = 5; i < buflen; i++) {
      if (linebuf[i] == ' ')
        continue;
      if (linebuf[i] == 'Y') {
        printf("INSERT INTO floor_access (address,floor) VALUES ('%d','%d');\n", slot, k);
      }
      k++;
    }
  }
  fclose(fp);
  return 0;
}
```