user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xb0,%rsp
  mov    %edi,-0xa4(%rbp)
  mov    %rsi,-0xb0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpl   $0x1,-0xa4(%rbp)
  jg     L21
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L21:
  mov    -0xb0(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %eax,-0x98(%rbp)
  mov    -0x98(%rbp),%eax
  mov    %eax,%esi
  lea    D69(%rip),%rax
  mov    %rax,%rdi
  call   <tcpsock_connect@plt>
  mov    %eax,-0x94(%rbp)
  cmpl   $0x0,-0x94(%rbp)
  jns    L28
  lea    D75(%rip),%rax
  mov    %rax,%rdi
  call   <perror@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L28:
  lea    -0x90(%rbp),%rax
  mov    $0x80,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  lea    -0x90(%rbp),%rsi
  mov    -0x94(%rbp),%eax
  mov    $0x0,%ecx
  mov    $0x80,%edx
  mov    %eax,%edi
  call   <recv@plt>
  lea    -0x90(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  cmp    $0xffffffff,%eax
  jne    L33
  mov    -0x94(%rbp),%eax
  mov    %eax,%edi
  call   <close@plt>
  lea    D52(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L33:
  lea    -0x90(%rbp),%rax
  mov    %rax,%rsi
  lea    D57(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L64:
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x90(%rbp),%rax
  mov    $0x80,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  lea    -0x90(%rbp),%rax
  mov    %rax,%rsi
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    -0x90(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  cmp    $0xffffffff,%eax
  jne    L68
  mov    -0x94(%rbp),%eax
  mov    $0x0,%ecx
  mov    $0x2,%edx
  lea    D56(%rip),%rsi
  mov    %eax,%edi
  call   <send@plt>
  mov    -0x94(%rbp),%eax
  mov    %eax,%edi
  call   <close@plt>
  nop
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L19
  jmp    L58
L68:
  lea    -0x90(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  lea    -0x90(%rbp),%rsi
  mov    -0x94(%rbp),%eax
  mov    $0x0,%ecx
  mov    %eax,%edi
  call   <send@plt>
  jmp    L64
L58:
  call   <__stack_chk_fail@plt>
L19:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D14
datatype: string
name: disassemble_data
arguments: data_tag: D69
datatype: string
name: disassemble_data
arguments: data_tag: D75
datatype: string
name: disassemble_data
arguments: data_tag: D52
datatype: string
name: disassemble_data
arguments: data_tag: D57
datatype: string
name: disassemble_data
arguments: data_tag: D45
datatype: string
name: disassemble_data
arguments: data_tag: D39
datatype: string
name: disassemble_data
arguments: data_tag: D56
datatype: string
name: disassemble_data
arguments: data_tag: D6
datatype: string

tool: D14: Usage: ./client <port no>

tool: D69: 127.0.0.1

tool: D75: tcp_connect() 

tool: D52: Platform Busy !!

tool: D57: Got %s


tool: D45: Enter bogey seq (-1 to exit): 

tool: D39: %s

tool: D56: -1

tool: D6: Train Leaved Platform

assistant: ```c
int main(int argc, char const *argv[]) {
  int port, sfd;
  char buf[128];
  if (argc < 2) {
    printf("Usage: ./client <port no>\n");
    exit(1);
  }
  port = atoi(argv[1]);
  sfd = tcpsock_connect("127.0.0.1", port);
  if (sfd < 0) {
    perror("tcp_connect() ");
    exit(1);
  }
  memset(buf, 0, 128);
  recv(sfd, buf, 128, 0);
  if (atoi(buf) == -1) {
    close(sfd);
    printf("Platform Busy !!\n");
    exit(1);
  }
  printf("Got %s\n", buf);
  while (1) {
    printf("Enter bogey seq (-1 to exit): ");
    memset(buf, 0, 128);
    scanf("%s", buf);
    if (atoi(buf) == -1) {
      send(sfd, "-1", 2, 0);
      close(sfd);
      break;
    }
    send(sfd, buf, strlen(buf), 0);
  }
  printf("Train Leaved Platform\n");
  return 0;
}
```