int strexpand(char *dest, unsigned char *source, int maxlen,
              unsigned char pairtable[128][2]) {
  static const unsigned char mypairtable[128][2] = {
      {101, 32},  {111, 110}, {116, 32},  {105, 110}, {97, 114},  {115, 32},
      {116, 105}, {100, 32},  {101, 114}, {37, 115},  {101, 110}, {134, 129},
      {34, 137},  {140, 34},  {97, 108},  {117, 110}, {114, 101}, {110, 111},
      {97, 116},  {115, 105}, {121, 32},  {97, 110},  {111, 114}, {109, 98},
      {115, 116}, {32, 141},  {100, 101}, {41, 10},   {109, 138}, {145, 130},
      {101, 135}, {139, 32},  {98, 108},  {111, 108}, {114, 97},  {143, 99},
      {118, 142}, {102, 163}, {115, 121}, {166, 151}, {167, 161}, {97, 32},
      {117, 115}, {103, 32},  {115, 147}, {132, 162}, {97, 160},  {136, 32},
      {150, 32},  {99, 104},  {103, 117}, {105, 135}, {178, 156}, {164, 179},
      {132, 180}, {111, 102}, {116, 104}, {101, 120}, {165, 159}, {131, 181},
      {101, 100}, {101, 133}, {105, 133}, {168, 153}, {154, 102}, {118, 132},
      {183, 32},  {105, 174}, {193, 195}, {116, 111}, {173, 148}, {109, 97},
      {99, 129},  {101, 10},  {115, 10},  {112, 144}, {116, 97},  {182, 130},
      {98, 128},  {152, 146}, {44, 32},   {132, 97},  {192, 131}, {170, 130},
      {153, 10},  {109, 146}, {191, 155}, {109, 211}, {40, 214},  {104, 97},
      {196, 128}, {34, 32},   {129, 32},  {142, 32},  {105, 99},  {117, 108},
      {99, 111},  {147, 122}, {110, 32},  {100, 105}, {101, 108}, {108, 111},
      {111, 112}, {116, 136}, {200, 152}, {131, 32},  {149, 32},  {131, 171},
      {213, 177}, {58, 212},  {109, 101}, {102, 105}, {100, 111}, {97, 115},
      {108, 128}, {118, 128}, {230, 136}, {232, 149}, {204, 171}, {203, 172},
      {215, 206}, {119, 105}, {109, 112}, {110, 117}, {185, 247}, {165, 139},
      {251, 151}};
  unsigned char stack[16];
  short c, top = 0;
  int len = 0;
  if (!pairtable)
    pairtable = (void *)mypairtable;
  if (maxlen == 0)
    return (0);
  if (maxlen < 0)
    return (-1);
  for (;;) {
    if (top)
      c = stack[--top];
    else if ((c = *(unsigned char *)source++) == '\0')
      break;
    if (c > 127) {
      if (top + 2 > 16)
        return (-1);
      stack[top++] = pairtable[c - 128][1];
      stack[top++] = pairtable[c - 128][0];
    } else {
      if (len >= maxlen)
        return (-1);
      *dest++ = (char)c;
      len++;
    }
  }
  return len;
}


