user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<__dns_get_rr>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x148,%rsp
  mov    %rsi,0x8(%rsp)
  mov    %rcx,(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x138(%rsp)
  xor    %eax,%eax
  testb  $0xf,0x3(%r8)
  jne    L20
  mov    %rdx,%r10
  movzbl 0x4(%r8),%edx
  movzbl 0x5(%r8),%ecx
  mov    %r8,%rbp
  movzbl 0x6(%r8),%r13d
  lea    0xc(%r8),%rax
  shl    $0x8,%edx
  add    %ecx,%edx
  movzbl 0x7(%r8),%ecx
  shl    $0x8,%r13d
  add    %ecx,%r13d
  lea    (%rdx,%r13,1),%ecx
  cmp    $0x40,%ecx
  jg     L334
  mov    %rdi,%r11
  lea    -0x1(%rdx),%esi
  lea    0x1fa(%r8),%rdi
  mov    %r9d,%r15d
  test   %edx,%edx
  je     L317
  nopw   0x0(%rax,%rax,1)
L329:
  mov    %rax,%rdx
  movzbl (%rax),%ecx
  sub    %rbp,%rdx
  cmp    $0x1ff,%rdx
  jle    L13
  jmp    L27
  nopl   0x0(%rax)
L356:
  lea    0x1(%rax),%rdx
  mov    %rdx,%rcx
  sub    %rbp,%rcx
  cmp    $0x1ff,%rcx
  jg     L165
  mov    %rdx,%rax
L13:
  movzbl (%rax),%edx
  mov    %edx,%ecx
  sub    $0x1,%edx
  cmp    $0x7e,%edx
  jbe    L356
L27:
  cmp    $0xc1,%cl
  ja     L334
L51:
  je     L231
  cmp    %rdi,%rax
  ja     L334
  cmp    $0x1,%cl
  mov    $0x5,%edx
  sbb    $0xffffffffffffffff,%rdx
L380:
  add    %rdx,%rax
  sub    $0x1,%esi
  jae    L329
L317:
  lea    -0x1(%r13),%r14d
  test   %r13d,%r13d
  je     L20
  lea    0x1fa(%rbp),%r9
  xor    %r13d,%r13d
  mov    %r9,%rdi
  mov    %r13d,%r9d
  mov    %rdi,%r13
  nopl   0x0(%rax,%rax,1)
L166:
  mov    %rax,%rdx
  movzbl (%rax),%ecx
  sub    %rbp,%rdx
  cmp    $0x1ff,%rdx
  jle    L114
  jmp    L310
  nopl   0x0(%rax)
L297:
  lea    0x1(%rax),%rdx
  mov    %rdx,%rcx
  sub    %rbp,%rcx
  cmp    $0x1ff,%rcx
  jg     L71
  mov    %rdx,%rax
L114:
  movzbl (%rax),%edx
  mov    %edx,%ecx
  sub    $0x1,%edx
  cmp    $0x7e,%edx
  jbe    L297
L310:
  cmp    $0xc1,%cl
  ja     L334
  je     L7
  cmp    %r13,%rax
  ja     L334
  cmp    $0x1,%cl
  mov    $0x1,%r12d
  sbb    $0xffffffffffffffff,%r12
L164:
  add    %rax,%r12
  lea    0x200(%rbp),%rsi
  movzbl 0x8(%r12),%ebx
  movzbl 0x9(%r12),%eax
  shl    $0x8,%ebx
  add    %eax,%ebx
  movslq %ebx,%rax
  lea    (%r12,%rax,1),%rdx
  cmp    %rdx,%rsi
  jb     L334
  movzbl 0x1(%r12),%edx
  cmp    %r15d,%edx
  jne    L350
  cmp    %r10,%rax
  jbe    L126
L350:
  lea    0xa(%rbx),%eax
  cltq
  add    %r12,%rax
  sub    $0x1,%r14d
  jae    L166
  mov    %r9d,%r13d
  nopl   0x0(%rax)
L20:
  mov    0x138(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L251
  add    $0x148,%rsp
  mov    %r13d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L165:
  movzbl 0x1(%rax),%ecx
  mov    %rdx,%rax
  cmp    $0xc1,%cl
  jbe    L51
L334:
  mov    $0xffffffff,%r13d
  jmp    L20
L231:
  cmpb   $0xff,0x1(%rax)
  je     L334
  cmp    %rdi,%rax
  ja     L334
  mov    $0x6,%edx
  jmp    L380
  nopl   (%rax)
L71:
  movzbl 0x1(%rax),%ecx
  mov    %rdx,%rax
  jmp    L310
  nopl   0x0(%rax)
L7:
  cmpb   $0xff,0x1(%rax)
  je     L334
  cmp    %r13,%rax
  ja     L334
  mov    $0x2,%r12d
  jmp    L164
L126:
  mov    0x180(%rsp),%eax
  test   %eax,%eax
  jne    L289
  test   %r11,%r11
  je     L312
  cmpq   $0x0,(%rsp)
  je     L312
  mov    %r11,%rdi
  lea    0xa(%r12),%rsi
  mov    %ebx,%edx
  mov    %r10,0x20(%rsp)
  mov    %r9d,0x1c(%rsp)
  mov    %r11,0x10(%rsp)
  call   <memcpy@plt>
  mov    0x20(%rsp),%r10
  mov    0x1c(%rsp),%r9d
  mov    0x10(%rsp),%r11
L18:
  subq   $0x1,(%rsp)
  add    0x8(%rsp),%r11
L312:
  add    $0x1,%r9d
  jmp    L350
L289:
  lea    0x30(%rsp),%rcx
  lea    0xa(%r12),%rdx
  mov    %rbp,%rdi
  mov    %r10,0x28(%rsp)
  mov    $0x100,%r8d
  mov    %r11,0x20(%rsp)
  mov    %r9d,0x1c(%rsp)
  mov    %rcx,0x10(%rsp)
  call   <__dn_expand@plt>
  mov    0x10(%rsp),%rcx
  mov    0x1c(%rsp),%r9d
  test   %rax,%rax
  mov    0x20(%rsp),%r11
  mov    0x28(%rsp),%r10
  js     L334
  test   %r11,%r11
  je     L312
  cmpq   $0x0,(%rsp)
  je     L312
  mov    %r11,%rdi
  mov    %rcx,%rsi
  mov    %r10,0x20(%rsp)
  mov    %r9d,0x1c(%rsp)
  mov    %r11,0x10(%rsp)
  call   <strcpy@plt>
  mov    0x10(%rsp),%r11
  mov    0x1c(%rsp),%r9d
  mov    0x20(%rsp),%r10
  jmp    L18
L251:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int __dns_get_rr(void *dest, size_t stride, size_t maxlen, size_t limit, const unsigned char *r, int rr, int dec) {
  int qdcount, ancount;
  const unsigned char *p;
  char tmp[256];
  int found = 0;
  int len;
  if ((r[3] & 15))
    return 0;
  p = r + 12;
  qdcount = r[4] * 256 + r[5];
  ancount = r[6] * 256 + r[7];
  if (qdcount + ancount > 64)
    return -1;
  while (qdcount--) {
    while (p - r < 512 && *p - 1U < 127)
      p++;
    if (*p > 193 || (*p == 193 && p[1] > 254) || p > r + 506)
      return -1;
    p += 5 + !!*p;
  }
  while (ancount--) {
    while (p - r < 512 && *p - 1U < 127)
      p++;
    if (*p > 193 || (*p == 193 && p[1] > 254) || p > r + 506)
      return -1;
    p += 1 + !!*p;
    len = p[8] * 256 + p[9];
    if (p + len > r + 512)
      return -1;
    if (p[1] == rr && len <= maxlen) {
      if (dec && __dn_expand(r, r + 512, p + 10, tmp, sizeof tmp) < 0)
        return -1;
      if (dest && limit) {
        if (dec)
          strcpy(dest, tmp);
        else
          memcpy(dest, p + 10, len);
        dest = (char *)dest + stride;
        limit--;
      }
      found++;
    }
    p += 10 + len;
  }
  return found;
}
```