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

```asm
<AEAD_TGEN>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x120,%rsp
  mov    %rdi,-0xe8(%rbp)
  mov    %rsi,-0xf0(%rbp)
  mov    %rdx,-0xf8(%rbp)
  mov    %rcx,-0x100(%rbp)
  mov    %r8,-0x108(%rbp)
  mov    %r9,-0x110(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x118(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x1,-0xa8(%rbp)
  movq   $0x1,-0x88(%rbp)
  mov    -0xf8(%rbp),%rax
  mov    %rax,-0x98(%rbp)
  mov    -0x108(%rbp),%rax
  mov    %rax,-0x90(%rbp)
  mov    -0x100(%rbp),%rax
  and    $0x1f,%eax
  mov    %eax,-0xac(%rbp)
  mov    -0x100(%rbp),%rax
  shr    $0x5,%rax
  mov    %rax,-0xa0(%rbp)
  cmpl   $0x0,-0xac(%rbp)
  je     L210
  addq   $0x1,-0xa0(%rbp)
L210:
  movl   $0x0,-0xd8(%rbp)
  jmp    L81
L61:
  mov    -0xd8(%rbp),%eax
  cltq
  movb   $0x0,-0x30(%rbp,%rax,1)
  addl   $0x1,-0xd8(%rbp)
L81:
  cmpl   $0x1f,-0xd8(%rbp)
  jle    L61
  movl   $0x0,-0xd4(%rbp)
  jmp    L68
L300:
  mov    -0xd4(%rbp),%eax
  cltq
  movb   $0x0,-0x7d(%rbp,%rax,1)
  addl   $0x1,-0xd4(%rbp)
L68:
  cmpl   $0xc,-0xd4(%rbp)
  jle    L300
  jmp    L18
L258:
  movl   $0x0,-0xd0(%rbp)
  jmp    L108
L86:
  mov    -0xd0(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0xd0(%rbp),%eax
  cltq
  mov    %dl,-0x70(%rbp,%rax,1)
  addl   $0x1,-0xd0(%rbp)
L108:
  cmpl   $0x1f,-0xd0(%rbp)
  jle    L86
  mov    -0xa8(%rbp),%rax
  mov    %eax,%edi
  lea    -0x70(%rbp),%rsi
  lea    -0x7d(%rbp),%rdx
  mov    -0xe8(%rbp),%rax
  sub    $0x8,%rsp
  lea    -0x50(%rbp),%rcx
  push   %rcx
  mov    %rsi,%r9
  mov    $0x0,%r8d
  mov    %edi,%ecx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <TEM_ENC@plt>
  add    $0x10,%rsp
  movl   $0x0,-0xcc(%rbp)
  jmp    L351
L58:
  mov    -0xcc(%rbp),%eax
  cltq
  movzbl -0x30(%rbp,%rax,1),%edx
  mov    -0xcc(%rbp),%eax
  cltq
  movzbl -0x50(%rbp,%rax,1),%eax
  xor    %eax,%edx
  mov    -0xcc(%rbp),%eax
  cltq
  mov    %dl,-0x30(%rbp,%rax,1)
  addl   $0x1,-0xcc(%rbp)
L351:
  cmpl   $0x1f,-0xcc(%rbp)
  jle    L58
  addq   $0x1,-0xa8(%rbp)
  subq   $0x1,-0xa0(%rbp)
  addq   $0x20,-0x98(%rbp)
L18:
  cmpq   $0x1,-0xa0(%rbp)
  ja     L258
  cmpq   $0x1,-0xa0(%rbp)
  jne    L99
  cmpl   $0x0,-0xac(%rbp)
  jne    L91
  cmpq   $0x0,-0x100(%rbp)
  je     L91
  movl   $0x0,-0xc8(%rbp)
  jmp    L167
L154:
  mov    -0xc8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0xc8(%rbp),%eax
  cltq
  mov    %dl,-0x70(%rbp,%rax,1)
  addl   $0x1,-0xc8(%rbp)
L167:
  cmpl   $0x1f,-0xc8(%rbp)
  jle    L154
  jmp    L253
L91:
  movl   $0x0,-0xc4(%rbp)
  jmp    L193
L316:
  mov    -0xc4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0xc4(%rbp),%eax
  cltq
  mov    %dl,-0x70(%rbp,%rax,1)
  addl   $0x1,-0xc4(%rbp)
L193:
  mov    -0xc4(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L316
  mov    -0xac(%rbp),%eax
  cltq
  movb   $0x80,-0x70(%rbp,%rax,1)
  mov    -0xac(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0xdc(%rbp)
  jmp    L27
L222:
  mov    -0xdc(%rbp),%eax
  cltq
  movb   $0x0,-0x70(%rbp,%rax,1)
  addl   $0x1,-0xdc(%rbp)
L27:
  cmpl   $0x1f,-0xdc(%rbp)
  jle    L222
L253:
  movl   $0x0,-0xc0(%rbp)
  jmp    L360
L266:
  mov    -0xc0(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%edx
  mov    -0xc0(%rbp),%eax
  cltq
  movzbl -0x30(%rbp,%rax,1),%eax
  xor    %eax,%edx
  mov    -0xc0(%rbp),%eax
  cltq
  mov    %dl,-0x70(%rbp,%rax,1)
  addl   $0x1,-0xc0(%rbp)
L360:
  cmpl   $0x1f,-0xc0(%rbp)
  jle    L266
  cmpl   $0x0,-0xac(%rbp)
  jne    L206
  mov    -0xa8(%rbp),%rax
  sub    $0x1,%eax
  mov    %eax,%edi
  lea    -0x70(%rbp),%rsi
  lea    -0x7d(%rbp),%rdx
  mov    -0xe8(%rbp),%rax
  sub    $0x8,%rsp
  lea    -0x50(%rbp),%rcx
  push   %rcx
  mov    %rsi,%r9
  mov    $0x1,%r8d
  mov    %edi,%ecx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <TEM_ENC@plt>
  add    $0x10,%rsp
  jmp    L328
L206:
  mov    -0xa8(%rbp),%rax
  sub    $0x1,%eax
  mov    %eax,%edi
  lea    -0x70(%rbp),%rsi
  lea    -0x7d(%rbp),%rdx
  mov    -0xe8(%rbp),%rax
  sub    $0x8,%rsp
  lea    -0x50(%rbp),%rcx
  push   %rcx
  mov    %rsi,%r9
  mov    $0x2,%r8d
  mov    %edi,%ecx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <TEM_ENC@plt>
  add    $0x10,%rsp
L328:
  movl   $0x0,-0xbc(%rbp)
  jmp    L294
L74:
  mov    -0xbc(%rbp),%eax
  cltq
  movzbl -0x50(%rbp,%rax,1),%edx
  mov    -0xbc(%rbp),%eax
  cltq
  mov    %dl,-0x30(%rbp,%rax,1)
  addl   $0x1,-0xbc(%rbp)
L294:
  cmpl   $0x1f,-0xbc(%rbp)
  jle    L74
L99:
  movq   $0x1,-0xa8(%rbp)
  mov    -0x110(%rbp),%rax
  shr    $0x5,%rax
  mov    %rax,-0xa0(%rbp)
  jmp    L247
L30:
  movl   $0x0,-0xb8(%rbp)
  jmp    L60
L73:
  mov    -0xb8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0xb8(%rbp),%eax
  cltq
  mov    %dl,-0x70(%rbp,%rax,1)
  addl   $0x1,-0xb8(%rbp)
L60:
  cmpl   $0x1f,-0xb8(%rbp)
  jle    L73
  mov    -0xa8(%rbp),%rax
  add    %eax,%eax
  mov    %eax,%edi
  lea    -0x70(%rbp),%rsi
  mov    -0xf0(%rbp),%rdx
  mov    -0xe8(%rbp),%rax
  sub    $0x8,%rsp
  lea    -0x50(%rbp),%rcx
  push   %rcx
  mov    %rsi,%r9
  mov    $0x0,%r8d
  mov    %edi,%ecx
  mov    $0x40,%esi
  mov    %rax,%rdi
  call   <TEM_ENC@plt>
  add    $0x10,%rsp
  movl   $0x0,-0xb4(%rbp)
  jmp    L340
L155:
  mov    -0xb4(%rbp),%eax
  cltq
  movzbl -0x30(%rbp,%rax,1),%edx
  mov    -0xb4(%rbp),%eax
  cltq
  movzbl -0x50(%rbp,%rax,1),%eax
  xor    %eax,%edx
  mov    -0xb4(%rbp),%eax
  cltq
  mov    %dl,-0x30(%rbp,%rax,1)
  addl   $0x1,-0xb4(%rbp)
L340:
  cmpl   $0x1f,-0xb4(%rbp)
  jle    L155
  addq   $0x1,-0xa8(%rbp)
  subq   $0x1,-0xa0(%rbp)
  addq   $0x20,-0x90(%rbp)
L247:
  cmpq   $0x1,-0xa0(%rbp)
  ja     L30
  movl   $0x0,-0xdc(%rbp)
  jmp    L175
L303:
  mov    -0xdc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0xdc(%rbp),%eax
  cltq
  movzbl -0x30(%rbp,%rax,1),%eax
  xor    %eax,%edx
  mov    -0xdc(%rbp),%eax
  cltq
  mov    %dl,-0x70(%rbp,%rax,1)
  addl   $0x1,-0xdc(%rbp)
L175:
  cmpl   $0x1f,-0xdc(%rbp)
  jle    L303
  mov    -0xa8(%rbp),%rax
  add    %eax,%eax
  sub    $0x1,%eax
  mov    %eax,%edi
  lea    -0x70(%rbp),%rsi
  mov    -0xf0(%rbp),%rdx
  mov    -0xe8(%rbp),%rax
  sub    $0x8,%rsp
  lea    -0x50(%rbp),%rcx
  push   %rcx
  mov    %rsi,%r9
  mov    $0x1,%r8d
  mov    %edi,%ecx
  mov    $0x40,%esi
  mov    %rax,%rdi
  call   <TEM_ENC@plt>
  add    $0x10,%rsp
  movl   $0x0,-0xb0(%rbp)
  jmp    L239
L49:
  mov    -0xb0(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x118(%rbp),%rax
  add    %rax,%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  movzbl -0x50(%rbp,%rax,1),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0xb0(%rbp)
L239:
  cmpl   $0xf,-0xb0(%rbp)
  jle    L49
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L180
  call   <__stack_chk_fail@plt>
L180:
  leave
  ret
```

