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

```asm
<connect_timeout>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %edx,%r13d
  xor    %edx,%edx
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  sub    $0x38,%rsp
  mov    %ecx,0xc(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    D36(%rip),%rax
  mov    (%rax),%esi
  call   <fcntl@plt>
  mov    %eax,%r14d
  mov    D59(%rip),%rax
  mov    (%rax),%edx
  test   %r14d,%edx
  je     L31
  mov    D2(%rip),%rax
  mov    %rax,(%rsp)
  jmp    L93
L85:
  mov    D0(%rip),%r15
  mov    D115(%rip),%rbx
  mov    (%r15),%r8d
  cmp    (%rbx),%r8d
  jne    L75
L93:
  mov    %r13d,%edx
  mov    %r12,%rsi
  mov    %ebp,%edi
  call   <connect@plt>
  test   %eax,%eax
  js     L85
L43:
  mov    D24(%rip),%rax
  lea    0x1c(%rsp),%r8
  lea    0x18(%rsp),%rcx
  mov    %ebp,%edi
  movl   $0x4,0x1c(%rsp)
  mov    (%rax),%edx
  mov    D73(%rip),%rax
  mov    (%rax),%esi
  call   <getsockopt@plt>
  mov    0x18(%rsp),%r8d
  test   %r8d,%r8d
  jne    L64
  mov    D59(%rip),%rax
  mov    %ebp,%edi
  mov    %r8d,0xc(%rsp)
  mov    (%rax),%edx
  mov    (%rsp),%rax
  not    %edx
  mov    (%rax),%esi
  and    %r14d,%edx
  call   <fcntl@plt>
  mov    0xc(%rsp),%r8d
L116:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0x38,%rsp
  mov    %r8d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L75:
  mov    D51(%rip),%rax
  cmp    (%rax),%r8d
  jne    L28
  mov    D89(%rip),%rax
  mov    %ebp,0x20(%rsp)
  lea    0x20(%rsp),%r13
  imul   $0x3e8,0xc(%rsp),%r12d
  mov    (%rax),%eax
  mov    %eax,0x24(%rsp)
  jmp    L8
  nopl   (%rax)
L99:
  mov    (%r15),%r8d
  cmp    (%rbx),%r8d
  jne    L28
L8:
  mov    %r12d,%edx
  mov    $0x1,%esi
  mov    %r13,%rdi
  call   <poll@plt>
  test   %eax,%eax
  js     L99
  jne    L43
  mov    (%r15),%r8d
  mov    %ebp,%edi
  mov    %r8d,0xc(%rsp)
  call   <close@plt>
  mov    0xc(%rsp),%r8d
  mov    %r8d,(%r15)
  nopl   0x0(%rax)
L28:
  mov    (%rsp),%rax
  mov    %r14d,%edx
  mov    %ebp,%edi
  mov    %r8d,0xc(%rsp)
  mov    (%rax),%esi
  call   <fcntl@plt>
  mov    0xc(%rsp),%r8d
  mov    %r8d,(%r15)
  mov    $0xffffffff,%r8d
  jmp    L116
  nopl   0x0(%rax,%rax,1)
L31:
  mov    D2(%rip),%rax
  or     %r14d,%edx
  mov    %ebp,%edi
  mov    (%rax),%esi
  mov    %rax,(%rsp)
  call   <fcntl@plt>
  jmp    L93
L64:
  mov    D0(%rip),%r15
  mov    %r8d,(%r15)
  jmp    L28
L2:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int connect_timeout(int s, struct sockaddr *saddrp, int len, int time_secs) {
  struct pollfd pfds;
  int ret, oldfl, err, val;
  socklen_t val_len;
  oldfl = fcntl(s, F_GETFL, 0);
  if (!(oldfl & O_NONBLOCK))
    fcntl(s, F_SETFL, oldfl | O_NONBLOCK);
connect_timeout_connect_restart:
  ret = connect(s, saddrp, len);
  if (ret < 0) {
    if (errno == EINTR)
      goto connect_timeout_connect_restart;
    if (errno != EINPROGRESS)
      goto connect_timeout_err;
    pfds.fd = s;
    pfds.events = POLLOUT;
  connect_timeout_poll_restart:
    ret = poll(&pfds, 1, time_secs * 1000);
    if (ret < 0) {
      if (errno == EINTR)
        goto connect_timeout_poll_restart;
      else
        goto connect_timeout_err;
    }
    if (ret == 0) {
      err = errno;
      close(s);
      errno = err;
      goto connect_timeout_err;
    }
  }
  val_len = sizeof(val);
  ret = getsockopt(s, SOL_SOCKET, SO_ERROR, &val, &val_len);
  if (val != 0) {
    errno = val;
    goto connect_timeout_err;
  }
  fcntl(s, F_SETFL, oldfl & (~O_NONBLOCK));
  return 0;
connect_timeout_err:
  err = errno;
  fcntl(s, F_SETFL, oldfl);
  errno = err;
  return -1;
}
```