user: What is the c source code of the assembly code below:

```asm
<ltr_int_get_app_path>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x18,%rsp
  mov    %rdi,%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x1008(%rsp)
  xor    %eax,%eax
  mov    $0x0,%edi
  call   <ltr_int_get_default_file_name@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L1
  lea    D36(%rip),%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L18
  mov    %rbp,%rdi
  call   <free@plt>
  lea    D9(%rip),%r12
  lea    D44(%rip),%r14
  lea    D52(%rip),%r15
L45:
  mov    %rsp,%rbp
L28:
  mov    %rbx,%rdi
  call   <feof@plt>
  test   %eax,%eax
  jne    L26
  mov    %rbp,%rdx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <fscanf@plt>
  cmp    $0x1,%eax
  jne    L28
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  jne    L28
  mov    %rbx,%rdx
  mov    $0x7f8,%esi
  mov    %rbp,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L28
  lea    0x800(%rsp),%rdx
  mov    %rsp,%rdi
  mov    %r15,%rsi
  call   <sscanf@plt>
  test   %rax,%rax
  jle    L45
  mov    %rbx,%rdi
  call   <fclose@plt>
  lea    0x800(%rsp),%rdi
  mov    %r13,%rsi
  call   <ltr_int_my_strcat@plt>
  mov    %rax,%rbp
L1:
  mov    0x1008(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L80
  mov    %rbp,%rax
  add    $0x1018,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L18:
  mov    %rbp,%rsi
  lea    D42(%rip),%rdi
  mov    $0x0,%eax
  call   <ltr_int_log_message@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  mov    %rbx,%rbp
  jmp    L1
L26:
  mov    %rbx,%rdi
  call   <fclose@plt>
  lea    D23(%rip),%rdi
  mov    $0x0,%eax
  call   <ltr_int_log_message@plt>
  mov    $0x0,%ebp
  jmp    L1
L80:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D36
type_guessed: string
name: parse_data
arguments: data_label: D9
type_guessed: string
name: parse_data
arguments: data_label: D44
type_guessed: string
name: parse_data
arguments: data_label: D52
type_guessed: string
name: parse_data
arguments: data_label: D42
type_guessed: string
name: parse_data
arguments: data_label: D23
type_guessed: string

tool: D36: r

tool: D9: %2040s

tool: D44: PREFIX

tool: D52:  = "%[^"
]

tool: D42: Can't open file '%s'!


tool: D23: Couldn't find prefix!


assistant: ```c
char *ltr_int_get_app_path(const char *suffix) {
  char *fname = ltr_int_get_default_file_name(NULL);
  if (fname == NULL) {
    return NULL;
  }
  FILE *f = fopen(fname, "r");
  if (f == NULL) {
    ltr_int_log_message("Can't open file '%s'!\n", fname);
    free(fname);
    return NULL;
  }
  free(fname);
  fname = NULL;
  char key[2048];
  char val[2048];
  bool found = false;
  while (!feof(f)) {
    if (fscanf(f, "%2040s", key) == 1) {
      if (strcasecmp(key, "PREFIX") == 0) {
        if (fgets(key, 2040, f) != NULL) {
          if (sscanf(key, " = \"%[^\"\n]", val) > 0) {
            found = true;
            break;
          }
        }
      }
    }
  }
  fclose(f);
  if (found) {
    return ltr_int_my_strcat(val, suffix);
  }
  ltr_int_log_message("Couldn't find prefix!\n");
  return NULL;
}
```