#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*/ Display;

/* Variables and functions */
int /*<<< orphan*/ None;
int /*<<< orphan*/ XFlush(int /*<<< orphan*/ *);
int /*<<< orphan*/ XWarpPointer(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                int /*<<< orphan*/, int /*<<< orphan*/,
                                int /*<<< orphan*/, int /*<<< orphan*/,
                                int /*<<< orphan*/, int, int);
int /*<<< orphan*/ coords(int /*<<< orphan*/ *, int *, int *);
int /*<<< orphan*/ usleep(int);
void moveTo(Display *display, int x, int y) {
  int xTmp = 0, yTmp = 0;
  coords(display, &xTmp, &yTmp);
  XWarpPointer(display, None, None, 0, 0, 0, 0, -xTmp, -yTmp);
  XWarpPointer(display, None, None, 0, 0, 0, 0, x, y);
  XFlush(display);
  usleep(1);
}


x86 assembly (clang, -O0):
<moveTo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1030 <coords@plt>
mov    -0x8(%rbp),%rdi
mov    0x2e6c(%rip),%rax
mov    (%rax),%esi
mov    0x2e63(%rip),%rax
mov    (%rax),%edx
xor    %r10d,%r10d
sub    -0x14(%rbp),%r10d
xor    %eax,%eax
sub    -0x18(%rbp),%eax
xor    %r9d,%r9d
mov    %r9d,%ecx
mov    %r9d,%r8d
movl   $0x0,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1040 <XWarpPointer@plt>
mov    -0x8(%rbp),%rdi
mov    0x2e2c(%rip),%rax
mov    (%rax),%esi
mov    0x2e23(%rip),%rax
mov    (%rax),%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   1040 <XWarpPointer@plt>
mov    -0x8(%rbp),%rdi
call   1050 <XFlush@plt>
mov    $0x1,%edi
call   1060 <usleep@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<moveTo>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %edx,%r15d
mov    %esi,%r14d
mov    %rdi,%r13
movl   $0x0,0xc(%rsp)
movl   $0x0,0x8(%rsp)
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1030 <coords@plt>
mov    0x2e6c(%rip),%r12
mov    (%r12),%edx
xor    %eax,%eax
xor    %ebx,%ebx
sub    0xc(%rsp),%ebx
sub    0x8(%rsp),%eax
sub    $0x8,%rsp
mov    %r13,%rdi
mov    %edx,%esi
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   %rax
push   %rbx
push   $0x0
call   1040 <XWarpPointer@plt>
add    $0x20,%rsp
mov    (%r12),%edx
sub    $0x8,%rsp
mov    %r13,%rdi
mov    %edx,%esi
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   %r15
push   %r14
push   $0x0
call   1040 <XWarpPointer@plt>
add    $0x20,%rsp
mov    %r13,%rdi
call   1050 <XFlush@plt>
mov    $0x1,%edi
call   1060 <usleep@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@None = global i32 0
define void @moveTo(i32* %0, i32 %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32* %0, i32** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
%9 = load i32*, i32** %4
%10 = call i32 @coords(i32* %9, i32* %7, i32* %8)
%11 = load i32*, i32** %4
%12 = load i32, i32* @None
%13 = load i32, i32* @None
%14 = load i32, i32* %7
%15 = sub nsw i32 0, %14
%16 = load i32, i32* %8
%17 = sub nsw i32 0, %16
%18 = call i32 @XWarpPointer(i32* %11, i32 %12, i32 %13, i32 0, i32 0, i32 0, i32 0, i32 %15, i32 %17)
%19 = load i32*, i32** %4
%20 = load i32, i32* @None
%21 = load i32, i32* @None
%22 = load i32, i32* %5
%23 = load i32, i32* %6
%24 = call i32 @XWarpPointer(i32* %19, i32 %20, i32 %21, i32 0, i32 0, i32 0, i32 0, i32 %22, i32 %23)
%25 = load i32*, i32** %4
%26 = call i32 @XFlush(i32* %25)
%27 = call i32 @usleep(i32 1)
ret void
}

LLVM IR (-O2):
@None = global i32 0
define void @moveTo(i32* %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%7 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%8 = call i32 @coords(i32* %0, i32* %4, i32* %5)
%9 = load i32, i32* @None
%10 = load i32, i32* %4
%11 = sub nsw i32 0, %10
%12 = load i32, i32* %5
%13 = sub nsw i32 0, %12
%14 = call i32 @XWarpPointer(i32* %0, i32 %9, i32 %9, i32 0, i32 0, i32 0, i32 0, i32 %11, i32 %13)
%15 = load i32, i32* @None
%16 = call i32 @XWarpPointer(i32* %0, i32 %15, i32 %15, i32 0, i32 0, i32 0, i32 0, i32 %1, i32 %2)
%17 = call i32 @XFlush(i32* %0)
%18 = call i32 @usleep(i32 1)
ret void
}