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

```asm
<find_http_req>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  cmpq   $0x27,-0x30(%rbp)
  ja     L87
  mov    -0x28(%rbp),%rax
  jmp    L203
L87:
  mov    -0x30(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  mov    $0x4,%ecx
  lea    D32(%rip),%rdx
  mov    %rax,%rdi
  call   <memstr@plt>
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  jne    L194
  mov    -0x30(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  mov    $0x5,%ecx
  lea    D26(%rip),%rdx
  mov    %rax,%rdi
  call   <memstr@plt>
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  jne    L194
  mov    -0x30(%rbp),%rax
  lea    -0x4(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  jmp    L203
L194:
  mov    -0x20(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    -0x28(%rbp),%rax
  sub    %rdx,%rax
  mov    %rax,%rdx
  mov    -0x30(%rbp),%rax
  sub    %rdx,%rax
  mov    %rax,%rsi
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  mov    $0x2,%ecx
  lea    D66(%rip),%rdx
  mov    %rax,%rdi
  call   <memstr@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  jne    L21
  mov    -0x20(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    -0x28(%rbp),%rax
  sub    %rdx,%rax
  mov    %rax,%rdx
  mov    -0x30(%rbp),%rax
  sub    %rdx,%rax
  cmp    $0x4000,%rax
  jbe    L186
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  jmp    L203
L186:
  mov    -0x20(%rbp),%rax
  jmp    L203
L21:
  mov    -0x20(%rbp),%rax
  add    $0x5,%rax
  cmp    %rax,-0x18(%rbp)
  jae    L158
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  jmp    L203
L158:
  mov    -0x18(%rbp),%rax
  sub    $0x9,%rax
  mov    $0x8,%edx
  lea    D70(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L90
  mov    -0x18(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <strchr@plt>
  test   %eax,%eax
  jne    L143
L90:
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  jmp    L203
L143:
  mov    -0x18(%rbp),%rax
  lea    0x2(%rax),%rdx
  mov    -0x28(%rbp),%rax
  sub    %rdx,%rax
  mov    %rax,%rdx
  mov    -0x30(%rbp),%rax
  sub    %rdx,%rax
  mov    %rax,%rsi
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  mov    $0x4,%ecx
  lea    D46(%rip),%rdx
  mov    %rax,%rdi
  call   <memstr@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L2
  mov    -0x18(%rbp),%rax
  lea    0x2(%rax),%rdx
  mov    -0x28(%rbp),%rax
  sub    %rdx,%rax
  mov    %rax,%rdx
  mov    -0x30(%rbp),%rax
  sub    %rdx,%rax
  cmp    $0x4000,%rax
  jbe    L127
  mov    -0x30(%rbp),%rax
  lea    -0x4(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  jmp    L203
L127:
  mov    -0x20(%rbp),%rax
  jmp    L203
L2:
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  mov    $0x7,%edx
  lea    D23(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L227
  mov    -0x20(%rbp),%rax
  add    $0x5,%rax
  mov    $0x7,%edx
  lea    D23(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  je     L119
L227:
  mov    -0x10(%rbp),%rax
  sub    -0x18(%rbp),%rax
  add    $0x2,%rax
  mov    %rax,%rsi
  mov    -0x18(%rbp),%rax
  mov    $0x8,%ecx
  lea    D73(%rip),%rdx
  mov    %rax,%rdi
  call   <memstr@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jne    L124
  mov    -0x10(%rbp),%rax
  add    $0x4,%rax
  jmp    L203
L119:
  nop
  jmp    L184
L124:
  nop
L184:
  mov    -0x38(%rbp),%rax
  mov    -0x20(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x10(%rbp),%rax
  sub    -0x20(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x40(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x10(%rbp),%rax
  add    $0x4,%rax
L203:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D32
data_type: string
name: retrieve_data
arguments: tag: D26
data_type: string
name: retrieve_data
arguments: tag: D66
data_type: string
name: retrieve_data
arguments: tag: D70
data_type: string
name: retrieve_data
arguments: tag: D27
data_type: string
name: retrieve_data
arguments: tag: D46
data_type: string
name: retrieve_data
arguments: tag: D23
data_type: string
name: retrieve_data
arguments: tag: D73
data_type: string

tool: D32: GET 

tool: D26: POST 

tool: D66: 


tool: D70:  HTTP/1.

tool: D27: 01

tool: D46: 



tool: D23: http://

tool: D73: 
Host: 

assistant: ```c
unsigned char *find_http_req(const unsigned char *data, const size_t len, unsigned char **http, size_t *httplen) {
  unsigned char *req, *le, *blankline, *hosthdr;
  if (len < 40)
    return (unsigned char *)data;
  if (!(req = memstr(data, len, (unsigned char *)"GET ", 4)))
    if (!(req = memstr(data, len, (unsigned char *)"POST ", 5)))
      return (unsigned char *)(data + len - 4);
  if (!(le = memstr(req + 4, (len - (data - (req + 4))), (unsigned char *)"\r\n", 2))) {
    if ((len - (data - (req + 4))) > 16384)
      return (unsigned char *)(req + 4);
    else
      return (unsigned char *)req;
  }
  if (le < req + 5)
    return le + 2;
  if (memcmp(le - 9, " HTTP/1.", 8) || !strchr("01", (int)*(le - 1)))
    return le + 2;
  if (!(blankline = memstr(le + 2, (len - (data - (le + 2))), (unsigned char *)"\r\n\r\n", 4))) {
    if ((len - (data - (le + 2))) > 16384)
      return (unsigned char *)(data + len - 4);
    else
      return req;
  }
  if (memcmp(req + 4, "http://", 7) == 0 && memcmp(req + 5, "http://", 7) == 0)
    goto found;
  if (!(hosthdr = memstr(le, blankline - le + 2, (unsigned char *)"\r\nHost: ", 8))) {
    return blankline + 4;
  }
found:
  *http = req;
  *httplen = blankline - req;
  return blankline + 4;
}
```