	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IN_DeactivateMouse
_IN_DeactivateMouse:                    ## @IN_DeactivateMouse
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_SDL_INIT_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_WasInit
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.2:
	movq	_SDL_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_ShowCursor
LBB0_3:
	movq	_mouseAvailable@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.4:
	movq	_mouseActive@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.5:
	xorl	%eax, %eax
	callq	_IN_GobbleMotionEvents
	movq	_SDL_window@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SDL_FALSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_SDL_SetWindowGrab
	movl	(%rbx), %edi
	callq	_SDL_SetRelativeMouseMode
	movl	(%r15), %edi
	callq	_SDL_GetWindowFlags
	movq	_SDL_WINDOW_MOUSE_FOCUS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	movq	_cls@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %eax
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	callq	_SDL_WarpMouseInWindow
LBB0_7:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDL_INIT_VIDEO,4,2             ## @SDL_INIT_VIDEO
	.comm	_SDL_TRUE,4,2                   ## @SDL_TRUE
	.comm	_mouseAvailable,4,2             ## @mouseAvailable
	.comm	_mouseActive,8,3                ## @mouseActive
	.comm	_SDL_window,4,2                 ## @SDL_window
	.comm	_SDL_FALSE,4,2                  ## @SDL_FALSE
	.comm	_SDL_WINDOW_MOUSE_FOCUS,4,2     ## @SDL_WINDOW_MOUSE_FOCUS
	.comm	_cls,8,2                        ## @cls
	.comm	_qfalse,8,3                     ## @qfalse
	.no_dead_strip	_IN_DeactivateMouse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IN_DeactivateMouse
_IN_DeactivateMouse:                    ; @IN_DeactivateMouse
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _SDL_INIT_VIDEO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDL_INIT_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SDL_WasInit
	cbz	w0, LBB0_7
; %bb.1:
	cbnz	w19, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _SDL_TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDL_TRUE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_SDL_ShowCursor
LBB0_3:
Lloh6:
	adrp	x8, _mouseAvailable@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mouseAvailable@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x19, _mouseActive@GOTPAGE
Lloh10:
	ldr	x19, [x19, _mouseActive@GOTPAGEOFF]
	ldr	x9, [x19]
	cmp	w8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_7
; %bb.4:
	bl	_IN_GobbleMotionEvents
Lloh11:
	adrp	x20, _SDL_window@GOTPAGE
Lloh12:
	ldr	x20, [x20, _SDL_window@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh13:
	adrp	x21, _SDL_FALSE@GOTPAGE
Lloh14:
	ldr	x21, [x21, _SDL_FALSE@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_SDL_SetWindowGrab
	ldr	w0, [x21]
	bl	_SDL_SetRelativeMouseMode
	ldr	w0, [x20]
	bl	_SDL_GetWindowFlags
Lloh15:
	adrp	x8, _SDL_WINDOW_MOUSE_FOCUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SDL_WINDOW_MOUSE_FOCUS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x20]
Lloh18:
	adrp	x8, _cls@GOTPAGE
Lloh19:
	ldr	x8, [x8, _cls@GOTPAGEOFF]
	ldp	w9, w8, [x8]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w1, w9, #1
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	bl	_SDL_WarpMouseInWindow
LBB0_6:
Lloh20:
	adrp	x8, _qfalse@GOTPAGE
Lloh21:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SDL_INIT_VIDEO,4,2             ; @SDL_INIT_VIDEO
	.comm	_SDL_TRUE,4,2                   ; @SDL_TRUE
	.comm	_mouseAvailable,4,2             ; @mouseAvailable
	.comm	_mouseActive,8,3                ; @mouseActive
	.comm	_SDL_window,4,2                 ; @SDL_window
	.comm	_SDL_FALSE,4,2                  ; @SDL_FALSE
	.comm	_SDL_WINDOW_MOUSE_FOCUS,4,2     ; @SDL_WINDOW_MOUSE_FOCUS
	.comm	_cls,8,2                        ; @cls
	.comm	_qfalse,8,3                     ; @qfalse
	.no_dead_strip	_IN_DeactivateMouse
.subsections_via_symbols
