#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*/ szIn;

/* Variables and functions */
scalar_t__ malloc(int);
int /*<<< orphan*/ memset(void *, int /*<<< orphan*/, int);
char *strdup(char *);
char *qbase64_encode(const void *bin, size_t size) {
  const char B64CHARTBL[64] = {
      'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
      'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
      'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
      'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
      '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/'};
  if (size == 0) {
    return strdup("");
  }
  char *pszB64 =
      (char *)malloc(4 * ((size / 3) + ((size % 3 == 0) ? 0 : 1)) + 1);
  if (pszB64 == NULL) {
    return NULL;
  }
  char *pszB64Pt = pszB64;
  unsigned char *pBinPt, *pBinEnd = (unsigned char *)(bin + size - 1);
  unsigned char szIn[3] = {0, 0, 0};
  int nOffset;
  for (pBinPt = (unsigned char *)bin, nOffset = 0; pBinPt <= pBinEnd;
       pBinPt++, nOffset++) {
    int nIdxOfThree = nOffset % 3;
    szIn[nIdxOfThree] = *pBinPt;
    if (nIdxOfThree < 2 && pBinPt < pBinEnd)
      continue;
    *pszB64Pt++ = B64CHARTBL[((szIn[0] & 0xFC) >> 2)];
    *pszB64Pt++ =
        B64CHARTBL[(((szIn[0] & 0x03) << 4) | ((szIn[1] & 0xF0) >> 4))];
    *pszB64Pt++ =
        (nIdxOfThree >= 1)
            ? B64CHARTBL[(((szIn[1] & 0x0F) << 2) | ((szIn[2] & 0xC0) >> 6))]
            : '=';
    *pszB64Pt++ = (nIdxOfThree >= 2) ? B64CHARTBL[(szIn[2] & 0x3F)] : '=';
    memset((void *)szIn, 0, sizeof(szIn));
  }
  *pszB64Pt = '\0';
  return pszB64;
}


