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

```asm
<getFile>:
  endbr64
  push   %r15
  lea    D20(%rip),%rdi
  lea    D2(%rip),%r15
  push   %r14
  lea    D7(%rip),%r14
  push   %r13
  lea    D5(%rip),%r13
  push   %r12
  lea    D4(%rip),%r12
  push   %rbp
  push   %rbx
  lea    D46(%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    L5
  nop
L14:
  cmp    $0x2,%eax
  jne    L59
  xor    %eax,%eax
  call   <cd@plt>
L71:
  cmpl   $0x4,0x4(%rsp)
  je     L61
L5:
  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     L122
  jg     L31
  cmp    $0x1,%eax
  jne    L14
  xor    %eax,%eax
  call   <ls@plt>
  cmpl   $0x4,0x4(%rsp)
  jne    L5
L61:
  xor    %eax,%eax
L97:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L84
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L31:
  cmp    $0x4,%eax
  jne    L59
  mov    %r14,%rdi
  call   <puts@plt>
  jmp    L71
  nopw   0x0(%rax,%rax,1)
L122:
  xor    %eax,%eax
  call   <selectFile@plt>
  test   %rax,%rax
  je     L71
  jmp    L97
  nopw   0x0(%rax,%rax,1)
L59:
  mov    %r15,%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <fileInstructions@plt>
  jmp    L71
L84:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D20
data_type: string
name: unpack_data
arguments: label: D2
data_type: string
name: unpack_data
arguments: label: D7
data_type: string
name: unpack_data
arguments: label: D5
data_type: string
name: unpack_data
arguments: label: D4
data_type: string
name: unpack_data
arguments: label: D46
data_type: string

tool: D20: #########################################################
# 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: D2: # Invalid command!

tool: D7: # Exiting file browser...

tool: D5: # PWD: %s


tool: D4: # Enter a command: 

tool: D46: -----------------------

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