#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*/ confinstall();
int /*<<< orphan*/ create_conkyrc();
int /*<<< orphan*/ initialize();
scalar_t__ initialize_finddir();
int options(int, char **);
int /*<<< orphan*/ themes();
int /*<<< orphan*/ translation();
int main(int argc, char *argv[]) {
  if (initialize_finddir() != 0)
    return -1;
  int result = options(argc, argv);
  if (result == -1)
    return 0;
  else if (result == -2)
    return -1;
  else if (result != 0)
    return -2;
  initialize();
  translation();
  themes();
  create_conkyrc();
  confinstall();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <initialize_finddir@plt>
cmp    $0x0,%rax
je     11a3 <main+0x33>
movl   $0xffffffff,-0x4(%rbp)
jmp    1228 <main+0xb8>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1060 <options@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
jne    11c8 <main+0x58>
movl   $0x0,-0x4(%rbp)
jmp    1228 <main+0xb8>
cmpl   $0xfffffffe,-0x14(%rbp)
jne    11de <main+0x6e>
movl   $0xffffffff,-0x4(%rbp)
jmp    1228 <main+0xb8>
cmpl   $0x0,-0x14(%rbp)
je     11f4 <main+0x84>
movl   $0xfffffffe,-0x4(%rbp)
jmp    1228 <main+0xb8>
jmp    11f9 <main+0x89>
jmp    11fe <main+0x8e>
mov    $0x0,%al
call   1070 <initialize@plt>
mov    $0x0,%al
call   1080 <translation@plt>
mov    $0x0,%al
call   1050 <themes@plt>
mov    $0x0,%al
call   1090 <create_conkyrc@plt>
mov    $0x0,%al
call   1030 <confinstall@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %edi,%ebp
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <initialize_finddir@plt>
test   %rax,%rax
je     1193 <main+0x23>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    %ebp,%edi
mov    %r14,%rsi
call   1060 <options@plt>
test   %eax,%eax
je     11b2 <main+0x42>
cmp    $0xffffffff,%eax
je     118c <main+0x1c>
cmp    $0xfffffffe,%eax
je     1187 <main+0x17>
mov    $0xfffffffe,%ebx
jmp    118c <main+0x1c>
xor    %ebx,%ebx
xor    %eax,%eax
call   1070 <initialize@plt>
xor    %eax,%eax
call   1080 <translation@plt>
xor    %eax,%eax
call   1050 <themes@plt>
xor    %eax,%eax
call   1090 <create_conkyrc@plt>
xor    %eax,%eax
call   1030 <confinstall@plt>
jmp    118c <main+0x1c>

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i64 (...) @initialize_finddir()
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 -1, i32* %3
br label %33
10: ; preds = %2
%11 = load i32, i32* %4
%12 = load i8**, i8*** %5
%13 = call i32 @options(i32 %11, i8** %12)
store i32 %13, i32* %6
%14 = load i32, i32* %6
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %17
16: ; preds = %10
store i32 0, i32* %3
br label %33
17: ; preds = %10
%18 = load i32, i32* %6
%19 = icmp eq i32 %18, -2
br i1 %19, label %20, label %21
20: ; preds = %17
store i32 -1, i32* %3
br label %33
21: ; preds = %17
%22 = load i32, i32* %6
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %21
store i32 -2, i32* %3
br label %33
25: ; preds = %21
br label %26
26: ; preds = %25
br label %27
27: ; preds = %26
%28 = call i32 (...) @initialize()
%29 = call i32 (...) @translation()
%30 = call i32 (...) @themes()
%31 = call i32 (...) @create_conkyrc()
%32 = call i32 (...) @confinstall()
store i32 0, i32* %3
br label %33
33: ; preds = %27, %24, %20, %16, %9
%34 = load i32, i32* %3
ret i32 %34
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i64 (...) @initialize_finddir()
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %15
5: ; preds = %2
%6 = tail call i32 @options(i32 %0, i8** %1)
switch i32 %6, label %8 [
i32 -1, label %15
i32 -2, label %7
i32 0, label %9
]
7: ; preds = %5
br label %15
8: ; preds = %5
br label %15
9: ; preds = %5
%10 = tail call i32 (...) @initialize()
%11 = tail call i32 (...) @translation()
%12 = tail call i32 (...) @themes()
%13 = tail call i32 (...) @create_conkyrc()
%14 = tail call i32 (...) @confinstall()
br label %15
15: ; preds = %7, %8, %9, %5, %2
%16 = phi i32 [ -1, %2 ], [ -1, %7 ], [ -2, %8 ], [ 0, %9 ], [ 0, %5 ]
ret i32 %16
}