#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*/ printf(char *, ...);
int /*<<< orphan*/ ts_print_ascii_logo(int);
char *tslib_version();
void usage(char **argv) {
  ts_print_ascii_logo(16);
  printf("%s", tslib_version());
  printf("\n");
  printf("Usage: %s [--raw] [--non-blocking] [-s <samples>] [-i <device>]\n",
         argv[0]);
  printf("\n");
  printf("-r --raw\n");
  printf("                don't apply filter modules. use what module_raw\n");
  printf("                delivers directly.\n");
  printf("-n --non-blocking\n");
  printf("                tests non-blocking read and loops\n");
  printf("-i --idev\n");
  printf("                explicitly choose the touch input device\n");
  printf("                overriding TSLIB_TSDEVICE\n");
  printf("-s --samples\n");
  printf("                number of samples to request ts_read_mt() to\n");
  printf("		get before proceding\n");
  printf("-j --slots\n");
  printf("                set the number of concurrently available touch\n");
  printf("                points. This overrides multitouch slots for\n");
  printf("                testing purposes.\n");
  printf("-h --help\n");
  printf("                print this help text\n");
  printf("-v --version\n");
  printf("                print version information only\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x10,%edi
call   1050 <ts_print_ascii_logo@plt>
mov    $0x0,%al
call   1040 <tslib_version@plt>
mov    %rax,%rsi
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1112(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10ef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf63(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf63(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfcd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xffc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1011(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x100e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1026(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1026(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
mov    $0x10,%edi
call   1070 <ts_print_ascii_logo@plt>
xor    %eax,%eax
call   1060 <tslib_version@plt>
lea    0xe94(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    (%rbx),%rsi
lea    0xe79(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xea2(%rip),%rdi
call   1040 <puts@plt>
lea    0xe9f(%rip),%rdi
call   1040 <puts@plt>
lea    0xed3(%rip),%rdi
call   1040 <puts@plt>
lea    0xeea(%rip),%rdi
call   1040 <puts@plt>
lea    0xef0(%rip),%rdi
call   1040 <puts@plt>
lea    0xf16(%rip),%rdi
call   1040 <puts@plt>
lea    0xf14(%rip),%rdi
call   1040 <puts@plt>
lea    0xf41(%rip),%rdi
call   1040 <puts@plt>
lea    0xf5f(%rip),%rdi
call   1040 <puts@plt>
lea    0xf60(%rip),%rdi
call   1040 <puts@plt>
lea    0xf91(%rip),%rdi
call   1040 <puts@plt>
lea    0xf9c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf9b(%rip),%rdi
call   1040 <puts@plt>
lea    0xfce(%rip),%rdi
call   1040 <puts@plt>
lea    0xffe(%rip),%rdi
call   1040 <puts@plt>
lea    0x1014(%rip),%rdi
call   1040 <puts@plt>
lea    0x1012(%rip),%rdi
call   1040 <puts@plt>
lea    0x102b(%rip),%rdi
call   1040 <puts@plt>
lea    0x102c(%rip),%rdi
pop    %rbx
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [65 x i8] c"Usage: %s [--raw] [--non-blocking] [-s <samples>] [-i <device>]\0A\00"
@.str.3 = [10 x i8] c"-r --raw\0A\00"
@.str.4 = [65 x i8] c" don't apply filter modules. use what module_raw\0A\00"
@.str.5 = [36 x i8] c" delivers directly.\0A\00"
@.str.6 = [19 x i8] c"-n --non-blocking\0A\00"
@.str.7 = [51 x i8] c" tests non-blocking read and loops\0A\00"
@.str.8 = [11 x i8] c"-i --idev\0A\00"
@.str.9 = [58 x i8] c" explicitly choose the touch input device\0A\00"
@.str.10 = [43 x i8] c" overriding TSLIB_TSDEVICE\0A\00"
@.str.11 = [14 x i8] c"-s --samples\0A\00"
@.str.12 = [62 x i8] c" number of samples to request ts_read_mt() to\0A\00"
@.str.13 = [24 x i8] c"\09\09get before proceding\0A\00"
@.str.14 = [12 x i8] c"-j --slots\0A\00"
@.str.15 = [64 x i8] c" set the number of concurrently available touch\0A\00"
@.str.16 = [61 x i8] c" points. This overrides multitouch slots for\0A\00"
@.str.17 = [35 x i8] c" testing purposes.\0A\00"
@.str.18 = [11 x i8] c"-h --help\0A\00"
@.str.19 = [38 x i8] c" print this help text\0A\00"
@.str.20 = [14 x i8] c"-v --version\0A\00"
@.str.21 = [48 x i8] c" print version information only\0A\00"
define void @usage(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = call i32 @ts_print_ascii_logo(i32 16)
%4 = call i8* (...) @tslib_version()
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%7 = load i8**, i8*** %2
%8 = getelementptr inbounds i8*, i8** %7, i64 0
%9 = load i8*, i8** %8
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.2, i64 0, i64 0), i8* %9)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.9, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.10, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.12, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.15, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.16, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.17, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.19, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.20, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.21, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.2 = [65 x i8] c"Usage: %s [--raw] [--non-blocking] [-s <samples>] [-i <device>]\0A\00"
@str = [9 x i8] c"-r --raw\00"
@str.22 = [64 x i8] c" don't apply filter modules. use what module_raw\00"
@str.23 = [35 x i8] c" delivers directly.\00"
@str.24 = [18 x i8] c"-n --non-blocking\00"
@str.25 = [50 x i8] c" tests non-blocking read and loops\00"
@str.26 = [10 x i8] c"-i --idev\00"
@str.27 = [57 x i8] c" explicitly choose the touch input device\00"
@str.28 = [42 x i8] c" overriding TSLIB_TSDEVICE\00"
@str.29 = [13 x i8] c"-s --samples\00"
@str.30 = [61 x i8] c" number of samples to request ts_read_mt() to\00"
@str.31 = [23 x i8] c"\09\09get before proceding\00"
@str.32 = [11 x i8] c"-j --slots\00"
@str.33 = [63 x i8] c" set the number of concurrently available touch\00"
@str.34 = [60 x i8] c" points. This overrides multitouch slots for\00"
@str.35 = [34 x i8] c" testing purposes.\00"
@str.36 = [10 x i8] c"-h --help\00"
@str.37 = [37 x i8] c" print this help text\00"
@str.38 = [13 x i8] c"-v --version\00"
@str.39 = [47 x i8] c" print version information only\00"
define void @usage(i8** nocapture %0) {
%2 = tail call i32 @ts_print_ascii_logo(i32 16)
%3 = tail call i8* (...) @tslib_version()
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = tail call i32 @putchar(i32 10)
%6 = load i8*, i8** %0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.2, i64 0, i64 0), i8* %6)
%8 = tail call i32 @putchar(i32 10)
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.22, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.23, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.24, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.25, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.26, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.27, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.28, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.29, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.30, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.31, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.32, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.33, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.34, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.35, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.36, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.37, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.38, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.39, i64 0, i64 0))
ret void
}