#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*/ exit(int);
int /*<<< orphan*/ putc(int, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void Send_Copyright(void) {
  static unsigned char msg[] = {0xaf, 0xa8, 0xcd, 0xd5, 0x97, 0xdd, 0xdd,
                                0x9f, 0x85, 0x8d, 0xc6, 0x8c, 0x85, 0xed,
                                0x8b, 0x85, 0xf2, 0xc0, 0xd7, 0xcb, 0xd1,
                                0xc2, 0xc0, 0xd6, 0xaf, 0xa8, 0xa5};
  unsigned char *p;
  p = msg;
  while (*p != 0xa5)
    putc((*p++ ^ 0xa5), stderr);
  exit(100);
}


x86 assembly (clang, -O0):
<Send_Copyright>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0x2f11(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
cmp    $0xa5,%eax
je     1170 <Send_Copyright+0x50>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movzbl (%rax),%edi
xor    $0xa5,%edi
mov    0x2e7c(%rip),%rax
mov    (%rax),%esi
call   1030 <putc@plt>
jmp    1133 <Send_Copyright+0x13>
mov    $0x64,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<Send_Copyright>:
push   %r15
push   %r14
push   %rbx
mov    $0xaf,%al
mov    $0x1,%ebx
lea    0xecd(%rip),%r14
mov    0x2ea6(%rip),%r15
nopw   0x0(%rax,%rax,1)
xor    $0xa5,%al
movzbl %al,%edi
mov    (%r15),%esi
call   1030 <putc@plt>
movzbl (%rbx,%r14,1),%eax
add    $0x1,%rbx
cmp    $0x1b,%rbx
jne    1140 <Send_Copyright+0x20>
mov    $0x64,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@Send_Copyright.msg = internal global [27 x i8] c"\AF\A8\CD\D5\97\DD\DD\9F\85\8D\C6\8C\85\ED\8B\85\F2\C0\D7\CB\D1\C2\C0\D6\AF\A8\A5"
@stderr = global i32 0
define void @Send_Copyright() {
%1 = alloca i8*
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @Send_Copyright.msg, i64 0, i64 0), i8** %1
br label %2
2: ; preds = %7, %0
%3 = load i8*, i8** %1
%4 = load i8, i8* %3
%5 = zext i8 %4 to i32
%6 = icmp ne i32 %5, 165
br i1 %6, label %7, label %15
7: ; preds = %2
%8 = load i8*, i8** %1
%9 = getelementptr inbounds i8, i8* %8, i32 1
store i8* %9, i8** %1
%10 = load i8, i8* %8
%11 = zext i8 %10 to i32
%12 = xor i32 %11, 165
%13 = load i32, i32* @stderr
%14 = call i32 @putc(i32 %12, i32 %13)
br label %2
15: ; preds = %2
%16 = call i32 @exit(i32 100)
unreachable
}

LLVM IR (-O2):
@Send_Copyright.msg = internal unnamed_addr constant [27 x i8] c"\AF\A8\CD\D5\97\DD\DD\9F\85\8D\C6\8C\85\ED\8B\85\F2\C0\D7\CB\D1\C2\C0\D6\AF\A8\A5"
@stderr = global i32 0
define void @Send_Copyright() {
br label %1
1: ; preds = %0, %1
%2 = phi i8 [ -81, %0 ], [ %9, %1 ]
%3 = phi i8* [ getelementptr inbounds ([27 x i8], [27 x i8]* @Send_Copyright.msg, i64 0, i64 0), %0 ], [ %4, %1 ]
%4 = getelementptr inbounds i8, i8* %3, i64 1
%5 = xor i8 %2, -91
%6 = zext i8 %5 to i32
%7 = load i32, i32* @stderr
%8 = tail call i32 @putc(i32 %6, i32 %7)
%9 = load i8, i8* %4
%10 = icmp eq i8* %4, getelementptr inbounds ([27 x i8], [27 x i8]* @Send_Copyright.msg, i64 0, i64 26)
br i1 %10, label %11, label %1
11: ; preds = %1
%12 = tail call i32 @exit(i32 100)
unreachable
}