#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_6__ TYPE_2__;
typedef struct TYPE_5__ TYPE_1__;

/* Type definitions */
typedef int /*<<< orphan*/ event;
struct TYPE_5__ {
  int button;
  int state;
  int /*<<< orphan*/ y;
  int /*<<< orphan*/ x;
  int /*<<< orphan*/ y_root;
  int /*<<< orphan*/ x_root;
  scalar_t__ subwindow;
  int /*<<< orphan*/ root;
  scalar_t__ window;
  int /*<<< orphan*/ same_screen;
};
struct TYPE_6__ {
  TYPE_1__ xbutton;
  int /*<<< orphan*/ type;
};
typedef TYPE_2__ XEvent;
typedef int /*<<< orphan*/ Display;

/* Variables and functions */
int /*<<< orphan*/ ButtonPress;
int /*<<< orphan*/ ButtonRelease;
int /*<<< orphan*/ DefaultScreen(int /*<<< orphan*/ *);
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ PointerWindow;
scalar_t__ RootWindow(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ True;
int /*<<< orphan*/ XCloseDisplay(int /*<<< orphan*/ *);
int /*<<< orphan*/ XFlush(int /*<<< orphan*/ *);
int /*<<< orphan*/ *XOpenDisplay(int /*<<< orphan*/ *);
int /*<<< orphan*/ XQueryPointer(int /*<<< orphan*/ *, scalar_t__,
                                 int /*<<< orphan*/ *, scalar_t__ *,
                                 int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                                 int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                                 int *);
scalar_t__ XSendEvent(int /*<<< orphan*/ *, int /*<<< orphan*/,
                      int /*<<< orphan*/, int, TYPE_2__ *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ memset(TYPE_2__ *, int, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ usleep(int);
void mouseClick(int button) {
  Display *display = XOpenDisplay(NULL);
  XEvent event;
  if (display == NULL) {
    fprintf(stderr, "Errore nell'apertura del Display !!!\n");
    exit(EXIT_FAILURE);
  }
  memset(&event, 0x00, sizeof(event));
  event.type = ButtonPress;
  event.xbutton.button = button;
  event.xbutton.same_screen = True;
  XQueryPointer(display, RootWindow(display, DefaultScreen(display)),
                &event.xbutton.root, &event.xbutton.window,
                &event.xbutton.x_root, &event.xbutton.y_root, &event.xbutton.x,
                &event.xbutton.y, &event.xbutton.state);
  event.xbutton.subwindow = event.xbutton.window;
  while (event.xbutton.subwindow) {
    event.xbutton.window = event.xbutton.subwindow;
    XQueryPointer(display, event.xbutton.window, &event.xbutton.root,
                  &event.xbutton.subwindow, &event.xbutton.x_root,
                  &event.xbutton.y_root, &event.xbutton.x, &event.xbutton.y,
                  &event.xbutton.state);
  }
  if (XSendEvent(display, PointerWindow, True, 0xfff, &event) == 0)
    fprintf(stderr, "Error\n");
  XFlush(display);
  usleep(100000);
  event.type = ButtonRelease;
  event.xbutton.state = 0x100;
  if (XSendEvent(display, PointerWindow, True, 0xfff, &event) == 0)
    fprintf(stderr, "Error\n");
  XFlush(display);
  XCloseDisplay(display);
}


x86 assembly (clang, -O0):
<mouseClick>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1050 <XOpenDisplay@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    11f9 <mouseClick+0x49>
mov    0x2dfb(%rip),%rax
mov    (%rax),%edi
lea    0xe1a(%rip),%rsi
call   1060 <fprintf@plt>
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1040 <memset@plt>
mov    0x2db8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    0x2dc6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x10(%rbp),%rdi
call   10b0 <DefaultScreen@plt>
mov    -0x60(%rbp),%rdi
mov    %eax,%esi
call   1080 <RootWindow@plt>
mov    -0x58(%rbp),%rdi
mov    %rax,%rsi
lea    -0x50(%rbp),%rdx
add    $0x20,%rdx
lea    -0x50(%rbp),%rcx
add    $0x28,%rcx
lea    -0x50(%rbp),%r8
add    $0x14,%r8
lea    -0x50(%rbp),%r9
add    $0x10,%r9
lea    -0x50(%rbp),%r11
add    $0xc,%r11
lea    -0x50(%rbp),%r10
add    $0x8,%r10
lea    -0x50(%rbp),%rax
add    $0x4,%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1070 <XQueryPointer@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     1310 <mouseClick+0x160>
mov    -0x38(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rsi
lea    -0x50(%rbp),%rdx
add    $0x20,%rdx
lea    -0x50(%rbp),%rcx
add    $0x18,%rcx
lea    -0x50(%rbp),%r8
add    $0x14,%r8
lea    -0x50(%rbp),%r9
add    $0x10,%r9
lea    -0x50(%rbp),%r11
add    $0xc,%r11
lea    -0x50(%rbp),%r10
add    $0x8,%r10
lea    -0x50(%rbp),%rax
add    $0x4,%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1070 <XQueryPointer@plt>
jmp    12a5 <mouseClick+0xf5>
mov    -0x10(%rbp),%rdi
mov    0x2cb5(%rip),%rax
mov    (%rax),%esi
mov    0x2cc4(%rip),%rax
mov    (%rax),%edx
mov    $0xfff,%ecx
lea    -0x50(%rbp),%r8
call   1030 <XSendEvent@plt>
cmp    $0x0,%rax
jne    1353 <mouseClick+0x1a3>
mov    0x2c93(%rip),%rax
mov    (%rax),%edi
lea    0xcd8(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <XFlush@plt>
mov    $0x186a0,%edi
call   10d0 <usleep@plt>
mov    0x2c43(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
movl   $0x100,-0x4c(%rbp)
mov    -0x10(%rbp),%rdi
mov    0x2c4c(%rip),%rax
mov    (%rax),%esi
mov    0x2c5b(%rip),%rax
mov    (%rax),%edx
mov    $0xfff,%ecx
lea    -0x50(%rbp),%r8
call   1030 <XSendEvent@plt>
cmp    $0x0,%rax
jne    13bc <mouseClick+0x20c>
mov    0x2c2a(%rip),%rax
mov    (%rax),%edi
lea    0xc6f(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <XFlush@plt>
mov    -0x10(%rbp),%rdi
call   10c0 <XCloseDisplay@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mouseClick>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %edi,%ebp
xor    %edi,%edi
call   1050 <XOpenDisplay@plt>
test   %rax,%rax
je     135d <mouseClick+0x1ad>
mov    %rax,%rbx
lea    0x8(%rsp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1040 <memset@plt>
mov    0x2ddd(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x40(%rsp)
mov    %ebp,0x8(%rsp)
mov    0x2dec(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x38(%rsp)
mov    %rbx,%rdi
call   10b0 <DefaultScreen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1080 <RootWindow@plt>
lea    0x28(%rsp),%rdx
lea    0x30(%rsp),%rcx
lea    0x1c(%rsp),%r8
lea    0x18(%rsp),%r9
lea    0x14(%rsp),%r10
lea    0x10(%rsp),%r11
lea    0xc(%rsp),%rbp
sub    $0x8,%rsp
mov    %rbx,%rdi
mov    %rax,%rsi
mov    %r9,%r14
mov    %rbp,%r13
push   %rbp
mov    %r11,%r12
push   %r11
mov    %r10,%r15
push   %r10
call   1070 <XQueryPointer@plt>
add    $0x20,%rsp
mov    0x30(%rsp),%rsi
mov    %rsi,0x20(%rsp)
test   %rsi,%rsi
je     12a5 <mouseClick+0xf5>
lea    0x20(%rsp),%rbp
nop
mov    %rsi,0x30(%rsp)
sub    $0x8,%rsp
mov    %rbx,%rdi
lea    0x30(%rsp),%rdx
mov    %rbp,%rcx
lea    0x24(%rsp),%r8
mov    %r14,%r9
push   %r13
push   %r12
push   %r15
call   1070 <XQueryPointer@plt>
add    $0x20,%rsp
mov    0x20(%rsp),%rsi
test   %rsi,%rsi
jne    1270 <mouseClick+0xc0>
mov    0x2d24(%rip),%r14
mov    (%r14),%esi
mov    0x2d32(%rip),%rbp
mov    0x0(%rbp),%edx
lea    0x8(%rsp),%r8
mov    %rbx,%rdi
mov    $0xfff,%ecx
call   1030 <XSendEvent@plt>
test   %rax,%rax
jne    12e5 <mouseClick+0x135>
mov    0x2d01(%rip),%rax
mov    (%rax),%edi
lea    0xd46(%rip),%rsi
call   1060 <fprintf@plt>
mov    %rbx,%rdi
call   1090 <XFlush@plt>
mov    $0x186a0,%edi
call   10d0 <usleep@plt>
mov    0x2cb2(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x40(%rsp)
movl   $0x100,0xc(%rsp)
mov    (%r14),%esi
mov    0x0(%rbp),%edx
lea    0x8(%rsp),%r8
mov    %rbx,%rdi
mov    $0xfff,%ecx
call   1030 <XSendEvent@plt>
test   %rax,%rax
jne    133e <mouseClick+0x18e>
mov    0x2ca8(%rip),%rax
mov    (%rax),%edi
lea    0xced(%rip),%rsi
call   1060 <fprintf@plt>
mov    %rbx,%rdi
call   1090 <XFlush@plt>
mov    %rbx,%rdi
call   10c0 <XCloseDisplay@plt>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c74(%rip),%rax
mov    (%rax),%edi
lea    0xc93(%rip),%rsi
call   1060 <fprintf@plt>
mov    0x2c47(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
%struct.TYPE_6__ = type { %struct.TYPE_5__, i32 }
%struct.TYPE_5__ = type { i32, i32, i32, i32, i32, i32, i64, i32, i64, i32 }
@stderr = global i32 0
@.str = [38 x i8] c"Errore nell'apertura del Display !!!\0A\00"
@EXIT_FAILURE = global i32 0
@ButtonPress = global i32 0
@True = global i32 0
@PointerWindow = global i32 0
@.str.1 = [7 x i8] c"Error\0A\00"
@ButtonRelease = global i32 0
define void @mouseClick(i32 %0) {
%2 = alloca i32
%3 = alloca i32*
%4 = alloca %struct.TYPE_6__
store i32 %0, i32* %2
%5 = call i32* @XOpenDisplay(i32* null)
store i32* %5, i32** %3
%6 = load i32*, i32** %3
%7 = icmp eq i32* %6, null
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* @EXIT_FAILURE
%12 = call i32 @exit(i32 %11)
unreachable
13: ; preds = %1
%14 = call i32 @memset(%struct.TYPE_6__* %4, i32 0, i32 64)
%15 = load i32, i32* @ButtonPress
%16 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 1
store i32 %15, i32* %16
%17 = load i32, i32* %2
%18 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%19 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %18, i32 0, i32 0
store i32 %17, i32* %19
%20 = load i32, i32* @True
%21 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%22 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %21, i32 0, i32 9
store i32 %20, i32* %22
%23 = load i32*, i32** %3
%24 = load i32*, i32** %3
%25 = load i32*, i32** %3
%26 = call i32 @DefaultScreen(i32* %25)
%27 = call i64 @RootWindow(i32* %24, i32 %26)
%28 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%29 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %28, i32 0, i32 7
%30 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%31 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %30, i32 0, i32 8
%32 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%33 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %32, i32 0, i32 5
%34 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%35 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %34, i32 0, i32 4
%36 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%37 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %36, i32 0, i32 3
%38 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%39 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %38, i32 0, i32 2
%40 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%41 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %40, i32 0, i32 1
%42 = call i32 @XQueryPointer(i32* %23, i64 %27, i32* %29, i64* %31, i32* %33, i32* %35, i32* %37, i32* %39, i32* %41)
%43 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%44 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %43, i32 0, i32 8
%45 = load i64, i64* %44
%46 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%47 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %46, i32 0, i32 6
store i64 %45, i64* %47
br label %48
48: ; preds = %53, %13
%49 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%50 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %49, i32 0, i32 6
%51 = load i64, i64* %50
%52 = icmp ne i64 %51, 0
br i1 %52, label %53, label %78
53: ; preds = %48
%54 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%55 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %54, i32 0, i32 6
%56 = load i64, i64* %55
%57 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%58 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %57, i32 0, i32 8
store i64 %56, i64* %58
%59 = load i32*, i32** %3
%60 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%61 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %60, i32 0, i32 8
%62 = load i64, i64* %61
%63 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%64 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %63, i32 0, i32 7
%65 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%66 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %65, i32 0, i32 6
%67 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%68 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %67, i32 0, i32 5
%69 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%70 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %69, i32 0, i32 4
%71 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%72 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %71, i32 0, i32 3
%73 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%74 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %73, i32 0, i32 2
%75 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%76 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %75, i32 0, i32 1
%77 = call i32 @XQueryPointer(i32* %59, i64 %62, i32* %64, i64* %66, i32* %68, i32* %70, i32* %72, i32* %74, i32* %76)
br label %48
78: ; preds = %48
%79 = load i32*, i32** %3
%80 = load i32, i32* @PointerWindow
%81 = load i32, i32* @True
%82 = call i64 @XSendEvent(i32* %79, i32 %80, i32 %81, i32 4095, %struct.TYPE_6__* %4)
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %87
84: ; preds = %78
%85 = load i32, i32* @stderr
%86 = call i32 @fprintf(i32 %85, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %87
87: ; preds = %84, %78
%88 = load i32*, i32** %3
%89 = call i32 @XFlush(i32* %88)
%90 = call i32 @usleep(i32 100000)
%91 = load i32, i32* @ButtonRelease
%92 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 1
store i32 %91, i32* %92
%93 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %4, i32 0, i32 0
%94 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %93, i32 0, i32 1
store i32 256, i32* %94
%95 = load i32*, i32** %3
%96 = load i32, i32* @PointerWindow
%97 = load i32, i32* @True
%98 = call i64 @XSendEvent(i32* %95, i32 %96, i32 %97, i32 4095, %struct.TYPE_6__* %4)
%99 = icmp eq i64 %98, 0
br i1 %99, label %100, label %103
100: ; preds = %87
%101 = load i32, i32* @stderr
%102 = call i32 @fprintf(i32 %101, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %103
103: ; preds = %100, %87
%104 = load i32*, i32** %3
%105 = call i32 @XFlush(i32* %104)
%106 = load i32*, i32** %3
%107 = call i32 @XCloseDisplay(i32* %106)
ret void
}

LLVM IR (-O2):
%struct.TYPE_6__ = type { %struct.TYPE_5__, i32 }
%struct.TYPE_5__ = type { i32, i32, i32, i32, i32, i32, i64, i32, i64, i32 }
@stderr = global i32 0
@.str = [38 x i8] c"Errore nell'apertura del Display !!!\0A\00"
@EXIT_FAILURE = global i32 0
@ButtonPress = global i32 0
@True = global i32 0
@PointerWindow = global i32 0
@.str.1 = [7 x i8] c"Error\0A\00"
@ButtonRelease = global i32 0
define void @mouseClick(i32 %0) {
%2 = alloca %struct.TYPE_6__
%3 = tail call i32* @XOpenDisplay(i32* null)
%4 = bitcast %struct.TYPE_6__* %2 to i8*
%5 = icmp eq i32* %3, null
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%9 = load i32, i32* @EXIT_FAILURE
%10 = tail call i32 @exit(i32 %9)
unreachable
11: ; preds = %1
%12 = call i32 @memset(%struct.TYPE_6__* %2, i32 0, i32 64)
%13 = load i32, i32* @ButtonPress
%14 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %2, i64 0, i32 1
store i32 %13, i32* %14
%15 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %2, i64 0, i32 0, i32 0
store i32 %0, i32* %15
%16 = load i32, i32* @True
%17 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %2, i64 0, i32 0, i32 9
store i32 %16, i32* %17
%18 = call i32 @DefaultScreen(i32* %3)
%19 = call i64 @RootWindow(i32* %3, i32 %18)
%20 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %2, i64 0, i32 0, i32 7
%21 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %2, i64 0, i32 0, i32 8
%22 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %2, i64 0, i32 0, i32 5
%23 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %2, i64 0, i32 0, i32 4
%24 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %2, i64 0, i32 0, i32 3
%25 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %2, i64 0, i32 0, i32 2
%26 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %2, i64 0, i32 0, i32 1
%27 = call i32 @XQueryPointer(i32* %3, i64 %19, i32* %20, i64* %21, i32* %22, i32* %23, i32* %24, i32* %25, i32* %26)
%28 = load i64, i64* %21
%29 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %2, i64 0, i32 0, i32 6
store i64 %28, i64* %29
%30 = icmp eq i64 %28, 0
br i1 %30, label %36, label %31
31: ; preds = %11, %31
%32 = phi i64 [ %34, %31 ], [ %28, %11 ]
store i64 %32, i64* %21
%33 = call i32 @XQueryPointer(i32* %3, i64 %32, i32* %20, i64* %29, i32* %22, i32* %23, i32* %24, i32* %25, i32* %26)
%34 = load i64, i64* %29
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %31
36: ; preds = %31, %11
%37 = load i32, i32* @PointerWindow
%38 = load i32, i32* @True
%39 = call i64 @XSendEvent(i32* %3, i32 %37, i32 %38, i32 4095, %struct.TYPE_6__* %2)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %36
%42 = load i32, i32* @stderr
%43 = call i32 @fprintf(i32 %42, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %44
44: ; preds = %41, %36
%45 = call i32 @XFlush(i32* %3)
%46 = call i32 @usleep(i32 100000)
%47 = load i32, i32* @ButtonRelease
store i32 %47, i32* %14
store i32 256, i32* %26
%48 = load i32, i32* @PointerWindow
%49 = load i32, i32* @True
%50 = call i64 @XSendEvent(i32* %3, i32 %48, i32 %49, i32 4095, %struct.TYPE_6__* %2)
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %44
%53 = load i32, i32* @stderr
%54 = call i32 @fprintf(i32 %53, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %55
55: ; preds = %52, %44
%56 = call i32 @XFlush(i32* %3)
%57 = call i32 @XCloseDisplay(i32* %3)
ret void
}