user: Please show me the C implementation that matches the assembly code listed below:

```asm
<ASN1_UTCTIME_cmp_time_t>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0xc,%rax
  movzbl (%rax),%eax
  cmp    $0x5a,%al
  jne    L192
  movl   $0x0,-0x30(%rbp)
  jmp    L275
L192:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0xd,%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    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0xe,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  sub    $0x30,%eax
  imul   $0x3c,%eax,%ecx
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0xf,%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    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0x10,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  sub    $0x30,%eax
  add    %ecx,%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0xc,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L275
  negl   -0x30(%rbp)
L275:
  mov    -0x30(%rbp),%edx
  mov    %edx,%eax
  shl    $0x4,%edx
  sub    %edx,%eax
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x3c(%rbp)
  lea    -0x20(%rbp),%rdx
  lea    -0x3c(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <OPENSSL_gmtime@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  mov    (%rax),%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    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  sub    $0x30,%eax
  mov    %eax,-0x2c(%rbp)
  cmpl   $0x31,-0x2c(%rbp)
  jg     L286
  addl   $0x64,-0x2c(%rbp)
L286:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x2c(%rbp)
  jge    L207
  mov    $0xffffffff,%eax
  jmp    L151
L207:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x2c(%rbp)
  jle    L39
  mov    $0x1,%eax
  jmp    L151
L39:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $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    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x30(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    0x4(%rax),%eax
  cmp    %eax,%edx
  jg     L142
  mov    $0xffffffff,%eax
  jmp    L151
L142:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $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    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x31(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    0x4(%rax),%eax
  cmp    %eax,%edx
  jle    L45
  mov    $0x1,%eax
  jmp    L151
L45:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0x4,%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    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x2f(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    0x8(%rax),%eax
  cmp    %eax,%edx
  jg     L132
  mov    $0xffffffff,%eax
  jmp    L151
L132:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0x4,%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    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x30(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    0x8(%rax),%eax
  cmp    %eax,%edx
  jle    L103
  mov    $0x1,%eax
  jmp    L151
L103:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0x6,%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    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0x7,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x2f(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    0xc(%rax),%eax
  cmp    %eax,%edx
  jg     L41
  mov    $0xffffffff,%eax
  jmp    L151
L41:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0x6,%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    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0x7,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x30(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    0xc(%rax),%eax
  cmp    %eax,%edx
  jle    L169
  mov    $0x1,%eax
  jmp    L151
L169:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0x8,%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    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0x9,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x2f(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    0x10(%rax),%eax
  cmp    %eax,%edx
  jg     L280
  mov    $0xffffffff,%eax
  jmp    L151
L280:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0x8,%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    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0x9,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x30(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    0x10(%rax),%eax
  cmp    %eax,%edx
  jle    L65
  mov    $0x1,%eax
  jmp    L151
L65:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0xa,%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    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0xb,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x2f(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    0x14(%rax),%eax
  cmp    %eax,%edx
  jg     L213
  mov    $0xffffffff,%eax
  jmp    L151
L213:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0xa,%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    -0x38(%rbp),%rax
  mov    (%rax),%rax
  add    $0xb,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x30(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    0x14(%rax),%eax
  cmp    %eax,%edx
  jle    L217
  mov    $0x1,%eax
  jmp    L151
L217:
  mov    $0x0,%eax
L151:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L273
  call   <__stack_chk_fail@plt>
L273:
  leave
  ret
```

assistant: ```c
int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t) {
  struct tm *tm;
  struct tm data;
  int offset;
  int year;
  if (s->data[12] == 'Z')
    offset = 0;
  else {
    offset = (((s->data + 13)[0] - '0') * 10 + (s->data + 13)[1] - '0') * 60 + (((s->data + 15)[0] - '0') * 10 + (s->data + 15)[1] - '0');
    if (s->data[12] == '-')
      offset = -offset;
  }
  t -= offset * 60;
  tm = OPENSSL_gmtime(&t, &data);
  year = (((s->data)[0] - '0') * 10 + (s->data)[1] - '0');
  if (year < 50)
    year += 100;
  if ((year) < (tm->tm_year))
    return -1;
  else if ((year) > (tm->tm_year))
    return 1;
  if (((((s->data + 2)[0] - '0') * 10 + (s->data + 2)[1] - '0') - 1) < (tm->tm_mon))
    return -1;
  else if (((((s->data + 2)[0] - '0') * 10 + (s->data + 2)[1] - '0') - 1) > (tm->tm_mon))
    return 1;
  if (((((s->data + 4)[0] - '0') * 10 + (s->data + 4)[1] - '0')) < (tm->tm_mday))
    return -1;
  else if (((((s->data + 4)[0] - '0') * 10 + (s->data + 4)[1] - '0')) > (tm->tm_mday))
    return 1;
  if (((((s->data + 6)[0] - '0') * 10 + (s->data + 6)[1] - '0')) < (tm->tm_hour))
    return -1;
  else if (((((s->data + 6)[0] - '0') * 10 + (s->data + 6)[1] - '0')) > (tm->tm_hour))
    return 1;
  if (((((s->data + 8)[0] - '0') * 10 + (s->data + 8)[1] - '0')) < (tm->tm_min))
    return -1;
  else if (((((s->data + 8)[0] - '0') * 10 + (s->data + 8)[1] - '0')) > (tm->tm_min))
    return 1;
  if (((((s->data + 10)[0] - '0') * 10 + (s->data + 10)[1] - '0')) < (tm->tm_sec))
    return -1;
  else if (((((s->data + 10)[0] - '0') * 10 + (s->data + 10)[1] - '0')) > (tm->tm_sec))
    return 1;
  return 0;
}
```