user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<asn1_time_parse>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %ecx,-0x5c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x34(%rbp)
  cmpq   $0x0,-0x48(%rbp)
  jne    L77
  mov    $0xffffffff,%eax
  jmp    L282
L77:
  cmpq   $0xd,-0x50(%rbp)
  je     L319
  cmpq   $0xf,-0x50(%rbp)
  je     L319
  mov    $0xffffffff,%eax
  jmp    L282
L319:
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  jne    L67
  lea    -0x20(%rbp),%rax
  mov    $0x18,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,-0x30(%rbp)
L67:
  mov    -0x50(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5a,%al
  je     L342
  mov    $0xffffffff,%eax
  jmp    L282
L342:
  movl   $0x0,-0x38(%rbp)
  jmp    L44
L41:
  mov    -0x38(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L0
  mov    $0xffffffff,%eax
  jmp    L282
L0:
  nop
  addl   $0x1,-0x38(%rbp)
L44:
  mov    -0x38(%rbp),%eax
  cltq
  mov    -0x50(%rbp),%rdx
  sub    $0x1,%rdx
  cmp    %rdx,%rax
  jb     L41
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  cmpq   $0xd,-0x50(%rbp)
  je     L295
  cmpq   $0xf,-0x50(%rbp)
  jne    L100
  mov    D11(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x5c(%rbp)
  jne    L175
  mov    $0xffffffff,%eax
  jmp    L282
L175:
  addq   $0x2,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  sub    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  lea    -0x30(%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %edx,%eax
  imul   $0x64,%eax,%eax
  lea    -0x76c(%rax),%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
  mov    D35(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,-0x34(%rbp)
L295:
  cmpl   $0x0,-0x34(%rbp)
  jne    L195
  mov    D35(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x5c(%rbp)
  jne    L266
  mov    $0xffffffff,%eax
  jmp    L282
L266:
  mov    D11(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,-0x34(%rbp)
L195:
  addq   $0x2,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  sub    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  lea    -0x30(%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
  mov    D11(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x34(%rbp)
  jne    L354
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0x31,%eax
  jg     L354
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  lea    0x64(%rax),%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
L354:
  addq   $0x2,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  sub    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  lea    -0x30(%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %edx,%eax
  lea    -0x1(%rax),%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,0x4(%rax)
  mov    -0x30(%rbp),%rax
  mov    0x4(%rax),%eax
  test   %eax,%eax
  js     L102
  mov    -0x30(%rbp),%rax
  mov    0x4(%rax),%eax
  cmp    $0xb,%eax
  jle    L140
L102:
  mov    $0xffffffff,%eax
  jmp    L282
L140:
  addq   $0x2,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  sub    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  lea    -0x30(%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,0x8(%rax)
  mov    -0x30(%rbp),%rax
  mov    0x8(%rax),%eax
  test   %eax,%eax
  jle    L320
  mov    -0x30(%rbp),%rax
  mov    0x8(%rax),%eax
  cmp    $0x1f,%eax
  jle    L28
L320:
  mov    $0xffffffff,%eax
  jmp    L282
L28:
  addq   $0x2,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  sub    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  lea    -0x30(%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,0xc(%rax)
  mov    -0x30(%rbp),%rax
  mov    0xc(%rax),%eax
  test   %eax,%eax
  js     L81
  mov    -0x30(%rbp),%rax
  mov    0xc(%rax),%eax
  cmp    $0x17,%eax
  jle    L155
L81:
  mov    $0xffffffff,%eax
  jmp    L282
L155:
  addq   $0x2,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  sub    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  lea    -0x30(%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,0x10(%rax)
  mov    -0x30(%rbp),%rax
  mov    0x10(%rax),%eax
  test   %eax,%eax
  js     L89
  mov    -0x30(%rbp),%rax
  mov    0x10(%rax),%eax
  cmp    $0x3b,%eax
  jle    L17
L89:
  mov    $0xffffffff,%eax
  jmp    L282
L17:
  addq   $0x2,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  sub    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  lea    -0x30(%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,0x14(%rax)
  mov    -0x30(%rbp),%rax
  mov    0x14(%rax),%eax
  test   %eax,%eax
  js     L202
  mov    -0x30(%rbp),%rax
  mov    0x14(%rax),%eax
  cmp    $0x3b,%eax
  jle    L240
L202:
  mov    $0xffffffff,%eax
  jmp    L282
L100:
  mov    $0xffffffff,%eax
  jmp    L282
L240:
  nop
  mov    -0x34(%rbp),%eax
L282:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L173
  call   <__stack_chk_fail@plt>
L173:
  leave
  ret
```

assistant: ```c
int asn1_time_parse(const char *bytes, size_t len, struct tm *tm, int mode) {
  int i, type = 0;
  struct tm ltm;
  struct tm *lt;
  const char *p;
  if (bytes == NULL)
    return (-1);
  if (len != 13 && len != 15)
    return (-1);
  lt = tm;
  if (lt == NULL) {
    memset(&ltm, 0, sizeof(ltm));
    lt = &ltm;
  }
  if (bytes[len - 1] != 'Z')
    return (-1);
  for (i = 0; i < len - 1; i++) {
    if (isdigit((unsigned char)bytes[i]))
      continue;
    return (-1);
  }
  p = bytes;
  switch (len) {
  case 15:
    if (mode == V_ASN1_UTCTIME)
      return (-1);
    lt->tm_year = (((p) += 2, ((p)[-2] - '0') * 10 + ((p)[-1] - '0')) * 100) - 1900;
    type = V_ASN1_GENERALIZEDTIME;
  case 13:
    if (type == 0) {
      if (mode == V_ASN1_GENERALIZEDTIME)
        return (-1);
      type = V_ASN1_UTCTIME;
    }
    lt->tm_year += ((p) += 2, ((p)[-2] - '0') * 10 + ((p)[-1] - '0'));
    if (type == V_ASN1_UTCTIME) {
      if (lt->tm_year < 50)
        lt->tm_year += 100;
    }
    lt->tm_mon = ((p) += 2, ((p)[-2] - '0') * 10 + ((p)[-1] - '0')) - 1;
    if (lt->tm_mon < 0 || lt->tm_mon > 11)
      return (-1);
    lt->tm_mday = ((p) += 2, ((p)[-2] - '0') * 10 + ((p)[-1] - '0'));
    if (lt->tm_mday < 1 || lt->tm_mday > 31)
      return (-1);
    lt->tm_hour = ((p) += 2, ((p)[-2] - '0') * 10 + ((p)[-1] - '0'));
    if (lt->tm_hour < 0 || lt->tm_hour > 23)
      return (-1);
    lt->tm_min = ((p) += 2, ((p)[-2] - '0') * 10 + ((p)[-1] - '0'));
    if (lt->tm_min < 0 || lt->tm_min > 59)
      return (-1);
    lt->tm_sec = ((p) += 2, ((p)[-2] - '0') * 10 + ((p)[-1] - '0'));
    if (lt->tm_sec < 0 || lt->tm_sec > 59)
      return (-1);
    break;
  default:
    return (-1);
  }
  return (type);
}
```