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

```asm
<smellslike_httprequest>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L76
L204:
  addl   $0x1,-0xc(%rbp)
L76:
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jae    L178
  mov    -0xc(%rbp),%edx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L204
L178:
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  jmp    L42
L167:
  addl   $0x1,-0xc(%rbp)
L42:
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jae    L171
  mov    -0xc(%rbp),%edx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L167
L171:
  cmpl   $0xa,-0xc(%rbp)
  jbe    L196
  mov    $0x0,%eax
  jmp    L24
L38:
  addl   $0x1,-0xc(%rbp)
L196:
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jae    L1
  mov    -0xc(%rbp),%edx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L38
L1:
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  jmp    L250
L62:
  addl   $0x1,-0xc(%rbp)
L250:
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jae    L256
  mov    -0xc(%rbp),%edx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L62
L256:
  cmpl   $0x0,-0xc(%rbp)
  je     L180
  mov    -0xc(%rbp),%edx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L180
  subl   $0x1,-0xc(%rbp)
  cmpl   $0x0,-0xc(%rbp)
  je     L241
  mov    -0xc(%rbp),%edx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0xd,%al
  jne    L241
  subl   $0x1,-0xc(%rbp)
L241:
  cmpl   $0xa,-0xc(%rbp)
  jbe    L155
  mov    -0xc(%rbp),%eax
  sub    $0x7,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    $0x8,%edx
  lea    D1(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memicmp@plt>
  test   %rax,%rax
  jne    L155
  mov    $0x1,%eax
  jmp    L24
L155:
  cmpl   $0xa,-0xc(%rbp)
  jbe    L72
  mov    -0xc(%rbp),%eax
  sub    $0x7,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    $0x8,%edx
  lea    D9(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memicmp@plt>
  test   %rax,%rax
  jne    L72
  mov    $0x1,%eax
  jmp    L24
L72:
  cmpl   $0xa,-0xc(%rbp)
  jbe    L180
  mov    -0xc(%rbp),%eax
  sub    $0x7,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    $0x8,%edx
  lea    D2(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memicmp@plt>
  test   %rax,%rax
  jne    L180
  mov    $0x1,%eax
  jmp    L24
L180:
  mov    $0x0,%eax
L24:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D1
datatype: string
name: unpack_data
arguments: data_tag: D9
datatype: string
name: unpack_data
arguments: data_tag: D2
datatype: string

tool: D1: HTTP/1.0

tool: D9: HTTP/1.1

tool: D2: HTTP/0.9

assistant: ```c
int smellslike_httprequest(const unsigned char *data, unsigned length) {
  unsigned i;
  unsigned method;
  unsigned url;
  for (i = 0; i < length && isspace(data[i]); i++)
    ;
  method = i;
  while (i < length && !isspace(data[i]))
    i++;
  if (i > 10)
    return 0;
  while (i < length && isspace(data[i]))
    i++;
  url = i;
  while (i < length && data[i] != '\n')
    i++;
  if (i > 0 && data[i] == '\n') {
    i--;
    if (i > 0 && data[i] == '\r')
      i--;
    if (i > 10 && memicmp(&data[i - 7], "HTTP/1.0", 8) == 0)
      return 1;
    if (i > 10 && memicmp(&data[i - 7], "HTTP/1.1", 8) == 0)
      return 1;
    if (i > 10 && memicmp(&data[i - 7], "HTTP/0.9", 8) == 0)
      return 1;
  }
  return 0;
}
```