#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 uint32_t;

/* Variables and functions */
__attribute__((visibility("default"))) int fcitx_ucs4_to_utf8(uint32_t c,
                                                              char *output) {
  if (c < 0x00080) {
    output[0] = (char)(c & 0xFF);
    output[1] = '\0';
    return 1;
  } else if (c < 0x00800) {
    output[0] = (char)(0xC0 + ((c >> 6) & 0x1F));
    output[1] = (char)(0x80 + (c & 0x3F));
    output[2] = '\0';
    return 2;
  } else if (c < 0x10000) {
    output[0] = (char)(0xE0 + ((c >> 12) & 0x0F));
    output[1] = (char)(0x80 + ((c >> 6) & 0x3F));
    output[2] = (char)(0x80 + (c & 0x3F));
    output[3] = '\0';
    return 3;
  } else if (c < 0x200000) {
    output[0] = (char)(0xF0 + ((c >> 18) & 0x07));
    output[1] = (char)(0x80 + ((c >> 12) & 0x3F));
    output[2] = (char)(0x80 + ((c >> 6) & 0x3F));
    output[3] = (char)(0x80 + (c & 0x3F));
    output[4] = '\0';
    return 4;
  } else if (c < 0x8000000) {
    output[0] = (char)(0xF8 + ((c >> 24) & 0x03));
    output[1] = (char)(0x80 + ((c >> 18) & 0x3F));
    output[2] = (char)(0x80 + ((c >> 12) & 0x3F));
    output[3] = (char)(0x80 + ((c >> 6) & 0x3F));
    output[4] = (char)(0x80 + (c & 0x3F));
    output[5] = '\0';
    return 5;
  } else {
    output[0] = (char)(0xFC + ((c >> 30) & 0x01));
    output[1] = (char)(0x80 + ((c >> 24) & 0x3F));
    output[2] = (char)(0x80 + ((c >> 18) & 0x3F));
    output[3] = (char)(0x80 + ((c >> 12) & 0x3F));
    output[4] = (char)(0x80 + ((c >> 6) & 0x3F));
    output[5] = (char)(0x80 + (c & 0x3F));
    output[6] = '\0';
    return 6;
  }
  return 6;
}


