user: Translate the below assembly code into C programming language:

```asm
<send_headers>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb8,%rsp
  mov    %rdx,%rbp
  mov    %rcx,%rbx
  mov    %r8d,%r12d
  mov    %r9d,0xc(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  mov    %rsi,%rcx
  mov    %edi,%edx
  lea    D34(%rip),%rsi
  lea    D60(%rip),%rdi
  call   <printf@plt>
  lea    D9(%rip),%rsi
  lea    D68(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,0x1c(%rsp)
  lea    0x1c(%rsp),%rdi
  call   <gmtime@plt>
  mov    %eax,%ecx
  lea    0x20(%rsp),%r13
  lea    D30(%rip),%rdx
  mov    $0x80,%esi
  mov    %r13,%rdi
  call   <strftime@plt>
  mov    %r13,%rsi
  lea    D3(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  test   %rbp,%rbp
  je     L77
  mov    %rbp,%rsi
  lea    D92(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L77:
  test   %rbx,%rbx
  je     L72
  mov    %rbx,%rsi
  lea    D114(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L72:
  test   %r12d,%r12d
  jns    L17
L14:
  cmpl   $0xffffffff,0xc(%rsp)
  jne    L4
L60:
  cmpl   $0x0,0xe0(%rsp)
  jg     L43
L9:
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L13
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L17:
  mov    %r12d,%esi
  lea    D69(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L14
L4:
  lea    0xc(%rsp),%rdi
  call   <gmtime@plt>
  mov    %eax,%ecx
  lea    0x20(%rsp),%rbx
  lea    D30(%rip),%rdx
  mov    $0x80,%esi
  mov    %rbx,%rdi
  call   <strftime@plt>
  mov    %rbx,%rsi
  lea    D101(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L60
L43:
  lea    D39(%rip),%rdi
  call   <puts@plt>
  lea    D43(%rip),%rdi
  call   <puts@plt>
  jmp    L9
L13:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D34
data_type: string
name: parse_data
arguments: label: D60
data_type: string
name: parse_data
arguments: label: D9
data_type: string
name: parse_data
arguments: label: D68
data_type: string
name: parse_data
arguments: label: D30
data_type: string
name: parse_data
arguments: label: D3
data_type: string
name: parse_data
arguments: label: D92
data_type: string
name: parse_data
arguments: label: D114
data_type: string
name: parse_data
arguments: label: D69
data_type: string
name: parse_data
arguments: label: D101
data_type: string
name: parse_data
arguments: label: D39
data_type: string
name: parse_data
arguments: label: D43
data_type: string

tool: D34: HTTP/1.0

tool: D60: %s %d %s


tool: D9: in.www/200809

tool: D68: Server: %s


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

tool: D3: Date: %s


tool: D92: %s


tool: D114: Content-Type: %s


tool: D69: Content-Length: %d


tool: D101: Last-Modified: %s


tool: D39: Connection: close

tool: D43: 

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