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

```asm
<aesCheck>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdx,0x8(%rsp)
  call   <strlen@plt>
  mov    %r13,%rdi
  mov    %eax,%r12d
  sar    $0x1f,%eax
  shr    $0x1c,%eax
  lea    (%r12,%rax,1),%edx
  and    $0xf,%edx
  sub    %edx,%eax
  lea    0x10(%r12,%rax,1),%r15d
  call   <strlen@plt>
  mov    %r13,%rdx
  mov    %r12d,%esi
  mov    %r14,%rdi
  mov    %eax,%ecx
  mov    %eax,%ebp
  call   <aesEncryptECB@plt>
  mov    %r13,%rdx
  mov    %ebp,%ecx
  mov    %r15d,%esi
  mov    %rax,%rdi
  mov    %rax,%rbx
  call   <aesDecryptECB@plt>
  lea    D8(%rip),%rdi
  mov    %r14,%rsi
  mov    %rax,%r13
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  lea    D90(%rip),%rdi
  call   <printf@plt>
  test   %r12d,%r12d
  jle    L51
  lea    -0x1(%r12),%eax
  lea    D52(%rip),%rbp
  lea    0x1(%r14,%rax,1),%r12
  xchg   %ax,%ax
L52:
  movzbl (%r14),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%r14
  call   <printf@plt>
  cmp    %r12,%r14
  jne    L52
L51:
  mov    $0xa,%edi
  call   <putchar@plt>
  xor    %eax,%eax
  lea    D21(%rip),%rdi
  call   <printf@plt>
  test   %r15d,%r15d
  jle    L24
  lea    -0x1(%r15),%r12d
  lea    D52(%rip),%rbp
  lea    0x1(%r12,%rbx,1),%r15
  nopl   0x0(%rax,%rax,1)
L26:
  movzbl (%rbx),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %r15,%rbx
  jne    L26
  mov    $0xa,%edi
  mov    %r13,%rbx
  lea    0x1(%r13,%r12,1),%r12
  call   <putchar@plt>
  mov    0x8(%rsp),%rsi
  lea    D59(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D94(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  nopl   0x0(%rax)
L21:
  movzbl (%rbx),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %rbx,%r12
  jne    L21
L44:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    %r13,%rsi
  lea    D13(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  add    $0x18,%rsp
  lea    D108(%rip),%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10b0 <puts@plt>
  nopl   0x0(%rax,%rax,1)
L24:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x8(%rsp),%rsi
  lea    D59(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D94(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L44
```

tool_calls: name: retrieve_data
arguments: tag: D8
data_type: string
name: retrieve_data
arguments: tag: D90
data_type: string
name: retrieve_data
arguments: tag: D52
data_type: string
name: retrieve_data
arguments: tag: D21
data_type: string
name: retrieve_data
arguments: tag: D59
data_type: string
name: retrieve_data
arguments: tag: D94
data_type: string
name: retrieve_data
arguments: tag: D13
data_type: string
name: retrieve_data
arguments: tag: D108
data_type: string

tool: D8: Original : %s


tool: D90: Hex      : 

tool: D52: %02x

tool: D21: Encrypted: 

tool: D59: Expected : %s


tool: D94: Decrypted: 

tool: D13: Plaintext: %s

tool: D108: 


assistant: ```c
void aesCheck(char *data, char *key, char *answer) {
  int plaintextLength = strlen(data);
  int paddingLength = 16 - (plaintextLength % 16);
  int encryptedLength = plaintextLength + paddingLength;
  void *aesIn = data;
  int dataLength = plaintextLength;
  void *aesKey = key;
  int keyLength = strlen(key);
  void *encrypted = aesEncryptECB(aesIn, dataLength, aesKey, keyLength);
  void *decrypted = aesDecryptECB(encrypted, encryptedLength, aesKey, keyLength);
  printf("Original : %s\n", data);
  printf("Hex      : ");
  for (int i = 0; i < plaintextLength; i++) {
    printf("%02x", ((unsigned char *)data)[i]);
  }
  printf("\n");
  printf("Encrypted: ");
  for (int i = 0; i < encryptedLength; i++) {
    printf("%02x", ((unsigned char *)encrypted)[i]);
  }
  printf("\n");
  printf("Expected : %s\n", answer);
  printf("Decrypted: ");
  for (int i = 0; i < encryptedLength; i++) {
    printf("%02x", ((unsigned char *)decrypted)[i]);
  }
  printf("\n");
  printf("Plaintext: %s", (char *)decrypted);
  printf("\n\n");
}
```