user: 请将以下的汇编代码转换成C语言代码:

```asm
<crypto_aead_encrypt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %r8,%r12
  push   %rbp
  mov    %r9,%rbp
  push   %rbx
  mov    %rcx,%rbx
  sub    $0x98,%rsp
  mov    %rdi,0x8(%rsp)
  lea    0x30(%rsp),%r14
  mov    0xe0(%rsp),%rdi
  mov    %rsi,0x18(%rsp)
  mov    0xd8(%rsp),%rsi
  mov    %rdx,0x10(%rsp)
  mov    %r14,%rdx
  mov    %r8,0x20(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  call   <aegis128_initialization@plt>
  cmp    $0xf,%rbp
  jbe    L74
  mov    $0x10,%r15d
  lea    0x60(%rsp),%r13
  sub    $0x10,%r12
  nopl   0x0(%rax,%rax,1)
L101:
  lea    (%r12,%r15,1),%rdi
  mov    %r14,%rdx
  mov    %r13,%rsi
  call   <aegis128_enc_aut_step@plt>
  mov    %r15,%r9
  add    $0x10,%r15
  cmp    %r15,%rbp
  jae    L101
L35:
  mov    %rbp,%r12
  and    $0xf,%r12d
  jne    L38
  cmp    $0xf,%rbx
  jbe    L20
L66:
  mov    0x8(%rsp),%rax
  mov    $0x10,%r15d
  lea    -0x10(%rax),%r13
  mov    0x10(%rsp),%rax
  lea    -0x10(%rax),%r12
  nopw   0x0(%rax,%rax,1)
L103:
  lea    0x0(%r13,%r15,1),%rsi
  lea    (%r12,%r15,1),%rdi
  mov    %r14,%rdx
  call   <aegis128_enc_aut_step@plt>
  mov    %r15,%rcx
  add    $0x10,%r15
  cmp    %rbx,%r15
  jbe    L103
  mov    %rbx,%r12
  and    $0xf,%r12d
  jne    L25
L26:
  lea    0x70(%rsp),%r12
  mov    $0x10,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    %r12,%rcx
  mov    %r14,%r8
  call   <aegis128_tag_generation@plt>
  mov    0x18(%rsp),%rcx
  lea    0x10(%rbx),%rax
  mov    %r12,%rsi
  mov    0x8(%rsp),%rdi
  mov    $0x10,%edx
  mov    %rax,(%rcx)
  add    %rbx,%rdi
  call   <memcpy@plt>
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L0
  add    $0x98,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L38:
  lea    0x50(%rsp),%r13
  xor    %esi,%esi
  mov    $0x10,%edx
  mov    %r9,0x28(%rsp)
  mov    %r13,%rdi
  call   <memset@plt>
  mov    0x20(%rsp),%rsi
  mov    %r12d,%edx
  mov    %r13,%rdi
  mov    0x28(%rsp),%r9
  add    %r9,%rsi
  call   <memcpy@plt>
  lea    0x60(%rsp),%rsi
  mov    %r14,%rdx
  mov    %r13,%rdi
  call   <aegis128_enc_aut_step@plt>
  cmp    $0xf,%rbx
  ja     L66
L20:
  mov    %rbx,%r12
  xor    %ecx,%ecx
  and    $0xf,%r12d
  je     L26
  nopw   0x0(%rax,%rax,1)
L25:
  lea    0x50(%rsp),%r13
  xor    %esi,%esi
  mov    $0x10,%edx
  mov    %rcx,0x20(%rsp)
  mov    %r13,%rdi
  lea    0x60(%rsp),%r15
  call   <memset@plt>
  mov    0x20(%rsp),%rcx
  mov    %r12d,%edx
  mov    %r13,%rdi
  mov    0x10(%rsp),%rsi
  mov    %rcx,0x10(%rsp)
  add    %rcx,%rsi
  call   <memcpy@plt>
  mov    %r14,%rdx
  mov    %r15,%rsi
  mov    %r13,%rdi
  call   <aegis128_enc_aut_step@plt>
  mov    0x8(%rsp),%rax
  mov    %r12d,%edx
  mov    %r15,%rsi
  mov    0x10(%rsp),%rcx
  lea    (%rax,%rcx,1),%rdi
  call   <memcpy@plt>
  jmp    L26
  nop
L74:
  xor    %r9d,%r9d
  jmp    L35
L0:
  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 aegis128_state[5];
  aegis128_initialization(k, npub, aegis128_state);
  for (i = 0; (i + 16) <= adlen; i += 16) {
    aegis128_enc_aut_step(ad + i, ciphertextblock, aegis128_state);
  }
  if ((adlen & 0xf) != 0) {
    memset(plaintextblock, 0, 16);
    memcpy(plaintextblock, ad + i, adlen & 0xf);
    aegis128_enc_aut_step(plaintextblock, ciphertextblock, aegis128_state);
  }
  for (i = 0; (i + 16) <= mlen; i += 16) {
    aegis128_enc_aut_step(m + i, c + i, aegis128_state);
  }
  if ((mlen & 0xf) != 0) {
    memset(plaintextblock, 0, 16);
    memcpy(plaintextblock, m + i, mlen & 0xf);
    aegis128_enc_aut_step(plaintextblock, ciphertextblock, aegis128_state);
    memcpy(c + i, ciphertextblock, mlen & 0xf);
  }
  aegis128_tag_generation(mlen, adlen, 16, mac, aegis128_state);
  *clen = mlen + 16;
  memcpy(c + mlen, mac, 16);
  return 0;
}
```