#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*/ gui_set_status_text_part(int /*<<< orphan*/, int, int,
                                            char *);
void gui_set_menu_prev_next(int prev, int next) {
  if (!prev && next) {
    gui_set_status_text_part(0, 14, 13, "            >");
  } else if (prev && !next) {
    gui_set_status_text_part(0, 14, 13, "          <  ");
  } else if (prev && next) {
    gui_set_status_text_part(0, 14, 13, "          < >");
  } else {
    gui_set_status_text_part(0, 14, 13, "             ");
  }
}


x86 assembly (clang, -O0):
<gui_set_menu_prev_next>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    114f <gui_set_menu_prev_next+0x3f>
cmpl   $0x0,-0x8(%rbp)
je     114f <gui_set_menu_prev_next+0x3f>
xor    %edi,%edi
mov    $0xe,%esi
mov    $0xd,%edx
lea    0xebb(%rip),%rcx
call   1030 <gui_set_status_text_part@plt>
jmp    11d3 <gui_set_menu_prev_next+0xc3>
cmpl   $0x0,-0x4(%rbp)
je     1180 <gui_set_menu_prev_next+0x70>
cmpl   $0x0,-0x8(%rbp)
jne    1180 <gui_set_menu_prev_next+0x70>
xor    %edi,%edi
mov    $0xe,%esi
mov    $0xd,%edx
lea    0xe98(%rip),%rcx
call   1030 <gui_set_status_text_part@plt>
jmp    11ce <gui_set_menu_prev_next+0xbe>
cmpl   $0x0,-0x4(%rbp)
je     11b1 <gui_set_menu_prev_next+0xa1>
cmpl   $0x0,-0x8(%rbp)
je     11b1 <gui_set_menu_prev_next+0xa1>
xor    %edi,%edi
mov    $0xe,%esi
mov    $0xd,%edx
lea    0xe75(%rip),%rcx
call   1030 <gui_set_status_text_part@plt>
jmp    11c9 <gui_set_menu_prev_next+0xb9>
xor    %edi,%edi
mov    $0xe,%esi
mov    $0xd,%edx
lea    0xe66(%rip),%rcx
call   1030 <gui_set_status_text_part@plt>
jmp    11ce <gui_set_menu_prev_next+0xbe>
jmp    11d3 <gui_set_menu_prev_next+0xc3>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gui_set_menu_prev_next>:
test   %edi,%edi
jne    1121 <gui_set_menu_prev_next+0x11>
test   %esi,%esi
je     1121 <gui_set_menu_prev_next+0x11>
lea    0xee1(%rip),%rcx
jmp    114c <gui_set_menu_prev_next+0x3c>
test   %edi,%edi
je     1132 <gui_set_menu_prev_next+0x22>
test   %esi,%esi
jne    1132 <gui_set_menu_prev_next+0x22>
lea    0xede(%rip),%rcx
jmp    114c <gui_set_menu_prev_next+0x3c>
test   %esi,%esi
lea    0xee1(%rip),%rcx
lea    0xee8(%rip),%rax
cmove  %rax,%rcx
test   %edi,%edi
cmove  %rax,%rcx
xor    %edi,%edi
mov    $0xe,%esi
mov    $0xd,%edx
jmp    1030 <gui_set_status_text_part@plt>

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

LLVM IR (-O2):
@.str = [14 x i8] c" >\00"
@.str.1 = [14 x i8] c" < \00"
@.str.2 = [14 x i8] c" < >\00"
@.str.3 = [14 x i8] c" \00"
define void @gui_set_menu_prev_next(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, 0
%4 = icmp ne i32 %1, 0
%5 = and i1 %3, %4
br i1 %5, label %12, label %6
6: ; preds = %2
%7 = or i1 %3, %4
br i1 %7, label %8, label %12
8: ; preds = %6
%9 = icmp ne i32 %0, 0
%10 = and i1 %9, %4
%11 = select i1 %10, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0)
br label %12
12: ; preds = %8, %6, %2
%13 = phi i8* [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), %2 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), %6 ], [ %11, %8 ]
%14 = tail call i32 @gui_set_status_text_part(i32 0, i32 14, i32 13, i8* %13)
ret void
}