user: What would the C source look like for the assembly code provided here?

```asm
<Sfile_decode_datestr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,-0x1c(%rbp)
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rdi
  call   <localtime@plt>
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L109
L61:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    -0x18(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x18(%rbp)
L109:
  cmpl   $0x17,-0x18(%rbp)
  jle    L61
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L249
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jle    L248
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x40,%al
  jle    L249
L248:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5a,%al
  jle    L183
L249:
  mov    $0x0,%eax
  jmp    L67
L183:
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x14(%rbp)
  movl   $0x1,-0x18(%rbp)
  jmp    L96
L82:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L116
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L116
  addl   $0x1,-0x18(%rbp)
L96:
  mov    -0x18(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L82
L116:
  cmpl   $0x6,-0x18(%rbp)
  je     L175
  mov    $0x0,%eax
  jmp    L67
L175:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L24
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L121
  cmpl   $0xb,-0x14(%rbp)
  je     L235
  cmpl   $0xd,-0x14(%rbp)
  je     L235
L121:
  mov    $0x0,%eax
  jmp    L67
L235:
  addl   $0x1,-0x18(%rbp)
  jmp    L257
L180:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L3
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L3
  addl   $0x1,-0x18(%rbp)
L257:
  mov    -0x18(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L180
L3:
  mov    -0x18(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  je     L103
  mov    $0x0,%eax
  jmp    L67
L24:
  nop
  jmp    L0
L103:
  nop
L0:
  mov    -0x28(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x28(%rbp),%rax
  movl   $0x0,0x4(%rax)
  mov    -0x28(%rbp),%rax
  movl   $0x0,0x8(%rax)
  movl   $0x0,-0x18(%rbp)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x40,%al
  jle    L199
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  lea    -0x41(%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  lea    0x64(%rax),%edx
  mov    -0x30(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x30(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,0xc(%rax)
  jmp    L95
L199:
  mov    -0x30(%rbp),%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    -0x30(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x30(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,0xc(%rax)
L95:
  mov    -0x30(%rbp),%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    -0x30(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x31(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,0x10(%rax)
  mov    -0x30(%rbp),%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    -0x30(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x30(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,0x14(%rax)
  cmpl   $0x6,-0x14(%rbp)
  jne    L306
  mov    $0x1,%eax
  jmp    L67
L306:
  mov    -0x30(%rbp),%rax
  add    $0x7,%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    -0x30(%rbp),%rax
  add    $0x8,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x30(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x30(%rbp),%rax
  add    $0x9,%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    -0x30(%rbp),%rax
  add    $0xa,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x30(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,0x4(%rax)
  cmpl   $0xb,-0x14(%rbp)
  jne    L245
  mov    $0x1,%eax
  jmp    L67
L245:
  mov    -0x30(%rbp),%rax
  add    $0xb,%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    -0x30(%rbp),%rax
  add    $0xc,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  lea    -0x30(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,0x8(%rax)
  mov    $0x1,%eax
L67:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L301
  call   <__stack_chk_fail@plt>
L301:
  leave
  ret
```

assistant: ```c
int Sfile_decode_datestr(struct tm *reply, char *text, int flag) {
  int i, l;
  time_t current_time;
  struct tm *now;
  current_time = time(0);
  now = localtime(&current_time);
  for (i = 0; i < (int)sizeof(struct tm); i++)
    ((char *)reply)[i] = ((char *)now)[i];
  if (text[0] < '0' || (text[0] > '9' && text[0] < 'A') || text[0] > 'Z')
    return (0);
  l = strlen(text);
  for (i = 1; i < l; i++)
    if (text[i] < '0' || text[i] > '9')
      break;
  if (i != 6)
    return (0);
  if (text[i] == 0)
    goto decode;
  if (text[i] != '.' || (l != 11 && l != 13))
    return (0);
  for (i++; i < l; i++)
    if (text[i] < '0' || text[i] > '9')
      break;
  if (i != l)
    return (0);
decode:;
  reply->tm_hour = 0;
  reply->tm_min = 0;
  reply->tm_sec = 0;
  i = 0;
  if (text[0] >= 'A')
    reply->tm_year = 100 + (text[i] - 'A') * 10 + text[1] - '0';
  else
    reply->tm_year = 10 * (text[0] - '0') + text[1] - '0';
  reply->tm_mon = 10 * (text[2] - '0') + text[3] - '0' - 1;
  reply->tm_mday = 10 * (text[4] - '0') + text[5] - '0';
  if (l == 6)
    return (1);
  reply->tm_hour = 10 * (text[7] - '0') + text[8] - '0';
  reply->tm_min = 10 * (text[9] - '0') + text[10] - '0';
  if (l == 11)
    return (1);
  reply->tm_sec = 10 * (text[11] - '0') + text[12] - '0';
  return (1);
}
```