user: 请从给定的汇编指令推导出C源代码：

```asm
<getFile>:
  endbr64
  push   %r15
  lea    D40(%rip),%rdi
  lea    D8(%rip),%r15
  push   %r14
  lea    D39(%rip),%r14
  push   %r13
  lea    D32(%rip),%r13
  push   %r12
  lea    D38(%rip),%r12
  push   %rbp
  push   %rbx
  lea    D51(%rip),%rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rbp
  call   <puts@plt>
  mov    %rbx,%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <fileInstructions@plt>
  movl   $0x0,0x4(%rsp)
  jmp    L97
  nop
L100:
  cmp    $0x2,%eax
  jne    L23
  xor    %eax,%eax
  call   <cd@plt>
L70:
  cmpl   $0x4,0x4(%rsp)
  je     L113
L97:
  mov    %rbx,%rdi
  call   <puts@plt>
  xor    %esi,%esi
  xor    %edi,%edi
  call   <getcwd@plt>
  mov    %r13,%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  call   <getInt@plt>
  mov    0x4(%rsp),%eax
  cmp    $0x3,%eax
  je     L22
  jg     L8
  cmp    $0x1,%eax
  jne    L100
  xor    %eax,%eax
  call   <ls@plt>
  cmpl   $0x4,0x4(%rsp)
  jne    L97
L113:
  xor    %eax,%eax
L127:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L98
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L8:
  cmp    $0x4,%eax
  jne    L23
  mov    %r14,%rdi
  call   <puts@plt>
  jmp    L70
  nopw   0x0(%rax,%rax,1)
L22:
  xor    %eax,%eax
  call   <selectFile@plt>
  test   %rax,%rax
  je     L70
  jmp    L127
  nopw   0x0(%rax,%rax,1)
L23:
  mov    %r15,%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <fileInstructions@plt>
  jmp    L70
L98:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D40
type_guessed: string
name: unpack_data
arguments: data_tag: D8
type_guessed: string
name: unpack_data
arguments: data_tag: D39
type_guessed: string
name: unpack_data
arguments: data_tag: D32
type_guessed: string
name: unpack_data
arguments: data_tag: D38
type_guessed: string
name: unpack_data
arguments: data_tag: D51
type_guessed: string

tool: D40: #########################################################
# 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: D8: # Invalid command!

tool: D39: # Exiting file browser...

tool: D32: # PWD: %s


tool: D38: # Enter a command: 

tool: D51: -----------------------

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