#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*/ printf(char *);
void printHelp(void) {
  printf("Usage: mkrock [options]... FILE\n");
  printf("Merge or unpack Rockchip's loader (Default action is to merge.)\n");
  printf("Options:\n");
  printf("\t"
         "--pack"
         "\t\t\tMerge loader with specified config.\n");
  printf("\t"
         "--unpack"
         "\t\tUnpack specified loader to current dir.\n");
  printf("\t"
         "--verbose"
         "\t\tDisplay more runtime informations.\n");
  printf("\t"
         "--help"
         "\t\t\tDisplay this information.\n");
  printf("\t"
         "--version"
         "\t\tDisplay version information.\n");
  printf("\t"
         "--subfix"
         "\t\tSpec subfix.\n");
  printf("\t"
         "--replace"
         "\t\tReplace some part of binary path.\n");
  printf("\t"
         "--prepath"
         "\t\tAdd prefix path of binary path.\n");
  printf("\t"
         "--size"
         "\t\tImage size.\"--size [image KB size]\", must be 512KB aligned\n");
  printf("Usage2: boot_merger [options] [parameter]\n");
  printf("All below five option are must in this mode!\n");
  printf("\t"
         "-c"
         "\t\tChip type, used for check with usbplug.\n");
  printf("\t"
         "-1"
         "\t\t471 for download, ddr.bin.\n");
  printf("\t"
         "-2"
         "\t\t472 for download, usbplug.bin.\n");
  printf("\t"
         "-d"
         "\t\tloader0 for flash, ddr.bin.\n");
  printf("\t"
         "-b"
         "\t\tloader1 for flash, miniloader.bin.\n");
  printf("\n./tools/boot_merger --pack --verbose -c RK322A -1 "
         "rkbin/rk322x_ddr_300MHz_v1.04.bin -2 "
         "rkbin/rk32/rk322x_usbplug_v2.32.bin -d "
         "rkbin/rk32/rk322x_ddr_300MHz_v1.04.bin -b "
         "rkbin/rk32/rk322x_miniloader_v2.32.bin\n");
}


