user: 请将以下的汇编代码转换成C语言代码:

```asm
<iso_date>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %esi,-0x7c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x46,%eax
  mov    %eax,-0x58(%rbp)
  mov    -0x78(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x54(%rbp)
  mov    -0x78(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x50(%rbp)
  mov    -0x78(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0x78(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x48(%rbp)
  mov    -0x78(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x44(%rbp)
  cmpl   $0x0,-0x7c(%rbp)
  jne    L8
  mov    -0x78(%rbp),%rax
  add    $0x6,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x68(%rbp)
  jmp    L85
L8:
  movl   $0x0,-0x68(%rbp)
L85:
  cmpl   $0x0,-0x58(%rbp)
  jns    L79
  movl   $0x0,-0x64(%rbp)
  jmp    L49
L79:
  movl   $0x1f,-0x40(%rbp)
  movl   $0x1c,-0x3c(%rbp)
  movl   $0x1f,-0x38(%rbp)
  movl   $0x1e,-0x34(%rbp)
  movl   $0x1f,-0x30(%rbp)
  movl   $0x1e,-0x2c(%rbp)
  movl   $0x1f,-0x28(%rbp)
  movl   $0x1f,-0x24(%rbp)
  movl   $0x1e,-0x20(%rbp)
  movl   $0x1f,-0x1c(%rbp)
  movl   $0x1e,-0x18(%rbp)
  movl   $0x1f,-0x14(%rbp)
  mov    -0x58(%rbp),%eax
  imul   $0x16d,%eax,%eax
  mov    %eax,-0x60(%rbp)
  cmpl   $0x2,-0x58(%rbp)
  jle    L21
  mov    -0x58(%rbp),%eax
  add    $0x1,%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  add    %eax,-0x60(%rbp)
L21:
  movl   $0x1,-0x5c(%rbp)
  jmp    L122
L13:
  mov    -0x5c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%eax
  add    %eax,-0x60(%rbp)
  addl   $0x1,-0x5c(%rbp)
L122:
  mov    -0x5c(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L13
  mov    -0x58(%rbp),%eax
  add    $0x2,%eax
  and    $0x3,%eax
  test   %eax,%eax
  jne    L72
  cmpl   $0x2,-0x54(%rbp)
  jle    L72
  addl   $0x1,-0x60(%rbp)
L72:
  mov    -0x50(%rbp),%eax
  sub    $0x1,%eax
  add    %eax,-0x60(%rbp)
  mov    -0x60(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  shl    $0x3,%eax
  mov    %eax,%edx
  mov    -0x4c(%rbp),%eax
  add    %edx,%eax
  imul   $0x3c,%eax,%edx
  mov    -0x48(%rbp),%eax
  add    %edx,%eax
  imul   $0x3c,%eax,%edx
  mov    -0x44(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x64(%rbp)
  mov    -0x68(%rbp),%eax
  and    $0x80,%eax
  test   %eax,%eax
  je     L20
  orl    $0xffffff00,-0x68(%rbp)
L20:
  cmpl   $0xffffffd0,-0x68(%rbp)
  jl     L49
  cmpl   $0x34,-0x68(%rbp)
  jg     L49
  mov    -0x68(%rbp),%eax
  imul   $0x384,%eax,%eax
  add    %eax,-0x64(%rbp)
L49:
  mov    -0x64(%rbp),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L16
  call   <__stack_chk_fail@plt>
L16:
  leave
  ret
```

assistant: ```c
int iso_date(char *p, int flag) {
  int year, month, day, hour, minute, second, tz;
  int crtime, days, i;
  year = p[0] - 70;
  month = p[1];
  day = p[2];
  hour = p[3];
  minute = p[4];
  second = p[5];
  if (flag == 0)
    tz = p[6];
  else
    tz = 0;
  if (year < 0) {
    crtime = 0;
  } else {
    int monlen[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
    days = year * 365;
    if (year > 2)
      days += (year + 1) / 4;
    for (i = 1; i < month; i++)
      days += monlen[i - 1];
    if (((year + 2) % 4) == 0 && month > 2)
      days++;
    days += day - 1;
    crtime = ((((days * 24) + hour) * 60 + minute) * 60) + second;
    if (tz & 0x80)
      tz |= (-1 << 8);
    if (-48 <= tz && tz <= 52)
      crtime += tz * 15 * 60;
  }
  return crtime;
}
```