user: 请从给定的汇编指令推导出C源代码：

```asm
<timeparse>:
  endbr64
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <atoi@plt>
  mov    %rax,%rdi
  mov    %rax,%r14
  call   <dbtget@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L0
L39:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L53
  add    $0x10,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nop
L0:
  xor    %edi,%edi
  lea    0x4(%rsp),%r12
  call   <dbtgetnxt@plt>
  xor    %esi,%esi
  mov    $0x4,%edx
  mov    %r12,%rdi
  mov    %rax,%rbp
  call   <memset@plt>
  test   %rbp,%rbp
  je     L90
L61:
  mov    %r12,%rdx
  lea    D45(%rip),%rsi
  mov    %r13,%rdi
  call   <strptime@plt>
  test   %eax,%eax
  je     L67
L82:
  mov    %r12,%rdi
  mov    %rbp,%r12
  call   <mktime@plt>
  mov    %rax,%r13
  jmp    L8
  nopl   (%rax)
L80:
  mov    %rbp,%rdi
  call   <dbtgett@plt>
  mov    %r12,%rdi
  mov    %rax,%rbx
  call   <dbtgett@plt>
  mov    %rax,%r8
  mov    %rbx,%rax
  sub    %r13,%rax
  mov    %rax,%rcx
  neg    %rcx
  cmovs  %rax,%rcx
  mov    %r8,%rax
  sub    %r13,%rax
  mov    %rax,%rdx
  neg    %rdx
  cmovns %rdx,%rax
  cmp    %rax,%rcx
  cmovl  %rbp,%r12
L8:
  mov    %rbp,%rdi
  call   <dbtgetnxt@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  jne    L80
  jmp    L39
  nopw   0x0(%rax,%rax,1)
L67:
  mov    %r12,%rdx
  lea    D59(%rip),%rsi
  mov    %r13,%rdi
  call   <strptime@plt>
  test   %eax,%eax
  jne    L82
  mov    %r12,%rdx
  lea    D11(%rip),%rsi
  mov    %r13,%rdi
  call   <strptime@plt>
  test   %eax,%eax
  jne    L82
  mov    %r12,%rdx
  lea    D20(%rip),%rsi
  mov    %r13,%rdi
  call   <strptime@plt>
  test   %eax,%eax
  jne    L82
  mov    %r14,%rcx
  mov    %r13,%rdx
  mov    $0x1,%edi
  lea    D24(%rip),%rsi
  call   <error@plt>
  jmp    L82
  nopw   0x0(%rax,%rax,1)
L90:
  mov    %r14,%rcx
  mov    %r13,%rdx
  mov    $0x1,%edi
  lea    D1(%rip),%rsi
  call   <error@plt>
  jmp    L61
L53:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D45
type_infered: string
name: parse_data
arguments: label: D59
type_infered: string
name: parse_data
arguments: label: D11
type_infered: string
name: parse_data
arguments: label: D20
type_infered: string
name: parse_data
arguments: label: D24
type_infered: string
name: parse_data
arguments: label: D1
type_infered: string

tool: D45: %y-%m-%d %H:%M

tool: D59: %y-%m-%d

tool: D11: %y-%m

tool: D20: %y

tool: D24: time not parseable: '%s' -> %li


tool: D1: not time found: '%s' -> %li


assistant: ```c
struct dbt *timeparse(const char *stime) {
  time_t t = atoi(stime);
  struct dbt *dt = dbtget(t);
  if (!dt) {
    struct tm tm;
    struct dbt *dti = dt = dbtgetnxt(NULL);
    memset(&tm, 0, sizeof(struct tm));
    if (!dt)
      error(1, "not time found: '%s' -> %li\n", stime, t);
    if (!strptime(stime, "%y-%m-%d %H:%M", &tm) && !strptime(stime, "%y-%m-%d", &tm) && !strptime(stime, "%y-%m", &tm) && !strptime(stime, "%y", &tm))
      error(1, "time not parseable: '%s' -> %li\n", stime, t);
    t = mktime(&tm);
    while ((dti = dbtgetnxt(dti)))
      if (labs((long)dbtgett(dti) - (long)t) < labs((long)dbtgett(dt) - (long)t))
        dt = dti;
  }
  return dt;
}
```