	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function install_grabs
_install_grabs:                         ## @install_grabs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_dpy@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_None@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_win@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_glConfig@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movl	4(%rcx), %ecx
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	subq	$8, %rsp
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	pushq	$0
	callq	_XWarpPointer
	addq	$32, %rsp
	movl	(%r15), %edi
	movq	_False@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_XSync
	movl	(%r15), %ebx
	movl	(%r12), %r14d
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_CreateNullCursor
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_XDefineCursor
	movl	(%r15), %edi
	movl	(%r12), %esi
	movq	_None@GOTPCREL(%rip), %r12
	movl	(%r13), %edx
	movq	_MOUSE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GrabModeAsync@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r12), %eax
	movq	_CurrentTime@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	subq	$8, %rsp
	movl	%r8d, %r9d
	pushq	%rbx
	pushq	%rax
	pushq	%rsi
	callq	_XGrabPointer
	addq	$32, %rsp
	movl	(%r15), %edi
	movq	_mouse_accel_numerator@GOTPCREL(%rip), %rsi
	movq	_mouse_accel_denominator@GOTPCREL(%rip), %rdx
	movq	_mouse_threshold@GOTPCREL(%rip), %rcx
	callq	_XGetPointerControl
	movl	(%r15), %edi
	movq	_True@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	movl	$1, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_XChangePointerControl
	movl	(%r15), %edi
	movl	(%r13), %esi
	callq	_XSync
	xorl	%eax, %eax
	callq	_Sys_Milliseconds
	movq	_mouseResetTime@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_in_dgamouse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movl	(%r15), %edi
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_XF86DGAQueryVersion
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	(%r15), %ebx
	movl	%ebx, %edi
	callq	_DefaultScreen
	movq	_XF86DGADirectMouse@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_XF86DGADirectVideo
	movl	(%r15), %edi
	movl	(%r12), %esi
	movq	_win@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	subq	$8, %rsp
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_XWarpPointer
	addq	$32, %rsp
	jmp	LBB0_6
LBB0_4:
	movq	_glConfig@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movl	4(%rcx), %ecx
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movq	_mwx@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movq	_mwy@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_my@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_mx@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_5
LBB0_2:
	movq	_ri@GOTPCREL(%rip), %rbx
	movq	_PRINT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	*8(%rbx)
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	*(%rbx)
LBB0_5:
	movq	_win@GOTPCREL(%rip), %rbx
LBB0_6:
	movq	_GrabModeAsync@GOTPCREL(%rip), %rax
	movl	(%r15), %edi
	movl	(%rbx), %esi
	movl	(%r13), %edx
	movl	(%rax), %ecx
	movl	(%r14), %r9d
	movl	%ecx, %r8d
	callq	_XGrabKeyboard
	movl	(%r15), %edi
	movl	(%r13), %esi
	callq	_XSync
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dpy,4,2                        ## @dpy
	.comm	_None,4,2                       ## @None
	.comm	_win,4,2                        ## @win
	.comm	_glConfig,8,2                   ## @glConfig
	.comm	_False,4,2                      ## @False
	.comm	_MOUSE_MASK,4,2                 ## @MOUSE_MASK
	.comm	_GrabModeAsync,4,2              ## @GrabModeAsync
	.comm	_CurrentTime,4,2                ## @CurrentTime
	.comm	_mouse_accel_numerator,4,2      ## @mouse_accel_numerator
	.comm	_mouse_accel_denominator,4,2    ## @mouse_accel_denominator
	.comm	_mouse_threshold,4,2            ## @mouse_threshold
	.comm	_True,4,2                       ## @True
	.comm	_mouseResetTime,4,2             ## @mouseResetTime
	.comm	_in_dgamouse,8,3                ## @in_dgamouse
	.comm	_ri,16,3                        ## @ri
	.comm	_PRINT_ALL,4,2                  ## @PRINT_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to detect XF86DGA Mouse\n"

L_.str.1:                               ## @.str.1
	.asciz	"in_dgamouse"

