#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 *strchr(char *, char);
int m_conf1_parse(char *line, char **ope_r, char **val_r) {
  char *p;
  if ((p = strchr(line, '\n')) != NULL)
    *p = '\0';
  if ((p = strchr(line, '=')) != NULL) {
    *p = '\0';
    *val_r = p + 1;
    *ope_r = line;
    return 0;
  }
  return -1;
}


x86 assembly (clang, -O0):
<m_conf1_parse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0xa,%esi
call   1030 <strchr@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
je     1147 <m_conf1_parse+0x37>
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
mov    $0x3d,%esi
call   1030 <strchr@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
je     1190 <m_conf1_parse+0x80>
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x28(%rbp),%rcx
add    $0x1,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    1197 <m_conf1_parse+0x87>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<m_conf1_parse>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
mov    $0xa,%esi
call   1030 <strchr@plt>
test   %rax,%rax
je     1130 <m_conf1_parse+0x20>
movb   $0x0,(%rax)
mov    %rbx,%rdi
mov    $0x3d,%esi
call   1030 <strchr@plt>
test   %rax,%rax
je     1153 <m_conf1_parse+0x43>
movb   $0x0,(%rax)
add    $0x1,%rax
mov    %rax,(%r14)
mov    %rbx,(%r15)
xor    %eax,%eax
jmp    1158 <m_conf1_parse+0x48>
mov    $0xffffffff,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @m_conf1_parse(i8* %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca i8*
store i8* %0, i8** %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%9 = load i8*, i8** %5
%10 = call i8* @strchr(i8* %9, i8 signext 10)
store i8* %10, i8** %8
%11 = icmp ne i8* %10, null
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = load i8*, i8** %8
store i8 0, i8* %13
br label %14
14: ; preds = %12, %3
%15 = load i8*, i8** %5
%16 = call i8* @strchr(i8* %15, i8 signext 61)
store i8* %16, i8** %8
%17 = icmp ne i8* %16, null
br i1 %17, label %18, label %25
18: ; preds = %14
%19 = load i8*, i8** %8
store i8 0, i8* %19
%20 = load i8*, i8** %8
%21 = getelementptr inbounds i8, i8* %20, i64 1
%22 = load i8**, i8*** %7
store i8* %21, i8** %22
%23 = load i8*, i8** %5
%24 = load i8**, i8*** %6
store i8* %23, i8** %24
store i32 0, i32* %4
br label %26
25: ; preds = %14
store i32 -1, i32* %4
br label %26
26: ; preds = %25, %18
%27 = load i32, i32* %4
ret i32 %27
}

LLVM IR (-O2):
define i32 @m_conf1_parse(i8* %0, i8** nocapture writeonly %1, i8** nocapture writeonly %2) {
%4 = tail call i8* @strchr(i8* dereferenceable(1) %0, i8 signext 10)
%5 = icmp eq i8* %4, null
br i1 %5, label %7, label %6
6: ; preds = %3
store i8 0, i8* %4
br label %7
7: ; preds = %6, %3
%8 = tail call i8* @strchr(i8* dereferenceable(1) %0, i8 signext 61)
%9 = icmp eq i8* %8, null
br i1 %9, label %12, label %10
10: ; preds = %7
store i8 0, i8* %8
%11 = getelementptr inbounds i8, i8* %8, i64 1
store i8* %11, i8** %2
store i8* %0, i8** %1
br label %12
12: ; preds = %7, %10
%13 = phi i32 [ 0, %10 ], [ -1, %7 ]
ret i32 %13
}