#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*/ printf(char *);
int /*<<< orphan*/ putchar(char);
void cryptography() {
  char table[] = {'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O',
                  'P', 'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K',
                  'L', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '?'};
  char *p, *ango = "KSOIDHEPZ";
  int index;
  p = ango;
  while (*p != '\0') {
    if ('A' <= *p && *p <= 'Z') {
      index = *p - 'A';
    } else {
      index = 26;
    }
    putchar(table[index]);
    p++;
  };
  printf("\n");
}


x86 assembly (clang, -O0):
<cryptography>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0xed1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xece(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xecb(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xec8(%rip),%ax
mov    %ax,-0x8(%rbp)
mov    0xec0(%rip),%al
mov    %al,-0x6(%rbp)
lea    0xeb7(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     11dc <cryptography+0xbc>
mov    -0x28(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x41,%eax
cmp    %ecx,%eax
jg     11b6 <cryptography+0x96>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5a,%eax
jg     11b6 <cryptography+0x96>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
sub    $0x41,%eax
mov    %eax,-0x34(%rbp)
jmp    11bd <cryptography+0x9d>
movl   $0x1a,-0x34(%rbp)
movslq -0x34(%rbp),%rax
movsbl -0x20(%rbp,%rax,1),%edi
call   1030 <putchar@plt>
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    1170 <cryptography+0x50>
lea    0xe42(%rip),%rdi
call   1040 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cryptography>:
push   %rax
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x4c,%edi
call   1030 <putchar@plt>
mov    $0x47,%edi
call   1030 <putchar@plt>
mov    $0x4f,%edi
call   1030 <putchar@plt>
mov    $0x52,%edi
call   1030 <putchar@plt>
mov    $0x49,%edi
call   1030 <putchar@plt>
mov    $0x54,%edi
call   1030 <putchar@plt>
mov    $0x48,%edi
call   1030 <putchar@plt>
mov    $0x4d,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@__const.cryptography.table = [27 x i8] c"QWERTYUIOPASDFGHJKLZXCVBNM?"
@.str = [10 x i8] c"KSOIDHEPZ\00"
@.str.1 = [2 x i8] c"\0A\00"
define void @cryptography() {
%1 = alloca [27 x i8]
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32
%5 = bitcast [27 x i8]* %1 to i8*
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8** %3
%6 = load i8*, i8** %3
store i8* %6, i8** %2
br label %7
7: ; preds = %28, %0
%8 = load i8*, i8** %2
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %36
12: ; preds = %7
%13 = load i8*, i8** %2
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = icmp sle i32 65, %15
br i1 %16, label %17, label %27
17: ; preds = %12
%18 = load i8*, i8** %2
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = icmp sle i32 %20, 90
br i1 %21, label %22, label %27
22: ; preds = %17
%23 = load i8*, i8** %2
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = sub nsw i32 %25, 65
store i32 %26, i32* %4
br label %28
27: ; preds = %17, %12
store i32 26, i32* %4
br label %28
28: ; preds = %27, %22
%29 = load i32, i32* %4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [27 x i8], [27 x i8]* %1, i64 0, i64 %30
%32 = load i8, i8* %31
%33 = call i32 @putchar(i8 signext %32)
%34 = load i8*, i8** %2
%35 = getelementptr inbounds i8, i8* %34, i32 1
store i8* %35, i8** %2
br label %7
36: ; preds = %7
%37 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
define void @cryptography() {
%1 = tail call i32 @putchar(i8 signext 65)
%2 = tail call i32 @putchar(i8 signext 76)
%3 = tail call i32 @putchar(i8 signext 71)
%4 = tail call i32 @putchar(i8 signext 79)
%5 = tail call i32 @putchar(i8 signext 82)
%6 = tail call i32 @putchar(i8 signext 73)
%7 = tail call i32 @putchar(i8 signext 84)
%8 = tail call i32 @putchar(i8 signext 72)
%9 = tail call i32 @putchar(i8 signext 77)
%10 = tail call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 10)
ret void
}