#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 *, ...);
void printUsage(void) {
  printf("\nUsage: %s <-diprwgcslvh> [value]\n", "rfbb_cmd");
  printf("\t -d --device <path> defaults to %s\n", "/dev/rfbb");
  printf("\t -i --interface. RFBB, CUL or TELLSTICK. Defaults to RFBB (RF "
         "Bitbanger)\n");
  printf("\t -p --protocol. NEXA, NEXA_L, SARTANO, WAVEMAN, IKEA or RAW\n");
  printf("\t -r --read. Raw space/pulse reading. For interfaces above that "
         "supports reading\n");
  printf("\t -w --write. Send command (default)\n");
  printf("\t -g --group. The group/house/system number or letter\n");
  printf("\t -c --channel. The channel/unit number\n");
  printf("\t -s --serialnumber. The serial/unique number used by NEXA L "
         "(self-learning)\n");
  printf("\t -l --level. 0 - 100. All values above 0 will switch on non "
         "dimmable devices\n");
  printf("\t -v --verbose\n");
  printf("\t -h --help\n");
  printf("\n\t Some useful protocol arguments - NEXA, WAVEMAN:\n");
  printf("\t\tgroup: A..P\n\t\tchannel: 1..16\n\t\toff/on: 0..1\n");
  printf("\n");
  printf("\t Protocol arguments - SARTANO:\n");
  printf("\t\tchannel: 0000000000..1111111111\n\t\toff/on: 0..1\n");
  printf("\n");
  printf("\t Protocol arguments - IKEA:\n");
  printf("\t\tgroup (system): 1..16\n\t\tchannel(device): 1..10\n");
  printf("\t\tlevel: 0..100\n\t\t(dimstyle 0..1)\n\n");
  printf("\tA typical example (NEXA D1 on): %s -d /dev/rfbb -i RFBB -p NEXA -g "
         "D -c 1 -l 1\n\n",
         "rfbb_cmd");
}


