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    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1018(%rsp)
  xor    %eax,%eax
  mov    %rdi,%r13
  xor    %edi,%edi
  call   <ltr_int_get_default_file_name@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L53
  lea    D7(%rip),%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L21
  mov    %r12,%rdi
  lea    D56(%rip),%rbx
  lea    D18(%rip),%r14
  call   <free@plt>
  lea    D13(%rip),%r15
L34:
  lea    0x10(%rsp),%r12
  jmp    L103
  nopw   0x0(%rax,%rax,1)
L62:
  mov    %r12,%rdx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <fscanf@plt>
  cmp    $0x1,%eax
  je     L87
L103:
  mov    %rbp,%rdi
  call   <feof@plt>
  test   %eax,%eax
  je     L62
  mov    %rbp,%rdi
  xor    %r12d,%r12d
  call   <fclose@plt>
  lea    D10(%rip),%rdi
  xor    %eax,%eax
  call   <ltr_int_log_message@plt>
L53:
  mov    0x1018(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L50
  add    $0x1028,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L87:
  mov    %r14,%rsi
  mov    %r12,%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  jne    L103
  mov    %rbp,%rdx
  mov    $0x7f8,%esi
  mov    %r12,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L103
  lea    0x810(%rsp),%rax
  mov    %r15,%rsi
  mov    %r12,%rdi
  mov    %rax,%rdx
  mov    %rax,0x8(%rsp)
  call   <sscanf@plt>
  test   %rax,%rax
  jle    L34
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    0x8(%rsp),%rdi
  mov    %r13,%rsi
  call   <ltr_int_my_strcat@plt>
  mov    %rax,%r12
  jmp    L53
L21:
  mov    %r12,%rsi
  lea    D58(%rip),%rdi
  xor    %eax,%eax
  call   <ltr_int_log_message@plt>
  mov    %r12,%rdi
  xor    %r12d,%r12d
  call   <free@plt>
  jmp    L53
L50:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D7
data_type: string
name: read_data
arguments: data_tag: D56
data_type: string
name: read_data
arguments: data_tag: D18
data_type: string
name: read_data
arguments: data_tag: D13
data_type: string
name: read_data
arguments: data_tag: D10
data_type: string
name: read_data
arguments: data_tag: D58
data_type: string

tool: D7: r

tool: D56: %2040s

tool: D18: PREFIX

tool: D13:  = "%[^"
]

tool: D10: Couldn't find prefix!


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


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