#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stdout;
void printSyntax(char *argv0, char id, char *stdwlan) {
  fprintf(stdout, "\nSyntax: ");
  if (id == 'u')
    fprintf(stdout, "sudo ");
  else if (id == 'y')
    fprintf(stdout, "su -c \"");
  else
    fprintf(stdout, "su -c \"");
  fprintf(stdout, "%s [N] [WLAN-IF]", argv0);
  if (id != 'u')
    fprintf(stdout, "\"");
  fprintf(stdout,
          "\nOptional parameters:\n\t[N]\t    skips installation\n\t[WLAN-IF]  "
          " specifies wireless interface (default \"%s\")\n\n",
          stdwlan);
}


x86 assembly (clang, -O0):
<printSyntax>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    %rdx,-0x18(%rbp)
mov    0x2eb3(%rip),%rax
mov    (%rax),%edi
lea    0xeca(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movsbl -0x9(%rbp),%eax
cmp    $0x75,%eax
jne    1166 <printSyntax+0x56>
mov    0x2e8f(%rip),%rax
mov    (%rax),%edi
lea    0xeb0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    11ab <printSyntax+0x9b>
movsbl -0x9(%rbp),%eax
cmp    $0x79,%eax
jne    118f <printSyntax+0x7f>
mov    0x2e66(%rip),%rax
mov    (%rax),%edi
lea    0xe8d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    11a6 <printSyntax+0x96>
mov    0x2e4a(%rip),%rax
mov    (%rax),%edi
lea    0xe71(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    11ab <printSyntax+0x9b>
mov    0x2e2e(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xe59(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movsbl -0x9(%rbp),%eax
cmp    $0x75,%eax
je     11ea <printSyntax+0xda>
mov    0x2e06(%rip),%rax
mov    (%rax),%edi
lea    0xe33(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2def(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
lea    0xe2b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printSyntax>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %esi,%ebp
mov    %rdi,%r15
mov    0x2eba(%rip),%rbx
mov    (%rbx),%edi
lea    0xed1(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
cmp    $0x75,%bpl
jne    1161 <printSyntax+0x51>
lea    0xec5(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xec3(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
jmp    1192 <printSyntax+0x82>
lea    0xea8(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xea0(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe8b(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe8e(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [10 x i8] c"\0ASyntax: \00"
@.str.1 = [6 x i8] c"sudo \00"
@.str.2 = [8 x i8] c"su -c \22\00"
@.str.3 = [17 x i8] c"%s [N] [WLAN-IF]\00"
@.str.4 = [2 x i8] c"\22\00"
@.str.5 = [109 x i8] c"\0AOptional parameters:\0A\09[N]\09 skips installation\0A\09[WLAN-IF] specifies wireless interface (default \22%s\22)\0A\0A\00"
define void @printSyntax(i8* %0, i8 signext %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8*
store i8* %0, i8** %4
store i8 %1, i8* %5
store i8* %2, i8** %6
%7 = load i32, i32* @stdout
%8 = call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%9 = load i8, i8* %5
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 117
br i1 %11, label %12, label %15
12: ; preds = %3
%13 = load i32, i32* @stdout
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %26
15: ; preds = %3
%16 = load i8, i8* %5
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 121
br i1 %18, label %19, label %22
19: ; preds = %15
%20 = load i32, i32* @stdout
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %25
22: ; preds = %15
%23 = load i32, i32* @stdout
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %25
25: ; preds = %22, %19
br label %26
26: ; preds = %25, %12
%27 = load i32, i32* @stdout
%28 = load i8*, i8** %4
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* %28)
%30 = load i8, i8* %5
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 117
br i1 %32, label %33, label %36
33: ; preds = %26
%34 = load i32, i32* @stdout
%35 = call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %36
36: ; preds = %33, %26
%37 = load i32, i32* @stdout
%38 = load i8*, i8** %6
%39 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([109 x i8], [109 x i8]* @.str.5, i64 0, i64 0), i8* %38)
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [10 x i8] c"\0ASyntax: \00"
@.str.1 = [6 x i8] c"sudo \00"
@.str.2 = [8 x i8] c"su -c \22\00"
@.str.3 = [17 x i8] c"%s [N] [WLAN-IF]\00"
@.str.4 = [2 x i8] c"\22\00"
@.str.5 = [109 x i8] c"\0AOptional parameters:\0A\09[N]\09 skips installation\0A\09[WLAN-IF] specifies wireless interface (default \22%s\22)\0A\0A\00"
define void @printSyntax(i8* %0, i8 signext %1, i8* %2) {
%4 = load i32, i32* @stdout
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i8 %1, 117
%7 = load i32, i32* @stdout
br i1 %6, label %8, label %12
8: ; preds = %3
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%10 = load i32, i32* @stdout
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* %0)
br label %18
12: ; preds = %3
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%14 = load i32, i32* @stdout
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%16 = load i32, i32* @stdout
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %18
18: ; preds = %8, %12
%19 = load i32, i32* @stdout
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([109 x i8], [109 x i8]* @.str.5, i64 0, i64 0), i8* %2)
ret void
}