#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 hex2char(char const);
char *s_strdup(char *);
char *do_ucs4toutf8(const char *from) {
  char str[5] = {0};
  int i;
  static unsigned int E = 0xe0;
  static unsigned int T = 0x02;
  static unsigned int sep1 = 0x80;
  static unsigned int sep2 = 0x800;
  static unsigned int sep3 = 0x10000;
  static unsigned int sep4 = 0x200000;
  static unsigned int sep5 = 0x4000000;
  unsigned int tmp[4];
  char re[6];
  unsigned int ivalue = 0;
  for (i = 0; i < 4; ++i) {
    tmp[i] = 0xf & hex2char(from[i + 2]);
    ivalue *= 16;
    ivalue += tmp[i];
  }
  if (ivalue < sep1) {
    re[0] = 0x7f & tmp[3];
    str[0] = re[0];
  } else if (ivalue < sep2) {
    re[0] = (0x3 << 6) | ((tmp[1] & 7) << 2) | (tmp[2] >> 2);
    re[1] = (0x1 << 7) | ((tmp[2] & 3) << 4) | tmp[3];
    str[0] = re[0];
    str[1] = re[1];
  } else if (ivalue < sep3) {
    re[0] = E | (tmp[0] & 0xf);
    re[1] = (T << 6) | (tmp[1] << 2) | ((tmp[2] >> 2) & 0x3);
    re[2] = (T << 6) | (tmp[2] & 0x3) << 4 | tmp[3];
    for (i = 0; i < 3; ++i) {
      str[i] = re[i];
    }
  } else if (ivalue < sep4) {
    re[0] = 0xf0 | ((tmp[1] >> 2) & 0x7);
    re[1] = 0x2 << 6 | ((tmp[1] & 0x3) << 4) | ((tmp[2] >> 4) & 0xf);
    re[2] = 0x2 << 6 | ((tmp[2] & 0xf) << 4) | ((tmp[3] >> 6) & 0x3);
    re[3] = 0x2 << 6 | (tmp[2] & 0x3f);
    for (i = 0; i < 4; ++i) {
      str[i] = re[i];
    }
  } else if (ivalue < sep5) {
    return NULL;
  } else {
    return NULL;
  }
  return s_strdup(str);
}


