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

```asm
<zmime_header_date_decode>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xc8,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdi
  mov    $0x30,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  lea    0x30(%rsp),%rbp
  mov    $0x7f,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <zstrncpy@plt>
  mov    %rbp,%rdi
  call   <ztolower@plt>
  movzbl 0x30(%rsp),%eax
  lea    -0x30(%rax),%edx
  cmp    $0x9,%dl
  jbe    L56
  test   %al,%al
  je     L56
  mov    %rbp,%rdi
L167:
  add    $0x1,%rdi
  movzbl (%rdi),%eax
  lea    -0x30(%rax),%edx
  cmp    $0x9,%dl
  jbe    L510
  test   %al,%al
  jne    L167
L510:
  test   %al,%al
  je     L205
  movzbl (%rdi),%eax
  test   $0xdf,%al
  je     L630
  mov    %rdi,%rbp
L379:
  add    $0x1,%rbp
  movzbl 0x0(%rbp),%eax
  test   $0xdf,%al
  jne    L379
L146:
  test   %al,%al
  je     L70
  lea    0x1(%rbp),%rbx
  movb   $0x0,0x0(%rbp)
  call   <atoi@plt>
  mov    %rax,0x28(%rsp)
  movzbl 0x1(%rbp),%eax
  cmp    $0x20,%al
  jne    L708
L609:
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  cmp    $0x20,%al
  je     L609
L708:
  test   %al,%al
  je     L438
  testb  $0xdf,(%rbx)
  je     L611
  mov    %rbx,%rax
L656:
  mov    %rax,%rdi
  add    $0x1,%rax
  movzbl (%rax),%edx
  test   $0xdf,%dl
  jne    L656
  test   %dl,%dl
  je     L83
  mov    %rax,%rdx
  sub    %rbx,%rdx
  cmp    $0x3,%rdx
  jne    L359
  add    $0x2,%rdi
  movb   $0x0,(%rax)
  movzbl (%rbx),%edx
  sub    $0x61,%edx
  cmp    $0x12,%dl
  ja     L482
  movzbl %dl,%edx
  lea    D0(%rip),%rcx
  movslq (%rcx,%rdx,4),%rdx
  add    %rcx,%rdx
  notrack jmp *%rdx
L56:
  lea    0x30(%rsp),%rdi
  jmp    L510
L630:
  mov    %rdi,%rbp
  jmp    L146
  mov    $0x9,%edx
  jmp    L40
  cmpb   $0x70,0x2(%rax)
  setne  %dl
  movzbl %dl,%edx
  lea    0x3(,%rdx,4),%edx
L40:
  mov    %edx,(%rsp)
  movzbl 0x1(%rax),%eax
  cmp    $0x20,%al
  jne    L262
L560:
  add    $0x1,%rdi
  movzbl (%rdi),%eax
  cmp    $0x20,%al
  je     L560
L262:
  test   %al,%al
  je     L721
  testb  $0xdf,(%rdi)
  je     L500
  mov    %rdi,%rbx
L574:
  mov    %rbx,%rbp
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  test   $0xdf,%al
  jne    L574
  test   %al,%al
  je     L74
  mov    %rbx,%rax
  sub    %rdi,%rax
  cmp    $0x4,%rax
  jne    L14
  add    $0x2,%rbp
  movb   $0x0,(%rbx)
  call   <atoi@plt>
  sub    $0x76c,%rax
  mov    %rax,0x20(%rsp)
  movzbl 0x1(%rbx),%eax
  cmp    $0x20,%al
  jne    L319
L686:
  add    $0x1,%rbp
  movzbl 0x0(%rbp),%eax
  cmp    $0x20,%al
  je     L686
L319:
  test   %al,%al
  je     L360
  movzbl 0x0(%rbp),%eax
  test   %al,%al
  je     L530
  cmp    $0x3a,%al
  je     L530
  mov    %rbp,%rbx
L354:
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  test   %al,%al
  je     L475
  cmp    $0x3a,%al
  jne    L354
L475:
  test   %al,%al
  je     L181
  lea    0x1(%rbx),%r12
  movb   $0x0,(%rbx)
  mov    %rbp,%rdi
  call   <atoi@plt>
  mov    %rax,0x18(%rsp)
  movzbl 0x1(%rbx),%eax
  test   %al,%al
  je     L503
  cmp    $0x3a,%al
  je     L503
  mov    %r12,%rbx
L623:
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  test   %al,%al
  je     L308
  cmp    $0x3a,%al
  jne    L623
L308:
  test   %al,%al
  je     L702
  lea    0x1(%rbx),%r13
  movb   $0x0,(%rbx)
  mov    %r12,%rdi
  call   <atoi@plt>
  mov    %rax,0x10(%rsp)
  movzbl 0x1(%rbx),%eax
  test   $0xdf,%al
  je     L639
  mov    %r13,%rbx
L294:
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  test   $0xdf,%al
  jne    L294
L142:
  test   %al,%al
  je     L744
  lea    0x1(%rbx),%rbp
  movb   $0x0,(%rbx)
  mov    %r13,%rdi
  call   <atoi@plt>
  mov    %rax,0x8(%rsp)
  movzbl 0x1(%rbx),%eax
  cmp    $0x20,%al
  jne    L88
L646:
  add    $0x1,%rbp
  movzbl 0x0(%rbp),%eax
  cmp    $0x20,%al
  je     L646
L88:
  test   %al,%al
  je     L533
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    $0x4,%eax
  jle    L605
  cmpb   $0x2d,0x0(%rbp)
  setne  %bl
  movzbl %bl,%ebx
  lea    -0x1(%rbx,%rbx,1),%ebx
  movsbl 0x1(%rbp),%eax
  lea    -0xf0(%rax,%rax,4),%edx
  movsbl 0x2(%rbp),%eax
  lea    -0x30(%rax,%rdx,2),%eax
  imul   $0x3c,%eax,%eax
  movsbl 0x3(%rbp),%edx
  lea    -0xf0(%rdx,%rdx,4),%edx
  lea    (%rax,%rdx,2),%edx
  movsbl 0x4(%rbp),%eax
  lea    -0x30(%rdx,%rax,1),%ebp
  mov    %rsp,%rdi
  call   <timegm@plt>
  cmp    $0xffffffffffffffff,%rax
  je     L423
  imul   %ebp,%ebx
  imul   $0x3c,%ebx,%edx
  movslq %edx,%rdx
  sub    %rdx,%rax
L423:
  mov    0xb8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L17
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  mov    $0x0,%edx
  cmpb   $0x61,0x2(%rax)
  je     L40
  cmpb   $0x6e,0x3(%rax)
  setne  %dl
  movzbl %dl,%edx
  add    $0x5,%edx
  jmp    L40
  cmpb   $0x72,0x3(%rax)
  setne  %dl
  movzbl %dl,%edx
  lea    0x2(%rdx,%rdx,1),%edx
  jmp    L40
  mov    $0xa,%edx
  jmp    L40
  mov    $0x1,%edx
  jmp    L40
  mov    $0xb,%edx
  jmp    L40
  mov    $0x8,%edx
  jmp    L40
L530:
  mov    %rbp,%rbx
  jmp    L475
L503:
  mov    %r12,%rbx
  jmp    L308
L639:
  mov    %r13,%rbx
  jmp    L142
L205:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L70:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L438:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L611:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L83:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L359:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L482:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L721:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L500:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L74:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L14:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L360:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L181:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L702:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L744:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L533:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L605:
  mov    $0xffffffffffffffff,%rax
  jmp    L423
L17:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
long zmime_header_date_decode(const char *str) {
  char str_copy[128];
  char *ps, *p, *p2, *p3;
  int v, sign, offset;
  struct tm tm;
  long result = -1;
  memset(&tm, 0, sizeof(struct tm));
  zstrncpy(str_copy, str, 127);
  ztolower(str_copy);
  p = str_copy;
  {
    while ((*p) && ((*p < '0') || (*p > '9')))
      p++;
  };
  {
    if (!*p)
      goto err;
  };
  ps = p;
  {
    while ((*p) && (*p != ' '))
      p++;
  };
  {
    if (!*p)
      goto err;
  };
  *(p++) = 0;
  tm.tm_mday = atoi(ps);
  {
    while ((*p) && (*p == ' '))
      p++;
  };
  {
    if (!*p)
      goto err;
  };
  ps = p;
  {
    while ((*p) && (*p != ' '))
      p++;
  };
  {
    if (!*p)
      goto err;
  };
  if (p - ps != 3) {
    goto err;
  }
  *(p++) = 0;
  v = -1;
  p2 = p + 1;
  p3 = p + 2;
  switch (*ps) {
  case 'a':
    if (*p2 == 'p') {
      v = 3;
    } else {
      v = 7;
    }
    break;
  case 'd':
    v = 11;
    break;
  case 'f':
    v = 1;
    break;
  case 'j':
    if (*p2 == 'a') {
      v = 0;
    } else if (*p3 == 'n') {
      v = 5;
    } else {
      v = 6;
    }
    break;
  case 'm':
    if (*p3 == 'r') {
      v = 2;
    } else {
      v = 4;
    }
    break;
  case 'n':
    v = 10;
    break;
  case 'o':
    v = 9;
    break;
  case 's':
    v = 8;
    break;
  }
  if (v == -1) {
    goto err;
  }
  tm.tm_mon = v;
  {
    while ((*p) && (*p == ' '))
      p++;
  };
  {
    if (!*p)
      goto err;
  };
  ps = p;
  {
    while ((*p) && (*p != ' '))
      p++;
  };
  {
    if (!*p)
      goto err;
  };
  if (p - ps != 4) {
    goto err;
  }
  *(p++) = 0;
  tm.tm_year = atoi(ps) - 1900;
  {
    while ((*p) && (*p == ' '))
      p++;
  };
  {
    if (!*p)
      goto err;
  };
  ps = p;
  {
    while ((*p) && (*p != ':'))
      p++;
  };
  {
    if (!*p)
      goto err;
  };
  *(p++) = 0;
  tm.tm_hour = atoi(ps);
  ps = p;
  {
    while ((*p) && (*p != ':'))
      p++;
  };
  {
    if (!*p)
      goto err;
  };
  *(p++) = 0;
  tm.tm_min = atoi(ps);
  ps = p;
  {
    while ((*p) && (*p != ' '))
      p++;
  };
  {
    if (!*p)
      goto err;
  };
  *(p++) = 0;
  tm.tm_sec = atoi(ps);
  {
    while ((*p) && (*p == ' '))
      p++;
  };
  {
    if (!*p)
      goto err;
  };
  ps = p;
  if (strlen(ps) < 5) {
    goto err;
  }
  sign = (ps[0] == '-') ? -1 : 1;
  ps++;
  offset = (ps[0] - '0') * 10 + (ps[1] - '0');
  ps += 2;
  offset = offset * 60 + (ps[0] - '0') * 10 + (ps[1] - '0');
  offset *= 60;
  result = timegm(&tm);
  if (result == -1) {
    goto err;
  }
  result = result - sign * offset;
err:
  return result;
}
```