user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<oo__strtimetosint64>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x4e,%al
  jne    L178
  mov    -0x38(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x4f,%al
  jne    L113
  mov    -0x38(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  cmp    $0x57,%al
  jne    L113
  mov    -0x38(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  je     L198
  mov    -0x38(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L113
L198:
  mov    -0x38(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  jne    L17
L113:
  mov    $0x0,%eax
  jmp    L253
L17:
  addq   $0x3,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  jne    L211
  addq   $0x1,-0x38(%rbp)
L211:
  mov    $0x0,%edi
  call   <time@plt>
  mov    %rax,%rbx
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <oo__strtosint64@plt>
  add    %rbx,%rax
  jmp    L253
L178:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  je     L250
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x32,%al
  jne    L291
L250:
  mov    -0x38(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L291
  mov    -0x38(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L291
  mov    -0x38(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L291
  mov    -0x38(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L291
  mov    -0x38(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L291
  mov    -0x38(%rbp),%rax
  add    $0x6,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L291
  mov    -0x38(%rbp),%rax
  add    $0x7,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L291
  mov    -0x38(%rbp),%rax
  add    $0x8,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L291
  mov    -0x38(%rbp),%rax
  add    $0x9,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L291
  mov    -0x38(%rbp),%rax
  add    $0xa,%rax
  movzbl (%rax),%eax
  cmp    $0x54,%al
  jne    L291
  mov    -0x38(%rbp),%rax
  add    $0xb,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L291
  mov    -0x38(%rbp),%rax
  add    $0xc,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L291
  mov    -0x38(%rbp),%rax
  add    $0xd,%rax
  movzbl (%rax),%eax
  cmp    $0x3a,%al
  jne    L291
  mov    -0x38(%rbp),%rax
  add    $0xe,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L291
  mov    -0x38(%rbp),%rax
  add    $0xf,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L291
  mov    -0x38(%rbp),%rax
  add    $0x10,%rax
  movzbl (%rax),%eax
  cmp    $0x3a,%al
  jne    L291
  mov    -0x38(%rbp),%rax
  add    $0x11,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L291
  mov    -0x38(%rbp),%rax
  add    $0x12,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  je     L291
  mov    -0x38(%rbp),%rax
  add    $0x13,%rax
  movzbl (%rax),%eax
  cmp    $0x5a,%al
  je     L28
L291:
  mov    $0x0,%eax
  jmp    L253
L28:
  movq   $0x0,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%edx
  sub    %edx,%eax
  shl    $0x3,%eax
  mov    %eax,%ecx
  mov    -0x38(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    $0x64,%edx
  imul   %edx,%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0x38(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  add    %eax,%edx
  mov    -0x38(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  add    %edx,%eax
  add    $0x64,%eax
  mov    %al,-0x30(%rbp)
  mov    -0x38(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rax
  add    $0x6,%rax
  movzbl (%rax),%eax
  add    %edx,%eax
  sub    $0x31,%eax
  mov    %al,-0x2f(%rbp)
  mov    -0x38(%rbp),%rax
  add    $0x8,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rax
  add    $0x9,%rax
  movzbl (%rax),%eax
  add    %edx,%eax
  sub    $0x30,%eax
  mov    %al,-0x2e(%rbp)
  mov    -0x38(%rbp),%rax
  add    $0xb,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rax
  add    $0xc,%rax
  movzbl (%rax),%eax
  add    %edx,%eax
  sub    $0x30,%eax
  mov    %al,-0x2d(%rbp)
  mov    -0x38(%rbp),%rax
  add    $0xe,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rax
  add    $0xf,%rax
  movzbl (%rax),%eax
  add    %edx,%eax
  sub    $0x30,%eax
  mov    %al,-0x2c(%rbp)
  mov    -0x38(%rbp),%rax
  add    $0x11,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rax
  add    $0x12,%rax
  movzbl (%rax),%eax
  add    %edx,%eax
  sub    $0x30,%eax
  mov    %al,-0x2b(%rbp)
  lea    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <timegm@plt>
L253:
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L95
  call   <__stack_chk_fail@plt>
L95:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

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);
  }
}
```