user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  cmp    $0x2,%edi
  jle    L115
  mov    0x8(%rsi),%rdi
  lea    D0(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L60
  mov    0x10(%rbx),%rdi
  lea    0x10(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  call   <parse_addr@plt>
  cmp    $0x3,%ebp
  je     L81
  mov    0x18(%rbx),%rdi
  xor    %r12d,%r12d
  call   <atoi@plt>
  xor    %r8d,%r8d
  mov    %eax,%r14d
  cmp    $0x4,%ebp
  je     L194
  mov    0x20(%rbx),%rdi
  mov    $0x73,%r13d
  call   <atoi@plt>
  mov    %eax,%r12d
  cmp    $0x5,%ebp
  je     L120
L125:
  mov    0x28(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r8d
L16:
  cmp    $0x73,%r13d
  je     L194
L88:
  mov    0x10(%rsp),%rsi
  mov    0x8(%rsp),%rdi
  mov    %r12d,%ecx
  mov    %r14d,%edx
  call   <tcp_client@plt>
L28:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L57
  add    $0x20,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L60:
  mov    0x8(%rbx),%rdi
  lea    D24(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L152
  mov    0x10(%rbx),%rdi
  lea    0x10(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  call   <parse_addr@plt>
  cmp    $0x3,%ebp
  jg     L99
  xor    %r12d,%r12d
  mov    $0x400,%r14d
  xor    %r8d,%r8d
  jmp    L88
L115:
  call   <usage@plt>
  mov    0x8(%rbx),%rdi
  lea    D0(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L60
  mov    0x10(%rbx),%rdi
  lea    0x10(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  xor    %r12d,%r12d
  mov    $0x400,%r14d
  call   <parse_addr@plt>
  xor    %r8d,%r8d
L194:
  mov    0x10(%rsp),%rsi
  mov    0x8(%rsp),%rdi
  mov    %r12d,%ecx
  mov    %r14d,%edx
  call   <tcp_server@plt>
  jmp    L28
L81:
  xor    %r12d,%r12d
  mov    $0x400,%r14d
L120:
  xor    %r8d,%r8d
  jmp    L194
L152:
  xor    %eax,%eax
  call   <usage@plt>
  mov    0x10(%rbx),%rdi
  lea    0x10(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  call   <parse_addr@plt>
  cmp    $0x3,%ebp
  jg     L47
  xor    %r12d,%r12d
  mov    $0x400,%r14d
  xor    %r8d,%r8d
  jmp    L16
L57:
  call   <__stack_chk_fail@plt>
L47:
  mov    0x18(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r14d
  cmp    $0x4,%ebp
  je     L0
  mov    0x20(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r12d
  cmp    $0x5,%ebp
  jne    L125
  xor    %r8d,%r8d
  jmp    L16
L99:
  mov    0x18(%rbx),%rdi
  xor    %r12d,%r12d
  call   <atoi@plt>
  xor    %r8d,%r8d
  mov    %eax,%r14d
  cmp    $0x4,%ebp
  je     L88
  mov    0x20(%rbx),%rdi
  mov    $0x63,%r13d
  call   <atoi@plt>
  xor    %r8d,%r8d
  mov    %eax,%r12d
  cmp    $0x5,%ebp
  jne    L125
  jmp    L88
L0:
  xor    %r12d,%r12d
  xor    %r8d,%r8d
  jmp    L16
```

tool_calls: name: unpack_data
arguments: data_label: D0
type: string
name: unpack_data
arguments: data_label: D24
type: string

tool: D0: -s

tool: D24: -c

assistant: ```c
int main(int argc, char *argv[]) {
  int mode;
  char *host;
  char *port;
  int size = 1024;
  int count = 0;
  int interval = 0;
  if (argc < 3)
    usage();
  if (strcmp(argv[1], "-s") == 0)
    mode = 's';
  else if (strcmp(argv[1], "-c") == 0)
    mode = 'c';
  else
    usage();
  parse_addr(argv[2], &host, &port);
  if (argc >= 4)
    size = atoi(argv[3]);
  if (argc >= 5)
    count = atoi(argv[4]);
  if (argc >= 6)
    interval = atoi(argv[5]);
  if (mode == 's')
    tcp_server(host, port, size, count, interval);
  else
    tcp_client(host, port, size, count, interval);
  return 0;
}
```