user: Converte this assembly snippet into its equivalent C code:

```asm
<http_request_line>:
  endbr64
  push   %r15
  mov    %r8d,%r15d
  push   %r14
  lea    D69(%rip),%r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %edi,%ebp
  lea    D37(%rip),%rdi
  push   %rbx
  mov    %r9d,%ebx
  sub    $0x18,%rsp
  mov    %rcx,(%rsp)
  call   <touch@plt>
  mov    $0x2000,%edx
  mov    %r14,%rsi
  mov    %ebp,%edi
  call   <http_read_line@plt>
  lea    D76(%rip),%r8
  test   %rax,%rax
  js     L67
  mov    $0x20,%esi
  mov    %r14,%rdi
  call   <strchr@plt>
  lea    D23(%rip),%r8
  test   %rax,%rax
  je     L67
  cmpb   $0x2f,0x1(%rax)
  movb   $0x0,(%rax)
  lea    D6(%rip),%r8
  je     L24
L67:
  add    $0x18,%rsp
  mov    %r8,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L24:
  lea    0x1(%rax),%rbp
  mov    $0x20,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  lea    D124(%rip),%r8
  mov    %rax,0x8(%rsp)
  test   %rax,%rax
  je     L67
  movb   $0x0,(%rax)
  lea    D129(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L21
  lea    D29(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  lea    D13(%rip),%r8
  test   %rax,%rax
  jne    L67
L21:
  mov    %r14,%rcx
  mov    %ebx,%esi
  lea    D55(%rip),%rdx
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <snprintf@plt>
  mov    0x8(%rsp),%rcx
  lea    D131(%rip),%rdx
  add    $0x1,%eax
  sub    %eax,%ebx
  movslq %eax,%rdi
  add    $0x1,%rcx
  xor    %eax,%eax
  add    %r12,%rdi
  mov    %ebx,%esi
  mov    %ebx,%r14d
  mov    %rdi,0x8(%rsp)
  call   <snprintf@plt>
  mov    0x8(%rsp),%rdi
  mov    $0x3f,%esi
  lea    0x1(%rax),%r8d
  movslq %r8d,%rax
  sub    %r8d,%r14d
  mov    %r8d,0x8(%rsp)
  lea    (%rdi,%rax,1),%rbx
  mov    %rbp,%rdi
  call   <strchr@plt>
  mov    0x8(%rsp),%r8d
  test   %rax,%rax
  je     L17
  movb   $0x0,(%rax)
  lea    0x1(%rax),%rcx
  mov    %r14d,%esi
  mov    %rbx,%rdi
  lea    D41(%rip),%rdx
  xor    %eax,%eax
  mov    %r8d,0x8(%rsp)
  call   <snprintf@plt>
  mov    0x8(%rsp),%r8d
  lea    0x1(%r8,%rax,1),%eax
  sub    %eax,%r14d
  cltq
  add    %rax,%rbx
L17:
  mov    %r15d,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <url_decode@plt>
  mov    %rbx,%rdi
  mov    %r13,%rcx
  mov    %r14d,%esi
  lea    D83(%rip),%rdx
  xor    %eax,%eax
  call   <snprintf@plt>
  mov    %r14d,%esi
  add    $0x1,%eax
  movslq %eax,%rdx
  sub    %eax,%esi
  xor    %eax,%eax
  add    %rdx,%rbx
  lea    D34(%rip),%rdx
  mov    %rbx,%rdi
  call   <snprintf@plt>
  xor    %r8d,%r8d
  add    $0x1,%eax
  cltq
  add    %rax,%rbx
  mov    (%rsp),%rax
  movb   $0x0,(%rbx)
  sub    %r12,%rbx
  add    $0x1,%rbx
  mov    %rbx,(%rax)
  jmp    L67
```

tool_calls: name: disassemble_data
arguments: label: D37
datatype: string
name: disassemble_data
arguments: label: D76
datatype: string
name: disassemble_data
arguments: label: D23
datatype: string
name: disassemble_data
arguments: label: D6
datatype: string
name: disassemble_data
arguments: label: D124
datatype: string
name: disassemble_data
arguments: label: D129
datatype: string
name: disassemble_data
arguments: label: D29
datatype: string
name: disassemble_data
arguments: label: D13
datatype: string
name: disassemble_data
arguments: label: D55
datatype: string
name: disassemble_data
arguments: label: D131
datatype: string
name: disassemble_data
arguments: label: D41
datatype: string
name: disassemble_data
arguments: label: D83
datatype: string
name: disassemble_data
arguments: label: D34
datatype: string

tool: D37: http_request_line

tool: D76: Socket IO error

tool: D23: Cannot parse HTTP request (1)

tool: D6: Bad request path

tool: D124: Cannot parse HTTP request (2)

tool: D129: GET

tool: D29: POST

tool: D13: Unsupported request (not GET or POST)

tool: D55: REQUEST_METHOD=%s

tool: D131: SERVER_PROTOCOL=%s

tool: D41: QUERY_STRING=%s

tool: D83: REQUEST_URI=%s

tool: D34: SERVER_NAME=zoobar.org

assistant: ```c
const char *http_request_line(int fd, char *reqpath, char *env, size_t *env_len, int len, int len2) {
  static char buf[8192];
  char *sp1, *sp2, *qp, *envp = env;
  touch("http_request_line");
  if (http_read_line(fd, buf, sizeof(buf)) < 0)
    return "Socket IO error";
  sp1 = strchr(buf, ' ');
  if (!sp1)
    return "Cannot parse HTTP request (1)";
  *sp1 = '\0';
  sp1++;
  if (*sp1 != '/')
    return "Bad request path";
  sp2 = strchr(sp1, ' ');
  if (!sp2)
    return "Cannot parse HTTP request (2)";
  *sp2 = '\0';
  sp2++;
  if (strcmp(buf, "GET") && strcmp(buf, "POST"))
    return "Unsupported request (not GET or POST)";
  int length = len2;
  int gap = snprintf(envp, length, "REQUEST_METHOD=%s", buf) + 1;
  envp += gap;
  length -= gap;
  gap = snprintf(envp, length, "SERVER_PROTOCOL=%s", sp2) + 1;
  envp += gap;
  length -= gap;
  if ((qp = strchr(sp1, '?'))) {
    *qp = '\0';
    gap += snprintf(envp, length, "QUERY_STRING=%s", qp + 1) + 1;
    length -= gap;
    envp += gap;
  }
  url_decode(reqpath, sp1, len);
  gap = snprintf(envp, length, "REQUEST_URI=%s", reqpath) + 1;
  envp += gap;
  length -= gap;
  gap = snprintf(envp, length, "SERVER_NAME=zoobar.org") + 1;
  envp += gap;
  length -= gap;
  *envp = 0;
  *env_len = envp - env + 1;
  return NULL;
}
```