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

```asm
<get_address>:
  endbr64
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  test   %rsi,%rsi
  je     L97
  movb   $0x0,(%rsi)
L97:
  test   %rbp,%rbp
  je     L235
  movb   $0x0,0x0(%rbp)
L235:
  lea    0x10(%rsp),%r13
  mov    $0x20,%edx
  xor    %esi,%esi
  mov    %r13,%rdi
  call   <memset@plt>
  mov    %r13,%rdx
  lea    0x8(%rsp),%rcx
  xor    %esi,%esi
  mov    D57(%rip),%rax
  mov    %r14,%rdi
  mov    (%rax),%eax
  mov    %eax,0x10(%rsp)
  mov    D34(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,0x28(%rsp)
  call   <getaddrinfo@plt>
  mov    %eax,%r13d
  test   %eax,%eax
  jne    L156
  mov    0x8(%rsp),%rbx
  mov    %rbx,%rdi
  test   %rbx,%rbx
  je     L42
  test   %r12,%r12
  je     L150
  test   %rbp,%rbp
  jne    L175
  nopl   0x0(%rax)
L153:
  cmpl   $0x81,(%rbx)
  je     L17
  mov    0x10(%rbx),%rbx
  test   %rbx,%rbx
  jne    L153
L94:
  mov    0x8(%rsp),%rdi
L42:
  call   <freeaddrinfo@plt>
L156:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L31
  add    $0x40,%rsp
  mov    %r13d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L71:
  cmp    $0x81,%eax
  jne    L48
  mov    D28(%rip),%rax
  mov    0x8(%rbx),%rsi
  mov    %r12,%rdx
  mov    $0x81,%edi
  mov    (%rax),%ecx
  call   <inet_ntop@plt>
L48:
  mov    0x10(%rbx),%rbx
  test   %rbx,%rbx
  je     L94
L175:
  mov    (%rbx),%eax
  cmp    $0x80,%eax
  jne    L71
  mov    D54(%rip),%rax
  mov    0x8(%rbx),%rsi
  mov    %rbp,%rdx
  mov    $0x80,%edi
  mov    (%rax),%ecx
  call   <inet_ntop@plt>
  jmp    L48
  nopw   0x0(%rax,%rax,1)
L150:
  test   %rbp,%rbp
  je     L223
L65:
  cmpl   $0x80,(%rbx)
  je     L24
L158:
  mov    0x10(%rbx),%rbx
  test   %rbx,%rbx
  je     L94
  cmpl   $0x80,(%rbx)
  jne    L158
L24:
  mov    D54(%rip),%rax
  mov    0x8(%rbx),%rsi
  mov    %rbp,%rdx
  mov    $0x80,%edi
  mov    (%rax),%ecx
  call   <inet_ntop@plt>
  mov    0x10(%rbx),%rbx
  test   %rbx,%rbx
  jne    L65
  jmp    L94
  nopw   0x0(%rax,%rax,1)
L223:
  mov    0x10(%rbx),%rbx
  test   %rbx,%rbx
  je     L42
  mov    0x10(%rbx),%rbx
  test   %rbx,%rbx
  jne    L223
  jmp    L42
  nopl   0x0(%rax,%rax,1)
L17:
  mov    D28(%rip),%rax
  mov    0x8(%rbx),%rsi
  mov    %r12,%rdx
  mov    $0x81,%edi
  mov    (%rax),%ecx
  call   <inet_ntop@plt>
  mov    0x10(%rbx),%rbx
  test   %rbx,%rbx
  jne    L153
  jmp    L94
L31:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int get_address(const char *hostname, char *ipv4, char *ipv6) {
  struct addrinfo *result, *res;
  struct addrinfo hints;
  int err;
  if (ipv4)
    *ipv4 = 0;
  if (ipv6)
    *ipv6 = 0;
  memset(&hints, 0, sizeof(hints));
  hints.ai_family = AF_UNSPEC;
  hints.ai_socktype = SOCK_STREAM;
  err = getaddrinfo(hostname, NULL, &hints, &result);
  if (err)
    return err;
  for (res = result; res; res = res->ai_next)
    switch (res->ai_family) {
    case AF_INET:
      if (ipv4) {
        struct sockaddr_in *sin = (struct sockaddr_in *)res->ai_addr;
        inet_ntop(res->ai_family, &sin->sin_addr, ipv4, INET_ADDRSTRLEN);
      }
      break;
    case AF_INET6:
      if (ipv6) {
        struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)res->ai_addr;
        inet_ntop(res->ai_family, &sin6->sin6_addr, ipv6, INET6_ADDRSTRLEN);
      }
      break;
    }
  freeaddrinfo(result);
  return 0;
}
```