#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ advancedMenu();
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ system(char *);
int romMenu(void) {
  int user_key;
  system("@cls||clear");
  printf("=======================================\n");
  printf("   ROM Menu                       |\n");
  printf("=======================================\n");
  printf("| [1] Create workspace            |\n");
  printf("| [2] Extract ROM.zip             |\n");
  printf("| [3] Extract boot.img            |\n");
  printf("| [4] Repack boot.img             |\n");
  printf("| [5] Extract system.img          |\n");
  printf("| [6] Extract system.new.dat      |\n");
  printf("| [7] Delete workspace            |\n");
  printf("| [8] Install SuperSU(root)       |\n");
  printf("| [9] Information about menu      |\n");
  printf("| [10] Enter to advanced ROM menu |\n");
  printf("=======================================\n");
  printf("[0] Exit\n");
  printf("\nWhat you want?: ");
  scanf("%d", &user_key);
  switch (user_key) {
  case 9:
    getchar();
    printf("This is information about ROM Menu.\n");
    printf("1. For working with ROM's you must create personal workspace. "
           "Press [1] to do it.\n");
    printf("2. If you need extract .zip with you ROM, place him to 'workspace' "
           "folder, then press [2].\n");
    printf("3. If you need extract boot.img, press [3].\n");
    printf("4. For repacking boot.img press [4]\n");
    printf("5. When you want unpack some images (for example system.img), use "
           "this feature - [5]\n");
    printf("6. For unpacking system.new.dat, press [6]. // Repack feature in "
           "progress...\n");
    printf("7. If you tired of your workspace, you can delete it. Just press "
           "[7]\n");
    printf(
        "8. Also you can install SuperSU in your ROM. Press [8] to do it.\n");
    printf("10. I think it doesn't need to explain... And next items too.\n");
    getchar();
    return romMenu();
    break;
  case 0:
    printf("Goodbye ;P\n");
    return 0;
  case 1: {
    system("mkdir workspace && cd workspace ");
    printf("Done. Replace your ROMZIP in on 'workspace' folder\n");
    getchar();
    break;
  }
  case 2: {
    system("cd workspace && unzip *.zip && cd ..");
    printf("\n\tROM is unzipped\n");
    getchar();
    break;
  }
  case 3: {
    system("cd ~/*/workspace/ && mkdir boot");
    system("cp ~/*/insides/boot/* ~/*/workspace/boot");
    printf("\tUnpacking boot.img\n");
    system("cd ~/*/workspace/ && cp boot.img ~/*/workspace/boot");
    system("cd ~/*/workspace/boot && ./unpackbootimg -i boot.img");
    printf("\tMaking 'ramdisk' directory\n");
    system("cd ~/*/workspace/boot && mkdir ramdisk");
    printf("\tReplacing boot.img-ramdisk.gz to 'ramdisk'\n");
    system("cd ~/*/workspace/boot && mv boot.img-ramdisk.gz ramdisk");
    printf("Unpacking ramdisk\n");
    system("cd ~/*/workspace/boot/ramdisk && gzip -dc boot.img-ramdisk.gz | "
           "cpio -i");
    printf("\n\tboot.img and ramdisk ready\n");
    getchar();
    break;
  }
  case 4: {
    printf("\tRepacking ramdisk\n");
    system("cd ~/*/workspace/boot/ && ./mkbootfs ./ramdisk | gzip > "
           "boot.img-ramdisk.gz");
    printf("\tRepacking boot.img\n");
    system("cd ~/*/workspace/boot/ && ./mkbootimg --cmdline "
           "'no_console_suspend=1 console=null' --kernel boot.img-kernel "
           "--ramdisk boot.img-ramdisk.gz -o boot-new.img");
    printf("\tboot-new.img ready!\n");
    getchar();
    system("cd ~/*/workspace/");
    break;
  }
  case 5: {
    printf("\t\nPut your system.img in ROM folder.\n");
    getchar();
    printf("\t\nI'm working! Please wait!\n");
    system("cd ~/*/workspace");
    system("cp ~/*/workspace/system.img ~/Universal_Tool/");
    system("mkdir extractedsystem && sudo mount -t ext4 -o loop system.img "
           "extractedsystem");
    printf("\tDone. .img file extracted to Universal_Tool/extractedsystem/\n");
    getchar();
    break;
  }
  case 6: {
    system("cd ~/*/insides/rom/ && cp sdat2img/* ~/Universal_Tool/workspace/ ");
    printf("Press any key to continue");
    getchar();
    system("cd ~/*/workspace/ && ./sdat2img.py system.transfer.list "
           "system.new.dat system.img");
    getchar();
    break;
  }
  case 7:
    system(
        "cd ~/Universal_Tool/ && rm -rf workspace && rm -rf extractedsystem");
    break;
  case 8: {
    getchar();
    system("cp ~/*/insides/rom/supersu ~/*/workspace/system/priv-app");
    printf("\tDone\n");
    getchar();
    break;
  }
  case 10:
    advancedMenu();
    break;
  default:
    printf("Make a choice!\n");
  }
  return romMenu();
}


