#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(void) {
  fprintf(stderr, "\n- lsbstego v1.0. (c) RoMaNSoFt, 2007 -\n");
  fprintf(stderr, "A simple tool useful for a fast and \"visual\" "
                  "LSB-stegoanalysis phase.\n\n");
  fprintf(stderr,
          "Syntax: ./lsbstego {-f | -r} {-d | -u} {-o <offset>} <file>\n");
  fprintf(stderr, "        ./lsbstego -a <file>\n\n");
  fprintf(stderr, "Options\n");
  fprintf(stderr,
          "        -f (forward):   process file from the beginning to eof\n");
  fprintf(stderr,
          "        -r (reverse):   process file from eof to the beginning\n");
  fprintf(stderr, "        -d (downward):  lsb's are joined downward (i.e "
                  "dbyte = lsb1 ... lsb8)\n");
  fprintf(stderr, "        -u (upward):    lsb's are joined upward (i.e. dbyte "
                  "= lsb8 ... lsb1)\n");
  fprintf(stderr, "        -o <offset>:    skip <offset> bytes before starting "
                  "normal processing\n");
  fprintf(stderr,
          "        -a:             run all possible combinations / cases\n\n");
}


x86 assembly (clang, -O0):
<help>:
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    0xef0(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
lea    0xf23(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%edi
lea    0xf4b(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%edi
lea    0xf55(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
lea    0xf49(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%edi
lea    0xf74(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
lea    0xf9f(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%edi
lea    0xfd9(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
lea    0x1012(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%edi
lea    0x104c(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xefa(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf34(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf63(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf74(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf6f(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfa1(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfd3(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1014(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1054(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1095(%rip),%rsi
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [41 x i8] c"\0A- lsbstego v1.0. (c) RoMaNSoFt, 2007 -\0A\00"
@.str.1 = [72 x i8] c"A simple tool useful for a fast and \22visual\22 LSB-stegoanalysis phase.\0A\0A\00"
@.str.2 = [61 x i8] c"Syntax: ./lsbstego {-f | -r} {-d | -u} {-o <offset>} <file>\0A\00"
@.str.3 = [31 x i8] c" ./lsbstego -a <file>\0A\0A\00"
@.str.4 = [9 x i8] c"Options\0A\00"
@.str.5 = [64 x i8] c" -f (forward): process file from the beginning to eof\0A\00"
@.str.6 = [64 x i8] c" -r (reverse): process file from eof to the beginning\0A\00"
@.str.7 = [79 x i8] c" -d (downward): lsb's are joined downward (i.e dbyte = lsb1 ... lsb8)\0A\00"
@.str.8 = [78 x i8] c" -u (upward): lsb's are joined upward (i.e. dbyte = lsb8 ... lsb1)\0A\00"
@.str.9 = [79 x i8] c" -o <offset>: skip <offset> bytes before starting normal processing\0A\00"
@.str.10 = [64 x i8] c" -a: run all possible combinations / cases\0A\0A\00"
define void @help() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([79 x i8], [79 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 ([79 x i8], [79 x i8]* @.str.9, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.10, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [41 x i8] c"\0A- lsbstego v1.0. (c) RoMaNSoFt, 2007 -\0A\00"
@.str.1 = [72 x i8] c"A simple tool useful for a fast and \22visual\22 LSB-stegoanalysis phase.\0A\0A\00"
@.str.2 = [61 x i8] c"Syntax: ./lsbstego {-f | -r} {-d | -u} {-o <offset>} <file>\0A\00"
@.str.3 = [31 x i8] c" ./lsbstego -a <file>\0A\0A\00"
@.str.4 = [9 x i8] c"Options\0A\00"
@.str.5 = [64 x i8] c" -f (forward): process file from the beginning to eof\0A\00"
@.str.6 = [64 x i8] c" -r (reverse): process file from eof to the beginning\0A\00"
@.str.7 = [79 x i8] c" -d (downward): lsb's are joined downward (i.e dbyte = lsb1 ... lsb8)\0A\00"
@.str.8 = [78 x i8] c" -u (upward): lsb's are joined upward (i.e. dbyte = lsb8 ... lsb1)\0A\00"
@.str.9 = [79 x i8] c" -o <offset>: skip <offset> bytes before starting normal processing\0A\00"
@.str.10 = [64 x i8] c" -a: run all possible combinations / cases\0A\0A\00"
define void @help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([79 x i8], [79 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 ([79 x i8], [79 x i8]* @.str.9, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.10, i64 0, i64 0))
ret void
}