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

```asm
<asn1_primitive_new>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  jne    L132
  mov    $0x0,%eax
  jmp    L233
L132:
  mov    -0x30(%rbp),%rax
  mov    0x10(%rax),%rax
  test   %rax,%rax
  je     L154
  mov    -0x30(%rbp),%rax
  mov    0x10(%rax),%rax
  mov    %rax,-0x10(%rbp)
  cmpl   $0x0,-0x34(%rbp)
  je     L7
  mov    -0x10(%rbp),%rax
  mov    0x8(%rax),%rax
  test   %rax,%rax
  je     L154
  mov    -0x10(%rbp),%rax
  mov    0x8(%rax),%rcx
  mov    -0x30(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   *%rcx
  mov    $0x1,%eax
  jmp    L233
L7:
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  je     L154
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rcx
  mov    -0x30(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   *%rcx
  jmp    L233
L154:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rdx
  mov    D6(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jne    L94
  movl   $0xffffffff,-0x1c(%rbp)
  jmp    L72
L94:
  mov    -0x30(%rbp),%rax
  mov    0x8(%rax),%eax
  mov    %eax,-0x1c(%rbp)
L72:
  cmpl   $0x83,-0x1c(%rbp)
  je     L158
  cmpl   $0x83,-0x1c(%rbp)
  jg     L245
  cmpl   $0x82,-0x1c(%rbp)
  je     L258
  cmpl   $0x82,-0x1c(%rbp)
  jg     L245
  cmpl   $0x80,-0x1c(%rbp)
  je     L165
  cmpl   $0x81,-0x1c(%rbp)
  je     L217
  jmp    L245
L165:
  mov    D44(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <OBJ_nid2obj@plt>
  mov    %rax,%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,(%rax)
  mov    $0x1,%eax
  jmp    L233
L258:
  mov    -0x30(%rbp),%rax
  mov    0xc(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  mov    $0x1,%eax
  jmp    L233
L217:
  mov    -0x28(%rbp),%rax
  movq   $0x1,(%rax)
  mov    $0x1,%eax
  jmp    L233
L158:
  mov    $0x10,%edi
  call   <OPENSSL_malloc@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jne    L221
  mov    $0x0,%eax
  jmp    L233
L221:
  mov    -0x8(%rbp),%rax
  movq   $0x0,0x8(%rax)
  mov    -0x8(%rbp),%rax
  movl   $0xffffffff,(%rax)
  mov    -0x28(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  mov    %rdx,(%rax)
  jmp    L268
L245:
  cmpl   $0x0,-0x34(%rbp)
  je     L30
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    $0x8,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x18(%rbp),%rax
  mov    -0x1c(%rbp),%edx
  mov    %edx,(%rax)
  mov    D8(%rip),%rax
  mov    (%rax),%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,0x4(%rax)
  jmp    L64
L30:
  mov    -0x1c(%rbp),%eax
  mov    %eax,%edi
  call   <ASN1_STRING_type_new@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%rax
  mov    -0x18(%rbp),%rdx
  mov    %rdx,(%rax)
L64:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rdx
  mov    D6(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jne    L250
  cmpq   $0x0,-0x18(%rbp)
  je     L250
  mov    -0x18(%rbp),%rax
  mov    0x4(%rax),%edx
  mov    D3(%rip),%rax
  mov    (%rax),%eax
  or     %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,0x4(%rax)
L250:
  nop
L268:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  je     L239
  mov    $0x1,%eax
  jmp    L233
L239:
  mov    $0x0,%eax
L233:
  leave
  ret
```

assistant: ```c
int asn1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed) {
  ASN1_TYPE *typ;
  ASN1_STRING *str;
  int utype;
  if (!it)
    return 0;
  if (it->funcs) {
    const ASN1_PRIMITIVE_FUNCS *pf = it->funcs;
    if (embed) {
      if (pf->prim_clear) {
        pf->prim_clear(pval, it);
        return 1;
      }
    } else if (pf->prim_new) {
      return pf->prim_new(pval, it);
    }
  }
  if (it->itype == ASN1_ITYPE_MSTRING)
    utype = -1;
  else
    utype = it->utype;
  switch (utype) {
  case V_ASN1_OBJECT:
    *pval = (ASN1_VALUE *)OBJ_nid2obj(NID_undef);
    return 1;
  case V_ASN1_BOOLEAN:
    *(ASN1_BOOLEAN *)pval = it->size;
    return 1;
  case V_ASN1_NULL:
    *pval = (ASN1_VALUE *)1;
    return 1;
  case V_ASN1_ANY:
    typ = OPENSSL_malloc(sizeof(*typ));
    if (typ == NULL)
      return 0;
    typ->value.ptr = NULL;
    typ->type = -1;
    *pval = (ASN1_VALUE *)typ;
    break;
  default:
    if (embed) {
      str = *(ASN1_STRING **)pval;
      memset(str, 0, sizeof(*str));
      str->type = utype;
      str->flags = ASN1_STRING_FLAG_EMBED;
    } else {
      str = ASN1_STRING_type_new(utype);
      *pval = (ASN1_VALUE *)str;
    }
    if (it->itype == ASN1_ITYPE_MSTRING && str)
      str->flags |= ASN1_STRING_FLAG_MSTRING;
    break;
  }
  if (*pval)
    return 1;
  return 0;
}
```