#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_usage(void) {
  printf("\n\nUsage: \n\trtw_simple_config \t-i<ifname> -c<wpa_cfgfile> "
         "-n<dev_name> -p <pincode> -t <timeout>\n\t\t\t\t-m <phone_mac> [-dD] "
         "[-v]");
  printf("\n\nOPTIONS:\n\t");
  printf("-i = interface name\n\t");
  printf("-c = the path of wpa_supplicant config file\n\t");
  printf("-p = pincode\n\t");
  printf("-d = enable debug message, -D = more message.\n\t");
  printf("-n = device name\n\t");
  printf("-t = timeout (seconds)\n\t");
  printf("-m = filtering MAC, only accept the configuration frame which's from "
         "this MAC address\n\t");
  printf("-v = version\t\n\n");
  printf("example:\n\t");
  printf("rtw_simple_config -i wlan0 -c ./wpa_conf -D\n\t");
  printf("rtw_simple_config -i wlan0 -c ./wpa_conf -p 14825903 -t 120 -n "
         "RTKSC_SAMPLE -d\n\n");
  return;
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf57(%rip),%rdi
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
call   1030 <printf@plt>
lea    0xf62(%rip),%rdi
call   1030 <printf@plt>
lea    0xf84(%rip),%rdi
call   1030 <printf@plt>
lea    0xf87(%rip),%rdi
call   1030 <printf@plt>
lea    0xfab(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb2(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbf(%rip),%rdi
call   1030 <printf@plt>
lea    0x100b(%rip),%rdi
call   1030 <printf@plt>
lea    0x100f(%rip),%rdi
call   1030 <printf@plt>
lea    0x100e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1030(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
lea    0xf4a(%rip),%rdi
call   1040 <printf@plt>
lea    0xf4b(%rip),%rdi
call   1040 <printf@plt>
lea    0xf55(%rip),%rdi
call   1040 <printf@plt>
lea    0xf77(%rip),%rdi
call   1040 <printf@plt>
lea    0xf7a(%rip),%rdi
call   1040 <printf@plt>
lea    0xf9e(%rip),%rdi
call   1040 <printf@plt>
lea    0xfa5(%rip),%rdi
call   1040 <printf@plt>
lea    0xfb2(%rip),%rdi
call   1040 <printf@plt>
lea    0x1037(%rip),%rdi
call   1030 <puts@plt>
lea    0xff2(%rip),%rdi
call   1040 <printf@plt>
lea    0xff1(%rip),%rdi
call   1040 <printf@plt>
lea    0x1022(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [126 x i8] c"\0A\0AUsage: \0A\09rtw_simple_config \09-i<ifname> -c<wpa_cfgfile> -n<dev_name> -p <pincode> -t <timeout>\0A\09\09\09\09-m <phone_mac> [-dD] [-v]\00"
@.str.1 = [13 x i8] c"\0A\0AOPTIONS:\0A\09\00"
@.str.2 = [22 x i8] c"-i = interface name\0A\09\00"
@.str.3 = [46 x i8] c"-c = the path of wpa_supplicant config file\0A\09\00"
@.str.4 = [15 x i8] c"-p = pincode\0A\09\00"
@.str.5 = [48 x i8] c"-d = enable debug message, -D = more message.\0A\09\00"
@.str.6 = [19 x i8] c"-n = device name\0A\09\00"
@.str.7 = [25 x i8] c"-t = timeout (seconds)\0A\09\00"
@.str.8 = [88 x i8] c"-m = filtering MAC, only accept the configuration frame which's from this MAC address\0A\09\00"
@.str.9 = [16 x i8] c"-v = version\09\0A\0A\00"
@.str.10 = [11 x i8] c"example:\0A\09\00"
@.str.11 = [46 x i8] c"rtw_simple_config -i wlan0 -c ./wpa_conf -D\0A\09\00"
@.str.12 = [81 x i8] c"rtw_simple_config -i wlan0 -c ./wpa_conf -p 14825903 -t 120 -n RTKSC_SAMPLE -d\0A\0A\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([126 x i8], [126 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [126 x i8] c"\0A\0AUsage: \0A\09rtw_simple_config \09-i<ifname> -c<wpa_cfgfile> -n<dev_name> -p <pincode> -t <timeout>\0A\09\09\09\09-m <phone_mac> [-dD] [-v]\00"
@.str.1 = [13 x i8] c"\0A\0AOPTIONS:\0A\09\00"
@.str.2 = [22 x i8] c"-i = interface name\0A\09\00"
@.str.3 = [46 x i8] c"-c = the path of wpa_supplicant config file\0A\09\00"
@.str.4 = [15 x i8] c"-p = pincode\0A\09\00"
@.str.5 = [48 x i8] c"-d = enable debug message, -D = more message.\0A\09\00"
@.str.6 = [19 x i8] c"-n = device name\0A\09\00"
@.str.7 = [25 x i8] c"-t = timeout (seconds)\0A\09\00"
@.str.8 = [88 x i8] c"-m = filtering MAC, only accept the configuration frame which's from this MAC address\0A\09\00"
@.str.10 = [11 x i8] c"example:\0A\09\00"
@.str.11 = [46 x i8] c"rtw_simple_config -i wlan0 -c ./wpa_conf -D\0A\09\00"
@str = [15 x i8] c"-v = version\09\0A\00"
@str.13 = [80 x i8] c"rtw_simple_config -i wlan0 -c ./wpa_conf -p 14825903 -t 120 -n RTKSC_SAMPLE -d\0A\00"
define void @print_usage() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([126 x i8], [126 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%11 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.13, i64 0, i64 0))
ret void
}