x86 assembly (clang, -O0):
<qbase64_encode>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
lea    -0x60(%rbp),%rdi
lea    0xea2(%rip),%rsi
mov    $0x40,%edx
call   1040 <memcpy@plt>
cmpq   $0x0,-0x18(%rbp)
jne    1188 <qbase64_encode+0x48>
lea    0xec6(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,-0x8(%rbp)
jmp    13de <qbase64_encode+0x29e>
mov    -0x18(%rbp),%rax
mov    $0x3,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x98(%rbp)
mov    -0x18(%rbp),%rax
mov    $0x3,%ecx
xor    %edx,%edx
div    %rcx
mov    -0x98(%rbp),%rax
mov    %rdx,%rsi
mov    $0x1,%ecx
xor    %edx,%edx
cmp    $0x0,%rsi
cmove  %edx,%ecx
movslq %ecx,%rcx
add    %rcx,%rax
shl    $0x2,%rax
add    $0x1,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x68(%rbp)
cmpq   $0x0,-0x68(%rbp)
jne    11f4 <qbase64_encode+0xb4>
movq   $0x0,-0x8(%rbp)
jmp    13de <qbase64_encode+0x29e>
mov    -0x68(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x80(%rbp)
lea    -0x83(%rbp),%rdi
xor    %esi,%esi
mov    $0x3,%edx
call   1030 <memset@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x78(%rbp)
movl   $0x0,-0x88(%rbp)
mov    -0x78(%rbp),%rax
cmp    -0x80(%rbp),%rax
ja     13cf <qbase64_encode+0x28f>
mov    -0x88(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,-0x8c(%rbp)
mov    -0x78(%rbp),%rax
mov    (%rax),%cl
movslq -0x8c(%rbp),%rax
mov    %cl,-0x83(%rbp,%rax,1)
cmpl   $0x2,-0x8c(%rbp)
jge    1287 <qbase64_encode+0x147>
mov    -0x78(%rbp),%rax
cmp    -0x80(%rbp),%rax
jae    1287 <qbase64_encode+0x147>
jmp    13af <qbase64_encode+0x26f>
movzbl -0x83(%rbp),%eax
and    $0xfc,%eax
sar    $0x2,%eax
cltq
mov    -0x60(%rbp,%rax,1),%cl
mov    -0x70(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x70(%rbp)
mov    %cl,(%rax)
movzbl -0x83(%rbp),%eax
and    $0x3,%eax
shl    $0x4,%eax
movzbl -0x82(%rbp),%ecx
and    $0xf0,%ecx
sar    $0x4,%ecx
or     %ecx,%eax
cltq
mov    -0x60(%rbp,%rax,1),%cl
mov    -0x70(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x70(%rbp)
mov    %cl,(%rax)
cmpl   $0x1,-0x8c(%rbp)
jl     1321 <qbase64_encode+0x1e1>
movzbl -0x82(%rbp),%eax
and    $0xf,%eax
shl    $0x2,%eax
movzbl -0x81(%rbp),%ecx
and    $0xc0,%ecx
sar    $0x6,%ecx
or     %ecx,%eax
cltq
movsbl -0x60(%rbp,%rax,1),%eax
mov    %eax,-0x9c(%rbp)
jmp    1331 <qbase64_encode+0x1f1>
mov    $0x3d,%eax
mov    %eax,-0x9c(%rbp)
jmp    1331 <qbase64_encode+0x1f1>
mov    -0x9c(%rbp),%eax
mov    %al,%cl
mov    -0x70(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x70(%rbp)
mov    %cl,(%rax)
cmpl   $0x2,-0x8c(%rbp)
jl     1373 <qbase64_encode+0x233>
movzbl -0x81(%rbp),%eax
and    $0x3f,%eax
cltq
movsbl -0x60(%rbp,%rax,1),%eax
mov    %eax,-0xa0(%rbp)
jmp    1383 <qbase64_encode+0x243>
mov    $0x3d,%eax
mov    %eax,-0xa0(%rbp)
jmp    1383 <qbase64_encode+0x243>
mov    -0xa0(%rbp),%eax
mov    %al,%cl
mov    -0x70(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x70(%rbp)
mov    %cl,(%rax)
lea    -0x83(%rbp),%rdi
xor    %esi,%esi
mov    $0x3,%edx
call   1030 <memset@plt>
mov    -0x78(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x78(%rbp)
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    1231 <qbase64_encode+0xf1>
mov    -0x70(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x68(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<qbase64_encode>:
test   %rsi,%rsi
je     11b4 <qbase64_encode+0x84>
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
mov    %rdi,%r12
movabs $0xaaaaaaaaaaaaaaab,%rcx
aa aa aa
mov    %rsi,%rax
mul    %rcx
mov    %rsi,%rax
imul   %rcx,%rax
movabs $0x5555555555555555,%rcx
55 55 55
xor    %esi,%esi
cmp    %rcx,%rax
seta   %sil
shr    %edx
add    %edx,%esi
lea    0x1(,%rsi,4),%edi
call   1040 <malloc@plt>
test   %rax,%rax
je     11c0 <qbase64_encode+0x90>
lea    (%r12,%rbx,1),%rbp
add    $0xffffffffffffffff,%rbp
movb   $0x0,0x6(%rsp)
movw   $0x0,0x4(%rsp)
mov    %rax,0x8(%rsp)
mov    %rax,%r14
cmp    %r12,%rbp
jae    11d1 <qbase64_encode+0xa1>
movb   $0x0,(%r14)
mov    0x8(%rsp),%rax
jmp    11c2 <qbase64_encode+0x92>
lea    0xe85(%rip),%rdi
jmp    1050 <strdup@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%r15d
lea    0x4(%rsp),%r13
xor    %ebx,%ebx
mov    $0xaaaaaaab,%edi
lea    0xe16(%rip),%r8
mov    0x8(%rsp),%r14
mov    %rbp,0x10(%rsp)
jmp    1240 <qbase64_encode+0x110>
movb   $0x3d,0x2(%r14)
mov    $0x3d,%al
mov    %al,0x3(%r14)
add    $0x4,%r14
lea    0x4(%rsp),%rdi
xor    %esi,%esi
mov    $0x3,%edx
call   1030 <memset@plt>
mov    $0xaaaaaaab,%edi
lea    0xdde(%rip),%r8
mov    0x10(%rsp),%rbp
add    $0x1,%r12
add    $0x1,%rbx
add    $0xffffffff,%r15d
add    $0x1,%r13
cmp    %rbp,%r12
ja     11a9 <qbase64_encode+0x79>
mov    %ebx,%eax
imul   %rdi,%rax
shr    $0x21,%rax
lea    (%rax,%rax,2),%ecx
mov    %ebx,%esi
sub    %ecx,%esi
mov    %rbx,%rax
movabs $0xaaaaaaaaaaaaaaab,%rdx
aa aa aa
mul    %rdx
shr    %rdx
lea    (%rdx,%rdx,2),%rax
mov    %r13,%rdx
sub    %rax,%rdx
movzbl (%r12),%eax
mov    %al,(%rdx)
cmp    $0x1,%esi
ja     127f <qbase64_encode+0x14f>
cmp    %rbp,%r12
jb     1227 <qbase64_encode+0xf7>
movzbl 0x4(%rsp),%eax
shr    $0x2,%rax
movzbl (%rax,%r8,1),%eax
mov    %al,(%r14)
movzbl 0x4(%rsp),%eax
shl    $0x4,%eax
and    $0x30,%eax
movzbl 0x5(%rsp),%edx
shr    $0x4,%rdx
or     %rax,%rdx
movzbl (%r8,%rdx,1),%eax
mov    %al,0x1(%r14)
test   %esi,%esi
je     11f6 <qbase64_encode+0xc6>
add    %r15d,%ecx
movzbl 0x5(%rsp),%eax
and    $0xf,%eax
movzbl 0x6(%rsp),%edx
shr    $0x6,%rdx
lea    (%rdx,%rax,4),%rax
movzbl (%r8,%rax,1),%eax
mov    %al,0x2(%r14)
test   %ecx,%ecx
je     11fb <qbase64_encode+0xcb>
movzbl 0x6(%rsp),%eax
and    $0x3f,%eax
movzbl (%rax,%r8,1),%eax
jmp    11fd <qbase64_encode+0xcd>

LLVM IR (-O0):
@__const.qbase64_encode.B64CHARTBL = [64 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
@.str = [1 x i8] zeroinitializer
define i8* @qbase64_encode(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i64
%6 = alloca [64 x i8]
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca [3 x i8]
%12 = alloca i32
%13 = alloca i32
store i8* %0, i8** %4
store i64 %1, i64* %5
%14 = bitcast [64 x i8]* %6 to i8*
%15 = load i64, i64* %5
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i8* @strdup(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
store i8* %18, i8** %3
br label %142
19: ; preds = %2
%20 = load i64, i64* %5
%21 = udiv i64 %20, 3
%22 = load i64, i64* %5
%23 = urem i64 %22, 3
%24 = icmp eq i64 %23, 0
%25 = zext i1 %24 to i64
%26 = select i1 %24, i32 0, i32 1
%27 = sext i32 %26 to i64
%28 = add i64 %21, %27
%29 = mul i64 4, %28
%30 = add i64 %29, 1
%31 = trunc i64 %30 to i32
%32 = call i64 @malloc(i32 %31)
%33 = inttoptr i64 %32 to i8*
store i8* %33, i8** %7
%34 = load i8*, i8** %7
%35 = icmp eq i8* %34, null
br i1 %35, label %36, label %37
36: ; preds = %19
store i8* null, i8** %3
br label %142
37: ; preds = %19
%38 = load i8*, i8** %7
store i8* %38, i8** %8
%39 = load i8*, i8** %4
%40 = load i64, i64* %5
%41 = getelementptr i8, i8* %39, i64 %40
%42 = getelementptr i8, i8* %41, i64 -1
store i8* %42, i8** %10
%43 = bitcast [3 x i8]* %11 to i8*
%44 = load i8*, i8** %4
store i8* %44, i8** %9
store i32 0, i32* %12
br label %45
45: ; preds = %134, %37
%46 = load i8*, i8** %9
%47 = load i8*, i8** %10
%48 = icmp ule i8* %46, %47
br i1 %48, label %49, label %139
49: ; preds = %45
%50 = load i32, i32* %12
%51 = srem i32 %50, 3
store i32 %51, i32* %13
%52 = load i8*, i8** %9
%53 = load i8, i8* %52
%54 = load i32, i32* %13
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [3 x i8], [3 x i8]* %11, i64 0, i64 %55
store i8 %53, i8* %56
%57 = load i32, i32* %13
%58 = icmp slt i32 %57, 2
br i1 %58, label %59, label %64
59: ; preds = %49
%60 = load i8*, i8** %9
%61 = load i8*, i8** %10
%62 = icmp ult i8* %60, %61
br i1 %62, label %63, label %64
63: ; preds = %59
br label %134
64: ; preds = %59, %49
%65 = getelementptr inbounds [3 x i8], [3 x i8]* %11, i64 0, i64 0
%66 = load i8, i8* %65
%67 = zext i8 %66 to i32
%68 = and i32 %67, 252
%69 = ashr i32 %68, 2
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 %70
%72 = load i8, i8* %71
%73 = load i8*, i8** %8
%74 = getelementptr inbounds i8, i8* %73, i32 1
store i8* %74, i8** %8
store i8 %72, i8* %73
%75 = getelementptr inbounds [3 x i8], [3 x i8]* %11, i64 0, i64 0
%76 = load i8, i8* %75
%77 = zext i8 %76 to i32
%78 = and i32 %77, 3
%79 = shl i32 %78, 4
%80 = getelementptr inbounds [3 x i8], [3 x i8]* %11, i64 0, i64 1
%81 = load i8, i8* %80
%82 = zext i8 %81 to i32
%83 = and i32 %82, 240
%84 = ashr i32 %83, 4
%85 = or i32 %79, %84
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 %86
%88 = load i8, i8* %87
%89 = load i8*, i8** %8
%90 = getelementptr inbounds i8, i8* %89, i32 1
store i8* %90, i8** %8
store i8 %88, i8* %89
%91 = load i32, i32* %13
%92 = icmp sge i32 %91, 1
br i1 %92, label %93, label %109
93: ; preds = %64
%94 = getelementptr inbounds [3 x i8], [3 x i8]* %11, i64 0, i64 1
%95 = load i8, i8* %94
%96 = zext i8 %95 to i32
%97 = and i32 %96, 15
%98 = shl i32 %97, 2
%99 = getelementptr inbounds [3 x i8], [3 x i8]* %11, i64 0, i64 2
%100 = load i8, i8* %99
%101 = zext i8 %100 to i32
%102 = and i32 %101, 192
%103 = ashr i32 %102, 6
%104 = or i32 %98, %103
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 %105
%107 = load i8, i8* %106
%108 = sext i8 %107 to i32
br label %110
109: ; preds = %64
br label %110
110: ; preds = %109, %93
%111 = phi i32 [ %108, %93 ], [ 61, %109 ]
%112 = trunc i32 %111 to i8
%113 = load i8*, i8** %8
%114 = getelementptr inbounds i8, i8* %113, i32 1
store i8* %114, i8** %8
store i8 %112, i8* %113
%115 = load i32, i32* %13
%116 = icmp sge i32 %115, 2
br i1 %116, label %117, label %126
117: ; preds = %110
%118 = getelementptr inbounds [3 x i8], [3 x i8]* %11, i64 0, i64 2
%119 = load i8, i8* %118
%120 = zext i8 %119 to i32
%121 = and i32 %120, 63
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 %122
%124 = load i8, i8* %123
%125 = sext i8 %124 to i32
br label %127
126: ; preds = %110
br label %127
127: ; preds = %126, %117
%128 = phi i32 [ %125, %117 ], [ 61, %126 ]
%129 = trunc i32 %128 to i8
%130 = load i8*, i8** %8
%131 = getelementptr inbounds i8, i8* %130, i32 1
store i8* %131, i8** %8
store i8 %129, i8* %130
%132 = getelementptr inbounds [3 x i8], [3 x i8]* %11, i64 0, i64 0
%133 = call i32 @memset(i8* %132, i32 0, i32 3)
br label %134
134: ; preds = %127, %63
%135 = load i8*, i8** %9
%136 = getelementptr inbounds i8, i8* %135, i32 1
store i8* %136, i8** %9
%137 = load i32, i32* %12
%138 = add nsw i32 %137, 1
store i32 %138, i32* %12
br label %45
139: ; preds = %45
%140 = load i8*, i8** %8
store i8 0, i8* %140
%141 = load i8*, i8** %7
store i8* %141, i8** %3
br label %142
142: ; preds = %139, %36, %17
%143 = load i8*, i8** %3
ret i8* %143
}

LLVM IR (-O2):
@__const.qbase64_encode.B64CHARTBL = [64 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
@.str = [1 x i8] zeroinitializer
define i8* @qbase64_encode(i8* %0, i64 %1) {
%3 = alloca [3 x i8]
%4 = icmp eq i64 %1, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call dereferenceable_or_null(1) i8* @strdup(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
br label %86
7: ; preds = %2
%8 = udiv i64 %1, 3
%9 = urem i64 %1, 3
%10 = icmp ne i64 %9, 0
%11 = zext i1 %10 to i64
%12 = add nuw nsw i64 %8, %11
%13 = trunc i64 %12 to i32
%14 = shl i32 %13, 2
%15 = or i32 %14, 1
%16 = tail call i64 @malloc(i32 %15)
%17 = inttoptr i64 %16 to i8*
%18 = icmp eq i64 %16, 0
br i1 %18, label %86, label %19
19: ; preds = %7
%20 = getelementptr i8, i8* %0, i64 %1
%21 = getelementptr i8, i8* %20, i64 -1
%22 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 0
%23 = icmp ult i8* %21, %0
br i1 %23, label %84, label %24
24: ; preds = %19
%25 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 1
%26 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 2
br label %27
27: ; preds = %24, %79
%28 = phi i32 [ 0, %24 ], [ %82, %79 ]
%29 = phi i8* [ %0, %24 ], [ %81, %79 ]
%30 = phi i8* [ %17, %24 ], [ %80, %79 ]
%31 = urem i32 %28, 3
%32 = load i8, i8* %29
%33 = zext i32 %31 to i64
%34 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 %33
store i8 %32, i8* %34
%35 = icmp ult i32 %31, 2
%36 = icmp ult i8* %29, %21
%37 = and i1 %35, %36
br i1 %37, label %79, label %38
38: ; preds = %27
%39 = load i8, i8* %22
%40 = lshr i8 %39, 2
%41 = zext i8 %40 to i64
%42 = getelementptr inbounds [64 x i8], [64 x i8]* @__const.qbase64_encode.B64CHARTBL, i64 0, i64 %41
%43 = load i8, i8* %42
%44 = getelementptr inbounds i8, i8* %30, i64 1
store i8 %43, i8* %30
%45 = load i8, i8* %22
%46 = shl i8 %45, 4
%47 = and i8 %46, 48
%48 = load i8, i8* %25
%49 = lshr i8 %48, 4
%50 = or i8 %47, %49
%51 = zext i8 %50 to i64
%52 = getelementptr inbounds [64 x i8], [64 x i8]* @__const.qbase64_encode.B64CHARTBL, i64 0, i64 %51
%53 = load i8, i8* %52
%54 = getelementptr inbounds i8, i8* %30, i64 2
store i8 %53, i8* %44
%55 = icmp eq i32 %31, 0
br i1 %55, label %56, label %57
56: ; preds = %38
store i8 61, i8* %54
br label %74
57: ; preds = %38
%58 = load i8, i8* %25
%59 = shl i8 %58, 2
%60 = and i8 %59, 60
%61 = load i8, i8* %26
%62 = lshr i8 %61, 6
%63 = or i8 %60, %62
%64 = zext i8 %63 to i64
%65 = getelementptr inbounds [64 x i8], [64 x i8]* @__const.qbase64_encode.B64CHARTBL, i64 0, i64 %64
%66 = load i8, i8* %65
store i8 %66, i8* %54
%67 = icmp eq i32 %31, 1
br i1 %67, label %74, label %68
68: ; preds = %57
%69 = load i8, i8* %26
%70 = and i8 %69, 63
%71 = zext i8 %70 to i64
%72 = getelementptr inbounds [64 x i8], [64 x i8]* @__const.qbase64_encode.B64CHARTBL, i64 0, i64 %71
%73 = load i8, i8* %72
br label %74
74: ; preds = %56, %57, %68
%75 = phi i8 [ %73, %68 ], [ 61, %57 ], [ 61, %56 ]
%76 = getelementptr inbounds i8, i8* %30, i64 3
%77 = getelementptr inbounds i8, i8* %30, i64 4
store i8 %75, i8* %76
%78 = call i32 @memset(i8* %22, i32 0, i32 3)
br label %79
79: ; preds = %27, %74
%80 = phi i8* [ %77, %74 ], [ %30, %27 ]
%81 = getelementptr inbounds i8, i8* %29, i64 1
%82 = add nuw nsw i32 %28, 1
%83 = icmp ugt i8* %81, %21
br i1 %83, label %84, label %27
84: ; preds = %79, %19
%85 = phi i8* [ %17, %19 ], [ %80, %79 ]
store i8 0, i8* %85
br label %86
86: ; preds = %84, %7, %5
%87 = phi i8* [ %6, %5 ], [ %17, %84 ], [ null, %7 ]
ret i8* %87
}