x86 assembly (clang, -O0):
<printUsage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xf01(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
lea    0xf1a(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfdf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1008(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1023(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1063(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10cb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11b1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10de(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10f1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1187(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1107(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1117(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x113b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1151(%rip),%rdi
lea    0xdcd(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printUsage>:
push   %rbx
lea    0xec8(%rip),%rdi
lea    0xee4(%rip),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xedc(%rip),%rdi
lea    0xefa(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf48(%rip),%rdi
call   1040 <puts@plt>
lea    0xf86(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb7(%rip),%rdi
call   1040 <puts@plt>
lea    0xffc(%rip),%rdi
call   1040 <puts@plt>
lea    0x1015(%rip),%rdi
call   1040 <puts@plt>
lea    0x103f(%rip),%rdi
call   1040 <puts@plt>
lea    0x105b(%rip),%rdi
call   1040 <puts@plt>
lea    0x109c(%rip),%rdi
call   1040 <puts@plt>
lea    0x10de(%rip),%rdi
call   1040 <puts@plt>
lea    0x10e1(%rip),%rdi
call   1040 <puts@plt>
lea    0x10e1(%rip),%rdi
call   1040 <puts@plt>
lea    0x1108(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1120(%rip),%rdi
call   1040 <puts@plt>
lea    0x1134(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x114f(%rip),%rdi
call   1040 <puts@plt>
lea    0x1160(%rip),%rdi
call   1040 <puts@plt>
lea    0x1185(%rip),%rdi
call   1040 <puts@plt>
lea    0xe16(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
pop    %rbx
jmp    1050 <printf@plt>

LLVM IR (-O0):
@.str = [35 x i8] c"\0AUsage: %s <-diprwgcslvh> [value]\0A\00"
@.str.1 = [9 x i8] c"rfbb_cmd\00"
@.str.2 = [37 x i8] c"\09 -d --device <path> defaults to %s\0A\00"
@.str.3 = [10 x i8] c"/dev/rfbb\00"
@.str.4 = [75 x i8] c"\09 -i --interface. RFBB, CUL or TELLSTICK. Defaults to RFBB (RF Bitbanger)\0A\00"
@.str.5 = [62 x i8] c"\09 -p --protocol. NEXA, NEXA_L, SARTANO, WAVEMAN, IKEA or RAW\0A\00"
@.str.6 = [82 x i8] c"\09 -r --read. Raw space/pulse reading. For interfaces above that supports reading\0A\00"
@.str.7 = [38 x i8] c"\09 -w --write. Send command (default)\0A\00"
@.str.8 = [55 x i8] c"\09 -g --group. The group/house/system number or letter\0A\00"
@.str.9 = [41 x i8] c"\09 -c --channel. The channel/unit number\0A\00"
@.str.10 = [78 x i8] c"\09 -s --serialnumber. The serial/unique number used by NEXA L (self-learning)\0A\00"
@.str.11 = [79 x i8] c"\09 -l --level. 0 - 100. All values above 0 will switch on non dimmable devices\0A\00"
@.str.12 = [16 x i8] c"\09 -v --verbose\0A\00"
@.str.13 = [13 x i8] c"\09 -h --help\0A\00"
@.str.14 = [52 x i8] c"\0A\09 Some useful protocol arguments - NEXA, WAVEMAN:\0A\00"
@.str.15 = [47 x i8] c"\09\09group: A..P\0A\09\09channel: 1..16\0A\09\09off/on: 0..1\0A\00"
@.str.16 = [2 x i8] c"\0A\00"
@.str.17 = [33 x i8] c"\09 Protocol arguments - SARTANO:\0A\00"
@.str.18 = [50 x i8] c"\09\09channel: 0000000000..1111111111\0A\09\09off/on: 0..1\0A\00"
@.str.19 = [30 x i8] c"\09 Protocol arguments - IKEA:\0A\00"
@.str.20 = [50 x i8] c"\09\09group (system): 1..16\0A\09\09channel(device): 1..10\0A\00"
@.str.21 = [36 x i8] c"\09\09level: 0..100\0A\09\09(dimstyle 0..1)\0A\0A\00"
@.str.22 = [82 x i8] c"\09A typical example (NEXA D1 on): %s -d /dev/rfbb -i RFBB -p NEXA -g D -c 1 -l 1\0A\0A\00"
define void @printUsage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.4, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.6, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.10, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.11, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.14, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.15, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.17, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.18, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.19, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.20, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.21, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [35 x i8] c"\0AUsage: %s <-diprwgcslvh> [value]\0A\00"
@.str.1 = [9 x i8] c"rfbb_cmd\00"
@.str.2 = [37 x i8] c"\09 -d --device <path> defaults to %s\0A\00"
@.str.3 = [10 x i8] c"/dev/rfbb\00"
@.str.22 = [82 x i8] c"\09A typical example (NEXA D1 on): %s -d /dev/rfbb -i RFBB -p NEXA -g D -c 1 -l 1\0A\0A\00"
@str = [74 x i8] c"\09 -i --interface. RFBB, CUL or TELLSTICK. Defaults to RFBB (RF Bitbanger)\00"
@str.23 = [61 x i8] c"\09 -p --protocol. NEXA, NEXA_L, SARTANO, WAVEMAN, IKEA or RAW\00"
@str.24 = [81 x i8] c"\09 -r --read. Raw space/pulse reading. For interfaces above that supports reading\00"
@str.25 = [37 x i8] c"\09 -w --write. Send command (default)\00"
@str.26 = [54 x i8] c"\09 -g --group. The group/house/system number or letter\00"
@str.27 = [40 x i8] c"\09 -c --channel. The channel/unit number\00"
@str.28 = [77 x i8] c"\09 -s --serialnumber. The serial/unique number used by NEXA L (self-learning)\00"
@str.29 = [78 x i8] c"\09 -l --level. 0 - 100. All values above 0 will switch on non dimmable devices\00"
@str.30 = [15 x i8] c"\09 -v --verbose\00"
@str.31 = [12 x i8] c"\09 -h --help\00"
@str.32 = [51 x i8] c"\0A\09 Some useful protocol arguments - NEXA, WAVEMAN:\00"
@str.33 = [46 x i8] c"\09\09group: A..P\0A\09\09channel: 1..16\0A\09\09off/on: 0..1\00"
@str.34 = [32 x i8] c"\09 Protocol arguments - SARTANO:\00"
@str.35 = [49 x i8] c"\09\09channel: 0000000000..1111111111\0A\09\09off/on: 0..1\00"
@str.36 = [29 x i8] c"\09 Protocol arguments - IKEA:\00"
@str.37 = [49 x i8] c"\09\09group (system): 1..16\0A\09\09channel(device): 1..10\00"
@str.38 = [35 x i8] c"\09\09level: 0..100\0A\09\09(dimstyle 0..1)\0A\00"
define void @printUsage() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.23, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.24, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.25, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.26, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.27, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.28, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.29, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.30, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.31, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.32, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.33, i64 0, i64 0))
%15 = tail call i32 @putchar(i32 10)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.34, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.35, i64 0, i64 0))
%18 = tail call i32 @putchar(i32 10)
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.36, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.37, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.38, i64 0, i64 0))
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
ret void
}