#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*/ DrawArrowBetweenSquares(int, int, int, int);
scalar_t__ IsDrawArrowEnabled();
void DrawArrowHighlight(int fromX, int fromY, int toX, int toY) {
  if (IsDrawArrowEnabled() && fromX >= 0 && fromY >= 0 && toX >= 0 && toY >= 0)
    DrawArrowBetweenSquares(fromX, fromY, toX, toY);
}


x86 assembly (clang, -O0):
<DrawArrowHighlight>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    $0x0,%al
call   1030 <IsDrawArrowEnabled@plt>
cmp    $0x0,%rax
je     117e <DrawArrowHighlight+0x5e>
cmpl   $0x0,-0x4(%rbp)
jl     117e <DrawArrowHighlight+0x5e>
cmpl   $0x0,-0x8(%rbp)
jl     117e <DrawArrowHighlight+0x5e>
cmpl   $0x0,-0xc(%rbp)
jl     117e <DrawArrowHighlight+0x5e>
cmpl   $0x0,-0x10(%rbp)
jl     117e <DrawArrowHighlight+0x5e>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
call   1040 <DrawArrowBetweenSquares@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DrawArrowHighlight>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %esi,%ebx
mov    %edi,%ebp
xor    %eax,%eax
call   1030 <IsDrawArrowEnabled@plt>
mov    %ebx,%ecx
or     %ebp,%ecx
or     %r15d,%ecx
or     %r14d,%ecx
js     1162 <DrawArrowHighlight+0x42>
test   %rax,%rax
je     1162 <DrawArrowHighlight+0x42>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %r15d,%edx
mov    %r14d,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <DrawArrowBetweenSquares@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @DrawArrowHighlight(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = call i64 (...) @IsDrawArrowEnabled()
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %29
11: ; preds = %4
%12 = load i32, i32* %5
%13 = icmp sge i32 %12, 0
br i1 %13, label %14, label %29
14: ; preds = %11
%15 = load i32, i32* %6
%16 = icmp sge i32 %15, 0
br i1 %16, label %17, label %29
17: ; preds = %14
%18 = load i32, i32* %7
%19 = icmp sge i32 %18, 0
br i1 %19, label %20, label %29
20: ; preds = %17
%21 = load i32, i32* %8
%22 = icmp sge i32 %21, 0
br i1 %22, label %23, label %29
23: ; preds = %20
%24 = load i32, i32* %5
%25 = load i32, i32* %6
%26 = load i32, i32* %7
%27 = load i32, i32* %8
%28 = call i32 @DrawArrowBetweenSquares(i32 %24, i32 %25, i32 %26, i32 %27)
br label %29
29: ; preds = %23, %20, %17, %14, %11, %4
ret void
}

LLVM IR (-O2):
define void @DrawArrowHighlight(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i64 (...) @IsDrawArrowEnabled()
%6 = icmp ne i64 %5, 0
%7 = or i32 %1, %0
%8 = or i32 %7, %2
%9 = or i32 %8, %3
%10 = icmp sgt i32 %9, -1
%11 = and i1 %10, %6
br i1 %11, label %12, label %14
12: ; preds = %4
%13 = tail call i32 @DrawArrowBetweenSquares(i32 %0, i32 %1, i32 %2, i32 %3)
br label %14
14: ; preds = %12, %4
ret void
}