user: What is the c source code of the assembly code below?

```asm
<send_headers>:
  endbr64
  push   %r15
  lea    D10(%rip),%r15
  push   %r14
  push   %r13
  mov    %r8d,%r13d
  push   %r12
  mov    %rdx,%r12
  mov    %edi,%edx
  lea    D54(%rip),%rdi
  push   %rbp
  mov    %rcx,%rbp
  mov    %rsi,%rcx
  lea    D39(%rip),%rsi
  sub    $0xb0,%rsp
  mov    %r9d,0xc(%rsp)
  lea    0x20(%rsp),%r14
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    D20(%rip),%rsi
  lea    D111(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %edi,%edi
  call   <time@plt>
  lea    0x1c(%rsp),%rdi
  mov    %eax,0x1c(%rsp)
  call   <gmtime@plt>
  mov    $0x80,%esi
  mov    %r14,%rdi
  mov    %r15,%rdx
  mov    %eax,%ecx
  call   <strftime@plt>
  xor    %eax,%eax
  mov    %r14,%rsi
  lea    D64(%rip),%rdi
  call   <printf@plt>
  test   %r12,%r12
  je     L32
  mov    %r12,%rsi
  lea    D17(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L32:
  test   %rbp,%rbp
  je     L43
  mov    %rbp,%rsi
  lea    D116(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L43:
  test   %r13d,%r13d
  js     L9
  mov    %r13d,%esi
  lea    D105(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L9:
  cmpl   $0xffffffff,0xc(%rsp)
  je     L40
  lea    0xc(%rsp),%rdi
  call   <gmtime@plt>
  mov    $0x80,%esi
  mov    %r14,%rdi
  mov    %r15,%rdx
  mov    %eax,%ecx
  call   <strftime@plt>
  mov    %r14,%rsi
  lea    D45(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L40:
  mov    0xe0(%rsp),%eax
  test   %eax,%eax
  jle    L58
  lea    D9(%rip),%rdi
  call   <puts@plt>
  lea    D106(%rip),%rdi
  call   <puts@plt>
L58:
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  add    $0xb0,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D10
data_type: string
name: retrieve_data
arguments: label: D54
data_type: string
name: retrieve_data
arguments: label: D39
data_type: string
name: retrieve_data
arguments: label: D20
data_type: string
name: retrieve_data
arguments: label: D111
data_type: string
name: retrieve_data
arguments: label: D64
data_type: string
name: retrieve_data
arguments: label: D17
data_type: string
name: retrieve_data
arguments: label: D116
data_type: string
name: retrieve_data
arguments: label: D105
data_type: string
name: retrieve_data
arguments: label: D45
data_type: string
name: retrieve_data
arguments: label: D9
data_type: string
name: retrieve_data
arguments: label: D106
data_type: string

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

tool: D54: %s %d %s


tool: D39: HTTP/1.0

tool: D20: in.www/200809

tool: D111: Server: %s


tool: D64: Date: %s


tool: D17: %s


tool: D116: Content-Type: %s


tool: D105: Content-Length: %d


tool: D45: Last-Modified: %s


tool: D9: Connection: close

tool: D106: 

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