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

```asm
<parse_zipline>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  mov    %rdi,%rsi
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x478,%rsp
  mov    %rdx,(%rsp)
  lea    0x3c(%rsp),%r13
  lea    0x60(%rsp),%r12
  mov    0x4b0(%rsp),%rax
  mov    %rcx,0x8(%rsp)
  mov    %r13,%rdx
  mov    0x4c0(%rsp),%r14
  mov    %r12,%rdi
  mov    %rax,0x20(%rsp)
  mov    0x4b8(%rsp),%rax
  mov    %r8,0x10(%rsp)
  mov    0x4c8(%rsp),%r15
  mov    %r9,0x18(%rsp)
  mov    %rax,0x28(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x468(%rsp)
  xor    %eax,%eax
  movl   $0x0,(%r14)
  movl   $0x0,0x3c(%rsp)
  call   <nexttoken@plt>
  test   %eax,%eax
  jne    L1
L172:
  xor    %eax,%eax
L80:
  mov    0x468(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L170
  add    $0x478,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L1:
  mov    %r12,%rdi
  call   <is_a_number@plt>
  test   %eax,%eax
  je     L172
  mov    %r12,%rdi
  call   <atof@plt>
  mov    %r13,%rdx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  movsd  %xmm0,0x0(%rbp)
  call   <nexttoken@plt>
  test   %eax,%eax
  je     L172
  mov    %r13,%rdx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <nexttoken@plt>
  test   %eax,%eax
  je     L172
  mov    %r13,%rdx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <nexttoken@plt>
  test   %eax,%eax
  je     L172
  mov    %r13,%rdx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <nexttoken@plt>
  test   %eax,%eax
  je     L172
  mov    %r12,%rdi
  call   <strlen@plt>
  cmp    $0x5,%eax
  jle    L172
  mov    %r12,%rdi
  call   <strlen@plt>
  cmp    $0xa,%eax
  jg     L172
  lea    0x260(%rsp),%rbp
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  mov    %r13,%rdx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <nexttoken@plt>
  test   %eax,%eax
  je     L172
  mov    %r12,%rdi
  call   <strlen@plt>
  cmp    $0x2,%eax
  jle    L172
  lea    D12(%rip),%rsi
  mov    %r12,%rdi
  call   <in_string@plt>
  test   %rax,%rax
  js     L172
  lea    D3(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  lea    0x40(%rsp),%rdi
  mov    %rbp,%rsi
  call   <structtm_from_datetime@plt>
  mov    0x40(%rsp),%eax
  mov    %r13,%rdx
  mov    %rbx,%rsi
  mov    0x10(%rsp),%rcx
  mov    %r12,%rdi
  add    $0x76c,%eax
  mov    %eax,(%rcx)
  mov    0x44(%rsp),%eax
  mov    (%rsp),%rcx
  add    $0x1,%eax
  mov    %eax,(%rcx)
  mov    0x48(%rsp),%eax
  mov    0x8(%rsp),%rcx
  mov    %eax,(%rcx)
  mov    0x4c(%rsp),%eax
  mov    0x18(%rsp),%rcx
  mov    %eax,(%rcx)
  mov    0x50(%rsp),%eax
  mov    0x20(%rsp),%rcx
  mov    %eax,(%rcx)
  mov    0x54(%rsp),%eax
  mov    0x28(%rsp),%rcx
  mov    %eax,(%rcx)
  call   <nexttoken@plt>
  test   %eax,%eax
  je     L172
  movslq 0x3c(%rsp),%rdi
  add    %rbx,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jle    L172
  movslq 0x3c(%rsp),%rax
  mov    %r15,%rdi
  lea    (%rbx,%rax,1),%rsi
  call   <strcpy@plt>
  mov    %r15,%rdi
  call   <strlen@plt>
  cltq
  movsbl -0x1(%r15,%rax,1),%edi
  call   <wfile_eitherslash@plt>
  test   %rax,%rax
  je     L159
  cmpl   $0x0,0x4d0(%rsp)
  je     L172
  orl    $0x2,(%r14)
  xor    %esi,%esi
  mov    %r15,%rdi
  call   <wfile_noslash@plt>
  or     $0xffffffff,%eax
  jmp    L80
L170:
  call   <__stack_chk_fail@plt>
L159:
  or     $0xffffffff,%eax
  jmp    L80
```

tool_calls: name: parse_data
arguments: data_tag: D12
type_infered: string
name: parse_data
arguments: data_tag: D3
type_infered: string

tool: D12: :

tool: D3:  

assistant: ```c
int parse_zipline(char *buf, double *size, int *month, int *day, int *year, int *hour, int *minute, int *second, int *attr, char *filename, int dirstoo) {
  char tbuf[512];
  char dbuf[512];
  int i;
  struct tm date;
  i = 0;
  (*attr) = 0;
  if (!nexttoken(tbuf, buf, &i))
    return (0);
  if (!is_a_number(tbuf))
    return (0);
  (*size) = atof(tbuf);
  if (!nexttoken(tbuf, buf, &i) || !nexttoken(tbuf, buf, &i) || !nexttoken(tbuf, buf, &i) || !nexttoken(tbuf, buf, &i))
    return (0);
  if (strlen(tbuf) < 6 || strlen(tbuf) > 10)
    return (0);
  strcpy(dbuf, tbuf);
  if (!nexttoken(tbuf, buf, &i))
    return (0);
  if (strlen(tbuf) < 3 || in_string(tbuf, ":") < 0)
    return (0);
  strcat(dbuf, " ");
  strcat(dbuf, tbuf);
  structtm_from_datetime(&date, dbuf);
  (*year) = date.tm_year + 1900;
  (*month) = date.tm_mon + 1;
  (*day) = date.tm_mday;
  (*hour) = date.tm_hour;
  (*minute) = date.tm_min;
  (*second) = date.tm_sec;
  if (!nexttoken(tbuf, buf, &i))
    return (0);
  if (strlen(&buf[i]) <= 0)
    return (0);
  strcpy(filename, &buf[i]);
  if (wfile_eitherslash(filename[strlen(filename) - 1])) {
    if (!dirstoo)
      return (0);
    (*attr) |= 0x0002;
    wfile_noslash(filename, NULL);
  }
  return (-1);
}
```