int save_debian(int no_of_binaries, char **binaries) {
  char debdir[512];
  char debsourcedir[512];
  char sourcedirectory[512];
  char mandir[512];
  char desktopdir[512];
  char directory[512];
  char commandstr[512];
  char commandline[512];
  char sourcedir[512];
  int retval = 0, i;
  get_setting("commandline", commandline);
  get_setting("source dir", sourcedir);
  get_setting("directory", directory);
  sprintf(debdir, "%s%c%s", directory, '/', "debian");
  if (directory_exists(debdir) == 0) {
    sprintf(commandstr, "%s %s", "mkdir", debdir);
    retval = system(commandstr);
  }
  sprintf(debsourcedir, "%s%c%s%csource", directory, '/', "debian", '/');
  if (directory_exists(debsourcedir) == 0) {
    sprintf(commandstr, "%s %s", "mkdir", debsourcedir);
    retval = system(commandstr);
  }
  sprintf(sourcedirectory, "%s%c%s", directory, '/', sourcedir);
  if (directory_exists(sourcedirectory) == 0) {
    sprintf(commandstr, "%s %s", "mkdir", sourcedirectory);
    retval = system(commandstr);
  }
  sprintf(mandir, "%s%cman", directory, '/');
  if (directory_exists(mandir) == 0) {
    sprintf(commandstr, "%s %s", "mkdir", mandir);
    retval = system(commandstr);
  }
  if (strlen(commandline) == 0) {
    sprintf(desktopdir, "%s%cdesktop", directory, '/');
    if (directory_exists(desktopdir) == 0) {
      sprintf(commandstr, "%s %s", "mkdir", desktopdir);
      retval = system(commandstr);
    }
  }
  int no_of_extensions = 31;
  char *extensions[] = {"c",
                        "cpp",
                        "h",
                        "py",
                        "vala",
                        "java",
                        "rbbas",
                        "rbuistate",
                        "rbmnu",
                        "rbfrm",
                        "rbtbar",
                        "rbvcp",
                        "rbres",
                        "ico",
                        "png",
                        "jpg",
                        "jpeg",
                        "gif",
                        "pl",
                        "vapi",
                        "scala",
                        "clj",
                        "xojo_code",
                        "xojo_project",
                        "xojo_uistate",
                        "xojo_menu",
                        "xojo_resources",
                        "xojo_window",
                        "xojo_toolbar",
                        "xojo_binary_project",
                        "pro"};
  for (i = 0; i < no_of_extensions; i++) {
    if (files_exist(directory, extensions[i]) != 0) {
      sprintf(commandstr, "cd %s; %s *.%s %s", directory, "mv", extensions[i],
              sourcedir);
      retval = system(commandstr);
    }
  }
  sprintf(commandstr, "cd %s; %s *.o *.pyc 2>&1", directory, "rm -f");
  retval = system(commandstr);
  save_compat();
  save_control();
  save_copyright(directory);
  save_rules(directory, no_of_binaries, binaries);
  save_manpages(directory);
  save_changelog(directory);
  save_include_binary(debsourcedir, no_of_binaries, binaries);
  save_format(debsourcedir);
  save_readme(directory);
  save_docs(directory);
  save_debian_build_script(directory);
  save_library_links(directory);
  save_library_dirs(directory);
  save_library_install(directory);
  return retval;
}


