	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IN_StartupMouse                ## -- Begin function IN_StartupMouse
	.p2align	4, 0x90
_IN_StartupMouse:                       ## @IN_StartupMouse
	.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	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_s_wmv@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movq	%rax, 8(%r14)
	movq	_in_mouse@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	movq	_g_wv@GOTPCREL(%rip), %r15
	movq	8(%r15), %rcx
	movq	_VER_PLATFORM_WIN32_NT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.2:
	cmpl	$4, 16(%r15)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_Com_Printf
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_Cvar_Set
	movq	(%rbx), %rax
	movl	(%rax), %eax
LBB0_4:
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.6:
	cmpl	$0, (%r15)
	je	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	callq	_IN_InitDIMouse
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	jmp	LBB0_12
LBB0_13:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_5:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.5(%rip), %rdi
	callq	_Com_Printf
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.6(%rip), %rdi
LBB0_10:
	callq	_Com_Printf
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IN_InitWin32Mouse              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_s_wmv,16,3                     ## @s_wmv
	.comm	_in_mouse,8,3                   ## @in_mouse
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mouse control not active.\n"

	.comm	_g_wv,24,3                      ## @g_wv
	.comm	_VER_PLATFORM_WIN32_NT,8,3      ## @VER_PLATFORM_WIN32_NT
L_.str.1:                               ## @.str.1
	.asciz	"Disallowing DirectInput on NT 4.0\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"-1"

L_.str.4:                               ## @.str.4
	.asciz	"Skipping check for DirectInput\n"

L_.str.5:                               ## @.str.5
	.asciz	"No window for DirectInput mouse init, delaying\n"

	.comm	_qtrue,8,3                      ## @qtrue
L_.str.6:                               ## @.str.6
	.asciz	"Falling back to Win32 mouse support...\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IN_StartupMouse                ; -- Begin function IN_StartupMouse
	.p2align	2
_IN_StartupMouse:                       ; @IN_StartupMouse
	.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, _qfalse@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x19, _s_wmv@GOTPAGE
Lloh4:
	ldr	x19, [x19, _s_wmv@GOTPAGEOFF]
	stp	x8, x8, [x19]
Lloh5:
	adrp	x21, _in_mouse@GOTPAGE
Lloh6:
	ldr	x21, [x21, _in_mouse@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.1:
Lloh7:
	adrp	x20, _g_wv@GOTPAGE
Lloh8:
	ldr	x20, [x20, _g_wv@GOTPAGEOFF]
	ldr	x9, [x20, #8]
Lloh9:
	adrp	x10, _VER_PLATFORM_WIN32_NT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VER_PLATFORM_WIN32_NT@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldr	w11, [x20, #16]
	cmp	x9, x10
	ccmp	w11, #4, #0, eq
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Com_Printf
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_Cvar_Set
	ldr	x8, [x21]
	ldr	w8, [x8]
LBB0_3:
	cmn	w8, #1
	b.eq	LBB0_8
; %bb.4:
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.5:
	bl	_IN_InitDIMouse
	cbz	x0, LBB0_11
; %bb.6:
Lloh18:
	adrp	x8, _qtrue@GOTPAGE
Lloh19:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_10
LBB0_7:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_Com_Printf
LBB0_8:
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh25:
	adrp	x0, l_.str.5@PAGE
Lloh26:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_Com_Printf
Lloh27:
	adrp	x8, _qtrue@GOTPAGE
Lloh28:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_10:
	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
LBB0_11:
Lloh30:
	adrp	x0, l_.str.6@PAGE
Lloh31:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_12:
	bl	_Com_Printf
Lloh32:
	adrp	x8, _qtrue@GOTPAGE
Lloh33:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	x8, [x19]
	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
	b	_IN_InitWin32Mouse
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_s_wmv,16,3                     ; @s_wmv
	.comm	_in_mouse,8,3                   ; @in_mouse
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mouse control not active.\n"

	.comm	_g_wv,24,3                      ; @g_wv
	.comm	_VER_PLATFORM_WIN32_NT,8,3      ; @VER_PLATFORM_WIN32_NT
l_.str.1:                               ; @.str.1
	.asciz	"Disallowing DirectInput on NT 4.0\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"-1"

l_.str.4:                               ; @.str.4
	.asciz	"Skipping check for DirectInput\n"

l_.str.5:                               ; @.str.5
	.asciz	"No window for DirectInput mouse init, delaying\n"

	.comm	_qtrue,8,3                      ; @qtrue
l_.str.6:                               ; @.str.6
	.asciz	"Falling back to Win32 mouse support...\n"

.subsections_via_symbols
