#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");
  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>
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>
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"
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 @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"
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 @putchar(i8 signext 10)
ret void
}