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

```asm
<save_makefile_java>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xc20,%rsp
  mov    %rdi,-0xc18(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x810(%rbp),%rax
  mov    %rax,%rsi
  lea    D92(%rip),%rax
  mov    %rax,%rdi
  call   <get_setting@plt>
  lea    -0xa10(%rbp),%rax
  mov    %rax,%rsi
  lea    D99(%rip),%rax
  mov    %rax,%rdi
  call   <get_setting@plt>
  lea    -0x610(%rbp),%rax
  mov    %rax,%rsi
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  call   <get_setting@plt>
  lea    -0x410(%rbp),%rax
  mov    %rax,%rsi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  call   <get_setting@plt>
  lea    -0x210(%rbp),%rax
  mov    %rax,%rsi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  call   <get_setting@plt>
  lea    -0xa10(%rbp),%rax
  lea    D41(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L38
  lea    -0x810(%rbp),%rax
  mov    %rax,%rdi
  call   <is_library@plt>
  test   %rax,%rax
  jne    L38
  mov    -0xc18(%rbp),%rax
  lea    D34(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <empty_makefile_section@plt>
  cmp    $0x1,%eax
  jne    L37
  lea    -0x410(%rbp),%rdi
  lea    -0x410(%rbp),%rsi
  lea    -0x210(%rbp),%rcx
  lea    -0x610(%rbp),%rdx
  lea    -0xc10(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x2f
  mov    %rdi,%r9
  mov    %rsi,%r8
  lea    D103(%rip),%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  add    $0x10,%rsp
  lea    -0xc10(%rbp),%rdx
  mov    -0xc18(%rbp),%rax
  lea    D34(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <add_makefile_entry_to_file@plt>
L37:
  mov    -0xc18(%rbp),%rax
  lea    D82(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <empty_makefile_section@plt>
  cmp    $0x1,%eax
  jne    L38
  lea    -0x410(%rbp),%rdi
  lea    -0x410(%rbp),%rsi
  lea    -0x210(%rbp),%rcx
  lea    -0x610(%rbp),%rdx
  lea    -0xc10(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x2f
  mov    %rdi,%r9
  mov    %rsi,%r8
  lea    D103(%rip),%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  add    $0x10,%rsp
  lea    -0xc10(%rbp),%rdx
  mov    -0xc18(%rbp),%rax
  lea    D82(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <add_makefile_entry_to_file@plt>
L38:
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L15
  call   <__stack_chk_fail@plt>
L15:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D92
type_infered: string
name: parse_data
arguments: data_tag: D99
type_infered: string
name: parse_data
arguments: data_tag: D20
type_infered: string
name: parse_data
arguments: data_tag: D23
type_infered: string
name: parse_data
arguments: data_tag: D48
type_infered: string
name: parse_data
arguments: data_tag: D41
type_infered: string
name: parse_data
arguments: data_tag: D34
type_infered: string
name: parse_data
arguments: data_tag: D103
type_infered: string
name: parse_data
arguments: data_tag: D82
type_infered: string

tool: D92: project name

tool: D99: project type

tool: D20: compile

tool: D23: source dir

tool: D48: build dir

tool: D41: java

tool: D34: all

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

tool: D82: debug

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