#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*/ print_version();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ ts_print_ascii_logo(int);
void help(void) {
  ts_print_ascii_logo(16);
  print_version();
  printf("\n");
  printf("Usage: ts_calibrate [-r <rotate_value>] [--version]\n");
  printf("\n");
  printf("-r --rotate\n");
  printf("        <rotate_value> 0 ... no rotation; 0 degree (default)\n");
  printf("                       1 ... clockwise orientation; 90 degrees\n");
  printf("                       2 ... upside down orientation; 180 degrees\n");
  printf("                       3 ... counterclockwise orientation; 270 "
         "degrees\n");
  printf("-t --min_interval\n");
  printf("                       minimum time in ms between touch presses\n");
  printf("-c --validate\n");
  printf("                       validate the current calibration\n");
  printf("-b --boundary\n");
  printf("                       boundary criteria in validation mode\n");
  printf("-l --loops\n");
  printf(
      "                       number of crosses to touch in validation mode\n");
  printf("-s --timeout\n");
  printf("                       result screen timeout in seconds in "
         "validation mode\n");
  printf("                       -1 ... no timeout\n");
  printf("                        0 ... no result screen (quit immediately)\n");
  printf(
      "                        5 ... 5s timeout for result screen (default)\n");
  printf("-h --help\n");
  printf("                       print this help text\n");
  printf("-v --version\n");
  printf("                       print version information only\n");
  printf("\n");
  printf("Example (Linux): ts_calibrate -r $(cat "
         "/sys/class/graphics/fbcon/rotate)\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
mov    $0x10,%edi
call   1050 <ts_print_ascii_logo@plt>
mov    $0x0,%al
call   1030 <print_version@plt>
lea    0x130b(%rip),%rdi
call   1040 <printf@plt>
lea    0xea8(%rip),%rdi
call   1040 <printf@plt>
lea    0x12f3(%rip),%rdi
call   1040 <printf@plt>
lea    0xec5(%rip),%rdi
call   1040 <printf@plt>
lea    0xec6(%rip),%rdi
call   1040 <printf@plt>
lea    0xef8(%rip),%rdi
call   1040 <printf@plt>
lea    0xf2c(%rip),%rdi
call   1040 <printf@plt>
lea    0xf63(%rip),%rdi
call   1040 <printf@plt>
lea    0xf9f(%rip),%rdi
call   1040 <printf@plt>
lea    0xfa6(%rip),%rdi
call   1040 <printf@plt>
lea    0xfdb(%rip),%rdi
call   1040 <printf@plt>
lea    0xfde(%rip),%rdi
call   1040 <printf@plt>
lea    0x100b(%rip),%rdi
call   1040 <printf@plt>
lea    0x100e(%rip),%rdi
call   1040 <printf@plt>
lea    0x103f(%rip),%rdi
call   1040 <printf@plt>
lea    0x103f(%rip),%rdi
call   1040 <printf@plt>
lea    0x1079(%rip),%rdi
call   1040 <printf@plt>
lea    0x107b(%rip),%rdi
call   1040 <printf@plt>
lea    0x10bb(%rip),%rdi
call   1040 <printf@plt>
lea    0x10d9(%rip),%rdi
call   1040 <printf@plt>
lea    0x1110(%rip),%rdi
call   1040 <printf@plt>
lea    0x114a(%rip),%rdi
call   1040 <printf@plt>
lea    0x1149(%rip),%rdi
call   1040 <printf@plt>
lea    0x116a(%rip),%rdi
call   1040 <printf@plt>
lea    0x116c(%rip),%rdi
call   1040 <printf@plt>
lea    0x11df(%rip),%rdi
call   1040 <printf@plt>
lea    0x118b(%rip),%rdi
call   1040 <printf@plt>
lea    0x11c7(%rip),%rdi
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
mov    $0x10,%edi
call   1060 <ts_print_ascii_logo@plt>
xor    %eax,%eax
call   1050 <print_version@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe9d(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xebb(%rip),%rdi
call   1040 <puts@plt>
lea    0xebb(%rip),%rdi
call   1040 <puts@plt>
lea    0xeec(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1f(%rip),%rdi
call   1040 <puts@plt>
lea    0xf55(%rip),%rdi
call   1040 <puts@plt>
lea    0xf90(%rip),%rdi
call   1040 <puts@plt>
lea    0xf96(%rip),%rdi
call   1040 <puts@plt>
lea    0xfca(%rip),%rdi
call   1040 <puts@plt>
lea    0xfcc(%rip),%rdi
call   1040 <puts@plt>
lea    0xff8(%rip),%rdi
call   1040 <puts@plt>
lea    0xffa(%rip),%rdi
call   1040 <puts@plt>
lea    0x102a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1029(%rip),%rdi
call   1040 <puts@plt>
lea    0x1062(%rip),%rdi
call   1040 <puts@plt>
lea    0x1063(%rip),%rdi
call   1040 <puts@plt>
lea    0x10a2(%rip),%rdi
call   1040 <puts@plt>
lea    0x10bf(%rip),%rdi
call   1040 <puts@plt>
lea    0x10f5(%rip),%rdi
call   1040 <puts@plt>
lea    0x112e(%rip),%rdi
call   1040 <puts@plt>
lea    0x112c(%rip),%rdi
call   1040 <puts@plt>
lea    0x114c(%rip),%rdi
call   1040 <puts@plt>
lea    0x114d(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x116d(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [53 x i8] c"Usage: ts_calibrate [-r <rotate_value>] [--version]\0A\00"
@.str.2 = [13 x i8] c"-r --rotate\0A\00"
@.str.3 = [62 x i8] c" <rotate_value> 0 ... no rotation; 0 degree (default)\0A\00"
@.str.4 = [64 x i8] c" 1 ... clockwise orientation; 90 degrees\0A\00"
@.str.5 = [67 x i8] c" 2 ... upside down orientation; 180 degrees\0A\00"
@.str.6 = [72 x i8] c" 3 ... counterclockwise orientation; 270 degrees\0A\00"
@.str.7 = [19 x i8] c"-t --min_interval\0A\00"
@.str.8 = [65 x i8] c" minimum time in ms between touch presses\0A\00"
@.str.9 = [15 x i8] c"-c --validate\0A\00"
@.str.10 = [57 x i8] c" validate the current calibration\0A\00"
@.str.11 = [15 x i8] c"-b --boundary\0A\00"
@.str.12 = [61 x i8] c" boundary criteria in validation mode\0A\00"
@.str.13 = [12 x i8] c"-l --loops\0A\00"
@.str.14 = [70 x i8] c" number of crosses to touch in validation mode\0A\00"
@.str.15 = [14 x i8] c"-s --timeout\0A\00"
@.str.16 = [76 x i8] c" result screen timeout in seconds in validation mode\0A\00"
@.str.17 = [42 x i8] c" -1 ... no timeout\0A\00"
@.str.18 = [67 x i8] c" 0 ... no result screen (quit immediately)\0A\00"
@.str.19 = [70 x i8] c" 5 ... 5s timeout for result screen (default)\0A\00"
@.str.20 = [11 x i8] c"-h --help\0A\00"
@.str.21 = [45 x i8] c" print this help text\0A\00"
@.str.22 = [14 x i8] c"-v --version\0A\00"
@.str.23 = [55 x i8] c" print version information only\0A\00"
@.str.24 = [74 x i8] c"Example (Linux): ts_calibrate -r $(cat /sys/class/graphics/fbcon/rotate)\0A\00"
define void @help() {
%1 = call i32 @ts_print_ascii_logo(i32 16)
%2 = call i32 (...) @print_version()
%3 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.14, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.16, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.17, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.18, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.19, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.21, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.23, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.24, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [52 x i8] c"Usage: ts_calibrate [-r <rotate_value>] [--version]\00"
@str.25 = [12 x i8] c"-r --rotate\00"
@str.26 = [61 x i8] c" <rotate_value> 0 ... no rotation; 0 degree (default)\00"
@str.27 = [63 x i8] c" 1 ... clockwise orientation; 90 degrees\00"
@str.28 = [66 x i8] c" 2 ... upside down orientation; 180 degrees\00"
@str.29 = [71 x i8] c" 3 ... counterclockwise orientation; 270 degrees\00"
@str.30 = [18 x i8] c"-t --min_interval\00"
@str.31 = [64 x i8] c" minimum time in ms between touch presses\00"
@str.32 = [14 x i8] c"-c --validate\00"
@str.33 = [56 x i8] c" validate the current calibration\00"
@str.34 = [14 x i8] c"-b --boundary\00"
@str.35 = [60 x i8] c" boundary criteria in validation mode\00"
@str.36 = [11 x i8] c"-l --loops\00"
@str.37 = [69 x i8] c" number of crosses to touch in validation mode\00"
@str.38 = [13 x i8] c"-s --timeout\00"
@str.39 = [75 x i8] c" result screen timeout in seconds in validation mode\00"
@str.40 = [41 x i8] c" -1 ... no timeout\00"
@str.41 = [66 x i8] c" 0 ... no result screen (quit immediately)\00"
@str.42 = [69 x i8] c" 5 ... 5s timeout for result screen (default)\00"
@str.43 = [10 x i8] c"-h --help\00"
@str.44 = [44 x i8] c" print this help text\00"
@str.45 = [13 x i8] c"-v --version\00"
@str.46 = [54 x i8] c" print version information only\00"
@str.47 = [73 x i8] c"Example (Linux): ts_calibrate -r $(cat /sys/class/graphics/fbcon/rotate)\00"
define void @help() {
%1 = tail call i32 @ts_print_ascii_logo(i32 16)
%2 = tail call i32 (...) @print_version()
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @putchar(i32 10)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.25, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.26, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.27, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.28, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.29, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.30, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.31, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.32, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.33, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.34, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.35, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.36, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.37, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.38, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.39, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.40, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.41, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.42, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.43, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.44, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.45, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.46, i64 0, i64 0))
%28 = tail call i32 @putchar(i32 10)
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.47, i64 0, i64 0))
%30 = tail call i32 @putchar(i32 10)
ret void
}