#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);
int /*<<< orphan*/ printf(char *);
void usage(void) {
  printf("Usage:\n");
  printf("  eyefi-config [OPTIONS]\n");
  printf("  -a ESSID	add network (implies test unless --force)\n");
  printf("  -t ESSID	test network\n");
  printf("  -p KEY	set WPA key for add/test\n");
  printf("  -r ESSID	remove network\n");
  printf("  -s		scan for networks\n");
  printf("  -c		list configured networks\n");
  printf("  -b		reboot card\n");
  printf("  -f            print information about card firmware\n");
  printf("  -d level	set debugging level (default: 1)\n");
  printf("  -k		print card unique key\n");
  printf("  -l		dump card log\n");
  printf("  -m	 	print card mac\n");
  printf("  --transfer-mode[=mode]  print or change card transfer mode\n");
  printf("                          or =help to list modes\n");
  printf("  --wifi-radio  fetch wifi radio state\n");
  printf("  --wifi-radio=enable enable wifi radio\n");
  printf("  --wifi-radio=disable disable wifi radio\n");
  printf("  --endless	fetch endless storage information\n");
  printf("  --endless=<NN> set the endless storage percentage\n");
  printf("  --endless=[enable/disable]\n");
  exit(4);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
call   1030 <printf@plt>
lea    0xf16(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf49(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf64(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8f(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb0(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc1(%rip),%rdi
call   1030 <printf@plt>
lea    0xfca(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd5(%rip),%rdi
call   1030 <printf@plt>
lea    0x1007(%rip),%rdi
call   1030 <printf@plt>
lea    0x102d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1049(%rip),%rdi
call   1030 <printf@plt>
lea    0x1066(%rip),%rdi
call   1030 <printf@plt>
lea    0x1085(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a8(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d1(%rip),%rdi
call   1030 <printf@plt>
mov    $0x4,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xed3(%rip),%rdi
call   1030 <puts@plt>
lea    0xee0(%rip),%rdi
call   1030 <puts@plt>
lea    0xf09(%rip),%rdi
call   1030 <puts@plt>
lea    0xf15(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf39(%rip),%rdi
call   1030 <puts@plt>
lea    0xf45(%rip),%rdi
call   1030 <puts@plt>
lea    0xf58(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf88(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc0(%rip),%rdi
call   1030 <puts@plt>
lea    0xfca(%rip),%rdi
call   1030 <puts@plt>
lea    0xffb(%rip),%rdi
call   1030 <puts@plt>
lea    0x1020(%rip),%rdi
call   1030 <puts@plt>
lea    0x103b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1057(%rip),%rdi
call   1030 <puts@plt>
lea    0x1075(%rip),%rdi
call   1030 <puts@plt>
lea    0x1097(%rip),%rdi
call   1030 <puts@plt>
lea    0x10bf(%rip),%rdi
call   1030 <puts@plt>
mov    $0x4,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Usage:\0A\00"
@.str.1 = [26 x i8] c" eyefi-config [OPTIONS]\0A\00"
@.str.2 = [54 x i8] c" -a ESSID\09add network (implies test unless --force)\0A\00"
@.str.3 = [25 x i8] c" -t ESSID\09test network\0A\00"
@.str.4 = [35 x i8] c" -p KEY\09set WPA key for add/test\0A\00"
@.str.5 = [27 x i8] c" -r ESSID\09remove network\0A\00"
@.str.6 = [25 x i8] c" -s\09\09scan for networks\0A\00"
@.str.7 = [32 x i8] c" -c\09\09list configured networks\0A\00"
@.str.8 = [19 x i8] c" -b\09\09reboot card\0A\00"
@.str.9 = [55 x i8] c" -f print information about card firmware\0A\00"
@.str.10 = [45 x i8] c" -d level\09set debugging level (default: 1)\0A\00"
@.str.11 = [29 x i8] c" -k\09\09print card unique key\0A\00"
@.str.12 = [21 x i8] c" -l\09\09dump card log\0A\00"
@.str.13 = [23 x i8] c" -m\09 \09print card mac\0A\00"
@.str.14 = [62 x i8] c" --transfer-mode[=mode] print or change card transfer mode\0A\00"
@.str.15 = [50 x i8] c" or =help to list modes\0A\00"
@.str.16 = [40 x i8] c" --wifi-radio fetch wifi radio state\0A\00"
@.str.17 = [41 x i8] c" --wifi-radio=enable enable wifi radio\0A\00"
@.str.18 = [43 x i8] c" --wifi-radio=disable disable wifi radio\0A\00"
@.str.19 = [47 x i8] c" --endless\09fetch endless storage information\0A\00"
@.str.20 = [53 x i8] c" --endless=<NN> set the endless storage percentage\0A\00"
@.str.21 = [30 x i8] c" --endless=[enable/disable]\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @exit(i32 4)
unreachable
}

LLVM IR (-O2):
@str = [7 x i8] c"Usage:\00"
@str.22 = [25 x i8] c" eyefi-config [OPTIONS]\00"
@str.23 = [53 x i8] c" -a ESSID\09add network (implies test unless --force)\00"
@str.24 = [24 x i8] c" -t ESSID\09test network\00"
@str.25 = [34 x i8] c" -p KEY\09set WPA key for add/test\00"
@str.26 = [26 x i8] c" -r ESSID\09remove network\00"
@str.27 = [24 x i8] c" -s\09\09scan for networks\00"
@str.28 = [31 x i8] c" -c\09\09list configured networks\00"
@str.29 = [18 x i8] c" -b\09\09reboot card\00"
@str.30 = [54 x i8] c" -f print information about card firmware\00"
@str.31 = [44 x i8] c" -d level\09set debugging level (default: 1)\00"
@str.32 = [28 x i8] c" -k\09\09print card unique key\00"
@str.33 = [20 x i8] c" -l\09\09dump card log\00"
@str.34 = [22 x i8] c" -m\09 \09print card mac\00"
@str.35 = [61 x i8] c" --transfer-mode[=mode] print or change card transfer mode\00"
@str.36 = [49 x i8] c" or =help to list modes\00"
@str.37 = [39 x i8] c" --wifi-radio fetch wifi radio state\00"
@str.38 = [40 x i8] c" --wifi-radio=enable enable wifi radio\00"
@str.39 = [42 x i8] c" --wifi-radio=disable disable wifi radio\00"
@str.40 = [46 x i8] c" --endless\09fetch endless storage information\00"
@str.41 = [52 x i8] c" --endless=<NN> set the endless storage percentage\00"
@str.42 = [29 x i8] c" --endless=[enable/disable]\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.22, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.23, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.24, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.25, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.26, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.27, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.28, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.29, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.30, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.31, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.32, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.33, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.34, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.35, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.36, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.37, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.38, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.39, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.40, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.41, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.42, i64 0, i64 0))
%23 = tail call i32 @exit(i32 4)
unreachable
}