user: 这段汇编代码用C语言表示是什么样的？

```asm
<asn1_d2i_ex_primitive>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xa0,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %rdx,-0x78(%rbp)
  mov    %rcx,-0x80(%rbp)
  mov    %r8d,-0x84(%rbp)
  mov    %r9d,-0x88(%rbp)
  mov    0x10(%rbp),%eax
  mov    %al,-0x8c(%rbp)
  mov    0x18(%rbp),%rax
  mov    %rax,-0x98(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x54(%rbp)
  movb   $0x0,-0x59(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movq   $0x0,-0x10(%rbp)
  movq   $0x0,-0x40(%rbp)
  cmpq   $0x0,-0x68(%rbp)
  jne    L274
  mov    D179(%rip),%rax
  mov    (%rax),%edx
  mov    D194(%rip),%rax
  mov    (%rax),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <ASN1err@plt>
  mov    $0x0,%eax
  jmp    L112
L274:
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rdx
  mov    D245(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jne    L377
  mov    -0x84(%rbp),%eax
  mov    %eax,-0x58(%rbp)
  movl   $0xffffffff,-0x84(%rbp)
  jmp    L241
L377:
  mov    -0x80(%rbp),%rax
  mov    0x8(%rax),%eax
  mov    %eax,-0x58(%rbp)
L241:
  mov    -0x58(%rbp),%edx
  mov    D268(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jne    L418
  cmpl   $0x0,-0x84(%rbp)
  js     L190
  mov    D140(%rip),%rax
  mov    (%rax),%edx
  mov    D194(%rip),%rax
  mov    (%rax),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <ASN1err@plt>
  mov    $0x0,%eax
  jmp    L112
L190:
  cmpb   $0x0,-0x8c(%rbp)
  je     L123
  mov    D291(%rip),%rax
  mov    (%rax),%edx
  mov    D194(%rip),%rax
  mov    (%rax),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <ASN1err@plt>
  mov    $0x0,%eax
  jmp    L112
L123:
  mov    -0x70(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x48(%rbp)
  lea    -0x48(%rbp),%rcx
  lea    -0x50(%rbp),%rdx
  lea    -0x58(%rbp),%rax
  sub    $0x8,%rsp
  push   -0x98(%rbp)
  push   $0x0
  push   $0x0
  push   $0xffffffffffffffff
  push   -0x78(%rbp)
  mov    %rcx,%r9
  mov    $0x0,%r8d
  mov    $0x0,%ecx
  mov    %rax,%rsi
  mov    $0x0,%edi
  call   <asn1_check_tlen@plt>
  add    $0x30,%rsp
  mov    %eax,-0x54(%rbp)
  cmpl   $0x0,-0x54(%rbp)
  jne    L248
  mov    D143(%rip),%rax
  mov    (%rax),%edx
  mov    D194(%rip),%rax
  mov    (%rax),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <ASN1err@plt>
  mov    $0x0,%eax
  jmp    L112
L248:
  movzbl -0x50(%rbp),%edx
  mov    D100(%rip),%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  je     L418
  mov    D210(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,-0x58(%rbp)
L418:
  cmpl   $0xffffffff,-0x84(%rbp)
  jne    L345
  mov    -0x58(%rbp),%eax
  mov    %eax,-0x84(%rbp)
  mov    D100(%rip),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x88(%rbp)
L345:
  mov    -0x70(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x48(%rbp)
  movsbl -0x8c(%rbp),%ecx
  lea    -0x48(%rbp),%rdi
  lea    -0x5b(%rbp),%rsi
  lea    -0x5a(%rbp),%rdx
  lea    -0x50(%rbp),%rax
  sub    $0x8,%rsp
  push   -0x98(%rbp)
  push   %rcx
  mov    -0x88(%rbp),%ecx
  push   %rcx
  mov    -0x84(%rbp),%ecx
  push   %rcx
  push   -0x78(%rbp)
  mov    %rdi,%r9
  mov    %rsi,%r8
  mov    %rdx,%rcx
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <asn1_check_tlen@plt>
  add    $0x30,%rsp
  mov    %eax,-0x54(%rbp)
  cmpl   $0x0,-0x54(%rbp)
  jne    L267
  mov    D143(%rip),%rax
  mov    (%rax),%edx
  mov    D194(%rip),%rax
  mov    (%rax),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <ASN1err@plt>
  mov    $0x0,%eax
  jmp    L112
L267:
  cmpl   $0xffffffff,-0x54(%rbp)
  jne    L400
  mov    $0xffffffff,%eax
  jmp    L112
L400:
  movl   $0x0,-0x54(%rbp)
  mov    -0x58(%rbp),%edx
  mov    D149(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  je     L103
  mov    -0x58(%rbp),%edx
  mov    D133(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  je     L103
  mov    -0x58(%rbp),%edx
  mov    D210(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jne    L29
L103:
  mov    -0x58(%rbp),%edx
  mov    D210(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jne    L385
  cmpq   $0x0,-0x98(%rbp)
  je     L295
  mov    -0x98(%rbp),%rax
  movq   $0x0,(%rax)
  jmp    L295
L385:
  movzbl -0x5b(%rbp),%eax
  test   %al,%al
  jne    L295
  mov    D40(%rip),%rax
  mov    (%rax),%edx
  mov    D194(%rip),%rax
  mov    (%rax),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <ASN1err@plt>
  mov    $0x0,%eax
  jmp    L112
L295:
  mov    -0x70(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x40(%rbp)
  movzbl -0x5a(%rbp),%eax
  test   %al,%al
  je     L20
  movzbl -0x5a(%rbp),%eax
  movsbl %al,%edx
  mov    -0x50(%rbp),%rcx
  lea    -0x48(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <asn1_find_end@plt>
  test   %eax,%eax
  je     L109
  mov    -0x48(%rbp),%rax
  sub    -0x40(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  jmp    L260
L20:
  mov    -0x48(%rbp),%rax
  sub    -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x48(%rbp),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x48(%rbp)
  jmp    L260
L29:
  movzbl -0x5b(%rbp),%eax
  test   %al,%al
  je     L95
  mov    -0x58(%rbp),%edx
  mov    D284(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  je     L54
  mov    -0x58(%rbp),%edx
  mov    D276(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  je     L54
  mov    -0x58(%rbp),%edx
  mov    D146(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  je     L54
  mov    -0x58(%rbp),%edx
  mov    D156(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  je     L54
  mov    -0x58(%rbp),%edx
  mov    D254(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jne    L202
L54:
  mov    D154(%rip),%rax
  mov    (%rax),%edx
  mov    D194(%rip),%rax
  mov    (%rax),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <ASN1err@plt>
  mov    $0x0,%eax
  jmp    L112
L202:
  movb   $0x1,-0x59(%rbp)
  mov    D100(%rip),%rax
  movzbl (%rax),%eax
  movzbl %al,%edi
  movzbl -0x5a(%rbp),%eax
  movsbl %al,%ecx
  mov    -0x50(%rbp),%rdx
  lea    -0x48(%rbp),%rsi
  lea    -0x30(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x0
  mov    %edi,%r9d
  mov    $0xffffffff,%r8d
  mov    %rax,%rdi
  call   <asn1_collect@plt>
  add    $0x10,%rsp
  test   %eax,%eax
  je     L314
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  lea    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <BUF_MEM_grow_clean@plt>
  test   %eax,%eax
  jne    L315
  mov    D97(%rip),%rax
  mov    (%rax),%edx
  mov    D194(%rip),%rax
  mov    (%rax),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <ASN1err@plt>
  jmp    L281
L315:
  mov    -0x28(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  movq   $0x0,(%rax)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x40(%rbp)
  jmp    L260
L95:
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x50(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x48(%rbp),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x48(%rbp)
L260:
  mov    -0x58(%rbp),%ecx
  mov    -0x80(%rbp),%r8
  lea    -0x59(%rbp),%rdi
  mov    -0x38(%rbp),%rdx
  mov    -0x40(%rbp),%rsi
  mov    -0x68(%rbp),%rax
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <asn1_ex_c2i@plt>
  test   %eax,%eax
  je     L21
  mov    -0x48(%rbp),%rdx
  mov    -0x70(%rbp),%rax
  mov    %rdx,(%rax)
  movl   $0x1,-0x54(%rbp)
  jmp    L281
L109:
  nop
  jmp    L281
L314:
  nop
  jmp    L281
L21:
  nop
L281:
  movzbl -0x59(%rbp),%eax
  test   %al,%al
  je     L333
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <OPENSSL_free@plt>
L333:
  mov    -0x54(%rbp),%eax
L112:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L251
  call   <__stack_chk_fail@plt>
L251:
  leave
  ret
```

