user: Demonstrate the C code that generates the assembly output below:

```asm
<http_request_line>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %edi,%ebx
  mov    %rsi,%r12
  mov    %rdx,%rbp
  mov    %rcx,%r13
  lea    D54(%rip),%rdi
  call   <touch@plt>
  mov    $0x2000,%edx
  lea    D124(%rip),%rsi
  mov    %ebx,%edi
  call   <http_read_line@plt>
  lea    D160(%rip),%rdx
  test   %rax,%rax
  js     L51
  mov    $0x20,%esi
  lea    D124(%rip),%rdi
  call   <strchr@plt>
  lea    D132(%rip),%rdx
  test   %rax,%rax
  je     L51
  movb   $0x0,(%rax)
  lea    D122(%rip),%rdx
  cmpb   $0x2f,0x1(%rax)
  je     L35
L51:
  mov    %rdx,%rax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L35:
  lea    0x1(%rax),%rbx
  mov    $0x20,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  mov    %rax,%r14
  lea    D3(%rip),%rdx
  test   %rax,%rax
  je     L51
  movb   $0x0,(%rax)
  lea    D100(%rip),%rsi
  lea    D124(%rip),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L70
  lea    D159(%rip),%rsi
  lea    D124(%rip),%rdi
  call   <strcmp@plt>
  lea    D130(%rip),%rdx
  test   %rax,%rax
  jne    L51
L70:
  lea    D124(%rip),%rdx
  lea    D149(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    0x1(%rbp,%rax,1),%r15
  lea    0x1(%r14),%rdx
  lea    D141(%rip),%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    0x1(%r15,%rax,1),%r14
  mov    $0x3f,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L60
  movb   $0x0,(%rax)
  lea    0x1(%rax),%rdx
  lea    D117(%rip),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    0x1(%r14,%rax,1),%r14
L60:
  mov    $0x800,%edx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <url_decode@plt>
  mov    %r12,%rdx
  lea    D152(%rip),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    0x1(%r14,%rax,1),%rbx
  lea    D43(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    0x1(%rbx,%rax,1),%rax
  movb   $0x0,(%rax)
  sub    %rbp,%rax
  add    $0x1,%rax
  mov    %rax,0x0(%r13)
  mov    $0x0,%edx
  jmp    L51
```

tool_calls: name: unpack_data
arguments: label: D54
data_type: string
name: unpack_data
arguments: label: D160
data_type: string
name: unpack_data
arguments: label: D132
data_type: string
name: unpack_data
arguments: label: D122
data_type: string
name: unpack_data
arguments: label: D3
data_type: string
name: unpack_data
arguments: label: D100
data_type: string
name: unpack_data
arguments: label: D159
data_type: string
name: unpack_data
arguments: label: D130
data_type: string
name: unpack_data
arguments: label: D149
data_type: string
name: unpack_data
arguments: label: D141
data_type: string
name: unpack_data
arguments: label: D117
data_type: string
name: unpack_data
arguments: label: D152
data_type: string
name: unpack_data
arguments: label: D43
data_type: string

tool: D54: http_request_line

tool: D160: Socket IO error

tool: D132: Cannot parse HTTP request (1)

tool: D122: Bad request path

tool: D3: Cannot parse HTTP request (2)

tool: D100: GET

tool: D159: POST

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

tool: D149: REQUEST_METHOD=%s

tool: D141: SERVER_PROTOCOL=%s

tool: D117: QUERY_STRING=%s

tool: D152: REQUEST_URI=%s

tool: D43: SERVER_NAME=zoobar.org

assistant: ```c
const char *http_request_line(int fd, char *reqpath, char *env, size_t *env_len) {
  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)";
  envp += sprintf(envp, "REQUEST_METHOD=%s", buf) + 1;
  envp += sprintf(envp, "SERVER_PROTOCOL=%s", sp2) + 1;
  if ((qp = strchr(sp1, '?'))) {
    *qp = '\0';
    envp += sprintf(envp, "QUERY_STRING=%s", qp + 1) + 1;
  }
  url_decode(reqpath, sp1, 2048);
  envp += sprintf(envp, "REQUEST_URI=%s", reqpath) + 1;
  envp += sprintf(envp, "SERVER_NAME=zoobar.org") + 1;
  *envp = 0;
  *env_len = envp - env + 1;
  return NULL;
}
```