#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 *);
scalar_t__ __is_valid_dynamic_token(char *);
int /*<<< orphan*/ __print_sw_title(char *);
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  if (argc != 2) {
    __print_sw_title(argv[0]);
    return -1;
  }
  if (__is_valid_dynamic_token(argv[1])) {
    __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    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     1178 <main+0x38>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1040 <__print_sw_title@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    11bf <main+0x7f>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1050 <__is_valid_dynamic_token@plt>
cmp    $0x0,%rax
je     11ac <main+0x6c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1060 <__create_tag@plt>
lea    0xe5e(%rip),%rdi
call   1030 <printf@plt>
jmp    11b8 <main+0x78>
lea    0xe60(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    %rsi,%rbx
cmp    $0x2,%edi
jne    1168 <main+0x28>
mov    0x8(%rbx),%rdi
call   1050 <__is_valid_dynamic_token@plt>
test   %rax,%rax
je     1177 <main+0x37>
mov    (%rbx),%rdi
call   1060 <__create_tag@plt>
lea    0xec2(%rip),%rdi
jmp    117e <main+0x3e>
mov    (%rbx),%rdi
call   1040 <__print_sw_title@plt>
mov    $0xffffffff,%eax
pop    %rbx
ret
lea    0xe82(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"\0A +-+ Bang ! +-+ \0A\00"
@.str.1 = [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**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp ne i32 %6, 2
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 0
%11 = load i8*, i8** %10
%12 = call i32 @__print_sw_title(i8* %11)
store i32 -1, i32* %3
br label %28
13: ; preds = %2
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = call i64 @__is_valid_dynamic_token(i8* %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %25
19: ; preds = %13
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 0
%22 = load i8*, i8** %21
%23 = call i32 @__create_tag(i8* %22)
%24 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
br label %27
25: ; preds = %13
%26 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
br label %27
27: ; preds = %25, %19
store i32 0, i32* %3
br label %28
28: ; preds = %27, %8
%29 = load i32, i32* %3
ret i32 %29
}

LLVM IR (-O2):
@str = [40 x i8] c"\0A Shut your fucking face, uncle fucka! \00"
@str.2 = [18 x i8] c"\0A +-+ Bang ! +-+ \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 %18
7: ; preds = %2
%8 = getelementptr inbounds i8*, i8** %1, i64 1
%9 = load i8*, i8** %8
%10 = tail call i64 @__is_valid_dynamic_token(i8* %9)
%11 = icmp eq i64 %10, 0
br i1 %11, label %16, label %12
12: ; preds = %7
%13 = load i8*, i8** %1
%14 = tail call i32 @__create_tag(i8* %13)
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.2, i64 0, i64 0))
br label %18
16: ; preds = %7
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str, i64 0, i64 0))
br label %18
18: ; preds = %12, %16, %4
%19 = phi i32 [ -1, %4 ], [ 0, %16 ], [ 0, %12 ]
ret i32 %19
}