user: What would the C source look like for the assembly code provided here:

```asm
<asn1_primitive_free>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  je     L192
  mov    -0x30(%rbp),%rax
  mov    0x10(%rax),%rax
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  je     L192
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  je     L192
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rcx
  mov    -0x30(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   *%rcx
  jmp    L163
L192:
  cmpq   $0x0,-0x30(%rbp)
  jne    L217
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L173
  jmp    L163
L217:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rdx
  mov    D1(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jne    L215
  movl   $0xffffffff,-0x14(%rbp)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L173
  jmp    L163
L215:
  mov    -0x30(%rbp),%rax
  mov    0x8(%rax),%eax
  mov    %eax,-0x14(%rbp)
  cmpl   $0x82,-0x14(%rbp)
  je     L173
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  je     L157
L173:
  cmpl   $0x83,-0x14(%rbp)
  je     L93
  cmpl   $0x83,-0x14(%rbp)
  jg     L181
  cmpl   $0x82,-0x14(%rbp)
  je     L5
  cmpl   $0x82,-0x14(%rbp)
  jg     L181
  cmpl   $0x80,-0x14(%rbp)
  je     L126
  cmpl   $0x81,-0x14(%rbp)
  je     L115
  jmp    L181
L126:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <ASN1_OBJECT_free@plt>
  jmp    L178
L5:
  cmpq   $0x0,-0x30(%rbp)
  je     L131
  mov    -0x30(%rbp),%rax
  mov    0xc(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L163
L131:
  mov    -0x28(%rbp),%rax
  movl   $0xffffffff,(%rax)
  jmp    L163
L93:
  mov    -0x28(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <asn1_primitive_free>
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <OPENSSL_free@plt>
  jmp    L178
L181:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <ASN1_STRING_free@plt>
  jmp    L178
L115:
  nop
L178:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  je     L163
  mov    -0x28(%rbp),%rax
  movq   $0x0,(%rax)
  jmp    L163
L157:
  nop
L163:
  leave
  ret
```

assistant: ```c
void asn1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it) {
  int utype;
  if (it) {
    const ASN1_PRIMITIVE_FUNCS *pf = it->funcs;
    if (pf && pf->prim_free) {
      pf->prim_free(pval, it);
      return;
    }
  }
  if (!it) {
    ASN1_TYPE *typ = (ASN1_TYPE *)*pval;
    utype = typ->type;
    pval = &typ->value.asn1_value;
    if (!*pval)
      return;
  } else if (it->itype == ASN1_ITYPE_MSTRING) {
    utype = -1;
    if (!*pval)
      return;
  } else {
    utype = it->utype;
    if ((utype != V_ASN1_BOOLEAN) && !*pval)
      return;
  }
  switch (utype) {
  case V_ASN1_OBJECT:
    ASN1_OBJECT_free((ASN1_OBJECT *)*pval);
    break;
  case V_ASN1_BOOLEAN:
    if (it)
      *(ASN1_BOOLEAN *)pval = it->size;
    else
      *(ASN1_BOOLEAN *)pval = -1;
    return;
  case V_ASN1_NULL:
    break;
  case V_ASN1_ANY:
    asn1_primitive_free(pval, NULL);
    OPENSSL_free(*pval);
    break;
  default:
    ASN1_STRING_free((ASN1_STRING *)*pval);
    break;
  }
  if (*pval)
    *pval = NULL;
}
```