#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_7__ TYPE_3__;
typedef struct TYPE_6__ TYPE_2__;
typedef struct TYPE_5__ TYPE_1__;

/* Type definitions */
struct TYPE_5__ {
  long *l;
};
struct TYPE_6__ {
  int format;
  TYPE_1__ data;
  int /*<<< orphan*/ window;
  int /*<<< orphan*/ *display;
  int /*<<< orphan*/ message_type;
  int /*<<< orphan*/ type;
};
struct TYPE_7__ {
  TYPE_2__ xclient;
};
typedef TYPE_3__ XEvent;
typedef int /*<<< orphan*/ Window;
typedef int /*<<< orphan*/ Display;
typedef int /*<<< orphan*/ Atom;

/* Variables and functions */
int /*<<< orphan*/ ClientMessage;
int /*<<< orphan*/ False;
int /*<<< orphan*/ RootWindow(int /*<<< orphan*/ *, int /*<<< orphan*/);
int SubstructureNotifyMask;
int SubstructureRedirectMask;
int /*<<< orphan*/ XFlush(int /*<<< orphan*/ *);
int /*<<< orphan*/ XSendEvent(int /*<<< orphan*/ *, int /*<<< orphan*/,
                              int /*<<< orphan*/, int, TYPE_3__ *);
void request(Display *display, Atom _request, Atom _extents, Window win) {
  XEvent msg;
  msg.xclient.type = ClientMessage;
  msg.xclient.message_type = _request;
  msg.xclient.display = display;
  msg.xclient.window = win;
  msg.xclient.format = 32;
  msg.xclient.data.l[0] = 0l;
  msg.xclient.data.l[1] = 0l;
  msg.xclient.data.l[2] = 0l;
  msg.xclient.data.l[3] = 0l;
  msg.xclient.data.l[4] = 0l;
  XSendEvent(display, RootWindow(display, 0), False,
             SubstructureNotifyMask | SubstructureRedirectMask, &msg);
  XFlush(display);
}


x86 assembly (clang, -O0):
<request>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    0x2e94(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x30(%rbp)
movl   $0x20,-0x40(%rbp)
mov    -0x38(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x38(%rbp),%rax
movq   $0x0,0x8(%rax)
mov    -0x38(%rbp),%rax
movq   $0x0,0x10(%rax)
mov    -0x38(%rbp),%rax
movq   $0x0,0x18(%rax)
mov    -0x38(%rbp),%rax
movq   $0x0,0x20(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
call   1040 <RootWindow@plt>
mov    -0x48(%rbp),%rdi
mov    %eax,%esi
mov    0x2e21(%rip),%rax
mov    (%rax),%edx
mov    0x2df8(%rip),%rax
mov    (%rax),%ecx
mov    0x2df7(%rip),%rax
or     (%rax),%ecx
lea    -0x40(%rbp),%r8
call   1030 <XSendEvent@plt>
mov    -0x8(%rbp),%rdi
call   1050 <XFlush@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
LLVM IR (-O0):
%struct.TYPE_7__ = type { %struct.TYPE_6__ }
%struct.TYPE_6__ = type { i32, %struct.TYPE_5__, i32, i32*, i32, i32 }
%struct.TYPE_5__ = type { i64* }
@ClientMessage = global i32 0
@False = global i32 0
@SubstructureNotifyMask = global i32 0
@SubstructureRedirectMask = global i32 0
define void @request(i32* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca %struct.TYPE_7__
store i32* %0, i32** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%10 = load i32, i32* @ClientMessage
%11 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %9, i32 0, i32 0
%12 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %11, i32 0, i32 5
store i32 %10, i32* %12
%13 = load i32, i32* %6
%14 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %9, i32 0, i32 0
%15 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %14, i32 0, i32 4
store i32 %13, i32* %15
%16 = load i32*, i32** %5
%17 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %9, i32 0, i32 0
%18 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %17, i32 0, i32 3
store i32* %16, i32** %18
%19 = load i32, i32* %8
%20 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %9, i32 0, i32 0
%21 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %20, i32 0, i32 2
store i32 %19, i32* %21
%22 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %9, i32 0, i32 0
%23 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %22, i32 0, i32 0
store i32 32, i32* %23
%24 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %9, i32 0, i32 0
%25 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %24, i32 0, i32 1
%26 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %25, i32 0, i32 0
%27 = load i64*, i64** %26
%28 = getelementptr inbounds i64, i64* %27, i64 0
store i64 0, i64* %28
%29 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %9, i32 0, i32 0
%30 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %29, i32 0, i32 1
%31 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %30, i32 0, i32 0
%32 = load i64*, i64** %31
%33 = getelementptr inbounds i64, i64* %32, i64 1
store i64 0, i64* %33
%34 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %9, i32 0, i32 0
%35 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %34, i32 0, i32 1
%36 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %35, i32 0, i32 0
%37 = load i64*, i64** %36
%38 = getelementptr inbounds i64, i64* %37, i64 2
store i64 0, i64* %38
%39 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %9, i32 0, i32 0
%40 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %39, i32 0, i32 1
%41 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %40, i32 0, i32 0
%42 = load i64*, i64** %41
%43 = getelementptr inbounds i64, i64* %42, i64 3
store i64 0, i64* %43
%44 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %9, i32 0, i32 0
%45 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %44, i32 0, i32 1
%46 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %45, i32 0, i32 0
%47 = load i64*, i64** %46
%48 = getelementptr inbounds i64, i64* %47, i64 4
store i64 0, i64* %48
%49 = load i32*, i32** %5
%50 = load i32*, i32** %5
%51 = call i32 @RootWindow(i32* %50, i32 0)
%52 = load i32, i32* @False
%53 = load i32, i32* @SubstructureNotifyMask
%54 = load i32, i32* @SubstructureRedirectMask
%55 = or i32 %53, %54
%56 = call i32 @XSendEvent(i32* %49, i32 %51, i32 %52, i32 %55, %struct.TYPE_7__* %9)
%57 = load i32*, i32** %5
%58 = call i32 @XFlush(i32* %57)
ret void
}

LLVM IR (-O2):