#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 /*<<< orphan*/ free(int *);
char join_shares(int *, int);
void *malloc(int);
scalar_t__ memcmp(char *, char *, int);
int /*<<< orphan*/ sprintf(char *, char *, char);
int strlen(char *);
int strtol(char *, int /*<<< orphan*/ *, int);
char *join_strings(char **shares, int n) {
  if (n == 0)
    return NULL;
  int len = (strlen(shares[0]) - 6) / 2;
  char *result = malloc(len + 1);
  char codon[3];
  codon[2] = '\0';
  int x[n];
  int i;
  int j;
  for (i = 0; i < n; ++i) {
    codon[0] = shares[i][0];
    codon[1] = shares[i][1];
    x[i] = strtol(codon, NULL, 16);
  }
  for (i = 0; i < len; ++i) {
    int *chunks = malloc(sizeof(int) * n * 2);
    for (j = 0; j < n; ++j) {
      chunks[j * 2] = x[j];
      codon[0] = shares[j][6 + i * 2];
      codon[1] = shares[j][6 + i * 2 + 1];
      if (memcmp(codon, "G0", 2) == 0) {
        chunks[j * 2 + 1] = 256;
      } else {
        chunks[j * 2 + 1] = strtol(codon, NULL, 16);
      }
    }
    char letter = join_shares(chunks, n);
    free(chunks);
    sprintf(result + i, "%c", letter);
  }
  return result;
}


