user: What would the C source look like for the assembly code provided here?

```asm
<ns_parserr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x24(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %eax,%edx
  mov    D67(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jae    L157
  mov    -0x20(%rbp),%rax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    0x30(%rax),%rax
  cmp    %eax,%edx
  je     L20
  mov    -0x18(%rbp),%rax
  mov    -0x20(%rbp),%rdx
  mov    %rdx,0x30(%rax)
  mov    -0x18(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x18(%rbp),%rax
  mov    0x10(%rax),%rdx
  mov    -0x20(%rbp),%rax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,0x8(%rax)
L20:
  cmpl   $0xffffffff,-0x24(%rbp)
  jne    L37
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x24(%rbp)
L37:
  cmpl   $0x0,-0x24(%rbp)
  js     L122
  mov    -0x18(%rbp),%rax
  mov    0x18(%rax),%rdx
  mov    -0x20(%rbp),%rax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x24(%rbp)
  jge    L122
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x24(%rbp)
  jge    L78
  mov    -0x18(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x18(%rbp),%rax
  mov    0x10(%rax),%rdx
  mov    -0x20(%rbp),%rax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,0x8(%rax)
L78:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x24(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,%ecx
  mov    -0x18(%rbp),%rax
  mov    0x20(%rax),%rsi
  mov    -0x18(%rbp),%rax
  mov    0x28(%rax),%eax
  mov    -0x20(%rbp),%rdx
  mov    %eax,%edi
  call   <skiprr@plt>
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  jns    L101
  mov    $0xffffffff,%eax
  jmp    L228
L101:
  mov    -0x18(%rbp),%rax
  mov    0x8(%rax),%rdx
  mov    -0x4(%rbp),%eax
  cltq
  add    %rax,%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,0x8(%rax)
  mov    -0x18(%rbp),%rax
  mov    -0x24(%rbp),%edx
  mov    %edx,(%rax)
  mov    D69(%rip),%rax
  mov    (%rax),%edi
  mov    -0x30(%rbp),%rax
  mov    0x20(%rax),%ecx
  mov    -0x18(%rbp),%rax
  mov    0x8(%rax),%rdx
  mov    -0x18(%rbp),%rax
  mov    0x20(%rax),%rsi
  mov    -0x18(%rbp),%rax
  mov    0x28(%rax),%eax
  mov    %edi,%r8d
  mov    %eax,%edi
  call   <dn_expand@plt>
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  jns    L45
  mov    $0xffffffff,%eax
  jmp    L228
L45:
  mov    -0x18(%rbp),%rax
  mov    0x8(%rax),%rdx
  mov    -0x4(%rbp),%eax
  cltq
  add    %rax,%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,0x8(%rax)
  mov    -0x18(%rbp),%rax
  mov    0x8(%rax),%rdx
  mov    D15(%rip),%rax
  mov    (%rax),%eax
  cltq
  add    %rax,%rdx
  mov    -0x18(%rbp),%rax
  mov    0x20(%rax),%rax
  cmp    %rax,%rdx
  jg     L238
  mov    -0x18(%rbp),%rax
  mov    0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <NS_GET16@plt>
  mov    -0x18(%rbp),%rax
  mov    0x8(%rax),%rdx
  mov    D15(%rip),%rax
  mov    (%rax),%eax
  cltq
  add    %rax,%rdx
  mov    -0x18(%rbp),%rax
  mov    0x20(%rax),%rax
  cmp    %rax,%rdx
  jg     L119
  mov    -0x18(%rbp),%rax
  mov    0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    0x4(%rax),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <NS_GET16@plt>
  mov    D90(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,-0x20(%rbp)
  jne    L32
  mov    -0x30(%rbp),%rax
  movq   $0x0,0x18(%rax)
  mov    -0x30(%rbp),%rax
  movl   $0x0,0x8(%rax)
  mov    -0x30(%rbp),%rax
  movq   $0x0,0x10(%rax)
  jmp    L97
L32:
  mov    -0x18(%rbp),%rax
  mov    0x8(%rax),%rdx
  mov    D36(%rip),%rax
  mov    (%rax),%eax
  cltq
  add    %rax,%rdx
  mov    -0x18(%rbp),%rax
  mov    0x20(%rax),%rax
  cmp    %rax,%rdx
  jg     L54
  mov    -0x18(%rbp),%rax
  mov    0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    0x18(%rax),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <NS_GET32@plt>
  mov    -0x18(%rbp),%rax
  mov    0x8(%rax),%rdx
  mov    D15(%rip),%rax
  mov    (%rax),%eax
  cltq
  add    %rax,%rdx
  mov    -0x18(%rbp),%rax
  mov    0x20(%rax),%rax
  cmp    %rax,%rdx
  jg     L194
  mov    -0x18(%rbp),%rax
  mov    0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    0x8(%rax),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <NS_GET16@plt>
  mov    -0x18(%rbp),%rax
  mov    0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    0x8(%rax),%eax
  cltq
  add    %rax,%rdx
  mov    -0x18(%rbp),%rax
  mov    0x20(%rax),%rax
  cmp    %rax,%rdx
  jg     L179
  mov    -0x18(%rbp),%rax
  mov    0x8(%rax),%rax
  mov    %rax,%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,0x10(%rax)
  mov    -0x18(%rbp),%rax
  mov    0x8(%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    0x8(%rax),%eax
  cltq
  add    %rax,%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,0x8(%rax)
L97:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,(%rax)
  mov    $0x0,%eax
  jmp    L228
L157:
  nop
  jmp    L103
L122:
  nop
L103:
  mov    D72(%rip),%rax
  mov    (%rax),%edx
  mov    D58(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L228
L238:
  nop
  jmp    L115
L119:
  nop
  jmp    L115
L54:
  nop
  jmp    L115
L194:
  nop
  jmp    L115
L179:
  nop
L115:
  mov    D20(%rip),%rax
  mov    (%rax),%edx
  mov    D58(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
L228:
  leave
  ret
```

