#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 print_sys_cfg_wep_key_usage(void) {
  printf("\nUsage : sys_cfg_wep_key ");
  printf("[INDEX_0 IS_DEFAULT KEY_0] [INDEX_1 IS_DEFAULT KEY_1] [INDEX_2 "
         "IS_DEFAULT KEY_2] [INDEX_3 IS_DEFAULT KEY_3]\n");
  printf("[Index_0] [Index_1] [Index_2] [Index_3]\n");
  printf("\nOptions: INDEX_* :      0 - KeyIndex is 0");
  printf("\n                        1 - KeyIndex is 1");
  printf("\n                        2 - KeyIndex is 2");
  printf("\n                        3 - KeyIndex is 3");
  printf("\n         IS_DEFAULT :   0 - KeyIndex is not the default");
  printf("\n                        1 - KeyIndex is the default transmit key");
  printf("\n         KEY_* :        Key value");
  printf("\n         Index_*:       0 - Get key 0 setting");
  printf("\n                        1 - Get key 1 setting");
  printf("\n                        2 - Get key 2 setting");
  printf("\n                        3 - Get key 3 setting");
  printf("\n         empty - Get current WEP key settings\n");
  return;
}


x86 assembly (clang, -O0):
<print_sys_cfg_wep_key_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
call   1030 <printf@plt>
lea    0xf54(%rip),%rdi
call   1030 <printf@plt>
lea    0xf71(%rip),%rdi
call   1030 <printf@plt>
lea    0xf90(%rip),%rdi
call   1030 <printf@plt>
lea    0xfaf(%rip),%rdi
call   1030 <printf@plt>
lea    0xfce(%rip),%rdi
call   1030 <printf@plt>
lea    0xfed(%rip),%rdi
call   1030 <printf@plt>
lea    0x101a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1050(%rip),%rdi
call   1030 <printf@plt>
lea    0x1067(%rip),%rdi
call   1030 <printf@plt>
lea    0x108a(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ad(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d0(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f3(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_sys_cfg_wep_key_usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
lea    0x10ec(%rip),%rdi
call   1030 <puts@plt>
lea    0x114c(%rip),%rdi
call   1030 <puts@plt>
lea    0xece(%rip),%rdi
call   1040 <printf@plt>
lea    0xeed(%rip),%rdi
call   1040 <printf@plt>
lea    0xf0c(%rip),%rdi
call   1040 <printf@plt>
lea    0xf2b(%rip),%rdi
call   1040 <printf@plt>
lea    0xf4a(%rip),%rdi
call   1040 <printf@plt>
lea    0xf77(%rip),%rdi
call   1040 <printf@plt>
lea    0xfad(%rip),%rdi
call   1040 <printf@plt>
lea    0xfc4(%rip),%rdi
call   1040 <printf@plt>
lea    0xfe7(%rip),%rdi
call   1040 <printf@plt>
lea    0x100a(%rip),%rdi
call   1040 <printf@plt>
lea    0x102d(%rip),%rdi
call   1040 <printf@plt>
lea    0x10e4(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [26 x i8] c"\0AUsage : sys_cfg_wep_key \00"
@.str.1 = [109 x i8] c"[INDEX_0 IS_DEFAULT KEY_0] [INDEX_1 IS_DEFAULT KEY_1] [INDEX_2 IS_DEFAULT KEY_2] [INDEX_3 IS_DEFAULT KEY_3]\0A\00"
@.str.2 = [41 x i8] c"[Index_0] [Index_1] [Index_2] [Index_3]\0A\00"
@.str.3 = [43 x i8] c"\0AOptions: INDEX_* : 0 - KeyIndex is 0\00"
@.str.4 = [43 x i8] c"\0A 1 - KeyIndex is 1\00"
@.str.5 = [43 x i8] c"\0A 2 - KeyIndex is 2\00"
@.str.6 = [43 x i8] c"\0A 3 - KeyIndex is 3\00"
@.str.7 = [57 x i8] c"\0A IS_DEFAULT : 0 - KeyIndex is not the default\00"
@.str.8 = [66 x i8] c"\0A 1 - KeyIndex is the default transmit key\00"
@.str.9 = [35 x i8] c"\0A KEY_* : Key value\00"
@.str.10 = [47 x i8] c"\0A Index_*: 0 - Get key 0 setting\00"
@.str.11 = [47 x i8] c"\0A 1 - Get key 1 setting\00"
@.str.12 = [47 x i8] c"\0A 2 - Get key 2 setting\00"
@.str.13 = [47 x i8] c"\0A 3 - Get key 3 setting\00"
@.str.14 = [48 x i8] c"\0A empty - Get current WEP key settings\0A\00"
define void @print_sys_cfg_wep_key_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([109 x i8], [109 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.14, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [26 x i8] c"\0AUsage : sys_cfg_wep_key \00"
@.str.3 = [43 x i8] c"\0AOptions: INDEX_* : 0 - KeyIndex is 0\00"
@.str.4 = [43 x i8] c"\0A 1 - KeyIndex is 1\00"
@.str.5 = [43 x i8] c"\0A 2 - KeyIndex is 2\00"
@.str.6 = [43 x i8] c"\0A 3 - KeyIndex is 3\00"
@.str.7 = [57 x i8] c"\0A IS_DEFAULT : 0 - KeyIndex is not the default\00"
@.str.8 = [66 x i8] c"\0A 1 - KeyIndex is the default transmit key\00"
@.str.9 = [35 x i8] c"\0A KEY_* : Key value\00"
@.str.10 = [47 x i8] c"\0A Index_*: 0 - Get key 0 setting\00"
@.str.11 = [47 x i8] c"\0A 1 - Get key 1 setting\00"
@.str.12 = [47 x i8] c"\0A 2 - Get key 2 setting\00"
@.str.13 = [47 x i8] c"\0A 3 - Get key 3 setting\00"
@str = [108 x i8] c"[INDEX_0 IS_DEFAULT KEY_0] [INDEX_1 IS_DEFAULT KEY_1] [INDEX_2 IS_DEFAULT KEY_2] [INDEX_3 IS_DEFAULT KEY_3]\00"
@str.15 = [40 x i8] c"[Index_0] [Index_1] [Index_2] [Index_3]\00"
@str.16 = [47 x i8] c"\0A empty - Get current WEP key settings\00"
define void @print_sys_cfg_wep_key_usage() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([108 x i8], [108 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.15, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.16, i64 0, i64 0))
ret void
}