x86 assembly (clang, -O0):
<fcitx_ucs4_to_utf8>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x80,-0x8(%rbp)
jge    113c <fcitx_ucs4_to_utf8+0x3c>
mov    -0x8(%rbp),%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
movb   $0x0,0x1(%rax)
movl   $0x1,-0x4(%rbp)
jmp    1387 <fcitx_ucs4_to_utf8+0x287>
cmpl   $0x800,-0x8(%rbp)
jge    1187 <fcitx_ucs4_to_utf8+0x87>
mov    -0x8(%rbp),%eax
sar    $0x6,%eax
and    $0x1f,%eax
add    $0xc0,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x8(%rbp),%eax
and    $0x3f,%eax
add    $0x80,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0x10(%rbp),%rax
movb   $0x0,0x2(%rax)
movl   $0x2,-0x4(%rbp)
jmp    1387 <fcitx_ucs4_to_utf8+0x287>
cmpl   $0x10000,-0x8(%rbp)
jge    11e9 <fcitx_ucs4_to_utf8+0xe9>
mov    -0x8(%rbp),%eax
sar    $0xc,%eax
and    $0xf,%eax
add    $0xe0,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x8(%rbp),%eax
sar    $0x6,%eax
and    $0x3f,%eax
add    $0x80,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0x8(%rbp),%eax
and    $0x3f,%eax
add    $0x80,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x2(%rax)
mov    -0x10(%rbp),%rax
movb   $0x0,0x3(%rax)
movl   $0x3,-0x4(%rbp)
jmp    1387 <fcitx_ucs4_to_utf8+0x287>
cmpl   $0x200000,-0x8(%rbp)
jge    1262 <fcitx_ucs4_to_utf8+0x162>
mov    -0x8(%rbp),%eax
sar    $0x12,%eax
and    $0x7,%eax
add    $0xf0,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x8(%rbp),%eax
sar    $0xc,%eax
and    $0x3f,%eax
add    $0x80,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0x8(%rbp),%eax
sar    $0x6,%eax
and    $0x3f,%eax
add    $0x80,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x2(%rax)
mov    -0x8(%rbp),%eax
and    $0x3f,%eax
add    $0x80,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x3(%rax)
mov    -0x10(%rbp),%rax
movb   $0x0,0x4(%rax)
movl   $0x4,-0x4(%rbp)
jmp    1387 <fcitx_ucs4_to_utf8+0x287>
cmpl   $0x8000000,-0x8(%rbp)
jge    12f2 <fcitx_ucs4_to_utf8+0x1f2>
mov    -0x8(%rbp),%eax
sar    $0x18,%eax
and    $0x3,%eax
add    $0xf8,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x8(%rbp),%eax
sar    $0x12,%eax
and    $0x3f,%eax
add    $0x80,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0x8(%rbp),%eax
sar    $0xc,%eax
and    $0x3f,%eax
add    $0x80,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x2(%rax)
mov    -0x8(%rbp),%eax
sar    $0x6,%eax
and    $0x3f,%eax
add    $0x80,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x3(%rax)
mov    -0x8(%rbp),%eax
and    $0x3f,%eax
add    $0x80,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x4(%rax)
mov    -0x10(%rbp),%rax
movb   $0x0,0x5(%rax)
movl   $0x5,-0x4(%rbp)
jmp    1387 <fcitx_ucs4_to_utf8+0x287>
mov    -0x8(%rbp),%eax
sar    $0x1e,%eax
and    $0x1,%eax
add    $0xfc,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x8(%rbp),%eax
sar    $0x18,%eax
and    $0x3f,%eax
add    $0x80,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0x8(%rbp),%eax
sar    $0x12,%eax
and    $0x3f,%eax
add    $0x80,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x2(%rax)
mov    -0x8(%rbp),%eax
sar    $0xc,%eax
and    $0x3f,%eax
add    $0x80,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x3(%rax)
mov    -0x8(%rbp),%eax
sar    $0x6,%eax
and    $0x3f,%eax
add    $0x80,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x4(%rax)
mov    -0x8(%rbp),%eax
and    $0x3f,%eax
add    $0x80,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x5(%rax)
mov    -0x10(%rbp),%rax
movb   $0x0,0x6(%rax)
movl   $0x6,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fcitx_ucs4_to_utf8>:
cmp    $0x7f,%edi
jg     1117 <fcitx_ucs4_to_utf8+0x17>
mov    %dil,(%rsi)
mov    $0x1,%eax
mov    $0x1,%ecx
movb   $0x0,(%rsi,%rcx,1)
ret
mov    %edi,%eax
cmp    $0x7ff,%edi
ja     1143 <fcitx_ucs4_to_utf8+0x43>
shr    $0x6,%eax
or     $0xc0,%al
mov    %al,(%rsi)
and    $0x3f,%dil
or     $0x80,%dil
mov    %dil,0x1(%rsi)
mov    $0x2,%eax
mov    $0x2,%ecx
movb   $0x0,(%rsi,%rcx,1)
ret
cmp    $0xffff,%edi
ja     1179 <fcitx_ucs4_to_utf8+0x79>
shr    $0xc,%eax
or     $0xe0,%al
mov    %al,(%rsi)
mov    %edi,%eax
shr    $0x6,%eax
and    $0x3f,%al
or     $0x80,%al
mov    %al,0x1(%rsi)
and    $0x3f,%dil
or     $0x80,%dil
mov    %dil,0x2(%rsi)
mov    $0x3,%eax
mov    $0x3,%ecx
movb   $0x0,(%rsi,%rcx,1)
ret
cmp    $0x1fffff,%edi
ja     11bb <fcitx_ucs4_to_utf8+0xbb>
shr    $0x12,%eax
or     $0xf0,%al
mov    %al,(%rsi)
mov    %edi,%eax
shr    $0xc,%eax
and    $0x3f,%al
or     $0x80,%al
mov    %al,0x1(%rsi)
mov    %edi,%eax
shr    $0x6,%eax
and    $0x3f,%al
or     $0x80,%al
mov    %al,0x2(%rsi)
and    $0x3f,%dil
or     $0x80,%dil
mov    %dil,0x3(%rsi)
mov    $0x4,%eax
mov    $0x4,%ecx
movb   $0x0,(%rsi,%rcx,1)
ret
cmp    $0x7ffffff,%edi
ja     120b <fcitx_ucs4_to_utf8+0x10b>
shr    $0x18,%eax
and    $0x3,%al
or     $0xf8,%al
mov    %al,(%rsi)
mov    %edi,%eax
shr    $0x12,%eax
and    $0x3f,%al
or     $0x80,%al
mov    %al,0x1(%rsi)
mov    %edi,%eax
shr    $0xc,%eax
and    $0x3f,%al
or     $0x80,%al
mov    %al,0x2(%rsi)
mov    %edi,%eax
shr    $0x6,%eax
and    $0x3f,%al
or     $0x80,%al
mov    %al,0x3(%rsi)
and    $0x3f,%dil
or     $0x80,%dil
mov    %dil,0x4(%rsi)
mov    $0x5,%eax
mov    $0x5,%ecx
movb   $0x0,(%rsi,%rcx,1)
ret
shr    $0x1e,%eax
or     $0xfc,%al
mov    %al,(%rsi)
mov    %edi,%eax
shr    $0x18,%eax
and    $0x3f,%al
or     $0x80,%al
mov    %al,0x1(%rsi)
mov    %edi,%eax
shr    $0x12,%eax
and    $0x3f,%al
or     $0x80,%al
mov    %al,0x2(%rsi)
mov    %edi,%eax
shr    $0xc,%eax
and    $0x3f,%al
or     $0x80,%al
mov    %al,0x3(%rsi)
mov    %edi,%eax
shr    $0x6,%eax
and    $0x3f,%al
or     $0x80,%al
mov    %al,0x4(%rsi)
and    $0x3f,%dil
or     $0x80,%dil
mov    %dil,0x5(%rsi)
mov    $0x6,%eax
mov    $0x6,%ecx
movb   $0x0,(%rsi,%rcx,1)
ret

