user: What would the C source look like for the assembly code provided here:

```asm
<save_makefile_java>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0xc18,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0xc08(%rsp)
  xor    %eax,%eax
  lea    0x400(%rsp),%rsi
  lea    D107(%rip),%rdi
  call   <get_setting@plt>
  lea    0x200(%rsp),%rbp
  mov    %rbp,%rsi
  lea    D97(%rip),%rdi
  call   <get_setting@plt>
  lea    0x600(%rsp),%rsi
  lea    D101(%rip),%rdi
  call   <get_setting@plt>
  lea    0x800(%rsp),%rsi
  lea    D23(%rip),%rdi
  call   <get_setting@plt>
  lea    0xa00(%rsp),%rsi
  lea    D82(%rip),%rdi
  call   <get_setting@plt>
  lea    D52(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L64
L9:
  mov    0xc08(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L56
  add    $0xc18,%rsp
  pop    %rbx
  pop    %rbp
  ret
L64:
  lea    0x400(%rsp),%rdi
  call   <is_library@plt>
  test   %rax,%rax
  jne    L9
  lea    D77(%rip),%rsi
  mov    %rbx,%rdi
  call   <empty_makefile_section@plt>
  cmp    $0x1,%eax
  je     L68
L15:
  lea    D103(%rip),%rsi
  mov    %rbx,%rdi
  call   <empty_makefile_section@plt>
  cmp    $0x1,%eax
  jne    L9
  lea    0x800(%rsp),%r8
  lea    0xa00(%rsp),%rcx
  lea    0x600(%rsp),%rdx
  mov    %rsp,%rbp
  sub    $0x8,%rsp
  push   $0x2f
  mov    %r8,%r9
  lea    D81(%rip),%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
  mov    %rbp,%rdx
  lea    D103(%rip),%rsi
  mov    %rbx,%rdi
  call   <add_makefile_entry_to_file@plt>
  mov    %rbp,%rsp
  jmp    L9
L68:
  lea    0x800(%rsp),%r8
  lea    0xa00(%rsp),%rcx
  lea    0x600(%rsp),%rdx
  mov    %rsp,%rbp
  sub    $0x8,%rsp
  push   $0x2f
  mov    %r8,%r9
  lea    D81(%rip),%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
  mov    %rbp,%rdx
  lea    D77(%rip),%rsi
  mov    %rbx,%rdi
  call   <add_makefile_entry_to_file@plt>
  mov    %rbp,%rsp
  jmp    L15
L56:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D107
type: string
name: retrieve_data
arguments: label: D97
type: string
name: retrieve_data
arguments: label: D101
type: string
name: retrieve_data
arguments: label: D23
type: string
name: retrieve_data
arguments: label: D82
type: string
name: retrieve_data
arguments: label: D52
type: string
name: retrieve_data
arguments: label: D77
type: string
name: retrieve_data
arguments: label: D103
type: string
name: retrieve_data
arguments: label: D81
type: string

tool: D107: project name

tool: D97: project type

tool: D101: compile

tool: D23: source dir

tool: D82: build dir

tool: D52: java

tool: D77: all

tool: D103: debug

tool: D81: javac %s -d %s -sourcepath %s %s%c${APP}.java

assistant: ```c
void save_makefile_java(char *filename) {
  char str[512];
  char project_type[512];
  char project_name[512];
  char compile_args[512];
  char sourcedir[512];
  char build_dir[512];
  get_setting("project name", project_name);
  get_setting("project type", project_type);
  get_setting("compile", compile_args);
  get_setting("source dir", sourcedir);
  get_setting("build dir", build_dir);
  if (strcmp(project_type, "java") == 0) {
    if (is_library(project_name) == 0) {
      if (empty_makefile_section(filename, "all") == 1) {
        sprintf(str, "javac %s -d %s -sourcepath %s %s%c${APP}.java", compile_args, build_dir, sourcedir, sourcedir, '/');
        add_makefile_entry_to_file(filename, "all", str);
      }
      if (empty_makefile_section(filename, "debug") == 1) {
        sprintf(str, "javac %s -d %s -sourcepath %s %s%c${APP}.java", compile_args, build_dir, sourcedir, sourcedir, '/');
        add_makefile_entry_to_file(filename, "debug", str);
      }
    } else {
    }
  }
}
```