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

```asm
<oo__strtimetosint64>:
  endbr64
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movzbl (%rdi),%eax
  cmp    $0x4e,%al
  je     L251
  sub    $0x31,%eax
  cmp    $0x1,%al
  jbe    L207
L94:
  xor    %eax,%eax
L120:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L91
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopl   0x0(%rax)
L207:
  movzbl 0x1(%rdi),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L94
  movzbl 0x2(%rbx),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L94
  movzbl 0x3(%rbx),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L94
  cmpb   $0x2d,0x4(%rbx)
  jne    L94
  movzbl 0x5(%rbx),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L94
  movzbl 0x6(%rbx),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L94
  cmpb   $0x2d,0x7(%rbx)
  jne    L94
  movzbl 0x8(%rbx),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L94
  movzbl 0x9(%rbx),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L94
  cmpb   $0x54,0xa(%rbx)
  jne    L94
  movzbl 0xb(%rbx),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L94
  movzbl 0xc(%rbx),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L94
  cmpb   $0x3a,0xd(%rbx)
  jne    L94
  movzbl 0xe(%rbx),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L94
  movzbl 0xf(%rbx),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L94
  cmpb   $0x3a,0x10(%rbx)
  jne    L94
  movzbl 0x11(%rbx),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L94
  movzbl 0x12(%rbx),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L94
  cmpb   $0x5a,0x13(%rbx)
  jne    L94
  movsbl (%rbx),%edx
  mov    $0xffffffe8,%esi
  xor    %ecx,%ecx
  movzbl 0xc(%rbx),%edi
  movq   $0x0,0x8(%rsp)
  sub    $0x30,%edx
  mov    %edx,%eax
  imul   %esi,%eax
  mov    $0x64,%esi
  mov    %eax,%edx
  movzbl 0x3(%rbx),%eax
  lea    0x64(%rdx,%rax,1),%edx
  movsbl 0x1(%rbx),%eax
  sub    $0x30,%eax
  imul   %esi,%eax
  mov    $0xa,%esi
  add    %eax,%edx
  movsbl 0x2(%rbx),%eax
  sub    $0x30,%eax
  imul   %esi,%eax
  add    %eax,%edx
  movsbl 0x5(%rbx),%eax
  mov    %dl,%cl
  movzbl 0x6(%rbx),%edx
  sub    $0x30,%eax
  imul   %esi,%eax
  lea    -0x31(%rax,%rdx,1),%eax
  movsbl 0x8(%rbx),%edx
  mov    %al,%ch
  sub    $0x30,%edx
  movzwl %cx,%ecx
  mov    %edx,%eax
  imul   %esi,%eax
  mov    %eax,%edx
  movzbl 0x9(%rbx),%eax
  lea    -0x30(%rdx,%rax,1),%edx
  movsbl 0xb(%rbx),%eax
  movzbl %dl,%edx
  sub    $0x30,%eax
  shl    $0x10,%edx
  imul   %esi,%eax
  or     %edx,%ecx
  movzbl 0xf(%rbx),%edx
  lea    -0x30(%rax,%rdi,1),%eax
  mov    %rsp,%rdi
  shl    $0x18,%eax
  or     %ecx,%eax
  mov    %eax,(%rsp)
  movsbl 0xe(%rbx),%eax
  sub    $0x30,%eax
  imul   %esi,%eax
  lea    -0x30(%rax,%rdx,1),%eax
  movzbl 0x12(%rbx),%edx
  mov    %al,0x4(%rsp)
  movsbl 0x11(%rbx),%eax
  sub    $0x30,%eax
  imul   %esi,%eax
  lea    -0x30(%rax,%rdx,1),%eax
  mov    %al,0x5(%rsp)
  call   <timegm@plt>
  jmp    L120
  nopw   0x0(%rax,%rax,1)
L251:
  cmpb   $0x4f,0x1(%rdi)
  jne    L94
  cmpb   $0x57,0x2(%rdi)
  jne    L94
  movzbl 0x3(%rdi),%eax
  sub    $0x2b,%eax
  test   $0xfd,%al
  jne    L94
  movzbl 0x4(%rdi),%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L94
  cmpb   $0x2b,0x3(%rbx)
  lea    0x4(%rbx),%rbp
  je     L21
  lea    0x3(%rbx),%rbp
L21:
  xor    %edi,%edi
  call   <time@plt>
  mov    %rbp,%rdi
  mov    %rax,%rbx
  call   <oo__strtosint64@plt>
  add    %rbx,%rax
  jmp    L120
L91:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int64_t oo__strtimetosint64(const char *s) {
  if (s[0] == 'N') {
    if (s[1] != 'O' || s[2] != 'W' || (s[3] != '+' && s[3] != '-') || !isdigit((unsigned char)(s[4])))
      return 0;
    s += 3;
    if (*s == '+')
      s++;
    return time(NULL) + oo__strtosint64(s);
  }
  if ((s[0] != '1' && s[0] != '2') || !isdigit((unsigned char)(s[1])) || !isdigit((unsigned char)(s[2])) || !isdigit((unsigned char)(s[3])) || s[4] != '-' || !isdigit((unsigned char)(s[5])) || !isdigit((unsigned char)(s[6])) || s[7] != '-' || !isdigit((unsigned char)(s[8])) || !isdigit((unsigned char)(s[9])) || s[10] != 'T' || !isdigit((unsigned char)(s[11])) || !isdigit((unsigned char)(s[12])) || s[13] != ':' || !isdigit((unsigned char)(s[14])) || !isdigit((unsigned char)(s[15])) || s[16] != ':' || !isdigit((unsigned char)(s[17])) || !isdigit((unsigned char)(s[18])) || s[19] != 'Z')
    return 0;
  {
    struct tm tm;
    tm.tm_isdst = 0;
    tm.tm_year = (s[0] - '0') * 1000 + (s[1] - '0') * 100 + (s[2] - '0') * 10 + (s[3] - '0') - 1900;
    tm.tm_mon = (s[5] - '0') * 10 + s[6] - '0' - 1;
    tm.tm_mday = (s[8] - '0') * 10 + s[9] - '0';
    tm.tm_hour = (s[11] - '0') * 10 + s[12] - '0';
    tm.tm_min = (s[14] - '0') * 10 + s[15] - '0';
    tm.tm_sec = (s[17] - '0') * 10 + s[18] - '0';
    return timegm(&tm);
  }
}
```