x86 assembly (clang, -O0):
<printHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf50(%rip),%rdi
call   1030 <printf@plt>
lea    0xf78(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9c(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb5(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd3(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe0(%rip),%rdi
call   1030 <printf@plt>
lea    0x1003(%rip),%rdi
call   1030 <printf@plt>
lea    0x1024(%rip),%rdi
call   1030 <printf@plt>
lea    0x105d(%rip),%rdi
call   1030 <printf@plt>
lea    0x107c(%rip),%rdi
call   1030 <printf@plt>
lea    0x109e(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c0(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d5(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ee(%rip),%rdi
call   1030 <printf@plt>
lea    0x1104(%rip),%rdi
call   1030 <printf@plt>
lea    0x1121(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printHelp>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xefc(%rip),%rdi
call   1030 <puts@plt>
lea    0xf30(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf76(%rip),%rdi
call   1030 <puts@plt>
lea    0xf99(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb1(%rip),%rdi
call   1030 <puts@plt>
lea    0xfce(%rip),%rdi
call   1030 <puts@plt>
lea    0xfda(%rip),%rdi
call   1030 <puts@plt>
lea    0xffc(%rip),%rdi
call   1030 <puts@plt>
lea    0x101c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1054(%rip),%rdi
call   1030 <puts@plt>
lea    0x1072(%rip),%rdi
call   1030 <puts@plt>
lea    0x1093(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b4(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c8(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e0(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f5(%rip),%rdi
call   1030 <puts@plt>
lea    0x1111(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [33 x i8] c"Usage: mkrock [options]... FILE\0A\00"
@.str.1 = [65 x i8] c"Merge or unpack Rockchip's loader (Default action is to merge.)\0A\00"
@.str.2 = [10 x i8] c"Options:\0A\00"
@.str.3 = [47 x i8] c"\09--pack\09\09\09Merge loader with specified config.\0A\00"
@.str.4 = [52 x i8] c"\09--unpack\09\09Unpack specified loader to current dir.\0A\00"
@.str.5 = [48 x i8] c"\09--verbose\09\09Display more runtime informations.\0A\00"
@.str.6 = [37 x i8] c"\09--help\09\09\09Display this information.\0A\00"
@.str.7 = [42 x i8] c"\09--version\09\09Display version information.\0A\00"
@.str.8 = [25 x i8] c"\09--subfix\09\09Spec subfix.\0A\00"
@.str.9 = [47 x i8] c"\09--replace\09\09Replace some part of binary path.\0A\00"
@.str.10 = [45 x i8] c"\09--prepath\09\09Add prefix path of binary path.\0A\00"
@.str.11 = [69 x i8] c"\09--size\09\09Image size.\22--size [image KB size]\22, must be 512KB aligned\0A\00"
@.str.12 = [43 x i8] c"Usage2: boot_merger [options] [parameter]\0A\00"
@.str.13 = [46 x i8] c"All below five option are must in this mode!\0A\00"
@.str.14 = [46 x i8] c"\09-c\09\09Chip type, used for check with usbplug.\0A\00"
@.str.15 = [33 x i8] c"\09-1\09\09471 for download, ddr.bin.\0A\00"
@.str.16 = [37 x i8] c"\09-2\09\09472 for download, usbplug.bin.\0A\00"
@.str.17 = [34 x i8] c"\09-d\09\09loader0 for flash, ddr.bin.\0A\00"
@.str.18 = [41 x i8] c"\09-b\09\09loader1 for flash, miniloader.bin.\0A\00"
@.str.19 = [209 x i8] c"\0A./tools/boot_merger --pack --verbose -c RK322A -1 rkbin/rk322x_ddr_300MHz_v1.04.bin -2 rkbin/rk32/rk322x_usbplug_v2.32.bin -d rkbin/rk32/rk322x_ddr_300MHz_v1.04.bin -b rkbin/rk32/rk322x_miniloader_v2.32.bin\0A\00"
define void @printHelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([209 x i8], [209 x i8]* @.str.19, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [32 x i8] c"Usage: mkrock [options]... FILE\00"
@str.20 = [64 x i8] c"Merge or unpack Rockchip's loader (Default action is to merge.)\00"
@str.21 = [9 x i8] c"Options:\00"
@str.22 = [46 x i8] c"\09--pack\09\09\09Merge loader with specified config.\00"
@str.23 = [51 x i8] c"\09--unpack\09\09Unpack specified loader to current dir.\00"
@str.24 = [47 x i8] c"\09--verbose\09\09Display more runtime informations.\00"
@str.25 = [36 x i8] c"\09--help\09\09\09Display this information.\00"
@str.26 = [41 x i8] c"\09--version\09\09Display version information.\00"
@str.27 = [24 x i8] c"\09--subfix\09\09Spec subfix.\00"
@str.28 = [46 x i8] c"\09--replace\09\09Replace some part of binary path.\00"
@str.29 = [44 x i8] c"\09--prepath\09\09Add prefix path of binary path.\00"
@str.30 = [68 x i8] c"\09--size\09\09Image size.\22--size [image KB size]\22, must be 512KB aligned\00"
@str.31 = [42 x i8] c"Usage2: boot_merger [options] [parameter]\00"
@str.32 = [45 x i8] c"All below five option are must in this mode!\00"
@str.33 = [45 x i8] c"\09-c\09\09Chip type, used for check with usbplug.\00"
@str.34 = [32 x i8] c"\09-1\09\09471 for download, ddr.bin.\00"
@str.35 = [36 x i8] c"\09-2\09\09472 for download, usbplug.bin.\00"
@str.36 = [33 x i8] c"\09-d\09\09loader0 for flash, ddr.bin.\00"
@str.37 = [40 x i8] c"\09-b\09\09loader1 for flash, miniloader.bin.\00"
@str.38 = [208 x i8] c"\0A./tools/boot_merger --pack --verbose -c RK322A -1 rkbin/rk322x_ddr_300MHz_v1.04.bin -2 rkbin/rk32/rk322x_usbplug_v2.32.bin -d rkbin/rk32/rk322x_ddr_300MHz_v1.04.bin -b rkbin/rk32/rk322x_miniloader_v2.32.bin\00"
define void @printHelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.20, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.21, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.22, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.23, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.24, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.25, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.26, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.27, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.28, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.29, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.30, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.31, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.32, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.33, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.34, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.35, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.36, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.37, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([208 x i8], [208 x i8]* @str.38, i64 0, i64 0))
ret void
}