#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 */
typedef int /*<<< orphan*/ int32_t;
typedef int /*<<< orphan*/ Display;

/* Variables and functions */
int /*<<< orphan*/ None;
int /*<<< orphan*/ XDefaultRootWindow(int /*<<< orphan*/ *);
int /*<<< orphan*/ XFlush(int /*<<< orphan*/ *);
int /*<<< orphan*/ XWarpPointer(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                int /*<<< orphan*/, int /*<<< orphan*/,
                                int /*<<< orphan*/, int /*<<< orphan*/,
                                int /*<<< orphan*/, int /*<<< orphan*/,
                                int /*<<< orphan*/);
void move_mouse_cursor(Display *display, int32_t mouse_x, int32_t mouse_y) {
  XWarpPointer(display, None, XDefaultRootWindow(display), 0, 0, 0, 0, mouse_x,
               mouse_y);
  XFlush(display);
}


x86 assembly (clang, -O0):
<move_mouse_cursor>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    0x2e97(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <XDefaultRootWindow@plt>
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    %eax,%edx
mov    -0xc(%rbp),%r10d
mov    -0x10(%rbp),%eax
xor    %r9d,%r9d
mov    %r9d,%ecx
mov    %r9d,%r8d
movl   $0x0,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1030 <XWarpPointer@plt>
mov    -0x8(%rbp),%rdi
call   1050 <XFlush@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<move_mouse_cursor>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edx,%r15d
mov    %esi,%r14d
mov    %rdi,%rbx
mov    0x2ea1(%rip),%rax
mov    (%rax),%ebp
call   1040 <XDefaultRootWindow@plt>
sub    $0x8,%rsp
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   %r15
push   %r14
push   $0x0
call   1030 <XWarpPointer@plt>
add    $0x20,%rsp
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <XFlush@plt>

LLVM IR (-O0):
@None = global i32 0
define void @move_mouse_cursor(i32* %0, i32 %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32*, i32** %4
%8 = load i32, i32* @None
%9 = load i32*, i32** %4
%10 = call i32 @XDefaultRootWindow(i32* %9)
%11 = load i32, i32* %5
%12 = load i32, i32* %6
%13 = call i32 @XWarpPointer(i32* %7, i32 %8, i32 %10, i32 0, i32 0, i32 0, i32 0, i32 %11, i32 %12)
%14 = load i32*, i32** %4
%15 = call i32 @XFlush(i32* %14)
ret void
}

LLVM IR (-O2):
@None = global i32 0
define void @move_mouse_cursor(i32* %0, i32 %1, i32 %2) {
%4 = load i32, i32* @None
%5 = tail call i32 @XDefaultRootWindow(i32* %0)
%6 = tail call i32 @XWarpPointer(i32* %0, i32 %4, i32 %5, i32 0, i32 0, i32 0, i32 0, i32 %1, i32 %2)
%7 = tail call i32 @XFlush(i32* %0)
ret void
}