#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 uint8_t;
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ memcpy(int *, int *, int);
char *mybase64(uint8_t digest[20]) {
  static const char charz[] =
      "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+_";
  uint8_t input[21];
  static char output[28];
  int i, j;
  uint8_t *p;
  char *q;
  uint32_t bv;
  memcpy(input, digest, 20);
  input[20] = 0;
  p = input;
  q = output;
  for (i = 0; i < 7; i++) {
    bv = (p[0] << 16) | (p[1] << 8) | p[2];
    p += 3;
    for (j = 0; j < 4; j++) {
      *q++ = charz[(bv >> 18) & 0x3f];
      bv <<= 6;
    }
  }
  *--q = '\0';
  return output;
}


x86 assembly (clang, -O0):
<mybase64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x60(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    $0x14,%edx
call   1030 <memcpy@plt>
movl   $0x0,-0x10(%rbp)
lea    -0x60(%rbp),%rax
mov    %rax,-0x70(%rbp)
lea    0x2ef9(%rip),%rax
mov    %rax,-0x78(%rbp)
movl   $0x0,-0x64(%rbp)
cmpl   $0x7,-0x64(%rbp)
jge    11e9 <mybase64+0xd9>
mov    -0x70(%rbp),%rax
mov    (%rax),%eax
shl    $0x10,%eax
mov    -0x70(%rbp),%rcx
mov    0x4(%rcx),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
mov    -0x70(%rbp),%rcx
or     0x8(%rcx),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x70(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x70(%rbp)
movl   $0x0,-0x68(%rbp)
cmpl   $0x4,-0x68(%rbp)
jge    11d6 <mybase64+0xc6>
mov    -0x7c(%rbp),%eax
sar    $0x12,%eax
and    $0x3f,%eax
movslq %eax,%rcx
lea    0xe55(%rip),%rax
mov    (%rax,%rcx,1),%cl
mov    -0x78(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x78(%rbp)
mov    %cl,(%rax)
mov    -0x7c(%rbp),%eax
shl    $0x6,%eax
mov    %eax,-0x7c(%rbp)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    118e <mybase64+0x7e>
jmp    11db <mybase64+0xcb>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1152 <mybase64+0x42>
mov    -0x78(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x78(%rbp)
movb   $0x0,-0x1(%rax)
lea    0x2e3d(%rip),%rax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mybase64>:
sub    $0x58,%rsp
mov    %rdi,%rsi
mov    %rsp,%rdi
mov    $0x14,%edx
call   1030 <memcpy@plt>
movl   $0x0,0x50(%rsp)
mov    (%rsp),%eax
mov    0x4(%rsp),%edx
shl    $0x10,%eax
shl    $0x8,%edx
or     %eax,%edx
mov    0x8(%rsp),%esi
or     %esi,%edx
mov    %edx,%eax
shr    $0x12,%eax
and    $0x3f,%eax
lea    0xeb0(%rip),%r8
mov    (%rax,%r8,1),%al
mov    %al,0x2ee6(%rip)
lea    0x2edf(%rip),%rax
mov    %edx,%edi
shr    $0xc,%edi
and    $0x3f,%edi
mov    (%rdi,%r8,1),%cl
mov    %cl,0x2ece(%rip)
shr    $0x6,%edx
and    $0x3f,%edx
mov    (%rdx,%r8,1),%cl
mov    %cl,0x2ebf(%rip)
and    $0x3f,%esi
mov    (%rsi,%r8,1),%cl
mov    %cl,0x2eb3(%rip)
mov    0xc(%rsp),%ecx
shl    $0x10,%ecx
mov    0x10(%rsp),%edx
shl    $0x8,%edx
or     %ecx,%edx
mov    0x14(%rsp),%esi
or     %esi,%edx
mov    %edx,%ecx
shr    $0x12,%ecx
and    $0x3f,%ecx
mov    (%rcx,%r8,1),%cl
mov    %cl,0x2e8c(%rip)
mov    %edx,%ecx
shr    $0xc,%ecx
and    $0x3f,%ecx
mov    (%rcx,%r8,1),%cl
mov    %cl,0x2e7b(%rip)
shr    $0x6,%edx
and    $0x3f,%edx
mov    (%rdx,%r8,1),%cl
mov    %cl,0x2e6c(%rip)
and    $0x3f,%esi
mov    (%rsi,%r8,1),%cl
mov    %cl,0x2e60(%rip)
mov    0x18(%rsp),%ecx
shl    $0x10,%ecx
mov    0x1c(%rsp),%edx
shl    $0x8,%edx
or     %ecx,%edx
mov    0x20(%rsp),%esi
or     %esi,%edx
mov    %edx,%ecx
shr    $0x12,%ecx
and    $0x3f,%ecx
mov    (%rcx,%r8,1),%cl
mov    %cl,0x2e39(%rip)
mov    %edx,%ecx
shr    $0xc,%ecx
and    $0x3f,%ecx
mov    (%rcx,%r8,1),%cl
mov    %cl,0x2e28(%rip)
shr    $0x6,%edx
and    $0x3f,%edx
mov    (%rdx,%r8,1),%cl
mov    %cl,0x2e19(%rip)
and    $0x3f,%esi
mov    (%rsi,%r8,1),%cl
mov    %cl,0x2e0d(%rip)
mov    0x24(%rsp),%ecx
mov    0x28(%rsp),%edx
shl    $0x10,%ecx
shl    $0x8,%edx
or     %ecx,%edx
mov    0x2c(%rsp),%esi
or     %esi,%edx
mov    %edx,%ecx
shr    $0x12,%ecx
and    $0x3f,%ecx
mov    (%rcx,%r8,1),%cl
mov    %cl,0x2de6(%rip)
mov    %edx,%ecx
shr    $0xc,%ecx
and    $0x3f,%ecx
mov    (%rcx,%r8,1),%cl
mov    %cl,0x2dd5(%rip)
shr    $0x6,%edx
and    $0x3f,%edx
mov    (%rdx,%r8,1),%cl
mov    %cl,0x2dc6(%rip)
and    $0x3f,%esi
mov    (%rsi,%r8,1),%cl
mov    %cl,0x2dba(%rip)
mov    0x30(%rsp),%ecx
shl    $0x10,%ecx
mov    0x34(%rsp),%edx
shl    $0x8,%edx
or     %ecx,%edx
mov    0x38(%rsp),%esi
or     %esi,%edx
mov    %edx,%ecx
shr    $0x12,%ecx
and    $0x3f,%ecx
mov    (%rcx,%r8,1),%cl
mov    %cl,0x2d93(%rip)
mov    %edx,%ecx
shr    $0xc,%ecx
and    $0x3f,%ecx
mov    (%rcx,%r8,1),%cl
mov    %cl,0x2d82(%rip)
shr    $0x6,%edx
and    $0x3f,%edx
mov    (%rdx,%r8,1),%cl
mov    %cl,0x2d73(%rip)
and    $0x3f,%esi
mov    (%rsi,%r8,1),%cl
mov    %cl,0x2d67(%rip)
mov    0x3c(%rsp),%ecx
mov    0x40(%rsp),%edx
shl    $0x10,%ecx
shl    $0x8,%edx
or     %ecx,%edx
mov    0x44(%rsp),%esi
or     %esi,%edx
mov    %edx,%ecx
shr    $0x12,%ecx
and    $0x3f,%ecx
mov    (%rcx,%r8,1),%cl
mov    %cl,0x2d40(%rip)
mov    %edx,%ecx
shr    $0xc,%ecx
and    $0x3f,%ecx
mov    (%rcx,%r8,1),%cl
mov    %cl,0x2d2f(%rip)
shr    $0x6,%edx
and    $0x3f,%edx
mov    (%rdx,%r8,1),%cl
mov    %cl,0x2d20(%rip)
and    $0x3f,%esi
mov    (%rsi,%r8,1),%cl
mov    %cl,0x2d14(%rip)
mov    0x48(%rsp),%ecx
mov    0x4c(%rsp),%edx
shl    $0x10,%ecx
shl    $0x8,%edx
or     %ecx,%edx
or     0x50(%rsp),%edx
mov    %edx,%ecx
shr    $0x12,%ecx
and    $0x3f,%ecx
mov    (%rcx,%r8,1),%cl
mov    %cl,0x2cef(%rip)
mov    %edx,%ecx
shr    $0xc,%ecx
and    $0x3f,%ecx
mov    (%rcx,%r8,1),%cl
mov    %cl,0x2cde(%rip)
shr    $0x6,%edx
and    $0x3f,%edx
mov    (%rdx,%r8,1),%cl
mov    %cl,0x2ccf(%rip)
movb   $0x0,0x2cc9(%rip)
add    $0x58,%rsp
ret

LLVM IR (-O0):
@mybase64.charz = internal constant [65 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+_\00"
@mybase64.output = internal global [28 x i8] zeroinitializer
define i8* @mybase64(i32* %0) {
%2 = alloca i32*
%3 = alloca [21 x i32]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca i32
store i32* %0, i32** %2
%9 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 0
%10 = load i32*, i32** %2
%11 = call i32 @memcpy(i32* %9, i32* %10, i32 20)
%12 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 20
store i32 0, i32* %12
%13 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 0
store i32* %13, i32** %6
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 0), i8** %7
store i32 0, i32* %4
br label %14
14: ; preds = %51, %1
%15 = load i32, i32* %4
%16 = icmp slt i32 %15, 7
br i1 %16, label %17, label %54
17: ; preds = %14
%18 = load i32*, i32** %6
%19 = getelementptr inbounds i32, i32* %18, i64 0
%20 = load i32, i32* %19
%21 = shl i32 %20, 16
%22 = load i32*, i32** %6
%23 = getelementptr inbounds i32, i32* %22, i64 1
%24 = load i32, i32* %23
%25 = shl i32 %24, 8
%26 = or i32 %21, %25
%27 = load i32*, i32** %6
%28 = getelementptr inbounds i32, i32* %27, i64 2
%29 = load i32, i32* %28
%30 = or i32 %26, %29
store i32 %30, i32* %8
%31 = load i32*, i32** %6
%32 = getelementptr inbounds i32, i32* %31, i64 3
store i32* %32, i32** %6
store i32 0, i32* %5
br label %33
33: ; preds = %47, %17
%34 = load i32, i32* %5
%35 = icmp slt i32 %34, 4
br i1 %35, label %36, label %50
36: ; preds = %33
%37 = load i32, i32* %8
%38 = ashr i32 %37, 18
%39 = and i32 %38, 63
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %40
%42 = load i8, i8* %41
%43 = load i8*, i8** %7
%44 = getelementptr inbounds i8, i8* %43, i32 1
store i8* %44, i8** %7
store i8 %42, i8* %43
%45 = load i32, i32* %8
%46 = shl i32 %45, 6
store i32 %46, i32* %8
br label %47
47: ; preds = %36
%48 = load i32, i32* %5
%49 = add nsw i32 %48, 1
store i32 %49, i32* %5
br label %33
50: ; preds = %33
br label %51
51: ; preds = %50
%52 = load i32, i32* %4
%53 = add nsw i32 %52, 1
store i32 %53, i32* %4
br label %14
54: ; preds = %14
%55 = load i8*, i8** %7
%56 = getelementptr inbounds i8, i8* %55, i32 -1
store i8* %56, i8** %7
store i8 0, i8* %56
ret i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 0)
}

LLVM IR (-O2):
@mybase64.charz = internal unnamed_addr constant [65 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+_\00"
@mybase64.output = internal global [28 x i8] zeroinitializer
define i8* @mybase64(i32* %0) {
%2 = alloca [21 x i32]
%3 = bitcast [21 x i32]* %2 to i8*
%4 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 0
%5 = call i32 @memcpy(i32* %4, i32* %0, i32 20)
%6 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 20
store i32 0, i32* %6
%7 = load i32, i32* %4
%8 = shl i32 %7, 16
%9 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 1
%10 = load i32, i32* %9
%11 = shl i32 %10, 8
%12 = or i32 %11, %8
%13 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 2
%14 = load i32, i32* %13
%15 = or i32 %12, %14
%16 = lshr i32 %15, 18
%17 = and i32 %16, 63
%18 = zext i32 %17 to i64
%19 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %18
%20 = load i8, i8* %19
store i8 %20, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 0)
%21 = lshr i32 %15, 12
%22 = and i32 %21, 63
%23 = zext i32 %22 to i64
%24 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %23
%25 = load i8, i8* %24
store i8 %25, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 1)
%26 = lshr i32 %15, 6
%27 = and i32 %26, 63
%28 = zext i32 %27 to i64
%29 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %28
%30 = load i8, i8* %29
store i8 %30, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 2)
%31 = and i32 %14, 63
%32 = zext i32 %31 to i64
%33 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %32
%34 = load i8, i8* %33
store i8 %34, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 3)
%35 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 3
%36 = load i32, i32* %35
%37 = shl i32 %36, 16
%38 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 4
%39 = load i32, i32* %38
%40 = shl i32 %39, 8
%41 = or i32 %40, %37
%42 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 5
%43 = load i32, i32* %42
%44 = or i32 %41, %43
%45 = lshr i32 %44, 18
%46 = and i32 %45, 63
%47 = zext i32 %46 to i64
%48 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %47
%49 = load i8, i8* %48
store i8 %49, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 4)
%50 = lshr i32 %44, 12
%51 = and i32 %50, 63
%52 = zext i32 %51 to i64
%53 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %52
%54 = load i8, i8* %53
store i8 %54, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 5)
%55 = lshr i32 %44, 6
%56 = and i32 %55, 63
%57 = zext i32 %56 to i64
%58 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %57
%59 = load i8, i8* %58
store i8 %59, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 6)
%60 = and i32 %43, 63
%61 = zext i32 %60 to i64
%62 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %61
%63 = load i8, i8* %62
store i8 %63, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 7)
%64 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 6
%65 = load i32, i32* %64
%66 = shl i32 %65, 16
%67 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 7
%68 = load i32, i32* %67
%69 = shl i32 %68, 8
%70 = or i32 %69, %66
%71 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 8
%72 = load i32, i32* %71
%73 = or i32 %70, %72
%74 = lshr i32 %73, 18
%75 = and i32 %74, 63
%76 = zext i32 %75 to i64
%77 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %76
%78 = load i8, i8* %77
store i8 %78, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 8)
%79 = lshr i32 %73, 12
%80 = and i32 %79, 63
%81 = zext i32 %80 to i64
%82 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %81
%83 = load i8, i8* %82
store i8 %83, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 9)
%84 = lshr i32 %73, 6
%85 = and i32 %84, 63
%86 = zext i32 %85 to i64
%87 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %86
%88 = load i8, i8* %87
store i8 %88, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 10)
%89 = and i32 %72, 63
%90 = zext i32 %89 to i64
%91 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %90
%92 = load i8, i8* %91
store i8 %92, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 11)
%93 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 9
%94 = load i32, i32* %93
%95 = shl i32 %94, 16
%96 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 10
%97 = load i32, i32* %96
%98 = shl i32 %97, 8
%99 = or i32 %98, %95
%100 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 11
%101 = load i32, i32* %100
%102 = or i32 %99, %101
%103 = lshr i32 %102, 18
%104 = and i32 %103, 63
%105 = zext i32 %104 to i64
%106 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %105
%107 = load i8, i8* %106
store i8 %107, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 12)
%108 = lshr i32 %102, 12
%109 = and i32 %108, 63
%110 = zext i32 %109 to i64
%111 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %110
%112 = load i8, i8* %111
store i8 %112, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 13)
%113 = lshr i32 %102, 6
%114 = and i32 %113, 63
%115 = zext i32 %114 to i64
%116 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %115
%117 = load i8, i8* %116
store i8 %117, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 14)
%118 = and i32 %101, 63
%119 = zext i32 %118 to i64
%120 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %119
%121 = load i8, i8* %120
store i8 %121, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 15)
%122 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 12
%123 = load i32, i32* %122
%124 = shl i32 %123, 16
%125 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 13
%126 = load i32, i32* %125
%127 = shl i32 %126, 8
%128 = or i32 %127, %124
%129 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 14
%130 = load i32, i32* %129
%131 = or i32 %128, %130
%132 = lshr i32 %131, 18
%133 = and i32 %132, 63
%134 = zext i32 %133 to i64
%135 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %134
%136 = load i8, i8* %135
store i8 %136, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 16)
%137 = lshr i32 %131, 12
%138 = and i32 %137, 63
%139 = zext i32 %138 to i64
%140 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %139
%141 = load i8, i8* %140
store i8 %141, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 17)
%142 = lshr i32 %131, 6
%143 = and i32 %142, 63
%144 = zext i32 %143 to i64
%145 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %144
%146 = load i8, i8* %145
store i8 %146, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 18)
%147 = and i32 %130, 63
%148 = zext i32 %147 to i64
%149 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %148
%150 = load i8, i8* %149
store i8 %150, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 19)
%151 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 15
%152 = load i32, i32* %151
%153 = shl i32 %152, 16
%154 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 16
%155 = load i32, i32* %154
%156 = shl i32 %155, 8
%157 = or i32 %156, %153
%158 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 17
%159 = load i32, i32* %158
%160 = or i32 %157, %159
%161 = lshr i32 %160, 18
%162 = and i32 %161, 63
%163 = zext i32 %162 to i64
%164 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %163
%165 = load i8, i8* %164
store i8 %165, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 20)
%166 = lshr i32 %160, 12
%167 = and i32 %166, 63
%168 = zext i32 %167 to i64
%169 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %168
%170 = load i8, i8* %169
store i8 %170, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 21)
%171 = lshr i32 %160, 6
%172 = and i32 %171, 63
%173 = zext i32 %172 to i64
%174 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %173
%175 = load i8, i8* %174
store i8 %175, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 22)
%176 = and i32 %159, 63
%177 = zext i32 %176 to i64
%178 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %177
%179 = load i8, i8* %178
store i8 %179, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 23)
%180 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 18
%181 = load i32, i32* %180
%182 = shl i32 %181, 16
%183 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 19
%184 = load i32, i32* %183
%185 = shl i32 %184, 8
%186 = or i32 %185, %182
%187 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 20
%188 = load i32, i32* %187
%189 = or i32 %186, %188
%190 = lshr i32 %189, 18
%191 = and i32 %190, 63
%192 = zext i32 %191 to i64
%193 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %192
%194 = load i8, i8* %193
store i8 %194, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 24)
%195 = lshr i32 %189, 12
%196 = and i32 %195, 63
%197 = zext i32 %196 to i64
%198 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %197
%199 = load i8, i8* %198
store i8 %199, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 25)
%200 = lshr i32 %189, 6
%201 = and i32 %200, 63
%202 = zext i32 %201 to i64
%203 = getelementptr inbounds [65 x i8], [65 x i8]* @mybase64.charz, i64 0, i64 %202
%204 = load i8, i8* %203
store i8 %204, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 26)
store i8 0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 27)
ret i8* getelementptr inbounds ([28 x i8], [28 x i8]* @mybase64.output, i64 0, i64 0)
}