user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<punycode_decode>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %rdx,-0x78(%rbp)
  mov    %rcx,-0x80(%rbp)
  movq   $0x0,-0x30(%rbp)
  jmp    L121
L31:
  mov    -0x68(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jns    L9
  mov    -0x80(%rbp),%rax
  movq   $0x0,(%rax)
  mov    $0x0,%eax
  jmp    L191
L9:
  addq   $0x1,-0x30(%rbp)
L121:
  mov    -0x30(%rbp),%rax
  cmp    -0x70(%rbp),%rax
  jb     L31
  mov    -0x70(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x60(%rbp)
  jmp    L197
L134:
  subq   $0x1,-0x60(%rbp)
L197:
  mov    -0x60(%rbp),%rax
  cmp    -0x68(%rbp),%rax
  jbe    L216
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L134
L216:
  mov    -0x60(%rbp),%rax
  sub    -0x68(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rax
  mov    -0x18(%rbp),%rdx
  cmp    %rax,%rdx
  cmovbe %rdx,%rax
  mov    %rax,-0x28(%rbp)
  movq   $0x0,-0x48(%rbp)
  jmp    L227
L95:
  mov    -0x68(%rbp),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    -0x78(%rbp),%rcx
  mov    -0x48(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addq   $0x1,-0x48(%rbp)
L227:
  mov    -0x48(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  jb     L95
  movq   $0x0,-0x48(%rbp)
  movq   $0x80,-0x58(%rbp)
  movq   $0x48,-0x20(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  setne  %al
  movzbl %al,%edx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x30(%rbp)
  jmp    L219
L234:
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  movq   $0x1,-0x38(%rbp)
  movq   $0x24,-0x40(%rbp)
  jmp    L82
L286:
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x30(%rbp)
  mov    -0x68(%rbp),%rdx
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <decode_digit@plt>
  mov    %rax,-0x8(%rbp)
  mov    D26(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,-0x8(%rbp)
  je     L155
  mov    D26(%rip),%rax
  mov    (%rax),%rax
  sub    -0x48(%rbp),%rax
  mov    $0x0,%edx
  divq   -0x38(%rbp)
  cmp    %rax,-0x8(%rbp)
  jbe    L38
  mov    $0x0,%edi
  call   <assert@plt>
  jmp    L74
L38:
  mov    -0x8(%rbp),%rax
  imul   -0x38(%rbp),%rax
  add    %rax,-0x48(%rbp)
  mov    -0x40(%rbp),%rax
  cmp    -0x20(%rbp),%rax
  ja     L208
  movq   $0x1,-0x50(%rbp)
  jmp    L241
L208:
  mov    -0x20(%rbp),%rax
  add    $0x1a,%rax
  cmp    %rax,-0x40(%rbp)
  jb     L19
  movq   $0x1a,-0x50(%rbp)
  jmp    L241
L19:
  mov    -0x40(%rbp),%rax
  sub    -0x20(%rbp),%rax
  mov    %rax,-0x50(%rbp)
L241:
  mov    -0x8(%rbp),%rax
  cmp    -0x50(%rbp),%rax
  jb     L102
  mov    D26(%rip),%rax
  mov    (%rax),%rax
  mov    $0x24,%edx
  mov    %rdx,%rsi
  sub    -0x50(%rbp),%rsi
  mov    $0x0,%edx
  div    %rsi
  cmp    %rax,-0x38(%rbp)
  jbe    L238
  mov    $0x0,%edi
  call   <assert@plt>
  jmp    L74
L238:
  mov    $0x24,%eax
  sub    -0x50(%rbp),%rax
  mov    -0x38(%rbp),%rdx
  imul   %rdx,%rax
  mov    %rax,-0x38(%rbp)
  addq   $0x24,-0x40(%rbp)
L82:
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rax
  cmp    %rax,-0x28(%rbp)
  jb     L286
  jmp    L124
L102:
  nop
L124:
  cmpq   $0x0,-0x10(%rbp)
  sete   %al
  movzbl %al,%edx
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    -0x48(%rbp),%rax
  sub    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <adapt_bias@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rsi
  mov    -0x48(%rbp),%rax
  mov    $0x0,%edx
  div    %rsi
  mov    %rax,%rdx
  mov    D26(%rip),%rax
  mov    (%rax),%rax
  sub    -0x58(%rbp),%rax
  cmp    %rax,%rdx
  jbe    L184
  mov    $0x0,%edi
  call   <assert@plt>
  jmp    L74
L184:
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdi
  mov    -0x48(%rbp),%rax
  mov    $0x0,%edx
  div    %rdi
  add    %rax,-0x58(%rbp)
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    -0x48(%rbp),%rax
  mov    $0x0,%edx
  div    %rcx
  mov    %rdx,-0x48(%rbp)
  mov    -0x28(%rbp),%rax
  sub    -0x48(%rbp),%rax
  mov    -0x78(%rbp),%rcx
  mov    -0x48(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rsi
  mov    -0x48(%rbp),%rdx
  lea    0x1(%rdx),%rcx
  mov    -0x78(%rbp),%rdx
  add    %rdx,%rcx
  mov    %rax,%rdx
  mov    %rcx,%rdi
  call   <memmove@plt>
  mov    -0x48(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  mov    -0x78(%rbp),%rdx
  add    %rdx,%rax
  mov    -0x58(%rbp),%rdx
  mov    %dl,(%rax)
  addq   $0x1,-0x28(%rbp)
L219:
  mov    -0x30(%rbp),%rax
  cmp    -0x70(%rbp),%rax
  jae    L235
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rax
  cmp    %rax,-0x28(%rbp)
  jb     L234
  jmp    L235
L155:
  nop
  jmp    L74
L235:
  nop
L74:
  mov    -0x80(%rbp),%rax
  mov    -0x28(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x30(%rbp),%rax
L191:
  leave
  ret
```

assistant: ```c
size_t punycode_decode(const char *const src, const size_t srclen, uint32_t *const dst, size_t *const dstlen) {
  const char *p;
  size_t b, n, t;
  size_t i, k, w;
  size_t si, di;
  size_t digit;
  size_t org_i;
  size_t bias;
  for (si = 0; si < srclen; si++) {
    if (src[si] & 0x80) {
      *dstlen = 0;
      return 0;
    }
  }
  for (p = src + srclen - 1; p > src && *p != '-'; p--)
    ;
  b = p - src;
  di = ((b) < (*dstlen) ? (b) : (*dstlen));
  for (i = 0; i < di; i++) {
    dst[i] = src[i];
  }
  i = 0;
  n = 128;
  bias = 72;
  for (si = b + (b > 0); si < srclen && di < *dstlen; di++) {
    org_i = i;
    for (w = 1, k = 36; di < *dstlen; k += 36) {
      digit = decode_digit(src[si++]);
      if (digit == SIZE_MAX) {
        goto fail;
      }
      if (digit > (SIZE_MAX - i) / w) {
        assert(0 && "OVERFLOW");
        goto fail;
      }
      i += digit * w;
      if (k <= bias) {
        t = 1;
      } else if (k >= bias + 26) {
        t = 26;
      } else {
        t = k - bias;
      }
      if (digit < t) {
        break;
      }
      if (w > SIZE_MAX / (36 - t)) {
        assert(0 && "OVERFLOW");
        goto fail;
      }
      w *= 36 - t;
    }
    bias = adapt_bias(i - org_i, di + 1, org_i == 0);
    if (i / (di + 1) > SIZE_MAX - n) {
      assert(0 && "OVERFLOW");
      goto fail;
    }
    n += i / (di + 1);
    i %= (di + 1);
    memmove(dst + i + 1, dst + i, (di - i) * sizeof(uint32_t));
    dst[i++] = n;
  }
fail:
  *dstlen = di;
  return si;
}
```