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

```asm
<crypto_aead_encrypt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %rdi,%r12
  mov    %rsi,0x18(%rsp)
  mov    %rdx,%r14
  mov    %rcx,%rbp
  mov    %r8,%r15
  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   <aegis256_initialization@plt>
  cmp    $0xf,%r13
  jbe    L84
  mov    $0x10,%ebx
  lea    0x20(%rsp),%rax
  mov    %rax,0x8(%rsp)
L103:
  lea    0x50(%rsp),%rsi
  lea    -0x10(%r15,%rbx,1),%rdi
  mov    0x8(%rsp),%rdx
  call   <aegis256_enc_aut_step@plt>
  mov    %rbx,0x10(%rsp)
  add    $0x10,%rbx
  cmp    %rbx,%r13
  jae    L103
L69:
  test   $0xf,%r13b
  jne    L60
L42:
  cmp    $0xf,%rbp
  jbe    L71
  mov    $0x10,%ebx
  lea    0x20(%rsp),%r15
L22:
  lea    -0x10(%r12,%rbx,1),%rsi
  lea    -0x10(%r14,%rbx,1),%rdi
  mov    %r15,%rdx
  call   <aegis256_enc_aut_step@plt>
  mov    %rbx,0x8(%rsp)
  add    $0x10,%rbx
  cmp    %rbx,%rbp
  jae    L22
L48:
  test   $0xf,%bpl
  jne    L78
L54:
  lea    0x60(%rsp),%rbx
  lea    0x20(%rsp),%r8
  mov    %rbx,%rcx
  mov    $0x10,%edx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <aegis256_tag_generation@plt>
  lea    0x10(%rbp),%rax
  mov    0x18(%rsp),%rcx
  mov    %rax,(%rcx)
  lea    (%r12,%rbp,1),%rdi
  mov    $0x10,%edx
  mov    %rbx,%rsi
  call   <memcpy@plt>
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L38
  mov    $0x0,%eax
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L84:
  movq   $0x0,0x10(%rsp)
  jmp    L69
L60:
  lea    0x40(%rsp),%rbx
  mov    $0x10,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    %r13d,%edx
  and    $0xf,%edx
  mov    0x10(%rsp),%rsi
  add    %r15,%rsi
  mov    %rbx,%rdi
  call   <memcpy@plt>
  lea    0x20(%rsp),%rdx
  lea    0x50(%rsp),%rsi
  mov    %rbx,%rdi
  call   <aegis256_enc_aut_step@plt>
  jmp    L42
L71:
  movq   $0x0,0x8(%rsp)
  jmp    L48
L78:
  lea    0x40(%rsp),%rbx
  mov    $0x10,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    %ebp,%r15d
  and    $0xf,%r15d
  mov    0x8(%rsp),%rax
  lea    (%r14,%rax,1),%rsi
  mov    %r15d,%edx
  mov    %rbx,%rdi
  call   <memcpy@plt>
  lea    0x20(%rsp),%rdx
  lea    0x50(%rsp),%r14
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <aegis256_enc_aut_step@plt>
  mov    0x8(%rsp),%rax
  lea    (%r12,%rax,1),%rdi
  mov    %r15d,%edx
  mov    %r14,%rsi
  call   <memcpy@plt>
  jmp    L54
L38:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int crypto_aead_encrypt(unsigned char *c, unsigned long long *clen, const unsigned char *m, unsigned long long mlen, const unsigned char *ad, unsigned long long adlen, const unsigned char *nsec, const unsigned char *npub, const unsigned char *k) {
  unsigned long long i;
  unsigned char plaintextblock[16], ciphertextblock[16], mac[16];
  __m128i aegis256_state[6];
  aegis256_initialization(k, npub, aegis256_state);
  for (i = 0; (i + 16) <= adlen; i += 16) {
    aegis256_enc_aut_step(ad + i, ciphertextblock, aegis256_state);
  }
  if ((adlen & 0xf) != 0) {
    memset(plaintextblock, 0, 16);
    memcpy(plaintextblock, ad + i, adlen & 0xf);
    aegis256_enc_aut_step(plaintextblock, ciphertextblock, aegis256_state);
  }
  for (i = 0; (i + 16) <= mlen; i += 16) {
    aegis256_enc_aut_step(m + i, c + i, aegis256_state);
  }
  if ((mlen & 0xf) != 0) {
    memset(plaintextblock, 0, 16);
    memcpy(plaintextblock, m + i, mlen & 0xf);
    aegis256_enc_aut_step(plaintextblock, ciphertextblock, aegis256_state);
    memcpy(c + i, ciphertextblock, mlen & 0xf);
  }
  aegis256_tag_generation(mlen, adlen, 16, mac, aegis256_state);
  *clen = mlen + 16;
  memcpy(c + mlen, mac, 16);
  return 0;
}
```