user: 这段汇编代码用C语言表示是什么样的？

```asm
<ss_connect_to_ipv4_host_impl>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  mov    %rsi,%r12
  xor    %esi,%esi
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %dx,(%rsp)
  lea    0x20(%rsp),%r15
  mov    $0x18,%edx
  mov    %ecx,0x4(%rsp)
  mov    %r15,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <memset@plt>
  mov    D32(%rip),%rax
  mov    %r13,%rdi
  mov    (%rax),%eax
  mov    %eax,0x34(%rsp)
  mov    D49(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,0x30(%rsp)
  call   <Slock_object@plt>
  test   %r12,%r12
  je     L78
  mov    %r12,%rdi
  call   <Slock_object@plt>
  xor    %eax,%eax
  call   <Sdeactivate_thread@plt>
  lea    0x18(%rsp),%rcx
  mov    %r15,%rdx
  mov    %r12,%rsi
  mov    %r13,%rdi
  call   <getaddrinfo@plt>
  test   %rax,%rax
  jne    L243
  mov    0x18(%rsp),%r15
  test   %r15,%r15
  je     L243
L14:
  movzwl (%rsp),%eax
  mov    D105(%rip),%rbp
  mov    %eax,0x8(%rsp)
L72:
  mov    D49(%rip),%rax
  xor    %edx,%edx
  mov    (%rax),%esi
  mov    D32(%rip),%rax
  mov    (%rax),%edi
  call   <socket@plt>
  mov    %eax,%r14d
  cmp    $0xffffffff,%eax
  je     L113
  mov    D80(%rip),%rax
  mov    %r14d,%edi
  mov    (%rax),%esi
  xor    %eax,%eax
  call   <fcntl@plt>
  mov    D0(%rip),%rdx
  mov    %r14d,%edi
  or     (%rdx),%eax
  mov    %eax,%edx
  mov    D114(%rip),%rax
  mov    (%rax),%esi
  xor    %eax,%eax
  call   <fcntl@plt>
  mov    0x4(%rsp),%eax
  test   %eax,%eax
  je     L129
L5:
  cmpw   $0x0,(%rsp)
  mov    (%r15),%rbx
  je     L70
  jmp    L202
  nopl   0x0(%rax,%rax,1)
L177:
  mov    D6(%rip),%rax
  mov    0x0(%rbp),%edx
  cmp    (%rax),%edx
  jne    L175
L70:
  mov    $0x4,%edx
  mov    %rbx,%rsi
  mov    %r14d,%edi
  call   <connect@plt>
  cmp    $0xffffffff,%eax
  je     L177
  mov    0x0(%rbp),%ebx
  jmp    L26
  nopl   0x0(%rax,%rax,1)
L175:
  mov    D101(%rip),%rax
  mov    (%rax),%ebx
  cmp    %ebx,%edx
  jne    L12
L26:
  xor    %eax,%eax
  call   <Sactivate_thread@plt>
  mov    %r13,%rdi
  call   <Sunlock_object@plt>
  test   %r12,%r12
  je     L156
L16:
  mov    %r12,%rdi
  call   <Sunlock_object@plt>
L156:
  mov    0x18(%rsp),%rdi
  call   <freeaddrinfo@plt>
L144:
  mov    %ebx,0x0(%rbp)
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L83
  add    $0x48,%rsp
  mov    %r14d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L78:
  xor    %eax,%eax
  call   <Sdeactivate_thread@plt>
  xor    %esi,%esi
  lea    0x18(%rsp),%rcx
  mov    %r15,%rdx
  mov    %r13,%rdi
  call   <getaddrinfo@plt>
  test   %rax,%rax
  jne    L242
  mov    0x18(%rsp),%r15
  test   %r15,%r15
  jne    L14
L242:
  mov    D105(%rip),%rbp
  xor    %eax,%eax
  mov    0x0(%rbp),%ebx
  call   <Sactivate_thread@plt>
  mov    %r13,%rdi
  call   <Sunlock_object@plt>
L132:
  mov    $0xffffffff,%r14d
  jmp    L144
  nopl   (%rax)
L129:
  mov    %r14d,%edi
  call   <ss_set_fd_non_blocking@plt>
  test   %eax,%eax
  jne    L5
  mov    %r14d,%edi
  mov    0x0(%rbp),%ebx
  call   <close@plt>
L168:
  xor    %eax,%eax
  mov    $0xfffffffe,%r14d
  call   <Sactivate_thread@plt>
  mov    %r13,%rdi
  call   <Sunlock_object@plt>
  test   %r12,%r12
  jne    L16
  jmp    L156
  xchg   %ax,%ax
L202:
  mov    0x8(%rsp),%edi
  call   <htons@plt>
  mov    %eax,(%rbx)
  jmp    L70
L12:
  mov    %r14d,%edi
  mov    %edx,0xc(%rsp)
  call   <close@plt>
  mov    0x8(%r15),%r15
  mov    0xc(%rsp),%edx
  test   %r15,%r15
  jne    L72
  xor    %eax,%eax
  mov    %edx,(%rsp)
  call   <Sactivate_thread@plt>
  mov    %r13,%rdi
  call   <Sunlock_object@plt>
  test   %r12,%r12
  mov    (%rsp),%edx
  je     L38
  mov    %edx,%ebx
  mov    $0xfffffffd,%r14d
  jmp    L16
L113:
  mov    0x0(%rbp),%ebx
  jmp    L168
L38:
  mov    0x18(%rsp),%rdi
  mov    $0xfffffffd,%r14d
  call   <freeaddrinfo@plt>
  mov    (%rsp),%ebx
  jmp    L144
L243:
  mov    D105(%rip),%rbp
  xor    %eax,%eax
  mov    0x0(%rbp),%ebx
  call   <Sactivate_thread@plt>
  mov    %r13,%rdi
  call   <Sunlock_object@plt>
  mov    %r12,%rdi
  call   <Sunlock_object@plt>
  jmp    L132
L83:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int ss_connect_to_ipv4_host_impl(const char *address, const char *service, unsigned short port, int blocking) {
  struct addrinfo hints;
  memset(&hints, 0, sizeof(hints));
  hints.ai_family = AF_INET;
  hints.ai_socktype = SOCK_STREAM;
  Slock_object((void *)address);
  if (service)
    Slock_object((void *)service);
  Sdeactivate_thread();
  struct addrinfo *info;
  int saved_errno = 0;
  if (getaddrinfo(address, service, &hints, &info) || info == NULL) {
    saved_errno = errno;
    Sactivate_thread();
    Sunlock_object((void *)address);
    if (service)
      Sunlock_object((void *)service);
    errno = saved_errno;
    return -1;
  }
  int sock;
  struct addrinfo *tmp;
  int err = 0;
  for (tmp = info; tmp != NULL; tmp = tmp->ai_next) {
    err = 0;
    sock = socket(AF_INET, SOCK_STREAM, 0);
    if (sock == -1) {
      saved_errno = errno;
      err = -2;
      break;
    }
    fcntl(sock, F_SETFD, fcntl(sock, F_GETFD) | FD_CLOEXEC);
    if (!blocking && !(ss_set_fd_non_blocking(sock))) {
      saved_errno = errno;
      close(sock);
      err = -2;
      break;
    }
    struct sockaddr *in = tmp->ai_addr;
    if (port > 0)
      ((struct sockaddr_in *)in)->sin_port = htons(port);
    int res;
    do {
      res = connect(sock, in, sizeof(struct sockaddr_in));
    } while (res == -1 && errno == EINTR);
    saved_errno = errno;
    if (res == -1 && errno != EINPROGRESS) {
      close(sock);
      err = -3;
      continue;
    } else
      break;
  }
  Sactivate_thread();
  Sunlock_object((void *)address);
  if (service)
    Sunlock_object((void *)service);
  freeaddrinfo(info);
  errno = saved_errno;
  if (err)
    return err;
  return sock;
}
```