#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*/ __create_tag(char *);
int /*<<< orphan*/ __print_sw_title(char *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strlen(char *);
int /*<<< orphan*/ strncmp(char *, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ strncpy(char *, char *, int);
int main(int argc, char *argv[]) {
  if (argc != 2) {
    __print_sw_title(argv[0]);
    return -1;
  }
  char *password = (char *)malloc(sizeof("uC0nf3renceP1st015") * sizeof(char));
  strncpy(password, argv[1], 12);
  if (!strncmp("uC0nf3renceP1st015",
               strcat(password, "\x50\x31\x73\x74\x30\x31\x35"),
               strlen("uC0nf3renceP1st015"))) {
    __create_tag(argv[0]);
    printf("\n +-+ Bang ! +-+ \n");
  } else {
    printf("\n Shut your fucking face, uncle fucka! \n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11b8 <main+0x38>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1070 <__print_sw_title@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1245 <main+0xc5>
mov    $0x13,%edi
call   1080 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    $0xc,%edx
call   1030 <strncpy@plt>
mov    -0x18(%rbp),%rdi
lea    0xe24(%rip),%rsi
call   1090 <strcat@plt>
mov    %eax,-0x1c(%rbp)
lea    0xe0a(%rip),%rdi
call   1050 <strlen@plt>
mov    -0x1c(%rbp),%esi
mov    %eax,%edx
lea    0xdf9(%rip),%rdi
call   1040 <strncmp@plt>
cmp    $0x0,%eax
jne    1232 <main+0xb2>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   10a0 <__create_tag@plt>
lea    0xdeb(%rip),%rdi
call   1060 <printf@plt>
jmp    123e <main+0xbe>
lea    0xded(%rip),%rdi
call   1060 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
cmp    $0x2,%edi
jne    11e4 <main+0x64>
mov    $0x13,%edi
call   1080 <malloc@plt>
mov    %rax,%rbx
mov    0x8(%r14),%rsi
mov    %rax,%rdi
mov    $0xc,%edx
call   1030 <strncpy@plt>
lea    0xe59(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcat@plt>
mov    %eax,%ebx
lea    0xe3d(%rip),%r15
mov    %r15,%rdi
call   1060 <strlen@plt>
mov    %r15,%rdi
mov    %ebx,%esi
mov    %eax,%edx
call   1040 <strncmp@plt>
test   %eax,%eax
je     11f3 <main+0x73>
lea    0xe43(%rip),%rdi
jmp    1202 <main+0x82>
mov    (%r14),%rdi
call   1070 <__print_sw_title@plt>
mov    $0xffffffff,%eax
jmp    1209 <main+0x89>
mov    (%r14),%rdi
call   10a0 <__create_tag@plt>
lea    0xe11(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [19 x i8] c"uC0nf3renceP1st015\00"
@.str.1 = [8 x i8] c"P1st015\00"
@.str.2 = [19 x i8] c"\0A +-+ Bang ! +-+ \0A\00"
@.str.3 = [41 x i8] c"\0A Shut your fucking face, uncle fucka! \0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca 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 %14
9: ; preds = %2
%10 = load i8**, i8*** %5
%11 = getelementptr inbounds i8*, i8** %10, i64 0
%12 = load i8*, i8** %11
%13 = call i32 @__print_sw_title(i8* %12)
store i32 -1, i32* %3
br label %36
14: ; preds = %2
%15 = call i64 @malloc(i32 19)
%16 = inttoptr i64 %15 to i8*
store i8* %16, i8** %6
%17 = load i8*, i8** %6
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 1
%20 = load i8*, i8** %19
%21 = call i32 @strncpy(i8* %17, i8* %20, i32 12)
%22 = load i8*, i8** %6
%23 = call i32 @strcat(i8* %22, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%24 = call i32 @strlen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%25 = call i32 @strncmp(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %23, i32 %24)
%26 = icmp ne i32 %25, 0
br i1 %26, label %33, label %27
27: ; preds = %14
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 0
%30 = load i8*, i8** %29
%31 = call i32 @__create_tag(i8* %30)
%32 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %35
33: ; preds = %14
%34 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
br label %35
35: ; preds = %33, %27
store i32 0, i32* %3
br label %36
36: ; preds = %35, %9
%37 = load i32, i32* %3
ret i32 %37
}

LLVM IR (-O2):
@.str = [19 x i8] c"uC0nf3renceP1st015\00"
@.str.1 = [8 x i8] c"P1st015\00"
@str = [18 x i8] c"\0A +-+ Bang ! +-+ \00"
@str.4 = [40 x i8] c"\0A Shut your fucking face, uncle fucka! \00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %7, label %4
4: ; preds = %2
%5 = load i8*, i8** %1
%6 = tail call i32 @__print_sw_title(i8* %5)
br label %23
7: ; preds = %2
%8 = tail call i64 @malloc(i32 19)
%9 = inttoptr i64 %8 to i8*
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32 @strncpy(i8* %9, i8* %11, i32 12)
%13 = tail call i32 @strcat(i8* %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%14 = tail call i32 @strlen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%15 = tail call i32 @strncmp(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %13, i32 %14)
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %21
17: ; preds = %7
%18 = load i8*, i8** %1
%19 = tail call i32 @__create_tag(i8* %18)
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
br label %23
21: ; preds = %7
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.4, i64 0, i64 0))
br label %23
23: ; preds = %17, %21, %4
%24 = phi i32 [ -1, %4 ], [ 0, %21 ], [ 0, %17 ]
ret i32 %24
}