#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_custom_ie_usage(void) {
  printf("\nUsage : customie [INDEX] [MASK] [IEBuffer]");
  printf("\n         empty - Get all IE settings\n");
  printf("\n         INDEX:  0 - Get/Set IE index 0 setting");
  printf("\n                 1 - Get/Set IE index 1 setting");
  printf("\n                 2 - Get/Set IE index 2 setting");
  printf("\n                 3 - Get/Set IE index 3 setting");
  printf("\n                -1 - Append/Delet IE automatically");
  printf("\n                     Delete will delete the IE from the matching "
         "IE buffer");
  printf("\n                     Append will append the IE to the buffer with "
         "the same mask");
  printf(
      "\n         MASK :  Management subtype mask value as per bit defintions");
  printf("\n              :  Bit 0 - Association request.");
  printf("\n              :  Bit 1 - Association response.");
  printf("\n              :  Bit 2 - Reassociation request.");
  printf("\n              :  Bit 3 - Reassociation response.");
  printf("\n              :  Bit 4 - Probe request.");
  printf("\n              :  Bit 5 - Probe response.");
  printf("\n              :  Bit 8 - Beacon.");
  printf("\n         MASK :  MASK = 0 to clear the mask and the IE buffer");
  printf("\n         IEBuffer :  IE Buffer in hex (max 256 bytes)\n\n");
  return;
}


x86 assembly (clang, -O0):
<print_custom_ie_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
call   1030 <printf@plt>
lea    0xf20(%rip),%rdi
call   1030 <printf@plt>
lea    0xf45(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8f(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb4(%rip),%rdi
call   1030 <printf@plt>
lea    0xfdc(%rip),%rdi
call   1030 <printf@plt>
lea    0x101c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1061(%rip),%rdi
call   1030 <printf@plt>
lea    0x109b(%rip),%rdi
call   1030 <printf@plt>
lea    0x10be(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e2(%rip),%rdi
call   1030 <printf@plt>
lea    0x1107(%rip),%rdi
call   1030 <printf@plt>
lea    0x112d(%rip),%rdi
call   1030 <printf@plt>
lea    0x114a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1168(%rip),%rdi
call   1030 <printf@plt>
lea    0x117e(%rip),%rdi
call   1030 <printf@plt>
lea    0x11b1(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_custom_ie_usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
lea    0x1249(%rip),%rdi
call   1030 <puts@plt>
lea    0xeec(%rip),%rdi
call   1040 <printf@plt>
lea    0xf11(%rip),%rdi
call   1040 <printf@plt>
lea    0xf36(%rip),%rdi
call   1040 <printf@plt>
lea    0xf5b(%rip),%rdi
call   1040 <printf@plt>
lea    0xf80(%rip),%rdi
call   1040 <printf@plt>
lea    0xfa8(%rip),%rdi
call   1040 <printf@plt>
lea    0xfe8(%rip),%rdi
call   1040 <printf@plt>
lea    0x102d(%rip),%rdi
call   1040 <printf@plt>
lea    0x1067(%rip),%rdi
call   1040 <printf@plt>
lea    0x108a(%rip),%rdi
call   1040 <printf@plt>
lea    0x10ae(%rip),%rdi
call   1040 <printf@plt>
lea    0x10d3(%rip),%rdi
call   1040 <printf@plt>
lea    0x10f9(%rip),%rdi
call   1040 <printf@plt>
lea    0x1116(%rip),%rdi
call   1040 <printf@plt>
lea    0x1134(%rip),%rdi
call   1040 <printf@plt>
lea    0x114a(%rip),%rdi
call   1040 <printf@plt>
lea    0x11a3(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [44 x i8] c"\0AUsage : customie [INDEX] [MASK] [IEBuffer]\00"
@.str.1 = [39 x i8] c"\0A empty - Get all IE settings\0A\00"
@.str.2 = [49 x i8] c"\0A INDEX: 0 - Get/Set IE index 0 setting\00"
@.str.3 = [49 x i8] c"\0A 1 - Get/Set IE index 1 setting\00"
@.str.4 = [49 x i8] c"\0A 2 - Get/Set IE index 2 setting\00"
@.str.5 = [49 x i8] c"\0A 3 - Get/Set IE index 3 setting\00"
@.str.6 = [52 x i8] c"\0A -1 - Append/Delet IE automatically\00"
@.str.7 = [76 x i8] c"\0A Delete will delete the IE from the matching IE buffer\00"
@.str.8 = [81 x i8] c"\0A Append will append the IE to the buffer with the same mask\00"
@.str.9 = [70 x i8] c"\0A MASK : Management subtype mask value as per bit defintions\00"
@.str.10 = [47 x i8] c"\0A : Bit 0 - Association request.\00"
@.str.11 = [48 x i8] c"\0A : Bit 1 - Association response.\00"
@.str.12 = [49 x i8] c"\0A : Bit 2 - Reassociation request.\00"
@.str.13 = [50 x i8] c"\0A : Bit 3 - Reassociation response.\00"
@.str.14 = [41 x i8] c"\0A : Bit 4 - Probe request.\00"
@.str.15 = [42 x i8] c"\0A : Bit 5 - Probe response.\00"
@.str.16 = [34 x i8] c"\0A : Bit 8 - Beacon.\00"
@.str.17 = [63 x i8] c"\0A MASK : MASK = 0 to clear the mask and the IE buffer\00"
@.str.18 = [57 x i8] c"\0A IEBuffer : IE Buffer in hex (max 256 bytes)\0A\0A\00"
define void @print_custom_ie_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 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 ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.18, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [44 x i8] c"\0AUsage : customie [INDEX] [MASK] [IEBuffer]\00"
@.str.2 = [49 x i8] c"\0A INDEX: 0 - Get/Set IE index 0 setting\00"
@.str.3 = [49 x i8] c"\0A 1 - Get/Set IE index 1 setting\00"
@.str.4 = [49 x i8] c"\0A 2 - Get/Set IE index 2 setting\00"
@.str.5 = [49 x i8] c"\0A 3 - Get/Set IE index 3 setting\00"
@.str.6 = [52 x i8] c"\0A -1 - Append/Delet IE automatically\00"
@.str.7 = [76 x i8] c"\0A Delete will delete the IE from the matching IE buffer\00"
@.str.8 = [81 x i8] c"\0A Append will append the IE to the buffer with the same mask\00"
@.str.9 = [70 x i8] c"\0A MASK : Management subtype mask value as per bit defintions\00"
@.str.10 = [47 x i8] c"\0A : Bit 0 - Association request.\00"
@.str.11 = [48 x i8] c"\0A : Bit 1 - Association response.\00"
@.str.12 = [49 x i8] c"\0A : Bit 2 - Reassociation request.\00"
@.str.13 = [50 x i8] c"\0A : Bit 3 - Reassociation response.\00"
@.str.14 = [41 x i8] c"\0A : Bit 4 - Probe request.\00"
@.str.15 = [42 x i8] c"\0A : Bit 5 - Probe response.\00"
@.str.16 = [34 x i8] c"\0A : Bit 8 - Beacon.\00"
@.str.17 = [63 x i8] c"\0A MASK : MASK = 0 to clear the mask and the IE buffer\00"
@str = [38 x i8] c"\0A empty - Get all IE settings\00"
@str.19 = [56 x i8] c"\0A IEBuffer : IE Buffer in hex (max 256 bytes)\0A\00"
define void @print_custom_ie_usage() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 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 ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.14, i64 0, i64 0))
%16 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.15, i64 0, i64 0))
%17 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.16, i64 0, i64 0))
%18 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.17, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.19, i64 0, i64 0))
ret void
}