user: Demonstrate the C code that generates the assembly output below:

```asm
<AES_wrap_unwrap_test>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %rcx,-0x50(%rbp)
  mov    %r8,-0x58(%rbp)
  mov    %r9d,-0x40(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x18(%rbp)
  movq   $0x0,-0x10(%rbp)
  movl   $0x0,-0x20(%rbp)
  mov    -0x40(%rbp),%eax
  add    $0x8,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x40(%rbp),%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  je     L130
  cmpq   $0x0,-0x10(%rbp)
  jne    L2
L130:
  mov    $0x0,%eax
  jmp    L61
L2:
  lea    -0x24(%rbp),%rdx
  mov    -0x3c(%rbp),%ecx
  mov    -0x38(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <AES_set_encrypt_key@plt>
  test   %rax,%rax
  jne    L41
  mov    -0x40(%rbp),%edi
  mov    -0x58(%rbp),%rcx
  mov    -0x18(%rbp),%rdx
  mov    -0x48(%rbp),%rsi
  lea    -0x24(%rbp),%rax
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <AES_wrap_key@plt>
  mov    %eax,-0x1c(%rbp)
  cmpl   $0x0,-0x1c(%rbp)
  jle    L126
  cmpq   $0x0,-0x50(%rbp)
  je     L27
  mov    -0x40(%rbp),%edx
  mov    -0x18(%rbp),%rcx
  mov    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L99
L27:
  lea    -0x24(%rbp),%rdx
  mov    -0x3c(%rbp),%ecx
  mov    -0x38(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <AES_set_decrypt_key@plt>
  test   %rax,%rax
  jne    L66
  mov    -0x1c(%rbp),%edi
  mov    -0x18(%rbp),%rcx
  mov    -0x10(%rbp),%rdx
  mov    -0x48(%rbp),%rsi
  lea    -0x24(%rbp),%rax
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <AES_unwrap_key@plt>
  mov    %eax,-0x1c(%rbp)
  mov    -0x40(%rbp),%edx
  mov    -0x10(%rbp),%rcx
  mov    -0x58(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L69
  movl   $0x1,-0x20(%rbp)
  jmp    L45
L41:
  nop
  jmp    L45
L126:
  nop
  jmp    L45
L99:
  nop
  jmp    L45
L66:
  nop
  jmp    L45
L69:
  nop
L45:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x20(%rbp),%eax
L61:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L93
  call   <__stack_chk_fail@plt>
L93:
  leave
  ret
```

assistant: ```c
int AES_wrap_unwrap_test(const unsigned char *kek, int keybits, const unsigned char *iv, const unsigned char *eout, const unsigned char *key, int keylen) {
  unsigned char *otmp = NULL, *ptmp = NULL;
  int r, ret = 0;
  AES_KEY wctx;
  otmp = malloc(keylen + 8);
  ptmp = malloc(keylen);
  if (!otmp || !ptmp)
    return 0;
  if (AES_set_encrypt_key(kek, keybits, &wctx))
    goto err;
  r = AES_wrap_key(&wctx, iv, otmp, key, keylen);
  if (r <= 0)
    goto err;
  if (eout && memcmp(eout, otmp, keylen))
    goto err;
  if (AES_set_decrypt_key(kek, keybits, &wctx))
    goto err;
  r = AES_unwrap_key(&wctx, iv, ptmp, otmp, r);
  if (memcmp(key, ptmp, keylen))
    goto err;
  ret = 1;
err:
  free(otmp);
  free(ptmp);
  return ret;
}
```