user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<deoxys_aead_encrypt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x260,%rsp
  mov    %rdi,-0x228(%rbp)
  mov    %rsi,-0x230(%rbp)
  mov    %rdx,-0x238(%rbp)
  mov    %rcx,-0x240(%rbp)
  mov    %r8,-0x248(%rbp)
  mov    %r9,-0x250(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x258(%rbp)
  mov    0x18(%rbp),%rax
  mov    %rax,-0x260(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x210(%rbp),%rax
  mov    $0x40,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x248(%rbp),%rcx
  lea    -0xd0(%rbp),%rax
  mov    $0x20,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  lea    -0x1d0(%rbp),%rax
  mov    $0x10,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  lea    -0x210(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <set_block_number_in_tweak@plt>
  lea    -0x210(%rbp),%rax
  add    $0x20,%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <set_block_number_in_tweak@plt>
  lea    -0x210(%rbp),%rax
  mov    $0x30,%esi
  mov    %rax,%rdi
  call   <set_stage_in_tweak@plt>
  lea    -0x210(%rbp),%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <set_tweak_in_tweakey@plt>
  lea    -0x150(%rbp),%rcx
  lea    -0xd0(%rbp),%rdx
  mov    -0x250(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x180,%edi
  call   <aesTweakEncrypt@plt>
  lea    -0x150(%rbp),%rdx
  lea    -0x1d0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <xor_values@plt>
  lea    -0x210(%rbp),%rax
  mov    $0x70,%esi
  mov    %rax,%rdi
  call   <set_stage_in_tweak@plt>
  lea    -0x210(%rbp),%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <set_tweak_in_tweakey@plt>
  lea    -0x150(%rbp),%rcx
  lea    -0xd0(%rbp),%rdx
  mov    -0x250(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x180,%edi
  call   <aesTweakEncrypt@plt>
  lea    -0x150(%rbp),%rdx
  lea    -0x1d0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <xor_values@plt>
  cmpq   $0x0,-0x230(%rbp)
  je     L18
  lea    -0x210(%rbp),%rax
  mov    $0x20,%esi
  mov    %rax,%rdi
  call   <set_stage_in_tweak@plt>
  movl   $0x0,-0x220(%rbp)
  jmp    L84
L86:
  lea    -0x210(%rbp),%rax
  add    $0x20,%rax
  mov    -0x220(%rbp),%edx
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <set_block_number_in_tweak@plt>
  lea    -0x210(%rbp),%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <set_tweak_in_tweakey@plt>
  mov    -0x220(%rbp),%eax
  shl    $0x4,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x228(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  lea    -0x150(%rbp),%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rdx,%rcx
  mov    %rax,%rdx
  mov    $0x180,%edi
  call   <aesTweakEncrypt@plt>
  lea    -0x150(%rbp),%rdx
  lea    -0x1d0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <xor_values@plt>
  addl   $0x1,-0x220(%rbp)
L84:
  mov    -0x220(%rbp),%eax
  add    $0x1,%eax
  shl    $0x4,%eax
  cltq
  cmp    %rax,-0x230(%rbp)
  jae    L86
  mov    -0x220(%rbp),%eax
  shl    $0x4,%eax
  cltq
  cmp    %rax,-0x230(%rbp)
  jbe    L18
  lea    -0x190(%rbp),%rax
  mov    $0x10,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x230(%rbp),%rax
  mov    %eax,%edx
  mov    -0x220(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x220(%rbp),%eax
  shl    $0x4,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x228(%rbp),%rax
  add    %rax,%rcx
  lea    -0x190(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x220(%rbp),%eax
  shl    $0x4,%eax
  movslq %eax,%rdx
  mov    -0x230(%rbp),%rax
  sub    %rdx,%rax
  movl   $0x80,-0x190(%rbp,%rax,4)
  lea    -0x210(%rbp),%rax
  mov    $0x60,%esi
  mov    %rax,%rdi
  call   <set_stage_in_tweak@plt>
  lea    -0x210(%rbp),%rax
  add    $0x20,%rax
  mov    -0x220(%rbp),%edx
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <set_block_number_in_tweak@plt>
  lea    -0x210(%rbp),%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <set_tweak_in_tweakey@plt>
  lea    -0x150(%rbp),%rcx
  lea    -0xd0(%rbp),%rdx
  lea    -0x190(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x180,%edi
  call   <aesTweakEncrypt@plt>
  lea    -0x150(%rbp),%rdx
  lea    -0x1d0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <xor_values@plt>
L18:
  lea    -0x210(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <set_stage_in_tweak@plt>
  movl   $0x0,-0x220(%rbp)
  jmp    L117
L120:
  lea    -0x210(%rbp),%rax
  add    $0x20,%rax
  mov    -0x220(%rbp),%edx
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <set_block_number_in_tweak@plt>
  lea    -0x210(%rbp),%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <set_tweak_in_tweakey@plt>
  mov    -0x220(%rbp),%eax
  shl    $0x4,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x238(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  lea    -0x150(%rbp),%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rdx,%rcx
  mov    %rax,%rdx
  mov    $0x180,%edi
  call   <aesTweakEncrypt@plt>
  lea    -0x150(%rbp),%rdx
  lea    -0x1d0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <xor_values@plt>
  addl   $0x1,-0x220(%rbp)
L117:
  mov    -0x220(%rbp),%eax
  add    $0x1,%eax
  shl    $0x4,%eax
  cltq
  cmp    %rax,-0x240(%rbp)
  jae    L120
  mov    -0x220(%rbp),%eax
  shl    $0x4,%eax
  cltq
  cmp    %rax,-0x240(%rbp)
  jbe    L28
  lea    -0x190(%rbp),%rax
  mov    $0x10,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x240(%rbp),%rax
  mov    %eax,%edx
  mov    -0x220(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x220(%rbp),%eax
  shl    $0x4,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x238(%rbp),%rax
  add    %rax,%rcx
  lea    -0x190(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x220(%rbp),%eax
  shl    $0x4,%eax
  movslq %eax,%rdx
  mov    -0x240(%rbp),%rax
  sub    %rdx,%rax
  movl   $0x80,-0x190(%rbp,%rax,4)
  lea    -0x210(%rbp),%rax
  mov    $0x40,%esi
  mov    %rax,%rdi
  call   <set_stage_in_tweak@plt>
  lea    -0x210(%rbp),%rax
  add    $0x20,%rax
  mov    -0x220(%rbp),%edx
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <set_block_number_in_tweak@plt>
  lea    -0x210(%rbp),%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <set_tweak_in_tweakey@plt>
  lea    -0x150(%rbp),%rcx
  lea    -0xd0(%rbp),%rdx
  lea    -0x190(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x180,%edi
  call   <aesTweakEncrypt@plt>
  lea    -0x150(%rbp),%rdx
  lea    -0x1d0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <xor_values@plt>
L28:
  lea    -0x210(%rbp),%rax
  mov    $0x10,%esi
  mov    %rax,%rdi
  call   <set_stage_in_tweak@plt>
  lea    -0x210(%rbp),%rax
  add    $0x20,%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <set_block_number_in_tweak@plt>
  lea    -0x210(%rbp),%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <set_tweak_in_tweakey@plt>
  lea    -0x110(%rbp),%rcx
  lea    -0xd0(%rbp),%rdx
  lea    -0x1d0(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x180,%edi
  call   <aesTweakEncrypt@plt>
  lea    -0x110(%rbp),%rcx
  lea    -0x210(%rbp),%rax
  mov    $0x10,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x210(%rbp),%eax
  and    $0x7f,%eax
  xor    $0x80,%al
  mov    %eax,-0x210(%rbp)
  movl   $0x0,-0x220(%rbp)
  lea    -0x110(%rbp),%rax
  mov    %rax,%rdi
  call   <get_block_number_from_tag@plt>
  mov    %eax,-0x218(%rbp)
  lea    -0x110(%rbp),%rax
  add    $0x20,%rax
  mov    %rax,%rdi
  call   <get_block_number_from_tag@plt>
  mov    %eax,-0x214(%rbp)
  jmp    L31
L107:
  lea    -0x210(%rbp),%rax
  add    $0x20,%rax
  mov    -0x214(%rbp),%edx
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <set_block_number_in_tweak@plt>
  lea    -0x210(%rbp),%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <set_tweak_in_tweakey@plt>
  mov    -0x220(%rbp),%eax
  shl    $0x4,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x258(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  lea    -0xd0(%rbp),%rdx
  mov    -0x250(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x180,%edi
  call   <aesTweakEncrypt@plt>
  mov    -0x220(%rbp),%eax
  shl    $0x4,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x238(%rbp),%rax
  add    %rax,%rdx
  mov    -0x220(%rbp),%eax
  shl    $0x4,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x258(%rbp),%rax
  add    %rcx,%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <xor_values@plt>
  addl   $0x1,-0x220(%rbp)
  addl   $0x1,-0x214(%rbp)
  cmpl   $0x0,-0x214(%rbp)
  jne    L31
  addl   $0x1,-0x218(%rbp)
  mov    -0x218(%rbp),%edx
  lea    -0x210(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <set_block_number_in_tweak@plt>
  mov    -0x210(%rbp),%eax
  and    $0x7f,%eax
  xor    $0x80,%al
  mov    %eax,-0x210(%rbp)
L31:
  mov    -0x220(%rbp),%eax
  add    $0x1,%eax
  shl    $0x4,%eax
  cltq
  cmp    %rax,-0x240(%rbp)
  jae    L107
  mov    -0x220(%rbp),%eax
  shl    $0x4,%eax
  cltq
  cmp    %rax,-0x240(%rbp)
  jbe    L126
  lea    -0x210(%rbp),%rax
  add    $0x20,%rax
  mov    -0x214(%rbp),%edx
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <set_block_number_in_tweak@plt>
  lea    -0x210(%rbp),%rdx
  lea    -0xd0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <set_tweak_in_tweakey@plt>
  lea    -0x150(%rbp),%rcx
  lea    -0xd0(%rbp),%rdx
  mov    -0x250(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x180,%edi
  call   <aesTweakEncrypt@plt>
  movl   $0x0,-0x21c(%rbp)
  jmp    L122
L43:
  mov    -0x220(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%edx
  mov    -0x21c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x238(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x21c(%rbp),%eax
  cltq
  mov    -0x150(%rbp,%rax,4),%edx
  mov    -0x220(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%esi
  mov    -0x21c(%rbp),%eax
  add    %esi,%eax
  cltq
  lea    0x0(,%rax,4),%rsi
  mov    -0x258(%rbp),%rax
  add    %rsi,%rax
  xor    %ecx,%edx
  mov    %edx,(%rax)
  addl   $0x1,-0x21c(%rbp)
L122:
  mov    -0x21c(%rbp),%eax
  cltq
  mov    -0x220(%rbp),%edx
  shl    $0x4,%edx
  movslq %edx,%rcx
  mov    -0x240(%rbp),%rdx
  sub    %rcx,%rdx
  cmp    %rdx,%rax
  jb     L43
L126:
  mov    -0x240(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x258(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  lea    -0x110(%rbp),%rax
  mov    $0x10,%edx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <memcpy@plt>
  mov    -0x240(%rbp),%rax
  lea    0x10(%rax),%rdx
  mov    -0x260(%rbp),%rax
  mov    %rdx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L38
  call   <__stack_chk_fail@plt>
L38:
  leave
  ret
```

assistant: ```c
void deoxys_aead_encrypt(const uint8_t *ass_data, size_t ass_data_len, const uint8_t *message, size_t m_len, const uint8_t *key, const uint8_t *nonce, uint8_t *ciphertext, size_t *c_len) {
  uint64_t i;
  uint64_t j;
  uint64_t hblock1, hblock2;
  uint8_t tweak[16];
  uint8_t tweakey[384 / 8];
  uint8_t Auth[16];
  uint8_t last_block[16];
  uint8_t Final[16];
  uint8_t zero_block[16];
  uint8_t Pad[16];
  uint8_t temp[16];
  uint8_t tag[16];
  memset(tweak, 0, sizeof(tweak));
  memcpy(tweakey, key, 32);
  memset(Auth, 0, 16);
  set_block_number_in_tweak(tweak + 0, 0);
  set_block_number_in_tweak(tweak + 8, 0);
  set_stage_in_tweak(tweak, (0x3 << 4));
  set_tweak_in_tweakey(tweakey, tweak);
  aesTweakEncrypt(384, nonce, tweakey, temp);
  xor_values(Auth, temp);
  set_stage_in_tweak(tweak, (0x7 << 4));
  set_tweak_in_tweakey(tweakey, tweak);
  aesTweakEncrypt(384, nonce, tweakey, temp);
  xor_values(Auth, temp);
  if (ass_data_len) {
    set_stage_in_tweak(tweak, (0x2 << 4));
    i = 0;
    while (16 * (i + 1) <= ass_data_len) {
      set_block_number_in_tweak(tweak + 8, i);
      set_tweak_in_tweakey(tweakey, tweak);
      aesTweakEncrypt(384, ass_data + 16 * i, tweakey, temp);
      xor_values(Auth, temp);
      i++;
    }
    if (ass_data_len > 16 * i) {
      memset(last_block, 0, 16);
      memcpy(last_block, ass_data + 16 * i, ass_data_len - 16 * i);
      last_block[ass_data_len - 16 * i] = 0x80;
      set_stage_in_tweak(tweak, (0x6 << 4));
      set_block_number_in_tweak(tweak + 8, i);
      set_tweak_in_tweakey(tweakey, tweak);
      aesTweakEncrypt(384, last_block, tweakey, temp);
      xor_values(Auth, temp);
    }
  }
  set_stage_in_tweak(tweak, (0x0 << 4));
  i = 0;
  while (16 * (i + 1) <= m_len) {
    set_block_number_in_tweak(tweak + 8, i);
    set_tweak_in_tweakey(tweakey, tweak);
    aesTweakEncrypt(384, message + 16 * i, tweakey, temp);
    xor_values(Auth, temp);
    i++;
  }
  if (m_len > 16 * i) {
    memset(last_block, 0, 16);
    memcpy(last_block, message + 16 * i, m_len - 16 * i);
    last_block[m_len - 16 * i] = 0x80;
    set_stage_in_tweak(tweak, (0x4 << 4));
    set_block_number_in_tweak(tweak + 8, i);
    set_tweak_in_tweakey(tweakey, tweak);
    aesTweakEncrypt(384, last_block, tweakey, temp);
    xor_values(Auth, temp);
  }
  set_stage_in_tweak(tweak, (0x1 << 4));
  set_block_number_in_tweak(tweak + 8, 0);
  set_tweak_in_tweakey(tweakey, tweak);
  aesTweakEncrypt(384, Auth, tweakey, tag);
  memcpy(tweak, tag, 16);
  tweak[0] = 0x80 ^ (tweak[0] & 0x7f);
  i = 0;
  hblock1 = get_block_number_from_tag(tag + 0);
  hblock2 = get_block_number_from_tag(tag + 8);
  while (16 * (i + 1) <= m_len) {
    set_block_number_in_tweak(tweak + 8, hblock2);
    set_tweak_in_tweakey(tweakey, tweak);
    aesTweakEncrypt(384, nonce, tweakey, ciphertext + 16 * i);
    xor_values(ciphertext + 16 * i, message + 16 * i);
    i++;
    hblock2++;
    if (hblock2 == 0) {
      hblock1++;
      set_block_number_in_tweak(tweak, hblock1);
      tweak[0] = 0x80 ^ (tweak[0] & 0x7f);
    }
  }
  if (m_len > 16 * i) {
    set_block_number_in_tweak(tweak + 8, hblock2);
    set_tweak_in_tweakey(tweakey, tweak);
    aesTweakEncrypt(384, nonce, tweakey, temp);
    for (j = 0; j < m_len - 16 * i; j++)
      ciphertext[16 * i + j] = message[16 * i + j] ^ temp[j];
  }
  memcpy(ciphertext + m_len, tag, 16);
  *c_len = m_len + 16;
}
```