user: What is the c source code of the assembly code below:

```asm
<aeskw_test>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x828,%rsp
  mov    %rdi,%r13
  mov    %esi,%r14d
  mov    %rdx,%rbp
  mov    %ecx,%r12d
  mov    %r8,%rbx
  mov    %r9d,%r15d
  mov    %fs:0x28,%rax
  mov    %rax,0x818(%rsp)
  xor    %eax,%eax
  lea    D103(%rip),%rdi
  call   <puts@plt>
  sub    $0x8,%rsp
  lea    0x10(%rsp),%rax
  push   %rax
  lea    0x20(%rsp),%r9
  mov    $0x0,%r8d
  mov    %r12d,%ecx
  mov    %rbp,%rdx
  mov    %r14d,%esi
  mov    %r13,%rdi
  call   <aes_key_wrap@plt>
  add    $0x10,%rsp
  test   %rax,%rax
  jne    L139
  lea    D78(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%esi
  cmp    %r15d,%esi
  jne    L70
  lea    D93(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%edx
  test   %edx,%edx
  je     L113
  mov    %edx,%edx
  mov    $0x0,%eax
L132:
  movzbl (%rbx,%rax,1),%esi
  cmp    %sil,0x10(%rsp,%rax,1)
  jne    L65
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L132
L113:
  lea    D92(%rip),%rdi
  call   <puts@plt>
  lea    0x10(%rsp),%rdx
  push   $0x0
  lea    0x14(%rsp),%rax
  push   %rax
  lea    0x420(%rsp),%r9
  mov    $0x0,%r8d
  mov    0x18(%rsp),%ecx
  mov    %r14d,%esi
  mov    %r13,%rdi
  call   <aes_key_unwrap@plt>
  add    $0x10,%rsp
  test   %rax,%rax
  jne    L168
  lea    D37(%rip),%rdi
  call   <puts@plt>
  mov    0xc(%rsp),%esi
  cmp    %r12d,%esi
  jne    L7
  lea    D110(%rip),%rdi
  call   <puts@plt>
  mov    0xc(%rsp),%edx
  test   %edx,%edx
  je     L60
  mov    %edx,%edx
  mov    $0x0,%eax
  lea    0x410(%rsp),%rcx
L64:
  movzbl (%rcx,%rax,1),%ebx
  cmp    %bl,0x0(%rbp,%rax,1)
  jne    L77
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L64
  mov    $0x0,%eax
  jmp    L74
L139:
  lea    D2(%rip),%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L74
L70:
  mov    %r15d,%edx
  lea    D87(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L74
L65:
  lea    D85(%rip),%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
L74:
  mov    0x818(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L76
  add    $0x828,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L168:
  lea    D83(%rip),%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L74
L7:
  mov    %r12d,%edx
  lea    D65(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L74
L77:
  lea    D30(%rip),%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L74
L60:
  mov    $0x0,%eax
  jmp    L74
L76:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D103
type: string
name: parse_data
arguments: label: D78
type: string
name: parse_data
arguments: label: D93
type: string
name: parse_data
arguments: label: D92
type: string
name: parse_data
arguments: label: D37
type: string
name: parse_data
arguments: label: D110
type: string
name: parse_data
arguments: label: D2
type: string
name: parse_data
arguments: label: D87
type: string
name: parse_data
arguments: label: D85
type: string
name: parse_data
arguments: label: D83
type: string
name: parse_data
arguments: label: D65
type: string
name: parse_data
arguments: label: D30
type: string

tool: D103: Encrypting using aes_key_wrap()

tool: D78: Checking known ciphertext

tool: D93: Encrypted lengths match

tool: D92: Decrypting using aes_key_unwrap()

tool: D37: Checking aes_key_unwrap()

tool: D110: Decrypted lengths match

tool: D2: Error encrypting using aes_key_wrap()

tool: D87: Error: ciphertext length (%i) does not match expected (%i)


tool: D85: Error: ciphertext does not match expected

tool: D83: Error decrypting using aes_key_unwrap()

tool: D65: Error: Plaintext length (%i) does not match expected (%i)


tool: D30: Error: plaintext does not match expected

assistant: ```c
int aeskw_test(const unsigned char *key, unsigned int key_length, const unsigned char *plaintext, unsigned int plaintext_length, const unsigned char *expected_ciphertext, unsigned int expected_ciphertext_length) {
  unsigned char ciphertext[1024];
  unsigned char plaintext_check[1024];
  unsigned int ciphertext_length;
  unsigned int plaintext_check_length;
  int i;
  const unsigned char *p1, *p2;
  printf("Encrypting using aes_key_wrap()\n");
  if (aes_key_wrap(key, key_length, plaintext, plaintext_length, NULL, ciphertext, &ciphertext_length)) {
    printf("Error encrypting using aes_key_wrap()\n");
    return (-1);
  }
  printf("Checking known ciphertext\n");
  if (ciphertext_length != expected_ciphertext_length) {
    printf("Error: ciphertext length (%i) does not match "
           "expected (%i)\n",
           ciphertext_length, expected_ciphertext_length);
    return (-1);
  } else {
    printf("Encrypted lengths match\n");
  }
  for (i = 0, p1 = ciphertext, p2 = expected_ciphertext; i < ciphertext_length; i++) {
    if (*(p1++) != *(p2++)) {
      printf("Error: ciphertext does not match expected\n");
      return (-1);
    }
  }
  printf("Decrypting using aes_key_unwrap()\n");
  if (aes_key_unwrap(key, key_length, ciphertext, ciphertext_length, NULL, plaintext_check, &plaintext_check_length, NULL)) {
    printf("Error decrypting using aes_key_unwrap()\n");
    return (-1);
  }
  printf("Checking aes_key_unwrap()\n");
  if (plaintext_check_length != plaintext_length) {
    printf("Error: Plaintext length (%i) does not match "
           "expected (%i)\n",
           plaintext_check_length, plaintext_length);
    return (-1);
  } else {
    printf("Decrypted lengths match\n");
  }
  for (i = 0, p1 = plaintext, p2 = plaintext_check; i < plaintext_check_length; i++) {
    if (*(p1++) != *(p2++)) {
      printf("Error: plaintext does not match expected\n");
      return (-1);
    }
  }
  return (0);
}
```