user: Please show me the C implementation that matches the assembly code listed below:

```asm
<parse>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xc8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  movb   $0x3f,0xf(%rsp)
  test   %rdi,%rdi
  je     L22
  mov    %rsi,%rbp
  mov    %rdx,%rbx
  lea    0x50(%rsp),%rcx
  lea    0x10(%rsp),%rdx
  lea    0x30(%rsp),%r8
  lea    D64(%rip),%rsi
  call   <sscanf@plt>
  cmpb   $0x2f,0x50(%rsp)
  je     L65
  lea    D70(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%eax
L22:
  mov    0xb8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L63
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L65:
  lea    0x10(%rsp),%rdi
  lea    D28(%rip),%rsi
  call   <strcasecmp@plt>
  test   %rax,%rax
  jne    L49
  lea    0x30(%rsp),%rdi
  lea    D43(%rip),%rsi
  call   <strcasecmp@plt>
  test   %rax,%rax
  jne    L78
  lea    0x50(%rsp),%rdi
  call   <strlen@plt>
  cmp    $0x1,%eax
  jle    L23
  lea    0xf(%rsp),%r12
  lea    0x50(%rsp),%rdi
  mov    %r12,%rsi
  call   <strtok@plt>
  mov    %rax,%r13
  mov    %r12,%rsi
  mov    $0x0,%edi
  call   <strtok@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L131
  lea    D98(%rip),%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L108
L127:
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  mov    $0x1,%eax
  jmp    L22
L49:
  lea    D56(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L22
L78:
  lea    D19(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L22
L108:
  lea    D36(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L22
L131:
  lea    D9(%rip),%r12
  jmp    L127
L23:
  lea    D22(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  mov    $0x1,%eax
  jmp    L22
L63:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D64
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D70
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D28
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D43
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D98
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D56
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D19
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D36
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D9
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D22
type_guessed: string

tool: D64: %s %s %s

tool: D70: 501 Not Implemented


tool: D28: get

tool: D43: HTTP/1.1

tool: D98: q

tool: D56: 405 Method Not Allowed


tool: D19: 505 HTTP Version Not Supported


tool: D36: 400 Bad Request


tool: 

tool: D22: /

assistant: ```c
bool parse(const char *line, char *abs_path, char *query) {
  char method[20], request_target[100], HTTP_version[20];
  char *absolute_path, *query_string;
  const char question_mark = '?';
  if (line == NULL) {
    return false;
  }
  sscanf(line, "%s %s %s", method, request_target, HTTP_version);
  if (request_target[0] != '/') {
    printf("501 Not Implemented\n");
    return false;
  }
  if (strcasecmp(method, "get") != 0) {
    printf("405 Method Not Allowed\n");
    return false;
  }
  if (strcasecmp(HTTP_version, "HTTP/1.1") != 0) {
    printf("505 HTTP Version Not Supported\n");
    return false;
  }
  if (strlen(request_target) > 1) {
    absolute_path = strtok(request_target, &question_mark);
    query_string = strtok(NULL, &question_mark);
    if (query_string == NULL) {
      query_string = "";
    } else if (strcmp(query_string, "q") == 0) {
      printf("400 Bad Request\n");
      return false;
    }
    strcpy(abs_path, absolute_path);
    strcpy(query, query_string);
    return true;
  } else {
    strcpy(abs_path, "/");
    return true;
  }
}
```