#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 */
char *strstr(char *, char *);
void ParseSpecialContentToSpace(char *pa_pStr) {
  char *res;
  while (1) {
    res = strstr(pa_pStr, "=C2=A0");
    if (res) {
      res[0] = ' ';
      res[1] = ' ';
      res[2] = ' ';
      res[3] = ' ';
      res[4] = ' ';
      res[5] = ' ';
    } else {
      break;
    }
  }
  while (1) {
    res = strstr(pa_pStr, "\r");
    if (res) {
      res[0] = ' ';
    } else {
      break;
    }
  }
  while (1) {
    res = strstr(pa_pStr, "\n");
    if (res) {
      res[0] = ' ';
    } else {
      break;
    }
  }
}


x86 assembly (clang, -O0):
<ParseSpecialContentToSpace>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strstr@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     116f <ParseSpecialContentToSpace+0x5f>
mov    -0x10(%rbp),%rax
movb   $0x20,(%rax)
mov    -0x10(%rbp),%rax
movb   $0x20,0x1(%rax)
mov    -0x10(%rbp),%rax
movb   $0x20,0x2(%rax)
mov    -0x10(%rbp),%rax
movb   $0x20,0x3(%rax)
mov    -0x10(%rbp),%rax
movb   $0x20,0x4(%rax)
mov    -0x10(%rbp),%rax
movb   $0x20,0x5(%rax)
jmp    1174 <ParseSpecialContentToSpace+0x64>
jmp    1179 <ParseSpecialContentToSpace+0x69>
jmp    111c <ParseSpecialContentToSpace+0xc>
jmp    117e <ParseSpecialContentToSpace+0x6e>
mov    -0x8(%rbp),%rdi
lea    0xe7e(%rip),%rsi
call   1030 <strstr@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     11a9 <ParseSpecialContentToSpace+0x99>
mov    -0x10(%rbp),%rax
movb   $0x20,(%rax)
jmp    11ae <ParseSpecialContentToSpace+0x9e>
jmp    11b3 <ParseSpecialContentToSpace+0xa3>
jmp    117e <ParseSpecialContentToSpace+0x6e>
jmp    11b8 <ParseSpecialContentToSpace+0xa8>
mov    -0x8(%rbp),%rdi
lea    0xe46(%rip),%rsi
call   1030 <strstr@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     11e3 <ParseSpecialContentToSpace+0xd3>
mov    -0x10(%rbp),%rax
movb   $0x20,(%rax)
jmp    11e8 <ParseSpecialContentToSpace+0xd8>
jmp    11ed <ParseSpecialContentToSpace+0xdd>
jmp    11b8 <ParseSpecialContentToSpace+0xa8>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ParseSpecialContentToSpace>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xed2(%rip),%rsi
call   1040 <strstr@plt>
test   %rax,%rax
je     1163 <ParseSpecialContentToSpace+0x43>
lea    0xec1(%rip),%r14
nop
movw   $0x2020,0x4(%rax)
movl   $0x20202020,(%rax)
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <strstr@plt>
test   %rax,%rax
jne    1140 <ParseSpecialContentToSpace+0x20>
jmp    1163 <ParseSpecialContentToSpace+0x43>
xchg   %ax,%ax
movb   $0x20,(%rax)
mov    %rbx,%rdi
mov    $0xd,%esi
call   1030 <strchr@plt>
test   %rax,%rax
jne    1160 <ParseSpecialContentToSpace+0x40>
jmp    1183 <ParseSpecialContentToSpace+0x63>
nopw   0x0(%rax,%rax,1)
movb   $0x20,(%rax)
mov    %rbx,%rdi
mov    $0xa,%esi
call   1030 <strchr@plt>
test   %rax,%rax
jne    1180 <ParseSpecialContentToSpace+0x60>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [7 x i8] c"=C2=A0\00"
@.str.1 = [2 x i8] c"\0D\00"
@.str.2 = [2 x i8] c"\0A\00"
define void @ParseSpecialContentToSpace(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
br label %4
4: ; preds = %1, %23
%5 = load i8*, i8** %2
%6 = call i8* @strstr(i8* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
store i8* %6, i8** %3
%7 = load i8*, i8** %3
%8 = icmp ne i8* %7, null
br i1 %8, label %9, label %22
9: ; preds = %4
%10 = load i8*, i8** %3
%11 = getelementptr inbounds i8, i8* %10, i64 0
store i8 32, i8* %11
%12 = load i8*, i8** %3
%13 = getelementptr inbounds i8, i8* %12, i64 1
store i8 32, i8* %13
%14 = load i8*, i8** %3
%15 = getelementptr inbounds i8, i8* %14, i64 2
store i8 32, i8* %15
%16 = load i8*, i8** %3
%17 = getelementptr inbounds i8, i8* %16, i64 3
store i8 32, i8* %17
%18 = load i8*, i8** %3
%19 = getelementptr inbounds i8, i8* %18, i64 4
store i8 32, i8* %19
%20 = load i8*, i8** %3
%21 = getelementptr inbounds i8, i8* %20, i64 5
store i8 32, i8* %21
br label %23
22: ; preds = %4
br label %24
23: ; preds = %9
br label %4
24: ; preds = %22
br label %25
25: ; preds = %24, %34
%26 = load i8*, i8** %2
%27 = call i8* @strstr(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8* %27, i8** %3
%28 = load i8*, i8** %3
%29 = icmp ne i8* %28, null
br i1 %29, label %30, label %33
30: ; preds = %25
%31 = load i8*, i8** %3
%32 = getelementptr inbounds i8, i8* %31, i64 0
store i8 32, i8* %32
br label %34
33: ; preds = %25
br label %35
34: ; preds = %30
br label %25
35: ; preds = %33
br label %36
36: ; preds = %35, %45
%37 = load i8*, i8** %2
%38 = call i8* @strstr(i8* %37, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i8* %38, i8** %3
%39 = load i8*, i8** %3
%40 = icmp ne i8* %39, null
br i1 %40, label %41, label %44
41: ; preds = %36
%42 = load i8*, i8** %3
%43 = getelementptr inbounds i8, i8* %42, i64 0
store i8 32, i8* %43
br label %45
44: ; preds = %36
br label %46
45: ; preds = %41
br label %36
46: ; preds = %44
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"=C2=A0\00"
define void @ParseSpecialContentToSpace(i8* %0) {
%2 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %7
4: ; preds = %7, %1
%5 = tail call i8* @strchr(i8* dereferenceable(1) %0, i32 13)
%6 = icmp eq i8* %5, null
br i1 %6, label %11, label %14
7: ; preds = %1, %7
%8 = phi i8* [ %9, %7 ], [ %2, %1 ]
%9 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i8* %9, null
br i1 %10, label %4, label %7
11: ; preds = %14, %4
%12 = tail call i8* @strchr(i8* dereferenceable(1) %0, i32 10)
%13 = icmp eq i8* %12, null
br i1 %13, label %22, label %18
14: ; preds = %4, %14
%15 = phi i8* [ %16, %14 ], [ %5, %4 ]
store i8 32, i8* %15
%16 = tail call i8* @strchr(i8* dereferenceable(1) %0, i32 13)
%17 = icmp eq i8* %16, null
br i1 %17, label %11, label %14
18: ; preds = %11, %18
%19 = phi i8* [ %20, %18 ], [ %12, %11 ]
store i8 32, i8* %19
%20 = tail call i8* @strchr(i8* dereferenceable(1) %0, i32 10)
%21 = icmp eq i8* %20, null
br i1 %21, label %22, label %18
22: ; preds = %18, %11
ret void
}