user: Demonstrate the C code that generates the assembly output below:

```asm
<save_makefile_java>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  lea    D51(%rip),%rdi
  push   %rbx
  sub    $0xc18,%rsp
  lea    0x400(%rsp),%r13
  lea    0x200(%rsp),%r12
  mov    %fs:0x28,%rax
  mov    %rax,0xc08(%rsp)
  xor    %eax,%eax
  mov    %r13,%rsi
  lea    0x600(%rsp),%r14
  lea    0x800(%rsp),%rbx
  call   <get_setting@plt>
  mov    %r12,%rsi
  lea    D74(%rip),%rdi
  lea    0xa00(%rsp),%r15
  call   <get_setting@plt>
  mov    %r14,%rsi
  lea    D61(%rip),%rdi
  call   <get_setting@plt>
  mov    %rbx,%rsi
  lea    D14(%rip),%rdi
  call   <get_setting@plt>
  mov    %r15,%rsi
  lea    D95(%rip),%rdi
  call   <get_setting@plt>
  lea    D39(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L23
L54:
  mov    0xc08(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L53
  add    $0xc18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L23:
  mov    %r13,%rdi
  call   <is_library@plt>
  test   %rax,%rax
  jne    L54
  lea    D92(%rip),%r12
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <empty_makefile_section@plt>
  cmp    $0x1,%eax
  je     L18
L62:
  lea    D89(%rip),%r12
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <empty_makefile_section@plt>
  cmp    $0x1,%eax
  jne    L54
  mov    %rsp,%r13
  sub    $0x8,%rsp
  mov    %rbx,%r9
  mov    %rbx,%r8
  push   $0x2f
  mov    %r15,%rcx
  mov    %r14,%rdx
  lea    D65(%rip),%rsi
  mov    %r13,%rdi
  call   <sprintf@plt>
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <add_makefile_entry_to_file@plt>
  mov    %r13,%rsp
  jmp    L54
  nopl   (%rax)
L18:
  mov    %rsp,%r13
  sub    $0x8,%rsp
  mov    %rbx,%r9
  mov    %rbx,%r8
  push   $0x2f
  mov    %r15,%rcx
  mov    %r14,%rdx
  lea    D65(%rip),%rsi
  mov    %r13,%rdi
  call   <sprintf@plt>
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <add_makefile_entry_to_file@plt>
  mov    %r13,%rsp
  jmp    L62
L53:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D51
type_infered: string
name: parse_data
arguments: data_tag: D74
type_infered: string
name: parse_data
arguments: data_tag: D61
type_infered: string
name: parse_data
arguments: data_tag: D14
type_infered: string
name: parse_data
arguments: data_tag: D95
type_infered: string
name: parse_data
arguments: data_tag: D39
type_infered: string
name: parse_data
arguments: data_tag: D92
type_infered: string
name: parse_data
arguments: data_tag: D89
type_infered: string
name: parse_data
arguments: data_tag: D65
type_infered: string

tool: D51: project name

tool: D74: project type

tool: D61: compile

tool: D14: source dir

tool: D95: build dir

tool: D39: java

tool: D92: all

tool: D89: debug

tool: D65: 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 {
    }
  }
}
```