#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void help_show_message() {
  fprintf(stderr, "Usage: nbimg -F file.[nb|bmp]\n\n");
  fprintf(stderr, "Mandatory arguments:\n");
  fprintf(stderr, "   -F <filename>    Filename to convert.\n");
  fprintf(stderr, "                    If the extension is BMP it will be "
                  "converted to NB.\n");
  fprintf(stderr, "                    If the extension is NB it will be "
                  "converted to BMP.\n\n");
  fprintf(stderr, "Optional arguments:\n");
  fprintf(stderr, "   -w <width>       Image width in pixels. If not specified "
                  "will be autodetected.\n");
  fprintf(stderr, "   -h <height>      Image height in pixels. If not "
                  "specified will be autodetected.\n");
  fprintf(stderr, "   -t <pattern>     Manually specify the padding pattern "
                  "(usually 0 or 255).\n");
  fprintf(stderr, "   -p <size>        Manually specify the padding size.\n");
  fprintf(stderr,
          "   -n               Do not add HTC splash signature to NB file.\n");
  fprintf(stderr, "   -s               Output smartphone format.\n\n");
  fprintf(stderr,
          "NBH arguments:      (only when converting from BMP to NBH)\n");
  fprintf(
      stderr,
      "   -D <model_id>    Generate NBH with specified Model ID (mandatory)\n");
  fprintf(stderr, "   -S <chunksize>   NBH SignMaxChunkSize (64 or 1024)\n");
  fprintf(stderr, "   -T <type>        NBH header type, this is typically "
                  "0x600 or 0x601\n\n");
}


x86 assembly (clang, -O0):
<help_show_message>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
lea    0xee7(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
lea    0xee8(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%edi
lea    0xefd(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%edi
lea    0xf31(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
lea    0xf66(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%edi
lea    0xf66(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
lea    0xfa4(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%edi
lea    0xfe3(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
lea    0x101c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%edi
lea    0x103f(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dde(%rip),%rax
mov    (%rax),%edi
lea    0x106b(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dc9(%rip),%rax
mov    (%rax),%edi
lea    0x1086(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2db4(%rip),%rax
mov    (%rax),%edi
lea    0x10ad(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d9f(%rip),%rax
mov    (%rax),%edi
lea    0x10de(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d8a(%rip),%rax
mov    (%rax),%edi
lea    0x1100(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help_show_message>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xef1(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xef9(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf15(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf50(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf8c(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf93(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfd8(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x101e(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x105e(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1088(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10bb(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10dd(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x110b(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1143(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x116c(%rip),%rsi
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [32 x i8] c"Usage: nbimg -F file.[nb|bmp]\0A\0A\00"
@.str.1 = [22 x i8] c"Mandatory arguments:\0A\00"
@.str.2 = [42 x i8] c" -F <filename> Filename to convert.\0A\00"
@.str.3 = [73 x i8] c" If the extension is BMP it will be converted to NB.\0A\00"
@.str.4 = [74 x i8] c" If the extension is NB it will be converted to BMP.\0A\0A\00"
@.str.5 = [21 x i8] c"Optional arguments:\0A\00"
@.str.6 = [83 x i8] c" -w <width> Image width in pixels. If not specified will be autodetected.\0A\00"
@.str.7 = [84 x i8] c" -h <height> Image height in pixels. If not specified will be autodetected.\0A\00"
@.str.8 = [78 x i8] c" -t <pattern> Manually specify the padding pattern (usually 0 or 255).\0A\00"
@.str.9 = [56 x i8] c" -p <size> Manually specify the padding size.\0A\00"
@.str.10 = [65 x i8] c" -n Do not add HTC splash signature to NB file.\0A\00"
@.str.11 = [48 x i8] c" -s Output smartphone format.\0A\0A\00"
@.str.12 = [60 x i8] c"NBH arguments: (only when converting from BMP to NBH)\0A\00"
@.str.13 = [70 x i8] c" -D <model_id> Generate NBH with specified Model ID (mandatory)\0A\00"
@.str.14 = [55 x i8] c" -S <chunksize> NBH SignMaxChunkSize (64 or 1024)\0A\00"
@.str.15 = [72 x i8] c" -T <type> NBH header type, this is typically 0x600 or 0x601\0A\0A\00"
define void @help_show_message() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.9, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.10, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.12, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.13, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.14, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [32 x i8] c"Usage: nbimg -F file.[nb|bmp]\0A\0A\00"
@.str.1 = [22 x i8] c"Mandatory arguments:\0A\00"
@.str.2 = [42 x i8] c" -F <filename> Filename to convert.\0A\00"
@.str.3 = [73 x i8] c" If the extension is BMP it will be converted to NB.\0A\00"
@.str.4 = [74 x i8] c" If the extension is NB it will be converted to BMP.\0A\0A\00"
@.str.5 = [21 x i8] c"Optional arguments:\0A\00"
@.str.6 = [83 x i8] c" -w <width> Image width in pixels. If not specified will be autodetected.\0A\00"
@.str.7 = [84 x i8] c" -h <height> Image height in pixels. If not specified will be autodetected.\0A\00"
@.str.8 = [78 x i8] c" -t <pattern> Manually specify the padding pattern (usually 0 or 255).\0A\00"
@.str.9 = [56 x i8] c" -p <size> Manually specify the padding size.\0A\00"
@.str.10 = [65 x i8] c" -n Do not add HTC splash signature to NB file.\0A\00"
@.str.11 = [48 x i8] c" -s Output smartphone format.\0A\0A\00"
@.str.12 = [60 x i8] c"NBH arguments: (only when converting from BMP to NBH)\0A\00"
@.str.13 = [70 x i8] c" -D <model_id> Generate NBH with specified Model ID (mandatory)\0A\00"
@.str.14 = [55 x i8] c" -S <chunksize> NBH SignMaxChunkSize (64 or 1024)\0A\00"
@.str.15 = [72 x i8] c" -T <type> NBH header type, this is typically 0x600 or 0x601\0A\0A\00"
define void @help_show_message() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.9, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.10, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = tail call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = tail call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.12, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = tail call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.13, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = tail call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.14, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = tail call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.15, i64 0, i64 0))
ret void
}