	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IN_ActivateDIMouse             ## -- Begin function IN_ActivateDIMouse
	.p2align	4, 0x90
_IN_ActivateDIMouse:                    ## @IN_ActivateDIMouse
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_g_pMouse@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_3
## %bb.1:
	callq	_IDirectInputDevice_Acquire
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_IN_InitDIMouse
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_Com_Printf
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	popq	%rbp
	jmp	_Cvar_Set                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_g_pMouse,4,2                   ## @g_pMouse
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Falling back to Win32 mouse support...\n"

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IN_ActivateDIMouse             ; -- Begin function IN_ActivateDIMouse
	.p2align	2
_IN_ActivateDIMouse:                    ; @IN_ActivateDIMouse
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _g_pMouse@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_pMouse@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cbz	w0, LBB0_3
; %bb.1:
	bl	_IDirectInputDevice_Acquire
	bl	_FAILED
	cbz	x0, LBB0_3
; %bb.2:
	bl	_IN_InitDIMouse
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_Cvar_Set
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_g_pMouse,4,2                   ; @g_pMouse
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Falling back to Win32 mouse support...\n"

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

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

.subsections_via_symbols
