user: 下面的汇编指令对应的C源代码是什么:

```asm
<send_t>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edi,%r12d
  mov    %rsi,%r13
  mov    %rdx,%rbp
  mov    %r9d,%r14d
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  test   %rcx,%rcx
  je     L180
  test   %r8,%r8
  jne    L142
L180:
  mov    $0x0,%ebx
  jmp    L155
L142:
  mov    %r8,0x18(%rsp)
  mov    %rcx,0x10(%rsp)
  lea    0xc(%rsp),%r15
L93:
  mov    %r15,%rdi
  call   <FD_ZERO@plt>
  mov    %r15,%rsi
  mov    %r12d,%edi
  call   <FD_SET@plt>
  lea    0x1(%r12),%edi
  lea    0x10(%rsp),%r8
  mov    $0x0,%ecx
  mov    %r15,%rdx
  mov    $0x0,%esi
  call   <select@plt>
  cmp    $0xffffffff,%eax
  jne    L212
  mov    D35(%rip),%rcx
  mov    D64(%rip),%rdx
  mov    (%rdx),%rdi
  cmp    %rdi,(%rcx)
  je     L93
  jmp    L64
L212:
  test   %eax,%eax
  je     L64
  lea    0xc(%rsp),%rsi
  mov    %r12d,%edi
  call   <FD_ISSET@plt>
  test   %eax,%eax
  je     L175
  mov    $0x0,%ebx
  mov    D10(%rip),%r15
  jmp    L231
L189:
  mov    D35(%rip),%rax
  mov    (%rax),%rax
  mov    D64(%rip),%rdx
  cmp    (%rdx),%rax
  je     L83
  mov    D86(%rip),%rdx
  cmp    (%rdx),%rax
  jne    L215
L83:
  mov    $0x64,%edi
  call   <usleep@plt>
L146:
  cmp    %rbp,%rbx
  jae    L21
L231:
  mov    %r14d,%ecx
  or     (%r15),%ecx
  mov    %rbp,%rdx
  sub    %rbx,%rdx
  lea    0x0(%r13,%rbx,4),%rsi
  mov    %r12d,%edi
  call   <send@plt>
  test   %eax,%eax
  jle    L189
  cltq
  add    %rax,%rbx
  jmp    L146
L21:
  mov    %ebx,%eax
  jmp    L64
L138:
  cltq
  add    %rax,%rbx
L79:
  cmp    %rbp,%rbx
  jae    L162
L155:
  mov    %rbp,%rdx
  sub    %rbx,%rdx
  lea    0x0(%r13,%rbx,4),%rsi
  mov    %r14d,%ecx
  mov    %r12d,%edi
  call   <send@plt>
  test   %eax,%eax
  jg     L138
  mov    D35(%rip),%rax
  mov    (%rax),%rax
  mov    D64(%rip),%rdx
  cmp    (%rdx),%rax
  je     L168
  mov    D86(%rip),%rdx
  cmp    (%rdx),%rax
  jne    L0
L168:
  mov    $0x64,%edi
  call   <usleep@plt>
  jmp    L79
L162:
  mov    %ebx,%eax
L64:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L174
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L175:
  mov    $0xffffffff,%eax
  jmp    L64
L215:
  mov    $0xffffffff,%eax
  jmp    L64
L0:
  mov    $0xffffffff,%eax
  jmp    L64
L174:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int send_t(int sock, uint8_t *buf, size_t buflen, struct timeval wait, int flag) {
  int ret = -1;
  fd_set wset;
  struct timeval tv;
  size_t n = 0;
  int bytes = 0;
  if (wait.tv_sec && wait.tv_usec) {
    tv.tv_sec = wait.tv_sec;
    tv.tv_usec = wait.tv_usec;
  RE_SEND:
    FD_ZERO(&wset);
    FD_SET(sock, &wset);
    ret = select(sock + 1, (fd_set *)0, &wset, (fd_set *)0, &tv);
    if (ret == -1) {
      if (errno == EINTR) {
        goto RE_SEND;
      }
      return -1;
    } else if (ret == 0) {
      return 0;
    }
    if (!FD_ISSET(sock, &wset)) {
      return -1;
    }
    do {
      bytes = send(sock, buf + n, buflen - n, MSG_DONTWAIT | flag);
      if (bytes <= 0) {
        if (errno == EINTR || errno == EAGAIN) {
          usleep(100);
          continue;
        }
        return -1;
      }
      n += bytes;
    } while (n < buflen);
    return n;
  }
  do {
    bytes = send(sock, buf + n, buflen - n, flag);
    if (bytes <= 0) {
      if (errno == EINTR || errno == EAGAIN) {
        usleep(100);
        continue;
      }
      return -1;
    }
    n += bytes;
  } while (n < buflen);
  return n;
}
```