user: What would the C source look like for the assembly code provided here:

```asm
<build_chunked_response>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    -0x24(%rbp),%eax
  lea    0x100(%rax),%edx
  mov    -0x24(%rbp),%eax
  sar    $0x4,%eax
  add    %edx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x14(%rbp),%ecx
  mov    -0x10(%rbp),%rax
  lea    D12(%rip),%rdx
  mov    %ecx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  mov    -0x30(%rbp),%rdx
  mov    %eax,(%rdx)
  mov    -0x24(%rbp),%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x24(%rbp),%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <build_content@plt>
  movl   $0x0,-0x1c(%rbp)
  jmp    L0
L10:
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x5254e78f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x6,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0xc7,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  lea    0x1(%rdx),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0x24(%rbp)
  jge    L28
  mov    -0x24(%rbp),%eax
  sub    -0x1c(%rbp),%eax
  mov    %eax,-0x18(%rbp)
L28:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x14(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,%esi
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x18(%rbp),%eax
  mov    %eax,%ecx
  lea    D6(%rip),%rax
  mov    %rax,%rdx
  mov    $0x0,%eax
  call   <snprintf@plt>
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x18(%rbp),%eax
  mov    %eax,%edx
  mov    %rcx,%rdi
  call   <memcpy@plt>
  mov    -0x30(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x18(%rbp),%eax
  add    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x18(%rbp),%eax
  add    %eax,-0x1c(%rbp)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%ecx
  mov    -0x30(%rbp),%rdx
  mov    %ecx,(%rdx)
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movb   $0xd,(%rax)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%ecx
  mov    -0x30(%rbp),%rdx
  mov    %ecx,(%rdx)
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movb   $0xa,(%rax)
L0:
  mov    -0x1c(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L10
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    $0x3,%edx
  lea    D35(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  lea    0x3(%rax),%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  mov    -0x24(%rbp),%ecx
  mov    -0x14(%rbp),%edx
  mov    %eax,%esi
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x10(%rbp),%rax
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D12
type_infered: string
name: disassemble_data
arguments: data_tag: D6
type_infered: string
name: disassemble_data
arguments: data_tag: D35
type_infered: string
name: disassemble_data
arguments: data_tag: D16
type_infered: string

tool: D12: HTTP/1.1 200 OK
Content-Type: text/plain
Transfer-Encoding: chunked



tool: D6: %x


tool: D35: 0


tool: D16: resp_length=%d buffer_length=%d content_length=%d


assistant: ```c
char *build_chunked_response(int content_length, int *response_len) {
  char *response_buffer;
  char *content_buffer;
  int buffer_length;
  int i, n;
  buffer_length = 256 + content_length + (content_length >> 4);
  response_buffer = malloc(buffer_length);
  *response_len = snprintf(response_buffer, buffer_length,
                           "HTTP/1.1 200 OK\r\n"
                           "Content-Type: text/plain\r\n"
                           "Transfer-Encoding: chunked\r\n"
                           "\r\n");
  content_buffer = malloc(content_length);
  build_content(content_buffer, content_length);
  i = 0;
  while (i < content_length) {
    n = (rand() % 199) + 1;
    if (i + n > content_length) {
      n = content_length - i;
    }
    *response_len += snprintf(response_buffer + *response_len, buffer_length - *response_len, "%x\r\n", n);
    memcpy(response_buffer + *response_len, content_buffer + i, n);
    *response_len += n;
    i += n;
    response_buffer[(*response_len)++] = '\r';
    response_buffer[(*response_len)++] = '\n';
  }
  memcpy(response_buffer + *response_len, "0\r\n", 3);
  *response_len += 3;
  free(content_buffer);
  printf("resp_length=%d buffer_length=%d content_length=%d\n", *response_len, buffer_length, content_length);
  return response_buffer;
}
```