user: Translate the below assembly code into C programming language:

```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     L25
  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    D12(%rip),%rsi
  call   <sscanf@plt>
  cmpb   $0x2f,0x50(%rsp)
  jne    L101
  lea    D46(%rip),%rsi
  mov    %r14,%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  jne    L3
  lea    D51(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  jne    L21
  mov    %r15,%rdi
  call   <strlen@plt>
  cmp    $0x1,%eax
  jle    L109
  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     L126
  lea    D42(%rip),%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L53
L121:
  mov    %r15,%rsi
  mov    %r13,%rdi
  mov    $0x1,%r12d
  call   <strcpy@plt>
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  nopl   0x0(%rax)
L25:
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L86
  add    $0xc8,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L101:
  lea    D15(%rip),%rdi
  call   <printf@plt>
  jmp    L25
  xchg   %ax,%ax
L21:
  lea    D8(%rip),%rdi
  call   <printf@plt>
  jmp    L25
  xchg   %ax,%ax
L3:
  lea    D54(%rip),%rdi
  call   <printf@plt>
  jmp    L25
  xchg   %ax,%ax
L109:
  lea    D1(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x1,%r12d
  call   <strcpy@plt>
  jmp    L25
  nopw   0x0(%rax,%rax,1)
L53:
  lea    D67(%rip),%rdi
  call   <printf@plt>
  jmp    L25
  nopl   0x0(%rax)
L126:
  lea    D22(%rip),%r14
  jmp    L121
L86:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D12
type: string
name: retrieve_data
arguments: data_label: D46
type: string
name: retrieve_data
arguments: data_label: D51
type: string
name: retrieve_data
arguments: data_label: D42
type: string
name: retrieve_data
arguments: data_label: D15
type: string
name: retrieve_data
arguments: data_label: D8
type: string
name: retrieve_data
arguments: data_label: D54
type: string
name: retrieve_data
arguments: data_label: D1
type: string
name: retrieve_data
arguments: data_label: D67
type: string
name: retrieve_data
arguments: data_label: D22
type: string

tool: D12: %s %s %s

tool: D46: get

tool: D51: HTTP/1.1

tool: D42: q

tool: D15: 501 Not Implemented


tool: D8: 505 HTTP Version Not Supported


tool: D54: 405 Method Not Allowed


tool: D1: /

tool: D67: 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;
  }
}
```