user: 下面的汇编指令对应的C源代码是什么:

```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     L36
  mov    0xc(%rsp),%edi
  call   <S_ISDIR@plt>
  test   %rax,%rax
  jne    L80
  mov    %r14,%rdx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <send_file@plt>
L4:
  mov    0x1018(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L28
  add    $0x1020,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L80:
  mov    %rbp,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  je     L79
  cltq
  cmpb   $0x2f,-0x1(%rbp,%rax,1)
  je     L5
L79:
  lea    0x10(%rsp),%r14
  mov    %r13,%rcx
  mov    $0x1000,%esi
  lea    D50(%rip),%rdx
  mov    %r14,%rdi
  call   <snprintf@plt>
  mov    %r14,%rsi
  lea    D51(%rip),%rdi
  call   <log_debug@plt>
  mov    %r14,%rcx
  mov    $0x12e,%esi
  mov    %r12,%rdi
  lea    D12(%rip),%r8
  lea    D23(%rip),%rdx
  call   <send_response@plt>
  jmp    L4
  nopl   0x0(%rax,%rax,1)
L36:
  lea    D68(%rip),%r8
  xor    %ecx,%ecx
  mov    $0x194,%esi
  mov    %r12,%rdi
  lea    D22(%rip),%rdx
  call   <send_response@plt>
  jmp    L4
  nopw   0x0(%rax,%rax,1)
L5:
  lea    0x10(%rsp),%r15
  mov    $0x1000,%esi
  mov    %rbp,%rcx
  mov    %r15,%rdi
  lea    D21(%rip),%rdx
  call   <snprintf@plt>
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <stat@plt>
  test   %rax,%rax
  js     L58
  mov    %r14,%rdx
  mov    %r15,%rsi
  mov    %r12,%rdi
  call   <send_file@plt>
  jmp    L4
  nop
L58:
  mov    0xc(%rsp),%esi
  mov    %rbp,%rcx
  mov    %r13,%rdx
  mov    %r12,%rdi
  call   <send_directory_listing@plt>
  jmp    L4
L28:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D50
type: string
name: parse_data
arguments: label: D51
type: string
name: parse_data
arguments: label: D12
type: string
name: parse_data
arguments: label: D23
type: string
name: parse_data
arguments: label: D68
type: string
name: parse_data
arguments: label: D22
type: string
name: parse_data
arguments: label: D21
type: string

tool: D50: Location: %s/

tool: D51: HTTP 302, %s

tool: D12: Directories must end with a slash.

tool: D23: Found

tool: D68: File not found

tool: D22: Not found

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