#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|img]\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/IMG.\n");
  fprintf(stderr, "                    If the extension is NB/IMG 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 (for old WinCE "
                  "devices).\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    0xeeb(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
lea    0xeec(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%edi
lea    0xf01(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%edi
lea    0xf39(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
lea    0xf72(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%edi
lea    0xf72(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
lea    0xfb0(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%edi
lea    0xfef(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
lea    0x1028(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%edi
lea    0x104b(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dde(%rip),%rax
mov    (%rax),%edi
lea    0x1077(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dc9(%rip),%rax
mov    (%rax),%edi
lea    0x10aa(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2db4(%rip),%rax
mov    (%rax),%edi
lea    0x10d1(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d9f(%rip),%rax
mov    (%rax),%edi
lea    0x1102(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d8a(%rip),%rax
mov    (%rax),%edi
lea    0x1124(%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    0xef5(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xefd(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf19(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf58(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf98(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf9f(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfe4(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x102a(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x106a(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1094(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10c7(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1101(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x112f(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1167(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1190(%rip),%rsi
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [36 x i8] c"Usage: nbimg -F file.[nb|bmp|img]\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 = [77 x i8] c" If the extension is BMP it will be converted to NB/IMG.\0A\00"
@.str.4 = [78 x i8] c" If the extension is NB/IMG 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 = [72 x i8] c" -s Output smartphone format (for old WinCE devices).\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 ([36 x i8], [36 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 ([77 x i8], [77 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([78 x i8], [78 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 ([72 x i8], [72 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 = [36 x i8] c"Usage: nbimg -F file.[nb|bmp|img]\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 = [77 x i8] c" If the extension is BMP it will be converted to NB/IMG.\0A\00"
@.str.4 = [78 x i8] c" If the extension is NB/IMG 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 = [72 x i8] c" -s Output smartphone format (for old WinCE devices).\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 ([36 x i8], [36 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 ([77 x i8], [77 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([78 x i8], [78 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 ([72 x i8], [72 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
}