char *unmerge(char *s) {
  static char t[128];
  char *d = t;
  int i;
  for (; *s; *s++)
    if (*s & 0200)
      for (i = 210 - (unsigned char)*s; i; i--)
        *d++ = ' ';
    else
      *d++ = *s;
  *d = '\0';
  return t;
}


x86 assembly (clang, -O0):
<unmerge>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
lea    0x2f21(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     11a2 <unmerge+0xa2>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     1175 <unmerge+0x75>
mov    -0x8(%rbp),%rax
movzbl (%rax),%ecx
mov    $0xd2,%eax
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1170 <unmerge+0x70>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movb   $0x20,(%rax)
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
jmp    1146 <unmerge+0x46>
jmp    118c <unmerge+0x8c>
mov    -0x8(%rbp),%rax
mov    (%rax),%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
jmp    1191 <unmerge+0x91>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1113 <unmerge+0x13>
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
lea    0x2e80(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<unmerge>:
push   %r15
push   %r14
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     1170 <unmerge+0x60>
mov    %rdi,%rbx
add    $0x1,%rbx
lea    0x2f17(%rip),%r14
jmp    1142 <unmerge+0x32>
nopl   0x0(%rax,%rax,1)
mov    %al,(%r14)
add    $0x1,%r14
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
je     1177 <unmerge+0x67>
test   %al,%al
jns    1130 <unmerge+0x20>
cmp    $0xd2,%al
je     1137 <unmerge+0x27>
movzbl %al,%eax
mov    $0xd1,%r15d
sub    %eax,%r15d
lea    0x1(%r15),%rdx
mov    %r14,%rdi
mov    $0x20,%esi
call   1030 <memset@plt>
add    %r15,%r14
add    $0x1,%r14
jmp    1137 <unmerge+0x27>
lea    0x2ec9(%rip),%r14
movb   $0x0,(%r14)
lea    0x2ebe(%rip),%rax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@unmerge.t = internal global [128 x i8] zeroinitializer
define i8* @unmerge(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %2
store i8* getelementptr inbounds ([128 x i8], [128 x i8]* @unmerge.t, i64 0, i64 0), i8** %3
br label %5
5: ; preds = %36, %1
%6 = load i8*, i8** %2
%7 = load i8, i8* %6
%8 = icmp ne i8 %7, 0
br i1 %8, label %9, label %40
9: ; preds = %5
%10 = load i8*, i8** %2
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = and i32 %12, 128
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %30
15: ; preds = %9
%16 = load i8*, i8** %2
%17 = load i8, i8* %16
%18 = zext i8 %17 to i32
%19 = sub nsw i32 210, %18
store i32 %19, i32* %4
br label %20
20: ; preds = %26, %15
%21 = load i32, i32* %4
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %29
23: ; preds = %20
%24 = load i8*, i8** %3
%25 = getelementptr inbounds i8, i8* %24, i32 1
store i8* %25, i8** %3
store i8 32, i8* %24
br label %26
26: ; preds = %23
%27 = load i32, i32* %4
%28 = add nsw i32 %27, -1
store i32 %28, i32* %4
br label %20
29: ; preds = %20
br label %35
30: ; preds = %9
%31 = load i8*, i8** %2
%32 = load i8, i8* %31
%33 = load i8*, i8** %3
%34 = getelementptr inbounds i8, i8* %33, i32 1
store i8* %34, i8** %3
store i8 %32, i8* %33
br label %35
35: ; preds = %30, %29
br label %36
36: ; preds = %35
%37 = load i8*, i8** %2
%38 = getelementptr inbounds i8, i8* %37, i32 1
store i8* %38, i8** %2
%39 = load i8, i8* %37
br label %5
40: ; preds = %5
%41 = load i8*, i8** %3
store i8 0, i8* %41
ret i8* getelementptr inbounds ([128 x i8], [128 x i8]* @unmerge.t, i64 0, i64 0)
}

LLVM IR (-O2):
@unmerge.t = internal global [128 x i8] zeroinitializer
define i8* @unmerge(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %25, label %4
4: ; preds = %1, %20
%5 = phi i8 [ %23, %20 ], [ %2, %1 ]
%6 = phi i8* [ %21, %20 ], [ getelementptr inbounds ([128 x i8], [128 x i8]* @unmerge.t, i64 0, i64 0), %1 ]
%7 = phi i8* [ %22, %20 ], [ %0, %1 ]
%8 = icmp sgt i8 %5, -1
br i1 %8, label %18, label %9
9: ; preds = %4
%10 = icmp eq i8 %5, -46
br i1 %10, label %20, label %11
11: ; preds = %9
%12 = zext i8 %5 to i64
%13 = sub nsw i64 209, %12
%14 = and i64 %13, 4294967295
%15 = add nuw nsw i64 %14, 1
%16 = getelementptr i8, i8* %6, i64 1
%17 = getelementptr i8, i8* %16, i64 %14
br label %20
18: ; preds = %4
%19 = getelementptr inbounds i8, i8* %6, i64 1
store i8 %5, i8* %6
br label %20
20: ; preds = %11, %9, %18
%21 = phi i8* [ %19, %18 ], [ %6, %9 ], [ %17, %11 ]
%22 = getelementptr inbounds i8, i8* %7, i64 1
%23 = load i8, i8* %22
%24 = icmp eq i8 %23, 0
br i1 %24, label %25, label %4
25: ; preds = %20, %1
%26 = phi i8* [ getelementptr inbounds ([128 x i8], [128 x i8]* @unmerge.t, i64 0, i64 0), %1 ], [ %21, %20 ]
store i8 0, i8* %26
ret i8* getelementptr inbounds ([128 x i8], [128 x i8]* @unmerge.t, i64 0, i64 0)
}