#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*/ putchar(char);
int /*<<< orphan*/ puts(char *);
void help(void) {
  putchar('\n');
  puts("Usage: jscal <device>");
  putchar('\n');
  puts("  -c             --calibrate         Calibrate the joystick");
  puts("  -h             --help              Display this help");
  puts("  -s <x,y,z...>  --set-correction    Sets correction to specified "
       "values");
  puts("  -t             --test-center       Tests if joystick is corectly "
       "calibrated");
  puts("                                       returns 0 on success, see the "
       "jscal");
  puts("                                       manpage for error values");
  puts("  -V             --version           Prints the version numbers");
  puts("  -p             --print-correction  Prints the current settings as a "
       "jscal");
  puts("                                       command line");
  puts(
      "  -q             --print-mappings    Print the current axis and button");
  puts("                                       mappings as a jscal command "
       "line");
  puts("  -u <n_of_axes,axmap1,axmap2,...,");
  puts("      n_of_buttons,btnmap1,btnmap2,");
  puts("      ...>       --set-mappings      Sets axis and button mappings to "
       "the");
  puts("                                        specified values");
  putchar('\n');
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xecb(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xecb(%rip),%rdi
call   1040 <puts@plt>
lea    0xefb(%rip),%rdi
call   1040 <puts@plt>
lea    0xf26(%rip),%rdi
call   1040 <puts@plt>
lea    0xf63(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa5(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe4(%rip),%rdi
call   1040 <puts@plt>
lea    0x1018(%rip),%rdi
call   1040 <puts@plt>
lea    0x104c(%rip),%rdi
call   1040 <puts@plt>
lea    0x108c(%rip),%rdi
call   1040 <puts@plt>
lea    0x10b4(%rip),%rdi
call   1040 <puts@plt>
lea    0x10ef(%rip),%rdi
call   1040 <puts@plt>
lea    0x112b(%rip),%rdi
call   1040 <puts@plt>
lea    0x1142(%rip),%rdi
call   1040 <puts@plt>
lea    0x115a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1198(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xece(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xece(%rip),%rdi
call   1040 <puts@plt>
lea    0xefe(%rip),%rdi
call   1040 <puts@plt>
lea    0xf29(%rip),%rdi
call   1040 <puts@plt>
lea    0xf66(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa8(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe7(%rip),%rdi
call   1040 <puts@plt>
lea    0x101b(%rip),%rdi
call   1040 <puts@plt>
lea    0x104f(%rip),%rdi
call   1040 <puts@plt>
lea    0x108f(%rip),%rdi
call   1040 <puts@plt>
lea    0x10b7(%rip),%rdi
call   1040 <puts@plt>
lea    0x10f2(%rip),%rdi
call   1040 <puts@plt>
lea    0x112e(%rip),%rdi
call   1040 <puts@plt>
lea    0x1145(%rip),%rdi
call   1040 <puts@plt>
lea    0x115d(%rip),%rdi
call   1040 <puts@plt>
lea    0x119b(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"Usage: jscal <device>\00"
@.str.1 = [60 x i8] c" -c --calibrate Calibrate the joystick\00"
@.str.2 = [55 x i8] c" -h --help Display this help\00"
@.str.3 = [73 x i8] c" -s <x,y,z...> --set-correction Sets correction to specified values\00"
@.str.4 = [78 x i8] c" -t --test-center Tests if joystick is corectly calibrated\00"
@.str.5 = [75 x i8] c" returns 0 on success, see the jscal\00"
@.str.6 = [64 x i8] c" manpage for error values\00"
@.str.7 = [64 x i8] c" -V --version Prints the version numbers\00"
@.str.8 = [76 x i8] c" -p --print-correction Prints the current settings as a jscal\00"
@.str.9 = [52 x i8] c" command line\00"
@.str.10 = [71 x i8] c" -q --print-mappings Print the current axis and button\00"
@.str.11 = [72 x i8] c" mappings as a jscal command line\00"
@.str.12 = [35 x i8] c" -u <n_of_axes,axmap1,axmap2,...,\00"
@.str.13 = [36 x i8] c" n_of_buttons,btnmap1,btnmap2,\00"
@.str.14 = [74 x i8] c" ...> --set-mappings Sets axis and button mappings to the\00"
@.str.15 = [57 x i8] c" specified values\00"
define void @help() {
%1 = call i32 @putchar(i8 signext 10)
%2 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @putchar(i8 signext 10)
%4 = call i32 @puts(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 @puts(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0))
%16 = call i32 @puts(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0))
%17 = call i32 @puts(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.14, i64 0, i64 0))
%18 = call i32 @puts(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.15, i64 0, i64 0))
%19 = call i32 @putchar(i8 signext 10)
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"Usage: jscal <device>\00"
@.str.1 = [60 x i8] c" -c --calibrate Calibrate the joystick\00"
@.str.2 = [55 x i8] c" -h --help Display this help\00"
@.str.3 = [73 x i8] c" -s <x,y,z...> --set-correction Sets correction to specified values\00"
@.str.4 = [78 x i8] c" -t --test-center Tests if joystick is corectly calibrated\00"
@.str.5 = [75 x i8] c" returns 0 on success, see the jscal\00"
@.str.6 = [64 x i8] c" manpage for error values\00"
@.str.7 = [64 x i8] c" -V --version Prints the version numbers\00"
@.str.8 = [76 x i8] c" -p --print-correction Prints the current settings as a jscal\00"
@.str.9 = [52 x i8] c" command line\00"
@.str.10 = [71 x i8] c" -q --print-mappings Print the current axis and button\00"
@.str.11 = [72 x i8] c" mappings as a jscal command line\00"
@.str.12 = [35 x i8] c" -u <n_of_axes,axmap1,axmap2,...,\00"
@.str.13 = [36 x i8] c" n_of_buttons,btnmap1,btnmap2,\00"
@.str.14 = [74 x i8] c" ...> --set-mappings Sets axis and button mappings to the\00"
@.str.15 = [57 x i8] c" specified values\00"
define void @help() {
%1 = tail call i32 @putchar(i8 signext 10)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @putchar(i8 signext 10)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.6, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.7, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str.8, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.9, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str.10, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.11, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.14, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.15, i64 0, i64 0))
%19 = tail call i32 @putchar(i8 signext 10)
ret void
}