#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*/ set_cert_file(char *);
int /*<<< orphan*/ set_key_file(char *);
int /*<<< orphan*/ set_root_file(char *);
scalar_t__ strcmp(char *, char *);
int conf_parse_settings(char *key, char *value) {
  do {
  } while (0);
  if (strcmp(key, "cert") == 0) {
    set_cert_file(value);
  } else if (strcmp(key, "key") == 0) {
    set_key_file(value);
  } else if (strcmp(key, "rootCA") == 0) {
    set_root_file(value);
  } else {
    return -1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<conf_parse_settings>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
jmp    1155 <conf_parse_settings+0x15>
mov    -0x10(%rbp),%rdi
lea    0xea0(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    117d <conf_parse_settings+0x3d>
mov    -0x18(%rbp),%rdi
call   1030 <set_cert_file@plt>
jmp    11e3 <conf_parse_settings+0xa3>
mov    -0x10(%rbp),%rdi
lea    0xe7d(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11a5 <conf_parse_settings+0x65>
mov    -0x18(%rbp),%rdi
call   1060 <set_key_file@plt>
jmp    11de <conf_parse_settings+0x9e>
mov    -0x10(%rbp),%rdi
lea    0xe59(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11cd <conf_parse_settings+0x8d>
mov    -0x18(%rbp),%rdi
call   1050 <set_root_file@plt>
jmp    11d9 <conf_parse_settings+0x99>
movl   $0xffffffff,-0x4(%rbp)
jmp    11ea <conf_parse_settings+0xaa>
jmp    11de <conf_parse_settings+0x9e>
jmp    11e3 <conf_parse_settings+0xa3>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<conf_parse_settings>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xeaf(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1195 <conf_parse_settings+0x55>
lea    0xea3(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     119f <conf_parse_settings+0x5f>
lea    0xe93(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
mov    %rax,%rcx
mov    $0xffffffff,%eax
test   %rcx,%rcx
jne    11a9 <conf_parse_settings+0x69>
mov    %r14,%rdi
call   1050 <set_root_file@plt>
jmp    11a7 <conf_parse_settings+0x67>
mov    %r14,%rdi
call   1030 <set_cert_file@plt>
jmp    11a7 <conf_parse_settings+0x67>
mov    %r14,%rdi
call   1060 <set_key_file@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [5 x i8] c"cert\00"
@.str.1 = [4 x i8] c"key\00"
@.str.2 = [7 x i8] c"rootCA\00"
define i32 @conf_parse_settings(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
br label %6
6: ; preds = %2
br label %7
7: ; preds = %6
%8 = load i8*, i8** %4
%9 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = load i8*, i8** %5
%13 = call i32 @set_cert_file(i8* %12)
br label %31
14: ; preds = %7
%15 = load i8*, i8** %4
%16 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %14
%19 = load i8*, i8** %5
%20 = call i32 @set_key_file(i8* %19)
br label %30
21: ; preds = %14
%22 = load i8*, i8** %4
%23 = call i64 @strcmp(i8* %22, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %21
%26 = load i8*, i8** %5
%27 = call i32 @set_root_file(i8* %26)
br label %29
28: ; preds = %21
store i32 -1, i32* %3
br label %32
29: ; preds = %25
br label %30
30: ; preds = %29, %18
br label %31
31: ; preds = %30, %11
store i32 0, i32* %3
br label %32
32: ; preds = %31, %28
%33 = load i32, i32* %3
ret i32 %33
}

LLVM IR (-O2):
@.str = [5 x i8] c"cert\00"
@.str.1 = [4 x i8] c"key\00"
@.str.2 = [7 x i8] c"rootCA\00"
define i32 @conf_parse_settings(i8* %0, i8* %1) {
%3 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @set_cert_file(i8* %1)
br label %17
7: ; preds = %2
%8 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = tail call i32 @set_key_file(i8* %1)
br label %17
12: ; preds = %7
%13 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = tail call i32 @set_root_file(i8* %1)
br label %17
17: ; preds = %5, %15, %10, %12
%18 = phi i32 [ -1, %12 ], [ 0, %10 ], [ 0, %15 ], [ 0, %5 ]
ret i32 %18
}