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

```asm
<getFile>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    D11(%rip),%rdi
  call   <puts@plt>
  lea    D65(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <fileInstructions@plt>
  movl   $0x0,0x4(%rsp)
  lea    D65(%rip),%r12
  lea    D69(%rip),%rbp
  lea    D7(%rip),%rbx
  lea    D54(%rip),%r13
  jmp    L126
L61:
  cmp    $0x4,%eax
  jne    L80
  lea    D38(%rip),%rdi
  call   <puts@plt>
  jmp    L109
L125:
  mov    $0x0,%eax
  call   <ls@plt>
L109:
  cmpl   $0x4,0x4(%rsp)
  je     L69
L126:
  mov    %r12,%rdi
  call   <puts@plt>
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <getcwd@plt>
  mov    %rax,%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rdi
  call   <getInt@plt>
  mov    0x4(%rsp),%eax
  cmp    $0x3,%eax
  je     L88
  jg     L61
  cmp    $0x1,%eax
  je     L125
  cmp    $0x2,%eax
  jne    L80
  mov    $0x0,%eax
  call   <cd@plt>
  jmp    L109
L88:
  mov    $0x0,%eax
  call   <selectFile@plt>
  test   %rax,%rax
  je     L109
  jmp    L105
L80:
  mov    %r13,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <fileInstructions@plt>
  jmp    L109
L69:
  mov    $0x0,%eax
L105:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L15
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L15:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D11
data_type: string
name: disassemble_data
arguments: label: D65
data_type: string
name: disassemble_data
arguments: label: D69
data_type: string
name: disassemble_data
arguments: label: D7
data_type: string
name: disassemble_data
arguments: label: D54
data_type: string
name: disassemble_data
arguments: label: D38
data_type: string

tool: D11: #########################################################
# Welcome to a low-level file navigation and input system
# Basic UNIX-esque functions are provided
#   ls: lists the files in the current working directory
#   cd: change the current working directory
#   select: choose a *.txt file (from the current working directory) to import into the AVL tree
#   exit: exits this file browser
#########################################################

tool: D65: -----------------------

tool: D69: # PWD: %s


tool: D7: # Enter a command: 

tool: D54: # Invalid command!

tool: D38: # Exiting file browser...

assistant: ```c
FILE *getFile() {
  printf("#########################################################\n"
         "# Welcome to a low-level file navigation and input system\n"
         "# Basic UNIX-esque functions are provided\n"
         "#   ls: lists the files in the current working directory\n"
         "#   cd: change the current working directory\n"
         "#   select: choose a *.txt file (from the current working directory) to import into the AVL tree\n"
         "#   exit: exits this file browser\n"
         "#########################################################\n");
  printf("-----------------------\n");
  ;
  fileInstructions();
  int cmd = 0;
  FILE *res = NULL;
  while (4 != cmd) {
    printf("-----------------------\n");
    ;
    char *pwd = getcwd(NULL, 0);
    printf("# PWD: %s\n", pwd);
    printf("# Enter a command: ");
    getInt(&cmd);
    switch (cmd) {
    case 1:
      ls();
      break;
    case 2:
      cd();
      break;
    case 3:
      res = selectFile();
      if (res) {
        return res;
      }
      break;
    case 4:
      printf("# Exiting file browser...\n");
      break;
    default:
      printf("# Invalid command!\n");
      fileInstructions();
    }
  }
  return NULL;
}
```