assistant: ```c
void AEAD_TGEN(const unsigned char *_K, const unsigned char *_N, const unsigned char *_A, unsigned long long _alen, const unsigned char *_C, unsigned long long _clen, unsigned char *tag_) {
  int d, pad;
  unsigned long long i, j, blocknum;
  const unsigned char *ap, *cp;
  unsigned char in[32], out[32], t[32], zero[13];
  i = 1;
  j = 1;
  ap = _A;
  cp = _C;
  pad = _alen % 32;
  blocknum = _alen / 32;
  if (pad != 0)
    blocknum += 1;
  do {
    int u;
    for (u = 0; u < 32; u++)
      (t)[u] = 0x00;
  } while (0);
  do {
    int u;
    for (u = 0; u < 13; u++)
      (zero)[u] = 0x00;
  } while (0);
  while (blocknum > 1) {
    do {
      int u;
      for (u = 0; u < 32; u++)
        (in)[u] = (ap)[u];
    } while (0);
    TEM_ENC(_K, 0x00, zero, i, 0, in, out);
    do {
      int u;
      for (u = 0; u < 32; u++)
        (t)[u] ^= (out)[u];
    } while (0);
    i++;
    blocknum--;
    ap += 32;
  }
  if (blocknum == 1) {
    if ((pad == 0) && (_alen != 0)) {
      do {
        int u;
        for (u = 0; u < 32; u++)
          (in)[u] = (ap)[u];
      } while (0);
    } else {
      do {
        int u;
        for (u = 0; u < pad; u++)
          (in)[u] = (ap)[u];
      } while (0);
      in[pad] = 0x80;
      for (d = pad + 1; d < 32; d++)
        in[d] = 0x00;
    }
    do {
      int u;
      for (u = 0; u < 32; u++)
        (in)[u] ^= (t)[u];
    } while (0);
    if (pad == 0) {
      TEM_ENC(_K, 0x00, zero, i - 1, 1, in, out);
    } else {
      TEM_ENC(_K, 0x00, zero, i - 1, 2, in, out);
    }
    do {
      int u;
      for (u = 0; u < 32; u++)
        (t)[u] = (out)[u];
    } while (0);
  }
  i = 1;
  blocknum = _clen / 32;
  while (blocknum > 1) {
    do {
      int u;
      for (u = 0; u < 32; u++)
        (in)[u] = (cp)[u];
    } while (0);
    TEM_ENC(_K, 0x40, _N, 2 * i, 0, in, out);
    do {
      int u;
      for (u = 0; u < 32; u++)
        (t)[u] ^= (out)[u];
    } while (0);
    i++;
    blocknum--;
    cp += 32;
  }
  for (d = 0; d < 32; d++)
    in[d] = cp[d] ^ t[d];
  TEM_ENC(_K, 0x40, _N, 2 * i - 1, 1, in, out);
  do {
    int u;
    for (u = 0; u < 16; u++)
      (tag_)[u] = (out)[u];
  } while (0);
}
```