x86 assembly (clang, -O0):
<romMenu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    0xebd(%rip),%rdi
call   1030 <system@plt>
lea    0xebd(%rip),%rdi
mov    %rdi,-0x18(%rbp)
call   1040 <printf@plt>
lea    0xed6(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1040 <printf@plt>
lea    0xee6(%rip),%rdi
call   1040 <printf@plt>
lea    0xeff(%rip),%rdi
call   1040 <printf@plt>
lea    0xf18(%rip),%rdi
call   1040 <printf@plt>
lea    0xf31(%rip),%rdi
call   1040 <printf@plt>
lea    0xf4a(%rip),%rdi
call   1040 <printf@plt>
lea    0xf63(%rip),%rdi
call   1040 <printf@plt>
lea    0xf7c(%rip),%rdi
call   1040 <printf@plt>
lea    0xf95(%rip),%rdi
call   1040 <printf@plt>
lea    0xfae(%rip),%rdi
call   1040 <printf@plt>
lea    0xfc7(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1040 <printf@plt>
lea    0xfd7(%rip),%rdi
call   1040 <printf@plt>
lea    0xfd5(%rip),%rdi
call   1040 <printf@plt>
lea    0xfdb(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    %rax,-0x10(%rbp)
sub    $0xa,%rax
ja     1524 <romMenu+0x3c4>
mov    -0x10(%rbp),%rax
lea    0xda2(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1050 <getchar@plt>
lea    0xfa2(%rip),%rdi
call   1040 <printf@plt>
lea    0xfbb(%rip),%rdi
call   1040 <printf@plt>
lea    0x1002(%rip),%rdi
call   1040 <printf@plt>
lea    0x1052(%rip),%rdi
call   1040 <printf@plt>
lea    0x1073(%rip),%rdi
call   1040 <printf@plt>
lea    0x108c(%rip),%rdi
call   1040 <printf@plt>
lea    0x10d6(%rip),%rdi
call   1040 <printf@plt>
lea    0x1118(%rip),%rdi
call   1040 <printf@plt>
lea    0x1152(%rip),%rdi
call   1040 <printf@plt>
lea    0x1188(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
call   1080 <romMenu@plt>
mov    %eax,-0x4(%rbp)
jmp    1538 <romMenu+0x3d8>
lea    0x11a7(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1538 <romMenu+0x3d8>
lea    0x119b(%rip),%rdi
call   1030 <system@plt>
lea    0x11b0(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
jmp    1530 <romMenu+0x3d0>
lea    0x11cc(%rip),%rdi
call   1030 <system@plt>
lea    0x11e5(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
jmp    1530 <romMenu+0x3d0>
lea    0x11e0(%rip),%rdi
call   1030 <system@plt>
lea    0x11f4(%rip),%rdi
call   1030 <system@plt>
lea    0x1211(%rip),%rdi
call   1040 <printf@plt>
lea    0x121a(%rip),%rdi
call   1030 <system@plt>
lea    0x1242(%rip),%rdi
call   1030 <system@plt>
lea    0x126b(%rip),%rdi
call   1040 <printf@plt>
lea    0x127c(%rip),%rdi
call   1030 <system@plt>
lea    0x1297(%rip),%rdi
call   1040 <printf@plt>
lea    0x12b8(%rip),%rdi
call   1030 <system@plt>
lea    0x12e4(%rip),%rdi
call   1040 <printf@plt>
lea    0x12eb(%rip),%rdi
call   1030 <system@plt>
lea    0x1327(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
jmp    1530 <romMenu+0x3d0>
lea    0x132d(%rip),%rdi
call   1040 <printf@plt>
lea    0x1335(%rip),%rdi
call   1030 <system@plt>
lea    0x1375(%rip),%rdi
call   1040 <printf@plt>
lea    0x137e(%rip),%rdi
call   1030 <system@plt>
lea    0x140d(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
lea    0x1410(%rip),%rdi
call   1030 <system@plt>
jmp    1530 <romMenu+0x3d0>
lea    0x1411(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
lea    0x1424(%rip),%rdi
call   1040 <printf@plt>
lea    0x1435(%rip),%rdi
call   1030 <system@plt>
lea    0x143a(%rip),%rdi
call   1030 <system@plt>
lea    0x145c(%rip),%rdi
call   1030 <system@plt>
lea    0x149f(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
jmp    1530 <romMenu+0x3d0>
lea    0x14c6(%rip),%rdi
call   1030 <system@plt>
lea    0x14fc(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
lea    0x1503(%rip),%rdi
call   1030 <system@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
jmp    1530 <romMenu+0x3d0>
lea    0x153d(%rip),%rdi
call   1030 <system@plt>
jmp    1530 <romMenu+0x3d0>
mov    $0x0,%al
call   1050 <getchar@plt>
lea    0x1568(%rip),%rdi
call   1030 <system@plt>
lea    0x1595(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
jmp    1530 <romMenu+0x3d0>
mov    $0x0,%al
call   1070 <advancedMenu@plt>
jmp    1530 <romMenu+0x3d0>
lea    0x1578(%rip),%rdi
call   1040 <printf@plt>
call   1080 <romMenu@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<romMenu>:
push   %rbx
sub    $0x10,%rsp
lea    0xeb0(%rip),%rdi
call   1040 <system@plt>
lea    0x14a1(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x1306(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x1316(%rip),%rdi
call   1030 <puts@plt>
lea    0x132e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1346(%rip),%rdi
call   1030 <puts@plt>
lea    0x135e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1376(%rip),%rdi
call   1030 <puts@plt>
lea    0x138e(%rip),%rdi
call   1030 <puts@plt>
lea    0x13a6(%rip),%rdi
call   1030 <puts@plt>
lea    0x13be(%rip),%rdi
call   1030 <puts@plt>
lea    0x13d6(%rip),%rdi
call   1030 <puts@plt>
lea    0x13ee(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x1426(%rip),%rdi
call   1030 <puts@plt>
lea    0xe01(%rip),%rdi
call   1050 <printf@plt>
lea    0xe07(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1070 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0xa,%rax
ja     1278 <romMenu+0x108>
lea    0xda2(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x157d(%rip),%rdi
call   1030 <puts@plt>
jmp    14d4 <romMenu+0x364>
lea    0x17fe(%rip),%rdi
call   1030 <puts@plt>
jmp    14cf <romMenu+0x35f>
lea    0xdbd(%rip),%rdi
call   1040 <system@plt>
lea    0x151c(%rip),%rdi
jmp    14c3 <romMenu+0x353>
lea    0xdc6(%rip),%rdi
call   1040 <system@plt>
lea    0x14f2(%rip),%rdi
jmp    14c3 <romMenu+0x353>
lea    0xdd3(%rip),%rdi
call   1040 <system@plt>
lea    0xde7(%rip),%rdi
call   1040 <system@plt>
lea    0x1443(%rip),%rdi
call   1030 <puts@plt>
lea    0xdf8(%rip),%rdi
call   1040 <system@plt>
lea    0xe20(%rip),%rdi
call   1040 <system@plt>
lea    0x1433(%rip),%rdi
call   1030 <puts@plt>
lea    0xe3d(%rip),%rdi
call   1040 <system@plt>
lea    0x1437(%rip),%rdi
call   1030 <puts@plt>
lea    0xe4c(%rip),%rdi
call   1040 <system@plt>
lea    0x144b(%rip),%rdi
call   1030 <puts@plt>
lea    0xe6c(%rip),%rdi
call   1040 <system@plt>
lea    0x1445(%rip),%rdi
jmp    14c3 <romMenu+0x353>
lea    0x138f(%rip),%rdi
call   1030 <puts@plt>
lea    0xe90(%rip),%rdi
call   1040 <system@plt>
lea    0x138a(%rip),%rdi
call   1030 <puts@plt>
lea    0xec4(%rip),%rdi
call   1040 <system@plt>
lea    0x1386(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1060 <getchar@plt>
lea    0xf40(%rip),%rdi
call   1040 <system@plt>
jmp    14cf <romMenu+0x35f>
lea    0x12bc(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1060 <getchar@plt>
lea    0x12ce(%rip),%rdi
call   1030 <puts@plt>
lea    0xf22(%rip),%rdi
call   1040 <system@plt>
lea    0xf27(%rip),%rdi
call   1040 <system@plt>
lea    0xf49(%rip),%rdi
call   1040 <system@plt>
lea    0x12ba(%rip),%rdi
jmp    14c3 <romMenu+0x353>
lea    0xf80(%rip),%rdi
call   1040 <system@plt>
lea    0xfb6(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1060 <getchar@plt>
lea    0xfbd(%rip),%rdi
call   1040 <system@plt>
jmp    14c8 <romMenu+0x358>
lea    0xffe(%rip),%rdi
call   1040 <system@plt>
jmp    14cf <romMenu+0x35f>
xor    %eax,%eax
call   1060 <getchar@plt>
lea    0x1029(%rip),%rdi
call   1040 <system@plt>
lea    0x1213(%rip),%rdi
jmp    14c3 <romMenu+0x353>
xor    %eax,%eax
call   1060 <getchar@plt>
lea    0x139f(%rip),%rdi
call   1030 <puts@plt>
lea    0x13b7(%rip),%rdi
call   1030 <puts@plt>
lea    0x13fd(%rip),%rdi
call   1030 <puts@plt>
lea    0x144c(%rip),%rdi
call   1030 <puts@plt>
lea    0x146c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1484(%rip),%rdi
call   1030 <puts@plt>
lea    0x14cd(%rip),%rdi
call   1030 <puts@plt>
lea    0x150e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1547(%rip),%rdi
call   1030 <puts@plt>
lea    0x157c(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1060 <getchar@plt>
call   1090 <romMenu@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret
xor    %eax,%eax
call   1080 <advancedMenu@plt>
jmp    14cf <romMenu+0x35f>

LLVM IR (-O0):
@.str = [12 x i8] c"@cls||clear\00"
@.str.1 = [41 x i8] c"=======================================\0A\00"
@.str.2 = [37 x i8] c" ROM Menu |\0A\00"
@.str.3 = [37 x i8] c"| [1] Create workspace |\0A\00"
@.str.4 = [37 x i8] c"| [2] Extract ROM.zip |\0A\00"
@.str.5 = [37 x i8] c"| [3] Extract boot.img |\0A\00"
@.str.6 = [37 x i8] c"| [4] Repack boot.img |\0A\00"
@.str.7 = [37 x i8] c"| [5] Extract system.img |\0A\00"
@.str.8 = [37 x i8] c"| [6] Extract system.new.dat |\0A\00"
@.str.9 = [37 x i8] c"| [7] Delete workspace |\0A\00"
@.str.10 = [37 x i8] c"| [8] Install SuperSU(root) |\0A\00"
@.str.11 = [37 x i8] c"| [9] Information about menu |\0A\00"
@.str.12 = [37 x i8] c"| [10] Enter to advanced ROM menu |\0A\00"
@.str.13 = [10 x i8] c"[0] Exit\0A\00"
@.str.14 = [18 x i8] c"\0AWhat you want?: \00"
@.str.15 = [3 x i8] c"%d\00"
@.str.16 = [37 x i8] c"This is information about ROM Menu.\0A\00"
@.str.17 = [83 x i8] c"1. For working with ROM's you must create personal workspace. Press [1] to do it.\0A\00"
@.str.18 = [92 x i8] c"2. If you need extract .zip with you ROM, place him to 'workspace' folder, then press [2].\0A\00"
@.str.19 = [45 x i8] c"3. If you need extract boot.img, press [3].\0A\00"
@.str.20 = [37 x i8] c"4. For repacking boot.img press [4]\0A\00"
@.str.21 = [86 x i8] c"5. When you want unpack some images (for example system.img), use this feature - [5]\0A\00"
@.str.22 = [78 x i8] c"6. For unpacking system.new.dat, press [6]. // Repack feature in progress...\0A\00"
@.str.23 = [70 x i8] c"7. If you tired of your workspace, you can delete it. Just press [7]\0A\00"
@.str.24 = [66 x i8] c"8. Also you can install SuperSU in your ROM. Press [8] to do it.\0A\00"
@.str.25 = [63 x i8] c"10. I think it doesn't need to explain... And next items too.\0A\00"
@.str.26 = [12 x i8] c"Goodbye ;P\0A\00"
@.str.27 = [33 x i8] c"mkdir workspace && cd workspace \00"
@.str.28 = [52 x i8] c"Done. Replace your ROMZIP in on 'workspace' folder\0A\00"
@.str.29 = [37 x i8] c"cd workspace && unzip *.zip && cd ..\00"
@.str.30 = [19 x i8] c"\0A\09ROM is unzipped\0A\00"
@.str.31 = [32 x i8] c"cd ~/*/workspace/ && mkdir boot\00"
@.str.32 = [41 x i8] c"cp ~/*/insides/boot/* ~/*/workspace/boot\00"
@.str.33 = [21 x i8] c"\09Unpacking boot.img\0A\00"
@.str.34 = [52 x i8] c"cd ~/*/workspace/ && cp boot.img ~/*/workspace/boot\00"
@.str.35 = [53 x i8] c"cd ~/*/workspace/boot && ./unpackbootimg -i boot.img\00"
@.str.36 = [29 x i8] c"\09Making 'ramdisk' directory\0A\00"
@.str.37 = [39 x i8] c"cd ~/*/workspace/boot && mkdir ramdisk\00"
@.str.38 = [45 x i8] c"\09Replacing boot.img-ramdisk.gz to 'ramdisk'\0A\00"
@.str.39 = [56 x i8] c"cd ~/*/workspace/boot && mv boot.img-ramdisk.gz ramdisk\00"
@.str.40 = [19 x i8] c"Unpacking ramdisk\0A\00"
@.str.41 = [72 x i8] c"cd ~/*/workspace/boot/ramdisk && gzip -dc boot.img-ramdisk.gz | cpio -i\00"
@.str.42 = [30 x i8] c"\0A\09boot.img and ramdisk ready\0A\00"
@.str.43 = [20 x i8] c"\09Repacking ramdisk\0A\00"
@.str.44 = [76 x i8] c"cd ~/*/workspace/boot/ && ./mkbootfs ./ramdisk | gzip > boot.img-ramdisk.gz\00"
@.str.45 = [21 x i8] c"\09Repacking boot.img\0A\00"
@.str.46 = [155 x i8] c"cd ~/*/workspace/boot/ && ./mkbootimg --cmdline 'no_console_suspend=1 console=null' --kernel boot.img-kernel --ramdisk boot.img-ramdisk.gz -o boot-new.img\00"
@.str.47 = [22 x i8] c"\09boot-new.img ready!\0A\00"
@.str.48 = [18 x i8] c"cd ~/*/workspace/\00"
@.str.49 = [38 x i8] c"\09\0APut your system.img in ROM folder.\0A\00"
@.str.50 = [29 x i8] c"\09\0AI'm working! Please wait!\0A\00"
@.str.51 = [17 x i8] c"cd ~/*/workspace\00"
@.str.52 = [46 x i8] c"cp ~/*/workspace/system.img ~/Universal_Tool/\00"
@.str.53 = [79 x i8] c"mkdir extractedsystem && sudo mount -t ext4 -o loop system.img extractedsystem\00"
@.str.54 = [63 x i8] c"\09Done. .img file extracted to Universal_Tool/extractedsystem/\0A\00"
@.str.55 = [66 x i8] c"cd ~/*/insides/rom/ && cp sdat2img/* ~/Universal_Tool/workspace/ \00"
@.str.56 = [26 x i8] c"Press any key to continue\00"
@.str.57 = [82 x i8] c"cd ~/*/workspace/ && ./sdat2img.py system.transfer.list system.new.dat system.img\00"
@.str.58 = [67 x i8] c"cd ~/Universal_Tool/ && rm -rf workspace && rm -rf extractedsystem\00"
@.str.59 = [57 x i8] c"cp ~/*/insides/rom/supersu ~/*/workspace/system/priv-app\00"
@.str.60 = [7 x i8] c"\09Done\0A\00"
@.str.61 = [16 x i8] c"Make a choice!\0A\00"
define i32 @romMenu() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @system(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0))
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i32* %2)
%21 = load i32, i32* %2
switch i32 %21, label %92 [
i32 9, label %22
i32 0, label %36
i32 1, label %38
i32 2, label %42
i32 3, label %46
i32 4, label %60
i32 5, label %68
i32 6, label %77
i32 7, label %83
i32 8, label %85
i32 10, label %90
]
22: ; preds = %0
%23 = call i32 (...) @getchar()
%24 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.16, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.17, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.18, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.19, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.20, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.21, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.22, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.23, i64 0, i64 0))
%32 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.24, i64 0, i64 0))
%33 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.25, i64 0, i64 0))
%34 = call i32 (...) @getchar()
%35 = call i32 @romMenu()
store i32 %35, i32* %1
br label %96
36: ; preds = %0
%37 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.26, i64 0, i64 0))
store i32 0, i32* %1
br label %96
38: ; preds = %0
%39 = call i32 @system(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.27, i64 0, i64 0))
%40 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.28, i64 0, i64 0))
%41 = call i32 (...) @getchar()
br label %94
42: ; preds = %0
%43 = call i32 @system(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.29, i64 0, i64 0))
%44 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.30, i64 0, i64 0))
%45 = call i32 (...) @getchar()
br label %94
46: ; preds = %0
%47 = call i32 @system(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.31, i64 0, i64 0))
%48 = call i32 @system(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.32, i64 0, i64 0))
%49 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.33, i64 0, i64 0))
%50 = call i32 @system(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.34, i64 0, i64 0))
%51 = call i32 @system(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.35, i64 0, i64 0))
%52 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.36, i64 0, i64 0))
%53 = call i32 @system(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.37, i64 0, i64 0))
%54 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.38, i64 0, i64 0))
%55 = call i32 @system(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.39, i64 0, i64 0))
%56 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.40, i64 0, i64 0))
%57 = call i32 @system(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.41, i64 0, i64 0))
%58 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.42, i64 0, i64 0))
%59 = call i32 (...) @getchar()
br label %94
60: ; preds = %0
%61 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.43, i64 0, i64 0))
%62 = call i32 @system(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.44, i64 0, i64 0))
%63 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.45, i64 0, i64 0))
%64 = call i32 @system(i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str.46, i64 0, i64 0))
%65 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.47, i64 0, i64 0))
%66 = call i32 (...) @getchar()
%67 = call i32 @system(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.48, i64 0, i64 0))
br label %94
68: ; preds = %0
%69 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.49, i64 0, i64 0))
%70 = call i32 (...) @getchar()
%71 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.50, i64 0, i64 0))
%72 = call i32 @system(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.51, i64 0, i64 0))
%73 = call i32 @system(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.52, i64 0, i64 0))
%74 = call i32 @system(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.53, i64 0, i64 0))
%75 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.54, i64 0, i64 0))
%76 = call i32 (...) @getchar()
br label %94
77: ; preds = %0
%78 = call i32 @system(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.55, i64 0, i64 0))
%79 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.56, i64 0, i64 0))
%80 = call i32 (...) @getchar()
%81 = call i32 @system(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.57, i64 0, i64 0))
%82 = call i32 (...) @getchar()
br label %94
83: ; preds = %0
%84 = call i32 @system(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.58, i64 0, i64 0))
br label %94
85: ; preds = %0
%86 = call i32 (...) @getchar()
%87 = call i32 @system(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.59, i64 0, i64 0))
%88 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.60, i64 0, i64 0))
%89 = call i32 (...) @getchar()
br label %94
90: ; preds = %0
%91 = call i32 (...) @advancedMenu()
br label %94
92: ; preds = %0
%93 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.61, i64 0, i64 0))
br label %94
94: ; preds = %92, %90, %85, %83, %77, %68, %60, %46, %42, %38
%95 = call i32 @romMenu()
store i32 %95, i32* %1
br label %96
96: ; preds = %94, %36, %22
%97 = load i32, i32* %1
ret i32 %97
}

