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

```asm
<zmime_header_date_decode>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x110,%rsp
  mov    %rdi,-0x108(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0xffffffffffffffff,-0xe0(%rbp)
  lea    -0xc0(%rbp),%rax
  mov    $0x30,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x108(%rbp),%rcx
  lea    -0x90(%rbp),%rax
  mov    $0x7f,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <zstrncpy@plt>
  lea    -0x90(%rbp),%rax
  mov    %rax,%rdi
  call   <ztolower@plt>
  lea    -0x90(%rbp),%rax
  mov    %rax,-0xe8(%rbp)
  jmp    L336
L175:
  addq   $0x1,-0xe8(%rbp)
L336:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L448
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L175
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L175
L448:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L846
  mov    -0xe8(%rbp),%rax
  mov    %rax,-0xd8(%rbp)
  jmp    L449
L239:
  addq   $0x1,-0xe8(%rbp)
L449:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L457
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L239
L457:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L772
  mov    -0xe8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0xe8(%rbp)
  movb   $0x0,(%rax)
  mov    -0xd8(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %rax,-0x98(%rbp)
  jmp    L456
L149:
  addq   $0x1,-0xe8(%rbp)
L456:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L825
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L149
L825:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L605
  mov    -0xe8(%rbp),%rax
  mov    %rax,-0xd8(%rbp)
  jmp    L253
L132:
  addq   $0x1,-0xe8(%rbp)
L253:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L467
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L132
L467:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L223
  mov    -0xe8(%rbp),%rax
  sub    -0xd8(%rbp),%rax
  cmp    $0x3,%rax
  jne    L660
  mov    -0xe8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0xe8(%rbp)
  movb   $0x0,(%rax)
  movl   $0xffffffff,-0xf4(%rbp)
  mov    -0xe8(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0xd0(%rbp)
  mov    -0xe8(%rbp),%rax
  add    $0x2,%rax
  mov    %rax,-0xc8(%rbp)
  mov    -0xd8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x61,%eax
  cmp    $0x12,%eax
  ja     L719
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D4(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D4(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  mov    -0xd0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x70,%al
  jne    L263
  movl   $0x3,-0xf4(%rbp)
  jmp    L719
L263:
  movl   $0x7,-0xf4(%rbp)
  jmp    L719
  movl   $0xb,-0xf4(%rbp)
  jmp    L719
  movl   $0x1,-0xf4(%rbp)
  jmp    L719
  mov    -0xd0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x61,%al
  jne    L227
  movl   $0x0,-0xf4(%rbp)
  jmp    L719
L227:
  mov    -0xc8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x6e,%al
  jne    L624
  movl   $0x5,-0xf4(%rbp)
  jmp    L719
L624:
  movl   $0x6,-0xf4(%rbp)
  jmp    L719
  mov    -0xc8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x72,%al
  jne    L440
  movl   $0x2,-0xf4(%rbp)
  jmp    L719
L440:
  movl   $0x4,-0xf4(%rbp)
  jmp    L719
  movl   $0xa,-0xf4(%rbp)
  jmp    L719
  movl   $0x9,-0xf4(%rbp)
  jmp    L719
  movl   $0x8,-0xf4(%rbp)
  nop
L719:
  cmpl   $0xffffffff,-0xf4(%rbp)
  je     L66
  mov    -0xf4(%rbp),%eax
  mov    %eax,-0xc0(%rbp)
  jmp    L322
L317:
  addq   $0x1,-0xe8(%rbp)
L322:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L57
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L317
L57:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L694
  mov    -0xe8(%rbp),%rax
  mov    %rax,-0xd8(%rbp)
  jmp    L604
L547:
  addq   $0x1,-0xe8(%rbp)
L604:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L713
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L547
L713:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L780
  mov    -0xe8(%rbp),%rax
  sub    -0xd8(%rbp),%rax
  cmp    $0x4,%rax
  jne    L78
  mov    -0xe8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0xe8(%rbp)
  movb   $0x0,(%rax)
  mov    -0xd8(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  sub    $0x76c,%rax
  mov    %rax,-0xa0(%rbp)
  jmp    L647
L538:
  addq   $0x1,-0xe8(%rbp)
L647:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L741
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L538
L741:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L639
  mov    -0xe8(%rbp),%rax
  mov    %rax,-0xd8(%rbp)
  jmp    L455
L637:
  addq   $0x1,-0xe8(%rbp)
L455:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L730
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3a,%al
  jne    L637
L730:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L663
  mov    -0xe8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0xe8(%rbp)
  movb   $0x0,(%rax)
  mov    -0xd8(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %rax,-0xa8(%rbp)
  mov    -0xe8(%rbp),%rax
  mov    %rax,-0xd8(%rbp)
  jmp    L800
L603:
  addq   $0x1,-0xe8(%rbp)
L800:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L252
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3a,%al
  jne    L603
L252:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L418
  mov    -0xe8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0xe8(%rbp)
  movb   $0x0,(%rax)
  mov    -0xd8(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %rax,-0xb0(%rbp)
  mov    -0xe8(%rbp),%rax
  mov    %rax,-0xd8(%rbp)
  jmp    L815
L397:
  addq   $0x1,-0xe8(%rbp)
L815:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L160
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L397
L160:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L738
  mov    -0xe8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0xe8(%rbp)
  movb   $0x0,(%rax)
  mov    -0xd8(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %rax,-0xb8(%rbp)
  jmp    L129
L534:
  addq   $0x1,-0xe8(%rbp)
L129:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L554
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L534
L554:
  mov    -0xe8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L225
  mov    -0xe8(%rbp),%rax
  mov    %rax,-0xd8(%rbp)
  mov    -0xd8(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0x4,%eax
  jle    L770
  mov    -0xd8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L376
  mov    $0xffffffff,%eax
  jmp    L545
L376:
  mov    $0x1,%eax
L545:
  mov    %eax,-0xf0(%rbp)
  addq   $0x1,-0xd8(%rbp)
  mov    -0xd8(%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    -0xd8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %edx,%eax
  mov    %eax,-0xec(%rbp)
  addq   $0x2,-0xd8(%rbp)
  mov    -0xec(%rbp),%eax
  imul   $0x3c,%eax,%ecx
  mov    -0xd8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  lea    -0x30(%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0xd8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %edx,%eax
  mov    %eax,-0xec(%rbp)
  mov    -0xec(%rbp),%eax
  imul   $0x3c,%eax,%eax
  mov    %eax,-0xec(%rbp)
  lea    -0xc0(%rbp),%rax
  mov    %rax,%rdi
  call   <timegm@plt>
  mov    %rax,-0xe0(%rbp)
  cmpq   $0xffffffffffffffff,-0xe0(%rbp)
  je     L27
  mov    -0xf0(%rbp),%eax
  imul   -0xec(%rbp),%eax
  cltq
  sub    %rax,-0xe0(%rbp)
  jmp    L212
L846:
  nop
  jmp    L212
L772:
  nop
  jmp    L212
L605:
  nop
  jmp    L212
L223:
  nop
  jmp    L212
L660:
  nop
  jmp    L212
L66:
  nop
  jmp    L212
L694:
  nop
  jmp    L212
L780:
  nop
  jmp    L212
L78:
  nop
  jmp    L212
L639:
  nop
  jmp    L212
L663:
  nop
  jmp    L212
L418:
  nop
  jmp    L212
L738:
  nop
  jmp    L212
L225:
  nop
  jmp    L212
L770:
  nop
  jmp    L212
L27:
  nop
L212:
  mov    -0xe0(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L550
  call   <__stack_chk_fail@plt>
L550:
  leave
  ret
```

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;
}
```