#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*/ decrypt(char *);
int /*<<< orphan*/ puts(char *);
scalar_t__ strcmp(char *, char *);
int main(int argc, char **argv) {
  if (argc != 2) {
    puts("param");
    return 0;
  }
  char flag[] = {'I', 'D', 'M', '9', '|', 'X', 'p', 'p', 'e', 'z', '`', 'x',
                 '1', '1', 'e', '`', 'q', 'b', 'd', 'l', 'f', 's', '~', '\0'};
  decrypt(flag);
  if (strcmp(flag, argv[1]) == 0)
    puts("WIN");
  else
    puts("LOSE");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     1168 <main+0x38>
lea    0xea9(%rip),%rdi
call   1040 <puts@plt>
movl   $0x0,-0x4(%rbp)
jmp    11ca <main+0x9a>
mov    0xea1(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe9e(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xe9b(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    -0x30(%rbp),%rdi
call   1030 <decrypt@plt>
lea    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    11be <main+0x8e>
lea    0xe52(%rip),%rdi
call   1040 <puts@plt>
jmp    11ca <main+0x9a>
lea    0xe45(%rip),%rdi
call   1040 <puts@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
cmp    $0x2,%edi
jne    1187 <main+0x57>
mov    %rsi,%rbx
movaps 0xeca(%rip),%xmm0
movaps %xmm0,(%rsp)
movabs $0x7e73666c646271,%rax
mov    %rax,0x10(%rsp)
mov    %rsp,%r14
mov    %r14,%rdi
call   1030 <decrypt@plt>
mov    0x8(%rbx),%rsi
mov    %r14,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
lea    0xe8c(%rip),%rax
lea    0xe89(%rip),%rdi
cmove  %rax,%rdi
jmp    118e <main+0x5e>
lea    0xe72(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [6 x i8] c"param\00"
@__const.main.flag = [24 x i8] c"IDM9|Xppez`x11e`qbdlfs~\00"
@.str.1 = [4 x i8] c"WIN\00"
@.str.2 = [5 x i8] c"LOSE\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [24 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %25
11: ; preds = %2
%12 = bitcast [24 x i8]* %6 to i8*
%13 = getelementptr inbounds [24 x i8], [24 x i8]* %6, i64 0, i64 0
%14 = call i32 @decrypt(i8* %13)
%15 = getelementptr inbounds [24 x i8], [24 x i8]* %6, i64 0, i64 0
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 1
%18 = load i8*, i8** %17
%19 = call i64 @strcmp(i8* %15, i8* %18)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %11
%22 = call i32 @puts(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %25
23: ; preds = %11
%24 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %25
25: ; preds = %9, %23, %21
%26 = load i32, i32* %3
ret i32 %26
}

LLVM IR (-O2):
@.str = [6 x i8] c"param\00"
@__const.main.flag = [24 x i8] c"IDM9|Xppez`x11e`qbdlfs~\00"
@.str.1 = [4 x i8] c"WIN\00"
@.str.2 = [5 x i8] c"LOSE\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [24 x i8]
%4 = icmp eq i32 %0, 2
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %16
7: ; preds = %2
%8 = getelementptr inbounds [24 x i8], [24 x i8]* %3, i64 0, i64 0
%9 = call i32 @decrypt(i8* %8)
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = call i64 @strcmp(i8* %8, i8* %11)
%13 = icmp eq i64 %12, 0
%14 = select i1 %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0)
%15 = call i32 @puts(i8* dereferenceable(1) %14)
br label %16
16: ; preds = %7, %5
ret i32 0
}