assistant: ```c
int asn1_d2i_ex_primitive(ASN1_VALUE **pval, const unsigned char **in, long inlen, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
  int ret = 0, utype;
  long plen;
  char cst, inf, free_cont = 0;
  const unsigned char *p;
  BUF_MEM buf = {0, NULL, 0, 0};
  const unsigned char *cont = NULL;
  long len;
  if (!pval) {
    ASN1err(ASN1_F_ASN1_D2I_EX_PRIMITIVE, ASN1_R_ILLEGAL_NULL);
    return 0;
  }
  if (it->itype == ASN1_ITYPE_MSTRING) {
    utype = tag;
    tag = -1;
  } else
    utype = it->utype;
  if (utype == V_ASN1_ANY) {
    unsigned char oclass;
    if (tag >= 0) {
      ASN1err(ASN1_F_ASN1_D2I_EX_PRIMITIVE, ASN1_R_ILLEGAL_TAGGED_ANY);
      return 0;
    }
    if (opt) {
      ASN1err(ASN1_F_ASN1_D2I_EX_PRIMITIVE, ASN1_R_ILLEGAL_OPTIONAL_ANY);
      return 0;
    }
    p = *in;
    ret = asn1_check_tlen(NULL, &utype, &oclass, NULL, NULL, &p, inlen, -1, 0, 0, ctx);
    if (!ret) {
      ASN1err(ASN1_F_ASN1_D2I_EX_PRIMITIVE, ERR_R_NESTED_ASN1_ERROR);
      return 0;
    }
    if (oclass != V_ASN1_UNIVERSAL)
      utype = V_ASN1_OTHER;
  }
  if (tag == -1) {
    tag = utype;
    aclass = V_ASN1_UNIVERSAL;
  }
  p = *in;
  ret = asn1_check_tlen(&plen, NULL, NULL, &inf, &cst, &p, inlen, tag, aclass, opt, ctx);
  if (!ret) {
    ASN1err(ASN1_F_ASN1_D2I_EX_PRIMITIVE, ERR_R_NESTED_ASN1_ERROR);
    return 0;
  } else if (ret == -1)
    return -1;
  ret = 0;
  if ((utype == V_ASN1_SEQUENCE) || (utype == V_ASN1_SET) || (utype == V_ASN1_OTHER)) {
    if (utype == V_ASN1_OTHER) {
      if (ctx)
        (ctx)->valid = 0;
    } else if (!cst) {
      ASN1err(ASN1_F_ASN1_D2I_EX_PRIMITIVE, ASN1_R_TYPE_NOT_CONSTRUCTED);
      return 0;
    }
    cont = *in;
    if (inf) {
      if (!asn1_find_end(&p, plen, inf))
        goto err;
      len = p - cont;
    } else {
      len = p - cont + plen;
      p += plen;
    }
  } else if (cst) {
    if (utype == V_ASN1_NULL || utype == V_ASN1_BOOLEAN || utype == V_ASN1_OBJECT || utype == V_ASN1_INTEGER || utype == V_ASN1_ENUMERATED) {
      ASN1err(ASN1_F_ASN1_D2I_EX_PRIMITIVE, ASN1_R_TYPE_NOT_PRIMITIVE);
      return 0;
    }
    free_cont = 1;
    if (!asn1_collect(&buf, &p, plen, inf, -1, V_ASN1_UNIVERSAL, 0)) {
      goto err;
    }
    len = buf.length;
    if (!BUF_MEM_grow_clean(&buf, len + 1)) {
      ASN1err(ASN1_F_ASN1_D2I_EX_PRIMITIVE, ERR_R_MALLOC_FAILURE);
      goto err;
    }
    buf.data[len] = 0;
    cont = (const unsigned char *)buf.data;
  } else {
    cont = p;
    len = plen;
    p += plen;
  }
  if (!asn1_ex_c2i(pval, cont, len, utype, &free_cont, it))
    goto err;
  *in = p;
  ret = 1;
err:
  if (free_cont)
    OPENSSL_free(buf.data);
  return ret;
}
```