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

```asm
<parse_cvs_date>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%r12
  mov    %rsi,%rbp
  mov    %rdx,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movsbl (%rdx),%edi
  call   <is_digit@plt>
  test   %eax,%eax
  jne    L3
L6:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L92
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L3:
  movsbl 0x1(%rbx),%edi
  call   <is_digit@plt>
  test   %eax,%eax
  je     L6
  cmpb   $0x3a,0x2(%rbx)
  mov    $0xfffff894,%eax
  mov    $0x0,%edx
  cmove  %edx,%eax
  mov    %eax,0x10(%rsp)
  lea    0x8(%rsp),%rsi
  mov    $0xa,%edx
  mov    %rbx,%rdi
  call   <strtoul@plt>
  mov    %eax,%edx
  movslq %eax,%rcx
  mov    $0x0,%eax
  cmp    $0x270f,%rcx
  ja     L6
  mov    0x8(%rsp),%rdi
  movzbl (%rdi),%ecx
  and    $0xfffffffd,%ecx
  cmp    $0x2d,%cl
  jne    L6
  add    $0x1,%rdi
  mov    %rdi,0x8(%rsp)
  add    %edx,0x10(%rsp)
  lea    0x8(%rsp),%rsi
  mov    $0xa,%edx
  call   <strtoul@plt>
  lea    -0x1(%rax),%edx
  mov    %edx,0x14(%rsp)
  mov    $0x0,%eax
  cmp    $0xb,%edx
  ja     L6
  mov    0x8(%rsp),%rdi
  movzbl (%rdi),%edx
  and    $0xfffffffd,%edx
  cmp    $0x2d,%dl
  jne    L6
  add    $0x1,%rdi
  mov    %rdi,0x8(%rsp)
  lea    0x8(%rsp),%rsi
  mov    $0xa,%edx
  call   <strtoul@plt>
  mov    %eax,0x18(%rsp)
  lea    -0x1(%rax),%edx
  mov    $0x0,%eax
  cmp    $0x1e,%edx
  ja     L6
  mov    0x8(%rsp),%rdx
  lea    0x1(%rdx),%rdi
  mov    %rdi,0x8(%rsp)
  cmpb   $0x20,(%rdx)
  jne    L6
  lea    0x8(%rsp),%rsi
  mov    $0xa,%edx
  call   <strtoul@plt>
  mov    %eax,%edx
  mov    %eax,0x1c(%rsp)
  mov    $0x0,%eax
  cmp    $0x18,%edx
  ja     L6
  mov    0x8(%rsp),%rdx
  lea    0x1(%rdx),%rdi
  mov    %rdi,0x8(%rsp)
  cmpb   $0x3a,(%rdx)
  jne    L6
  lea    0x8(%rsp),%rsi
  mov    $0xa,%edx
  call   <strtoul@plt>
  mov    %eax,%edx
  mov    %eax,0x20(%rsp)
  mov    $0x0,%eax
  cmp    $0x3b,%edx
  ja     L6
  mov    0x8(%rsp),%rdi
  cmpb   $0x3a,(%rdi)
  je     L216
  movl   $0x0,0x24(%rsp)
L4:
  mov    0x8(%rsp),%rdx
  cmpb   $0x0,(%rdx)
  je     L165
  lea    0x1(%rdx),%rax
  mov    %rax,0x8(%rsp)
  mov    $0x0,%eax
  cmpb   $0x20,(%rdx)
  jne    L6
  movzbl 0x1(%rdx),%ecx
  cmp    $0x2b,%cl
  je     L127
  mov    $0xffffffff,%r13d
  cmp    $0x2d,%cl
  jne    L6
L67:
  movsbl 0x2(%rdx),%edi
  call   <is_digit@plt>
  test   %eax,%eax
  je     L6
  mov    0x8(%rsp),%rax
  movsbl 0x2(%rax),%edi
  call   <is_digit@plt>
  test   %eax,%eax
  je     L6
  mov    0x8(%rsp),%rdx
  movsbl 0x1(%rdx),%ebx
  sub    $0x30,%ebx
  mov    $0xa,%ecx
  mov    %ebx,%eax
  imul   %ecx,%eax
  mov    %eax,%ebx
  add    0x2(%rdx),%bl
  shl    $0x4,%ebx
  lea    0x3(%rdx),%rax
  mov    %rax,0x8(%rsp)
  movzbl 0x3(%rdx),%eax
  test   %al,%al
  jne    L175
L252:
  mov    $0x0,%eax
  mov    0x8(%rsp),%rdx
  cmpb   $0x0,(%rdx)
  jne    L6
  lea    0x10(%rsp),%rdi
  call   <timegm@plt>
  mov    %eax,%edx
  mov    %r13d,%eax
  imul   %ebx,%eax
  sub    %eax,%edx
  mov    %dl,(%r12)
  mov    %bl,0x0(%rbp)
  mov    $0x1,%eax
  jmp    L6
L216:
  add    $0x1,%rdi
  mov    %rdi,0x8(%rsp)
  lea    0x8(%rsp),%rsi
  mov    $0xa,%edx
  call   <strtoul@plt>
  mov    %eax,0x24(%rsp)
  cmp    $0x3c,%eax
  jbe    L4
  mov    $0x0,%eax
  jmp    L6
L165:
  lea    0x10(%rsp),%rdi
  call   <timegm@plt>
  mov    %al,(%r12)
  movb   $0x0,0x0(%rbp)
  mov    $0x1,%eax
  jmp    L6
L127:
  mov    $0x1,%r13d
  jmp    L67
L175:
  movsbl %al,%edi
  call   <is_digit@plt>
  test   %eax,%eax
  je     L6
  mov    0x8(%rsp),%rax
  movsbl 0x1(%rax),%edi
  call   <is_digit@plt>
  test   %eax,%eax
  je     L6
  mov    0x8(%rsp),%rcx
  movsbl (%rcx),%edx
  sub    $0x30,%edx
  mov    $0x58,%esi
  mov    %edx,%eax
  imul   %esi,%eax
  mov    %eax,%edx
  movsbl 0x1(%rcx),%eax
  sub    $0x30,%eax
  mov    $0x3c,%esi
  imul   %esi,%eax
  add    %eax,%edx
  add    %edx,%ebx
  add    $0x2,%rcx
  mov    %rcx,0x8(%rsp)
  jmp    L252
L92:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
bool parse_cvs_date(time_t *time, time_t *offset, const char *date) {
  if (!is_digit(date[0]) || !is_digit(date[1]))
    return false;
  struct tm dtm;
  dtm.tm_year = 0;
  if (date[2] != ':')
    dtm.tm_year = -1900;
  char *d;
  unsigned long year = strtoul(date, &d, 10);
  if (year >= 10000 || (*d != '-' && *d != '/'))
    return false;
  ++d;
  dtm.tm_year += year;
  dtm.tm_mon = strtoul(d, &d, 10) - 1;
  if (dtm.tm_mon < 0 || dtm.tm_mon > 11 || (*d != '-' && *d != '/'))
    return false;
  ++d;
  dtm.tm_mday = strtoul(d, &d, 10);
  if (dtm.tm_mday < 1 || dtm.tm_mday > 31 || *d++ != ' ')
    return false;
  dtm.tm_hour = strtoul(d, &d, 10);
  if (dtm.tm_hour < 0 || dtm.tm_hour > 24 || *d++ != ':')
    return false;
  dtm.tm_min = strtoul(d, &d, 10);
  if (dtm.tm_min < 0 || dtm.tm_min > 59)
    return false;
  if (*d == ':') {
    ++d;
    dtm.tm_sec = strtoul(d, &d, 10);
    if (dtm.tm_sec < 0 || dtm.tm_sec > 60)
      return false;
  } else
    dtm.tm_sec = 0;
  if (*d == 0) {
    *time = timegm(&dtm);
    *offset = 0;
    return true;
  }
  if (*d++ != ' ')
    return false;
  int sign;
  if (*d == '+')
    sign = 1;
  else if (*d == '-')
    sign = -1;
  else
    return false;
  if (!is_digit(d[1]) || !is_digit(d[2]))
    return false;
  time_t off = (d[1] - '0') * 36000 + (d[2] - '0') * 3600;
  d += 3;
  if (*d != 0) {
    if (!is_digit(d[0]) || !is_digit(d[1]))
      return false;
    off += (d[0] - '0') * 600 + (d[1] - '0') * 60;
    d += 2;
  }
  if (*d != 0)
    return false;
  *time = timegm(&dtm) - sign * off;
  *offset = off;
  return true;
}
```