#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 /*<<< orphan*/ name;

/* Variables and functions */
int /*<<< orphan*/ ClientName(int, char *, int);
int /*<<< orphan*/ memmove(char *, char *, scalar_t__);
int /*<<< orphan*/ strcpy(char *, int /*<<< orphan*/);
scalar_t__ strlen(char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
char *strstr(char *, char *);
char *EasyClientName(int client, char *buf, int size) {
  int i;
  char *str1, *str2, *ptr, c;
  char name[128];
  strcpy(name, ClientName(client, name, sizeof(name)));
  for (i = 0; name[i]; i++)
    name[i] &= 127;
  for (ptr = strstr(name, " "); ptr; ptr = strstr(name, " ")) {
    memmove(ptr, ptr + 1, strlen(ptr + 1) + 1);
  }
  str1 = strstr(name, "[");
  str2 = strstr(name, "]");
  if (str1 && str2) {
    if (str2 > str1) {
      memmove(str1, str2 + 1, strlen(str2 + 1) + 1);
    } else {
      memmove(str2, str1 + 1, strlen(str1 + 1) + 1);
    }
  }
  if ((name[0] == 'm' || name[0] == 'M') &&
      (name[1] == 'r' || name[1] == 'R')) {
    memmove(name, name + 2, strlen(name + 2) + 1);
  }
  ptr = name;
  while (*ptr) {
    c = *ptr;
    if ((c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || c == '_') {
      ptr++;
    } else if (c >= 'A' && c <= 'Z') {
      *ptr += 'a' - 'A';
      ptr++;
    } else {
      memmove(ptr, ptr + 1, strlen(ptr + 1) + 1);
    }
  }
  strncpy(buf, name, size - 1);
  buf[size - 1] = '\0';
  return buf;
}


x86 assembly (clang, -O0):
<EasyClientName>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
lea    -0xc0(%rbp),%rax
mov    %rax,-0xc8(%rbp)
mov    -0x4(%rbp),%edi
lea    -0xc0(%rbp),%rsi
mov    $0x80,%edx
call   1070 <ClientName@plt>
mov    -0xc8(%rbp),%rdi
mov    %eax,%esi
call   1040 <strcpy@plt>
movl   $0x0,-0x18(%rbp)
movslq -0x18(%rbp),%rax
cmpb   $0x0,-0xc0(%rbp,%rax,1)
je     11e2 <EasyClientName+0x82>
movslq -0x18(%rbp),%rax
movsbl -0xc0(%rbp,%rax,1),%ecx
ff
and    $0x7f,%ecx
mov    %cl,-0xc0(%rbp,%rax,1)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11ac <EasyClientName+0x4c>
lea    -0xc0(%rbp),%rdi
lea    0xe10(%rip),%rsi
call   1080 <strstr@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1261 <EasyClientName+0x101>
mov    -0x30(%rbp),%rax
mov    %rax,-0xd8(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xd0(%rbp)
mov    -0x30(%rbp),%rdi
add    $0x1,%rdi
call   1050 <strlen@plt>
mov    -0xd8(%rbp),%rdi
mov    -0xd0(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1060 <memmove@plt>
lea    -0xc0(%rbp),%rdi
lea    0xdad(%rip),%rsi
call   1080 <strstr@plt>
mov    %rax,-0x30(%rbp)
jmp    11f9 <EasyClientName+0x99>
lea    -0xc0(%rbp),%rdi
lea    0xd93(%rip),%rsi
call   1080 <strstr@plt>
mov    %rax,-0x20(%rbp)
lea    -0xc0(%rbp),%rdi
lea    0xd7e(%rip),%rsi
call   1080 <strstr@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     133f <EasyClientName+0x1df>
cmpq   $0x0,-0x28(%rbp)
je     133f <EasyClientName+0x1df>
mov    -0x28(%rbp),%rax
cmp    -0x20(%rbp),%rax
jbe    12f9 <EasyClientName+0x199>
mov    -0x20(%rbp),%rax
mov    %rax,-0xe8(%rbp)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xe0(%rbp)
mov    -0x28(%rbp),%rdi
add    $0x1,%rdi
call   1050 <strlen@plt>
mov    -0xe8(%rbp),%rdi
mov    -0xe0(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1060 <memmove@plt>
jmp    133a <EasyClientName+0x1da>
mov    -0x28(%rbp),%rax
mov    %rax,-0xf8(%rbp)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xf0(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x1,%rdi
call   1050 <strlen@plt>
mov    -0xf8(%rbp),%rdi
mov    -0xf0(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1060 <memmove@plt>
jmp    133f <EasyClientName+0x1df>
movsbl -0xc0(%rbp),%eax
cmp    $0x6d,%eax
je     135f <EasyClientName+0x1ff>
movsbl -0xc0(%rbp),%eax
cmp    $0x4d,%eax
jne    13c9 <EasyClientName+0x269>
movsbl -0xbf(%rbp),%eax
cmp    $0x72,%eax
je     137f <EasyClientName+0x21f>
movsbl -0xbf(%rbp),%eax
cmp    $0x52,%eax
jne    13c9 <EasyClientName+0x269>
lea    -0xc0(%rbp),%rax
mov    %rax,-0x108(%rbp)
lea    -0xc0(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x100(%rbp)
lea    -0xc0(%rbp),%rdi
add    $0x2,%rdi
call   1050 <strlen@plt>
mov    -0x108(%rbp),%rdi
mov    -0x100(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1060 <memmove@plt>
lea    -0xc0(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
cmpb   $0x0,(%rax)
je     14be <EasyClientName+0x35e>
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movsbl -0x31(%rbp),%eax
cmp    $0x61,%eax
jl     1404 <EasyClientName+0x2a4>
movsbl -0x31(%rbp),%eax
cmp    $0x7a,%eax
jle    142b <EasyClientName+0x2cb>
movsbl -0x31(%rbp),%eax
cmp    $0x30,%eax
jl     141e <EasyClientName+0x2be>
movsbl -0x31(%rbp),%eax
cmp    $0x39,%eax
jle    142b <EasyClientName+0x2cb>
movsbl -0x31(%rbp),%eax
cmp    $0x5f,%eax
jne    143c <EasyClientName+0x2dc>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    14b9 <EasyClientName+0x359>
movsbl -0x31(%rbp),%eax
cmp    $0x41,%eax
jl     1473 <EasyClientName+0x313>
movsbl -0x31(%rbp),%eax
cmp    $0x5a,%eax
jg     1473 <EasyClientName+0x313>
mov    -0x30(%rbp),%rax
movsbl (%rax),%ecx
add    $0x20,%ecx
mov    %cl,(%rax)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    14b4 <EasyClientName+0x354>
mov    -0x30(%rbp),%rax
mov    %rax,-0x118(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x110(%rbp)
mov    -0x30(%rbp),%rdi
add    $0x1,%rdi
call   1050 <strlen@plt>
mov    -0x118(%rbp),%rdi
mov    -0x110(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1060 <memmove@plt>
jmp    14b9 <EasyClientName+0x359>
jmp    13d4 <EasyClientName+0x274>
mov    -0x10(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
mov    -0x14(%rbp),%edx
sub    $0x1,%edx
call   1030 <strncpy@plt>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<EasyClientName>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x80,%rsp
mov    %edx,%r14d
mov    %rsi,%r15
mov    %rsp,%rbx
mov    %rbx,%rsi
mov    $0x80,%edx
call   1080 <ClientName@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <strcpy@plt>
mov    (%rsp),%al
test   %al,%al
je     11b0 <EasyClientName+0x50>
lea    0x1(%rsp),%rcx
nopl   0x0(%rax,%rax,1)
and    $0x7f,%al
mov    %al,-0x1(%rcx)
movzbl (%rcx),%eax
add    $0x1,%rcx
test   %al,%al
jne    11a0 <EasyClientName+0x40>
mov    %rsp,%rdi
mov    $0x20,%esi
call   1060 <strchr@plt>
test   %rax,%rax
je     1200 <EasyClientName+0xa0>
mov    %rax,%rbp
mov    %rsp,%r12
nopl   0x0(%rax,%rax,1)
lea    0x1(%rbp),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1070 <memmove@plt>
mov    %r12,%rdi
mov    $0x20,%esi
call   1060 <strchr@plt>
mov    %rax,%rbp
test   %rax,%rax
jne    11d0 <EasyClientName+0x70>
mov    %rsp,%rbp
mov    %rbp,%rdi
mov    $0x5b,%esi
call   1060 <strchr@plt>
mov    %rax,%r12
mov    %rbp,%rdi
mov    $0x5d,%esi
call   1060 <strchr@plt>
test   %r12,%r12
je     1265 <EasyClientName+0x105>
mov    %rax,%rbx
test   %rax,%rax
je     1265 <EasyClientName+0x105>
cmp    %r12,%rbx
jbe    124a <EasyClientName+0xea>
add    $0x1,%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %r12,%rdi
mov    %rbx,%rsi
jmp    1260 <EasyClientName+0x100>
add    $0x1,%r12
mov    %r12,%rdi
call   1050 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %rbx,%rdi
mov    %r12,%rsi
call   1070 <memmove@plt>
mov    (%rsp),%al
mov    %eax,%ecx
and    $0xdf,%cl
cmp    $0x4d,%cl
jne    129d <EasyClientName+0x13d>
mov    0x1(%rsp),%cl
and    $0xdf,%cl
cmp    $0x52,%cl
jne    12a1 <EasyClientName+0x141>
lea    0x2(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %rsp,%rdi
mov    %rbx,%rsi
call   1070 <memmove@plt>
mov    (%rsp),%al
test   %al,%al
je     12eb <EasyClientName+0x18b>
lea    -0x61(%rax),%ecx
cmp    $0x1a,%cl
jb     12c2 <EasyClientName+0x162>
cmp    $0x5f,%al
je     12c2 <EasyClientName+0x162>
lea    -0x30(%rax),%ecx
cmp    $0x9,%cl
jbe    12c2 <EasyClientName+0x162>
lea    -0x41(%rax),%ecx
cmp    $0x19,%cl
ja     12cb <EasyClientName+0x16b>
add    $0x20,%al
mov    %al,0x0(%rbp)
add    $0x1,%rbp
mov    0x0(%rbp),%al
jmp    129d <EasyClientName+0x13d>
lea    0x1(%rbp),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1070 <memmove@plt>
mov    0x0(%rbp),%al
jmp    129d <EasyClientName+0x13d>
movslq %r14d,%rbx
lea    -0x1(%rbx),%rdx
mov    %rsp,%rsi
mov    %r15,%rdi
call   1030 <strncpy@plt>
movb   $0x0,-0x1(%r15,%rbx,1)
mov    %r15,%rax
add    $0x80,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define i8* @EasyClientName(i32 %0, i8* returned %1, i32 %2) {
%4 = alloca [128 x i8]
%5 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%6 = call i32 @ClientName(i32 %0, i8* %5, i32 128)
%7 = call i32 @strcpy(i8* %5, i32 %6)
%8 = load i8, i8* %5
%9 = icmp eq i8 %8, 0
br i1 %9, label %19, label %10
10: ; preds = %3, %10
%11 = phi i64 [ %15, %10 ], [ 0, %3 ]
%12 = phi i8 [ %17, %10 ], [ %8, %3 ]
%13 = phi i8* [ %16, %10 ], [ %5, %3 ]
%14 = and i8 %12, 127
store i8 %14, i8* %13
%15 = add nuw nsw i64 %11, 1
%16 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 %15
%17 = load i8, i8* %16
%18 = icmp eq i8 %17, 0
br i1 %18, label %19, label %10
19: ; preds = %10, %3
%20 = call i8* @strchr(i8* %5, i32 32)
%21 = icmp eq i8* %20, null
br i1 %21, label %30, label %22
22: ; preds = %19, %22
%23 = phi i8* [ %28, %22 ], [ %20, %19 ]
%24 = getelementptr inbounds i8, i8* %23, i64 1
%25 = call i64 @strlen(i8* %24)
%26 = add nsw i64 %25, 1
%27 = call i32 @memmove(i8* %23, i8* %24, i64 %26)
%28 = call i8* @strchr(i8* %5, i32 32)
%29 = icmp eq i8* %28, null
br i1 %29, label %30, label %22
30: ; preds = %22, %19
%31 = call i8* @strchr(i8* %5, i32 91)
%32 = call i8* @strchr(i8* %5, i32 93)
%33 = icmp ne i8* %31, null
%34 = icmp ne i8* %32, null
%35 = select i1 %33, i1 %34, i1 false
br i1 %35, label %36, label %48
36: ; preds = %30
%37 = icmp ugt i8* %32, %31
br i1 %37, label %38, label %43
38: ; preds = %36
%39 = getelementptr inbounds i8, i8* %32, i64 1
%40 = call i64 @strlen(i8* %39)
%41 = add nsw i64 %40, 1
%42 = call i32 @memmove(i8* %31, i8* %39, i64 %41)
br label %48
43: ; preds = %36
%44 = getelementptr inbounds i8, i8* %31, i64 1
%45 = call i64 @strlen(i8* %44)
%46 = add nsw i64 %45, 1
%47 = call i32 @memmove(i8* %32, i8* %44, i64 %46)
br label %48
48: ; preds = %38, %43, %30
%49 = load i8, i8* %5
%50 = and i8 %49, -33
%51 = icmp eq i8 %50, 77
br i1 %51, label %52, label %63
52: ; preds = %48
%53 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 1
%54 = load i8, i8* %53
%55 = and i8 %54, -33
%56 = icmp eq i8 %55, 82
br i1 %56, label %57, label %66
57: ; preds = %52
%58 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 2
%59 = call i64 @strlen(i8* %58)
%60 = add nsw i64 %59, 1
%61 = call i32 @memmove(i8* %5, i8* %58, i64 %60)
%62 = load i8, i8* %5
br label %63
63: ; preds = %48, %57
%64 = phi i8 [ %49, %48 ], [ %62, %57 ]
%65 = icmp eq i8 %64, 0
br i1 %65, label %95, label %66
66: ; preds = %52, %63
%67 = phi i8 [ %49, %52 ], [ %64, %63 ]
br label %68
68: ; preds = %66, %91
%69 = phi i8 [ %93, %91 ], [ %67, %66 ]
%70 = phi i8* [ %92, %91 ], [ %5, %66 ]
%71 = add i8 %69, -97
%72 = icmp ult i8 %71, 26
br i1 %72, label %78, label %73
73: ; preds = %68
%74 = add i8 %69, -48
%75 = icmp ult i8 %74, 10
%76 = icmp eq i8 %69, 95
%77 = or i1 %76, %75
br i1 %77, label %78, label %80
78: ; preds = %73, %68
%79 = getelementptr inbounds i8, i8* %70, i64 1
br label %91
80: ; preds = %73
%81 = add i8 %69, -65
%82 = icmp ult i8 %81, 26
br i1 %82, label %83, label %86
83: ; preds = %80
%84 = add nuw nsw i8 %69, 32
store i8 %84, i8* %70
%85 = getelementptr inbounds i8, i8* %70, i64 1
br label %91
86: ; preds = %80
%87 = getelementptr inbounds i8, i8* %70, i64 1
%88 = call i64 @strlen(i8* %87)
%89 = add nsw i64 %88, 1
%90 = call i32 @memmove(i8* %70, i8* %87, i64 %89)
br label %91
91: ; preds = %83, %86, %78
%92 = phi i8* [ %79, %78 ], [ %85, %83 ], [ %70, %86 ]
%93 = load i8, i8* %92
%94 = icmp eq i8 %93, 0
br i1 %94, label %95, label %68
95: ; preds = %91, %63
%96 = add nsw i32 %2, -1
%97 = call i32 @strncpy(i8* %1, i8* %5, i32 %96)
%98 = sext i32 %96 to i64
%99 = getelementptr inbounds i8, i8* %1, i64 %98
store i8 0, i8* %99
ret i8* %1
}