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

```asm
<_read_retry>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x28(%rbp)
  mov    %rcx,-0x38(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L150
L19:
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <FD_ZERO@plt>
  lea    -0x20(%rbp),%rdx
  mov    -0x24(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <FD_SET@plt>
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rdi
  call   <FD_ZERO@plt>
  lea    -0x1c(%rbp),%rdx
  mov    -0x24(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <FD_SET@plt>
  mov    -0x24(%rbp),%eax
  lea    0x1(%rax),%edi
  mov    -0x38(%rbp),%rcx
  lea    -0x1c(%rbp),%rdx
  lea    -0x20(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  mov    $0x0,%edx
  mov    %rax,%rsi
  call   <_select_retry@plt>
  mov    %eax,-0x10(%rbp)
  cmpl   $0xffffffff,-0x10(%rbp)
  jne    L4
  mov    $0xffffffff,%eax
  jmp    L82
L4:
  cmpl   $0x0,-0x10(%rbp)
  jne    L107
  mov    D55(%rip),%rax
  mov    (%rax),%rdx
  mov    D9(%rip),%rax
  mov    %rdx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L82
L107:
  lea    -0x1c(%rbp),%rdx
  mov    -0x24(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <FD_ISSET@plt>
  test   %rax,%rax
  je     L57
  mov    D58(%rip),%rax
  mov    (%rax),%rdx
  mov    D9(%rip),%rax
  mov    %rdx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L82
L57:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x14(%rbp),%edx
  mov    -0x24(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <read@plt>
  mov    %eax,-0xc(%rbp)
  cmpl   $0x0,-0xc(%rbp)
  jne    L117
  cmpl   $0x1,-0x10(%rbp)
  jne    L117
  mov    D58(%rip),%rax
  mov    (%rax),%rdx
  mov    D9(%rip),%rax
  mov    %rdx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L82
L117:
  cmpl   $0xffffffff,-0xc(%rbp)
  jne    L140
  mov    D9(%rip),%rax
  mov    (%rax),%rdx
  mov    D53(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  je     L150
  mov    D9(%rip),%rax
  mov    (%rax),%rdx
  mov    D31(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jne    L58
  jmp    L150
L58:
  mov    $0xffffffff,%eax
  jmp    L82
L140:
  mov    -0xc(%rbp),%eax
  add    %eax,-0x18(%rbp)
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x14(%rbp)
L150:
  mov    -0x18(%rbp),%eax
  cmp    -0x28(%rbp),%eax
  jl     L19
  mov    -0x18(%rbp),%eax
L82:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L81
  call   <__stack_chk_fail@plt>
L81:
  leave
  ret
```

assistant: ```c
ssize_t _read_retry(int sockfd, void *buf, int count, struct timeval *timeout) {
  int n, total = 0, remain = count, rv = 0;
  fd_set rfds, xfds;
  while (total < count) {
    FD_ZERO(&rfds);
    FD_SET(sockfd, &rfds);
    FD_ZERO(&xfds);
    FD_SET(sockfd, &xfds);
    rv = _select_retry(sockfd + 1, &rfds, NULL, &xfds, timeout);
    if (rv == -1)
      return -1;
    else if (rv == 0) {
      errno = ETIMEDOUT;
      return -1;
    }
    if (FD_ISSET(sockfd, &xfds)) {
      errno = EPIPE;
      return -1;
    }
    n = read(sockfd, buf + (off_t)total, remain);
    if ((n == 0) && (rv == 1)) {
      errno = EPIPE;
      return -1;
    }
    if (n == -1) {
      if ((errno == EAGAIN) || (errno == EINTR)) {
        continue;
      }
      return -1;
    }
    total += n;
    remain -= n;
  }
  return total;
}
```