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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x430,%rsp
  mov    %edi,-0x424(%rbp)
  mov    %rsi,-0x430(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpl   $0x1,-0x424(%rbp)
  jg     L38
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L38:
  mov    -0x430(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %eax,-0x418(%rbp)
  mov    -0x418(%rbp),%eax
  mov    %eax,%edi
  call   <tcpsocket_connect@plt>
  mov    %eax,-0x414(%rbp)
  cmpl   $0x0,-0x414(%rbp)
  jns    L20
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x2,%edi
  call   <exit@plt>
L20:
  mov    D43(%rip),%rax
  movq   %rax,%xmm0
  call   <sleep@plt>
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L23:
  lea    -0x410(%rbp),%rax
  mov    %rax,%rsi
  lea    D57(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    -0x410(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  cmp    $0xffffffff,%eax
  jne    L34
  mov    -0x414(%rbp),%eax
  mov    $0x2,%edx
  lea    D62(%rip),%rcx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <write@plt>
  mov    -0x414(%rbp),%eax
  mov    %eax,%edi
  call   <close@plt>
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L34:
  lea    -0x410(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  lea    -0x410(%rbp),%rcx
  mov    -0x414(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <write@plt>
  lea    -0x410(%rbp),%rcx
  mov    -0x414(%rbp),%eax
  mov    $0x400,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <read@plt>
  lea    -0x410(%rbp),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x410(%rbp),%rax
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  jmp    L23
```

tool_calls: name: disassemble_data
arguments: data_tag: D6
type: string
name: disassemble_data
arguments: data_tag: D16
type: string
name: disassemble_data
arguments: data_tag: D43
type: f64
name: disassemble_data
arguments: data_tag: D34
type: string
name: disassemble_data
arguments: data_tag: D57
type: string
name: disassemble_data
arguments: data_tag: D62
type: string
name: disassemble_data
arguments: data_tag: D30
type: string

tool: D6: Usage: ./client <port>

tool: D16: tcpclient_connect()

tool: D43: 0.5

tool: D34: client started

tool: D57: %s

tool: D62: -1

tool: D30: client exiting...

assistant: ```c
int main(int argc, char const *argv[]) {
  if (argc < 2) {
    printf("Usage: ./client <port>\n");
    exit(1);
  }
  int port = atoi(argv[1]);
  int sfd = tcpsocket_connect(port);
  if (sfd < 0) {
    printf("tcpclient_connect()\n");
    exit(2);
  }
  char buf[1024];
  sleep(0.5);
  printf("client started\n");
  while (1) {
    scanf("%s", buf);
    if (atoi(buf) == -1) {
      write(sfd, "-1", 2);
      close(sfd);
      printf("client exiting...\n");
      exit(1);
    }
    write(sfd, buf, strlen(buf));
    read(sfd, buf, 1024);
    printf("%s\n", buf);
    memset(buf, 0, 1024);
  }
  return 0;
}
```