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

```asm
<REQUEST_get_message_header>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  mov    -0x28(%rbp),%rax
  lea    D32(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  jne    L57
  lea    D11(%rip),%rax
  jmp    L45
L57:
  mov    $0x1,%esi
  mov    $0x100,%edi
  call   <calloc@plt>
  mov    %rax,-0x10(%rbp)
  mov    $0x1,%esi
  mov    $0x801,%edi
  call   <calloc@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L97
L71:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  je     L27
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x14(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x10(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x14(%rbp)
  jmp    L3
L27:
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0x1,%eax
  je     L76
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jne    L10
  mov    -0x10(%rbp),%rcx
  mov    -0x8(%rbp),%rax
  mov    $0x800,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  jmp    L53
L10:
  mov    -0x10(%rbp),%rcx
  mov    -0x8(%rbp),%rax
  mov    $0x800,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncat@plt>
L53:
  mov    -0x8(%rbp),%rax
  mov    $0x800,%edx
  lea    D10(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncat@plt>
  mov    -0x10(%rbp),%rax
  mov    $0x100,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  movl   $0x0,-0x14(%rbp)
L3:
  addl   $0x1,-0x18(%rbp)
L97:
  mov    -0x18(%rbp),%eax
  cltq
  cmp    %rax,-0x30(%rbp)
  jg     L71
  jmp    L96
L76:
  nop
L96:
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  movq   $0x0,-0x10(%rbp)
  mov    $0x800,%edx
  mov    $0x0,%esi
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x8(%rbp),%rax
  mov    $0x800,%edx
  mov    %rax,%rsi
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  movq   $0x0,-0x8(%rbp)
  lea    D53(%rip),%rax
L45:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D32
datatype: string
name: extract_symbolic_data
arguments: label: D11
datatype: string
name: extract_symbolic_data
arguments: label: D10
datatype: string

tool: D32: 



tool: 

tool: D10: 


assistant: ```c
char *REQUEST_get_message_header(const char *content_data, long content_length) {
  char *hdr_line;
  char *temp_hdr_result;
  static char hdr_result[2048];
  int i = 0;
  int j = 0;
  if (strstr(content_data, "\r\n\r\n") == NULL) {
    return "";
  }
  hdr_line = (char *)calloc(256, sizeof(char));
  temp_hdr_result = (char *)calloc(2048 + 1, sizeof(char));
  for (i = 0; i < content_length; i++) {
    if (content_data[i] != '\n') {
      hdr_line[j] = content_data[i];
      j++;
    } else {
      if (strlen(hdr_line) == 1) {
        break;
      }
      if (strlen(temp_hdr_result) == 0) {
        strncpy(temp_hdr_result, hdr_line, 2048);
      } else {
        strncat(temp_hdr_result, hdr_line, 2048);
      }
      strncat(temp_hdr_result, "\n", 2048);
      memset(hdr_line, '\0', 256);
      j = 0;
    }
  }
  free(hdr_line);
  hdr_line = NULL;
  memset(hdr_result, '\0', 2048);
  strncpy(hdr_result, temp_hdr_result, 2048);
  free(temp_hdr_result);
  temp_hdr_result = NULL;
  return ((char *)&hdr_result);
}
```