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

```asm
<multosLoadApp>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %ecx,-0x4c(%rbp)
  movl   $0x1,-0x2c(%rbp)
  mov    -0x40(%rbp),%rax
  lea    D53(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x28(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  jne    L63
  cmpq   $0x0,-0x48(%rbp)
  je     L98
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x48(%rbp),%rax
  lea    D73(%rip),%rdx
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
L98:
  mov    $0x0,%eax
  jmp    L75
L63:
  mov    -0x28(%rbp),%rax
  mov    $0x2,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <fseek@plt>
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <ftell@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x28(%rbp),%rax
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <fseek@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  jne    L51
  cmpq   $0x0,-0x48(%rbp)
  je     L93
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x48(%rbp),%rax
  lea    D84(%rip),%rdx
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
L93:
  mov    $0x0,%eax
  jmp    L75
L51:
  mov    -0x28(%rbp),%rcx
  mov    -0x20(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <fread@plt>
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <openMelApp@plt>
  test   %eax,%eax
  jne    L144
  cmpq   $0x0,-0x48(%rbp)
  je     L109
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x48(%rbp),%rax
  lea    D89(%rip),%rdx
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
L109:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L75
L144:
  mov    -0x38(%rbp),%rax
  lea    D53(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x28(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  jne    L69
  cmpq   $0x0,-0x48(%rbp)
  je     L155
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x48(%rbp),%rax
  lea    D58(%rip),%rdx
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
L155:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L75
L69:
  mov    -0x28(%rbp),%rax
  mov    $0x2,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <fseek@plt>
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <ftell@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x28(%rbp),%rax
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <fseek@plt>
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jne    L91
  cmpq   $0x0,-0x48(%rbp)
  je     L153
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x48(%rbp),%rax
  lea    D62(%rip),%rdx
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
L153:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L75
L91:
  mov    -0x28(%rbp),%rcx
  mov    -0x10(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <fread@plt>
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <loadAlu@plt>
  test   %eax,%eax
  jne    L83
  cmpq   $0x0,-0x48(%rbp)
  je     L176
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x48(%rbp),%rax
  lea    D23(%rip),%rdx
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
L176:
  movl   $0x0,-0x2c(%rbp)
L83:
  cmpl   $0x0,-0x2c(%rbp)
  je     L156
  mov    -0x20(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x1,%edi
  call   <sendCertificate@plt>
  test   %eax,%eax
  jne    L156
  cmpq   $0x0,-0x48(%rbp)
  je     L54
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x48(%rbp),%rax
  lea    D15(%rip),%rdx
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
L54:
  movl   $0x0,-0x2c(%rbp)
L156:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x2c(%rbp),%eax
L75:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D53
type_guessed: string
name: retrieve_data
arguments: data_label: D73
type_guessed: string
name: retrieve_data
arguments: data_label: D84
type_guessed: string
name: retrieve_data
arguments: data_label: D89
type_guessed: string
name: retrieve_data
arguments: data_label: D58
type_guessed: string
name: retrieve_data
arguments: data_label: D62
type_guessed: string
name: retrieve_data
arguments: data_label: D23
type_guessed: string
name: retrieve_data
arguments: data_label: D15
type_guessed: string

tool: D53: rb

tool: D73: Failed to open ALC


tool: D84: Failed to read ALC


tool: D89: Open MEL Application failed


tool: D58: Failed to open ALU


tool: D62: Failed to read ALU


tool: D23: ALU loading failed


tool: D15: ALC loading failed


assistant: ```c
int multosLoadApp(char *aluFile, char *alcFile, char *error, int errBuffLen) {
  FILE *fp;
  long alcSize, aluSize;
  unsigned char *alc, *alu;
  int status = 1;
  fp = fopen(alcFile, "rb");
  if (fp == NULL) {
    if (error)
      snprintf(error, errBuffLen - 1, "Failed to open ALC\n");
    return (0);
  }
  fseek(fp, 0, 2);
  alcSize = ftell(fp);
  fseek(fp, 0, 0);
  alc = (unsigned char *)malloc(alcSize);
  if (alc == NULL) {
    if (error)
      snprintf(error, errBuffLen - 1, "Failed to read ALC\n");
    return (0);
  }
  fread(alc, 1, alcSize, fp);
  fclose(fp);
  if (!openMelApp(alc)) {
    if (error)
      snprintf(error, errBuffLen - 1, "Open MEL Application failed\n");
    free(alc);
    return (0);
  }
  fp = fopen(aluFile, "rb");
  if (fp == NULL) {
    if (error)
      snprintf(error, errBuffLen - 1, "Failed to open ALU\n");
    free(alc);
    return (0);
  }
  fseek(fp, 0, 2);
  aluSize = ftell(fp);
  fseek(fp, 0, 0);
  alu = (unsigned char *)malloc(aluSize);
  if (alu == NULL) {
    if (error)
      snprintf(error, errBuffLen - 1, "Failed to read ALU\n");
    free(alc);
    return (0);
  }
  fread(alu, 1, aluSize, fp);
  fclose(fp);
  if (!loadAlu(alu)) {
    if (error)
      snprintf(error, errBuffLen - 1, "ALU loading failed\n");
    status = 0;
  }
  if (status && !sendCertificate(1, alc, alcSize)) {
    if (error)
      snprintf(error, errBuffLen - 1, "ALC loading failed\n");
    status = 0;
  }
  free(alc);
  free(alu);
  return (status);
}
```