#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*/ strncasecmp(char const *const, char *, int);
int arghidden(char const *const *argv, int n) {
  if (n == 2 && !strncasecmp(argv[0], "se", 2) &&
      (!strncasecmp(argv[1], "authk", 5) || !strncasecmp(argv[1], "ke", 2)))
    return 1;
  if (n == 1 && !strncasecmp(argv[0], "p", 1))
    return 1;
  if (n == 3 && !strncasecmp(argv[0], "se", 2) &&
      !strncasecmp(argv[1], "se", 2))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<arghidden>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
cmpl   $0x2,-0x14(%rbp)
jne    119a <arghidden+0x8a>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xec9(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncasecmp@plt>
cmp    $0x0,%eax
jne    119a <arghidden+0x8a>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xeaa(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncasecmp@plt>
cmp    $0x0,%eax
je     118e <arghidden+0x7e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe8e(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncasecmp@plt>
cmp    $0x0,%eax
jne    119a <arghidden+0x8a>
movl   $0x1,-0x4(%rbp)
jmp    1231 <arghidden+0x121>
cmpl   $0x1,-0x14(%rbp)
jne    11d1 <arghidden+0xc1>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xe5a(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncasecmp@plt>
cmp    $0x0,%eax
jne    11d1 <arghidden+0xc1>
movl   $0x1,-0x4(%rbp)
jmp    1231 <arghidden+0x121>
cmpl   $0x3,-0x14(%rbp)
jne    122a <arghidden+0x11a>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xe17(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncasecmp@plt>
cmp    $0x0,%eax
jne    122a <arghidden+0x11a>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdf5(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncasecmp@plt>
cmp    $0x0,%eax
jne    122a <arghidden+0x11a>
movl   $0x1,-0x4(%rbp)
jmp    1231 <arghidden+0x121>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arghidden>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
cmp    $0x1,%esi
je     1178 <arghidden+0x68>
cmp    $0x3,%esi
je     1197 <arghidden+0x87>
cmp    $0x2,%esi
jne    11c8 <arghidden+0xb8>
mov    (%rbx),%rdi
lea    0xecc(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncasecmp@plt>
test   %eax,%eax
jne    11c8 <arghidden+0xb8>
mov    0x8(%rbx),%r14
lea    0xeb2(%rip),%rsi
mov    %r14,%rdi
mov    $0x5,%edx
call   1030 <strncasecmp@plt>
mov    $0x1,%ebx
test   %eax,%eax
je     11ca <arghidden+0xba>
lea    0xe9b(%rip),%rsi
mov    %r14,%rdi
mov    $0x2,%edx
jmp    118c <arghidden+0x7c>
mov    (%rbx),%rdi
lea    0xe8a(%rip),%rsi
mov    $0x1,%ebx
mov    $0x1,%edx
call   1030 <strncasecmp@plt>
test   %eax,%eax
jne    11c8 <arghidden+0xb8>
jmp    11ca <arghidden+0xba>
mov    (%rbx),%rdi
lea    0xe5f(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncasecmp@plt>
test   %eax,%eax
jne    11c8 <arghidden+0xb8>
mov    0x8(%rbx),%rdi
lea    0xe46(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncasecmp@plt>
test   %eax,%eax
je     11d4 <arghidden+0xc4>
xor    %ebx,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    $0x1,%ebx
jmp    11ca <arghidden+0xba>

LLVM IR (-O0):
@.str = [3 x i8] c"se\00"
@.str.1 = [6 x i8] c"authk\00"
@.str.2 = [3 x i8] c"ke\00"
@.str.3 = [2 x i8] c"p\00"
define i32 @arghidden(i8** %0, i32 %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
store i8** %0, i8*** %4
store i32 %1, i32* %5
%6 = load i32, i32* %5
%7 = icmp eq i32 %6, 2
br i1 %7, label %8, label %27
8: ; preds = %2
%9 = load i8**, i8*** %4
%10 = getelementptr inbounds i8*, i8** %9, i64 0
%11 = load i8*, i8** %10
%12 = call i32 @strncasecmp(i8* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%13 = icmp ne i32 %12, 0
br i1 %13, label %27, label %14
14: ; preds = %8
%15 = load i8**, i8*** %4
%16 = getelementptr inbounds i8*, i8** %15, i64 1
%17 = load i8*, i8** %16
%18 = call i32 @strncasecmp(i8* %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 5)
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %14
%21 = load i8**, i8*** %4
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call i32 @strncasecmp(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 2)
%25 = icmp ne i32 %24, 0
br i1 %25, label %27, label %26
26: ; preds = %20, %14
store i32 1, i32* %3
br label %54
27: ; preds = %20, %8, %2
%28 = load i32, i32* %5
%29 = icmp eq i32 %28, 1
br i1 %29, label %30, label %37
30: ; preds = %27
%31 = load i8**, i8*** %4
%32 = getelementptr inbounds i8*, i8** %31, i64 0
%33 = load i8*, i8** %32
%34 = call i32 @strncasecmp(i8* %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%35 = icmp ne i32 %34, 0
br i1 %35, label %37, label %36
36: ; preds = %30
store i32 1, i32* %3
br label %54
37: ; preds = %30, %27
%38 = load i32, i32* %5
%39 = icmp eq i32 %38, 3
br i1 %39, label %40, label %53
40: ; preds = %37
%41 = load i8**, i8*** %4
%42 = getelementptr inbounds i8*, i8** %41, i64 0
%43 = load i8*, i8** %42
%44 = call i32 @strncasecmp(i8* %43, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%45 = icmp ne i32 %44, 0
br i1 %45, label %53, label %46
46: ; preds = %40
%47 = load i8**, i8*** %4
%48 = getelementptr inbounds i8*, i8** %47, i64 1
%49 = load i8*, i8** %48
%50 = call i32 @strncasecmp(i8* %49, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%51 = icmp ne i32 %50, 0
br i1 %51, label %53, label %52
52: ; preds = %46
store i32 1, i32* %3
br label %54
53: ; preds = %46, %40, %37
store i32 0, i32* %3
br label %54
54: ; preds = %53, %52, %36, %26
%55 = load i32, i32* %3
ret i32 %55
}

LLVM IR (-O2):
@.str = [3 x i8] c"se\00"
@.str.1 = [6 x i8] c"authk\00"
@.str.2 = [3 x i8] c"ke\00"
@.str.3 = [2 x i8] c"p\00"
define i32 @arghidden(i8** nocapture %0, i32 %1) {
switch i32 %1, label %28 [
i32 2, label %3
i32 1, label %15
i32 3, label %19
]
3: ; preds = %2
%4 = load i8*, i8** %0
%5 = tail call i32 @strncasecmp(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %28
7: ; preds = %3
%8 = getelementptr inbounds i8*, i8** %0, i64 1
%9 = load i8*, i8** %8
%10 = tail call i32 @strncasecmp(i8* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 5)
%11 = icmp eq i32 %10, 0
br i1 %11, label %29, label %12
12: ; preds = %7
%13 = tail call i32 @strncasecmp(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 2)
%14 = icmp eq i32 %13, 0
br i1 %14, label %29, label %28
15: ; preds = %2
%16 = load i8*, i8** %0
%17 = tail call i32 @strncasecmp(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%18 = icmp eq i32 %17, 0
br i1 %18, label %29, label %28
19: ; preds = %2
%20 = load i8*, i8** %0
%21 = tail call i32 @strncasecmp(i8* %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %19
%24 = getelementptr inbounds i8*, i8** %0, i64 1
%25 = load i8*, i8** %24
%26 = tail call i32 @strncasecmp(i8* %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%27 = icmp eq i32 %26, 0
br i1 %27, label %29, label %28
28: ; preds = %15, %3, %12, %2, %23, %19
br label %29
29: ; preds = %23, %15, %7, %12, %28
%30 = phi i32 [ 0, %28 ], [ 1, %12 ], [ 1, %7 ], [ 1, %15 ], [ 1, %23 ]
ret i32 %30
}