#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void help(char *prog) {
  printf("fmtools fm version %s\n\n", "1.0.2");
  printf("usage: %s [-h] [-o] [-q] [-d <dev>] [-t <tuner>] "
         "[-T none|forever|time] <freq>|on|off [<volume>]\n\n",
         prog);
  printf("A small controller for Video for Linux radio devices.\n\n");
  printf("  -h         display this help\n");
  printf("  -o         override frequency range limits of card\n");
  printf("  -q         quiet mode\n");
  printf("  -d <dev>   select device (default: /dev/radio0)\n");
  printf("  -t <tuner> select tuner (default: 0)\n");
  printf("  -T <time>  after setting frequency, sleep for some time\n"
         "             (default: none; -=forever)\n");
  printf("  <freq>     frequency in MHz (i.e. 94.3)\n");
  printf("  on         turn radio on\n");
  printf("  off        turn radio off (mute)\n");
  printf("  +          increase volume\n");
  printf("  -          decrease volume\n");
  printf("  <volume>   intensity (0-65535)\n");
  exit(0);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
lea    0xede(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf51(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf63(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfbb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x102a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1047(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1055(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x106b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x107b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x108b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<help>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rdi
lea    0xed6(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xece(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf20(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf87(%rip),%rdi
call   1030 <puts@plt>
lea    0xf93(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb9(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd4(%rip),%rdi
call   1030 <puts@plt>
lea    0x102a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1048(%rip),%rdi
call   1030 <puts@plt>
lea    0x1057(%rip),%rdi
call   1030 <puts@plt>
lea    0x106e(%rip),%rdi
call   1030 <puts@plt>
lea    0x107f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1090(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"fmtools fm version %s\0A\0A\00"
@.str.1 = [6 x i8] c"1.0.2\00"
@.str.2 = [99 x i8] c"usage: %s [-h] [-o] [-q] [-d <dev>] [-t <tuner>] [-T none|forever|time] <freq>|on|off [<volume>]\0A\0A\00"
@.str.3 = [56 x i8] c"A small controller for Video for Linux radio devices.\0A\0A\00"
@.str.4 = [32 x i8] c" -h display this help\0A\00"
@.str.5 = [54 x i8] c" -o override frequency range limits of card\0A\00"
@.str.6 = [25 x i8] c" -q quiet mode\0A\00"
@.str.7 = [51 x i8] c" -d <dev> select device (default: /dev/radio0)\0A\00"
@.str.8 = [40 x i8] c" -t <tuner> select tuner (default: 0)\0A\00"
@.str.9 = [99 x i8] c" -T <time> after setting frequency, sleep for some time\0A (default: none; -=forever)\0A\00"
@.str.10 = [43 x i8] c" <freq> frequency in MHz (i.e. 94.3)\0A\00"
@.str.11 = [28 x i8] c" on turn radio on\0A\00"
@.str.12 = [36 x i8] c" off turn radio off (mute)\0A\00"
@.str.13 = [30 x i8] c" + increase volume\0A\00"
@.str.14 = [30 x i8] c" - decrease volume\0A\00"
@.str.15 = [34 x i8] c" <volume> intensity (0-65535)\0A\00"
define void @help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.2, i64 0, i64 0), i8* %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.13, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.15, i64 0, i64 0))
%19 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [24 x i8] c"fmtools fm version %s\0A\0A\00"
@.str.1 = [6 x i8] c"1.0.2\00"
@.str.2 = [99 x i8] c"usage: %s [-h] [-o] [-q] [-d <dev>] [-t <tuner>] [-T none|forever|time] <freq>|on|off [<volume>]\0A\0A\00"
@str = [55 x i8] c"A small controller for Video for Linux radio devices.\0A\00"
@str.16 = [31 x i8] c" -h display this help\00"
@str.17 = [53 x i8] c" -o override frequency range limits of card\00"
@str.18 = [24 x i8] c" -q quiet mode\00"
@str.19 = [50 x i8] c" -d <dev> select device (default: /dev/radio0)\00"
@str.20 = [39 x i8] c" -t <tuner> select tuner (default: 0)\00"
@str.21 = [98 x i8] c" -T <time> after setting frequency, sleep for some time\0A (default: none; -=forever)\00"
@str.22 = [42 x i8] c" <freq> frequency in MHz (i.e. 94.3)\00"
@str.23 = [27 x i8] c" on turn radio on\00"
@str.24 = [35 x i8] c" off turn radio off (mute)\00"
@str.25 = [29 x i8] c" + increase volume\00"
@str.26 = [29 x i8] c" - decrease volume\00"
@str.27 = [33 x i8] c" <volume> intensity (0-65535)\00"
define void @help(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([99 x i8], [99 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([98 x i8], [98 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.24, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.25, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.26, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.27, i64 0, i64 0))
%17 = tail call i32 @exit(i32 0)
unreachable
}