x86 assembly (clang, -O0):
<join_strings>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    1196 <join_strings+0x26>
movq   $0x0,-0x8(%rbp)
jmp    13b2 <join_strings+0x242>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    %ecx,%edx
add    $0xfffffffa,%edx
mov    %ecx,%eax
shr    $0x1f,%edx
mov    %edx,%ecx
lea    -0x6(%rax,%rcx,1),%eax
sar    %eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%edi
add    $0x1,%edi
call   1070 <malloc@plt>
mov    %rax,-0x20(%rbp)
movb   $0x0,-0x21(%rbp)
mov    -0x14(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x30(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1256 <join_strings+0xe6>
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%al
mov    %al,-0x23(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x1(%rax),%al
mov    %al,-0x22(%rbp)
lea    -0x23(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x10,%edx
call   1060 <strtol@plt>
mov    %eax,%edx
mov    -0x58(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11fa <join_strings+0x8a>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    13a3 <join_strings+0x233>
movslq -0x14(%rbp),%rax
shl    $0x2,%rax
shl    $0x1,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1362 <join_strings+0x1f2>
mov    -0x58(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x48(%rbp),%rax
mov    -0x40(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x3c(%rbp),%ecx
shl    $0x1,%ecx
add    $0x6,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x23(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x3c(%rbp),%ecx
shl    $0x1,%ecx
add    $0x6,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x22(%rbp)
lea    -0x23(%rbp),%rdi
lea    0xd08(%rip),%rsi
mov    $0x2,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
jne    1328 <join_strings+0x1b8>
mov    -0x48(%rbp),%rax
mov    -0x40(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movl   $0x100,(%rax,%rcx,4)
jmp    134f <join_strings+0x1df>
lea    -0x23(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x10,%edx
call   1060 <strtol@plt>
mov    %eax,%edx
mov    -0x48(%rbp),%rax
mov    -0x40(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
jmp    1354 <join_strings+0x1e4>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1287 <join_strings+0x117>
mov    -0x48(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1080 <join_shares@plt>
mov    %al,-0x49(%rbp)
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
movslq -0x3c(%rbp),%rax
add    %rax,%rdi
lea    0xc77(%rip),%rsi
movsbl -0x49(%rbp),%edx
call   1090 <sprintf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    125d <join_strings+0xed>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,%rsp
mov    -0x8(%rbp),%rax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<join_strings>:
test   %esi,%esi
je     132c <join_strings+0x1cc>
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %esi,%r15d
mov    %rdi,%r13
mov    (%rdi),%rdi
call   1040 <strlen@plt>
lea    -0x6(%rax),%edx
shr    $0x1f,%edx
mov    %rax,-0x38(%rbp)
add    %edx,%eax
add    $0xfffffffa,%eax
sar    %eax
mov    %rax,-0x40(%rbp)
lea    0x1(%rax),%edi
call   1070 <malloc@plt>
mov    %rax,-0x58(%rbp)
mov    %rsp,-0x60(%rbp)
movb   $0x0,-0x29(%rbp)
mov    %r15d,%r14d
mov    %rsp,%r12
lea    0xf(,%r14,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
test   %r15d,%r15d
jle    11ff <join_strings+0x9f>
xor    %ebx,%ebx
nop
mov    0x0(%r13,%rbx,8),%rax
movzbl (%rax),%ecx
mov    %cl,-0x2b(%rbp)
movzbl 0x1(%rax),%eax
mov    %al,-0x2a(%rbp)
lea    -0x2b(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1060 <strtol@plt>
mov    %eax,(%r12,%rbx,4)
add    $0x1,%rbx
cmp    %rbx,%r14
jne    11d0 <join_strings+0x70>
mov    %r12,-0x48(%rbp)
mov    %r14,-0x78(%rbp)
mov    %r13,-0x70(%rbp)
cmpl   $0x8,-0x38(%rbp)
jl     1315 <join_strings+0x1b5>
mov    -0x40(%rbp),%rcx
cmp    $0x2,%ecx
mov    $0x1,%eax
cmovge %ecx,%eax
mov    %rax,-0x40(%rbp)
lea    0x0(,%r15,8),%eax
mov    %eax,-0x4c(%rbp)
xor    %eax,%eax
mov    %rax,-0x38(%rbp)
mov    %r15,-0x68(%rbp)
jmp    127b <join_strings+0x11b>
nop
mov    %r14,%rdi
mov    -0x68(%rbp),%r15
mov    %r15d,%esi
call   1080 <join_shares@plt>
mov    %eax,%ebx
mov    %r14,%rdi
call   1030 <free@plt>
mov    -0x58(%rbp),%rax
mov    -0x38(%rbp),%rcx
mov    %bl,(%rax,%rcx,1)
movb   $0x0,0x1(%rax,%rcx,1)
add    $0x1,%rcx
mov    %rcx,-0x38(%rbp)
cmp    -0x40(%rbp),%rcx
je     1315 <join_strings+0x1b5>
mov    -0x4c(%rbp),%edi
call   1070 <malloc@plt>
mov    %rax,%r14
test   %r15d,%r15d
mov    -0x48(%rbp),%rcx
lea    -0x2b(%rbp),%r12
jle    1240 <join_strings+0xe0>
mov    -0x38(%rbp),%rax
lea    (%rax,%rax,1),%ebx
add    $0x6,%ebx
lea    (%rax,%rax,1),%r15d
add    $0x7,%r15d
xor    %r13d,%r13d
jmp    12d6 <join_strings+0x176>
nopw   0x0(%rax,%rax,1)
mov    %r12,%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1060 <strtol@plt>
mov    -0x48(%rbp),%rcx
mov    %eax,0x4(%r14,%r13,8)
add    $0x1,%r13
cmp    %r13,-0x78(%rbp)
je     1240 <join_strings+0xe0>
mov    (%rcx,%r13,4),%eax
mov    %eax,(%r14,%r13,8)
mov    -0x70(%rbp),%rax
mov    (%rax,%r13,8),%rax
movzbl (%rax,%rbx,1),%ecx
mov    %cl,-0x2b(%rbp)
movzbl (%rax,%r15,1),%eax
mov    %al,-0x2a(%rbp)
mov    %r12,%rdi
lea    0xd01(%rip),%rsi
mov    $0x2,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    12b0 <join_strings+0x150>
mov    $0x100,%eax
jmp    12bf <join_strings+0x15f>
mov    -0x60(%rbp),%rsp
mov    -0x58(%rbp),%rax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [3 x i8] c"G0\00"
@.str.1 = [3 x i8] c"%c\00"
define i8* @join_strings(i8** %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca [3 x i8]
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32*
%14 = alloca i8
store i8** %0, i8*** %4
store i32 %1, i32* %5
%15 = load i32, i32* %5
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %2
store i8* null, i8** %3
br label %155
18: ; preds = %2
%19 = load i8**, i8*** %4
%20 = getelementptr inbounds i8*, i8** %19, i64 0
%21 = load i8*, i8** %20
%22 = call i32 @strlen(i8* %21)
%23 = sub nsw i32 %22, 6
%24 = sdiv i32 %23, 2
store i32 %24, i32* %6
%25 = load i32, i32* %6
%26 = add nsw i32 %25, 1
%27 = call i8* @malloc(i32 %26)
store i8* %27, i8** %7
%28 = getelementptr inbounds [3 x i8], [3 x i8]* %8, i64 0, i64 2
store i8 0, i8* %28
%29 = load i32, i32* %5
%30 = zext i32 %29 to i64
%31 = call i8* @llvm.stacksave()
store i8* %31, i8** %9
%32 = alloca i32, i64 %30
store i64 %30, i64* %10
store i32 0, i32* %11
br label %33
33: ; preds = %59, %18
%34 = load i32, i32* %11
%35 = load i32, i32* %5
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %62
37: ; preds = %33
%38 = load i8**, i8*** %4
%39 = load i32, i32* %11
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8*, i8** %38, i64 %40
%42 = load i8*, i8** %41
%43 = getelementptr inbounds i8, i8* %42, i64 0
%44 = load i8, i8* %43
%45 = getelementptr inbounds [3 x i8], [3 x i8]* %8, i64 0, i64 0
store i8 %44, i8* %45
%46 = load i8**, i8*** %4
%47 = load i32, i32* %11
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8*, i8** %46, i64 %48
%50 = load i8*, i8** %49
%51 = getelementptr inbounds i8, i8* %50, i64 1
%52 = load i8, i8* %51
%53 = getelementptr inbounds [3 x i8], [3 x i8]* %8, i64 0, i64 1
store i8 %52, i8* %53
%54 = getelementptr inbounds [3 x i8], [3 x i8]* %8, i64 0, i64 0
%55 = call i32 @strtol(i8* %54, i32* null, i32 16)
%56 = load i32, i32* %11
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, i32* %32, i64 %57
store i32 %55, i32* %58
br label %59
59: ; preds = %37
%60 = load i32, i32* %11
%61 = add nsw i32 %60, 1
store i32 %61, i32* %11
br label %33
62: ; preds = %33
store i32 0, i32* %11
br label %63
63: ; preds = %149, %62
%64 = load i32, i32* %11
%65 = load i32, i32* %6
%66 = icmp slt i32 %64, %65
br i1 %66, label %67, label %152
67: ; preds = %63
%68 = load i32, i32* %5
%69 = sext i32 %68 to i64
%70 = mul i64 4, %69
%71 = mul i64 %70, 2
%72 = trunc i64 %71 to i32
%73 = call i8* @malloc(i32 %72)
%74 = bitcast i8* %73 to i32*
store i32* %74, i32** %13
store i32 0, i32* %12
br label %75
75: ; preds = %134, %67
%76 = load i32, i32* %12
%77 = load i32, i32* %5
%78 = icmp slt i32 %76, %77
br i1 %78, label %79, label %137
79: ; preds = %75
%80 = load i32, i32* %12
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i32, i32* %32, i64 %81
%83 = load i32, i32* %82
%84 = load i32*, i32** %13
%85 = load i32, i32* %12
%86 = mul nsw i32 %85, 2
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, i32* %84, i64 %87
store i32 %83, i32* %88
%89 = load i8**, i8*** %4
%90 = load i32, i32* %12
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8*, i8** %89, i64 %91
%93 = load i8*, i8** %92
%94 = load i32, i32* %11
%95 = mul nsw i32 %94, 2
%96 = add nsw i32 6, %95
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i8, i8* %93, i64 %97
%99 = load i8, i8* %98
%100 = getelementptr inbounds [3 x i8], [3 x i8]* %8, i64 0, i64 0
store i8 %99, i8* %100
%101 = load i8**, i8*** %4
%102 = load i32, i32* %12
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8*, i8** %101, i64 %103
%105 = load i8*, i8** %104
%106 = load i32, i32* %11
%107 = mul nsw i32 %106, 2
%108 = add nsw i32 6, %107
%109 = add nsw i32 %108, 1
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, i8* %105, i64 %110
%112 = load i8, i8* %111
%113 = getelementptr inbounds [3 x i8], [3 x i8]* %8, i64 0, i64 1
store i8 %112, i8* %113
%114 = getelementptr inbounds [3 x i8], [3 x i8]* %8, i64 0, i64 0
%115 = call i64 @memcmp(i8* %114, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%116 = icmp eq i64 %115, 0
br i1 %116, label %117, label %124
117: ; preds = %79
%118 = load i32*, i32** %13
%119 = load i32, i32* %12
%120 = mul nsw i32 %119, 2
%121 = add nsw i32 %120, 1
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i32, i32* %118, i64 %122
store i32 256, i32* %123
br label %133
124: ; preds = %79
%125 = getelementptr inbounds [3 x i8], [3 x i8]* %8, i64 0, i64 0
%126 = call i32 @strtol(i8* %125, i32* null, i32 16)
%127 = load i32*, i32** %13
%128 = load i32, i32* %12
%129 = mul nsw i32 %128, 2
%130 = add nsw i32 %129, 1
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds i32, i32* %127, i64 %131
store i32 %126, i32* %132
br label %133
133: ; preds = %124, %117
br label %134
134: ; preds = %133
%135 = load i32, i32* %12
%136 = add nsw i32 %135, 1
store i32 %136, i32* %12
br label %75
137: ; preds = %75
%138 = load i32*, i32** %13
%139 = load i32, i32* %5
%140 = call signext i8 @join_shares(i32* %138, i32 %139)
store i8 %140, i8* %14
%141 = load i32*, i32** %13
%142 = call i32 @free(i32* %141)
%143 = load i8*, i8** %7
%144 = load i32, i32* %11
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i8, i8* %143, i64 %145
%147 = load i8, i8* %14
%148 = call i32 @sprintf(i8* %146, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext %147)
br label %149
149: ; preds = %137
%150 = load i32, i32* %11
%151 = add nsw i32 %150, 1
store i32 %151, i32* %11
br label %63
152: ; preds = %63
%153 = load i8*, i8** %7
store i8* %153, i8** %3
%154 = load i8*, i8** %9
br label %155
155: ; preds = %152, %17
%156 = load i8*, i8** %3
ret i8* %156
}

LLVM IR (-O2):
@.str = [3 x i8] c"G0\00"
define noalias i8* @join_strings(i8** nocapture %0, i32 %1) {
%3 = alloca [3 x i8]
%4 = icmp eq i32 %1, 0
br i1 %4, label %78, label %5
5: ; preds = %2
%6 = load i8*, i8** %0
%7 = tail call i32 @strlen(i8* %6)
%8 = add nsw i32 %7, -6
%9 = sdiv i32 %8, 2
%10 = add nsw i32 %9, 1
%11 = tail call i8* @malloc(i32 %10)
%12 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 0
%13 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 2
store i8 0, i8* %13
%14 = zext i32 %1 to i64
%15 = tail call i8* @llvm.stacksave()
%16 = alloca i32, i64 %14
%17 = icmp sgt i32 %1, 0
br i1 %17, label %18, label %20
18: ; preds = %5
%19 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 1
br label %27
20: ; preds = %27, %5
%21 = icmp sgt i32 %7, 7
br i1 %21, label %22, label %77
22: ; preds = %20
%23 = shl i32 %1, 3
%24 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 1
%25 = call i32 @llvm.smax.i32(i32 %9, i32 1)
%26 = zext i32 %25 to i64
br label %38
27: ; preds = %18, %27
%28 = phi i64 [ 0, %18 ], [ %36, %27 ]
%29 = getelementptr inbounds i8*, i8** %0, i64 %28
%30 = load i8*, i8** %29
%31 = load i8, i8* %30
store i8 %31, i8* %12
%32 = getelementptr inbounds i8, i8* %30, i64 1
%33 = load i8, i8* %32
store i8 %33, i8* %19
%34 = call i32 @strtol(i8* nocapture %12, i32* null, i32 16)
%35 = getelementptr inbounds i32, i32* %16, i64 %28
store i32 %34, i32* %35
%36 = add nuw nsw i64 %28, 1
%37 = icmp eq i64 %36, %14
br i1 %37, label %20, label %27
38: ; preds = %22, %70
%39 = phi i64 [ 0, %22 ], [ %75, %70 ]
%40 = call i8* @malloc(i32 %23)
%41 = bitcast i8* %40 to i32*
br i1 %17, label %42, label %70
42: ; preds = %38
%43 = shl nuw nsw i64 %39, 1
%44 = add nuw i64 %43, 6
%45 = and i64 %44, 4294967294
%46 = add nuw i64 %43, 7
%47 = and i64 %46, 4294967295
br label %48
48: ; preds = %42, %64
%49 = phi i64 [ 0, %42 ], [ %68, %64 ]
%50 = getelementptr inbounds i32, i32* %16, i64 %49
%51 = load i32, i32* %50
%52 = shl nuw nsw i64 %49, 1
%53 = getelementptr inbounds i32, i32* %41, i64 %52
store i32 %51, i32* %53
%54 = getelementptr inbounds i8*, i8** %0, i64 %49
%55 = load i8*, i8** %54
%56 = getelementptr inbounds i8, i8* %55, i64 %45
%57 = load i8, i8* %56
store i8 %57, i8* %12
%58 = getelementptr inbounds i8, i8* %55, i64 %47
%59 = load i8, i8* %58
store i8 %59, i8* %24
%60 = call i64 @memcmp(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%61 = icmp eq i64 %60, 0
br i1 %61, label %64, label %62
62: ; preds = %48
%63 = call i32 @strtol(i8* nocapture %12, i32* null, i32 16)
br label %64
64: ; preds = %48, %62
%65 = phi i32 [ %63, %62 ], [ 256, %48 ]
%66 = or i64 %52, 1
%67 = getelementptr inbounds i32, i32* %41, i64 %66
store i32 %65, i32* %67
%68 = add nuw nsw i64 %49, 1
%69 = icmp eq i64 %68, %14
br i1 %69, label %70, label %48
70: ; preds = %64, %38
%71 = call signext i8 @join_shares(i32* %41, i32 %1)
%72 = call i32 @free(i32* %41)
%73 = getelementptr inbounds i8, i8* %11, i64 %39
store i8 %71, i8* %73
%74 = getelementptr i8, i8* %73, i64 1
store i8 0, i8* %74
%75 = add nuw nsw i64 %39, 1
%76 = icmp eq i64 %75, %26
br i1 %76, label %77, label %38
77: ; preds = %70, %20
br label %78
78: ; preds = %2, %77
%79 = phi i8* [ %11, %77 ], [ null, %2 ]
ret i8* %79
}