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

```asm
<asn1_check_tlen>:
  endbr64
  push   %r15
  mov    %r8,%r10
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %r9,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    (%r9),%r9
  mov    0x80(%rsp),%r8
  mov    0x98(%rsp),%r11d
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  mov    0xa0(%rsp),%rbx
  mov    %r9,0x30(%rsp)
  test   %r8,%r8
  jle    L112
  mov    %rdi,%r12
  mov    %rsi,%r13
  mov    %rdx,%r14
  mov    %rcx,%r15
  test   %rbx,%rbx
  je     L194
  mov    (%rbx),%ecx
  test   %ecx,%ecx
  je     L173
  mov    0x8(%rbx),%rdx
  mov    0x4(%rbx),%eax
  mov    %rdx,0x28(%rsp)
  mov    0x10(%rbx),%edx
  mov    %edx,0x24(%rsp)
  mov    0x14(%rbx),%edx
  mov    %edx,0x20(%rsp)
  movslq 0x18(%rbx),%rdx
  add    %r9,%rdx
  mov    %rdx,0x30(%rsp)
L39:
  test   $0x80,%al
  jne    L134
  mov    0x88(%rsp),%edx
  test   %edx,%edx
  js     L154
  mov    0x88(%rsp),%esi
  cmp    %esi,0x20(%rsp)
  je     L241
L199:
  mov    $0xffffffff,%eax
  test   %r11b,%r11b
  je     L258
L84:
  mov    0x38(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L68
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L173:
  lea    0x24(%rsp),%rcx
  lea    0x20(%rsp),%rdx
  mov    %r11d,0x1c(%rsp)
  lea    0x28(%rsp),%rsi
  lea    0x30(%rsp),%rdi
  mov    %r10,0x10(%rsp)
  mov    %r9,0x8(%rsp)
  mov    %r8,0x80(%rsp)
  call   <ASN1_get_object@plt>
  mov    0x24(%rsp),%edx
  mov    0x8(%rsp),%r9
  movl   $0x1,(%rbx)
  mov    0x28(%rsp),%rcx
  mov    0x80(%rsp),%r8
  mov    %eax,0x4(%rbx)
  mov    0x10(%rsp),%r10
  mov    0x1c(%rsp),%r11d
  mov    %edx,0x10(%rbx)
  mov    0x20(%rsp),%edx
  mov    %rcx,0x8(%rbx)
  mov    %edx,0x14(%rbx)
  mov    0x30(%rsp),%rdx
  sub    %r9,%rdx
  test   $0x81,%al
  mov    %edx,0x18(%rbx)
  jne    L39
  movslq %edx,%rdx
  add    %rcx,%rdx
  cmp    %r8,%rdx
  jle    L39
  mov    D66(%rip),%rax
  mov    (%rax),%esi
  mov    D26(%rip),%rax
  mov    (%rax),%edi
  call   <ERR_raise@plt>
  jmp    L67
  nopl   (%rax)
L241:
  mov    0x90(%rsp),%edi
  cmp    %edi,0x24(%rsp)
  jne    L199
  test   %rbx,%rbx
  je     L154
  movl   $0x0,(%rbx)
  nopl   0x0(%rax)
L154:
  mov    0x30(%rsp),%rdx
  test   $0x1,%al
  jne    L232
L158:
  test   %r15,%r15
  je     L183
  mov    %eax,%ecx
  and    $0x1,%ecx
  mov    %cl,(%r15)
L183:
  test   %r10,%r10
  je     L201
  mov    D10(%rip),%rcx
  and    (%rcx),%al
  mov    %al,(%r10)
L201:
  test   %r12,%r12
  je     L88
  mov    0x28(%rsp),%rax
  mov    %rax,(%r12)
L88:
  test   %r14,%r14
  je     L156
  mov    0x24(%rsp),%eax
  mov    %al,(%r14)
L156:
  test   %r13,%r13
  je     L248
  mov    0x20(%rsp),%eax
  mov    %eax,0x0(%r13)
L248:
  mov    %rdx,0x0(%rbp)
  mov    $0x1,%eax
  jmp    L84
  nopl   0x0(%rax)
L232:
  mov    %rdx,%rcx
  sub    %r9,%rcx
  sub    %rcx,%r8
  mov    %r8,0x28(%rsp)
  jmp    L158
  nopl   0x0(%rax,%rax,1)
L134:
  mov    D58(%rip),%rax
  mov    (%rax),%esi
  mov    D26(%rip),%rax
  mov    (%rax),%edi
  call   <ERR_raise@plt>
L145:
  xor    %eax,%eax
  test   %rbx,%rbx
  je     L84
L67:
  movl   $0x0,(%rbx)
  xor    %eax,%eax
  jmp    L84
  nop
L112:
  mov    D56(%rip),%rax
  mov    (%rax),%esi
  mov    D26(%rip),%rax
  mov    (%rax),%edi
  call   <ERR_raise@plt>
  jmp    L145
  nopl   0x0(%rax)
L194:
  lea    0x24(%rsp),%rcx
  lea    0x20(%rsp),%rdx
  mov    %r11d,0x1c(%rsp)
  lea    0x28(%rsp),%rsi
  lea    0x30(%rsp),%rdi
  mov    %r10,0x10(%rsp)
  mov    %r9,0x8(%rsp)
  mov    %r8,0x80(%rsp)
  call   <ASN1_get_object@plt>
  mov    0x8(%rsp),%r9
  mov    0x10(%rsp),%r10
  mov    0x80(%rsp),%r8
  mov    0x1c(%rsp),%r11d
  jmp    L39
  nopl   0x0(%rax)
L258:
  mov    D34(%rip),%rax
  mov    (%rax),%esi
  mov    D26(%rip),%rax
  mov    (%rax),%edi
  call   <ERR_raise@plt>
  jmp    L145
L68:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int asn1_check_tlen(long *olen, int *otag, unsigned char *oclass, char *inf, char *cst, const unsigned char **in, long len, int exptag, int expclass, char opt, ASN1_TLC *ctx) {
  int i;
  int ptag, pclass;
  long plen;
  const unsigned char *p, *q;
  p = *in;
  q = p;
  if (len <= 0) {
    ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_SMALL);
    goto err;
  }
  if (ctx != NULL && ctx->valid) {
    i = ctx->ret;
    plen = ctx->plen;
    pclass = ctx->pclass;
    ptag = ctx->ptag;
    p += ctx->hdrlen;
  } else {
    i = ASN1_get_object(&p, &plen, &ptag, &pclass, len);
    if (ctx != NULL) {
      ctx->ret = i;
      ctx->plen = plen;
      ctx->pclass = pclass;
      ctx->ptag = ptag;
      ctx->hdrlen = p - q;
      ctx->valid = 1;
      if ((i & 0x81) == 0 && (plen + ctx->hdrlen) > len) {
        ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LONG);
        goto err;
      }
    }
  }
  if ((i & 0x80) != 0) {
    ERR_raise(ERR_LIB_ASN1, ASN1_R_BAD_OBJECT_HEADER);
    goto err;
  }
  if (exptag >= 0) {
    if (exptag != ptag || expclass != pclass) {
      if (opt != 0)
        return -1;
      ERR_raise(ERR_LIB_ASN1, ASN1_R_WRONG_TAG);
      goto err;
    }
    do {
      if ((ctx) != NULL)
        (ctx)->valid = 0;
    } while (0);
  }
  if ((i & 1) != 0)
    plen = len - (p - q);
  if (inf != NULL)
    *inf = i & 1;
  if (cst != NULL)
    *cst = i & V_ASN1_CONSTRUCTED;
  if (olen != NULL)
    *olen = plen;
  if (oclass != NULL)
    *oclass = pclass;
  if (otag != NULL)
    *otag = ptag;
  *in = p;
  return 1;
err:
  do {
    if ((ctx) != NULL)
      (ctx)->valid = 0;
  } while (0);
  return 0;
}
```