#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*/ PECIAdvCmdSend(unsigned long, unsigned char, unsigned char,
                                  unsigned char, unsigned char, unsigned long,
                                  unsigned char, unsigned long, unsigned long);
unsigned long PECIAdvCmdSendNonBlocking(
    unsigned long ulBase, unsigned char ucCmd, unsigned char ucHidRe,
    unsigned char ucDomain, unsigned char ucProcAdd, unsigned long ulArg,
    unsigned char ucSize, unsigned long ulData0, unsigned long ulData1) {
  ;
  if ((*((volatile unsigned long *)(ulBase + 0x00000114))) == 0xFFFFFFFF) {
    return (0);
  }
  PECIAdvCmdSend(ulBase, ucCmd, ucHidRe, ucDomain, ucProcAdd, ulArg, ucSize,
                 ulData0, ulData1);
  return (1);
}


x86 assembly (clang, -O0):
<PECIAdvCmdSendNonBlocking>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %r8b,%al
mov    0x20(%rbp),%r8
mov    0x18(%rbp),%r8
mov    0x10(%rbp),%r8b
mov    %rdi,-0x10(%rbp)
mov    %sil,-0x11(%rbp)
mov    %dl,-0x12(%rbp)
mov    %cl,-0x13(%rbp)
mov    %al,-0x14(%rbp)
mov    %r9,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x114(%rax),%rax
mov    $0xffffffff,%ecx
cmp    %rcx,%rax
jne    1162 <PECIAdvCmdSendNonBlocking+0x52>
movq   $0x0,-0x8(%rbp)
jmp    11b1 <PECIAdvCmdSendNonBlocking+0xa1>
mov    -0x10(%rbp),%rdi
mov    -0x11(%rbp),%sil
mov    -0x12(%rbp),%dl
mov    -0x13(%rbp),%cl
mov    -0x14(%rbp),%r8b
mov    -0x20(%rbp),%r9
mov    0x10(%rbp),%r11b
mov    0x18(%rbp),%r10
mov    0x20(%rbp),%rax
movzbl %sil,%esi
movzbl %dl,%edx
movzbl %cl,%ecx
movzbl %r8b,%r8d
movzbl %r11b,%r11d
mov    %r11d,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <PECIAdvCmdSend@plt>
movq   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PECIAdvCmdSendNonBlocking>:
push   %rax
mov    0x114(%rdi),%r10
mov    $0xffffffff,%eax
cmp    %rax,%r10
jne    1126 <PECIAdvCmdSendNonBlocking+0x16>
xor    %eax,%eax
pop    %rcx
ret
mov    0x10(%rsp),%al
sub    $0x8,%rsp
movzbl %al,%eax
movzbl %sil,%esi
movzbl %dl,%edx
movzbl %cl,%ecx
movzbl %r8b,%r8d
push   0x28(%rsp)
push   0x28(%rsp)
push   %rax
call   1030 <PECIAdvCmdSend@plt>
add    $0x20,%rsp
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i64 @PECIAdvCmdSendNonBlocking(i64 %0, i8 zeroext %1, i8 zeroext %2, i8 zeroext %3, i8 zeroext %4, i64 %5, i8 zeroext %6, i64 %7, i64 %8) {
%10 = alloca i64
%11 = alloca i64
%12 = alloca i8
%13 = alloca i8
%14 = alloca i8
%15 = alloca i8
%16 = alloca i64
%17 = alloca i8
%18 = alloca i64
%19 = alloca i64
store i64 %0, i64* %11
store i8 %1, i8* %12
store i8 %2, i8* %13
store i8 %3, i8* %14
store i8 %4, i8* %15
store i64 %5, i64* %16
store i8 %6, i8* %17
store i64 %7, i64* %18
store i64 %8, i64* %19
%20 = load i64, i64* %11
%21 = add i64 %20, 276
%22 = inttoptr i64 %21 to i64*
%23 = load volatile i64, i64* %22
%24 = icmp eq i64 %23, 4294967295
br i1 %24, label %25, label %26
25: ; preds = %9
store i64 0, i64* %10
br label %37
26: ; preds = %9
%27 = load i64, i64* %11
%28 = load i8, i8* %12
%29 = load i8, i8* %13
%30 = load i8, i8* %14
%31 = load i8, i8* %15
%32 = load i64, i64* %16
%33 = load i8, i8* %17
%34 = load i64, i64* %18
%35 = load i64, i64* %19
%36 = call i32 @PECIAdvCmdSend(i64 %27, i8 zeroext %28, i8 zeroext %29, i8 zeroext %30, i8 zeroext %31, i64 %32, i8 zeroext %33, i64 %34, i64 %35)
store i64 1, i64* %10
br label %37
37: ; preds = %26, %25
%38 = load i64, i64* %10
ret i64 %38
}

LLVM IR (-O2):
define i64 @PECIAdvCmdSendNonBlocking(i64 %0, i8 zeroext %1, i8 zeroext %2, i8 zeroext %3, i8 zeroext %4, i64 %5, i8 zeroext %6, i64 %7, i64 %8) {
%10 = add i64 %0, 276
%11 = inttoptr i64 %10 to i64*
%12 = load volatile i64, i64* %11
%13 = icmp eq i64 %12, 4294967295
br i1 %13, label %16, label %14
14: ; preds = %9
%15 = tail call i32 @PECIAdvCmdSend(i64 %0, i8 zeroext %1, i8 zeroext %2, i8 zeroext %3, i8 zeroext %4, i64 %5, i8 zeroext %6, i64 %7, i64 %8)
br label %16
16: ; preds = %9, %14
%17 = phi i64 [ 1, %14 ], [ 0, %9 ]
ret i64 %17
}