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

```asm
<send_headers>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xd0,%rsp
  mov    %edi,-0xa4(%rbp)
  mov    %rsi,-0xb0(%rbp)
  mov    %rdx,-0xb8(%rbp)
  mov    %rcx,-0xc0(%rbp)
  mov    %r8d,-0xa8(%rbp)
  mov    %r9d,-0xc4(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0xb0(%rbp),%rdx
  mov    -0xa4(%rbp),%eax
  mov    %rdx,%rcx
  mov    %eax,%edx
  lea    D69(%rip),%rax
  mov    %rax,%rsi
  lea    D126(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D89(%rip),%rax
  mov    %rax,%rsi
  lea    D40(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,-0x94(%rbp)
  lea    -0x94(%rbp),%rax
  mov    %rax,%rdi
  call   <gmtime@plt>
  mov    %eax,%edx
  lea    -0x90(%rbp),%rax
  mov    %edx,%ecx
  lea    D74(%rip),%rdx
  mov    $0x80,%esi
  mov    %rax,%rdi
  call   <strftime@plt>
  lea    -0x90(%rbp),%rax
  mov    %rax,%rsi
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpq   $0x0,-0xb8(%rbp)
  je     L0
  mov    -0xb8(%rbp),%rax
  mov    %rax,%rsi
  lea    D82(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L0:
  cmpq   $0x0,-0xc0(%rbp)
  je     L34
  mov    -0xc0(%rbp),%rax
  mov    %rax,%rsi
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L34:
  cmpl   $0x0,-0xa8(%rbp)
  js     L27
  mov    -0xa8(%rbp),%eax
  mov    %eax,%esi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L27:
  mov    -0xc4(%rbp),%eax
  cmp    $0xffffffff,%eax
  je     L25
  lea    -0xc4(%rbp),%rax
  mov    %rax,%rdi
  call   <gmtime@plt>
  mov    %eax,%edx
  lea    -0x90(%rbp),%rax
  mov    %edx,%ecx
  lea    D74(%rip),%rdx
  mov    $0x80,%esi
  mov    %rax,%rdi
  call   <strftime@plt>
  lea    -0x90(%rbp),%rax
  mov    %rax,%rsi
  lea    D118(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L25:
  cmpl   $0x0,0x10(%rbp)
  jle    L35
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L35:
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L31
  call   <__stack_chk_fail@plt>
L31:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D69
type: string
name: parse_data
arguments: label: D126
type: string
name: parse_data
arguments: label: D89
type: string
name: parse_data
arguments: label: D40
type: string
name: parse_data
arguments: label: D74
type: string
name: parse_data
arguments: label: D65
type: string
name: parse_data
arguments: label: D82
type: string
name: parse_data
arguments: label: D25
type: string
name: parse_data
arguments: label: D28
type: string
name: parse_data
arguments: label: D118
type: string
name: parse_data
arguments: label: D9
type: string
name: parse_data
arguments: label: D31
type: string

tool: D69: HTTP/1.0

tool: D126: %s %d %s


tool: D89: in.www/200809

tool: D40: Server: %s


tool: D74: %a, %d %b %Y %H:%M:%S GMT

tool: D65: Date: %s


tool: D82: %s


tool: D25: Content-Type: %s


tool: D28: Content-Length: %d


tool: D118: Last-Modified: %s


tool: D9: Connection: close

tool: D31: 

assistant: ```c
void send_headers(int status, char *title, char *extra, char *mime, int length, time_t date, int complete) {
  time_t now;
  char timebuf[128];
  printf("%s %d %s\r\n", "HTTP/1.0", status, title);
  printf("Server: %s\r\n", "in.www/200809");
  now = time(NULL);
  strftime(timebuf, sizeof(timebuf), "%a, %d %b %Y %H:%M:%S GMT", gmtime(&now));
  printf("Date: %s\r\n", timebuf);
  if (extra)
    printf("%s\r\n", extra);
  if (mime)
    printf("Content-Type: %s\r\n", mime);
  if (length >= 0)
    printf("Content-Length: %d\r\n", length);
  if (date != -1) {
    strftime(timebuf, sizeof(timebuf), "%a, %d %b %Y %H:%M:%S GMT", gmtime(&date));
    printf("Last-Modified: %s\r\n", timebuf);
  }
  if (complete > 0) {
    printf("Connection: close\r\n");
    printf("\r\n");
  }
}
```