user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rsi,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  cmp    $0x3,%edi
  jle    L56
  mov    0x8(%rsp),%rbx
  lea    D67(%rip),%rsi
  mov    0x8(%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L34
  mov    0x8(%rsp),%rax
  mov    0x8(%rax),%rdi
  call   <atoi@plt>
  mov    %eax,0x14(%rsp)
L50:
  mov    0x14(%rsp),%ebx
  lea    0x28(%rsp),%rax
  lea    D16(%rip),%r14
  mov    %rax,%rdi
  mov    %rax,0x18(%rsp)
  lea    D70(%rip),%r13
  lea    D77(%rip),%r12
  mov    %ebx,%esi
  lea    -0x1(%rbx),%r15d
  lea    0x27(%rsp),%rbp
  call   <allocate@plt>
  mov    0x8(%rsp),%rax
  mov    0x28(%rsp),%rdi
  mov    %ebx,%edx
  mov    0x10(%rax),%rsi
  call   <insert_data@plt>
  mov    0x28(%rsp),%rdi
  mov    %ebx,%esi
  lea    0x30(%rsp),%rbx
  call   <sort_data@plt>
  jmp    L29
  xchg   %ax,%ax
L9:
  mov    %rbx,%rsi
  lea    D42(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L64:
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  lea    D33(%rip),%rdi
  call   <scanf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  cmpb   $0x6e,0x27(%rsp)
  je     L22
L29:
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <scanf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  mov    0x28(%rsp),%rdi
  xor    %edx,%edx
  mov    %r15d,%ecx
  mov    %rbx,%rsi
  call   <binary_search@plt>
  test   %eax,%eax
  jns    L9
  lea    D8(%rip),%rdi
  call   <puts@plt>
  jmp    L64
L34:
  mov    0x10(%rbx),%rdi
  call   <file_line_count@plt>
  mov    %eax,0x14(%rsp)
  jmp    L50
  nopw   0x0(%rax,%rax,1)
L22:
  mov    0x8(%rsp),%rax
  mov    0x14(%rsp),%ebx
  mov    0x28(%rsp),%rdi
  mov    0x18(%rax),%rsi
  mov    %ebx,%edx
  call   <write_data@plt>
  mov    0x18(%rsp),%rdi
  mov    %ebx,%esi
  call   <destroy@plt>
  xor    %eax,%eax
L70:
  mov    0x58(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L27
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L56:
  lea    D3(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%eax
  jmp    L70
L27:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D67
type: string
name: extract_symbolic_data
arguments: data_label: D16
type: string
name: extract_symbolic_data
arguments: data_label: D70
type: string
name: extract_symbolic_data
arguments: data_label: D77
type: string
name: extract_symbolic_data
arguments: data_label: D42
type: string
name: extract_symbolic_data
arguments: data_label: D33
type: string
name: extract_symbolic_data
arguments: data_label: D8
type: string
name: extract_symbolic_data
arguments: data_label: D3
type: string

tool: D67: MAX_SIZE

tool: D16: Searching for: 

tool: D70: %s

tool: D77: Continue? (y/n): 

tool: D42: %s is in this dataset


tool: D33: %c

tool: D8: Not in the dataset!

tool: D3: Missing arguements

assistant: ```c
int main(int argc, char *argv[]) {
  if (argc < 4) {
    printf("Missing arguements\n");
    return -1;
  }
  int size = 0;
  if (strcmp(argv[1], "MAX_SIZE") == 0) {
    size = file_line_count(argv[2]);
  } else {
    size = atoi(argv[1]);
  }
  char **data;
  int i = 0;
  allocate(&data, size);
  insert_data(data, argv[2], size);
  sort_data(data, size);
  char yes;
  do {
    char target[25];
    printf("Searching for: ");
    scanf("%s", target);
    getchar();
    int found = binary_search(data, target, 0, size - 1);
    if (found >= 0) {
      printf("%s is in this dataset\n", target);
    } else {
      printf("Not in the dataset!\n");
    }
    printf("Continue? (y/n): ");
    scanf("%c", &yes);
    getchar();
  } while (yes != 'n');
  write_data(data, argv[3], size);
  destroy(&data, size);
}
```