	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLMouseRestore                ## -- Begin function VGLMouseRestore
	.p2align	4, 0x90
_VGLMouseRestore:                       ## @VGLMouseRestore
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_INTOFF
	movq	_MOUSE_GETINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movq	_CONS_MOUSECTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-24(%rbp), %rdx
	xorl	%edi, %edi
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_MOUSE_MOVEABS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movq	_VGLMouseXpos@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_VGLMouseYpos@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	(%rbx), %esi
	leaq	-24(%rbp), %rdx
	xorl	%edi, %edi
	callq	_ioctl
LBB0_2:
	xorl	%eax, %eax
	callq	_INTON
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MOUSE_GETINFO,4,2              ## @MOUSE_GETINFO
	.comm	_CONS_MOUSECTL,4,2              ## @CONS_MOUSECTL
	.comm	_MOUSE_MOVEABS,4,2              ## @MOUSE_MOVEABS
	.comm	_VGLMouseXpos,4,2               ## @VGLMouseXpos
	.comm	_VGLMouseYpos,4,2               ## @VGLMouseYpos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLMouseRestore                ; -- Begin function VGLMouseRestore
	.p2align	2
_VGLMouseRestore:                       ; @VGLMouseRestore
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_INTOFF
Lloh0:
	adrp	x8, _MOUSE_GETINFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MOUSE_GETINFO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x19, _CONS_MOUSECTL@GOTPAGE
Lloh4:
	ldr	x19, [x19, _CONS_MOUSECTL@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	x2, sp
	mov	w0, #0
	bl	_ioctl
	cbnz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _MOUSE_MOVEABS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MOUSE_MOVEABS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh8:
	adrp	x8, _VGLMouseXpos@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VGLMouseXpos@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _VGLMouseYpos@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VGLMouseYpos@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [sp]
	ldr	w1, [x19]
	mov	x2, sp
	bl	_ioctl
LBB0_2:
	bl	_INTON
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MOUSE_GETINFO,4,2              ; @MOUSE_GETINFO
	.comm	_CONS_MOUSECTL,4,2              ; @CONS_MOUSECTL
	.comm	_MOUSE_MOVEABS,4,2              ; @MOUSE_MOVEABS
	.comm	_VGLMouseXpos,4,2               ; @VGLMouseXpos
	.comm	_VGLMouseYpos,4,2               ; @VGLMouseYpos
.subsections_via_symbols
