	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IN_DIMouse                     ## -- Begin function IN_DIMouse
	.p2align	4, 0x90
_IN_DIMouse:                            ## @IN_DIMouse
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rax
	movq	_g_pMouse@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_27
## %bb.1:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	$1, -60(%rbp)
	leaq	-56(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movl	$12, %esi
	xorl	%r8d, %r8d
	callq	_IDirectInputDevice_GetDeviceData
	movq	_DIERR_INPUTLOST@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_23
## %bb.2:
	movq	_DIERR_NOTACQUIRED@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_23
## %bb.3:
	leaq	-60(%rbp), %r13
	leaq	LJTI0_0(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_24
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -60(%rbp)
	je	LBB0_24
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-56(%rbp), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%r12,%rax,4), %rax
	addq	%r12, %rax
	movq	_SE_KEY@GOTPCREL(%rip), %rcx
	jmpq	*%rax
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -52(%rbp)
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rbx
	movl	-48(%rbp), %edi
	movq	_SE_KEY@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	js	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_K_MWHEELUP@GOTPCREL(%rip), %r15
	jmp	LBB0_20
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	testb	$-128, -52(%rbp)
	movl	-48(%rbp), %edi
	movl	(%rcx), %esi
	movq	_K_MOUSE4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jne	LBB0_10
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	testb	$-128, -52(%rbp)
	movl	-48(%rbp), %edi
	movl	(%rcx), %esi
	movq	_K_MOUSE3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jne	LBB0_10
	jmp	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	testb	$-128, -52(%rbp)
	movl	-48(%rbp), %edi
	movl	(%rcx), %esi
	movq	_K_MOUSE2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	je	LBB0_15
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_qtrue@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	testb	$-128, -52(%rbp)
	movl	-48(%rbp), %edi
	movl	(%rcx), %esi
	movq	_K_MOUSE1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jne	LBB0_10
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_qfalse@GOTPCREL(%rip), %rax
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_Sys_QueEvent
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, -60(%rbp)
	movl	(%rbx), %edi
	movl	$12, %esi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_IDirectInputDevice_GetDeviceData
	cmpq	(%r15), %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	(%r14), %rax
	jne	LBB0_4
	jmp	LBB0_23
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_K_MWHEELDOWN@GOTPCREL(%rip), %r15
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edx
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_Sys_QueEvent
	movl	-48(%rbp), %edi
	movl	(%r13), %esi
	movl	(%r15), %edx
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_Sys_QueEvent
	movq	%rbx, %r13
	movq	_DIERR_INPUTLOST@GOTPCREL(%rip), %r15
	movq	_g_pMouse@GOTPCREL(%rip), %rbx
	jmp	LBB0_21
LBB0_23:
	movl	(%rbx), %edi
	callq	_IDirectInputDevice_Acquire
LBB0_27:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movl	(%rbx), %edi
	leaq	-88(%rbp), %rdx
	movl	$12, %esi
	callq	_IDirectInputDevice_GetDeviceState
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_27
LBB0_26:
	movl	-88(%rbp), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	-84(%rbp), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_27
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_g_pMouse,4,2                   ## @g_pMouse
	.comm	_DIERR_INPUTLOST,8,3            ## @DIERR_INPUTLOST
	.comm	_DIERR_NOTACQUIRED,8,3          ## @DIERR_NOTACQUIRED
	.comm	_SE_KEY,4,2                     ## @SE_KEY
	.comm	_K_MOUSE1,4,2                   ## @K_MOUSE1
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_K_MOUSE2,4,2                   ## @K_MOUSE2
	.comm	_K_MOUSE3,4,2                   ## @K_MOUSE3
	.comm	_K_MOUSE4,4,2                   ## @K_MOUSE4
	.comm	_K_MWHEELDOWN,4,2               ## @K_MWHEELDOWN
	.comm	_K_MWHEELUP,4,2                 ## @K_MWHEELUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IN_DIMouse                     ; -- Begin function IN_DIMouse
	.p2align	2
_IN_DIMouse:                            ; @IN_DIMouse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x0, x1, [sp]                    ; 16-byte Folded Spill
Lloh0:
	adrp	x21, _g_pMouse@GOTPAGE
Lloh1:
	ldr	x21, [x21, _g_pMouse@GOTPAGEOFF]
	ldr	w0, [x21]
	cbz	w0, LBB0_3
; %bb.1:
	mov	w22, #1
	str	w22, [sp, #20]
	add	x2, sp, #32
	add	x3, sp, #20
	mov	w1, #12
	mov	w4, #0
	bl	_IDirectInputDevice_GetDeviceData
Lloh2:
	adrp	x23, _DIERR_INPUTLOST@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DIERR_INPUTLOST@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh4:
	adrp	x24, _DIERR_NOTACQUIRED@GOTPAGE
Lloh5:
	ldr	x24, [x24, _DIERR_NOTACQUIRED@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_4
LBB0_2:
	ldr	w0, [x21]
	bl	_IDirectInputDevice_Acquire
LBB0_3:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
Lloh6:
	adrp	x25, lJTI0_0@PAGE
Lloh7:
	add	x25, x25, lJTI0_0@PAGEOFF
Lloh8:
	adrp	x26, _SE_KEY@GOTPAGE
Lloh9:
	ldr	x26, [x26, _SE_KEY@GOTPAGEOFF]
Lloh10:
	adrp	x28, _qtrue@GOTPAGE
Lloh11:
	ldr	x28, [x28, _qtrue@GOTPAGEOFF]
Lloh12:
	adrp	x27, _qfalse@GOTPAGE
Lloh13:
	ldr	x27, [x27, _qfalse@GOTPAGEOFF]
Lloh14:
	adrp	x19, _K_MOUSE4@GOTPAGE
Lloh15:
	ldr	x19, [x19, _K_MOUSE4@GOTPAGEOFF]
Lloh16:
	adrp	x20, _K_MOUSE3@GOTPAGE
Lloh17:
	ldr	x20, [x20, _K_MOUSE3@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_9 Depth=1
Lloh18:
	adrp	x22, _K_MWHEELUP@GOTPAGE
Lloh19:
	ldr	x22, [x22, _K_MWHEELUP@GOTPAGEOFF]
	ldr	w2, [x22]
	ldr	w3, [x28]
	mov	w4, #0
	mov	x5, #0
	bl	_Sys_QueEvent
	ldr	w0, [sp, #40]
	ldr	w1, [x26]
	ldr	w2, [x22]
	mov	w22, #1
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w3, [x27]
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	w4, #0
	mov	x5, #0
	bl	_Sys_QueEvent
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	str	w22, [sp, #20]
	ldr	w0, [x21]
	add	x2, sp, #32
	add	x3, sp, #20
	mov	w1, #12
	mov	w4, #0
	bl	_IDirectInputDevice_GetDeviceData
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_2
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	bl	_FAILED
	cbnz	x0, LBB0_23
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #32]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	adr	x9, LBB0_13
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #36]
	cbz	w8, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [sp, #40]
	ldr	w1, [x26]
	tbz	w8, #31, LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh20:
	adrp	x8, _K_MWHEELDOWN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _K_MWHEELDOWN@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	ldr	w3, [x28]
	mov	w4, #0
	mov	x5, #0
	bl	_Sys_QueEvent
	ldr	w0, [sp, #40]
	ldr	w1, [x26]
Lloh23:
	adrp	x8, _K_MWHEELDOWN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _K_MWHEELDOWN@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	b	LBB0_6
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [sp, #40]
	ldr	w1, [x26]
	ldr	w2, [x19]
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [sp, #40]
	ldr	w1, [x26]
	ldr	w2, [x20]
	b	LBB0_21
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [sp, #40]
	ldr	w1, [x26]
Lloh26:
	adrp	x8, _K_MOUSE2@GOTPAGE
Lloh27:
	ldr	x8, [x8, _K_MOUSE2@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [sp, #40]
	ldr	w1, [x26]
Lloh28:
	adrp	x8, _K_MOUSE1@GOTPAGE
Lloh29:
	ldr	x8, [x8, _K_MOUSE1@GOTPAGEOFF]
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x8]
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w8, [sp, #36]
	tbz	w8, #7, LBB0_6
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w3, [x28]
	b	LBB0_7
LBB0_23:
	ldr	w0, [x21]
	add	x2, sp, #24
	mov	w1, #12
	bl	_IDirectInputDevice_GetDeviceState
	bl	_FAILED
	cbz	x0, LBB0_25
; %bb.24:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	wzr, [x8]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	wzr, [x8]
	b	LBB0_3
LBB0_25:
	ldp	w8, w9, [sp, #24]
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	str	w8, [x10]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	w9, [x8]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_16-LBB0_13)>>2
	.byte	(LBB0_17-LBB0_13)>>2
	.byte	(LBB0_18-LBB0_13)>>2
	.byte	(LBB0_19-LBB0_13)>>2
                                        ; -- End function
	.comm	_g_pMouse,4,2                   ; @g_pMouse
	.comm	_DIERR_INPUTLOST,8,3            ; @DIERR_INPUTLOST
	.comm	_DIERR_NOTACQUIRED,8,3          ; @DIERR_NOTACQUIRED
	.comm	_SE_KEY,4,2                     ; @SE_KEY
	.comm	_K_MOUSE1,4,2                   ; @K_MOUSE1
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_K_MOUSE2,4,2                   ; @K_MOUSE2
	.comm	_K_MOUSE3,4,2                   ; @K_MOUSE3
	.comm	_K_MOUSE4,4,2                   ; @K_MOUSE4
	.comm	_K_MWHEELDOWN,4,2               ; @K_MWHEELDOWN
	.comm	_K_MWHEELUP,4,2                 ; @K_MWHEELUP
.subsections_via_symbols
