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

```asm
<parse_cvs_date>:
  endbr64
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x38,%rsp
  movsbl (%rdx),%edi
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <is_digit@plt>
  test   %eax,%eax
  jne    L128
L99:
  xor    %eax,%eax
L28:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L246
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L128:
  movsbl 0x1(%rbp),%edi
  call   <is_digit@plt>
  test   %eax,%eax
  je     L99
  cmpb   $0x3a,0x2(%rbp)
  mov    $0x0,%edx
  mov    $0xfffff894,%eax
  mov    %rbp,%rdi
  cmove  %edx,%eax
  lea    0x8(%rsp),%r13
  mov    $0xa,%edx
  mov    %r13,%rsi
  mov    %eax,0x10(%rsp)
  call   <strtoul@plt>
  movslq %eax,%rdx
  cmp    $0x270f,%rdx
  ja     L99
  mov    0x8(%rsp),%rdi
  movzbl (%rdi),%edx
  and    $0xfffffffd,%edx
  cmp    $0x2d,%dl
  jne    L99
  add    $0x1,%rdi
  mov    $0xa,%edx
  mov    %r13,%rsi
  add    %eax,0x10(%rsp)
  mov    %rdi,0x8(%rsp)
  call   <strtoul@plt>
  sub    $0x1,%eax
  mov    %eax,0x14(%rsp)
  cmp    $0xb,%eax
  ja     L99
  mov    0x8(%rsp),%rdi
  movzbl (%rdi),%eax
  and    $0xfffffffd,%eax
  cmp    $0x2d,%al
  jne    L99
  add    $0x1,%rdi
  mov    $0xa,%edx
  mov    %r13,%rsi
  mov    %rdi,0x8(%rsp)
  call   <strtoul@plt>
  mov    %eax,0x18(%rsp)
  sub    $0x1,%eax
  cmp    $0x1e,%eax
  ja     L99
  mov    0x8(%rsp),%rax
  lea    0x1(%rax),%rdi
  mov    %rdi,0x8(%rsp)
  cmpb   $0x20,(%rax)
  jne    L99
  mov    $0xa,%edx
  mov    %r13,%rsi
  call   <strtoul@plt>
  mov    %eax,0x1c(%rsp)
  cmp    $0x18,%eax
  ja     L99
  mov    0x8(%rsp),%rax
  lea    0x1(%rax),%rdi
  mov    %rdi,0x8(%rsp)
  cmpb   $0x3a,(%rax)
  jne    L99
  mov    $0xa,%edx
  mov    %r13,%rsi
  call   <strtoul@plt>
  mov    %eax,0x20(%rsp)
  cmp    $0x3b,%eax
  ja     L99
  mov    0x8(%rsp),%rdx
  cmpb   $0x3a,(%rdx)
  je     L270
  movl   $0x0,0x24(%rsp)
L23:
  cmpb   $0x0,(%rdx)
  je     L203
  lea    0x1(%rdx),%rax
  mov    %rax,0x8(%rsp)
  cmpb   $0x20,(%rdx)
  jne    L99
  movzbl 0x1(%rdx),%eax
  cmp    $0x2b,%al
  je     L283
  or     $0xffffffff,%r13d
  cmp    $0x2d,%al
  jne    L99
L177:
  movsbl 0x2(%rdx),%edi
  call   <is_digit@plt>
  test   %eax,%eax
  je     L99
  mov    0x8(%rsp),%rax
  movsbl 0x2(%rax),%edi
  call   <is_digit@plt>
  test   %eax,%eax
  je     L99
  mov    0x8(%rsp),%rdx
  mov    $0xa,%esi
  movsbl 0x1(%rdx),%ebp
  mov    %rdx,%rcx
  add    $0x3,%rdx
  sub    $0x30,%ebp
  mov    %ebp,%eax
  movzbl -0x1(%rdx),%ebp
  mov    %rdx,0x8(%rsp)
  imul   %esi,%eax
  add    %eax,%ebp
  movzbl 0x3(%rcx),%eax
  shl    $0x4,%ebp
  test   %al,%al
  jne    L224
L4:
  cmpb   $0x0,(%rdx)
  jne    L99
  lea    0x10(%rsp),%rdi
  call   <timegm@plt>
  mov    %eax,%r8d
  mov    %r13d,%eax
  imul   %ebp,%eax
  sub    %eax,%r8d
  mov    $0x1,%eax
  mov    %r8b,(%rbx)
  mov    %bpl,(%r12)
  jmp    L28
L246:
  call   <__stack_chk_fail@plt>
L203:
  lea    0x10(%rsp),%rdi
  call   <timegm@plt>
  mov    %al,(%rbx)
  mov    $0x1,%eax
  movb   $0x0,(%r12)
  jmp    L28
L270:
  lea    0x1(%rdx),%rdi
  mov    %r13,%rsi
  mov    $0xa,%edx
  mov    %rdi,0x8(%rsp)
  call   <strtoul@plt>
  mov    %eax,0x24(%rsp)
  cmp    $0x3c,%eax
  ja     L99
  mov    0x8(%rsp),%rdx
  jmp    L23
L283:
  mov    $0x1,%r13d
  jmp    L177
L224:
  movsbl %al,%edi
  call   <is_digit@plt>
  test   %eax,%eax
  je     L99
  mov    0x8(%rsp),%rax
  movsbl 0x1(%rax),%edi
  call   <is_digit@plt>
  test   %eax,%eax
  je     L99
  mov    0x8(%rsp),%rdx
  mov    $0x58,%esi
  movsbl (%rdx),%ecx
  add    $0x2,%rdx
  sub    $0x30,%ecx
  mov    %ecx,%eax
  imul   %esi,%eax
  mov    $0x3c,%esi
  mov    %eax,%ecx
  movsbl -0x1(%rdx),%eax
  mov    %rdx,0x8(%rsp)
  sub    $0x30,%eax
  imul   %esi,%eax
  add    %eax,%ecx
  add    %ecx,%ebp
  jmp    L4
```

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