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    D107(%rip),%rax
  mov    (%rax),%esi
  call   <fcntl@plt>
  mov    %eax,%r14d
  mov    D30(%rip),%rax
  mov    (%rax),%edx
  test   %r14d,%edx
  je     L20
  mov    D16(%rip),%rax
  mov    %rax,(%rsp)
  jmp    L59
L102:
  mov    D28(%rip),%r15
  mov    D75(%rip),%rbx
  mov    (%r15),%r8d
  cmp    (%rbx),%r8d
  jne    L114
L59:
  mov    %r13d,%edx
  mov    %r12,%rsi
  mov    %ebp,%edi
  call   <connect@plt>
  test   %eax,%eax
  js     L102
L126:
  mov    D19(%rip),%rax
  lea    0x1c(%rsp),%r8
  lea    0x18(%rsp),%rcx
  mov    %ebp,%edi
  movl   $0x4,0x1c(%rsp)
  mov    (%rax),%edx
  mov    D101(%rip),%rax
  mov    (%rax),%esi
  call   <getsockopt@plt>
  mov    0x18(%rsp),%r8d
  test   %r8d,%r8d
  jne    L40
  mov    D30(%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
L97:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  add    $0x38,%rsp
  mov    %r8d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L114:
  mov    D81(%rip),%rax
  cmp    (%rax),%r8d
  jne    L74
  mov    D100(%rip),%rax
  movd   %ebp,%xmm0
  lea    0x20(%rsp),%r13
  imul   $0x3e8,0xc(%rsp),%r12d
  mov    (%rax),%eax
  movd   %eax,%xmm1
  punpckldq %xmm1,%xmm0
  movq   %xmm0,0x20(%rsp)
  jmp    L16
  nopw   0x0(%rax,%rax,1)
L62:
  mov    (%r15),%r8d
  cmp    (%rbx),%r8d
  jne    L74
L16:
  mov    %r12d,%edx
  mov    $0x1,%esi
  mov    %r13,%rdi
  call   <poll@plt>
  test   %eax,%eax
  js     L62
  jne    L126
  mov    (%r15),%r8d
  mov    %ebp,%edi
  mov    %r8d,0xc(%rsp)
  call   <close@plt>
  mov    0xc(%rsp),%r8d
  mov    %r8d,(%r15)
  nopl   0x0(%rax)
L74:
  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    L97
  nopl   0x0(%rax,%rax,1)
L20:
  mov    D16(%rip),%rax
  or     %r14d,%edx
  mov    %ebp,%edi
  mov    (%rax),%esi
  mov    %rax,(%rsp)
  call   <fcntl@plt>
  jmp    L59
L40:
  mov    D28(%rip),%r15
  mov    %r8d,(%r15)
  jmp    L74
L9:
  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;
}
```