x86 assembly (clang, -O0):
<save_debian>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1320,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1214(%rbp)
lea    -0x1010(%rbp),%rsi
lea    0xd86(%rip),%rdi
mov    $0x0,%al
call   10b0 <get_setting@plt>
lea    -0x1210(%rbp),%rsi
lea    0xd7d(%rip),%rdi
mov    $0x0,%al
call   10b0 <get_setting@plt>
lea    -0xc10(%rbp),%rsi
lea    0xd73(%rip),%rdi
mov    $0x0,%al
call   10b0 <get_setting@plt>
lea    -0x210(%rbp),%rdi
lea    -0xc10(%rbp),%rdx
lea    0xd61(%rip),%rsi
mov    $0x2f,%ecx
lea    0xd5c(%rip),%r8
mov    $0x0,%al
call   1160 <sprintf@plt>
lea    -0x210(%rbp),%rdi
mov    $0x0,%al
call   10a0 <directory_exists@plt>
cmp    $0x0,%eax
jne    1321 <save_debian+0xd1>
lea    -0xe10(%rbp),%rdi
lea    -0x210(%rbp),%rcx
lea    0xe3e(%rip),%rsi
lea    0xd29(%rip),%rdx
mov    $0x0,%al
call   1160 <sprintf@plt>
lea    -0xe10(%rbp),%rdi
mov    $0x0,%al
call   1080 <system@plt>
mov    %eax,-0x1214(%rbp)
lea    -0x410(%rbp),%rdi
lea    -0xc10(%rbp),%rdx
lea    0xcff(%rip),%rsi
mov    $0x2f,%r9d
lea    0xce5(%rip),%r8
mov    %r9d,%ecx
mov    $0x0,%al
call   1160 <sprintf@plt>
lea    -0x410(%rbp),%rdi
mov    $0x0,%al
call   10a0 <directory_exists@plt>
cmp    $0x0,%eax
jne    139b <save_debian+0x14b>
lea    -0xe10(%rbp),%rdi
lea    -0x410(%rbp),%rcx
lea    0xdc4(%rip),%rsi
lea    0xcaf(%rip),%rdx
mov    $0x0,%al
call   1160 <sprintf@plt>
lea    -0xe10(%rbp),%rdi
mov    $0x0,%al
call   1080 <system@plt>
mov    %eax,-0x1214(%rbp)
lea    -0x610(%rbp),%rdi
lea    -0xc10(%rbp),%rdx
lea    -0x1210(%rbp),%r8
lea    0xc6a(%rip),%rsi
mov    $0x2f,%ecx
mov    $0x0,%al
call   1160 <sprintf@plt>
lea    -0x610(%rbp),%rdi
mov    $0x0,%al
call   10a0 <directory_exists@plt>
cmp    $0x0,%eax
jne    1411 <save_debian+0x1c1>
lea    -0xe10(%rbp),%rdi
lea    -0x610(%rbp),%rcx
lea    0xd4e(%rip),%rsi
lea    0xc39(%rip),%rdx
mov    $0x0,%al
call   1160 <sprintf@plt>
lea    -0xe10(%rbp),%rdi
mov    $0x0,%al
call   1080 <system@plt>
mov    %eax,-0x1214(%rbp)
lea    -0x810(%rbp),%rdi
lea    -0xc10(%rbp),%rdx
lea    0xc1e(%rip),%rsi
mov    $0x2f,%ecx
mov    $0x0,%al
call   1160 <sprintf@plt>
lea    -0x810(%rbp),%rdi
mov    $0x0,%al
call   10a0 <directory_exists@plt>
cmp    $0x0,%eax
jne    1480 <save_debian+0x230>
lea    -0xe10(%rbp),%rdi
lea    -0x810(%rbp),%rcx
lea    0xcdf(%rip),%rsi
lea    0xbca(%rip),%rdx
mov    $0x0,%al
call   1160 <sprintf@plt>
lea    -0xe10(%rbp),%rdi
mov    $0x0,%al
call   1080 <system@plt>
mov    %eax,-0x1214(%rbp)
lea    -0x1010(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x0,%rax
jne    150a <save_debian+0x2ba>
lea    -0xa10(%rbp),%rdi
lea    -0xc10(%rbp),%rdx
lea    0xba1(%rip),%rsi
mov    $0x2f,%ecx
mov    $0x0,%al
call   1160 <sprintf@plt>
lea    -0xa10(%rbp),%rdi
mov    $0x0,%al
call   10a0 <directory_exists@plt>
cmp    $0x0,%eax
jne    1505 <save_debian+0x2b5>
lea    -0xe10(%rbp),%rdi
lea    -0xa10(%rbp),%rcx
lea    0xc5a(%rip),%rsi
lea    0xb45(%rip),%rdx
mov    $0x0,%al
call   1160 <sprintf@plt>
lea    -0xe10(%rbp),%rdi
mov    $0x0,%al
call   1080 <system@plt>
mov    %eax,-0x1214(%rbp)
jmp    150a <save_debian+0x2ba>
movl   $0x1f,-0x121c(%rbp)
lea    -0x1320(%rbp),%rdi
lea    0x27fe(%rip),%rsi
mov    $0xf8,%edx
call   10c0 <memcpy@plt>
movl   $0x0,-0x1218(%rbp)
mov    -0x1218(%rbp),%eax
cmp    -0x121c(%rbp),%eax
jge    15d4 <save_debian+0x384>
lea    -0xc10(%rbp),%rdi
movslq -0x1218(%rbp),%rax
mov    -0x1320(%rbp,%rax,8),%rsi
ff
mov    $0x0,%al
call   1050 <files_exist@plt>
cmp    $0x0,%eax
je     15bb <save_debian+0x36b>
lea    -0xe10(%rbp),%rdi
lea    -0xc10(%rbp),%rdx
movslq -0x1218(%rbp),%rax
mov    -0x1320(%rbp,%rax,8),%r8
ff
lea    -0x1210(%rbp),%r9
lea    0xb98(%rip),%rsi
lea    0xba3(%rip),%rcx
mov    $0x0,%al
call   1160 <sprintf@plt>
lea    -0xe10(%rbp),%rdi
mov    $0x0,%al
call   1080 <system@plt>
mov    %eax,-0x1214(%rbp)
jmp    15c0 <save_debian+0x370>
mov    -0x1218(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1218(%rbp)
jmp    1536 <save_debian+0x2e6>
lea    -0xe10(%rbp),%rdi
lea    -0xc10(%rbp),%rdx
lea    0xb5d(%rip),%rsi
lea    0xb6f(%rip),%rcx
mov    $0x0,%al
call   1160 <sprintf@plt>
lea    -0xe10(%rbp),%rdi
mov    $0x0,%al
call   1080 <system@plt>
mov    %eax,-0x1214(%rbp)
mov    $0x0,%al
call   1100 <save_compat@plt>
mov    $0x0,%al
call   10d0 <save_control@plt>
lea    -0xc10(%rbp),%rdi
mov    $0x0,%al
call   10f0 <save_copyright@plt>
lea    -0xc10(%rbp),%rdi
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    $0x0,%al
call   1110 <save_rules@plt>
lea    -0xc10(%rbp),%rdi
mov    $0x0,%al
call   1120 <save_manpages@plt>
lea    -0xc10(%rbp),%rdi
mov    $0x0,%al
call   1140 <save_changelog@plt>
lea    -0x410(%rbp),%rdi
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    $0x0,%al
call   1070 <save_include_binary@plt>
lea    -0x410(%rbp),%rdi
mov    $0x0,%al
call   1040 <save_format@plt>
lea    -0xc10(%rbp),%rdi
mov    $0x0,%al
call   10e0 <save_readme@plt>
lea    -0xc10(%rbp),%rdi
mov    $0x0,%al
call   1030 <save_docs@plt>
lea    -0xc10(%rbp),%rdi
mov    $0x0,%al
call   1170 <save_debian_build_script@plt>
lea    -0xc10(%rbp),%rdi
mov    $0x0,%al
call   1090 <save_library_links@plt>
lea    -0xc10(%rbp),%rdi
mov    $0x0,%al
call   1150 <save_library_dirs@plt>
lea    -0xc10(%rbp),%rdi
mov    $0x0,%al
call   1130 <save_library_install@plt>
mov    -0x1214(%rbp),%eax
add    $0x1320,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<save_debian>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1218,%rsp
mov    %rsi,0x8(%rsp)
mov    %edi,0x4(%rsp)
lea    0xdaf(%rip),%rdi
lea    0x810(%rsp),%rsi
xor    %eax,%eax
call   10a0 <get_setting@plt>
lea    0xda5(%rip),%rdi
lea    0x410(%rsp),%rsi
xor    %eax,%eax
call   10a0 <get_setting@plt>
lea    0xd9a(%rip),%rdi
lea    0x210(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   10a0 <get_setting@plt>
lea    0xd8b(%rip),%rsi
lea    0xd8b(%rip),%r8
lea    0x1010(%rsp),%rbp
mov    %rbp,%rdi
mov    %rbx,%rdx
mov    $0x2f,%ecx
xor    %eax,%eax
call   1140 <sprintf@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1090 <directory_exists@plt>
test   %eax,%eax
jne    12f4 <save_debian+0xc4>
lea    0xe71(%rip),%rsi
lea    0xd5c(%rip),%rdx
lea    0x10(%rsp),%rbx
lea    0x1010(%rsp),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1140 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <system@plt>
lea    0xd3a(%rip),%rsi
lea    0xd26(%rip),%r8
lea    0x610(%rsp),%rbx
lea    0x210(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x2f,%ecx
mov    $0x2f,%r9d
xor    %eax,%eax
call   1140 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1090 <directory_exists@plt>
test   %eax,%eax
jne    1364 <save_debian+0x134>
lea    0xe01(%rip),%rsi
lea    0xcec(%rip),%rdx
lea    0x10(%rsp),%rbx
lea    0x610(%rsp),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1140 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <system@plt>
lea    0xcb6(%rip),%rsi
lea    0xe10(%rsp),%rbx
lea    0x210(%rsp),%rdx
lea    0x410(%rsp),%r8
mov    %rbx,%rdi
mov    $0x2f,%ecx
xor    %eax,%eax
call   1140 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1090 <directory_exists@plt>
test   %eax,%eax
jne    13cf <save_debian+0x19f>
lea    0xd96(%rip),%rsi
lea    0xc81(%rip),%rdx
lea    0x10(%rsp),%rbx
lea    0xe10(%rsp),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1140 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <system@plt>
lea    0xc6e(%rip),%rsi
lea    0xc10(%rsp),%rbx
lea    0x210(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x2f,%ecx
xor    %eax,%eax
call   1140 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1090 <directory_exists@plt>
test   %eax,%eax
je     1413 <save_debian+0x1e3>
cmpb   $0x0,0x810(%rsp)
jne    14af <save_debian+0x27f>
jmp    144c <save_debian+0x21c>
lea    0xd23(%rip),%rsi
lea    0xc0e(%rip),%rdx
lea    0x10(%rsp),%rbx
lea    0xc10(%rsp),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1140 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <system@plt>
cmpb   $0x0,0x810(%rsp)
jne    14af <save_debian+0x27f>
lea    0xbf9(%rip),%rsi
lea    0xa10(%rsp),%rbx
lea    0x210(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x2f,%ecx
xor    %eax,%eax
call   1140 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1090 <directory_exists@plt>
test   %eax,%eax
jne    14af <save_debian+0x27f>
lea    0xcb6(%rip),%rsi
lea    0xba1(%rip),%rdx
lea    0x10(%rsp),%rbx
lea    0xa10(%rsp),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1140 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <system@plt>
lea    0x286a(%rip),%r12
lea    0x210(%rsp),%rbx
lea    0x10(%rsp),%rbp
lea    0x410(%rsp),%r14
xor    %r13d,%r13d
jmp    14dd <save_debian+0x2ad>
add    $0x8,%r13
cmp    $0xf8,%r13
je     1520 <save_debian+0x2f0>
mov    0x0(%r13,%r12,1),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <files_exist@plt>
test   %eax,%eax
je     14d0 <save_debian+0x2a0>
mov    %rbp,%rdi
lea    0xc34(%rip),%rsi
mov    %rbx,%rdx
lea    0xc3c(%rip),%rcx
mov    %r15,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1140 <sprintf@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <system@plt>
jmp    14d0 <save_debian+0x2a0>
lea    0xc1f(%rip),%rsi
lea    0xc31(%rip),%rcx
lea    0x10(%rsp),%rbp
lea    0x210(%rsp),%r12
mov    %rbp,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1140 <sprintf@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <system@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   10e0 <save_compat@plt>
xor    %eax,%eax
call   10b0 <save_control@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   10d0 <save_copyright@plt>
mov    %r12,%rdi
mov    0x4(%rsp),%ebx
mov    %ebx,%esi
mov    0x8(%rsp),%rbp
mov    %rbp,%rdx
xor    %eax,%eax
call   10f0 <save_rules@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1100 <save_manpages@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1120 <save_changelog@plt>
lea    0x610(%rsp),%r15
mov    %r15,%rdi
mov    %ebx,%esi
mov    %rbp,%rdx
xor    %eax,%eax
call   1060 <save_include_binary@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <save_format@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   10c0 <save_readme@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <save_docs@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1150 <save_debian_build_script@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <save_library_links@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1130 <save_library_dirs@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1110 <save_library_install@plt>
mov    %r14d,%eax
add    $0x1218,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"commandline\00"
@.str.1 = [11 x i8] c"source dir\00"
@.str.2 = [10 x i8] c"directory\00"
@.str.3 = [7 x i8] c"%s%c%s\00"
@.str.4 = [7 x i8] c"debian\00"
@.str.5 = [6 x i8] c"%s %s\00"
@.str.6 = [6 x i8] c"mkdir\00"
@.str.7 = [15 x i8] c"%s%c%s%csource\00"
@.str.8 = [8 x i8] c"%s%cman\00"
@.str.9 = [12 x i8] c"%s%cdesktop\00"
@.str.10 = [2 x i8] c"c\00"
@.str.11 = [4 x i8] c"cpp\00"
@.str.12 = [2 x i8] c"h\00"
@.str.13 = [3 x i8] c"py\00"
@.str.14 = [5 x i8] c"vala\00"
@.str.15 = [5 x i8] c"java\00"
@.str.16 = [6 x i8] c"rbbas\00"
@.str.17 = [10 x i8] c"rbuistate\00"
@.str.18 = [6 x i8] c"rbmnu\00"
@.str.19 = [6 x i8] c"rbfrm\00"
@.str.20 = [7 x i8] c"rbtbar\00"
@.str.21 = [6 x i8] c"rbvcp\00"
@.str.22 = [6 x i8] c"rbres\00"
@.str.23 = [4 x i8] c"ico\00"
@.str.24 = [4 x i8] c"png\00"
@.str.25 = [4 x i8] c"jpg\00"
@.str.26 = [5 x i8] c"jpeg\00"
@.str.27 = [4 x i8] c"gif\00"
@.str.28 = [3 x i8] c"pl\00"
@.str.29 = [5 x i8] c"vapi\00"
@.str.30 = [6 x i8] c"scala\00"
@.str.31 = [4 x i8] c"clj\00"
@.str.32 = [10 x i8] c"xojo_code\00"
@.str.33 = [13 x i8] c"xojo_project\00"
@.str.34 = [13 x i8] c"xojo_uistate\00"
@.str.35 = [10 x i8] c"xojo_menu\00"
@.str.36 = [15 x i8] c"xojo_resources\00"
@.str.37 = [12 x i8] c"xojo_window\00"
@.str.38 = [13 x i8] c"xojo_toolbar\00"
@.str.39 = [20 x i8] c"xojo_binary_project\00"
@.str.40 = [4 x i8] c"pro\00"
@__const.save_debian.extensions = [31 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.33, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.35, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.36, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.37, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.38, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.39, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.40, i32 0, i32 0)]
@.str.41 = [18 x i8] c"cd %s; %s *.%s %s\00"
@.str.42 = [3 x i8] c"mv\00"
@.str.43 = [25 x i8] c"cd %s; %s *.o *.pyc 2>&1\00"
@.str.44 = [6 x i8] c"rm -f\00"
define i32 @save_debian(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca [512 x i8]
%6 = alloca [512 x i8]
%7 = alloca [512 x i8]
%8 = alloca [512 x i8]
%9 = alloca [512 x i8]
%10 = alloca [512 x i8]
%11 = alloca [512 x i8]
%12 = alloca [512 x i8]
%13 = alloca [512 x i8]
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca [31 x i8*]
store i32 %0, i32* %3
store i8** %1, i8*** %4
store i32 0, i32* %14
%18 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%19 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @get_setting to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %18)
%20 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%21 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @get_setting to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %20)
%22 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%23 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @get_setting to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %22)
%24 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%25 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%26 = call i32 (i8*, i8*, ...) @sprintf(i8* %24, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* %25, i32 47, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%27 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%28 = call i32 (i8*, ...) bitcast (i32 (...)* @directory_exists to i32 (i8*, ...)*)(i8* %27)
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %36
30: ; preds = %2
%31 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%32 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%33 = call i32 (i8*, i8*, ...) @sprintf(i8* %31, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %32)
%34 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%35 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %34)
store i32 %35, i32* %14
br label %36
36: ; preds = %30, %2
%37 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%38 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%39 = call i32 (i8*, i8*, ...) @sprintf(i8* %37, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %38, i32 47, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 47)
%40 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%41 = call i32 (i8*, ...) bitcast (i32 (...)* @directory_exists to i32 (i8*, ...)*)(i8* %40)
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %49
43: ; preds = %36
%44 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%45 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%46 = call i32 (i8*, i8*, ...) @sprintf(i8* %44, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %45)
%47 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%48 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %47)
store i32 %48, i32* %14
br label %49
49: ; preds = %43, %36
%50 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%51 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%52 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%53 = call i32 (i8*, i8*, ...) @sprintf(i8* %50, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* %51, i32 47, i8* %52)
%54 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%55 = call i32 (i8*, ...) bitcast (i32 (...)* @directory_exists to i32 (i8*, ...)*)(i8* %54)
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %63
57: ; preds = %49
%58 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%59 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%60 = call i32 (i8*, i8*, ...) @sprintf(i8* %58, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %59)
%61 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%62 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %61)
store i32 %62, i32* %14
br label %63
63: ; preds = %57, %49
%64 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%65 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%66 = call i32 (i8*, i8*, ...) @sprintf(i8* %64, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* %65, i32 47)
%67 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%68 = call i32 (i8*, ...) bitcast (i32 (...)* @directory_exists to i32 (i8*, ...)*)(i8* %67)
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %76
70: ; preds = %63
%71 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%72 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%73 = call i32 (i8*, i8*, ...) @sprintf(i8* %71, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %72)
%74 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%75 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %74)
store i32 %75, i32* %14
br label %76
76: ; preds = %70, %63
%77 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%78 = call i64 @strlen(i8* %77)
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %94
80: ; preds = %76
%81 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%82 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%83 = call i32 (i8*, i8*, ...) @sprintf(i8* %81, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i8* %82, i32 47)
%84 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%85 = call i32 (i8*, ...) bitcast (i32 (...)* @directory_exists to i32 (i8*, ...)*)(i8* %84)
%86 = icmp eq i32 %85, 0
br i1 %86, label %87, label %93
87: ; preds = %80
%88 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%89 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%90 = call i32 (i8*, i8*, ...) @sprintf(i8* %88, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %89)
%91 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%92 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %91)
store i32 %92, i32* %14
br label %93
93: ; preds = %87, %80
br label %94
94: ; preds = %93, %76
store i32 31, i32* %16
%95 = bitcast [31 x i8*]* %17 to i8*
store i32 0, i32* %15
br label %96
96: ; preds = %120, %94
%97 = load i32, i32* %15
%98 = load i32, i32* %16
%99 = icmp slt i32 %97, %98
br i1 %99, label %100, label %123
100: ; preds = %96
%101 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%102 = load i32, i32* %15
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [31 x i8*], [31 x i8*]* %17, i64 0, i64 %103
%105 = load i8*, i8** %104
%106 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @files_exist to i32 (i8*, i8*, ...)*)(i8* %101, i8* %105)
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %119
108: ; preds = %100
%109 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%110 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%111 = load i32, i32* %15
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [31 x i8*], [31 x i8*]* %17, i64 0, i64 %112
%114 = load i8*, i8** %113
%115 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%116 = call i32 (i8*, i8*, ...) @sprintf(i8* %109, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.41, i64 0, i64 0), i8* %110, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.42, i64 0, i64 0), i8* %114, i8* %115)
%117 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%118 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %117)
store i32 %118, i32* %14
br label %119
119: ; preds = %108, %100
br label %120
120: ; preds = %119
%121 = load i32, i32* %15
%122 = add nsw i32 %121, 1
store i32 %122, i32* %15
br label %96
123: ; preds = %96
%124 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%125 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%126 = call i32 (i8*, i8*, ...) @sprintf(i8* %124, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.43, i64 0, i64 0), i8* %125, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.44, i64 0, i64 0))
%127 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%128 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %127)
store i32 %128, i32* %14
%129 = call i32 (...) @save_compat()
%130 = call i32 (...) @save_control()
%131 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%132 = call i32 (i8*, ...) bitcast (i32 (...)* @save_copyright to i32 (i8*, ...)*)(i8* %131)
%133 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%134 = load i32, i32* %3
%135 = load i8**, i8*** %4
%136 = call i32 (i8*, i32, i8**, ...) bitcast (i32 (...)* @save_rules to i32 (i8*, i32, i8**, ...)*)(i8* %133, i32 %134, i8** %135)
%137 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%138 = call i32 (i8*, ...) bitcast (i32 (...)* @save_manpages to i32 (i8*, ...)*)(i8* %137)
%139 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%140 = call i32 (i8*, ...) bitcast (i32 (...)* @save_changelog to i32 (i8*, ...)*)(i8* %139)
%141 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%142 = load i32, i32* %3
%143 = load i8**, i8*** %4
%144 = call i32 (i8*, i32, i8**, ...) bitcast (i32 (...)* @save_include_binary to i32 (i8*, i32, i8**, ...)*)(i8* %141, i32 %142, i8** %143)
%145 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%146 = call i32 (i8*, ...) bitcast (i32 (...)* @save_format to i32 (i8*, ...)*)(i8* %145)
%147 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%148 = call i32 (i8*, ...) bitcast (i32 (...)* @save_readme to i32 (i8*, ...)*)(i8* %147)
%149 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%150 = call i32 (i8*, ...) bitcast (i32 (...)* @save_docs to i32 (i8*, ...)*)(i8* %149)
%151 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%152 = call i32 (i8*, ...) bitcast (i32 (...)* @save_debian_build_script to i32 (i8*, ...)*)(i8* %151)
%153 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%154 = call i32 (i8*, ...) bitcast (i32 (...)* @save_library_links to i32 (i8*, ...)*)(i8* %153)
%155 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%156 = call i32 (i8*, ...) bitcast (i32 (...)* @save_library_dirs to i32 (i8*, ...)*)(i8* %155)
%157 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%158 = call i32 (i8*, ...) bitcast (i32 (...)* @save_library_install to i32 (i8*, ...)*)(i8* %157)
%159 = load i32, i32* %14
ret i32 %159
}

