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

```asm
<server_setget_info>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x30,%rsp
  mov    %edi,0xc(%rsp)
  mov    %rsi,%r13
  mov    %rdx,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    D20(%rip),%r14
  mov    $0x0,%edx
  mov    D7(%rip),%rax
  mov    (%rax),%esi
  mov    (%r14),%edi
  call   <socket@plt>
  mov    %eax,%ebp
  mov    %eax,%edi
  call   <assert@plt>
  lea    0x1c(%rsp),%rbx
  mov    $0xc,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    (%r14),%eax
  mov    %eax,0x24(%rsp)
  mov    D18(%rip),%rax
  mov    (%rax),%edi
  call   <htonl@plt>
  mov    %eax,0x20(%rsp)
  mov    $0x5000,%edi
  call   <htons@plt>
  mov    %eax,0x1c(%rsp)
  mov    $0xc,%edx
  mov    %rbx,%rsi
  mov    %ebp,%edi
  call   <bind@plt>
  test   %eax,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    $0x1,%esi
  mov    %ebp,%edi
  call   <listen@plt>
  test   %eax,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    %ebp,%edi
  call   <accept@plt>
  mov    %eax,%ebx
  mov    %eax,%edi
  call   <assert@plt>
  lea    0xc(%rsp),%rsi
  mov    $0x4,%edx
  mov    %ebx,%edi
  call   <write@plt>
  cmp    $0x4,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  lea    0x10(%rsp),%rsi
  mov    $0x8,%edx
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <read@plt>
  cmp    $0x8,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    $0x4,%edx
  mov    %r13,%rsi
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <read@plt>
  cmp    $0x4,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    $0x4,%edx
  mov    %r12,%rsi
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <read@plt>
  cmp    $0x4,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %ebx,%edi
  call   <close@plt>
  mov    %ebp,%edi
  call   <close@plt>
  mov    0x10(%rsp),%rax
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L6
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L6:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
size_t server_setget_info(int port, int *num_threads, int *persist_with_reads) {
  struct sockaddr_in serv_addr;
  int lfd = 0, ret = 0, connfd;
  size_t buffer_size;
  int conn_port = 20480;
  lfd = socket(AF_INET, SOCK_STREAM, 0);
  assert(lfd);
  memset(&serv_addr, 0, sizeof(serv_addr));
  serv_addr.sin_family = AF_INET;
  serv_addr.sin_addr.s_addr = htonl(INADDR_ANY);
  serv_addr.sin_port = htons(conn_port);
  ret = bind(lfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr));
  assert(ret == 0);
  ret = listen(lfd, 1);
  assert(ret == 0);
  connfd = accept(lfd, (struct sockaddr *)NULL, NULL);
  assert(connfd);
  ret = write(connfd, &port, sizeof(port));
  assert(ret == sizeof(port));
  ret = read(connfd, &buffer_size, sizeof(buffer_size));
  assert(ret == sizeof(buffer_size));
  ret = read(connfd, num_threads, sizeof(int));
  assert(ret == sizeof(int));
  ret = read(connfd, persist_with_reads, sizeof(int));
  assert(ret == sizeof(int));
  close(connfd);
  close(lfd);
  return buffer_size;
}
```