x86 assembly (clang, -O0):
<do_ucs4toutf8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
lea    -0x15(%rbp),%rdi
xor    %esi,%esi
mov    $0x5,%edx
call   1030 <memset@plt>
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x4,-0x1c(%rbp)
jge    11ac <do_ucs4toutf8+0x7c>
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%edi
call   1050 <hex2char@plt>
mov    %eax,%ecx
and    $0xf,%ecx
movslq -0x1c(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
mov    -0x3c(%rbp),%eax
shl    $0x4,%eax
mov    %eax,-0x3c(%rbp)
movslq -0x1c(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
add    -0x3c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    115a <do_ucs4toutf8+0x2a>
mov    -0x3c(%rbp),%eax
cmp    0x2e8b(%rip),%eax
jae    11cf <do_ucs4toutf8+0x9f>
mov    -0x24(%rbp),%eax
and    $0x7f,%eax
mov    %al,-0x36(%rbp)
mov    -0x36(%rbp),%al
mov    %al,-0x15(%rbp)
jmp    137b <do_ucs4toutf8+0x24b>
mov    -0x3c(%rbp),%eax
cmp    0x2e6c(%rip),%eax
jae    121c <do_ucs4toutf8+0xec>
mov    -0x2c(%rbp),%eax
and    $0x7,%eax
shl    $0x2,%eax
or     $0xc0,%eax
mov    -0x28(%rbp),%ecx
shr    $0x2,%ecx
or     %ecx,%eax
mov    %al,-0x36(%rbp)
mov    -0x28(%rbp),%eax
and    $0x3,%eax
shl    $0x4,%eax
or     $0x80,%eax
or     -0x24(%rbp),%eax
mov    %al,-0x35(%rbp)
mov    -0x36(%rbp),%al
mov    %al,-0x15(%rbp)
mov    -0x35(%rbp),%al
mov    %al,-0x14(%rbp)
jmp    1376 <do_ucs4toutf8+0x246>
mov    -0x3c(%rbp),%eax
cmp    0x2e23(%rip),%eax
jae    12a9 <do_ucs4toutf8+0x179>
mov    0x2e07(%rip),%eax
mov    -0x30(%rbp),%ecx
and    $0xf,%ecx
or     %ecx,%eax
mov    %al,-0x36(%rbp)
mov    0x2dfa(%rip),%eax
shl    $0x6,%eax
mov    -0x2c(%rbp),%ecx
shl    $0x2,%ecx
or     %ecx,%eax
mov    -0x28(%rbp),%ecx
shr    $0x2,%ecx
and    $0x3,%ecx
or     %ecx,%eax
mov    %al,-0x35(%rbp)
mov    0x2ddb(%rip),%eax
shl    $0x6,%eax
mov    -0x28(%rbp),%ecx
and    $0x3,%ecx
shl    $0x4,%ecx
or     %ecx,%eax
or     -0x24(%rbp),%eax
mov    %al,-0x34(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x3,-0x1c(%rbp)
jge    12a4 <do_ucs4toutf8+0x174>
movslq -0x1c(%rbp),%rax
mov    -0x36(%rbp,%rax,1),%cl
movslq -0x1c(%rbp),%rax
mov    %cl,-0x15(%rbp,%rax,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    127c <do_ucs4toutf8+0x14c>
jmp    1371 <do_ucs4toutf8+0x241>
mov    -0x3c(%rbp),%eax
cmp    0x2d9a(%rip),%eax
jae    1343 <do_ucs4toutf8+0x213>
mov    -0x2c(%rbp),%eax
shr    $0x2,%eax
and    $0x7,%eax
or     $0xf0,%eax
mov    %al,-0x36(%rbp)
mov    -0x2c(%rbp),%eax
and    $0x3,%eax
shl    $0x4,%eax
or     $0x80,%eax
mov    -0x28(%rbp),%ecx
shr    $0x4,%ecx
and    $0xf,%ecx
or     %ecx,%eax
mov    %al,-0x35(%rbp)
mov    -0x28(%rbp),%eax
and    $0xf,%eax
shl    $0x4,%eax
or     $0x80,%eax
mov    -0x24(%rbp),%ecx
shr    $0x6,%ecx
and    $0x3,%ecx
or     %ecx,%eax
mov    %al,-0x34(%rbp)
mov    -0x28(%rbp),%eax
and    $0x3f,%eax
or     $0x80,%eax
mov    %al,-0x33(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x4,-0x1c(%rbp)
jge    133e <do_ucs4toutf8+0x20e>
movslq -0x1c(%rbp),%rax
mov    -0x36(%rbp,%rax,1),%cl
movslq -0x1c(%rbp),%rax
mov    %cl,-0x15(%rbp,%rax,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1316 <do_ucs4toutf8+0x1e6>
jmp    136c <do_ucs4toutf8+0x23c>
mov    -0x3c(%rbp),%eax
cmp    0x2d04(%rip),%eax
jae    135f <do_ucs4toutf8+0x22f>
movq   $0x0,-0x8(%rbp)
jmp    1388 <do_ucs4toutf8+0x258>
movq   $0x0,-0x8(%rbp)
jmp    1388 <do_ucs4toutf8+0x258>
jmp    1371 <do_ucs4toutf8+0x241>
jmp    1376 <do_ucs4toutf8+0x246>
jmp    137b <do_ucs4toutf8+0x24b>
lea    -0x15(%rbp),%rdi
call   1040 <s_strdup@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_ucs4toutf8>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rbp
movb   $0x0,0x4(%rsp)
movl   $0x0,(%rsp)
movsbl 0x2(%rdi),%edi
call   1040 <hex2char@plt>
mov    %eax,%r14d
movsbl 0x3(%rbp),%edi
call   1040 <hex2char@plt>
mov    %eax,%r12d
and    $0xf,%r12d
movsbl 0x4(%rbp),%edi
call   1040 <hex2char@plt>
mov    %eax,%r15d
mov    %eax,%r13d
and    $0xf,%r13d
mov    %r14d,%eax
and    $0xf,%eax
shl    $0x8,%eax
mov    %r12d,%ebx
shl    $0x4,%ebx
or     %eax,%ebx
or     %r13d,%ebx
movsbl 0x5(%rbp),%edi
call   1040 <hex2char@plt>
and    $0xf,%eax
shl    $0x4,%ebx
or     %eax,%ebx
cmp    $0x7f,%ebx
ja     1198 <do_ucs4toutf8+0x78>
mov    %al,(%rsp)
jmp    11fd <do_ucs4toutf8+0xdd>
cmp    $0x7ff,%ebx
ja     11ca <do_ucs4toutf8+0xaa>
and    $0x7,%r12d
mov    %r13d,%ecx
shr    $0x2,%ecx
lea    (%rcx,%r12,4),%ecx
or     $0xc0,%cl
shl    $0x4,%r13d
and    $0x30,%r13d
or     %eax,%r13d
or     $0x80,%r13b
mov    %cl,(%rsp)
mov    %r13b,0x1(%rsp)
jmp    11fd <do_ucs4toutf8+0xdd>
and    $0xf,%r14b
or     $0xe0,%r14b
shr    $0x2,%r15d
and    $0x3,%r15d
lea    (%r15,%r12,4),%ecx
or     $0x80,%cl
shl    $0x4,%r13d
and    $0x30,%r13d
or     %eax,%r13d
or     $0x80,%r13b
mov    %r14b,(%rsp)
mov    %cl,0x1(%rsp)
mov    %r13b,0x2(%rsp)
mov    %rsp,%rdi
call   1030 <s_strdup@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define i8* @do_ucs4toutf8(i8* nocapture %0) {
%2 = alloca [5 x i8]
%3 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
%4 = getelementptr inbounds i8, i8* %0, i64 2
%5 = load i8, i8* %4
%6 = tail call i32 @hex2char(i8 signext %5)
%7 = getelementptr inbounds i8, i8* %0, i64 3
%8 = load i8, i8* %7
%9 = tail call i32 @hex2char(i8 signext %8)
%10 = and i32 %9, 15
%11 = getelementptr inbounds i8, i8* %0, i64 4
%12 = load i8, i8* %11
%13 = tail call i32 @hex2char(i8 signext %12)
%14 = and i32 %13, 15
%15 = shl i32 %6, 8
%16 = and i32 %15, 3840
%17 = shl nuw nsw i32 %10, 4
%18 = or i32 %16, %17
%19 = or i32 %14, %18
%20 = getelementptr inbounds i8, i8* %0, i64 5
%21 = load i8, i8* %20
%22 = tail call i32 @hex2char(i8 signext %21)
%23 = and i32 %22, 15
%24 = shl nuw nsw i32 %19, 4
%25 = or i32 %23, %24
%26 = icmp ult i32 %25, 128
br i1 %26, label %27, label %29
27: ; preds = %1
%28 = trunc i32 %23 to i8
store i8 %28, i8* %3
br label %61
29: ; preds = %1
%30 = icmp ult i32 %25, 2048
br i1 %30, label %31, label %44
31: ; preds = %29
%32 = shl nuw nsw i32 %10, 2
%33 = and i32 %32, 28
%34 = lshr i32 %14, 2
%35 = or i32 %33, %34
%36 = trunc i32 %35 to i8
%37 = or i8 %36, -64
%38 = shl nuw nsw i32 %14, 4
%39 = and i32 %38, 48
%40 = or i32 %39, %23
%41 = trunc i32 %40 to i8
%42 = or i8 %41, -128
store i8 %37, i8* %3
%43 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 1
store i8 %42, i8* %43
br label %61
44: ; preds = %29
%45 = trunc i32 %6 to i8
%46 = and i8 %45, 15
%47 = or i8 %46, -32
%48 = shl nuw nsw i32 %10, 2
%49 = lshr i32 %13, 2
%50 = and i32 %49, 3
%51 = or i32 %50, %48
%52 = trunc i32 %51 to i8
%53 = or i8 %52, -128
%54 = shl nuw nsw i32 %14, 4
%55 = and i32 %54, 48
%56 = or i32 %55, %23
%57 = trunc i32 %56 to i8
%58 = or i8 %57, -128
store i8 %47, i8* %3
%59 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 1
store i8 %53, i8* %59
%60 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 2
store i8 %58, i8* %60
br label %61
61: ; preds = %27, %31, %44
%62 = call i8* @s_strdup(i8* %3)
ret i8* %62
}