#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*/ Usage(char *);
int /*<<< orphan*/ printf(char *, ...);
void Help(char *binary) {
  printf("FBShot - makes screenshots from framebuffer, v%s\n", "0.3.1");
  printf("\t\tby Dariusz Swiderski <sfires@sfires.net>\n\n");
  Usage(binary);
  printf("\nPossible options:\n");
  printf("\t-C n  \tgrab from console n, for slower framebuffers\n");
  printf("\t-c n  \tgrab from console n\n");
  printf("\t-d dev\tuse framebuffer device dev instead of default\n");
  printf("\t-h    \tprint this usage information\n");
  printf("\t-i    \tturns OFF interlacing\n");
  printf("\t-s n  \tsleep n seconds before making screenshot\n");
  printf("\nSend feedback !!!\n");
}


x86 assembly (clang, -O0):
<Help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
lea    0xef8(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <Usage@plt>
lea    0xf06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Help>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rdi
lea    0xef0(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1050 <Usage@plt>
lea    0xf00(%rip),%rdi
call   1030 <puts@plt>
lea    0xf07(%rip),%rdi
call   1030 <puts@plt>
lea    0xf30(%rip),%rdi
call   1030 <puts@plt>
lea    0xf40(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf83(%rip),%rdi
call   1030 <puts@plt>
lea    0xf95(%rip),%rdi
call   1030 <puts@plt>
lea    0xfba(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [50 x i8] c"FBShot - makes screenshots from framebuffer, v%s\0A\00"
@.str.1 = [6 x i8] c"0.3.1\00"
@.str.2 = [45 x i8] c"\09\09by Dariusz Swiderski <sfires@sfires.net>\0A\0A\00"
@.str.3 = [20 x i8] c"\0APossible options:\0A\00"
@.str.4 = [54 x i8] c"\09-C n \09grab from console n, for slower framebuffers\0A\00"
@.str.5 = [29 x i8] c"\09-c n \09grab from console n\0A\00"
@.str.6 = [55 x i8] c"\09-d dev\09use framebuffer device dev instead of default\0A\00"
@.str.7 = [38 x i8] c"\09-h \09print this usage information\0A\00"
@.str.8 = [31 x i8] c"\09-i \09turns OFF interlacing\0A\00"
@.str.9 = [50 x i8] c"\09-s n \09sleep n seconds before making screenshot\0A\00"
@.str.10 = [20 x i8] c"\0ASend feedback !!!\0A\00"
define void @Help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0))
%5 = load i8*, i8** %2
%6 = call i32 @Usage(i8* %5)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [50 x i8] c"FBShot - makes screenshots from framebuffer, v%s\0A\00"
@.str.1 = [6 x i8] c"0.3.1\00"
@str = [44 x i8] c"\09\09by Dariusz Swiderski <sfires@sfires.net>\0A\00"
@str.11 = [19 x i8] c"\0APossible options:\00"
@str.12 = [53 x i8] c"\09-C n \09grab from console n, for slower framebuffers\00"
@str.13 = [28 x i8] c"\09-c n \09grab from console n\00"
@str.14 = [54 x i8] c"\09-d dev\09use framebuffer device dev instead of default\00"
@str.15 = [37 x i8] c"\09-h \09print this usage information\00"
@str.16 = [30 x i8] c"\09-i \09turns OFF interlacing\00"
@str.17 = [49 x i8] c"\09-s n \09sleep n seconds before making screenshot\00"
@str.18 = [19 x i8] c"\0ASend feedback !!!\00"
define void @Help(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @Usage(i8* %0)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.11, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.12, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.13, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.14, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.15, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.16, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.17, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.18, i64 0, i64 0))
ret void
}