assistant: ```c
int ns_parserr(ns_msg *handle, ns_sect section, int rrnum, ns_rr *rr) {
  int b;
  if ((unsigned int)section >= ns_s_max)
    goto enodev;
  if ((int)section != (int)handle->_sect) {
    handle->_sect = section;
    handle->_rrnum = 0;
    handle->_msg_ptr = handle->_sections[(int)section];
  }
  if (rrnum == -1)
    rrnum = handle->_rrnum;
  if (rrnum < 0 || rrnum >= handle->_counts[(int)section])
    goto enodev;
  if (rrnum < handle->_rrnum) {
    handle->_rrnum = 0;
    handle->_msg_ptr = handle->_sections[(int)section];
  }
  b = skiprr(handle->_msg, handle->_eom, section, rrnum - handle->_rrnum);
  if (b < 0)
    return (-1);
  handle->_msg_ptr += b;
  handle->_rrnum = rrnum;
  b = dn_expand(handle->_msg, handle->_eom, handle->_msg_ptr, rr->name, NS_MAXDNAME);
  if (b < 0)
    return (-1);
  handle->_msg_ptr += b;
  if (handle->_msg_ptr + NS_INT16SZ > handle->_eom)
    goto emsgsize;
  NS_GET16(rr->type, handle->_msg_ptr);
  if (handle->_msg_ptr + NS_INT16SZ > handle->_eom)
    goto emsgsize;
  NS_GET16(rr->rr_class, handle->_msg_ptr);
  if (section == ns_s_qd) {
    rr->ttl = 0;
    rr->rdlength = 0;
    rr->rdata = NULL;
  } else {
    if (handle->_msg_ptr + NS_INT32SZ > handle->_eom)
      goto emsgsize;
    NS_GET32(rr->ttl, handle->_msg_ptr);
    if (handle->_msg_ptr + NS_INT16SZ > handle->_eom)
      goto emsgsize;
    NS_GET16(rr->rdlength, handle->_msg_ptr);
    if (handle->_msg_ptr + rr->rdlength > handle->_eom)
      goto emsgsize;
    rr->rdata = handle->_msg_ptr;
    handle->_msg_ptr += rr->rdlength;
  }
  handle->_rrnum++;
  return (0);
enodev:
  errno = ENODEV;
  return (-1);
emsgsize:
  errno = EMSGSIZE;
  return (-1);
}
```