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

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  cmp    $0x1,%edi
  jle    L144
  mov    %edi,%r12d
  movslq %edi,%rax
  mov    -0x8(%rsi,%rax,8),%rdi
  call   <atoi@plt>
  mov    %eax,%ebp
  cmp    $0xffff,%eax
  ja     L145
  cmp    $0x4,%r12d
  je     L94
  cmp    $0x3,%r12d
  je     L60
  cmp    $0x4,%r12d
  jg     L60
L56:
  mov    %rsp,%rdi
  mov    %ebp,%esi
  call   <create_server@plt>
  mov    (%rsp),%eax
  or     0x4(%rsp),%eax
  js     L130
  mov    $0x0,%eax
  call   <init_stats@plt>
  test   %rax,%rax
  js     L91
  mov    $0x0,%eax
  call   <signal_init@plt>
  mov    %rsp,%rbp
L96:
  mov    0x10(%rbx),%rsi
  mov    %rbp,%rdi
  call   <create_client_socket@plt>
  jmp    L96
L145:
  lea    D62(%rip),%rdx
  mov    (%rbx),%rsi
  lea    D35(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L91
L94:
  mov    0x8(%rbx),%rdi
  lea    D6(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L126
  mov    0x10(%rbx),%rdi
  call   <get_dir_fd@plt>
  cmp    $0xffffffff,%eax
  jne    L56
  lea    D71(%rip),%rdi
  call   <perror@plt>
  jmp    L91
L126:
  lea    D62(%rip),%rdx
  mov    (%rbx),%rsi
  lea    D35(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L91
L60:
  lea    D62(%rip),%rdx
  mov    (%rbx),%rsi
  lea    D35(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L91
L144:
  lea    D62(%rip),%rdx
  mov    (%rsi),%rsi
  lea    D35(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L91:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L159
  mov    $0xffffffff,%eax
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L130:
  mov    (%rbx),%rsi
  lea    D89(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L91
L159:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D62
data_type: string
name: unpack_data
arguments: tag: D35
data_type: string
name: unpack_data
arguments: tag: D6
data_type: string
name: unpack_data
arguments: tag: D71
data_type: string
name: unpack_data
arguments: tag: D89
data_type: string

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


tool: D35: %s%s

tool: D6: -d

tool: D71: TTS-Server : root directory

tool: D89: %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;
}
```