#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_test_mt [-v] [-i <device>] [-j <slots>] [-r "
         "<rotate_value>]\n");
  printf("\n");
  printf("-i --idev\n");
  printf("                       Override the input device to use\n");
  printf("-j --slots\n");
  printf("                       Override the number of possible touch "
         "contacts\n");
  printf(
      "                       Automatically detected only on Linux, but not\n");
  printf("                       for all devices\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("-n --samples\n");
  printf("                       exit automatically after n samples\n");
  printf("-a --altcross\n");
  printf("                       use an alternative crosshair\n");
  printf("-h --help\n");
  printf("                       print this help text\n");
  printf("-v --verbose\n");
  printf("                       print the touch samples to stdout\n");
  printf("\n");
  printf("Example (Linux): ts_test_mt -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    0x1269(%rip),%rdi
call   1040 <printf@plt>
lea    0xea8(%rip),%rdi
call   1040 <printf@plt>
lea    0x1251(%rip),%rdi
call   1040 <printf@plt>
lea    0xed7(%rip),%rdi
call   1040 <printf@plt>
lea    0xed6(%rip),%rdi
call   1040 <printf@plt>
lea    0xf03(%rip),%rdi
call   1040 <printf@plt>
lea    0xf03(%rip),%rdi
call   1040 <printf@plt>
lea    0xf3e(%rip),%rdi
call   1040 <printf@plt>
lea    0xf78(%rip),%rdi
call   1040 <printf@plt>
lea    0xf94(%rip),%rdi
call   1040 <printf@plt>
lea    0xf95(%rip),%rdi
call   1040 <printf@plt>
lea    0xfc7(%rip),%rdi
call   1040 <printf@plt>
lea    0xffb(%rip),%rdi
call   1040 <printf@plt>
lea    0x1032(%rip),%rdi
call   1040 <printf@plt>
lea    0x106e(%rip),%rdi
call   1040 <printf@plt>
lea    0x1070(%rip),%rdi
call   1040 <printf@plt>
lea    0x109f(%rip),%rdi
call   1040 <printf@plt>
lea    0x10a2(%rip),%rdi
call   1040 <printf@plt>
lea    0x10cb(%rip),%rdi
call   1040 <printf@plt>
lea    0x10ca(%rip),%rdi
call   1040 <printf@plt>
lea    0x10eb(%rip),%rdi
call   1040 <printf@plt>
lea    0x10ed(%rip),%rdi
call   1040 <printf@plt>
lea    0x1161(%rip),%rdi
call   1040 <printf@plt>
lea    0x110f(%rip),%rdi
call   1040 <printf@plt>
lea    0x1149(%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    0xecd(%rip),%rdi
call   1040 <puts@plt>
lea    0xecb(%rip),%rdi
call   1040 <puts@plt>
lea    0xef7(%rip),%rdi
call   1040 <puts@plt>
lea    0xef6(%rip),%rdi
call   1040 <puts@plt>
lea    0xf30(%rip),%rdi
call   1040 <puts@plt>
lea    0xf69(%rip),%rdi
call   1040 <puts@plt>
lea    0xf84(%rip),%rdi
call   1040 <puts@plt>
lea    0xf84(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb5(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe8(%rip),%rdi
call   1040 <puts@plt>
lea    0x101e(%rip),%rdi
call   1040 <puts@plt>
lea    0x1059(%rip),%rdi
call   1040 <puts@plt>
lea    0x105a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1088(%rip),%rdi
call   1040 <puts@plt>
lea    0x108a(%rip),%rdi
call   1040 <puts@plt>
lea    0x10b2(%rip),%rdi
call   1040 <puts@plt>
lea    0x10b0(%rip),%rdi
call   1040 <puts@plt>
lea    0x10d0(%rip),%rdi
call   1040 <puts@plt>
lea    0x10d1(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10f4(%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 = [71 x i8] c"Usage: ts_test_mt [-v] [-i <device>] [-j <slots>] [-r <rotate_value>]\0A\00"
@.str.2 = [11 x i8] c"-i --idev\0A\00"
@.str.3 = [57 x i8] c" Override the input device to use\0A\00"
@.str.4 = [12 x i8] c"-j --slots\0A\00"
@.str.5 = [71 x i8] c" Override the number of possible touch contacts\0A\00"
@.str.6 = [70 x i8] c" Automatically detected only on Linux, but not\0A\00"
@.str.7 = [40 x i8] c" for all devices\0A\00"
@.str.8 = [13 x i8] c"-r --rotate\0A\00"
@.str.9 = [62 x i8] c" <rotate_value> 0 ... no rotation; 0 degree (default)\0A\00"
@.str.10 = [64 x i8] c" 1 ... clockwise orientation; 90 degrees\0A\00"
@.str.11 = [67 x i8] c" 2 ... upside down orientation; 180 degrees\0A\00"
@.str.12 = [72 x i8] c" 3 ... counterclockwise orientation; 270 degrees\0A\00"
@.str.13 = [14 x i8] c"-n --samples\0A\00"
@.str.14 = [59 x i8] c" exit automatically after n samples\0A\00"
@.str.15 = [15 x i8] c"-a --altcross\0A\00"
@.str.16 = [53 x i8] c" use an alternative crosshair\0A\00"
@.str.17 = [11 x i8] c"-h --help\0A\00"
@.str.18 = [45 x i8] c" print this help text\0A\00"
@.str.19 = [14 x i8] c"-v --verbose\0A\00"
@.str.20 = [58 x i8] c" print the touch samples to stdout\0A\00"
@.str.21 = [72 x i8] c"Example (Linux): ts_test_mt -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 ([71 x i8], [71 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 ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.14, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.16, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.18, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.20, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.21, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [70 x i8] c"Usage: ts_test_mt [-v] [-i <device>] [-j <slots>] [-r <rotate_value>]\00"
@str.22 = [10 x i8] c"-i --idev\00"
@str.23 = [56 x i8] c" Override the input device to use\00"
@str.24 = [11 x i8] c"-j --slots\00"
@str.25 = [70 x i8] c" Override the number of possible touch contacts\00"
@str.26 = [69 x i8] c" Automatically detected only on Linux, but not\00"
@str.27 = [39 x i8] c" for all devices\00"
@str.28 = [12 x i8] c"-r --rotate\00"
@str.29 = [61 x i8] c" <rotate_value> 0 ... no rotation; 0 degree (default)\00"
@str.30 = [63 x i8] c" 1 ... clockwise orientation; 90 degrees\00"
@str.31 = [66 x i8] c" 2 ... upside down orientation; 180 degrees\00"
@str.32 = [71 x i8] c" 3 ... counterclockwise orientation; 270 degrees\00"
@str.33 = [13 x i8] c"-n --samples\00"
@str.34 = [58 x i8] c" exit automatically after n samples\00"
@str.35 = [14 x i8] c"-a --altcross\00"
@str.36 = [52 x i8] c" use an alternative crosshair\00"
@str.37 = [10 x i8] c"-h --help\00"
@str.38 = [44 x i8] c" print this help text\00"
@str.39 = [13 x i8] c"-v --verbose\00"
@str.40 = [57 x i8] c" print the touch samples to stdout\00"
@str.41 = [71 x i8] c"Example (Linux): ts_test_mt -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 ([70 x i8], [70 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @putchar(i32 10)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.22, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.23, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.24, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.25, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.26, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.27, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.28, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.29, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.30, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.31, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.32, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.33, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.34, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.35, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.36, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.37, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.38, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.39, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.40, i64 0, i64 0))
%25 = tail call i32 @putchar(i32 10)
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.41, i64 0, i64 0))
%27 = tail call i32 @putchar(i32 10)
ret void
}