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

```asm
<X509_cmp_time>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xb0,%rsp
  mov    %rdi,-0xa8(%rbp)
  mov    %rsi,-0xb0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x40(%rbp),%rax
  mov    %rax,-0x68(%rbp)
  mov    -0xa8(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x8c(%rbp)
  mov    -0xa8(%rbp),%rax
  mov    0x8(%rax),%rax
  mov    %rax,-0x78(%rbp)
  mov    -0xa8(%rbp),%rax
  mov    0x10(%rax),%rdx
  mov    D3(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jne    L441
  movl   $0xb,-0x80(%rbp)
  movl   $0x11,-0x7c(%rbp)
  mov    -0x8c(%rbp),%eax
  cmp    -0x80(%rbp),%eax
  jl     L45
  mov    -0x8c(%rbp),%eax
  cmp    -0x7c(%rbp),%eax
  jle    L37
L45:
  mov    $0x0,%eax
  jmp    L126
L37:
  mov    -0x78(%rbp),%rcx
  mov    -0x68(%rbp),%rax
  mov    $0xa,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  addq   $0xa,-0x68(%rbp)
  addq   $0xa,-0x78(%rbp)
  subl   $0xa,-0x8c(%rbp)
  jmp    L512
L441:
  movl   $0xd,-0x88(%rbp)
  movl   $0x17,-0x84(%rbp)
  mov    -0x8c(%rbp),%eax
  cmp    -0x88(%rbp),%eax
  jl     L164
  mov    -0x8c(%rbp),%eax
  cmp    -0x84(%rbp),%eax
  jle    L170
L164:
  mov    $0x0,%eax
  jmp    L126
L170:
  mov    -0x78(%rbp),%rcx
  mov    -0x68(%rbp),%rax
  mov    $0xc,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  addq   $0xc,-0x68(%rbp)
  addq   $0xc,-0x78(%rbp)
  subl   $0xc,-0x8c(%rbp)
L512:
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5a,%al
  je     L460
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  je     L460
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  jne    L234
L460:
  mov    -0x68(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x68(%rbp)
  movb   $0x30,(%rax)
  mov    -0x68(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x68(%rbp)
  movb   $0x30,(%rax)
  jmp    L340
L234:
  cmpl   $0x1,-0x8c(%rbp)
  jg     L33
  mov    $0x0,%eax
  jmp    L126
L33:
  mov    -0x78(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x78(%rbp)
  mov    -0x68(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x68(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  mov    -0x78(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x78(%rbp)
  mov    -0x68(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x68(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  subl   $0x2,-0x8c(%rbp)
  cmpl   $0x0,-0x8c(%rbp)
  je     L340
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L340
  addq   $0x1,-0x78(%rbp)
  subl   $0x1,-0x8c(%rbp)
  movl   $0x0,-0x94(%rbp)
  jmp    L371
L528:
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L340
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L340
  addl   $0x1,-0x94(%rbp)
  addq   $0x1,-0x78(%rbp)
  subl   $0x1,-0x8c(%rbp)
L371:
  cmpl   $0x2,-0x94(%rbp)
  jg     L340
  cmpl   $0x0,-0x8c(%rbp)
  jne    L528
L340:
  mov    -0x68(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x68(%rbp)
  movb   $0x5a,(%rax)
  mov    -0x68(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x68(%rbp)
  movb   $0x0,(%rax)
  cmpl   $0x0,-0x8c(%rbp)
  jne    L230
  mov    $0x0,%eax
  jmp    L126
L230:
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5a,%al
  jne    L32
  cmpl   $0x1,-0x8c(%rbp)
  je     L232
  mov    $0x0,%eax
  jmp    L126
L232:
  movq   $0x0,-0x70(%rbp)
  jmp    L175
L32:
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  je     L121
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  je     L121
  mov    $0x0,%eax
  jmp    L126
L121:
  cmpl   $0x5,-0x8c(%rbp)
  je     L334
  mov    $0x0,%eax
  jmp    L126
L334:
  mov    -0x78(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L153
  mov    -0x78(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L153
  mov    -0x78(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L153
  mov    -0x78(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L153
  mov    -0x78(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L153
  mov    -0x78(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L153
  mov    -0x78(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L153
  mov    -0x78(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jle    L28
L153:
  mov    $0x0,%eax
  jmp    L126
L28:
  mov    -0x78(%rbp),%rax
  add    $0x1,%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    -0x78(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %edx,%eax
  imul   $0x3c,%eax,%eax
  cltq
  mov    %rax,-0x70(%rbp)
  mov    -0x78(%rbp),%rax
  add    $0x3,%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    -0x78(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %edx,%eax
  cltq
  add    %rax,-0x70(%rbp)
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L175
  negq   -0x70(%rbp)
L175:
  mov    -0xa8(%rbp),%rax
  mov    0x10(%rax),%rax
  mov    %rax,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  movl   $0x18,-0x60(%rbp)
  lea    -0x20(%rbp),%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x70(%rbp),%rdx
  mov    %rdx,%rax
  shl    $0x4,%rax
  sub    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rcx
  mov    -0xb0(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <X509_time_adj@plt>
  test   %rax,%rax
  jne    L327
  mov    $0x0,%eax
  jmp    L126
L327:
  mov    -0xa8(%rbp),%rax
  mov    0x10(%rax),%rdx
  mov    D3(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jne    L152
  movzbl -0x40(%rbp),%eax
  movsbl %al,%eax
  lea    -0x30(%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  movzbl -0x3f(%rbp),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %edx,%eax
  mov    %eax,-0x94(%rbp)
  cmpl   $0x31,-0x94(%rbp)
  jg     L76
  addl   $0x64,-0x94(%rbp)
L76:
  movzbl -0x20(%rbp),%eax
  movsbl %al,%eax
  lea    -0x30(%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  movzbl -0x1f(%rbp),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %edx,%eax
  mov    %eax,-0x90(%rbp)
  cmpl   $0x31,-0x90(%rbp)
  jg     L426
  addl   $0x64,-0x90(%rbp)
L426:
  mov    -0x94(%rbp),%eax
  cmp    -0x90(%rbp),%eax
  jge    L22
  mov    $0xffffffff,%eax
  jmp    L126
L22:
  mov    -0x94(%rbp),%eax
  cmp    -0x90(%rbp),%eax
  jle    L152
  mov    $0x1,%eax
  jmp    L126
L152:
  lea    -0x20(%rbp),%rdx
  lea    -0x40(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  mov    %eax,-0x94(%rbp)
  cmpl   $0x0,-0x94(%rbp)
  jne    L39
  mov    $0xffffffff,%eax
  jmp    L126
L39:
  mov    -0x94(%rbp),%eax
L126:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L297
  call   <__stack_chk_fail@plt>
L297:
  leave
  ret
```

