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

```asm
<save_makefile_uninstall>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  lea    D51(%rip),%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x228,%rsp
  mov    %rsi,(%rsp)
  mov    %rdx,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x218(%rsp)
  xor    %eax,%eax
  test   %ecx,%ecx
  jle    L107
  lea    -0x1(%rcx),%eax
  mov    %r8,%rbx
  lea    0x10(%rsp),%r13
  lea    0x8(%r8,%rax,8),%r14
  lea    D101(%rip),%r15
  jmp    L65
  nopl   0x0(%rax)
L82:
  call   <get_subdirectory_string@plt>
  lea    D83(%rip),%rsi
  mov    %r13,%rdi
  mov    %rax,%rdx
  call   <sprintf@plt>
L1:
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <add_makefile_entry_to_file@plt>
L60:
  add    $0x8,%rbx
  cmp    %r14,%rbx
  je     L107
L65:
  mov    (%rbx),%rdi
  call   <get_subdirectory_string@plt>
  test   %rax,%rax
  je     L60
  mov    (%rbx),%rdi
  mov    $0x20,%esi
  call   <contains_char@plt>
  mov    (%rbx),%rdi
  test   %rax,%rax
  je     L82
  call   <get_subdirectory_string@plt>
  mov    %r15,%rsi
  mov    %r13,%rdi
  mov    %rax,%rdx
  call   <sprintf@plt>
  jmp    L1
  nopl   (%rax)
L107:
  mov    %rbp,%rdi
  lea    D82(%rip),%rdx
  mov    %r12,%rsi
  call   <add_makefile_entry_to_file@plt>
  mov    (%rsp),%rdi
  call   <is_library@plt>
  test   %rax,%rax
  jne    L105
  lea    D95(%rip),%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <add_makefile_entry_to_file@plt>
  lea    D21(%rip),%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <add_makefile_entry_to_file@plt>
  mov    0x8(%rsp),%rax
  cmpb   $0x0,(%rax)
  je     L6
L53:
  mov    0x218(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L37
  add    $0x228,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L105:
  lea    D8(%rip),%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <add_makefile_entry_to_file@plt>
  lea    D18(%rip),%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <add_makefile_entry_to_file@plt>
  lea    D80(%rip),%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <add_makefile_entry_to_file@plt>
  lea    D88(%rip),%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <add_makefile_entry_to_file@plt>
  lea    D4(%rip),%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <add_makefile_entry_to_file@plt>
  mov    0x8(%rsp),%rax
  cmpb   $0x0,(%rax)
  jne    L53
L6:
  mov    %r12,%rsi
  mov    %rbp,%rdi
  lea    D27(%rip),%rdx
  call   <add_makefile_entry_to_file@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  lea    D79(%rip),%rdx
  call   <add_makefile_entry_to_file@plt>
  lea    D129(%rip),%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <add_makefile_entry_to_file@plt>
  jmp    L53
L37:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D51
type_infered: string
name: parse_data
arguments: tag: D101
type_infered: string
name: parse_data
arguments: tag: D83
type_infered: string
name: parse_data
arguments: tag: D82
type_infered: string
name: parse_data
arguments: tag: D95
type_infered: string
name: parse_data
arguments: tag: D21
type_infered: string
name: parse_data
arguments: tag: D8
type_infered: string
name: parse_data
arguments: tag: D18
type_infered: string
name: parse_data
arguments: tag: D80
type_infered: string
name: parse_data
arguments: tag: D88
type_infered: string
name: parse_data
arguments: tag: D4
type_infered: string
name: parse_data
arguments: tag: D27
type_infered: string
name: parse_data
arguments: tag: D79
type_infered: string
name: parse_data
arguments: tag: D129
type_infered: string

tool: D51: uninstall

tool: D101: rm -f "/%s"

tool: D83: rm -f /%s

tool: D82: rm -f ${PREFIX}/share/man/man1/${APP}.1.gz

tool: D95: rm -rf ${PREFIX}/share/${APP}

tool: D21: rm -f ${PREFIX}/bin/${APP}

tool: D8: rm -f ${PREFIX}/${LIBDIR}/${LIBNAME}

tool: D18: rm -f ${PREFIX}/${LIBDIR}/${APP}.so

tool: D80: rm -f ${PREFIX}/${LIBDIR}/${SONAME}

tool: D88: rm -rf ${PREFIX}/include/${APP}

tool: D4: ldconfig

tool: D27: rm -f ${PREFIX}/share/applications/${APP}.desktop

tool: D79: rm -f ${PREFIX}/share/icons/hicolor/scalable/apps/${APP}.svg

tool: D129: rm -f ${PREFIX}/share/pixmaps/${APP}.svg

assistant: ```c
void save_makefile_uninstall(char *filename, char *project_name, char *commandline, int no_of_binaries, char **binaries) {
  int i;
  char str[512];
  for (i = 0; i < no_of_binaries; i++) {
    if (get_subdirectory_string(binaries[i]) != 0) {
      if (contains_char(binaries[i], ' ') == 0) {
        sprintf(str, "rm -f /%s", get_subdirectory_string(binaries[i]));
      } else {
        sprintf(str, "rm -f \"/%s\"", get_subdirectory_string(binaries[i]));
      }
      add_makefile_entry_to_file(filename, "uninstall", str);
    }
  }
  add_makefile_entry_to_file(filename, "uninstall", "rm -f ${PREFIX}/share/man/man1/${APP}.1.gz");
  if (is_library(project_name) == 0) {
    add_makefile_entry_to_file(filename, "uninstall", "rm -rf ${PREFIX}/share/${APP}");
    add_makefile_entry_to_file(filename, "uninstall", "rm -f ${PREFIX}/bin/${APP}");
  } else {
    add_makefile_entry_to_file(filename, "uninstall", "rm -f ${PREFIX}/${LIBDIR}/${LIBNAME}");
    add_makefile_entry_to_file(filename, "uninstall", "rm -f ${PREFIX}/${LIBDIR}/${APP}.so");
    add_makefile_entry_to_file(filename, "uninstall", "rm -f ${PREFIX}/${LIBDIR}/${SONAME}");
    add_makefile_entry_to_file(filename, "uninstall", "rm -rf ${PREFIX}/include/${APP}");
    add_makefile_entry_to_file(filename, "uninstall", "ldconfig");
  }
  if (strlen(commandline) == 0) {
    add_makefile_entry_to_file(filename, "uninstall", "rm -f ${PREFIX}/share/applications/${APP}.desktop");
    add_makefile_entry_to_file(filename, "uninstall", "rm -f ${PREFIX}/share/icons/hicolor/scalable/apps/${APP}.svg");
    add_makefile_entry_to_file(filename, "uninstall", "rm -f ${PREFIX}/share/pixmaps/${APP}.svg");
  }
}
```