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

```asm
<ns_initparse>:
  endbr64
  push   %r15
  movslq %esi,%rsi
  mov    %rdx,%r15
  mov    $0x40,%edx
  push   %r14
  push   %r13
  lea    (%rdi,%rsi,4),%r13
  mov    $0x5e,%esi
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  mov    %r15,%rdi
  push   %rbx
  sub    $0x8,%rsp
  call   <memset@plt>
  mov    D23(%rip),%r14
  mov    %rbp,0x38(%r15)
  mov    %r13,0x30(%r15)
  movslq (%r14),%rax
  lea    0x0(%rbp,%rax,4),%rax
  cmp    %rax,%r13
  jb     L106
  mov    (%r15),%rdi
  mov    %rbp,%rsi
  call   <NS_GET16@plt>
  movslq (%r14),%rax
  lea    0x0(%rbp,%rax,4),%rax
  cmp    %rax,%r13
  jb     L106
  mov    0x8(%r15),%rdi
  mov    %rbp,%rsi
  call   <NS_GET16@plt>
  mov    D27(%rip),%r12
  mov    (%r12),%eax
  test   %eax,%eax
  jle    L124
  xor    %ebx,%ebx
  jmp    L40
  nopl   0x0(%rax,%rax,1)
L14:
  mov    0x10(%r15),%rax
  mov    %rbp,%rsi
  mov    (%rax,%rbx,8),%rdi
  add    $0x1,%rbx
  call   <NS_GET16@plt>
  mov    (%r12),%eax
  cmp    %ebx,%eax
  jle    L112
L40:
  movslq (%r14),%rax
  lea    0x0(%rbp,%rax,4),%rax
  cmp    %rax,%r13
  jae    L14
L106:
  mov    D28(%rip),%rax
  mov    (%rax),%edx
  mov    D22(%rip),%rax
  mov    %edx,(%rax)
  add    $0x8,%rsp
  mov    $0xffffffff,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L112:
  test   %eax,%eax
  jle    L124
  xor    %ebx,%ebx
  jmp    L35
  nopl   0x0(%rax,%rax,1)
L39:
  mov    0x28(%r15),%rax
  movq   $0x0,(%rax,%rbx,8)
  mov    (%r12),%eax
  add    $0x1,%rbx
  cmp    %ebx,%eax
  jle    L124
L35:
  mov    0x10(%r15),%rax
  mov    %ebx,%edx
  lea    0x0(,%rbx,8),%r14
  mov    (%rax,%rbx,8),%rcx
  test   %rcx,%rcx
  je     L39
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <skiprr@plt>
  test   %eax,%eax
  js     L128
  mov    0x28(%r15),%rdx
  cltq
  add    $0x1,%rbx
  mov    %rbp,(%rdx,%r14,1)
  lea    0x0(%rbp,%rax,4),%rbp
  mov    (%r12),%eax
  cmp    %ebx,%eax
  jg     L35
L124:
  cmp    %rbp,%r13
  jne    L106
  mov    %eax,0x18(%r15)
  xor    %eax,%eax
  movl   $0xffffffff,0x1c(%r15)
  movq   $0x0,0x20(%r15)
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L128:
  add    $0x8,%rsp
  mov    $0xffffffff,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int ns_initparse(const u_char *msg, int msglen, ns_msg *handle) {
  const u_char *eom = msg + msglen;
  int i;
  memset(handle, 0x5e, sizeof *handle);
  handle->_msg = msg;
  handle->_eom = eom;
  if (msg + NS_INT16SZ > eom)
    goto emsgsize;
  NS_GET16(handle->_id, msg);
  if (msg + NS_INT16SZ > eom)
    goto emsgsize;
  NS_GET16(handle->_flags, msg);
  for (i = 0; i < ns_s_max; i++) {
    if (msg + NS_INT16SZ > eom)
      goto emsgsize;
    NS_GET16(handle->_counts[i], msg);
  }
  for (i = 0; i < ns_s_max; i++)
    if (handle->_counts[i] == 0)
      handle->_sections[i] = NULL;
    else {
      int b = skiprr(msg, eom, (ns_sect)i, handle->_counts[i]);
      if (b < 0)
        return (-1);
      handle->_sections[i] = msg;
      msg += b;
    }
  if (msg != eom)
    goto emsgsize;
  handle->_sect = ns_s_max;
  handle->_rrnum = -1;
  handle->_msg_ptr = NULL;
  return (0);
emsgsize:
  errno = EMSGSIZE;
  return (-1);
}
```