user: What would the C source look like for the assembly code provided here:

```asm
<process_get_request>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x20,%rsp
  mov    %rsi,%rbp
  lea    0xc(%rsp),%r14
  mov    %rdi,%r12
  mov    %rdx,%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x1018(%rsp)
  xor    %eax,%eax
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <stat@plt>
  test   %rax,%rax
  js     L45
  mov    0xc(%rsp),%edi
  call   <S_ISDIR@plt>
  test   %rax,%rax
  jne    L23
  mov    %r14,%rdx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <send_file@plt>
L90:
  mov    0x1018(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L19
  add    $0x1020,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L23:
  mov    %rbp,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  je     L20
  cltq
  cmpb   $0x2f,-0x1(%rbp,%rax,1)
  je     L34
L20:
  lea    0x10(%rsp),%r14
  mov    %r13,%rcx
  mov    $0x1000,%esi
  lea    D35(%rip),%rdx
  mov    %r14,%rdi
  call   <snprintf@plt>
  mov    %r14,%rsi
  lea    D14(%rip),%rdi
  call   <log_debug@plt>
  mov    %r14,%rcx
  mov    $0x12e,%esi
  mov    %r12,%rdi
  lea    D46(%rip),%r8
  lea    D11(%rip),%rdx
  call   <send_response@plt>
  jmp    L90
  nopl   0x0(%rax,%rax,1)
L45:
  lea    D69(%rip),%r8
  xor    %ecx,%ecx
  mov    $0x194,%esi
  mov    %r12,%rdi
  lea    D13(%rip),%rdx
  call   <send_response@plt>
  jmp    L90
  nopw   0x0(%rax,%rax,1)
L34:
  lea    0x10(%rsp),%r15
  mov    $0x1000,%esi
  mov    %rbp,%rcx
  mov    %r15,%rdi
  lea    D59(%rip),%rdx
  call   <snprintf@plt>
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <stat@plt>
  test   %rax,%rax
  js     L15
  mov    %r14,%rdx
  mov    %r15,%rsi
  mov    %r12,%rdi
  call   <send_file@plt>
  jmp    L90
  nop
L15:
  mov    0xc(%rsp),%esi
  mov    %rbp,%rcx
  mov    %r13,%rdx
  mov    %r12,%rdi
  call   <send_directory_listing@plt>
  jmp    L90
L19:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D35
type_guessed: string
name: retrieve_data
arguments: data_label: D14
type_guessed: string
name: retrieve_data
arguments: data_label: D46
type_guessed: string
name: retrieve_data
arguments: data_label: D11
type_guessed: string
name: retrieve_data
arguments: data_label: D69
type_guessed: string
name: retrieve_data
arguments: data_label: D13
type_guessed: string
name: retrieve_data
arguments: data_label: D59
type_guessed: string

tool: D35: Location: %s/

tool: D14: HTTP 302, %s

tool: D46: Directories must end with a slash.

tool: D11: Found

tool: D69: File not found

tool: D13: Not found

tool: D59: %sindex.html

assistant: ```c
int process_get_request(FILE *f, char *path, char *relative_path) {
  struct stat statbuf;
  char pathbuf[4096];
  int len;
  if (stat(path, &statbuf) >= 0) {
    if (S_ISDIR(statbuf.st_mode)) {
      len = strlen(path);
      if (len == 0 || path[len - 1] != '/') {
        snprintf(pathbuf, sizeof(pathbuf), "Location: %s/", relative_path);
        log_debug("HTTP 302, %s", pathbuf);
        send_response(f, 302, "Found", pathbuf, "Directories must end with a slash.");
      } else {
        snprintf(pathbuf, sizeof(pathbuf), "%sindex.html", path);
        if (stat(pathbuf, &statbuf) >= 0) {
          send_file(f, pathbuf, &statbuf);
        } else {
          send_directory_listing(f, statbuf, relative_path, path);
        }
      }
    } else {
      send_file(f, path, &statbuf);
    }
  } else {
    send_response(f, 404, "Not found", NULL, "File not found");
  }
  return 0;
}
```