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

```asm
<http_request_recv>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x38(%rbp)
  mov    %rcx,-0x48(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0xa0d0a0d,-0xd(%rbp)
  movb   $0x0,-0x9(%rbp)
  mov    -0x48(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L43
  mov    -0x48(%rbp),%rax
  mov    -0x40(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x40(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L43
L195:
  mov    -0x48(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x28(%rbp)
  mov    -0x48(%rbp),%rax
  mov    (%rax),%rax
  cmp    %rax,-0x40(%rbp)
  jne    L55
  mov    -0x38(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x28(%rbp)
  je     L64
L55:
  mov    -0x48(%rbp),%rax
  mov    (%rax),%rax
  cmp    %rax,-0x40(%rbp)
  je     L182
  cmpl   $0x0,-0x28(%rbp)
  jle    L42
  mov    -0x28(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x48(%rbp),%rax
  mov    (%rax),%rax
  sub    -0x40(%rbp),%rax
  cmp    %rax,%rdx
  jge    L121
  mov    -0x48(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x40(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  jmp    L42
L121:
  movl   $0x0,-0x28(%rbp)
  jmp    L128
L189:
  mov    -0x48(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  mov    -0x28(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x40(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x28(%rbp)
L128:
  mov    -0x48(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L189
  mov    -0x28(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
L42:
  mov    -0x48(%rbp),%rax
  mov    -0x40(%rbp),%rdx
  mov    %rdx,(%rax)
L182:
  mov    D5(%rip),%rax
  mov    (%rax),%edx
  mov    -0x28(%rbp),%eax
  lea    0x1(%rax),%ecx
  mov    -0x38(%rbp),%eax
  sub    %ecx,%eax
  mov    %eax,%edi
  mov    -0x28(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x40(%rbp),%rax
  lea    (%rcx,%rax,1),%rsi
  mov    -0x34(%rbp),%eax
  mov    %edx,%ecx
  mov    %edi,%edx
  mov    %eax,%edi
  call   <recv@plt>
  mov    %eax,-0x24(%rbp)
  cmpl   $0x0,-0x24(%rbp)
  jns    L202
  mov    $0x0,%eax
  jmp    L125
L202:
  cmpl   $0x0,-0x24(%rbp)
  jne    L191
  cmpl   $0x0,-0x28(%rbp)
  jne    L199
  mov    $0x0,%eax
  jmp    L125
L191:
  mov    -0x24(%rbp),%eax
  add    %eax,-0x28(%rbp)
  mov    -0x28(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
L43:
  mov    -0x48(%rbp),%rax
  mov    (%rax),%rax
  lea    -0xd(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  je     L195
  jmp    L207
L64:
  nop
  jmp    L207
L199:
  nop
L207:
  mov    -0x48(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  je     L100
  lea    -0xd(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  lea    -0xd(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rax,%rdx
  mov    -0x48(%rbp),%rax
  mov    %rdx,(%rax)
  jmp    L112
L100:
  mov    -0x48(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  add    %rax,%rdx
  mov    -0x48(%rbp),%rax
  mov    %rdx,(%rax)
L112:
  mov    -0x18(%rbp),%rax
L125:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L200
  call   <__stack_chk_fail@plt>
L200:
  leave
  ret
```

assistant: ```c
char *http_request_recv(int fd, char *buf, int buflen, char **data) {
  const char delim[] = "\r\n"
                       "\r\n";
  char *retval, *split;
  int len, recvlen;
  if (!*data) {
    *data = buf;
    *buf = '\0';
  }
  while ((split = strstr(*data, delim)) == NULL) {
    len = strlen(*data);
    if (*data == buf && len == (buflen - 1)) {
      break;
    }
    if (*data != buf) {
      if (len > 0) {
        if (len < *data - buf) {
          strcpy(buf, *data);
        } else {
          for (len = 0; (*data)[len] != '\0'; ++len)
            buf[len] = (*data)[len];
          buf[len] = '\0';
        }
      }
      *data = buf;
    }
    recvlen = recv(fd, buf + len, buflen - (len + 1), MSG_DONTWAIT);
    if (recvlen < 0) {
      return NULL;
    } else if (recvlen == 0) {
      if (len == 0) {
        return NULL;
      }
      break;
    }
    len += recvlen;
    buf[len] = '\0';
  }
  retval = *data;
  if (split) {
    memset(split, '\0', strlen(delim));
    *data = split + strlen(delim);
  } else {
    *data += len;
  }
  return retval;
}
```