#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 */
typedef int /*<<< orphan*/ encryption_data;
typedef int /*<<< orphan*/ encrypted_string;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
int main(int argc, char *argv[]) {
  char encryption_data[] = {0x25, 0x68, 0xd3, 0xc2, 0x28, 0xf2, 0x59, 0x2e,
                            0x94, 0xee, 0xf2, 0x91, 0xac, 0x13, 0x96, 0x95};
  char encrypted_string[] = {0x9b, 0x36, 0x40, 0xd7, 0x9b, 0x90, 0xf4, 0x8c,
                             0x56, 0xe0, 0xf0, 0x4b, 0x1c, 0xf3, 0x8a, 0x49,
                             0x9c, 0x3d, 0x42, 0xf1, 0x9c, 0xf2};
  int size = sizeof(encrypted_string);
  for (int i = 0; i < size; i++) {
    encrypted_string[i] =
        encrypted_string[i] ^
        encryption_data[(size + i - 1) % sizeof(encryption_data)];
  }
  printf("%s\r\n", encrypted_string);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xed3(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xed0(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xecd(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xec8(%rip),%eax
mov    %eax,-0x30(%rbp)
mov    0xec2(%rip),%ax
mov    %ax,-0x2c(%rbp)
movl   $0x16,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x44(%rbp),%eax
jge    11b8 <main+0xa8>
movslq -0x48(%rbp),%rax
movsbl -0x40(%rbp,%rax,1),%eax
mov    -0x44(%rbp),%ecx
add    -0x48(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
and    $0xf,%rcx
movsbl -0x20(%rbp,%rcx,1),%ecx
xor    %ecx,%eax
mov    %al,%cl
movslq -0x48(%rbp),%rax
mov    %cl,-0x40(%rbp,%rax,1)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1174 <main+0x64>
lea    -0x40(%rbp),%rsi
lea    0xe63(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movaps 0xef5(%rip),%xmm0
movaps %xmm0,(%rsp)
movabs $0xf29cf1423d9c498a,%rax
f1 9c f2
mov    %rax,0xe(%rsp)
movb   $0x69,(%rsp)
mov    $0x8,%eax
lea    0xec2(%rip),%rcx
xchg   %ax,%ax
lea    -0x2(%rax),%edx
and    $0xf,%edx
movzbl (%rdx,%rcx,1),%edx
xor    %dl,-0x7(%rsp,%rax,1)
lea    -0x1(%rax),%edx
and    $0xf,%edx
movzbl (%rdx,%rcx,1),%edx
xor    %dl,-0x6(%rsp,%rax,1)
mov    %eax,%edx
and    $0xf,%edx
movzbl (%rdx,%rcx,1),%edx
xor    %dl,-0x5(%rsp,%rax,1)
add    $0x3,%rax
cmp    $0x1d,%rax
jne    1140 <main+0x30>
lea    0xeac(%rip),%rdi
mov    %rsp,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@__const.main.encryption_data = [16 x i8] c"%h\D3\C2(\F2Y.\94\EE\F2\91\AC\13\96\95"
@__const.main.encrypted_string = [22 x i8] c"\9B6@\D7\9B\90\F4\8CV\E0\F0K\1C\F3\8AI\9C=B\F1\9C\F2"
@.str = [5 x i8] c"%s\0D\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [16 x i8]
%7 = alloca [22 x i8]
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = bitcast [16 x i8]* %6 to i8*
%11 = bitcast [22 x i8]* %7 to i8*
store i32 22, i32* %8
store i32 0, i32* %9
br label %12
12: ; preds = %36, %2
%13 = load i32, i32* %9
%14 = load i32, i32* %8
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %39
16: ; preds = %12
%17 = load i32, i32* %9
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [22 x i8], [22 x i8]* %7, i64 0, i64 %18
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = load i32, i32* %8
%23 = load i32, i32* %9
%24 = add nsw i32 %22, %23
%25 = sub nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = urem i64 %26, 16
%28 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 %27
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = xor i32 %21, %30
%32 = trunc i32 %31 to i8
%33 = load i32, i32* %9
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [22 x i8], [22 x i8]* %7, i64 0, i64 %34
store i8 %32, i8* %35
br label %36
36: ; preds = %16
%37 = load i32, i32* %9
%38 = add nsw i32 %37, 1
store i32 %38, i32* %9
br label %12
39: ; preds = %12
%40 = getelementptr inbounds [22 x i8], [22 x i8]* %7, i64 0, i64 0
%41 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %40)
%42 = load i32, i32* %3
ret i32 %42
}

LLVM IR (-O2):
@__const.main.encryption_data = [16 x i8] c"%h\D3\C2(\F2Y.\94\EE\F2\91\AC\13\96\95"
@__const.main.encrypted_string = [22 x i8] c"\9B6@\D7\9B\90\F4\8CV\E0\F0K\1C\F3\8AI\9C=B\F1\9C\F2"
@.str = [5 x i8] c"%s\0D\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [22 x i8]
%4 = getelementptr inbounds [22 x i8], [22 x i8]* %3, i64 0, i64 0
%5 = getelementptr inbounds [22 x i8], [22 x i8]* %3, i64 0, i64 0
store i8 105, i8* %5
br label %8
6: ; preds = %8
%7 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %4)
ret i32 0
8: ; preds = %8, %2
%9 = phi i64 [ 1, %2 ], [ %36, %8 ]
%10 = getelementptr inbounds [22 x i8], [22 x i8]* %3, i64 0, i64 %9
%11 = load i8, i8* %10
%12 = getelementptr inbounds [22 x i8], [22 x i8]* %3, i64 0, i64 %9
%13 = add nuw nsw i64 %9, 5
%14 = and i64 %13, 15
%15 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.main.encryption_data, i64 0, i64 %14
%16 = load i8, i8* %15
%17 = xor i8 %16, %11
store i8 %17, i8* %12
%18 = add nuw nsw i64 %9, 1
%19 = getelementptr inbounds [22 x i8], [22 x i8]* %3, i64 0, i64 %18
%20 = load i8, i8* %19
%21 = getelementptr inbounds [22 x i8], [22 x i8]* %3, i64 0, i64 %18
%22 = add nuw nsw i64 %9, 6
%23 = and i64 %22, 15
%24 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.main.encryption_data, i64 0, i64 %23
%25 = load i8, i8* %24
%26 = xor i8 %25, %20
store i8 %26, i8* %21
%27 = add nuw nsw i64 %9, 2
%28 = getelementptr inbounds [22 x i8], [22 x i8]* %3, i64 0, i64 %27
%29 = load i8, i8* %28
%30 = getelementptr inbounds [22 x i8], [22 x i8]* %3, i64 0, i64 %27
%31 = add nuw nsw i64 %9, 7
%32 = and i64 %31, 15
%33 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.main.encryption_data, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = xor i8 %34, %29
store i8 %35, i8* %30
%36 = add nuw nsw i64 %9, 3
%37 = icmp eq i64 %36, 22
br i1 %37, label %6, label %8
}