L_.str.2:                               ## @.str.2
	.asciz	"0"

	.comm	_XF86DGADirectMouse,4,2         ## @XF86DGADirectMouse
	.comm	_mwx,4,2                        ## @mwx
	.comm	_mwy,4,2                        ## @mwy
	.comm	_my,8,3                         ## @my
	.comm	_mx,8,3                         ## @mx
	.no_dead_strip	_install_grabs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function install_grabs
_install_grabs:                         ; @install_grabs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, _dpy@GOTPAGE
Lloh1:
	ldr	x21, [x21, _dpy@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x25, _None@GOTPAGE
Lloh3:
	ldr	x25, [x25, _None@GOTPAGEOFF]
Lloh4:
	adrp	x22, _win@GOTPAGE
Lloh5:
	ldr	x22, [x22, _win@GOTPAGEOFF]
	ldr	w1, [x25]
	ldr	w2, [x22]
Lloh6:
	adrp	x26, _glConfig@GOTPAGE
Lloh7:
	ldr	x26, [x26, _glConfig@GOTPAGEOFF]
	ldp	w8, w9, [x26]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w7, w8, #1
	cmp	w9, #0
	cinc	w8, w9, lt
	asr	w8, w8, #1
	str	w8, [sp]
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_XWarpPointer
	ldr	w0, [x21]
Lloh8:
	adrp	x23, _False@GOTPAGE
Lloh9:
	ldr	x23, [x23, _False@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_XSync
	ldr	w19, [x21]
	ldr	w20, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_CreateNullCursor
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_XDefineCursor
	ldr	w0, [x21]
	ldr	w1, [x22]
	ldr	w2, [x23]
Lloh10:
	adrp	x8, _MOUSE_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MOUSE_MASK@GOTPAGEOFF]
Lloh12:
	adrp	x20, _GrabModeAsync@GOTPAGE
Lloh13:
	ldr	x20, [x20, _GrabModeAsync@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	ldr	w4, [x20]
	ldr	w7, [x25]
Lloh15:
	adrp	x24, _CurrentTime@GOTPAGE
Lloh16:
	ldr	x24, [x24, _CurrentTime@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [sp]
	mov	x5, x4
	mov	x6, x1
	bl	_XGrabPointer
	ldr	w0, [x21]
Lloh17:
	adrp	x1, _mouse_accel_numerator@GOTPAGE
Lloh18:
	ldr	x1, [x1, _mouse_accel_numerator@GOTPAGEOFF]
Lloh19:
	adrp	x2, _mouse_accel_denominator@GOTPAGE
Lloh20:
	ldr	x2, [x2, _mouse_accel_denominator@GOTPAGEOFF]
Lloh21:
	adrp	x3, _mouse_threshold@GOTPAGE
Lloh22:
	ldr	x3, [x3, _mouse_threshold@GOTPAGEOFF]
	bl	_XGetPointerControl
	ldr	w0, [x21]
Lloh23:
	adrp	x8, _True@GOTPAGE
Lloh24:
	ldr	x8, [x8, _True@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x2, x1
	mov	w3, #1
	mov	w4, #1
	mov	w5, #0
	bl	_XChangePointerControl
	ldr	w0, [x21]
	ldr	w1, [x23]
	bl	_XSync
	bl	_Sys_Milliseconds
Lloh26:
	adrp	x8, _mouseResetTime@GOTPAGE
Lloh27:
	ldr	x8, [x8, _mouseResetTime@GOTPAGEOFF]
Lloh28:
	str	w0, [x8]
Lloh29:
	adrp	x8, _in_dgamouse@GOTPAGE
Lloh30:
	ldr	x8, [x8, _in_dgamouse@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x21]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_XF86DGAQueryVersion
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w19, [x21]
	mov	x0, x19
	bl	_DefaultScreen
	mov	x1, x0
Lloh32:
	adrp	x8, _XF86DGADirectMouse@GOTPAGE
Lloh33:
	ldr	x8, [x8, _XF86DGADirectMouse@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_XF86DGADirectVideo
	ldr	w0, [x21]
	ldr	w1, [x25]
	ldr	w2, [x22]
	str	wzr, [sp]
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_XWarpPointer
	b	LBB0_5
LBB0_3:
	ldp	w8, w9, [x26]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
Lloh35:
	adrp	x10, _mwx@GOTPAGE
Lloh36:
	ldr	x10, [x10, _mwx@GOTPAGEOFF]
Lloh37:
	str	w8, [x10]
	cmp	w9, #0
	cinc	w8, w9, lt
	asr	w8, w8, #1
Lloh38:
	adrp	x9, _mwy@GOTPAGE
Lloh39:
	ldr	x9, [x9, _mwy@GOTPAGEOFF]
Lloh40:
	str	w8, [x9]
Lloh41:
	adrp	x8, _my@GOTPAGE
Lloh42:
	ldr	x8, [x8, _my@GOTPAGEOFF]
Lloh43:
	str	xzr, [x8]
Lloh44:
	adrp	x8, _mx@GOTPAGE
Lloh45:
	ldr	x8, [x8, _mx@GOTPAGEOFF]
Lloh46:
	str	xzr, [x8]
	b	LBB0_5
LBB0_4:
Lloh47:
	adrp	x19, _ri@GOTPAGE
Lloh48:
	ldr	x19, [x19, _ri@GOTPAGEOFF]
	ldr	x8, [x19, #8]
Lloh49:
	adrp	x9, _PRINT_ALL@GOTPAGE
Lloh50:
	ldr	x9, [x9, _PRINT_ALL@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x9]
Lloh52:
	adrp	x1, l_.str@PAGE
Lloh53:
	add	x1, x1, l_.str@PAGEOFF
	blr	x8
	ldr	x8, [x19]
Lloh54:
	adrp	x0, l_.str.1@PAGE
Lloh55:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh56:
	adrp	x1, l_.str.2@PAGE
Lloh57:
	add	x1, x1, l_.str.2@PAGEOFF
	blr	x8
LBB0_5:
	ldr	w0, [x21]
	ldr	w1, [x22]
	ldr	w2, [x23]
	ldr	w3, [x20]
	ldr	w5, [x24]
	mov	x4, x3
	bl	_XGrabKeyboard
	ldr	w0, [x21]
	ldr	w1, [x23]
	bl	_XSync
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotStr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotStr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_dpy,4,2                        ; @dpy
	.comm	_None,4,2                       ; @None
	.comm	_win,4,2                        ; @win
	.comm	_glConfig,8,2                   ; @glConfig
	.comm	_False,4,2                      ; @False
	.comm	_MOUSE_MASK,4,2                 ; @MOUSE_MASK
	.comm	_GrabModeAsync,4,2              ; @GrabModeAsync
	.comm	_CurrentTime,4,2                ; @CurrentTime
	.comm	_mouse_accel_numerator,4,2      ; @mouse_accel_numerator
	.comm	_mouse_accel_denominator,4,2    ; @mouse_accel_denominator
	.comm	_mouse_threshold,4,2            ; @mouse_threshold
	.comm	_True,4,2                       ; @True
	.comm	_mouseResetTime,4,2             ; @mouseResetTime
	.comm	_in_dgamouse,8,3                ; @in_dgamouse
	.comm	_ri,16,3                        ; @ri
	.comm	_PRINT_ALL,4,2                  ; @PRINT_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to detect XF86DGA Mouse\n"

l_.str.1:                               ; @.str.1
	.asciz	"in_dgamouse"

l_.str.2:                               ; @.str.2
	.asciz	"0"

	.comm	_XF86DGADirectMouse,4,2         ; @XF86DGADirectMouse
	.comm	_mwx,4,2                        ; @mwx
	.comm	_mwy,4,2                        ; @mwy
	.comm	_my,8,3                         ; @my
	.comm	_mx,8,3                         ; @mx
	.no_dead_strip	_install_grabs
.subsections_via_symbols
