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

```asm
<crypto_aead_decrypt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %rdi,%r14
  mov    %rsi,%r12
  mov    %rcx,%rbx
  mov    %r8,0x8(%rsp)
  mov    %r9,%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rdx
  mov    0xc8(%rsp),%rsi
  mov    0xd0(%rsp),%rdi
  call   <acorn128_initialization_32bitversion@plt>
  mov    0xc0(%rsp),%r15
  shr    $0x2,%r15
  cmpq   $0x3,0xc0(%rsp)
  jbe    L101
  mov    $0x0,%ebp
  lea    0x1c(%rsp),%rax
  mov    %rax,(%rsp)
L97:
  lea    0x18(%rsp),%rdx
  mov    0x0(%r13,%rbp,4),%esi
  lea    0x20(%rsp),%rdi
  mov    $0xffffffff,%r9d
  mov    $0xffffffff,%r8d
  mov    (%rsp),%rcx
  call   <encrypt_32bits@plt>
  add    $0x1,%rbp
  cmp    %r15,%rbp
  jb     L97
L101:
  mov    0xc0(%rsp),%rbp
  and    $0xfffffffffffffffc,%rbp
  cmp    %rbp,0xc0(%rsp)
  jbe    L28
  add    %r13,%rbp
  add    0xc0(%rsp),%r13
  lea    0x1c(%rsp),%r15
L58:
  movzbl 0x0(%rbp),%esi
  mov    %esi,0x14(%rsp)
  lea    0x18(%rsp),%rdx
  lea    0x20(%rsp),%rdi
  mov    $0xff,%r9d
  mov    $0xff,%r8d
  mov    %r15,%rcx
  call   <encrypt_8bits@plt>
  add    $0x1,%rbp
  cmp    %r13,%rbp
  jne    L58
L28:
  mov    $0x0,%ebp
  lea    0x1c(%rsp),%r13
L16:
  test   %rbp,%rbp
  sete   %sil
  movzbl %sil,%esi
  mov    %esi,0x14(%rsp)
  cmp    $0x4,%rbp
  sbb    %r8d,%r8d
  lea    0x18(%rsp),%rdx
  lea    0x20(%rsp),%rdi
  mov    $0xffffffff,%r9d
  mov    %r13,%rcx
  call   <encrypt_32bits@plt>
  add    $0x1,%rbp
  cmp    $0x8,%rbp
  jne    L16
  mov    0x8(%rsp),%rax
  sub    $0x10,%rax
  mov    %rax,(%r12)
  cmp    $0x3,%rax
  jbe    L10
  mov    %r14,%r13
  mov    $0x0,%ebp
  lea    0x1c(%rsp),%r15
L4:
  mov    (%rbx,%rbp,4),%edx
  lea    0x20(%rsp),%rdi
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    %r15,%rcx
  mov    %r13,%rsi
  call   <decrypt_32bits@plt>
  add    $0x1,%rbp
  mov    (%r12),%rax
  add    $0x4,%r13
  mov    %rax,%rdx
  shr    $0x2,%rdx
  cmp    %rbp,%rdx
  ja     L4
L10:
  and    $0xfffffffffffffffc,%rax
  mov    %rax,%rbp
  cmp    %rax,(%r12)
  jbe    L114
  lea    0x1c(%rsp),%r13
L92:
  movzbl (%rbx,%rbp,1),%edx
  mov    %edx,0x18(%rsp)
  lea    0x14(%rsp),%rsi
  lea    0x20(%rsp),%rdi
  mov    $0x0,%r9d
  mov    $0xff,%r8d
  mov    %r13,%rcx
  call   <decrypt_8bits@plt>
  mov    0x14(%rsp),%eax
  mov    %al,(%r14,%rbp,1)
  add    $0x1,%rbp
  cmp    %rbp,(%r12)
  ja     L92
L114:
  mov    $0x0,%ebp
  lea    0x1c(%rsp),%r13
L53:
  test   %rbp,%rbp
  sete   %sil
  movzbl %sil,%esi
  mov    %esi,0x14(%rsp)
  cmp    $0x4,%rbp
  sbb    %r8d,%r8d
  lea    0x18(%rsp),%rdx
  lea    0x20(%rsp),%rdi
  mov    $0x0,%r9d
  mov    %r13,%rcx
  call   <encrypt_32bits@plt>
  add    $0x1,%rbp
  cmp    $0x8,%rbp
  jne    L53
  lea    0x60(%rsp),%rcx
  lea    0x20(%rsp),%r8
  mov    $0x10,%edx
  mov    0xc0(%rsp),%rsi
  mov    (%r12),%rdi
  call   <acorn128_tag_generation_32bits_version@plt>
  mov    $0x0,%ecx
  mov    $0x0,%eax
  add    0x8(%rsp),%rbx
  lea    0x60(%rsp),%rsi
L65:
  movzbl -0x10(%rbx,%rax,1),%edx
  xor    (%rax,%rsi,1),%dl
  or     %edx,%ecx
  add    $0x1,%rax
  cmp    $0x10,%rax
  jne    L65
  neg    %cl
  sbb    %eax,%eax
  mov    0x78(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L56
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L56:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int crypto_aead_decrypt(unsigned char *m, unsigned long long *mlen, unsigned char *nsec, const unsigned char *c, unsigned long long clen, const unsigned char *ad, unsigned long long adlen, const unsigned char *npub, const unsigned char *k) {
  unsigned long long i;
  unsigned char tag[16], check = 0;
  unsigned int plaintextword, ciphertextword, ksword;
  unsigned long long state[7];
  unsigned int ca, cb;
  acorn128_initialization_32bitversion(k, npub, state);
  ca = 0xffffffff;
  cb = 0xffffffff;
  for (i = 0; i < adlen / 4; i = i + 1) {
    encrypt_32bits(state, ((unsigned int *)ad)[i], &ciphertextword, &ksword, ca, cb);
  }
  for (i = adlen & 0xfffffffffffffffcULL; i < adlen; i++) {
    ca = 0xff;
    cb = 0xff;
    plaintextword = ad[i];
    encrypt_8bits(state, plaintextword, &ciphertextword, &ksword, ca, cb);
  }
  for (i = 0; i < 256 / 32; i++) {
    if (i == 0)
      plaintextword = 0x1;
    else
      plaintextword = 0;
    if (i < 128 / 32)
      ca = 0xffffffff;
    else
      ca = 0;
    cb = 0xffffffff;
    encrypt_32bits(state, plaintextword, &ciphertextword, &ksword, ca, cb);
  }
  ca = 0xffffffff;
  cb = 0;
  *mlen = clen - 16;
  for (i = 0; i < *mlen / 4; i = i + 1) {
    decrypt_32bits(state, &(((unsigned int *)m)[i]), ((unsigned int *)c)[i], &ksword, ca, cb);
  }
  for (i = *mlen & 0xfffffffffffffffcULL; i < *mlen; i++) {
    ca = 0xff;
    cb = 0x0;
    ciphertextword = c[i];
    decrypt_8bits(state, &plaintextword, ciphertextword, &ksword, ca, cb);
    m[i] = plaintextword;
  }
  for (i = 0; i < 256 / 32; i++) {
    if (i == 0)
      plaintextword = 0x1;
    else
      plaintextword = 0;
    if (i < 128 / 32)
      ca = 0xffffffff;
    else
      ca = 0;
    cb = 0;
    encrypt_32bits(state, plaintextword, &ciphertextword, &ksword, ca, cb);
  }
  acorn128_tag_generation_32bits_version(*mlen, adlen, 16, tag, state);
  for (i = 0; i < 16; i++)
    check |= (tag[i] ^ c[clen - 16 + i]);
  if (check == 0)
    return 0;
  else
    return -1;
}
```