user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %r15
  lea    D19(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  lea    D9(%rip),%rbp
  push   %rbx
  sub    $0xc8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  call   <puts@plt>
  mov    %rbp,%rdi
  call   <puts@plt>
  lea    D15(%rip),%rdi
  call   <printf@plt>
  mov    %rbp,%rdi
  lea    0x30(%rsp),%rbp
  call   <puts@plt>
  xor    %eax,%eax
  call   <start_receiver@plt>
  lea    0x2b(%rsp),%rax
  movb   $0x0,0x2f(%rsp)
  mov    %rax,(%rsp)
  lea    0x10(%rsp),%rax
  movl   $0x676e6970,0x2b(%rsp)
  mov    %rax,0x8(%rsp)
  nopl   0x0(%rax,%rax,1)
L11:
  lea    D8(%rip),%rdi
  xor    %r15d,%r15d
  xor    %r14d,%r14d
  xor    %r12d,%r12d
  call   <puts@plt>
  mov    $0x80,%edx
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <memset@plt>
  mov    $0x1,%r13d
  mov    %rbp,0x10(%rsp)
  movq   $0x0,0x18(%rsp)
  jmp    L22
  nopw   0x0(%rax,%rax,1)
L100:
  mov    %al,0x0(%rbp,%r15,1)
L88:
  add    $0x1,%r15
  cmp    $0x80,%r15
  je     L35
L22:
  xor    %eax,%eax
  mov    %r15d,%ebx
  call   <getchar@plt>
  cmp    $0xa,%eax
  je     L35
  cmp    $0xd,%eax
  je     L35
  add    $0x1,%ebx
  cmp    $0x20,%eax
  jne    L100
  lea    0x1(%r12),%eax
  cmp    %r15d,%eax
  jge    L88
  movb   $0x0,0x0(%rbp,%r15,1)
  mov    %r15d,%r12d
  add    $0x1,%r15
  mov    %ebx,%r14d
  add    $0x1,%r13d
  cmp    $0x80,%r15
  jne    L22
  nopl   (%rax)
L35:
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    $0x3,%eax
  jle    L11
  mov    (%rsp),%rdi
  mov    %rbp,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L11
  cmp    $0x2,%r13d
  jg     L11
  jne    L70
  movslq %r14d,%rax
  add    %rbp,%rax
  mov    %rax,0x18(%rsp)
L70:
  mov    0x8(%rsp),%rsi
  mov    %r13d,%edi
  call   <ping@plt>
  jmp    L11
```

tool_calls: name: disassemble_data
arguments: data_label: D19
type: string
name: disassemble_data
arguments: data_label: D9
type: string
name: disassemble_data
arguments: data_label: D15
type: string
name: disassemble_data
arguments: data_label: D8
type: string

tool: D19: SmartUniversity - PingPong Example!

tool: D9: ================

tool: D15: You are running Linux, MacOS, or FreeBSD?


tool: D8: USAGE: ping [IP[%IF]]:

assistant: ```c
int main(void) {
  puts("SmartUniversity - PingPong Example!");
  puts("================");
  printf("You are running Linux, MacOS, or FreeBSD?\n");
  puts("================");
  start_receiver();
  char cmd_buf[128];
  char cmd_ping[] = "ping";
  while (1) {
    puts("USAGE: ping [IP[%IF]]:");
    memset(cmd_buf, 0, 128);
    int cnt = 0;
    int lws = 0;
    int pos = 0;
    char *argv[2];
    int argc = 1;
    argv[0] = cmd_buf;
    argv[1] = NULL;
    while (cnt < 128) {
      int c = getchar();
      if (c == '\n' || c == '\r') {
        break;
      }
      if (c == ' ') {
        if (cnt > lws + 1) {
          cmd_buf[cnt] = 0;
          lws = cnt;
          pos = cnt + 1;
          ++argc;
        }
      } else {
        cmd_buf[cnt] = (char)c;
      }
      ++cnt;
    }
    if (strlen(cmd_buf) < 4 || strcmp(cmd_ping, cmd_buf) != 0 || argc > 2)
      continue;
    if (argc > 1) {
      argv[1] = cmd_buf + pos;
    }
    ping(argc, argv);
  }
  return 0;
}
```