#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*/ my_printf(char *);
void printUsage() {
  my_printf("Usage: ofgwrite <parameter> <image_directory>\n");
  my_printf("Options:\n");
  my_printf("   -k --kernel           flash kernel with automatic device "
            "recognition(default)\n");
  my_printf("   -kmtdx --kernel=mtdx  use mtdx device for kernel flashing\n");
  my_printf("   -kmmcblkxpx --kernel=mmcblkxpx  use mmcblkxpx device for "
            "kernel flashing\n");
  my_printf("   -r --rootfs           flash rootfs with automatic device "
            "recognition(default)\n");
  my_printf("   -rmtdy --rootfs=mtdy  use mtdy device for rootfs flashing\n");
  my_printf("   -rmmcblkxpx --rootfs=mmcblkxpx  use mmcblkxpx device for "
            "rootfs flashing\n");
  my_printf("   -mx --multi=x         flash multiboot partition x (x= 1, 2, "
            "3,...). Only supported by some boxes.\n");
  my_printf("   -n --nowrite          show only found image and mtd partitions "
            "(no write)\n");
  my_printf("   -f --force            force kill e2\n");
  my_printf("   -q --quiet            show less output\n");
  my_printf("   -h --help             show help\n");
}


x86 assembly (clang, -O0):
<printUsage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <my_printf@plt>
lea    0xf08(%rip),%rdi
call   1030 <my_printf@plt>
lea    0xf06(%rip),%rdi
call   1030 <my_printf@plt>
lea    0xf4c(%rip),%rdi
call   1030 <my_printf@plt>
lea    0xf7e(%rip),%rdi
call   1030 <my_printf@plt>
lea    0xfbf(%rip),%rdi
call   1030 <my_printf@plt>
lea    0x1005(%rip),%rdi
call   1030 <my_printf@plt>
lea    0x1037(%rip),%rdi
call   1030 <my_printf@plt>
lea    0x1078(%rip),%rdi
call   1030 <my_printf@plt>
lea    0x10d2(%rip),%rdi
call   1030 <my_printf@plt>
lea    0x1114(%rip),%rdi
call   1030 <my_printf@plt>
lea    0x1130(%rip),%rdi
call   1030 <my_printf@plt>
lea    0x114f(%rip),%rdi
call   1030 <my_printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printUsage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <my_printf@plt>
lea    0xf0b(%rip),%rdi
call   1030 <my_printf@plt>
lea    0xf09(%rip),%rdi
call   1030 <my_printf@plt>
lea    0xf4f(%rip),%rdi
call   1030 <my_printf@plt>
lea    0xf81(%rip),%rdi
call   1030 <my_printf@plt>
lea    0xfc2(%rip),%rdi
call   1030 <my_printf@plt>
lea    0x1008(%rip),%rdi
call   1030 <my_printf@plt>
lea    0x103a(%rip),%rdi
call   1030 <my_printf@plt>
lea    0x107b(%rip),%rdi
call   1030 <my_printf@plt>
lea    0x10d5(%rip),%rdi
call   1030 <my_printf@plt>
lea    0x1117(%rip),%rdi
call   1030 <my_printf@plt>
lea    0x1133(%rip),%rdi
call   1030 <my_printf@plt>
lea    0x1152(%rip),%rdi
pop    %rax
jmp    1030 <my_printf@plt>

LLVM IR (-O0):
@.str = [47 x i8] c"Usage: ofgwrite <parameter> <image_directory>\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [82 x i8] c" -k --kernel flash kernel with automatic device recognition(default)\0A\00"
@.str.3 = [62 x i8] c" -kmtdx --kernel=mtdx use mtdx device for kernel flashing\0A\00"
@.str.4 = [77 x i8] c" -kmmcblkxpx --kernel=mmcblkxpx use mmcblkxpx device for kernel flashing\0A\00"
@.str.5 = [82 x i8] c" -r --rootfs flash rootfs with automatic device recognition(default)\0A\00"
@.str.6 = [62 x i8] c" -rmtdy --rootfs=mtdy use mtdy device for rootfs flashing\0A\00"
@.str.7 = [77 x i8] c" -rmmcblkxpx --rootfs=mmcblkxpx use mmcblkxpx device for rootfs flashing\0A\00"
@.str.8 = [102 x i8] c" -mx --multi=x flash multiboot partition x (x= 1, 2, 3,...). Only supported by some boxes.\0A\00"
@.str.9 = [78 x i8] c" -n --nowrite show only found image and mtd partitions (no write)\0A\00"
@.str.10 = [40 x i8] c" -f --force force kill e2\0A\00"
@.str.11 = [43 x i8] c" -q --quiet show less output\0A\00"
@.str.12 = [36 x i8] c" -h --help show help\0A\00"
define void @printUsage() {
%1 = call i32 @my_printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @my_printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @my_printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @my_printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @my_printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @my_printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @my_printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @my_printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @my_printf(i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @my_printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @my_printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @my_printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @my_printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [47 x i8] c"Usage: ofgwrite <parameter> <image_directory>\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [82 x i8] c" -k --kernel flash kernel with automatic device recognition(default)\0A\00"
@.str.3 = [62 x i8] c" -kmtdx --kernel=mtdx use mtdx device for kernel flashing\0A\00"
@.str.4 = [77 x i8] c" -kmmcblkxpx --kernel=mmcblkxpx use mmcblkxpx device for kernel flashing\0A\00"
@.str.5 = [82 x i8] c" -r --rootfs flash rootfs with automatic device recognition(default)\0A\00"
@.str.6 = [62 x i8] c" -rmtdy --rootfs=mtdy use mtdy device for rootfs flashing\0A\00"
@.str.7 = [77 x i8] c" -rmmcblkxpx --rootfs=mmcblkxpx use mmcblkxpx device for rootfs flashing\0A\00"
@.str.8 = [102 x i8] c" -mx --multi=x flash multiboot partition x (x= 1, 2, 3,...). Only supported by some boxes.\0A\00"
@.str.9 = [78 x i8] c" -n --nowrite show only found image and mtd partitions (no write)\0A\00"
@.str.10 = [40 x i8] c" -f --force force kill e2\0A\00"
@.str.11 = [43 x i8] c" -q --quiet show less output\0A\00"
@.str.12 = [36 x i8] c" -h --help show help\0A\00"
define void @printUsage() {
%1 = tail call i32 @my_printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @my_printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @my_printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @my_printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @my_printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @my_printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @my_printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @my_printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @my_printf(i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @my_printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @my_printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @my_printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @my_printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0))
ret void
}