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


x86 assembly (clang, -O0):
<readConfig_FetchKey>:
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     1160 <readConfig_FetchKey+0x50>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
mov    (%rax),%al
mov    -0x18(%rbp),%rcx
mov    %al,(%rcx)
movsbl %al,%eax
cmp    $0x3d,%eax
setne  %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
test   $0x1,%al
jne    1170 <readConfig_FetchKey+0x60>
jmp    1181 <readConfig_FetchKey+0x71>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1128 <readConfig_FetchKey+0x18>
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_FetchKey>:
mov    (%rdi),%cl
mov    %rsi,%rax
test   %cl,%cl
je     1136 <readConfig_FetchKey+0x26>
add    $0x1,%rdi
mov    %rsi,%rax
mov    %cl,(%rax)
cmp    $0x3d,%cl
je     1136 <readConfig_FetchKey+0x26>
add    $0x1,%rax
movzbl (%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1120 <readConfig_FetchKey+0x10>
movb   $0x0,(%rax)
mov    %rsi,%rdi
jmp    1030 <strStrip@plt>

LLVM IR (-O0):
define void @readConfig_FetchKey(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 = %21, %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 %19
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 = load i8*, i8** %5
store i8 %15, i8* %16
%17 = sext i8 %15 to i32
%18 = icmp ne i32 %17, 61
br label %19
19: ; preds = %12, %7
%20 = phi i1 [ false, %7 ], [ %18, %12 ]
br i1 %20, label %21, label %24
21: ; preds = %19
%22 = load i8*, i8** %5
%23 = getelementptr inbounds i8, i8* %22, i32 1
store i8* %23, i8** %5
br label %7
24: ; preds = %19
%25 = load i8*, i8** %5
store i8 0, i8* %25
%26 = load i8*, i8** %4
%27 = load i8*, i8** %4
%28 = call i32 @strStrip(i8* %26, i8* %27)
ret void
}

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