assistant: ```c
int X509_cmp_time(const ASN1_TIME *ctm, time_t *cmp_time) {
  char *str;
  ASN1_TIME atm;
  long offset;
  char buff1[24], buff2[24], *p;
  int i, j, remaining;
  p = buff1;
  remaining = ctm->length;
  str = (char *)ctm->data;
  if (ctm->type == V_ASN1_UTCTIME) {
    int min_length = sizeof("YYMMDDHHMMZ") - 1;
    int max_length = sizeof("YYMMDDHHMMSS+hhmm") - 1;
    if (remaining < min_length || remaining > max_length)
      return 0;
    memcpy(p, str, 10);
    p += 10;
    str += 10;
    remaining -= 10;
  } else {
    int min_length = sizeof("YYYYMMDDHHMMZ") - 1;
    int max_length = sizeof("YYYYMMDDHHMMSS.fff+hhmm") - 1;
    if (remaining < min_length || remaining > max_length)
      return 0;
    memcpy(p, str, 12);
    p += 12;
    str += 12;
    remaining -= 12;
  }
  if ((*str == 'Z') || (*str == '-') || (*str == '+')) {
    *(p++) = '0';
    *(p++) = '0';
  } else {
    if (remaining < 2)
      return 0;
    *(p++) = *(str++);
    *(p++) = *(str++);
    remaining -= 2;
    if (remaining && *str == '.') {
      str++;
      remaining--;
      for (i = 0; i < 3 && remaining; i++, str++, remaining--) {
        if (*str < '0' || *str > '9')
          break;
      }
    }
  }
  *(p++) = 'Z';
  *(p++) = '\0';
  if (!remaining)
    return 0;
  if (*str == 'Z') {
    if (remaining != 1)
      return 0;
    offset = 0;
  } else {
    if ((*str != '+') && (*str != '-'))
      return 0;
    if (remaining != 5)
      return 0;
    if (str[1] < '0' || str[1] > '9' || str[2] < '0' || str[2] > '9' || str[3] < '0' || str[3] > '9' || str[4] < '0' || str[4] > '9')
      return 0;
    offset = ((str[1] - '0') * 10 + (str[2] - '0')) * 60;
    offset += (str[3] - '0') * 10 + (str[4] - '0');
    if (*str == '-')
      offset = -offset;
  }
  atm.type = ctm->type;
  atm.flags = 0;
  atm.length = sizeof(buff2);
  atm.data = (unsigned char *)buff2;
  if (X509_time_adj(&atm, offset * 60, cmp_time) == NULL)
    return 0;
  if (ctm->type == V_ASN1_UTCTIME) {
    i = (buff1[0] - '0') * 10 + (buff1[1] - '0');
    if (i < 50)
      i += 100;
    j = (buff2[0] - '0') * 10 + (buff2[1] - '0');
    if (j < 50)
      j += 100;
    if (i < j)
      return -1;
    if (i > j)
      return 1;
  }
  i = strcmp(buff1, buff2);
  if (i == 0)
    return -1;
  else
    return i;
}
```