LLVM IR (-O0):
define i32 @fcitx_ucs4_to_utf8(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
store i32 %0, i32* %4
store i8* %1, i8** %5
%6 = load i32, i32* %4
%7 = icmp slt i32 %6, 128
br i1 %7, label %8, label %16
8: ; preds = %2
%9 = load i32, i32* %4
%10 = and i32 %9, 255
%11 = trunc i32 %10 to i8
%12 = load i8*, i8** %5
%13 = getelementptr inbounds i8, i8* %12, i64 0
store i8 %11, i8* %13
%14 = load i8*, i8** %5
%15 = getelementptr inbounds i8, i8* %14, i64 1
store i8 0, i8* %15
store i32 1, i32* %3
br label %178
16: ; preds = %2
%17 = load i32, i32* %4
%18 = icmp slt i32 %17, 2048
br i1 %18, label %19, label %35
19: ; preds = %16
%20 = load i32, i32* %4
%21 = ashr i32 %20, 6
%22 = and i32 %21, 31
%23 = add nsw i32 192, %22
%24 = trunc i32 %23 to i8
%25 = load i8*, i8** %5
%26 = getelementptr inbounds i8, i8* %25, i64 0
store i8 %24, i8* %26
%27 = load i32, i32* %4
%28 = and i32 %27, 63
%29 = add nsw i32 128, %28
%30 = trunc i32 %29 to i8
%31 = load i8*, i8** %5
%32 = getelementptr inbounds i8, i8* %31, i64 1
store i8 %30, i8* %32
%33 = load i8*, i8** %5
%34 = getelementptr inbounds i8, i8* %33, i64 2
store i8 0, i8* %34
store i32 2, i32* %3
br label %178
35: ; preds = %16
%36 = load i32, i32* %4
%37 = icmp slt i32 %36, 65536
br i1 %37, label %38, label %61
38: ; preds = %35
%39 = load i32, i32* %4
%40 = ashr i32 %39, 12
%41 = and i32 %40, 15
%42 = add nsw i32 224, %41
%43 = trunc i32 %42 to i8
%44 = load i8*, i8** %5
%45 = getelementptr inbounds i8, i8* %44, i64 0
store i8 %43, i8* %45
%46 = load i32, i32* %4
%47 = ashr i32 %46, 6
%48 = and i32 %47, 63
%49 = add nsw i32 128, %48
%50 = trunc i32 %49 to i8
%51 = load i8*, i8** %5
%52 = getelementptr inbounds i8, i8* %51, i64 1
store i8 %50, i8* %52
%53 = load i32, i32* %4
%54 = and i32 %53, 63
%55 = add nsw i32 128, %54
%56 = trunc i32 %55 to i8
%57 = load i8*, i8** %5
%58 = getelementptr inbounds i8, i8* %57, i64 2
store i8 %56, i8* %58
%59 = load i8*, i8** %5
%60 = getelementptr inbounds i8, i8* %59, i64 3
store i8 0, i8* %60
store i32 3, i32* %3
br label %178
61: ; preds = %35
%62 = load i32, i32* %4
%63 = icmp slt i32 %62, 2097152
br i1 %63, label %64, label %94
64: ; preds = %61
%65 = load i32, i32* %4
%66 = ashr i32 %65, 18
%67 = and i32 %66, 7
%68 = add nsw i32 240, %67
%69 = trunc i32 %68 to i8
%70 = load i8*, i8** %5
%71 = getelementptr inbounds i8, i8* %70, i64 0
store i8 %69, i8* %71
%72 = load i32, i32* %4
%73 = ashr i32 %72, 12
%74 = and i32 %73, 63
%75 = add nsw i32 128, %74
%76 = trunc i32 %75 to i8
%77 = load i8*, i8** %5
%78 = getelementptr inbounds i8, i8* %77, i64 1
store i8 %76, i8* %78
%79 = load i32, i32* %4
%80 = ashr i32 %79, 6
%81 = and i32 %80, 63
%82 = add nsw i32 128, %81
%83 = trunc i32 %82 to i8
%84 = load i8*, i8** %5
%85 = getelementptr inbounds i8, i8* %84, i64 2
store i8 %83, i8* %85
%86 = load i32, i32* %4
%87 = and i32 %86, 63
%88 = add nsw i32 128, %87
%89 = trunc i32 %88 to i8
%90 = load i8*, i8** %5
%91 = getelementptr inbounds i8, i8* %90, i64 3
store i8 %89, i8* %91
%92 = load i8*, i8** %5
%93 = getelementptr inbounds i8, i8* %92, i64 4
store i8 0, i8* %93
store i32 4, i32* %3
br label %178
94: ; preds = %61
%95 = load i32, i32* %4
%96 = icmp slt i32 %95, 134217728
br i1 %96, label %97, label %134
97: ; preds = %94
%98 = load i32, i32* %4
%99 = ashr i32 %98, 24
%100 = and i32 %99, 3
%101 = add nsw i32 248, %100
%102 = trunc i32 %101 to i8
%103 = load i8*, i8** %5
%104 = getelementptr inbounds i8, i8* %103, i64 0
store i8 %102, i8* %104
%105 = load i32, i32* %4
%106 = ashr i32 %105, 18
%107 = and i32 %106, 63
%108 = add nsw i32 128, %107
%109 = trunc i32 %108 to i8
%110 = load i8*, i8** %5
%111 = getelementptr inbounds i8, i8* %110, i64 1
store i8 %109, i8* %111
%112 = load i32, i32* %4
%113 = ashr i32 %112, 12
%114 = and i32 %113, 63
%115 = add nsw i32 128, %114
%116 = trunc i32 %115 to i8
%117 = load i8*, i8** %5
%118 = getelementptr inbounds i8, i8* %117, i64 2
store i8 %116, i8* %118
%119 = load i32, i32* %4
%120 = ashr i32 %119, 6
%121 = and i32 %120, 63
%122 = add nsw i32 128, %121
%123 = trunc i32 %122 to i8
%124 = load i8*, i8** %5
%125 = getelementptr inbounds i8, i8* %124, i64 3
store i8 %123, i8* %125
%126 = load i32, i32* %4
%127 = and i32 %126, 63
%128 = add nsw i32 128, %127
%129 = trunc i32 %128 to i8
%130 = load i8*, i8** %5
%131 = getelementptr inbounds i8, i8* %130, i64 4
store i8 %129, i8* %131
%132 = load i8*, i8** %5
%133 = getelementptr inbounds i8, i8* %132, i64 5
store i8 0, i8* %133
store i32 5, i32* %3
br label %178
134: ; preds = %94
%135 = load i32, i32* %4
%136 = ashr i32 %135, 30
%137 = and i32 %136, 1
%138 = add nsw i32 252, %137
%139 = trunc i32 %138 to i8
%140 = load i8*, i8** %5
%141 = getelementptr inbounds i8, i8* %140, i64 0
store i8 %139, i8* %141
%142 = load i32, i32* %4
%143 = ashr i32 %142, 24
%144 = and i32 %143, 63
%145 = add nsw i32 128, %144
%146 = trunc i32 %145 to i8
%147 = load i8*, i8** %5
%148 = getelementptr inbounds i8, i8* %147, i64 1
store i8 %146, i8* %148
%149 = load i32, i32* %4
%150 = ashr i32 %149, 18
%151 = and i32 %150, 63
%152 = add nsw i32 128, %151
%153 = trunc i32 %152 to i8
%154 = load i8*, i8** %5
%155 = getelementptr inbounds i8, i8* %154, i64 2
store i8 %153, i8* %155
%156 = load i32, i32* %4
%157 = ashr i32 %156, 12
%158 = and i32 %157, 63
%159 = add nsw i32 128, %158
%160 = trunc i32 %159 to i8
%161 = load i8*, i8** %5
%162 = getelementptr inbounds i8, i8* %161, i64 3
store i8 %160, i8* %162
%163 = load i32, i32* %4
%164 = ashr i32 %163, 6
%165 = and i32 %164, 63
%166 = add nsw i32 128, %165
%167 = trunc i32 %166 to i8
%168 = load i8*, i8** %5
%169 = getelementptr inbounds i8, i8* %168, i64 4
store i8 %167, i8* %169
%170 = load i32, i32* %4
%171 = and i32 %170, 63
%172 = add nsw i32 128, %171
%173 = trunc i32 %172 to i8
%174 = load i8*, i8** %5
%175 = getelementptr inbounds i8, i8* %174, i64 5
store i8 %173, i8* %175
%176 = load i8*, i8** %5
%177 = getelementptr inbounds i8, i8* %176, i64 6
store i8 0, i8* %177
store i32 6, i32* %3
br label %178
178: ; preds = %134, %97, %64, %38, %19, %8
%179 = load i32, i32* %3
ret i32 %179
}

