// File: /workspace/github_c_makefile_star2_O0/seanpringle[P]xoat/./spot.c
// Function: spot_warp_pointer
void spot_warp_pointer(int spot, int mon)
{
	Window wroot, child;
	int root_x, root_y, win_x, win_y;
	unsigned int mask;

	if (XQueryPointer(display, root, &wroot, &child, &root_x, &root_y, &win_x, &win_y, &mask)
		&& !INTERSECT(monitors[mon].spots[spot].x, monitors[mon].spots[spot].y, monitors[mon].spots[spot].w, monitors[mon].spots[spot].h, root_x, root_y, 1, 1))
	{
		XWarpPointer(display, None, root, 0, 0, 0, 0,
			monitors[mon].spots[spot].x + monitors[mon].spots[spot].w - 10,
			monitors[mon].spots[spot].y + 10);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movq 0x93fb(%rip), %rdi      # 0x13ba0
movq 0x99ec(%rip), %rsi      # 0x14198
leaq -0x10(%rbp), %rdx
leaq -0x18(%rbp), %rcx
leaq -0x1c(%rbp), %r8
leaq -0x20(%rbp), %r9
leaq -0x24(%rbp), %r11
leaq -0x28(%rbp), %r10
leaq -0x2c(%rbp), %rax
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x3580
cmpl $0x0, %eax
je 0xaac2
movslq -0x8(%rbp), %rcx
leaq 0x93c1(%rip), %rax      # 0x13bb0
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movswl 0x8(%rax,%rcx,8), %eax
cmpl -0x1c(%rbp), %eax
jne 0xa828
movslq -0x8(%rbp), %rcx
leaq 0x93a1(%rip), %rax      # 0x13bb0
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movswl 0xc(%rax,%rcx,8), %eax
cmpl $0x1, %eax
je 0xa90d
movslq -0x8(%rbp), %rcx
leaq 0x937d(%rip), %rax      # 0x13bb0
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movswl 0x8(%rax,%rcx,8), %eax
movslq -0x8(%rbp), %rdx
leaq 0x9362(%rip), %rcx      # 0x13bb0
imulq $0x48, %rdx, %rdx
addq %rdx, %rcx
movslq -0x4(%rbp), %rdx
movswl 0xc(%rcx,%rdx,8), %ecx
addl %ecx, %eax
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jge 0xa8a7
movslq -0x8(%rbp), %rcx
leaq 0x933b(%rip), %rax      # 0x13bb0
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movswl 0x8(%rax,%rcx,8), %eax
movslq -0x8(%rbp), %rdx
leaq 0x9320(%rip), %rcx      # 0x13bb0
imulq $0x48, %rdx, %rdx
addq %rdx, %rcx
movslq -0x4(%rbp), %rdx
movswl 0xc(%rcx,%rdx,8), %ecx
addl %ecx, %eax
movl %eax, -0x30(%rbp)
jmp 0xa8b0
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x34(%rbp)
movslq -0x8(%rbp), %rcx
leaq 0x92ef(%rip), %rax      # 0x13bb0
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movswl 0x8(%rax,%rcx,8), %eax
cmpl -0x1c(%rbp), %eax
jle 0xa8f6
movslq -0x8(%rbp), %rcx
leaq 0x92cf(%rip), %rax      # 0x13bb0
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movswl 0x8(%rax,%rcx,8), %eax
movl %eax, -0x38(%rbp)
jmp 0xa8fc
movl -0x1c(%rbp), %eax
movl %eax, -0x38(%rbp)
movl -0x34(%rbp), %eax
movl -0x38(%rbp), %ecx
subl %ecx, %eax
cmpl $0x0, %eax
jle 0xaa36
movslq -0x8(%rbp), %rcx
leaq 0x9298(%rip), %rax      # 0x13bb0
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movswl 0xa(%rax,%rcx,8), %eax
cmpl -0x20(%rbp), %eax
jne 0xa951
movslq -0x8(%rbp), %rcx
leaq 0x9278(%rip), %rax      # 0x13bb0
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movswl 0xe(%rax,%rcx,8), %eax
cmpl $0x1, %eax
je 0xaac2
movslq -0x8(%rbp), %rcx
leaq 0x9254(%rip), %rax      # 0x13bb0
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movswl 0xa(%rax,%rcx,8), %eax
movslq -0x8(%rbp), %rdx
leaq 0x9239(%rip), %rcx      # 0x13bb0
imulq $0x48, %rdx, %rdx
addq %rdx, %rcx
movslq -0x4(%rbp), %rdx
movswl 0xe(%rcx,%rdx,8), %ecx
addl %ecx, %eax
movl -0x20(%rbp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jge 0xa9d0
movslq -0x8(%rbp), %rcx
leaq 0x9212(%rip), %rax      # 0x13bb0
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movswl 0xa(%rax,%rcx,8), %eax
movslq -0x8(%rbp), %rdx
leaq 0x91f7(%rip), %rcx      # 0x13bb0
imulq $0x48, %rdx, %rdx
addq %rdx, %rcx
movslq -0x4(%rbp), %rdx
movswl 0xe(%rcx,%rdx,8), %ecx
addl %ecx, %eax
movl %eax, -0x3c(%rbp)
jmp 0xa9d9
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, -0x40(%rbp)
movslq -0x8(%rbp), %rcx
leaq 0x91c6(%rip), %rax      # 0x13bb0
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movswl 0xa(%rax,%rcx,8), %eax
cmpl -0x20(%rbp), %eax
jle 0xaa1f
movslq -0x8(%rbp), %rcx
leaq 0x91a6(%rip), %rax      # 0x13bb0
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movswl 0xa(%rax,%rcx,8), %eax
movl %eax, -0x44(%rbp)
jmp 0xaa25
movl -0x20(%rbp), %eax
movl %eax, -0x44(%rbp)
movl -0x40(%rbp), %eax
movl -0x44(%rbp), %ecx
subl %ecx, %eax
cmpl $0x0, %eax
jg 0xaac2
movq 0x9163(%rip), %rdi      # 0x13ba0
movq 0x9754(%rip), %rdx      # 0x14198
movslq -0x8(%rbp), %rcx
leaq 0x9161(%rip), %rax      # 0x13bb0
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movswl 0x8(%rax,%rcx,8), %r10d
movslq -0x8(%rbp), %rcx
leaq 0x9145(%rip), %rax      # 0x13bb0
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movswl 0xc(%rax,%rcx,8), %eax
addl %eax, %r10d
subl $0xa, %r10d
movslq -0x8(%rbp), %rcx
leaq 0x9123(%rip), %rax      # 0x13bb0
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movswl 0xa(%rax,%rcx,8), %eax
addl $0xa, %eax
xorl %ecx, %ecx
movl %ecx, %esi
xorl %r9d, %r9d
movl %r9d, %ecx
movl %r9d, %r8d
movl $0x0, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x3450
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)