#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*/ strStrip(char *, char *);
void readConfig_FetchValue(char *line, char *out) {
  char *scan = out;
  while ((*line != '\0') && (*(line++) != '='))
    ;
  while (*line != '\0')
    *(scan++) = *(line++);
  *scan = '\0';
  strStrip(out, out);
  return;
}


x86 assembly (clang, -O0):
<readConfig_FetchValue>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x19(%rbp)
je     1158 <readConfig_FetchValue+0x48>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%eax
cmp    $0x3d,%eax
setne  %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
test   $0x1,%al
jne    1168 <readConfig_FetchValue+0x58>
jmp    116d <readConfig_FetchValue+0x5d>
jmp    1128 <readConfig_FetchValue+0x18>
jmp    1172 <readConfig_FetchValue+0x62>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     11a9 <readConfig_FetchValue+0x99>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
mov    (%rax),%cl
mov    -0x18(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x18(%rbp)
mov    %cl,(%rax)
jmp    1172 <readConfig_FetchValue+0x62>
mov    -0x18(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strStrip@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<readConfig_FetchValue>:
movzbl (%rdi),%eax
test   %al,%al
je     1145 <readConfig_FetchValue+0x35>
add    $0x1,%rdi
cmp    $0x3d,%al
jne    1110 <readConfig_FetchValue>
mov    (%rdi),%cl
mov    %rsi,%rax
test   %cl,%cl
je     1148 <readConfig_FetchValue+0x38>
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
mov    %cl,(%rsi,%rax,1)
movzbl 0x1(%rdi,%rax,1),%ecx
add    $0x1,%rax
test   %cl,%cl
jne    1130 <readConfig_FetchValue+0x20>
add    %rsi,%rax
jmp    1148 <readConfig_FetchValue+0x38>
mov    %rsi,%rax
movb   $0x0,(%rax)
mov    %rsi,%rdi
jmp    1030 <strStrip@plt>

LLVM IR (-O0):
define void @readConfig_FetchValue(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %4
store i8* %6, i8** %5
br label %7
7: ; preds = %20, %2
%8 = load i8*, i8** %3
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %18
12: ; preds = %7
%13 = load i8*, i8** %3
%14 = getelementptr inbounds i8, i8* %13, i32 1
store i8* %14, i8** %3
%15 = load i8, i8* %13
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 61
br label %18
18: ; preds = %12, %7
%19 = phi i1 [ false, %7 ], [ %17, %12 ]
br i1 %19, label %20, label %21
20: ; preds = %18
br label %7
21: ; preds = %18
br label %22
22: ; preds = %27, %21
%23 = load i8*, i8** %3
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %33
27: ; preds = %22
%28 = load i8*, i8** %3
%29 = getelementptr inbounds i8, i8* %28, i32 1
store i8* %29, i8** %3
%30 = load i8, i8* %28
%31 = load i8*, i8** %5
%32 = getelementptr inbounds i8, i8* %31, i32 1
store i8* %32, i8** %5
store i8 %30, i8* %31
br label %22
33: ; preds = %22
%34 = load i8*, i8** %5
store i8 0, i8* %34
%35 = load i8*, i8** %4
%36 = load i8*, i8** %4
%37 = call i32 @strStrip(i8* %35, i8* %36)
ret void
}

LLVM IR (-O2):
define void @readConfig_FetchValue(i8* nocapture %0, i8* %1) {
br label %3
3: ; preds = %7, %2
%4 = phi i8* [ %0, %2 ], [ %8, %7 ]
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
br i1 %6, label %21, label %7
7: ; preds = %3
%8 = getelementptr inbounds i8, i8* %4, i64 1
%9 = icmp eq i8 %5, 61
br i1 %9, label %10, label %3
10: ; preds = %7
%11 = load i8, i8* %8
%12 = icmp eq i8 %11, 0
br i1 %12, label %21, label %13
13: ; preds = %10, %13
%14 = phi i8 [ %19, %13 ], [ %11, %10 ]
%15 = phi i8* [ %18, %13 ], [ %1, %10 ]
%16 = phi i8* [ %17, %13 ], [ %8, %10 ]
%17 = getelementptr inbounds i8, i8* %16, i64 1
%18 = getelementptr inbounds i8, i8* %15, i64 1
store i8 %14, i8* %15
%19 = load i8, i8* %17
%20 = icmp eq i8 %19, 0
br i1 %20, label %21, label %13
21: ; preds = %3, %13, %10
%22 = phi i8* [ %1, %10 ], [ %18, %13 ], [ %1, %3 ]
store i8 0, i8* %22
%23 = tail call i32 @strStrip(i8* %1, i8* %1)
ret void
}