#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 */
typedef struct TYPE_5__ TYPE_2__;
typedef struct TYPE_4__ TYPE_1__;

/* Type definitions */
struct TYPE_4__ {
  scalar_t__ window;
};
struct TYPE_5__ {
  scalar_t__ type;
  TYPE_1__ xproperty;
};
typedef TYPE_2__ XEvent;
typedef scalar_t__ Window;
typedef int /*<<< orphan*/ Display;
typedef int /*<<< orphan*/ Bool;

/* Variables and functions */
int /*<<< orphan*/ False;
scalar_t__ PropertyNotify;
int /*<<< orphan*/ True;
Bool FPropertyNotifyOnWindow(Display *dpy, XEvent *ev, Window *w) {
  if (ev->type == PropertyNotify && ev->xproperty.window == *w) {
    return True;
  } else {
    return False;
  }
}


x86 assembly (clang, -O0):
<FPropertyNotifyOnWindow>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    0x2eb2(%rip),%rcx
cmp    (%rcx),%rax
jne    114d <FPropertyNotifyOnWindow+0x4d>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
mov    -0x20(%rbp),%rcx
cmp    (%rcx),%rax
jne    114d <FPropertyNotifyOnWindow+0x4d>
mov    0x2e9d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1159 <FPropertyNotifyOnWindow+0x59>
mov    0x2e94(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<FPropertyNotifyOnWindow>:
mov    (%rsi),%rax
mov    0x2ec6(%rip),%rcx
cmp    (%rcx),%rax
jne    1122 <FPropertyNotifyOnWindow+0x22>
mov    0x8(%rsi),%rax
cmp    (%rdx),%rax
jne    1122 <FPropertyNotifyOnWindow+0x22>
mov    0x2ec1(%rip),%rax
mov    (%rax),%eax
ret
mov    0x2ebf(%rip),%rax
mov    (%rax),%eax
ret

LLVM IR (-O0):
%struct.TYPE_5__ = type { i64, %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i64 }
@PropertyNotify = global i64 0
@True = global i32 0
@False = global i32 0
define i32 @FPropertyNotifyOnWindow(i32* %0, %struct.TYPE_5__* %1, i64* %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca %struct.TYPE_5__*
%7 = alloca i64*
store i32* %0, i32** %5
store %struct.TYPE_5__* %1, %struct.TYPE_5__** %6
store i64* %2, i64** %7
%8 = load %struct.TYPE_5__*, %struct.TYPE_5__** %6
%9 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %8, i32 0, i32 0
%10 = load i64, i64* %9
%11 = load i64, i64* @PropertyNotify
%12 = icmp eq i64 %10, %11
br i1 %12, label %13, label %23
13: ; preds = %3
%14 = load %struct.TYPE_5__*, %struct.TYPE_5__** %6
%15 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %14, i32 0, i32 1
%16 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %15, i32 0, i32 0
%17 = load i64, i64* %16
%18 = load i64*, i64** %7
%19 = load i64, i64* %18
%20 = icmp eq i64 %17, %19
br i1 %20, label %21, label %23
21: ; preds = %13
%22 = load i32, i32* @True
store i32 %22, i32* %4
br label %25
23: ; preds = %13, %3
%24 = load i32, i32* @False
store i32 %24, i32* %4
br label %25
25: ; preds = %23, %21
%26 = load i32, i32* %4
ret i32 %26
}

LLVM IR (-O2):
%struct.TYPE_5__ = type { i64, %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i64 }
@PropertyNotify = global i64 0
@True = global i32 0
@False = global i32 0
define i32 @FPropertyNotifyOnWindow(i32* nocapture readnone %0, %struct.TYPE_5__* nocapture %1, i64* nocapture %2) {
%4 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %1, i64 0, i32 0
%5 = load i64, i64* %4
%6 = load i64, i64* @PropertyNotify
%7 = icmp eq i64 %5, %6
br i1 %7, label %8, label %13
8: ; preds = %3
%9 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %1, i64 0, i32 1, i32 0
%10 = load i64, i64* %9
%11 = load i64, i64* %2
%12 = icmp eq i64 %10, %11
br i1 %12, label %14, label %13
13: ; preds = %8, %3
br label %14
14: ; preds = %8, %13
%15 = phi i32* [ @False, %13 ], [ @True, %8 ]
%16 = load i32, i32* %15
ret i32 %16
}