#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: hostap_crypt_conf [-123456789tpl] <device> [addr] "
         "[alg] [key]\n"
         "Options:\n"
         "  -1 .. -9   key index (for WEP); only one index per command\n"
         "  -t         set TX key index (given with -1 .. -9)\n"
         "  -p         permanent station configuration (do not expire "
         "data)\n"
         "  -l         list configured keys (do not use addr or alg)\n"
         "  device     wlan#\n"
         "  addr       station hwaddr or "
         "ff:ff:ff:ff:ff:ff"
         " for default/"
         "broadcast key\n"
         "  alg        crypt algorithm (WEP, NULL, none)\n"
         "  key        key data (in hex, e.g. '0011223344', or s:string)"
         "\n\n"
         "Algorithms:\n"
         "  WEP        40 or 104 bit WEP\n"
         "  NULL       NULL encryption (i.e., do not encrypt/decrypt);\n"
         "             used to configure no encryption for given\n"
         "             station when using default encryption\n"
         "  none       disable encryption\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [764 x i8] c"Usage: hostap_crypt_conf [-123456789tpl] <device> [addr] [alg] [key]\0AOptions:\0A -1 .. -9 key index (for WEP); only one index per command\0A -t set TX key index (given with -1 .. -9)\0A -p permanent station configuration (do not expire data)\0A -l list configured keys (do not use addr or alg)\0A device wlan#\0A addr station hwaddr or ff:ff:ff:ff:ff:ff for default/broadcast key\0A alg crypt algorithm (WEP, NULL, none)\0A key key data (in hex, e.g. '0011223344', or s:string)\0A\0AAlgorithms:\0A WEP 40 or 104 bit WEP\0A NULL NULL encryption (i.e., do not encrypt/decrypt);\0A used to configure no encryption for given\0A station when using default encryption\0A none disable encryption\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([764 x i8], [764 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [763 x i8] c"Usage: hostap_crypt_conf [-123456789tpl] <device> [addr] [alg] [key]\0AOptions:\0A -1 .. -9 key index (for WEP); only one index per command\0A -t set TX key index (given with -1 .. -9)\0A -p permanent station configuration (do not expire data)\0A -l list configured keys (do not use addr or alg)\0A device wlan#\0A addr station hwaddr or ff:ff:ff:ff:ff:ff for default/broadcast key\0A alg crypt algorithm (WEP, NULL, none)\0A key key data (in hex, e.g. '0011223344', or s:string)\0A\0AAlgorithms:\0A WEP 40 or 104 bit WEP\0A NULL NULL encryption (i.e., do not encrypt/decrypt);\0A used to configure no encryption for given\0A station when using default encryption\0A none disable encryption\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([763 x i8], [763 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 1)
unreachable
}