user: What would the C source look like for the assembly code provided here:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D76(%rip),%rax
  mov    %rax,-0x18(%rbp)
  cmpl   $0x1,-0x24(%rbp)
  jle    L132
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %eax,-0x1c(%rbp)
  cmpl   $0x0,-0x1c(%rbp)
  js     L125
  cmpl   $0xffff,-0x1c(%rbp)
  jle    L84
L125:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    -0x18(%rbp),%rdx
  mov    %rax,%rsi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L101
L84:
  cmpl   $0x4,-0x24(%rbp)
  jne    L82
  mov    -0x30(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  lea    D23(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L145
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    -0x18(%rbp),%rdx
  mov    %rax,%rsi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L101
L145:
  mov    -0x30(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <get_dir_fd@plt>
  cmp    $0xffffffff,%eax
  jne    L46
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  call   <perror@plt>
  mov    $0xffffffff,%eax
  jmp    L101
L82:
  cmpl   $0x3,-0x24(%rbp)
  je     L195
  cmpl   $0x4,-0x24(%rbp)
  jle    L46
L195:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    -0x18(%rbp),%rdx
  mov    %rax,%rsi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L101
L132:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    -0x18(%rbp),%rdx
  mov    %rax,%rsi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L101
L46:
  mov    -0x1c(%rbp),%edx
  lea    -0x10(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <create_server@plt>
  mov    -0x10(%rbp),%eax
  test   %eax,%eax
  js     L18
  mov    -0xc(%rbp),%eax
  test   %eax,%eax
  jns    L19
L18:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L101
L19:
  mov    $0x0,%eax
  call   <init_stats@plt>
  test   %rax,%rax
  jns    L162
  mov    $0xffffffff,%eax
  jmp    L101
L162:
  mov    $0x0,%eax
  call   <signal_init@plt>
L96:
  mov    -0x30(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rdx
  lea    -0x10(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <create_client_socket@plt>
  jmp    L96
L101:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L155
  call   <__stack_chk_fail@plt>
L155:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D76
type_infered: string
name: parse_data
arguments: data_label: D1
type_infered: string
name: parse_data
arguments: data_label: D23
type_infered: string
name: parse_data
arguments: data_label: D26
type_infered: string
name: parse_data
arguments: data_label: D27
type_infered: string

tool: D76:  : invalid parameters
usage : TTS-Server [-d root_dir] <listen_port>


tool: D1: %s%s

tool: D23: -d

tool: D26: TTS-Server : root directory

tool: D27: %s : unable to start : failed to create server socket


assistant: ```c
int main(int argc, char **argv) {
  int port;
  const char *paramerr = " : invalid parameters\nusage : TTS-Server [-d root_dir] <listen_port>\n";
  if (argc >= 2) {
    port = atoi(argv[argc - 1]);
    if (port < 0 || port > 65535) {
      printf("%s%s", argv[0], paramerr);
      return -1;
    }
    if (argc == 4) {
      if (strcmp(argv[1], "-d")) {
        printf("%s%s", argv[0], paramerr);
        return -1;
      }
      if (get_dir_fd(argv[2]) == -1) {
        perror("TTS-Server : root directory");
        return -1;
      }
    } else if (argc == 3 || argc > 4) {
      printf("%s%s", argv[0], paramerr);
      return -1;
    }
  } else {
    printf("%s%s", argv[0], paramerr);
    return -1;
  }
  int sockets[2];
  create_server(sockets, port);
  if (sockets[0] < 0 || sockets[1] < 0) {
    printf("%s : unable to start : failed to create server socket\n", argv[0]);
    return -1;
  }
  if (init_stats() < 0)
    return -1;
  signal_init();
  while (1) {
    create_client_socket(sockets, argv[2]);
  }
  return 0;
}
```