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

```asm
<parse>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  xor    %r12d,%r12d
  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     L100
  lea    0x30(%rsp),%rbx
  lea    0x50(%rsp),%r15
  mov    %rsi,%r13
  mov    %rdx,%rbp
  lea    0x10(%rsp),%r14
  mov    %rbx,%r8
  mov    %r15,%rcx
  mov    %r14,%rdx
  lea    D16(%rip),%rsi
  call   <sscanf@plt>
  cmpb   $0x2f,0x50(%rsp)
  jne    L32
  lea    D77(%rip),%rsi
  mov    %r14,%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  jne    L47
  lea    D89(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  jne    L34
  mov    %r15,%rdi
  call   <strlen@plt>
  cmp    $0x1,%eax
  jle    L17
  lea    0xf(%rsp),%r14
  mov    %r15,%rdi
  mov    %r14,%rsi
  call   <strtok@plt>
  mov    %r14,%rsi
  xor    %edi,%edi
  mov    %rax,%r15
  call   <strtok@plt>
  mov    %rax,%r14
  test   %rax,%rax
  je     L3
  lea    D2(%rip),%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L16
L81:
  mov    %r15,%rsi
  mov    %r13,%rdi
  mov    $0x1,%r12d
  call   <strcpy@plt>
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  nopl   0x0(%rax)
L100:
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  add    $0xc8,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L32:
  lea    D33(%rip),%rdi
  call   <printf@plt>
  jmp    L100
  xchg   %ax,%ax
L34:
  lea    D98(%rip),%rdi
  call   <printf@plt>
  jmp    L100
  xchg   %ax,%ax
L47:
  lea    D54(%rip),%rdi
  call   <printf@plt>
  jmp    L100
  xchg   %ax,%ax
L17:
  lea    D28(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x1,%r12d
  call   <strcpy@plt>
  jmp    L100
  nopw   0x0(%rax,%rax,1)
L16:
  lea    D82(%rip),%rdi
  call   <printf@plt>
  jmp    L100
  nopl   0x0(%rax)
L3:
  lea    D57(%rip),%r14
  jmp    L81
L9:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D16
type: string
name: extract_symbolic_data
arguments: data_label: D77
type: string
name: extract_symbolic_data
arguments: data_label: D89
type: string
name: extract_symbolic_data
arguments: data_label: D2
type: string
name: extract_symbolic_data
arguments: data_label: D33
type: string
name: extract_symbolic_data
arguments: data_label: D98
type: string
name: extract_symbolic_data
arguments: data_label: D54
type: string
name: extract_symbolic_data
arguments: data_label: D28
type: string
name: extract_symbolic_data
arguments: data_label: D82
type: string
name: extract_symbolic_data
arguments: data_label: D57
type: string

tool: D16: %s %s %s

tool: D77: get

tool: D89: HTTP/1.1

tool: D2: q

tool: D33: 501 Not Implemented


tool: D98: 505 HTTP Version Not Supported


tool: D54: 405 Method Not Allowed


tool: D28: /

tool: D82: 400 Bad Request


tool: 

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;
  }
}
```