#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 */
scalar_t__ Realtime_is_random_user();
scalar_t__ roadmap_login_empty();
int /*<<< orphan*/ roadmap_login_new_existing_dlg();
int /*<<< orphan*/ roadmap_login_profile_dialog_show();
int /*<<< orphan*/ roadmap_welcome_personalize_dialog();
void roadmap_login_details_dialog_show(void) {
  if (Realtime_is_random_user()) {
    roadmap_welcome_personalize_dialog();
    return;
  }
  if (roadmap_login_empty()) {
    roadmap_login_new_existing_dlg();
    return;
  }
  roadmap_login_profile_dialog_show();
}


x86 assembly (clang, -O0):
<roadmap_login_details_dialog_show>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <Realtime_is_random_user@plt>
cmp    $0x0,%rax
je     1171 <roadmap_login_details_dialog_show+0x21>
mov    $0x0,%al
call   1060 <roadmap_welcome_personalize_dialog@plt>
jmp    1195 <roadmap_login_details_dialog_show+0x45>
mov    $0x0,%al
call   1030 <roadmap_login_empty@plt>
cmp    $0x0,%rax
je     118e <roadmap_login_details_dialog_show+0x3e>
mov    $0x0,%al
call   1050 <roadmap_login_new_existing_dlg@plt>
jmp    1195 <roadmap_login_details_dialog_show+0x45>
mov    $0x0,%al
call   1070 <roadmap_login_profile_dialog_show@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<roadmap_login_details_dialog_show>:
push   %rax
xor    %eax,%eax
call   1040 <Realtime_is_random_user@plt>
test   %rax,%rax
je     1165 <roadmap_login_details_dialog_show+0x15>
xor    %eax,%eax
pop    %rcx
jmp    1060 <roadmap_welcome_personalize_dialog@plt>
xor    %eax,%eax
call   1030 <roadmap_login_empty@plt>
test   %rax,%rax
je     1179 <roadmap_login_details_dialog_show+0x29>
xor    %eax,%eax
pop    %rcx
jmp    1050 <roadmap_login_new_existing_dlg@plt>
xor    %eax,%eax
pop    %rcx
jmp    1070 <roadmap_login_profile_dialog_show@plt>

LLVM IR (-O0):
define void @roadmap_login_details_dialog_show() {
%1 = call i64 (...) @Realtime_is_random_user()
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 (...) @roadmap_welcome_personalize_dialog()
br label %12
5: ; preds = %0
%6 = call i64 (...) @roadmap_login_empty()
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = call i32 (...) @roadmap_login_new_existing_dlg()
br label %12
10: ; preds = %5
%11 = call i32 (...) @roadmap_login_profile_dialog_show()
br label %12
12: ; preds = %10, %8, %3
ret void
}

LLVM IR (-O2):
define void @roadmap_login_details_dialog_show() {
%1 = tail call i64 (...) @Realtime_is_random_user()
%2 = icmp eq i64 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @roadmap_welcome_personalize_dialog()
br label %12
5: ; preds = %0
%6 = tail call i64 (...) @roadmap_login_empty()
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %5
%9 = tail call i32 (...) @roadmap_login_new_existing_dlg()
br label %12
10: ; preds = %5
%11 = tail call i32 (...) @roadmap_login_profile_dialog_show()
br label %12
12: ; preds = %10, %8, %3
ret void
}