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

```asm
<fmt_httpdate>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rdi
  call   <gmtime@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  jne    L1
  mov    $0x1d,%eax
  jmp    L14
L1:
  mov    -0x10(%rbp),%rax
  mov    (%rax),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    D89(%rip),%rdx
  add    %rax,%rdx
  mov    -0x18(%rbp),%rax
  mov    $0x3,%esi
  mov    %rax,%rdi
  call   <byte_copy@plt>
  movq   $0x3,-0x8(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  lea    D30(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fmt_str@plt>
  add    %rax,-0x8(%rbp)
  mov    -0x10(%rbp),%rax
  mov    0x4(%rax),%eax
  mov    -0x18(%rbp),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <fmt_2digits@plt>
  add    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  lea    D6(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fmt_str@plt>
  add    %rax,-0x8(%rbp)
  mov    -0x10(%rbp),%rax
  mov    0x8(%rax),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    D65(%rip),%rdx
  add    %rax,%rdx
  mov    -0x18(%rbp),%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  mov    $0x3,%esi
  mov    %rax,%rdi
  call   <byte_copy@plt>
  addq   $0x3,-0x8(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  lea    D6(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fmt_str@plt>
  add    %rax,-0x8(%rbp)
  mov    -0x10(%rbp),%rax
  mov    0xc(%rax),%eax
  add    $0x76c,%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  sub    %eax,%edx
  mov    -0x18(%rbp),%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <fmt_2digits@plt>
  add    %rax,-0x8(%rbp)
  mov    -0x10(%rbp),%rax
  mov    0xc(%rax),%eax
  lea    0x76c(%rax),%edx
  movslq %edx,%rax
  imul   $0x51eb851f,%rax,%rax
  shr    $0x20,%rax
  sar    $0x5,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  imul   $0x64,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    -0x18(%rbp),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <fmt_2digits@plt>
  add    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  lea    D6(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fmt_str@plt>
  add    %rax,-0x8(%rbp)
  mov    -0x10(%rbp),%rax
  mov    0x10(%rax),%eax
  mov    -0x18(%rbp),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <fmt_2digits@plt>
  add    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  lea    D26(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fmt_str@plt>
  add    %rax,-0x8(%rbp)
  mov    -0x10(%rbp),%rax
  mov    0x14(%rax),%eax
  mov    -0x18(%rbp),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <fmt_2digits@plt>
  add    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  lea    D26(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fmt_str@plt>
  add    %rax,-0x8(%rbp)
  mov    -0x10(%rbp),%rax
  mov    0x18(%rax),%eax
  mov    -0x18(%rbp),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <fmt_2digits@plt>
  add    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  lea    D73(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fmt_str@plt>
  add    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
L14:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D89
data_type: string
name: parse_data
arguments: label: D30
data_type: string
name: parse_data
arguments: label: D6
data_type: string
name: parse_data
arguments: label: D65
data_type: string
name: parse_data
arguments: label: D26
data_type: string
name: parse_data
arguments: label: D73
data_type: string

tool: D89: SunMonTueWedThuFriSat

tool: D30: , 

tool: D6:  

tool: D65: JanFebMarAprMayJunJulAugSepOctNovDec

tool: D26: :

tool: D73:  GMT

assistant: ```c
size_t fmt_httpdate(char *dest, time_t t) {
  static const char days[] = "SunMonTueWedThuFriSat";
  static const char months[] = "JanFebMarAprMayJunJulAugSepOctNovDec";
  struct tm *x = gmtime(&t);
  size_t i;
  if (dest == 0)
    return 29;
  byte_copy(dest, 3, days + 3 * x->tm_wday);
  i = 3;
  i += fmt_str(dest + i, ", ");
  i += fmt_2digits(dest + i, x->tm_mday);
  i += fmt_str(dest + i, " ");
  byte_copy(dest + i, 3, months + 3 * x->tm_mon);
  i += 3;
  i += fmt_str(dest + i, " ");
  i += fmt_2digits(dest + i, (x->tm_year + 1900) / 100);
  i += fmt_2digits(dest + i, (x->tm_year + 1900) % 100);
  i += fmt_str(dest + i, " ");
  i += fmt_2digits(dest + i, x->tm_hour);
  i += fmt_str(dest + i, ":");
  i += fmt_2digits(dest + i, x->tm_min);
  i += fmt_str(dest + i, ":");
  i += fmt_2digits(dest + i, x->tm_sec);
  i += fmt_str(dest + i, " GMT");
  return i;
}
```