#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                 .                             ");
  printf("\n                 .                             ");
  printf("\n                 .                             ");
  printf("\n                -1 - Append/Delete 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    0xfa8(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9c(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc1(%rip),%rdi
call   1030 <printf@plt>
lea    0xfea(%rip),%rdi
call   1030 <printf@plt>
lea    0x102a(%rip),%rdi
call   1030 <printf@plt>
lea    0x106f(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a9(%rip),%rdi
call   1030 <printf@plt>
lea    0x10cc(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f0(%rip),%rdi
call   1030 <printf@plt>
lea    0x1115(%rip),%rdi
call   1030 <printf@plt>
lea    0x113b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1158(%rip),%rdi
call   1030 <printf@plt>
lea    0x1176(%rip),%rdi
call   1030 <printf@plt>
lea    0x118c(%rip),%rdi
call   1030 <printf@plt>
lea    0x11bf(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_custom_ie_usage>:
push   %rbx
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
lea    0x127b(%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),%rbx
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
lea    0xf92(%rip),%rdi
call   1040 <printf@plt>
lea    0xfbb(%rip),%rdi
call   1040 <printf@plt>
lea    0xffb(%rip),%rdi
call   1040 <printf@plt>
lea    0x1040(%rip),%rdi
call   1040 <printf@plt>
lea    0x107a(%rip),%rdi
call   1040 <printf@plt>
lea    0x109d(%rip),%rdi
call   1040 <printf@plt>
lea    0x10c1(%rip),%rdi
call   1040 <printf@plt>
lea    0x10e6(%rip),%rdi
call   1040 <printf@plt>
lea    0x110c(%rip),%rdi
call   1040 <printf@plt>
lea    0x1129(%rip),%rdi
call   1040 <printf@plt>
lea    0x1147(%rip),%rdi
call   1040 <printf@plt>
lea    0x115d(%rip),%rdi
call   1040 <printf@plt>
lea    0x11b6(%rip),%rdi
pop    %rbx
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 = [49 x i8] c"\0A . \00"
@.str.7 = [53 x i8] c"\0A -1 - Append/Delete IE automatically\00"
@.str.8 = [76 x i8] c"\0A Delete will delete the IE from the matching IE buffer\00"
@.str.9 = [81 x i8] c"\0A Append will append the IE to the buffer with the same mask\00"
@.str.10 = [70 x i8] c"\0A MASK : Management subtype mask value as per bit defintions\00"
@.str.11 = [47 x i8] c"\0A : Bit 0 - Association request.\00"
@.str.12 = [48 x i8] c"\0A : Bit 1 - Association response.\00"
@.str.13 = [49 x i8] c"\0A : Bit 2 - Reassociation request.\00"
@.str.14 = [50 x i8] c"\0A : Bit 3 - Reassociation response.\00"
@.str.15 = [41 x i8] c"\0A : Bit 4 - Probe request.\00"
@.str.16 = [42 x i8] c"\0A : Bit 5 - Probe response.\00"
@.str.17 = [34 x i8] c"\0A : Bit 8 - Beacon.\00"
@.str.18 = [63 x i8] c"\0A MASK : MASK = 0 to clear the mask and the IE buffer\00"
@.str.19 = [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 ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.12, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.14, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.16, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.17, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.18, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.19, 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 = [49 x i8] c"\0A . \00"
@.str.7 = [53 x i8] c"\0A -1 - Append/Delete IE automatically\00"
@.str.8 = [76 x i8] c"\0A Delete will delete the IE from the matching IE buffer\00"
@.str.9 = [81 x i8] c"\0A Append will append the IE to the buffer with the same mask\00"
@.str.10 = [70 x i8] c"\0A MASK : Management subtype mask value as per bit defintions\00"
@.str.11 = [47 x i8] c"\0A : Bit 0 - Association request.\00"
@.str.12 = [48 x i8] c"\0A : Bit 1 - Association response.\00"
@.str.13 = [49 x i8] c"\0A : Bit 2 - Reassociation request.\00"
@.str.14 = [50 x i8] c"\0A : Bit 3 - Reassociation response.\00"
@.str.15 = [41 x i8] c"\0A : Bit 4 - Probe request.\00"
@.str.16 = [42 x i8] c"\0A : Bit 5 - Probe response.\00"
@.str.17 = [34 x i8] c"\0A : Bit 8 - Beacon.\00"
@.str.18 = [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.20 = [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 ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0))
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0))
%11 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str.8, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @.str.9, i64 0, i64 0))
%13 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.10, i64 0, i64 0))
%14 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0))
%15 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.12, i64 0, i64 0))
%16 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0))
%17 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.14, i64 0, i64 0))
%18 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0))
%19 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.16, i64 0, i64 0))
%20 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.17, i64 0, i64 0))
%21 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.18, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.20, i64 0, i64 0))
ret void
}