x86 assembly (clang, -O0):
<strexpand>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %rcx,-0x28(%rbp)
movw   $0x0,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    1136 <strexpand+0x36>
lea    0xece(%rip),%rax
mov    %rax,-0x28(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jne    114c <strexpand+0x4c>
movl   $0x0,-0x4(%rbp)
jmp    1282 <strexpand+0x182>
cmpl   $0x0,-0x1c(%rbp)
jge    1162 <strexpand+0x62>
movl   $0xffffffff,-0x4(%rbp)
jmp    1282 <strexpand+0x182>
jmp    1167 <strexpand+0x67>
cmpw   $0x0,-0x44(%rbp)
je     1190 <strexpand+0x90>
mov    -0x44(%rbp),%ax
add    $0xffff,%ax
mov    %ax,-0x44(%rbp)
movswq %ax,%rax
movzbl -0x40(%rbp,%rax,1),%eax
mov    %ax,-0x42(%rbp)
jmp    11ba <strexpand+0xba>
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x18(%rbp)
movzbl (%rax),%eax
mov    %ax,-0x42(%rbp)
cwtl
cmp    $0x0,%eax
jne    11b5 <strexpand+0xb5>
jmp    127c <strexpand+0x17c>
jmp    11ba <strexpand+0xba>
movswl -0x42(%rbp),%eax
cmp    $0x7f,%eax
jle    123f <strexpand+0x13f>
movswl -0x44(%rbp),%eax
add    $0x2,%eax
cmp    $0x10,%eax
jle    11e3 <strexpand+0xe3>
movl   $0xffffffff,-0x4(%rbp)
jmp    1282 <strexpand+0x182>
mov    -0x28(%rbp),%rax
movswl -0x42(%rbp),%ecx
sub    $0x80,%ecx
movslq %ecx,%rcx
mov    0x1(%rax,%rcx,2),%cl
mov    -0x44(%rbp),%ax
mov    %ax,%dx
add    $0x1,%dx
mov    %dx,-0x44(%rbp)
movswq %ax,%rax
mov    %cl,-0x40(%rbp,%rax,1)
mov    -0x28(%rbp),%rax
movswl -0x42(%rbp),%ecx
sub    $0x80,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,2),%cl
mov    -0x44(%rbp),%ax
mov    %ax,%dx
add    $0x1,%dx
mov    %dx,-0x44(%rbp)
movswq %ax,%rax
mov    %cl,-0x40(%rbp,%rax,1)
jmp    1277 <strexpand+0x177>
mov    -0x48(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jl     1257 <strexpand+0x157>
movl   $0xffffffff,-0x4(%rbp)
jmp    1282 <strexpand+0x182>
mov    -0x42(%rbp),%ax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1167 <strexpand+0x67>
mov    -0x48(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strexpand>:
push   %rbx
test   %rcx,%rcx
lea    0xef5(%rip),%r8
cmovne %rcx,%r8
test   %edx,%edx
je     11ac <strexpand+0xac>
mov    $0xffffffff,%eax
js     11ae <strexpand+0xae>
xor    %r11d,%r11d
xor    %r9d,%r9d
test   %r11w,%r11w
jne    1157 <strexpand+0x57>
jmp    1180 <strexpand+0x80>
movzbl %r10b,%ecx
add    $0xffffff80,%ecx
mov    0x1(%r8,%rcx,2),%r10b
movswq %r11w,%rbx
mov    %r10b,-0x10(%rsp,%rbx,1)
mov    (%r8,%rcx,2),%cl
add    $0x2,%r11d
mov    %cl,-0xf(%rsp,%rbx,1)
test   %r11w,%r11w
je     1180 <strexpand+0x80>
add    $0xffffffff,%r11d
movswq %r11w,%rcx
mov    -0x10(%rsp,%rcx,1),%r10b
test   %r10b,%r10b
jns    1194 <strexpand+0x94>
cmp    $0xe,%r11w
jle    1130 <strexpand+0x30>
jmp    11ae <strexpand+0xae>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%rsi),%r10b
test   %r10b,%r10b
je     11b0 <strexpand+0xb0>
add    $0x1,%rsi
xor    %r11d,%r11d
test   %r10b,%r10b
js     1130 <strexpand+0x30>
cmp    %edx,%r9d
jge    11ae <strexpand+0xae>
mov    %r10b,(%rdi)
add    $0x1,%rdi
add    $0x1,%r9d
test   %r11w,%r11w
jne    1157 <strexpand+0x57>
jmp    1180 <strexpand+0x80>
xor    %eax,%eax
pop    %rbx
ret
mov    %r9d,%eax
pop    %rbx
ret

LLVM IR (-O0):
@strexpand.mypairtable = internal constant [128 x [2 x i8]] [[2 x i8] c"e ", [2 x i8] c"on", [2 x i8] c"t ", [2 x i8] c"in", [2 x i8] c"ar", [2 x i8] c"s ", [2 x i8] c"ti", [2 x i8] c"d ", [2 x i8] c"er", [2 x i8] c"%s", [2 x i8] c"en", [2 x i8] c"\86\81", [2 x i8] c"\22\89", [2 x i8] c"\8C\22", [2 x i8] c"al", [2 x i8] c"un", [2 x i8] c"re", [2 x i8] c"no", [2 x i8] c"at", [2 x i8] c"si", [2 x i8] c"y ", [2 x i8] c"an", [2 x i8] c"or", [2 x i8] c"mb", [2 x i8] c"st", [2 x i8] c" \8D", [2 x i8] c"de", [2 x i8] c")\0A", [2 x i8] c"m\8A", [2 x i8] c"\91\82", [2 x i8] c"e\87", [2 x i8] c"\8B ", [2 x i8] c"bl", [2 x i8] c"ol", [2 x i8] c"ra", [2 x i8] c"\8Fc", [2 x i8] c"v\8E", [2 x i8] c"f\A3", [2 x i8] c"sy", [2 x i8] c"\A6\97", [2 x i8] c"\A7\A1", [2 x i8] c"a ", [2 x i8] c"us", [2 x i8] c"g ", [2 x i8] c"s\93", [2 x i8] c"\84\A2", [2 x i8] c"a\A0", [2 x i8] c"\88 ", [2 x i8] c"\96 ", [2 x i8] c"ch", [2 x i8] c"gu", [2 x i8] c"i\87", [2 x i8] c"\B2\9C", [2 x i8] c"\A4\B3", [2 x i8] c"\84\B4", [2 x i8] c"of", [2 x i8] c"th", [2 x i8] c"ex", [2 x i8] c"\A5\9F", [2 x i8] c"\83\B5", [2 x i8] c"ed", [2 x i8] c"e\85", [2 x i8] c"i\85", [2 x i8] c"\A8\99", [2 x i8] c"\9Af", [2 x i8] c"v\84", [2 x i8] c"\B7 ", [2 x i8] c"i\AE", [2 x i8] c"\C1\C3", [2 x i8] c"to", [2 x i8] c"\AD\94", [2 x i8] c"ma", [2 x i8] c"c\81", [2 x i8] c"e\0A", [2 x i8] c"s\0A", [2 x i8] c"p\90", [2 x i8] c"ta", [2 x i8] c"\B6\82", [2 x i8] c"b\80", [2 x i8] c"\98\92", [2 x i8] c", ", [2 x i8] c"\84a", [2 x i8] c"\C0\83", [2 x i8] c"\AA\82", [2 x i8] c"\99\0A", [2 x i8] c"m\92", [2 x i8] c"\BF\9B", [2 x i8] c"m\D3", [2 x i8] c"(\D6", [2 x i8] c"ha", [2 x i8] c"\C4\80", [2 x i8] c"\22 ", [2 x i8] c"\81 ", [2 x i8] c"\8E ", [2 x i8] c"ic", [2 x i8] c"ul", [2 x i8] c"co", [2 x i8] c"\93z", [2 x i8] c"n ", [2 x i8] c"di", [2 x i8] c"el", [2 x i8] c"lo", [2 x i8] c"op", [2 x i8] c"t\88", [2 x i8] c"\C8\98", [2 x i8] c"\83 ", [2 x i8] c"\95 ", [2 x i8] c"\83\AB", [2 x i8] c"\D5\B1", [2 x i8] c":\D4", [2 x i8] c"me", [2 x i8] c"fi", [2 x i8] c"do", [2 x i8] c"as", [2 x i8] c"l\80", [2 x i8] c"v\80", [2 x i8] c"\E6\88", [2 x i8] c"\E8\95", [2 x i8] c"\CC\AB", [2 x i8] c"\CB\AC", [2 x i8] c"\D7\CE", [2 x i8] c"wi", [2 x i8] c"mp", [2 x i8] c"nu", [2 x i8] c"\B9\F7", [2 x i8] c"\A5\8B", [2 x i8] c"\FB\97", [2 x i8] zeroinitializer]
define i32 @strexpand(i8* %0, i8* %1, i32 %2, [2 x i8]* %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca [2 x i8]*
%10 = alloca [16 x i8]
%11 = alloca i16
%12 = alloca i16
%13 = alloca i32
store i8* %0, i8** %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store [2 x i8]* %3, [2 x i8]** %9
store i16 0, i16* %12
store i32 0, i32* %13
%14 = load [2 x i8]*, [2 x i8]** %9
%15 = icmp ne [2 x i8]* %14, null
br i1 %15, label %17, label %16
16: ; preds = %4
store [2 x i8]* getelementptr inbounds ([128 x [2 x i8]], [128 x [2 x i8]]* @strexpand.mypairtable, i32 0, i32 0), [2 x i8]** %9
br label %17
17: ; preds = %16, %4
%18 = load i32, i32* %8
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %17
store i32 0, i32* %5
br label %95
21: ; preds = %17
%22 = load i32, i32* %8
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %21
store i32 -1, i32* %5
br label %95
25: ; preds = %21
br label %26
26: ; preds = %92, %25
%27 = load i16, i16* %12
%28 = icmp ne i16 %27, 0
br i1 %28, label %29, label %36
29: ; preds = %26
%30 = load i16, i16* %12
%31 = add i16 %30, -1
store i16 %31, i16* %12
%32 = sext i16 %31 to i64
%33 = getelementptr inbounds [16 x i8], [16 x i8]* %10, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = zext i8 %34 to i16
store i16 %35, i16* %11
br label %45
36: ; preds = %26
%37 = load i8*, i8** %7
%38 = getelementptr inbounds i8, i8* %37, i32 1
store i8* %38, i8** %7
%39 = load i8, i8* %37
%40 = zext i8 %39 to i16
store i16 %40, i16* %11
%41 = sext i16 %40 to i32
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %36
br label %93
44: ; preds = %36
br label %45
45: ; preds = %44, %29
%46 = load i16, i16* %11
%47 = sext i16 %46 to i32
%48 = icmp sgt i32 %47, 127
br i1 %48, label %49, label %80
49: ; preds = %45
%50 = load i16, i16* %12
%51 = sext i16 %50 to i32
%52 = add nsw i32 %51, 2
%53 = icmp sgt i32 %52, 16
br i1 %53, label %54, label %55
54: ; preds = %49
store i32 -1, i32* %5
br label %95
55: ; preds = %49
%56 = load [2 x i8]*, [2 x i8]** %9
%57 = load i16, i16* %11
%58 = sext i16 %57 to i32
%59 = sub nsw i32 %58, 128
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [2 x i8], [2 x i8]* %56, i64 %60
%62 = getelementptr inbounds [2 x i8], [2 x i8]* %61, i64 0, i64 1
%63 = load i8, i8* %62
%64 = load i16, i16* %12
%65 = add i16 %64, 1
store i16 %65, i16* %12
%66 = sext i16 %64 to i64
%67 = getelementptr inbounds [16 x i8], [16 x i8]* %10, i64 0, i64 %66
store i8 %63, i8* %67
%68 = load [2 x i8]*, [2 x i8]** %9
%69 = load i16, i16* %11
%70 = sext i16 %69 to i32
%71 = sub nsw i32 %70, 128
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [2 x i8], [2 x i8]* %68, i64 %72
%74 = getelementptr inbounds [2 x i8], [2 x i8]* %73, i64 0, i64 0
%75 = load i8, i8* %74
%76 = load i16, i16* %12
%77 = add i16 %76, 1
store i16 %77, i16* %12
%78 = sext i16 %76 to i64
%79 = getelementptr inbounds [16 x i8], [16 x i8]* %10, i64 0, i64 %78
store i8 %75, i8* %79
br label %92
80: ; preds = %45
%81 = load i32, i32* %13
%82 = load i32, i32* %8
%83 = icmp sge i32 %81, %82
br i1 %83, label %84, label %85
84: ; preds = %80
store i32 -1, i32* %5
br label %95
85: ; preds = %80
%86 = load i16, i16* %11
%87 = trunc i16 %86 to i8
%88 = load i8*, i8** %6
%89 = getelementptr inbounds i8, i8* %88, i32 1
store i8* %89, i8** %6
store i8 %87, i8* %88
%90 = load i32, i32* %13
%91 = add nsw i32 %90, 1
store i32 %91, i32* %13
br label %92
92: ; preds = %85, %55
br label %26
93: ; preds = %43
%94 = load i32, i32* %13
store i32 %94, i32* %5
br label %95
95: ; preds = %93, %84, %54, %24, %20
%96 = load i32, i32* %5
ret i32 %96
}

LLVM IR (-O2):
@strexpand.mypairtable = internal unnamed_addr constant [128 x [2 x i8]] [[2 x i8] c"e ", [2 x i8] c"on", [2 x i8] c"t ", [2 x i8] c"in", [2 x i8] c"ar", [2 x i8] c"s ", [2 x i8] c"ti", [2 x i8] c"d ", [2 x i8] c"er", [2 x i8] c"%s", [2 x i8] c"en", [2 x i8] c"\86\81", [2 x i8] c"\22\89", [2 x i8] c"\8C\22", [2 x i8] c"al", [2 x i8] c"un", [2 x i8] c"re", [2 x i8] c"no", [2 x i8] c"at", [2 x i8] c"si", [2 x i8] c"y ", [2 x i8] c"an", [2 x i8] c"or", [2 x i8] c"mb", [2 x i8] c"st", [2 x i8] c" \8D", [2 x i8] c"de", [2 x i8] c")\0A", [2 x i8] c"m\8A", [2 x i8] c"\91\82", [2 x i8] c"e\87", [2 x i8] c"\8B ", [2 x i8] c"bl", [2 x i8] c"ol", [2 x i8] c"ra", [2 x i8] c"\8Fc", [2 x i8] c"v\8E", [2 x i8] c"f\A3", [2 x i8] c"sy", [2 x i8] c"\A6\97", [2 x i8] c"\A7\A1", [2 x i8] c"a ", [2 x i8] c"us", [2 x i8] c"g ", [2 x i8] c"s\93", [2 x i8] c"\84\A2", [2 x i8] c"a\A0", [2 x i8] c"\88 ", [2 x i8] c"\96 ", [2 x i8] c"ch", [2 x i8] c"gu", [2 x i8] c"i\87", [2 x i8] c"\B2\9C", [2 x i8] c"\A4\B3", [2 x i8] c"\84\B4", [2 x i8] c"of", [2 x i8] c"th", [2 x i8] c"ex", [2 x i8] c"\A5\9F", [2 x i8] c"\83\B5", [2 x i8] c"ed", [2 x i8] c"e\85", [2 x i8] c"i\85", [2 x i8] c"\A8\99", [2 x i8] c"\9Af", [2 x i8] c"v\84", [2 x i8] c"\B7 ", [2 x i8] c"i\AE", [2 x i8] c"\C1\C3", [2 x i8] c"to", [2 x i8] c"\AD\94", [2 x i8] c"ma", [2 x i8] c"c\81", [2 x i8] c"e\0A", [2 x i8] c"s\0A", [2 x i8] c"p\90", [2 x i8] c"ta", [2 x i8] c"\B6\82", [2 x i8] c"b\80", [2 x i8] c"\98\92", [2 x i8] c", ", [2 x i8] c"\84a", [2 x i8] c"\C0\83", [2 x i8] c"\AA\82", [2 x i8] c"\99\0A", [2 x i8] c"m\92", [2 x i8] c"\BF\9B", [2 x i8] c"m\D3", [2 x i8] c"(\D6", [2 x i8] c"ha", [2 x i8] c"\C4\80", [2 x i8] c"\22 ", [2 x i8] c"\81 ", [2 x i8] c"\8E ", [2 x i8] c"ic", [2 x i8] c"ul", [2 x i8] c"co", [2 x i8] c"\93z", [2 x i8] c"n ", [2 x i8] c"di", [2 x i8] c"el", [2 x i8] c"lo", [2 x i8] c"op", [2 x i8] c"t\88", [2 x i8] c"\C8\98", [2 x i8] c"\83 ", [2 x i8] c"\95 ", [2 x i8] c"\83\AB", [2 x i8] c"\D5\B1", [2 x i8] c":\D4", [2 x i8] c"me", [2 x i8] c"fi", [2 x i8] c"do", [2 x i8] c"as", [2 x i8] c"l\80", [2 x i8] c"v\80", [2 x i8] c"\E6\88", [2 x i8] c"\E8\95", [2 x i8] c"\CC\AB", [2 x i8] c"\CB\AC", [2 x i8] c"\D7\CE", [2 x i8] c"wi", [2 x i8] c"mp", [2 x i8] c"nu", [2 x i8] c"\B9\F7", [2 x i8] c"\A5\8B", [2 x i8] c"\FB\97", [2 x i8] zeroinitializer]
define i32 @strexpand(i8* nocapture writeonly %0, i8* nocapture %1, i32 %2, [2 x i8]* %3) {
%5 = alloca [16 x i8]
%6 = getelementptr inbounds [16 x i8], [16 x i8]* %5, i64 0, i64 0
%7 = icmp eq [2 x i8]* %3, null
%8 = select i1 %7, [2 x i8]* getelementptr inbounds ([128 x [2 x i8]], [128 x [2 x i8]]* @strexpand.mypairtable, i64 0, i64 0), [2 x i8]* %3
%9 = icmp eq i32 %2, 0
br i1 %9, label %60, label %10
10: ; preds = %4
%11 = icmp slt i32 %2, 0
br i1 %11, label %60, label %12
12: ; preds = %10, %57
%13 = phi i8* [ %58, %57 ], [ %0, %10 ]
%14 = phi i8* [ %55, %57 ], [ %1, %10 ]
%15 = phi i16 [ %53, %57 ], [ 0, %10 ]
%16 = phi i32 [ %59, %57 ], [ 0, %10 ]
br label %17
17: ; preds = %12, %35
%18 = phi i8* [ %36, %35 ], [ %14, %12 ]
%19 = phi i16 [ %49, %35 ], [ %15, %12 ]
%20 = icmp eq i16 %19, 0
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = getelementptr inbounds i8, i8* %18, i64 1
%23 = load i8, i8* %18
%24 = icmp eq i8 %23, 0
br i1 %24, label %60, label %31
25: ; preds = %17
%26 = add i16 %19, -1
%27 = sext i16 %26 to i64
%28 = getelementptr inbounds [16 x i8], [16 x i8]* %5, i64 0, i64 %27
%29 = load i8, i8* %28
%30 = icmp slt i8 %29, 0
br i1 %30, label %33, label %52
31: ; preds = %21
%32 = icmp slt i8 %23, 0
br i1 %32, label %35, label %52
33: ; preds = %25
%34 = icmp sgt i16 %26, 14
br i1 %34, label %60, label %35
35: ; preds = %31, %33
%36 = phi i8* [ %18, %33 ], [ %22, %31 ]
%37 = phi i16 [ %26, %33 ], [ 0, %31 ]
%38 = phi i8 [ %29, %33 ], [ %23, %31 ]
%39 = zext i8 %38 to i64
%40 = add nuw nsw i64 %39, 4294967168
%41 = and i64 %40, 4294967295
%42 = getelementptr inbounds [2 x i8], [2 x i8]* %8, i64 %41, i64 1
%43 = load i8, i8* %42
%44 = add nsw i16 %37, 1
%45 = sext i16 %37 to i64
%46 = getelementptr inbounds [16 x i8], [16 x i8]* %5, i64 0, i64 %45
store i8 %43, i8* %46
%47 = getelementptr inbounds [2 x i8], [2 x i8]* %8, i64 %41, i64 0
%48 = load i8, i8* %47
%49 = add nsw i16 %37, 2
%50 = sext i16 %44 to i64
%51 = getelementptr inbounds [16 x i8], [16 x i8]* %5, i64 0, i64 %50
store i8 %48, i8* %51
br label %17
52: ; preds = %31, %25
%53 = phi i16 [ 0, %31 ], [ %26, %25 ]
%54 = phi i8 [ %23, %31 ], [ %29, %25 ]
%55 = phi i8* [ %22, %31 ], [ %18, %25 ]
%56 = icmp slt i32 %16, %2
br i1 %56, label %57, label %60
57: ; preds = %52
%58 = getelementptr inbounds i8, i8* %13, i64 1
store i8 %54, i8* %13
%59 = add nuw nsw i32 %16, 1
br label %12
60: ; preds = %21, %33, %52, %10, %4
%61 = phi i32 [ 0, %4 ], [ -1, %10 ], [ -1, %33 ], [ %16, %21 ], [ -1, %52 ]
ret i32 %61
}