LLVM IR (-O2):
@.str = [12 x i8] c"commandline\00"
@.str.1 = [11 x i8] c"source dir\00"
@.str.2 = [10 x i8] c"directory\00"
@.str.3 = [7 x i8] c"%s%c%s\00"
@.str.4 = [7 x i8] c"debian\00"
@.str.5 = [6 x i8] c"%s %s\00"
@.str.6 = [6 x i8] c"mkdir\00"
@.str.7 = [15 x i8] c"%s%c%s%csource\00"
@.str.8 = [8 x i8] c"%s%cman\00"
@.str.9 = [12 x i8] c"%s%cdesktop\00"
@.str.10 = [2 x i8] c"c\00"
@.str.11 = [4 x i8] c"cpp\00"
@.str.12 = [2 x i8] c"h\00"
@.str.13 = [3 x i8] c"py\00"
@.str.14 = [5 x i8] c"vala\00"
@.str.15 = [5 x i8] c"java\00"
@.str.16 = [6 x i8] c"rbbas\00"
@.str.17 = [10 x i8] c"rbuistate\00"
@.str.18 = [6 x i8] c"rbmnu\00"
@.str.19 = [6 x i8] c"rbfrm\00"
@.str.20 = [7 x i8] c"rbtbar\00"
@.str.21 = [6 x i8] c"rbvcp\00"
@.str.22 = [6 x i8] c"rbres\00"
@.str.23 = [4 x i8] c"ico\00"
@.str.24 = [4 x i8] c"png\00"
@.str.25 = [4 x i8] c"jpg\00"
@.str.26 = [5 x i8] c"jpeg\00"
@.str.27 = [4 x i8] c"gif\00"
@.str.28 = [3 x i8] c"pl\00"
@.str.29 = [5 x i8] c"vapi\00"
@.str.30 = [6 x i8] c"scala\00"
@.str.31 = [4 x i8] c"clj\00"
@.str.32 = [10 x i8] c"xojo_code\00"
@.str.33 = [13 x i8] c"xojo_project\00"
@.str.34 = [13 x i8] c"xojo_uistate\00"
@.str.35 = [10 x i8] c"xojo_menu\00"
@.str.36 = [15 x i8] c"xojo_resources\00"
@.str.37 = [12 x i8] c"xojo_window\00"
@.str.38 = [13 x i8] c"xojo_toolbar\00"
@.str.39 = [20 x i8] c"xojo_binary_project\00"
@.str.40 = [4 x i8] c"pro\00"
@__const.save_debian.extensions = [31 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.33, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.35, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.36, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.37, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.38, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.39, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.40, i32 0, i32 0)]
@.str.41 = [18 x i8] c"cd %s; %s *.%s %s\00"
@.str.42 = [3 x i8] c"mv\00"
@.str.43 = [25 x i8] c"cd %s; %s *.o *.pyc 2>&1\00"
@.str.44 = [6 x i8] c"rm -f\00"
define i32 @save_debian(i32 %0, i8** %1) {
%3 = alloca [512 x i8]
%4 = alloca [512 x i8]
%5 = alloca [512 x i8]
%6 = alloca [512 x i8]
%7 = alloca [512 x i8]
%8 = alloca [512 x i8]
%9 = alloca [512 x i8]
%10 = alloca [512 x i8]
%11 = alloca [512 x i8]
%12 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%13 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%14 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%15 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%16 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%17 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%18 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%19 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%20 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%21 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @get_setting to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %19)
%22 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @get_setting to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %20)
%23 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @get_setting to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %17)
%24 = call i32 (i8*, i8*, ...) @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* %17, i32 47, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%25 = call i32 (i8*, ...) bitcast (i32 (...)* @directory_exists to i32 (i8*, ...)*)(i8* %12)
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %2
%28 = call i32 (i8*, i8*, ...) @sprintf(i8* %18, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %12)
%29 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %18)
br label %30
30: ; preds = %27, %2
%31 = call i32 (i8*, i8*, ...) @sprintf(i8* %13, i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %17, i32 47, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 47)
%32 = call i32 (i8*, ...) bitcast (i32 (...)* @directory_exists to i32 (i8*, ...)*)(i8* %13)
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %30
%35 = call i32 (i8*, i8*, ...) @sprintf(i8* %18, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %13)
%36 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %18)
br label %37
37: ; preds = %34, %30
%38 = call i32 (i8*, i8*, ...) @sprintf(i8* %14, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* %17, i32 47, i8* %20)
%39 = call i32 (i8*, ...) bitcast (i32 (...)* @directory_exists to i32 (i8*, ...)*)(i8* %14)
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %37
%42 = call i32 (i8*, i8*, ...) @sprintf(i8* %18, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %14)
%43 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %18)
br label %44
44: ; preds = %41, %37
%45 = call i32 (i8*, i8*, ...) @sprintf(i8* %15, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* %17, i32 47)
%46 = call i32 (i8*, ...) bitcast (i32 (...)* @directory_exists to i32 (i8*, ...)*)(i8* %15)
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %44
%49 = call i32 (i8*, i8*, ...) @sprintf(i8* %18, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %15)
%50 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %18)
br label %51
51: ; preds = %48, %44
%52 = load i8, i8* %19
%53 = icmp eq i8 %52, 0
br i1 %53, label %54, label %61
54: ; preds = %51
%55 = call i32 (i8*, i8*, ...) @sprintf(i8* %16, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i8* %17, i32 47)
%56 = call i32 (i8*, ...) bitcast (i32 (...)* @directory_exists to i32 (i8*, ...)*)(i8* %16)
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = call i32 (i8*, i8*, ...) @sprintf(i8* %18, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %16)
%60 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %18)
br label %61
61: ; preds = %54, %58, %51
br label %62
62: ; preds = %61, %71
%63 = phi i64 [ %72, %71 ], [ 0, %61 ]
%64 = getelementptr inbounds [31 x i8*], [31 x i8*]* @__const.save_debian.extensions, i64 0, i64 %63
%65 = load i8*, i8** %64
%66 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @files_exist to i32 (i8*, i8*, ...)*)(i8* %17, i8* %65)
%67 = icmp eq i32 %66, 0
br i1 %67, label %71, label %68
68: ; preds = %62
%69 = call i32 (i8*, i8*, ...) @sprintf(i8* %18, i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.41, i64 0, i64 0), i8* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.42, i64 0, i64 0), i8* %65, i8* %20)
%70 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %18)
br label %71
71: ; preds = %62, %68
%72 = add nuw nsw i64 %63, 1
%73 = icmp eq i64 %72, 31
br i1 %73, label %74, label %62
74: ; preds = %71
%75 = call i32 (i8*, i8*, ...) @sprintf(i8* %18, i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.43, i64 0, i64 0), i8* %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.44, i64 0, i64 0))
%76 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %18)
%77 = call i32 (...) @save_compat()
%78 = call i32 (...) @save_control()
%79 = call i32 (i8*, ...) bitcast (i32 (...)* @save_copyright to i32 (i8*, ...)*)(i8* %17)
%80 = call i32 (i8*, i32, i8**, ...) bitcast (i32 (...)* @save_rules to i32 (i8*, i32, i8**, ...)*)(i8* %17, i32 %0, i8** %1)
%81 = call i32 (i8*, ...) bitcast (i32 (...)* @save_manpages to i32 (i8*, ...)*)(i8* %17)
%82 = call i32 (i8*, ...) bitcast (i32 (...)* @save_changelog to i32 (i8*, ...)*)(i8* %17)
%83 = call i32 (i8*, i32, i8**, ...) bitcast (i32 (...)* @save_include_binary to i32 (i8*, i32, i8**, ...)*)(i8* %13, i32 %0, i8** %1)
%84 = call i32 (i8*, ...) bitcast (i32 (...)* @save_format to i32 (i8*, ...)*)(i8* %13)
%85 = call i32 (i8*, ...) bitcast (i32 (...)* @save_readme to i32 (i8*, ...)*)(i8* %17)
%86 = call i32 (i8*, ...) bitcast (i32 (...)* @save_docs to i32 (i8*, ...)*)(i8* %17)
%87 = call i32 (i8*, ...) bitcast (i32 (...)* @save_debian_build_script to i32 (i8*, ...)*)(i8* %17)
%88 = call i32 (i8*, ...) bitcast (i32 (...)* @save_library_links to i32 (i8*, ...)*)(i8* %17)
%89 = call i32 (i8*, ...) bitcast (i32 (...)* @save_library_dirs to i32 (i8*, ...)*)(i8* %17)
%90 = call i32 (i8*, ...) bitcast (i32 (...)* @save_library_install to i32 (i8*, ...)*)(i8* %17)
ret i32 %76
}