LLVM IR (-O2):
define i32 @fcitx_ucs4_to_utf8(i32 %0, i8* writeonly %1) {
%3 = icmp slt i32 %0, 128
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = trunc i32 %0 to i8
store i8 %5, i8* %1
br label %105
6: ; preds = %2
%7 = icmp ult i32 %0, 2048
br i1 %7, label %8, label %16
8: ; preds = %6
%9 = lshr i32 %0, 6
%10 = trunc i32 %9 to i8
%11 = or i8 %10, -64
store i8 %11, i8* %1
%12 = trunc i32 %0 to i8
%13 = and i8 %12, 63
%14 = or i8 %13, -128
%15 = getelementptr inbounds i8, i8* %1, i64 1
store i8 %14, i8* %15
br label %105
16: ; preds = %6
%17 = icmp ult i32 %0, 65536
br i1 %17, label %18, label %31
18: ; preds = %16
%19 = lshr i32 %0, 12
%20 = trunc i32 %19 to i8
%21 = or i8 %20, -32
store i8 %21, i8* %1
%22 = lshr i32 %0, 6
%23 = trunc i32 %22 to i8
%24 = and i8 %23, 63
%25 = or i8 %24, -128
%26 = getelementptr inbounds i8, i8* %1, i64 1
store i8 %25, i8* %26
%27 = trunc i32 %0 to i8
%28 = and i8 %27, 63
%29 = or i8 %28, -128
%30 = getelementptr inbounds i8, i8* %1, i64 2
store i8 %29, i8* %30
br label %105
31: ; preds = %16
%32 = icmp ult i32 %0, 2097152
br i1 %32, label %33, label %51
33: ; preds = %31
%34 = lshr i32 %0, 18
%35 = trunc i32 %34 to i8
%36 = or i8 %35, -16
store i8 %36, i8* %1
%37 = lshr i32 %0, 12
%38 = trunc i32 %37 to i8
%39 = and i8 %38, 63
%40 = or i8 %39, -128
%41 = getelementptr inbounds i8, i8* %1, i64 1
store i8 %40, i8* %41
%42 = lshr i32 %0, 6
%43 = trunc i32 %42 to i8
%44 = and i8 %43, 63
%45 = or i8 %44, -128
%46 = getelementptr inbounds i8, i8* %1, i64 2
store i8 %45, i8* %46
%47 = trunc i32 %0 to i8
%48 = and i8 %47, 63
%49 = or i8 %48, -128
%50 = getelementptr inbounds i8, i8* %1, i64 3
store i8 %49, i8* %50
br label %105
51: ; preds = %31
%52 = icmp ult i32 %0, 134217728
br i1 %52, label %53, label %77
53: ; preds = %51
%54 = lshr i32 %0, 24
%55 = trunc i32 %54 to i8
%56 = and i8 %55, 3
%57 = or i8 %56, -8
store i8 %57, i8* %1
%58 = lshr i32 %0, 18
%59 = trunc i32 %58 to i8
%60 = and i8 %59, 63
%61 = or i8 %60, -128
%62 = getelementptr inbounds i8, i8* %1, i64 1
store i8 %61, i8* %62
%63 = lshr i32 %0, 12
%64 = trunc i32 %63 to i8
%65 = and i8 %64, 63
%66 = or i8 %65, -128
%67 = getelementptr inbounds i8, i8* %1, i64 2
store i8 %66, i8* %67
%68 = lshr i32 %0, 6
%69 = trunc i32 %68 to i8
%70 = and i8 %69, 63
%71 = or i8 %70, -128
%72 = getelementptr inbounds i8, i8* %1, i64 3
store i8 %71, i8* %72
%73 = trunc i32 %0 to i8
%74 = and i8 %73, 63
%75 = or i8 %74, -128
%76 = getelementptr inbounds i8, i8* %1, i64 4
store i8 %75, i8* %76
br label %105
77: ; preds = %51
%78 = lshr i32 %0, 30
%79 = trunc i32 %78 to i8
%80 = or i8 %79, -4
store i8 %80, i8* %1
%81 = lshr i32 %0, 24
%82 = trunc i32 %81 to i8
%83 = and i8 %82, 63
%84 = or i8 %83, -128
%85 = getelementptr inbounds i8, i8* %1, i64 1
store i8 %84, i8* %85
%86 = lshr i32 %0, 18
%87 = trunc i32 %86 to i8
%88 = and i8 %87, 63
%89 = or i8 %88, -128
%90 = getelementptr inbounds i8, i8* %1, i64 2
store i8 %89, i8* %90
%91 = lshr i32 %0, 12
%92 = trunc i32 %91 to i8
%93 = and i8 %92, 63
%94 = or i8 %93, -128
%95 = getelementptr inbounds i8, i8* %1, i64 3
store i8 %94, i8* %95
%96 = lshr i32 %0, 6
%97 = trunc i32 %96 to i8
%98 = and i8 %97, 63
%99 = or i8 %98, -128
%100 = getelementptr inbounds i8, i8* %1, i64 4
store i8 %99, i8* %100
%101 = trunc i32 %0 to i8
%102 = and i8 %101, 63
%103 = or i8 %102, -128
%104 = getelementptr inbounds i8, i8* %1, i64 5
store i8 %103, i8* %104
br label %105
105: ; preds = %77, %53, %33, %18, %8, %4
%106 = phi i64 [ 6, %77 ], [ 5, %53 ], [ 4, %33 ], [ 3, %18 ], [ 2, %8 ], [ 1, %4 ]
%107 = phi i32 [ 6, %77 ], [ 5, %53 ], [ 4, %33 ], [ 3, %18 ], [ 2, %8 ], [ 1, %4 ]
%108 = getelementptr inbounds i8, i8* %1, i64 %106
store i8 0, i8* %108
ret i32 %107
}