LLVM IR (-O2):
@.str = [12 x i8] c"@cls||clear\00"
@.str.14 = [18 x i8] c"\0AWhat you want?: \00"
@.str.15 = [3 x i8] c"%d\00"
@.str.27 = [33 x i8] c"mkdir workspace && cd workspace \00"
@.str.29 = [37 x i8] c"cd workspace && unzip *.zip && cd ..\00"
@.str.31 = [32 x i8] c"cd ~/*/workspace/ && mkdir boot\00"
@.str.32 = [41 x i8] c"cp ~/*/insides/boot/* ~/*/workspace/boot\00"
@.str.34 = [52 x i8] c"cd ~/*/workspace/ && cp boot.img ~/*/workspace/boot\00"
@.str.35 = [53 x i8] c"cd ~/*/workspace/boot && ./unpackbootimg -i boot.img\00"
@.str.37 = [39 x i8] c"cd ~/*/workspace/boot && mkdir ramdisk\00"
@.str.39 = [56 x i8] c"cd ~/*/workspace/boot && mv boot.img-ramdisk.gz ramdisk\00"
@.str.41 = [72 x i8] c"cd ~/*/workspace/boot/ramdisk && gzip -dc boot.img-ramdisk.gz | cpio -i\00"
@.str.44 = [76 x i8] c"cd ~/*/workspace/boot/ && ./mkbootfs ./ramdisk | gzip > boot.img-ramdisk.gz\00"
@.str.46 = [155 x i8] c"cd ~/*/workspace/boot/ && ./mkbootimg --cmdline 'no_console_suspend=1 console=null' --kernel boot.img-kernel --ramdisk boot.img-ramdisk.gz -o boot-new.img\00"
@.str.48 = [18 x i8] c"cd ~/*/workspace/\00"
@.str.51 = [17 x i8] c"cd ~/*/workspace\00"
@.str.52 = [46 x i8] c"cp ~/*/workspace/system.img ~/Universal_Tool/\00"
@.str.53 = [79 x i8] c"mkdir extractedsystem && sudo mount -t ext4 -o loop system.img extractedsystem\00"
@.str.55 = [66 x i8] c"cd ~/*/insides/rom/ && cp sdat2img/* ~/Universal_Tool/workspace/ \00"
@.str.56 = [26 x i8] c"Press any key to continue\00"
@.str.57 = [82 x i8] c"cd ~/*/workspace/ && ./sdat2img.py system.transfer.list system.new.dat system.img\00"
@.str.58 = [67 x i8] c"cd ~/Universal_Tool/ && rm -rf workspace && rm -rf extractedsystem\00"
@.str.59 = [57 x i8] c"cp ~/*/insides/rom/supersu ~/*/workspace/system/priv-app\00"
@str.62 = [36 x i8] c" ROM Menu |\00"
@str.64 = [36 x i8] c"| [1] Create workspace |\00"
@str.65 = [36 x i8] c"| [2] Extract ROM.zip |\00"
@str.66 = [36 x i8] c"| [3] Extract boot.img |\00"
@str.67 = [36 x i8] c"| [4] Repack boot.img |\00"
@str.68 = [36 x i8] c"| [5] Extract system.img |\00"
@str.69 = [36 x i8] c"| [6] Extract system.new.dat |\00"
@str.70 = [36 x i8] c"| [7] Delete workspace |\00"
@str.71 = [36 x i8] c"| [8] Install SuperSU(root) |\00"
@str.72 = [36 x i8] c"| [9] Information about menu |\00"
@str.73 = [36 x i8] c"| [10] Enter to advanced ROM menu |\00"
@str.74 = [40 x i8] c"=======================================\00"
@str.75 = [9 x i8] c"[0] Exit\00"
@str.76 = [6 x i8] c"\09Done\00"
@str.77 = [37 x i8] c"\09\0APut your system.img in ROM folder.\00"
@str.78 = [28 x i8] c"\09\0AI'm working! Please wait!\00"
@str.79 = [62 x i8] c"\09Done. .img file extracted to Universal_Tool/extractedsystem/\00"
@str.80 = [19 x i8] c"\09Repacking ramdisk\00"
@str.81 = [20 x i8] c"\09Repacking boot.img\00"
@str.82 = [21 x i8] c"\09boot-new.img ready!\00"
@str.83 = [20 x i8] c"\09Unpacking boot.img\00"
@str.84 = [28 x i8] c"\09Making 'ramdisk' directory\00"
@str.85 = [44 x i8] c"\09Replacing boot.img-ramdisk.gz to 'ramdisk'\00"
@str.86 = [18 x i8] c"Unpacking ramdisk\00"
@str.87 = [29 x i8] c"\0A\09boot.img and ramdisk ready\00"
@str.88 = [18 x i8] c"\0A\09ROM is unzipped\00"
@str.89 = [51 x i8] c"Done. Replace your ROMZIP in on 'workspace' folder\00"
@str.90 = [11 x i8] c"Goodbye ;P\00"
@str.91 = [36 x i8] c"This is information about ROM Menu.\00"
@str.92 = [82 x i8] c"1. For working with ROM's you must create personal workspace. Press [1] to do it.\00"
@str.93 = [91 x i8] c"2. If you need extract .zip with you ROM, place him to 'workspace' folder, then press [2].\00"
@str.94 = [44 x i8] c"3. If you need extract boot.img, press [3].\00"
@str.95 = [36 x i8] c"4. For repacking boot.img press [4]\00"
@str.96 = [85 x i8] c"5. When you want unpack some images (for example system.img), use this feature - [5]\00"
@str.97 = [77 x i8] c"6. For unpacking system.new.dat, press [6]. // Repack feature in progress...\00"
@str.98 = [69 x i8] c"7. If you tired of your workspace, you can delete it. Just press [7]\00"
@str.99 = [65 x i8] c"8. Also you can install SuperSU in your ROM. Press [8] to do it.\00"
@str.100 = [62 x i8] c"10. I think it doesn't need to explain... And next items too.\00"
@str.101 = [15 x i8] c"Make a choice!\00"
define i32 @romMenu() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @system(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.74, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.62, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.74, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.64, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.65, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.66, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.67, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.68, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.69, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.70, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.71, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.72, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.73, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.74, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.75, i64 0, i64 0))
%19 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0))
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i32* %1)
%21 = load i32, i32* %1
switch i32 %21, label %92 [
i32 9, label %22
i32 0, label %36
i32 1, label %38
i32 2, label %42
i32 3, label %46
i32 4, label %60
i32 5, label %68
i32 6, label %77
i32 7, label %83
i32 8, label %85
i32 10, label %90
]
22: ; preds = %0
%23 = call i32 (...) @getchar()
%24 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.91, i64 0, i64 0))
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.92, i64 0, i64 0))
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([91 x i8], [91 x i8]* @str.93, i64 0, i64 0))
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.94, i64 0, i64 0))
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.95, i64 0, i64 0))
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.96, i64 0, i64 0))
%30 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.97, i64 0, i64 0))
%31 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.98, i64 0, i64 0))
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.99, i64 0, i64 0))
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.100, i64 0, i64 0))
%34 = call i32 (...) @getchar()
%35 = call i32 @romMenu()
br label %96
36: ; preds = %0
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.90, i64 0, i64 0))
br label %96
38: ; preds = %0
%39 = call i32 @system(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.27, i64 0, i64 0))
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.89, i64 0, i64 0))
%41 = call i32 (...) @getchar()
br label %94
42: ; preds = %0
%43 = call i32 @system(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.29, i64 0, i64 0))
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.88, i64 0, i64 0))
%45 = call i32 (...) @getchar()
br label %94
46: ; preds = %0
%47 = call i32 @system(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.31, i64 0, i64 0))
%48 = call i32 @system(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.32, i64 0, i64 0))
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.83, i64 0, i64 0))
%50 = call i32 @system(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.34, i64 0, i64 0))
%51 = call i32 @system(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.35, i64 0, i64 0))
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.84, i64 0, i64 0))
%53 = call i32 @system(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.37, i64 0, i64 0))
%54 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.85, i64 0, i64 0))
%55 = call i32 @system(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.39, i64 0, i64 0))
%56 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.86, i64 0, i64 0))
%57 = call i32 @system(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.41, i64 0, i64 0))
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.87, i64 0, i64 0))
%59 = call i32 (...) @getchar()
br label %94
60: ; preds = %0
%61 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.80, i64 0, i64 0))
%62 = call i32 @system(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.44, i64 0, i64 0))
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.81, i64 0, i64 0))
%64 = call i32 @system(i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str.46, i64 0, i64 0))
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.82, i64 0, i64 0))
%66 = call i32 (...) @getchar()
%67 = call i32 @system(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.48, i64 0, i64 0))
br label %94
68: ; preds = %0
%69 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.77, i64 0, i64 0))
%70 = call i32 (...) @getchar()
%71 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.78, i64 0, i64 0))
%72 = call i32 @system(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.51, i64 0, i64 0))
%73 = call i32 @system(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.52, i64 0, i64 0))
%74 = call i32 @system(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.53, i64 0, i64 0))
%75 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.79, i64 0, i64 0))
%76 = call i32 (...) @getchar()
br label %94
77: ; preds = %0
%78 = call i32 @system(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.55, i64 0, i64 0))
%79 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.56, i64 0, i64 0))
%80 = call i32 (...) @getchar()
%81 = call i32 @system(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.57, i64 0, i64 0))
%82 = call i32 (...) @getchar()
br label %94
83: ; preds = %0
%84 = call i32 @system(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.58, i64 0, i64 0))
br label %94
85: ; preds = %0
%86 = call i32 (...) @getchar()
%87 = call i32 @system(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.59, i64 0, i64 0))
%88 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.76, i64 0, i64 0))
%89 = call i32 (...) @getchar()
br label %94
90: ; preds = %0
%91 = call i32 (...) @advancedMenu()
br label %94
92: ; preds = %0
%93 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.101, i64 0, i64 0))
br label %94
94: ; preds = %92, %90, %85, %83, %77, %68, %60, %46, %42, %38
%95 = call i32 @romMenu()
br label %96
96: ; preds = %94, %36, %22
ret i32 0
}