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

```asm
<time_rfc1123>:
  endbr64
  push   %r12
  lea    D115(%rip),%rcx
  lea    D23(%rip),%rdx
  push   %rbx
  movq   %rcx,%xmm0
  lea    D8(%rip),%rcx
  lea    D84(%rip),%rbx
  lea    D93(%rip),%rsi
  sub    $0xc8,%rsp
  mov    %edi,0xc(%rsp)
  mov    $0x1e,%edi
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  lea    D192(%rip),%rax
  movq   %rax,%xmm1
  lea    D96(%rip),%rax
  punpcklqdq %xmm1,%xmm0
  movq   %rax,%xmm2
  lea    D88(%rip),%rax
  movaps %xmm0,0x10(%rsp)
  movq   %rcx,%xmm0
  movq   %rax,%xmm3
  lea    D83(%rip),%rax
  punpcklqdq %xmm2,%xmm0
  mov    %rax,0x40(%rsp)
  lea    D19(%rip),%rax
  lea    D50(%rip),%rcx
  movaps %xmm0,0x20(%rsp)
  movq   %rbx,%xmm0
  movq   %rax,%xmm4
  lea    D190(%rip),%rax
  punpcklqdq %xmm3,%xmm0
  movq   %rax,%xmm5
  lea    D53(%rip),%rbx
  movaps %xmm0,0x30(%rsp)
  movq   %rdx,%xmm0
  lea    D196(%rip),%rax
  lea    D193(%rip),%rdx
  punpcklqdq %xmm4,%xmm0
  movq   %rax,%xmm6
  lea    D47(%rip),%rax
  movaps %xmm0,0x50(%rsp)
  movq   %rcx,%xmm0
  movq   %rax,%xmm7
  lea    D75(%rip),%rcx
  punpcklqdq %xmm5,%xmm0
  lea    D191(%rip),%rax
  movaps %xmm0,0x60(%rsp)
  movq   %rbx,%xmm0
  movq   %rax,%xmm1
  lea    D181(%rip),%rax
  punpcklqdq %xmm6,%xmm0
  movq   %rax,%xmm2
  movaps %xmm0,0x70(%rsp)
  movq   %rdx,%xmm0
  punpcklqdq %xmm7,%xmm0
  movaps %xmm0,0x80(%rsp)
  movq   %rcx,%xmm0
  punpcklqdq %xmm1,%xmm0
  movaps %xmm0,0x90(%rsp)
  movq   %rsi,%xmm0
  punpcklqdq %xmm2,%xmm0
  movaps %xmm0,0xa0(%rsp)
  call   <malloc@plt>
  lea    0xc(%rsp),%rdi
  mov    %rax,%r12
  call   <gmtime@plt>
  lea    D139(%rip),%rdx
  mov    $0x1e,%esi
  mov    %r12,%rdi
  mov    %rax,%rbx
  mov    %rax,%rcx
  call   <strftime@plt>
  mov    (%rbx),%rax
  mov    $0x3,%edx
  mov    %r12,%rdi
  mov    0x10(%rsp,%rax,8),%rsi
  call   <memcpy@plt>
  mov    0x8(%rbx),%rax
  lea    0x8(%r12),%rdi
  mov    $0x3,%edx
  mov    0x50(%rsp,%rax,8),%rsi
  call   <memcpy@plt>
  movb   $0x0,0x1d(%r12)
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L8
  add    $0xc8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %r12
  ret
L8:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D115
type_guessed: string
name: disassemble_data
arguments: data_tag: D23
type_guessed: string
name: disassemble_data
arguments: data_tag: D8
type_guessed: string
name: disassemble_data
arguments: data_tag: D84
type_guessed: string
name: disassemble_data
arguments: data_tag: D93
type_guessed: string
name: disassemble_data
arguments: data_tag: D192
type_guessed: string
name: disassemble_data
arguments: data_tag: D96
type_guessed: string
name: disassemble_data
arguments: data_tag: D88
type_guessed: string
name: disassemble_data
arguments: data_tag: D83
type_guessed: string
name: disassemble_data
arguments: data_tag: D19
type_guessed: string
name: disassemble_data
arguments: data_tag: D50
type_guessed: string
name: disassemble_data
arguments: data_tag: D190
type_guessed: string
name: disassemble_data
arguments: data_tag: D53
type_guessed: string
name: disassemble_data
arguments: data_tag: D196
type_guessed: string
name: disassemble_data
arguments: data_tag: D193
type_guessed: string
name: disassemble_data
arguments: data_tag: D47
type_guessed: string
name: disassemble_data
arguments: data_tag: D75
type_guessed: string
name: disassemble_data
arguments: data_tag: D191
type_guessed: string
name: disassemble_data
arguments: data_tag: D181
type_guessed: string
name: disassemble_data
arguments: data_tag: D139
type_guessed: string

tool: D115: Sun

tool: D23: Jan

tool: D8: Tue

tool: D84: Thu

tool: D93: Nov

tool: D192: Mon

tool: D96: Wed

tool: D88: Fri

tool: D83: Sat

tool: D19: Feb

tool: D50: Mar

tool: D190: Apr

tool: D53: May

tool: D196: Jun

tool: D193: Jul

tool: D47: Aug

tool: D75: Sep

tool: D191: Oct

tool: D181: Dec

tool: D139: ---, %d --- %Y %H:%M:%S GMT

assistant: ```c
char *time_rfc1123(time_t t) {
  char *days_names[] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
  char *month_names[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
  const int date_len = 29;
  struct tm *tmp;
  char *outstr = malloc(date_len + 1);
  tmp = gmtime(&t);
  strftime(outstr, date_len + 1, "---, %d --- %Y %H:%M:%S GMT", tmp);
  memcpy(outstr, days_names[tmp->tm_wday], 3);
  memcpy(outstr + 8, month_names[tmp->tm_mon], 3);
  outstr[date_len] = '\0';
  return outstr;
}
```