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

```asm
<ns_parserr>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  test   %rsi,%rsi
  js     L74
  mov    D27(%rip),%rax
  mov    %rsi,%rbp
  cmp    %rsi,(%rax)
  jle    L74
  mov    %rdi,%rbx
  mov    %edx,%r13d
  mov    %rcx,%r12
  cmp    %esi,0x30(%rdi)
  je     L24
  mov    0x10(%rdi),%rdx
  movslq %esi,%rax
  mov    %rsi,0x30(%rdi)
  movl   $0x0,(%rdi)
  mov    (%rdx,%rax,8),%rax
  mov    %rax,0x8(%rdi)
L24:
  cmp    $0xffffffff,%r13d
  jne    L14
  mov    (%rbx),%r13d
L14:
  test   %r13d,%r13d
  js     L74
  mov    0x18(%rbx),%rdx
  movslq %ebp,%rax
  cmp    %r13d,(%rdx,%rax,4)
  jle    L74
  mov    (%rbx),%edx
  cmp    %r13d,%edx
  jg     L181
  mov    %r13d,%ecx
  sub    %edx,%ecx
L169:
  mov    0x20(%rbx),%rsi
  mov    0x28(%rbx),%edi
  mov    %rbp,%rdx
  call   <skiprr@plt>
  test   %eax,%eax
  js     L174
  movslq %eax,%rdx
  add    0x8(%rbx),%rdx
  mov    0x20(%r12),%ecx
  mov    %r13d,(%rbx)
  mov    D28(%rip),%rax
  mov    0x20(%rbx),%rsi
  mov    %rdx,0x8(%rbx)
  mov    0x28(%rbx),%edi
  mov    (%rax),%r8d
  call   <dn_expand@plt>
  test   %eax,%eax
  js     L174
  mov    D82(%rip),%r13
  movslq %eax,%rsi
  add    0x8(%rbx),%rsi
  mov    %rsi,0x8(%rbx)
  movslq 0x0(%r13),%rax
  add    %rsi,%rax
  cmp    0x20(%rbx),%rax
  jg     L61
  mov    (%r12),%edi
  call   <NS_GET16@plt>
  mov    0x8(%rbx),%rsi
  movslq 0x0(%r13),%rax
  add    %rsi,%rax
  cmp    0x20(%rbx),%rax
  jg     L61
  mov    0x4(%r12),%edi
  call   <NS_GET16@plt>
  mov    D61(%rip),%rax
  cmp    %rbp,(%rax)
  je     L28
  mov    D32(%rip),%rax
  mov    0x8(%rbx),%rsi
  movslq (%rax),%rax
  add    %rsi,%rax
  cmp    0x20(%rbx),%rax
  jg     L61
  mov    0x18(%r12),%rdi
  call   <NS_GET32@plt>
  mov    0x8(%rbx),%rsi
  movslq 0x0(%r13),%rax
  add    %rsi,%rax
  cmp    0x20(%rbx),%rax
  jg     L61
  mov    0x8(%r12),%edi
  call   <NS_GET16@plt>
  mov    0x8(%rbx),%rdx
  movslq 0x8(%r12),%rax
  add    %rdx,%rax
  cmp    0x20(%rbx),%rax
  jg     L61
  mov    %rdx,0x10(%r12)
  mov    %rax,0x8(%rbx)
L167:
  addl   $0x1,(%rbx)
  xor    %eax,%eax
L115:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopw   0x0(%rax,%rax,1)
L181:
  mov    0x10(%rbx),%rdx
  movl   $0x0,(%rbx)
  mov    %r13d,%ecx
  mov    (%rdx,%rax,8),%rax
  mov    %rax,0x8(%rbx)
  jmp    L169
  nopw   0x0(%rax,%rax,1)
L28:
  movq   $0x0,0x18(%r12)
  movl   $0x0,0x8(%r12)
  movq   $0x0,0x10(%r12)
  jmp    L167
  nopl   (%rax)
L61:
  mov    D55(%rip),%rax
  mov    (%rax),%edx
  mov    D6(%rip),%rax
  mov    %edx,(%rax)
L174:
  mov    $0xffffffff,%eax
  jmp    L115
  nopl   0x0(%rax)
L74:
  mov    D56(%rip),%rax
  mov    (%rax),%edx
  mov    D6(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L115
```

assistant: ```c
int ns_parserr(ns_msg *handle, ns_sect section, int rrnum, ns_rr *rr) {
  int b;
  if (section < 0 || 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);
}
```