#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*/ deb64_(char *, int *, char *);
int /*<<< orphan*/ dec_(char *, int *, char *, int *, char *);
int /*<<< orphan*/ despcf_(char *, int *, char *, int *);
int /*<<< orphan*/ enc_(char *, int *, char *, int *, char *);
int /*<<< orphan*/ keyhas_(char *, int *, int const *, int const *);
int /*<<< orphan*/ memset(char *, char, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ setper_(char const *);
int /*<<< orphan*/ spacfr_(char *, int *, char *, int *);
int /*<<< orphan*/ strcpy(char *, char *);
scalar_t__ strlen(char *);
int /*<<< orphan*/ tob64_(char *, int *, char *);
int main(int argc, char *argv[]) {
  char clearText[102];
  memset(clearText, '\0', sizeof(char) * 100);
  strcpy(clearText,
         "Some example text followed by many NULLs|abcdefghijklmnopqestuvwxyz");
  int nClearText = 100 * sizeof(char);
  char *testKey = "asdqwe";
  int testKeyLen = (int)strlen(testKey);
  char encText[102];
  memset(encText, '\0', sizeof(char) * 100);
  strcpy(encText, "no no no");
  printf("%s\n", clearText);
  static const char perm[64] = {
      61, 3,  2,  4,  5,  6,  7,  8,  9,  10, 11, 12, 14, 13, 15, 16,
      19, 18, 17, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 30, 29, 32,
      33, 34, 35, 36, 39, 38, 37, 40, 41, 42, 43, 44, 45, 46, 49, 48,
      47, 50, 53, 52, 51, 54, 55, 56, 57, 58, 59, 60, 64, 63, 62, 1,
  };
  static const int magic1 = 42;
  static const int magic2 = 3;
  keyhas_(testKey, &testKeyLen, &magic1, &magic2);
  setper_(perm);
  enc_(clearText, &nClearText, testKey, &testKeyLen, encText);
  encText[nClearText] = '\0';
  char tob64[400];
  memset(tob64, '\0', sizeof(char) * nClearText);
  tob64_(encText, &nClearText, tob64);
  tob64[2 * nClearText] = '\0';
  printf("\n");
  printf("%s\n", tob64);
  nClearText *= 2;
  char randomized[400];
  int nrandomized;
  spacfr_(tob64, &nClearText, randomized, &nrandomized);
  randomized[nrandomized] = '\0';
  printf("\n");
  printf("%s\n", randomized);
  keyhas_(testKey, &testKeyLen, &magic1, &magic2);
  char derandomized[400];
  int ndeq;
  despcf_(randomized, &nrandomized, derandomized, &ndeq);
  derandomized[ndeq] = '\0';
  printf("\n");
  printf("%s\n", derandomized);
  char deb64[102];
  deb64_(derandomized, &ndeq, deb64);
  ndeq /= 2;
  deb64[ndeq] = '\0';
  char decText[102];
  dec_(deb64, &ndeq, testKey, &testKeyLen, decText);
  decText[ndeq] = '\0';
  printf("\n");
  printf("%s\n", decText);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x6a0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1070 <memset@plt>
lea    -0x80(%rbp),%rdi
lea    0xe0c(%rip),%rsi
call   1040 <strcpy@plt>
movl   $0x64,-0x84(%rbp)
lea    0xe3a(%rip),%rax
mov    %rax,-0x90(%rbp)
mov    -0x90(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x94(%rbp)
lea    -0x100(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1070 <memset@plt>
lea    -0x100(%rbp),%rdi
lea    0xe07(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x80(%rbp),%rsi
lea    0xe00(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x90(%rbp),%rdi
lea    -0x94(%rbp),%rsi
lea    0xe30(%rip),%rdx
lea    0xe2d(%rip),%rcx
call   10c0 <keyhas_@plt>
lea    0xddd(%rip),%rdi
call   1080 <setper_@plt>
lea    -0x80(%rbp),%rdi
mov    -0x90(%rbp),%rdx
lea    -0x100(%rbp),%r8
lea    -0x84(%rbp),%rsi
lea    -0x94(%rbp),%rcx
call   10e0 <enc_@plt>
movslq -0x84(%rbp),%rax
movb   $0x0,-0x100(%rbp,%rax,1)
lea    -0x290(%rbp),%rdi
movslq -0x84(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1070 <memset@plt>
lea    -0x100(%rbp),%rdi
lea    -0x290(%rbp),%rdx
lea    -0x84(%rbp),%rsi
call   10a0 <tob64_@plt>
mov    -0x84(%rbp),%eax
shl    $0x1,%eax
cltq
movb   $0x0,-0x290(%rbp,%rax,1)
lea    0xd4b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x290(%rbp),%rsi
lea    0xd34(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x84(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x84(%rbp)
lea    -0x290(%rbp),%rdi
lea    -0x420(%rbp),%rdx
lea    -0x84(%rbp),%rsi
lea    -0x424(%rbp),%rcx
call   1090 <spacfr_@plt>
movslq -0x424(%rbp),%rax
movb   $0x0,-0x420(%rbp,%rax,1)
lea    0xce9(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x420(%rbp),%rsi
lea    0xcd2(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x90(%rbp),%rdi
lea    -0x94(%rbp),%rsi
lea    0xd02(%rip),%rdx
lea    0xcff(%rip),%rcx
call   10c0 <keyhas_@plt>
lea    -0x420(%rbp),%rdi
lea    -0x5c0(%rbp),%rdx
lea    -0x424(%rbp),%rsi
lea    -0x5c4(%rbp),%rcx
call   10d0 <despcf_@plt>
movslq -0x5c4(%rbp),%rax
movb   $0x0,-0x5c0(%rbp,%rax,1)
lea    0xc75(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x5c0(%rbp),%rsi
lea    0xc5e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x5c0(%rbp),%rdi
lea    -0x630(%rbp),%rdx
lea    -0x5c4(%rbp),%rsi
call   1030 <deb64_@plt>
mov    -0x5c4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x5c4(%rbp)
movslq -0x5c4(%rbp),%rax
movb   $0x0,-0x630(%rbp,%rax,1)
lea    -0x630(%rbp),%rdi
mov    -0x90(%rbp),%rdx
lea    -0x6a0(%rbp),%r8
lea    -0x5c4(%rbp),%rsi
lea    -0x94(%rbp),%rcx
call   10b0 <dec_@plt>
movslq -0x5c4(%rbp),%rax
movb   $0x0,-0x6a0(%rbp,%rax,1)
lea    0xbde(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x6a0(%rbp),%rsi
lea    0xbc7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x6a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x688,%rsp
lea    0x160(%rsp),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1070 <memset@plt>
lea    0xe11(%rip),%rsi
mov    %rbp,%rdi
call   1050 <strcpy@plt>
movl   $0x64,0x4(%rsp)
movl   $0x6,0xc(%rsp)
lea    0xf0(%rsp),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1070 <memset@plt>
lea    0xe26(%rip),%rsi
mov    %r14,%rdi
call   1050 <strcpy@plt>
mov    %rbp,%rdi
call   1060 <puts@plt>
lea    0xe08(%rip),%rbx
lea    0xe5d(%rip),%rdx
lea    0xe5a(%rip),%rcx
lea    0xc(%rsp),%r13
mov    %rbx,%rdi
mov    %r13,%rsi
call   10c0 <keyhas_@plt>
lea    0xdff(%rip),%rdi
call   1080 <setper_@plt>
lea    0x4(%rsp),%r15
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
mov    %r13,%rcx
mov    %r14,%r8
call   10e0 <enc_@plt>
movslq 0x4(%rsp),%rdx
movb   $0x0,0xf0(%rsp,%rdx,1)
lea    0x4f0(%rsp),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
call   1070 <memset@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
call   10a0 <tob64_@plt>
movslq 0x4(%rsp),%rax
movb   $0x0,0x4f0(%rsp,%rax,2)
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %rbp,%rdi
call   1060 <puts@plt>
shll   0x4(%rsp)
lea    0x360(%rsp),%r12
lea    0x8(%rsp),%r14
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r14,%rcx
call   1090 <spacfr_@plt>
movslq 0x8(%rsp),%rax
movb   $0x0,0x360(%rsp,%rax,1)
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %r12,%rdi
call   1060 <puts@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
lea    0xd87(%rip),%rdx
lea    0xd84(%rip),%rcx
call   10c0 <keyhas_@plt>
lea    0x1d0(%rsp),%rbp
mov    %rsp,%r15
mov    %r12,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
mov    %r15,%rcx
call   10d0 <despcf_@plt>
movslq (%rsp),%rax
movb   $0x0,0x1d0(%rsp,%rax,1)
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %rbp,%rdi
call   1060 <puts@plt>
lea    0x80(%rsp),%rbx
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
call   1030 <deb64_@plt>
mov    (%rsp),%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
mov    %ecx,(%rsp)
movslq %ecx,%rax
movb   $0x0,0x80(%rsp,%rax,1)
lea    0x10(%rsp),%rbp
mov    %rbx,%rdi
mov    %r15,%rsi
lea    0xca3(%rip),%rdx
mov    %r13,%rcx
mov    %rbp,%r8
call   10b0 <dec_@plt>
movslq (%rsp),%rax
movb   $0x0,0x10(%rsp,%rax,1)
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %rbp,%rdi
call   1060 <puts@plt>
xor    %eax,%eax
add    $0x688,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [68 x i8] c"Some example text followed by many NULLs|abcdefghijklmnopqestuvwxyz\00"
@.str.1 = [7 x i8] c"asdqwe\00"
@.str.2 = [9 x i8] c"no no no\00"
@.str.3 = [4 x i8] c"%s\0A\00"
@main.perm = internal constant [64 x i8] c"=\03\02\04\05\06\07\08\09\0A\0B\0C\0E\0D\0F\10\13\12\11\14\15\16\17\18\19\1A\1B\1C\1F\1E\1D !\22#$'&%()*+,-.10/25436789:;<@?>\01"
@main.magic1 = internal constant i32 42
@main.magic2 = internal constant i32 3
@.str.4 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [102 x i8]
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca [102 x i8]
%11 = alloca [400 x i8]
%12 = alloca [400 x i8]
%13 = alloca i32
%14 = alloca [400 x i8]
%15 = alloca i32
%16 = alloca [102 x i8]
%17 = alloca [102 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%18 = getelementptr inbounds [102 x i8], [102 x i8]* %6, i64 0, i64 0
%19 = call i32 @memset(i8* %18, i8 signext 0, i32 100)
%20 = getelementptr inbounds [102 x i8], [102 x i8]* %6, i64 0, i64 0
%21 = call i32 @strcpy(i8* %20, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str, i64 0, i64 0))
store i32 100, i32* %7
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %8
%22 = load i8*, i8** %8
%23 = call i64 @strlen(i8* %22)
%24 = trunc i64 %23 to i32
store i32 %24, i32* %9
%25 = getelementptr inbounds [102 x i8], [102 x i8]* %10, i64 0, i64 0
%26 = call i32 @memset(i8* %25, i8 signext 0, i32 100)
%27 = getelementptr inbounds [102 x i8], [102 x i8]* %10, i64 0, i64 0
%28 = call i32 @strcpy(i8* %27, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%29 = getelementptr inbounds [102 x i8], [102 x i8]* %6, i64 0, i64 0
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %29)
%31 = load i8*, i8** %8
%32 = call i32 @keyhas_(i8* %31, i32* %9, i32* @main.magic1, i32* @main.magic2)
%33 = call i32 @setper_(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @main.perm, i64 0, i64 0))
%34 = getelementptr inbounds [102 x i8], [102 x i8]* %6, i64 0, i64 0
%35 = load i8*, i8** %8
%36 = getelementptr inbounds [102 x i8], [102 x i8]* %10, i64 0, i64 0
%37 = call i32 @enc_(i8* %34, i32* %7, i8* %35, i32* %9, i8* %36)
%38 = load i32, i32* %7
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [102 x i8], [102 x i8]* %10, i64 0, i64 %39
store i8 0, i8* %40
%41 = getelementptr inbounds [400 x i8], [400 x i8]* %11, i64 0, i64 0
%42 = load i32, i32* %7
%43 = sext i32 %42 to i64
%44 = mul i64 1, %43
%45 = trunc i64 %44 to i32
%46 = call i32 @memset(i8* %41, i8 signext 0, i32 %45)
%47 = getelementptr inbounds [102 x i8], [102 x i8]* %10, i64 0, i64 0
%48 = getelementptr inbounds [400 x i8], [400 x i8]* %11, i64 0, i64 0
%49 = call i32 @tob64_(i8* %47, i32* %7, i8* %48)
%50 = load i32, i32* %7
%51 = mul nsw i32 2, %50
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [400 x i8], [400 x i8]* %11, i64 0, i64 %52
store i8 0, i8* %53
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%55 = getelementptr inbounds [400 x i8], [400 x i8]* %11, i64 0, i64 0
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %55)
%57 = load i32, i32* %7
%58 = mul nsw i32 %57, 2
store i32 %58, i32* %7
%59 = getelementptr inbounds [400 x i8], [400 x i8]* %11, i64 0, i64 0
%60 = getelementptr inbounds [400 x i8], [400 x i8]* %12, i64 0, i64 0
%61 = call i32 @spacfr_(i8* %59, i32* %7, i8* %60, i32* %13)
%62 = load i32, i32* %13
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [400 x i8], [400 x i8]* %12, i64 0, i64 %63
store i8 0, i8* %64
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%66 = getelementptr inbounds [400 x i8], [400 x i8]* %12, i64 0, i64 0
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %66)
%68 = load i8*, i8** %8
%69 = call i32 @keyhas_(i8* %68, i32* %9, i32* @main.magic1, i32* @main.magic2)
%70 = getelementptr inbounds [400 x i8], [400 x i8]* %12, i64 0, i64 0
%71 = getelementptr inbounds [400 x i8], [400 x i8]* %14, i64 0, i64 0
%72 = call i32 @despcf_(i8* %70, i32* %13, i8* %71, i32* %15)
%73 = load i32, i32* %15
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [400 x i8], [400 x i8]* %14, i64 0, i64 %74
store i8 0, i8* %75
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%77 = getelementptr inbounds [400 x i8], [400 x i8]* %14, i64 0, i64 0
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %77)
%79 = getelementptr inbounds [400 x i8], [400 x i8]* %14, i64 0, i64 0
%80 = getelementptr inbounds [102 x i8], [102 x i8]* %16, i64 0, i64 0
%81 = call i32 @deb64_(i8* %79, i32* %15, i8* %80)
%82 = load i32, i32* %15
%83 = sdiv i32 %82, 2
store i32 %83, i32* %15
%84 = load i32, i32* %15
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [102 x i8], [102 x i8]* %16, i64 0, i64 %85
store i8 0, i8* %86
%87 = getelementptr inbounds [102 x i8], [102 x i8]* %16, i64 0, i64 0
%88 = load i8*, i8** %8
%89 = getelementptr inbounds [102 x i8], [102 x i8]* %17, i64 0, i64 0
%90 = call i32 @dec_(i8* %87, i32* %15, i8* %88, i32* %9, i8* %89)
%91 = load i32, i32* %15
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [102 x i8], [102 x i8]* %17, i64 0, i64 %92
store i8 0, i8* %93
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%95 = getelementptr inbounds [102 x i8], [102 x i8]* %17, i64 0, i64 0
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %95)
ret i32 0
}

LLVM IR (-O2):
@.str = [68 x i8] c"Some example text followed by many NULLs|abcdefghijklmnopqestuvwxyz\00"
@.str.1 = [7 x i8] c"asdqwe\00"
@.str.2 = [9 x i8] c"no no no\00"
@main.perm = internal constant [64 x i8] c"=\03\02\04\05\06\07\08\09\0A\0B\0C\0E\0D\0F\10\13\12\11\14\15\16\17\18\19\1A\1B\1C\1F\1E\1D !\22#$'&%()*+,-.10/25436789:;<@?>\01"
@main.magic1 = internal constant i32 42
@main.magic2 = internal constant i32 3
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [102 x i8]
%4 = alloca i32
%5 = alloca i32
%6 = alloca [102 x i8]
%7 = alloca [400 x i8]
%8 = alloca [400 x i8]
%9 = alloca i32
%10 = alloca [400 x i8]
%11 = alloca i32
%12 = alloca [102 x i8]
%13 = alloca [102 x i8]
%14 = getelementptr inbounds [102 x i8], [102 x i8]* %3, i64 0, i64 0
%15 = call i32 @memset(i8* %14, i8 signext 0, i32 100)
%16 = call i32 @strcpy(i8* %14, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str, i64 0, i64 0))
%17 = bitcast i32* %4 to i8*
store i32 100, i32* %4
%18 = bitcast i32* %5 to i8*
store i32 6, i32* %5
%19 = getelementptr inbounds [102 x i8], [102 x i8]* %6, i64 0, i64 0
%20 = call i32 @memset(i8* %19, i8 signext 0, i32 100)
%21 = call i32 @strcpy(i8* %19, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%22 = call i32 @puts(i8* %14)
%23 = call i32 @keyhas_(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %5, i32* @main.magic1, i32* @main.magic2)
%24 = call i32 @setper_(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @main.perm, i64 0, i64 0))
%25 = call i32 @enc_(i8* %14, i32* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %5, i8* %19)
%26 = load i32, i32* %4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [102 x i8], [102 x i8]* %6, i64 0, i64 %27
store i8 0, i8* %28
%29 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 0
%30 = call i32 @memset(i8* %29, i8 signext 0, i32 %26)
%31 = call i32 @tob64_(i8* %19, i32* %4, i8* %29)
%32 = load i32, i32* %4
%33 = shl nsw i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 %34
store i8 0, i8* %35
%36 = call i32 @putchar(i32 10)
%37 = call i32 @puts(i8* %29)
%38 = load i32, i32* %4
%39 = shl nsw i32 %38, 1
store i32 %39, i32* %4
%40 = getelementptr inbounds [400 x i8], [400 x i8]* %8, i64 0, i64 0
%41 = bitcast i32* %9 to i8*
%42 = call i32 @spacfr_(i8* %29, i32* %4, i8* %40, i32* %9)
%43 = load i32, i32* %9
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [400 x i8], [400 x i8]* %8, i64 0, i64 %44
store i8 0, i8* %45
%46 = call i32 @putchar(i32 10)
%47 = call i32 @puts(i8* %40)
%48 = call i32 @keyhas_(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %5, i32* @main.magic1, i32* @main.magic2)
%49 = getelementptr inbounds [400 x i8], [400 x i8]* %10, i64 0, i64 0
%50 = bitcast i32* %11 to i8*
%51 = call i32 @despcf_(i8* %40, i32* %9, i8* %49, i32* %11)
%52 = load i32, i32* %11
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [400 x i8], [400 x i8]* %10, i64 0, i64 %53
store i8 0, i8* %54
%55 = call i32 @putchar(i32 10)
%56 = call i32 @puts(i8* %49)
%57 = getelementptr inbounds [102 x i8], [102 x i8]* %12, i64 0, i64 0
%58 = call i32 @deb64_(i8* %49, i32* %11, i8* %57)
%59 = load i32, i32* %11
%60 = sdiv i32 %59, 2
store i32 %60, i32* %11
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [102 x i8], [102 x i8]* %12, i64 0, i64 %61
store i8 0, i8* %62
%63 = getelementptr inbounds [102 x i8], [102 x i8]* %13, i64 0, i64 0
%64 = call i32 @dec_(i8* %57, i32* %11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %5, i8* %63)
%65 = load i32, i32* %11
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [102 x i8], [102 x i8]* %13, i64 0, i64 %66
store i8 0, i8* %67
%68 = call i32 @putchar(i32 10)
%69 = call i32 @puts(i8* %63)
ret i32 0
}