user: 这段汇编代码用C语言表示是什么样的:

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x98,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  cmp    $0x1,%edi
  jle    L50
L34:
  mov    0x8(%rbx),%rdi
  call   <atoi@plt>
  lea    D30(%rip),%rdi
  mov    %eax,%esi
  call   <tcpsock_connect@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  js     L82
L47:
  mov    %rsp,%rbx
  xor    %esi,%esi
  mov    $0x80,%edx
  mov    %rbx,%rdi
  call   <memset@plt>
  xor    %ecx,%ecx
  mov    %ebp,%edi
  mov    $0x80,%edx
  mov    %rbx,%rsi
  call   <recv@plt>
  mov    %rbx,%rdi
  call   <atoi@plt>
  cmp    $0xffffffff,%eax
  je     L69
L28:
  mov    %rbx,%rsi
  lea    D65(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D13(%rip),%r13
  lea    D26(%rip),%r12
  jmp    L60
  cs nopw 0x0(%rax,%rax,1)
L2:
  mov    %rbx,%rdi
  call   <strlen@plt>
  xor    %ecx,%ecx
  mov    %rbx,%rsi
  mov    %ebp,%edi
  mov    %eax,%edx
  call   <send@plt>
L60:
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %esi,%esi
  mov    $0x80,%edx
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    %r12,%rdi
  mov    %rbx,%rsi
  call   <scanf@plt>
  mov    %rbx,%rdi
  call   <atoi@plt>
  cmp    $0xffffffff,%eax
  jne    L2
  xor    %ecx,%ecx
  mov    $0x2,%edx
  lea    D3(%rip),%rsi
  mov    %ebp,%edi
  call   <send@plt>
  mov    %ebp,%edi
  call   <close@plt>
  lea    D46(%rip),%rdi
  call   <puts@plt>
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L85
  add    $0x98,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L50:
  lea    D21(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L34
L82:
  lea    D2(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L47
L69:
  mov    %ebp,%edi
  call   <close@plt>
  lea    D22(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L28
L85:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D30
type_guessed: string
name: parse_data
arguments: tag: D65
type_guessed: string
name: parse_data
arguments: tag: D13
type_guessed: string
name: parse_data
arguments: tag: D26
type_guessed: string
name: parse_data
arguments: tag: D3
type_guessed: string
name: parse_data
arguments: tag: D46
type_guessed: string
name: parse_data
arguments: tag: D21
type_guessed: string
name: parse_data
arguments: tag: D2
type_guessed: string
name: parse_data
arguments: tag: D22
type_guessed: string

tool: D30: 127.0.0.1

tool: D65: Got %s


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

tool: D26: %s

tool: D3: -1

tool: D46: Train Leaved Platform

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

tool: D2: tcp_connect() 

tool: D22: Platform Busy !!

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;
}
```