user: 请从给定的汇编指令推导出C源代码:

```asm
<crypto_aead_encrypt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x108,%rsp
  mov    %rdi,%r12
  mov    %rsi,0x10(%rsp)
  mov    %rdx,(%rsp)
  mov    %rcx,%rbx
  mov    %r8,0x8(%rsp)
  mov    %r9,%rbp
  mov    0x148(%rsp),%rax
  mov    %rax,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xf8(%rsp)
  xor    %eax,%eax
  lea    0x40(%rsp),%r13
  mov    %r13,%rsi
  mov    0x150(%rsp),%rdi
  call   <AESKeySteup@plt>
  lea    0x30(%rsp),%r14
  mov    $0x10,%edx
  mov    $0x0,%esi
  mov    %r14,%rdi
  call   <memset@plt>
  lea    0x28(%rsp),%r15
  mov    $0x8,%edx
  mov    $0x0,%esi
  mov    %r15,%rdi
  call   <memset@plt>
  mov    %r15,%rcx
  mov    %r14,%rdx
  mov    0x18(%rsp),%rsi
  mov    %r13,%rdi
  call   <jambu_initialization@plt>
  cmp    $0x7,%rbp
  jbe    L70
  mov    $0x8,%r13d
  mov    %r15,%r14
L67:
  lea    0x30(%rsp),%rdx
  lea    -0x8(%r13),%esi
  add    0x8(%rsp),%rsi
  lea    0x40(%rsp),%rdi
  mov    %r14,%rcx
  call   <jambu_aut_ad_step@plt>
  mov    %r13d,%edx
  add    $0x8,%r13d
  mov    %r13d,%eax
  cmp    %rbp,%rax
  jbe    L67
L23:
  mov    %rbp,%r8
  and    $0x7,%r8d
  je     L71
  lea    0x28(%rsp),%rcx
  lea    0x30(%rsp),%rax
  mov    %edx,%edx
  mov    0x8(%rsp),%rsi
  add    %rdx,%rsi
  lea    0x40(%rsp),%rdi
  mov    %rax,%rdx
  call   <jambu_aut_ad_partial@plt>
L53:
  mov    $0x8,%ebp
  lea    0x28(%rsp),%r13
  mov    $0x0,%edx
  cmp    $0x7,%rbx
  jbe    L98
L14:
  lea    -0x8(%rbp),%esi
  lea    0x30(%rsp),%rcx
  lea    (%r12,%rsi,1),%rdx
  add    (%rsp),%rsi
  lea    0x40(%rsp),%rdi
  mov    %r13,%r8
  call   <jambu_enc_aut_msg_step@plt>
  mov    %ebp,%edx
  add    $0x8,%ebp
  mov    %ebp,%eax
  cmp    %rbx,%rax
  jbe    L14
L98:
  mov    %rbx,%r9
  and    $0x7,%r9d
  je     L82
  mov    %edx,%edx
  lea    0x30(%rsp),%rcx
  lea    (%r12,%rdx,1),%rax
  mov    (%rsp),%rsi
  add    %rdx,%rsi
  lea    0x40(%rsp),%rdi
  lea    0x28(%rsp),%r8
  mov    %rax,%rdx
  call   <jambu_enc_aut_msg_partial@plt>
L47:
  lea    0x30(%rsp),%rcx
  lea    0x40(%rsp),%rdi
  lea    0x28(%rsp),%r8
  mov    %r12,%rdx
  mov    %rbx,%rsi
  call   <jambu_tag_generation@plt>
  add    $0x8,%rbx
  mov    0x10(%rsp),%rax
  mov    %rbx,(%rax)
  mov    0xf8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L40
  mov    $0x0,%eax
  add    $0x108,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L70:
  mov    $0x0,%edx
  jmp    L23
L71:
  lea    0x28(%rsp),%rdx
  lea    0x30(%rsp),%rsi
  lea    0x40(%rsp),%rdi
  call   <jambu_aut_ad_full@plt>
  jmp    L53
L82:
  lea    0x28(%rsp),%rdx
  lea    0x30(%rsp),%rsi
  lea    0x40(%rsp),%rdi
  call   <jambu_enc_aut_msg_full@plt>
  jmp    L47
L40:
  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 int i;
  unsigned int jambu_state[4];
  unsigned int stateR[2];
  unsigned int EK[44];
  AESKeySteup(k, EK);
  memset(jambu_state, 0, 16);
  memset(stateR, 0, 8);
  jambu_initialization(EK, npub, jambu_state, stateR);
  for (i = 0; (i + 8) <= adlen; i += 8) {
    jambu_aut_ad_step(EK, ad + i, jambu_state, stateR);
  }
  if ((adlen & 0x7) != 0) {
    jambu_aut_ad_partial(EK, ad + i, jambu_state, stateR, adlen & 0x7);
  } else {
    jambu_aut_ad_full(EK, jambu_state, stateR);
  }
  for (i = 0; (i + 8) <= mlen; i += 8) {
    jambu_enc_aut_msg_step(EK, m + i, c + i, jambu_state, stateR);
  }
  if ((mlen & 0x7) != 0) {
    jambu_enc_aut_msg_partial(EK, m + i, c + i, jambu_state, stateR, mlen & 0x7);
  } else {
    jambu_enc_aut_msg_full(EK, jambu_state, stateR);
  }
  jambu_tag_generation(EK, mlen, c, jambu_state, stateR);
  *clen = mlen + 8;
  return 0;
}
```