	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___VGLMouseMode                 ## -- Begin function __VGLMouseMode
	.p2align	4, 0x90
___VGLMouseMode:                        ## @__VGLMouseMode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_INTOFF
	movq	_VGLMouseShown@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_VGL_MOUSESHOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ebx, %ecx
	jne	LBB0_3
## %bb.1:
	movq	_VGL_MOUSEHIDE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	jne	LBB0_6
## %bb.2:
	movl	%ebx, (%rax)
	movq	_VGLMouseXpos@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VGLMouseYpos@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VGLDisplay@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_VGLMouseAndMask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %r10d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_VGLVDisplay@GOTPCREL(%rip), %rdi
	movl	%esi, %r8d
	movl	%edx, %r9d
	pushq	%rbx
	pushq	%r10
	jmp	LBB0_5
LBB0_3:
	cmpl	%ecx, %r14d
	jne	LBB0_6
## %bb.4:
	movq	_VGL_MOUSEHIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	_VGLMouseXpos@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VGLMouseYpos@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VGLDisplay@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_VGLMouseAndMask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ebx
	movl	4(%rax), %eax
	movq	_VGLVDisplay@GOTPCREL(%rip), %rdi
	movl	%esi, %r8d
	movl	%edx, %r9d
	pushq	%rbx
	pushq	%rax
LBB0_5:
	callq	___VGLBitmapCopy
	addq	$16, %rsp
LBB0_6:
	xorl	%eax, %eax
	callq	_INTON
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VGLMouseShown,4,2              ## @VGLMouseShown
	.comm	_VGL_MOUSESHOW,4,2              ## @VGL_MOUSESHOW
	.comm	_VGL_MOUSEHIDE,4,2              ## @VGL_MOUSEHIDE
	.comm	_VGLVDisplay,4,2                ## @VGLVDisplay
	.comm	_VGLMouseXpos,4,2               ## @VGLMouseXpos
	.comm	_VGLMouseYpos,4,2               ## @VGLMouseYpos
	.comm	_VGLDisplay,4,2                 ## @VGLDisplay
	.comm	_VGLMouseAndMask,8,3            ## @VGLMouseAndMask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___VGLMouseMode                 ; -- Begin function __VGLMouseMode
	.p2align	2
___VGLMouseMode:                        ; @__VGLMouseMode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_INTOFF
Lloh0:
	adrp	x8, _VGLMouseShown@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VGLMouseShown@GOTPAGEOFF]
	ldr	w19, [x8]
Lloh2:
	adrp	x9, _VGL_MOUSESHOW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VGL_MOUSESHOW@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w9, w20
	b.ne	LBB0_3
; %bb.1:
Lloh5:
	adrp	x9, _VGL_MOUSEHIDE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VGL_MOUSEHIDE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w19, w9
	b.ne	LBB0_6
; %bb.2:
	str	w20, [x8]
Lloh8:
	adrp	x8, _VGLMouseXpos@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VGLMouseXpos@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _VGLMouseYpos@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VGLMouseYpos@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _VGLDisplay@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VGLDisplay@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
Lloh17:
	adrp	x8, _VGLMouseAndMask@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VGLMouseAndMask@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldp	w8, w6, [x8]
	neg	w7, w8
	b	LBB0_5
LBB0_3:
	cmp	w19, w9
	b.ne	LBB0_6
; %bb.4:
Lloh20:
	adrp	x9, _VGL_MOUSEHIDE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VGL_MOUSEHIDE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	str	w9, [x8]
Lloh23:
	adrp	x8, _VGLMouseXpos@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VGLMouseXpos@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _VGLMouseYpos@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VGLMouseYpos@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x8, _VGLDisplay@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VGLDisplay@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
Lloh32:
	adrp	x8, _VGLMouseAndMask@GOTPAGE
Lloh33:
	ldr	x8, [x8, _VGLMouseAndMask@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ldp	w7, w6, [x8]
LBB0_5:
Lloh35:
	adrp	x0, _VGLVDisplay@GOTPAGE
Lloh36:
	ldr	x0, [x0, _VGLVDisplay@GOTPAGEOFF]
	mov	x4, x1
	mov	x5, x2
	bl	___VGLBitmapCopy
LBB0_6:
	bl	_INTON
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_VGLMouseShown,4,2              ; @VGLMouseShown
	.comm	_VGL_MOUSESHOW,4,2              ; @VGL_MOUSESHOW
	.comm	_VGL_MOUSEHIDE,4,2              ; @VGL_MOUSEHIDE
	.comm	_VGLVDisplay,4,2                ; @VGLVDisplay
	.comm	_VGLMouseXpos,4,2               ; @VGLMouseXpos
	.comm	_VGLMouseYpos,4,2               ; @VGLMouseYpos
	.comm	_VGLDisplay,4,2                 ; @VGLDisplay
	.comm	_VGLMouseAndMask,8,3            ; @VGLMouseAndMask
.subsections_via_symbols
