	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IN_ActivateMouse
_IN_ActivateMouse:                      ## @IN_ActivateMouse
	.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
	movq	_mouseAvailable@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.1:
	movl	%edi, %ebx
	movq	_SDL_INIT_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_WasInit
	testl	%eax, %eax
	je	LBB0_12
## %bb.2:
	movq	_mouseActive@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.4:
	testl	%ebx, %ebx
	jne	LBB0_11
	jmp	LBB0_5
LBB0_3:
	movq	_SDL_TRUE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_SDL_SetRelativeMouseMode
	movq	_SDL_window@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_SDL_SetWindowGrab
	xorl	%eax, %eax
	callq	_IN_GobbleMotionEvents
	testl	%ebx, %ebx
	jne	LBB0_11
LBB0_5:
	movq	_in_nograb@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	jne	LBB0_7
## %bb.6:
	cmpq	$0, (%r14)
	jne	LBB0_11
LBB0_7:
	cmpq	$0, 8(%rax)
	jne	LBB0_8
## %bb.9:
	movq	_SDL_TRUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_8:
	movq	_SDL_FALSE@GOTPCREL(%rip), %rbx
LBB0_10:
	movl	(%rbx), %edi
	callq	_SDL_SetRelativeMouseMode
	movq	_SDL_window@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_SDL_SetWindowGrab
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
LBB0_11:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mouseAvailable,4,2             ## @mouseAvailable
	.comm	_SDL_INIT_VIDEO,4,2             ## @SDL_INIT_VIDEO
	.comm	_mouseActive,8,3                ## @mouseActive
	.comm	_SDL_TRUE,4,2                   ## @SDL_TRUE
	.comm	_SDL_window,4,2                 ## @SDL_window
	.comm	_in_nograb,8,3                  ## @in_nograb
	.comm	_SDL_FALSE,4,2                  ## @SDL_FALSE
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_qtrue,8,3                      ## @qtrue
	.no_dead_strip	_IN_ActivateMouse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IN_ActivateMouse
_IN_ActivateMouse:                      ; @IN_ActivateMouse
	.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
Lloh0:
	adrp	x8, _mouseAvailable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mouseAvailable@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _SDL_INIT_VIDEO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDL_INIT_VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_SDL_WasInit
	cbz	w0, LBB0_8
; %bb.2:
Lloh6:
	adrp	x20, _mouseActive@GOTPAGE
Lloh7:
	ldr	x20, [x20, _mouseActive@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
	cbnz	w19, LBB0_7
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x21, _SDL_TRUE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _SDL_TRUE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_SDL_SetRelativeMouseMode
Lloh10:
	adrp	x8, _SDL_window@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDL_window@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_SDL_SetWindowGrab
	bl	_IN_GobbleMotionEvents
	cbnz	w19, LBB0_7
LBB0_5:
Lloh13:
	adrp	x19, _in_nograb@GOTPAGE
Lloh14:
	ldr	x19, [x19, _in_nograb@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x8]
	ldr	x10, [x20]
	cmp	x9, #0
	ccmp	x10, #0, #4, eq
	b.ne	LBB0_7
; %bb.6:
Lloh15:
	adrp	x9, _SDL_FALSE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SDL_FALSE@GOTPAGEOFF]
	ldr	x8, [x8, #8]
Lloh17:
	adrp	x10, _SDL_TRUE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SDL_TRUE@GOTPAGEOFF]
	cmp	x8, #0
	csel	x21, x10, x9, eq
	ldr	w0, [x21]
	bl	_SDL_SetRelativeMouseMode
Lloh19:
	adrp	x8, _SDL_window@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SDL_window@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_SDL_SetWindowGrab
Lloh22:
	adrp	x8, _qfalse@GOTPAGE
Lloh23:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	x8, [x9]
LBB0_7:
Lloh25:
	adrp	x8, _qtrue@GOTPAGE
Lloh26:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_8:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_mouseAvailable,4,2             ; @mouseAvailable
	.comm	_SDL_INIT_VIDEO,4,2             ; @SDL_INIT_VIDEO
	.comm	_mouseActive,8,3                ; @mouseActive
	.comm	_SDL_TRUE,4,2                   ; @SDL_TRUE
	.comm	_SDL_window,4,2                 ; @SDL_window
	.comm	_in_nograb,8,3                  ; @in_nograb
	.comm	_SDL_FALSE,4,2                  ; @SDL_FALSE
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_qtrue,8,3                      ; @qtrue
	.no_dead_strip	_IN_ActivateMouse
.subsections_via_symbols
