user: Translate the below assembly code into C programming language:

```asm
<deoxys_aead_encrypt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %r8,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x278,%rsp
  mov    %rdx,0x38(%rsp)
  mov    0x2b8(%rsp),%rdx
  lea    0x60(%rsp),%rbp
  lea    0x1a0(%rsp),%r12
  mov    %rcx,0x8(%rsp)
  mov    0x2b0(%rsp),%rcx
  lea    0xa0(%rsp),%r14
  lea    0x80(%rsp),%r15
  mov    %r9,0x10(%rsp)
  lea    0x120(%rsp),%rbx
  mov    %rcx,0x40(%rsp)
  mov    %rdi,0x30(%rsp)
  mov    %rbp,%rdi
  mov    %rsi,0x18(%rsp)
  xor    %esi,%esi
  mov    %rdx,0x48(%rsp)
  mov    $0x40,%edx
  mov    %fs:0x28,%rax
  mov    %rax,0x268(%rsp)
  xor    %eax,%eax
  call   <memset@plt>
  mov    %r13,%rsi
  mov    $0x20,%edx
  mov    %r12,%rdi
  call   <memcpy@plt>
  mov    $0x10,%edx
  xor    %esi,%esi
  mov    %r14,%rdi
  call   <memset@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <set_block_number_in_tweak@plt>
  xor    %esi,%esi
  mov    %r15,%rdi
  call   <set_block_number_in_tweak@plt>
  mov    $0x30,%esi
  mov    %rbp,%rdi
  call   <set_stage_in_tweak@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <set_tweak_in_tweakey@plt>
  mov    0x10(%rsp),%r13
  mov    %rbx,%rcx
  mov    %r12,%rdx
  mov    $0x180,%edi
  mov    %r13,%rsi
  call   <aesTweakEncrypt@plt>
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <xor_values@plt>
  mov    $0x70,%esi
  mov    %rbp,%rdi
  call   <set_stage_in_tweak@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <set_tweak_in_tweakey@plt>
  mov    %rbx,%rcx
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    $0x180,%edi
  call   <aesTweakEncrypt@plt>
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <xor_values@plt>
  cmpq   $0x0,0x18(%rsp)
  jne    L203
L157:
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <set_stage_in_tweak@plt>
  cmpq   $0xf,0x8(%rsp)
  jbe    L224
  xor    %r8d,%r8d
  mov    0x38(%rsp),%r13
  mov    %rbp,0x18(%rsp)
  mov    %r8,%rbp
  nopl   0x0(%rax,%rax,1)
L130:
  lea    0x1(%rbp),%eax
  mov    %ebp,%esi
  mov    %r15,%rdi
  mov    %eax,0x20(%rsp)
  call   <set_block_number_in_tweak@plt>
  mov    0x18(%rsp),%rsi
  mov    %r12,%rdi
  call   <set_tweak_in_tweakey@plt>
  mov    %r13,%rsi
  mov    %rbx,%rcx
  mov    %r12,%rdx
  mov    $0x180,%edi
  add    $0x40,%r13
  call   <aesTweakEncrypt@plt>
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <xor_values@plt>
  mov    %rbp,%rax
  add    $0x1,%rbp
  add    $0x2,%rax
  shl    $0x4,%rax
  cmp    0x8(%rsp),%rax
  jbe    L130
  mov    0x20(%rsp),%ecx
  mov    0x18(%rsp),%rbp
  shl    $0x4,%ecx
  movslq %ecx,%r13
L16:
  cmp    %r13,0x8(%rsp)
  ja     L187
  mov    $0x10,%esi
  mov    %rbp,%rdi
  call   <set_stage_in_tweak@plt>
  xor    %esi,%esi
  mov    %r15,%rdi
  call   <set_block_number_in_tweak@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <set_tweak_in_tweakey@plt>
  mov    %r12,%rdx
  mov    %r14,%rsi
  mov    $0x180,%edi
  lea    0x160(%rsp),%rax
  mov    %rax,%rcx
  mov    %rax,%r13
  mov    %rax,0x50(%rsp)
  call   <aesTweakEncrypt@plt>
  mov    $0x10,%edx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <memcpy@plt>
  mov    0x60(%rsp),%eax
  mov    %r13,%rdi
  and    $0x7f,%eax
  xor    $0x80,%al
  mov    %eax,0x60(%rsp)
  call   <get_block_number_from_tag@plt>
  lea    0x180(%rsp),%rdi
  mov    %eax,0x20(%rsp)
  call   <get_block_number_from_tag@plt>
  cmpq   $0xf,0x8(%rsp)
  mov    %eax,%r8d
  jbe    L226
L67:
  mov    $0x1,%eax
  mov    $0x20,%r9d
  mov    %r15,0x18(%rsp)
  mov    0x40(%rsp),%r13
  sub    %r8d,%eax
  mov    %rbx,0x58(%rsp)
  mov    0x38(%rsp),%r14
  mov    %r9,%r15
  mov    %eax,0x30(%rsp)
  mov    %r8d,%ebx
  jmp    L43
  nopl   0x0(%rax,%rax,1)
L56:
  add    $0x40,%r13
  add    $0x40,%r14
  lea    0x10(%r15),%rax
  cmp    %r15,0x8(%rsp)
  jb     L139
  mov    %rax,%r15
L43:
  mov    0x30(%rsp),%eax
  mov    0x18(%rsp),%rdi
  mov    %ebx,%esi
  add    %ebx,%eax
  mov    %eax,0x2c(%rsp)
  call   <set_block_number_in_tweak@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <set_tweak_in_tweakey@plt>
  mov    0x10(%rsp),%rsi
  mov    %r13,%rcx
  mov    %r12,%rdx
  mov    $0x180,%edi
  call   <aesTweakEncrypt@plt>
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <xor_values@plt>
  add    $0x1,%ebx
  jne    L56
  addl   $0x1,0x20(%rsp)
  mov    0x20(%rsp),%esi
  mov    %rbp,%rdi
  call   <set_block_number_in_tweak@plt>
  mov    0x60(%rsp),%eax
  and    $0x7f,%eax
  xor    $0x80,%al
  mov    %eax,0x60(%rsp)
  jmp    L56
  nopl   0x0(%rax)
L139:
  mov    0x2c(%rsp),%r14d
  mov    %ebx,%r8d
  mov    0x18(%rsp),%r15
  mov    0x58(%rsp),%rbx
  shl    $0x4,%r14d
  movslq %r14d,%r13
L200:
  cmp    %r13,0x8(%rsp)
  ja     L178
L168:
  mov    0x8(%rsp),%rbx
  mov    0x40(%rsp),%rax
  mov    $0x10,%edx
  mov    0x50(%rsp),%rsi
  lea    (%rax,%rbx,4),%rdi
  call   <memcpy@plt>
  mov    0x48(%rsp),%rcx
  lea    0x10(%rbx),%rax
  mov    %rax,(%rcx)
  mov    0x268(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L155
  add    $0x278,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L203:
  mov    $0x20,%esi
  mov    %rbp,%rdi
  call   <set_stage_in_tweak@plt>
  cmpq   $0xf,0x18(%rsp)
  jbe    L161
  xor    %r8d,%r8d
  mov    0x30(%rsp),%r13
  mov    %rbp,0x20(%rsp)
  mov    %r8,%rbp
  nopl   0x0(%rax)
L125:
  lea    0x1(%rbp),%eax
  mov    %ebp,%esi
  mov    %r15,%rdi
  mov    %eax,0x2c(%rsp)
  call   <set_block_number_in_tweak@plt>
  mov    0x20(%rsp),%rsi
  mov    %r12,%rdi
  call   <set_tweak_in_tweakey@plt>
  mov    %r13,%rsi
  mov    %rbx,%rcx
  mov    %r12,%rdx
  mov    $0x180,%edi
  add    $0x40,%r13
  call   <aesTweakEncrypt@plt>
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <xor_values@plt>
  mov    %rbp,%rax
  add    $0x1,%rbp
  add    $0x2,%rax
  shl    $0x4,%rax
  cmp    %rax,0x18(%rsp)
  jae    L125
  mov    0x2c(%rsp),%eax
  mov    0x20(%rsp),%rbp
  shl    $0x4,%eax
  movslq %eax,%rdx
  cmp    0x18(%rsp),%rdx
  jae    L157
  mov    %eax,%ecx
  mov    0x30(%rsp),%rax
  lea    (%rax,%rdx,4),%rax
  mov    %rax,0x30(%rsp)
  mov    0x18(%rsp),%rax
  sub    %rdx,%rax
  mov    %rax,0x20(%rsp)
L45:
  lea    0xe0(%rsp),%r13
  xor    %esi,%esi
  mov    $0x10,%edx
  mov    %ecx,0x50(%rsp)
  mov    %r13,%rdi
  call   <memset@plt>
  mov    0x50(%rsp),%ecx
  mov    0x18(%rsp),%edx
  mov    %r13,%rdi
  mov    0x30(%rsp),%rsi
  sub    %ecx,%edx
  call   <memcpy@plt>
  mov    0x20(%rsp),%rax
  mov    %rbp,%rdi
  mov    $0x60,%esi
  movl   $0x80,0xe0(%rsp,%rax,4)
  call   <set_stage_in_tweak@plt>
  mov    0x2c(%rsp),%esi
  mov    %r15,%rdi
  call   <set_block_number_in_tweak@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <set_tweak_in_tweakey@plt>
  mov    %r13,%rsi
  mov    %rbx,%rcx
  mov    %r12,%rdx
  mov    $0x180,%edi
  call   <aesTweakEncrypt@plt>
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <xor_values@plt>
  jmp    L157
  cs nopw 0x0(%rax,%rax,1)
L187:
  lea    0xe0(%rsp),%r8
  xor    %esi,%esi
  mov    $0x10,%edx
  mov    %ecx,0x2c(%rsp)
  mov    %r8,%rdi
  mov    %r8,0x18(%rsp)
  call   <memset@plt>
  mov    0x2c(%rsp),%ecx
  mov    0x8(%rsp),%edx
  mov    0x18(%rsp),%rdi
  sub    %ecx,%edx
  mov    0x38(%rsp),%rcx
  lea    (%rcx,%r13,4),%rsi
  call   <memcpy@plt>
  mov    0x8(%rsp),%rax
  mov    $0x40,%esi
  mov    %rbp,%rdi
  sub    %r13,%rax
  movl   $0x80,0xe0(%rsp,%rax,4)
  call   <set_stage_in_tweak@plt>
  mov    0x20(%rsp),%esi
  mov    %r15,%rdi
  call   <set_block_number_in_tweak@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <set_tweak_in_tweakey@plt>
  mov    0x18(%rsp),%rsi
  mov    %rbx,%rcx
  mov    %r12,%rdx
  mov    $0x180,%edi
  call   <aesTweakEncrypt@plt>
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <xor_values@plt>
  mov    $0x10,%esi
  mov    %rbp,%rdi
  call   <set_stage_in_tweak@plt>
  xor    %esi,%esi
  mov    %r15,%rdi
  call   <set_block_number_in_tweak@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <set_tweak_in_tweakey@plt>
  lea    0x160(%rsp),%rdx
  mov    %r14,%rsi
  mov    $0x180,%edi
  mov    %rdx,%rcx
  mov    %rdx,%r13
  mov    %rdx,0x50(%rsp)
  mov    %r12,%rdx
  call   <aesTweakEncrypt@plt>
  mov    $0x10,%edx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <memcpy@plt>
  mov    0x60(%rsp),%ecx
  mov    %r13,%rdi
  and    $0x7f,%ecx
  mov    %ecx,%eax
  xor    $0x80,%al
  mov    %eax,0x60(%rsp)
  call   <get_block_number_from_tag@plt>
  lea    0x180(%rsp),%rdi
  mov    %eax,0x20(%rsp)
  call   <get_block_number_from_tag@plt>
  cmpq   $0xf,0x8(%rsp)
  mov    %eax,%r8d
  ja     L67
  mov    %eax,%esi
  mov    %r15,%rdi
  xor    %r14d,%r14d
  call   <set_block_number_in_tweak@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <set_tweak_in_tweakey@plt>
  mov    0x10(%rsp),%rsi
  mov    %r12,%rdx
  mov    %rbx,%rcx
  mov    $0x180,%edi
  call   <aesTweakEncrypt@plt>
  mov    0x8(%rsp),%rdx
  jmp    L3
  nopl   0x0(%rax)
L178:
  mov    %r8d,%esi
  mov    %r15,%rdi
  call   <set_block_number_in_tweak@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <set_tweak_in_tweakey@plt>
  mov    0x10(%rsp),%rsi
  mov    %r12,%rdx
  mov    %rbx,%rcx
  mov    $0x180,%edi
  call   <aesTweakEncrypt@plt>
  mov    0x8(%rsp),%rdx
  sub    %r13,%rdx
  je     L168
L3:
  movslq %r14d,%r15
  mov    0x38(%rsp),%rsi
  mov    0x40(%rsp),%rdi
  lea    0x0(,%r15,4),%rax
  add    %rdx,%r15
  lea    0x0(,%r15,4),%rdx
  sub    %rax,%rbx
  nopl   0x0(%rax)
L83:
  mov    (%rsi,%rax,1),%ecx
  xor    (%rbx,%rax,1),%ecx
  mov    %ecx,(%rdi,%rax,1)
  add    $0x4,%rax
  cmp    %rax,%rdx
  jne    L83
  jmp    L168
  nop
L224:
  movl   $0x0,0x20(%rsp)
  xor    %r13d,%r13d
  xor    %ecx,%ecx
  jmp    L16
L226:
  xor    %r13d,%r13d
  xor    %r14d,%r14d
  jmp    L200
L161:
  mov    0x18(%rsp),%rax
  movl   $0x0,0x2c(%rsp)
  xor    %ecx,%ecx
  mov    %rax,0x20(%rsp)
  jmp    L45
L155:
  call   <__stack_chk_fail@plt>
```

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;
}
```