	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function VGLMouseAction
_VGLMouseAction:                        ## @VGLMouseAction
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_VGLMsuppressint@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_1
## %bb.7:
	movq	_VGLMintpending@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_VGLMintpending@GOTPCREL(%rip), %rbx
	movq	_VGLMouseXpos@GOTPCREL(%rip), %r12
	movq	_VGLMouseYpos@GOTPCREL(%rip), %r13
	movq	_VGLMouseButtons@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_VGL_MOUSEHIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___VGLMouseMode
	movq	-72(%rbp), %rcx
	movq	-64(%rbp), %rdx
	movq	%rcx, (%r12)
	movq	%rdx, (%r13)
	movl	%eax, %edi
	callq	___VGLMouseMode
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %eax
	movl	%eax, (%r14)
	movq	$0, (%r15)
	cmpl	$0, (%rbx)
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_INTOFF
	movl	$0, (%rbx)
	movq	_MOUSE_GETINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_CONS_MOUSECTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	leaq	-72(%rbp), %rdx
	callq	_ioctl
	movq	(%r12), %rax
	cmpq	-72(%rbp), %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	cmpq	-64(%rbp), %rax
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_VGLMsuppressint,8,3            ## @VGLMsuppressint
	.comm	_VGLMintpending,4,2             ## @VGLMintpending
	.comm	_MOUSE_GETINFO,4,2              ## @MOUSE_GETINFO
	.comm	_CONS_MOUSECTL,4,2              ## @CONS_MOUSECTL
	.comm	_VGLMouseXpos,8,3               ## @VGLMouseXpos
	.comm	_VGLMouseYpos,8,3               ## @VGLMouseYpos
	.comm	_VGL_MOUSEHIDE,4,2              ## @VGL_MOUSEHIDE
	.comm	_VGLMouseButtons,4,2            ## @VGLMouseButtons
	.no_dead_strip	_VGLMouseAction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function VGLMouseAction
_VGLMouseAction:                        ; @VGLMouseAction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x19, _VGLMsuppressint@GOTPAGE
Lloh1:
	ldr	x19, [x19, _VGLMsuppressint@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _VGLMintpending@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VGLMintpending@GOTPAGEOFF]
	mov	w9, #1
Lloh4:
	str	w9, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
Lloh5:
	adrp	x20, _VGLMintpending@GOTPAGE
Lloh6:
	ldr	x20, [x20, _VGLMintpending@GOTPAGEOFF]
Lloh7:
	adrp	x21, _MOUSE_GETINFO@GOTPAGE
Lloh8:
	ldr	x21, [x21, _MOUSE_GETINFO@GOTPAGEOFF]
Lloh9:
	adrp	x22, _CONS_MOUSECTL@GOTPAGE
Lloh10:
	ldr	x22, [x22, _CONS_MOUSECTL@GOTPAGEOFF]
Lloh11:
	adrp	x23, _VGLMouseXpos@GOTPAGE
Lloh12:
	ldr	x23, [x23, _VGLMouseXpos@GOTPAGEOFF]
Lloh13:
	adrp	x24, _VGLMouseYpos@GOTPAGE
Lloh14:
	ldr	x24, [x24, _VGLMouseYpos@GOTPAGEOFF]
Lloh15:
	adrp	x25, _VGLMouseButtons@GOTPAGE
Lloh16:
	ldr	x25, [x25, _VGLMouseButtons@GOTPAGEOFF]
Lloh17:
	adrp	x26, _VGL_MOUSEHIDE@GOTPAGE
Lloh18:
	ldr	x26, [x26, _VGL_MOUSEHIDE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x26]
	bl	___VGLMouseMode
	ldp	x8, x9, [sp]
	str	x8, [x23]
	str	x9, [x24]
	bl	___VGLMouseMode
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #16]
	str	w8, [x25]
	str	xzr, [x19]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_INTOFF
	str	wzr, [x20]
	ldr	w8, [x21]
	str	w8, [sp, #24]
	ldr	w1, [x22]
	mov	x2, sp
	mov	w0, #0
	bl	_ioctl
	ldr	x8, [x23]
	ldr	x9, [sp]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ne	LBB0_4
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_VGLMsuppressint,8,3            ; @VGLMsuppressint
	.comm	_VGLMintpending,4,2             ; @VGLMintpending
	.comm	_MOUSE_GETINFO,4,2              ; @MOUSE_GETINFO
	.comm	_CONS_MOUSECTL,4,2              ; @CONS_MOUSECTL
	.comm	_VGLMouseXpos,8,3               ; @VGLMouseXpos
	.comm	_VGLMouseYpos,8,3               ; @VGLMouseYpos
	.comm	_VGL_MOUSEHIDE,4,2              ; @VGL_MOUSEHIDE
	.comm	_VGLMouseButtons,4,2            ; @VGLMouseButtons
	.no_dead_strip	_VGLMouseAction
.subsections_via_symbols
