	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dinput_mouse_hook
_dinput_mouse_hook:                     ## @dinput_mouse_hook
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%esi, %ebx
	movl	%edi, %r14d
	callq	_impl_from_IDirectInputDevice8A
	movq	%rax, %r12
	movl	4(%r13), %edx
	movl	8(%r13), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_TRACE
	leaq	12(%r12), %r15
	movq	%r15, %rdi
	callq	_EnterCriticalSection
	addl	$-128, %ebx
	cmpl	$9, %ebx
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	jmpq	*%rcx
LBB0_26:
	movq	_WINE_MOUSE_BUTTONS_INSTANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%r13), %edi
	callq	_HIWORD
	leaq	(%rbx,%rax), %rdi
	addq	$2, %rdi
	callq	_DIDFT_MAKEINSTANCE
	movl	%eax, %r14d
	movq	_DIDFT_PSHBUTTON@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	48(%r12), %rbx
	movl	(%r13), %edi
	callq	_HIWORD
	movl	$0, 8(%rbx,%rax,4)
	jmp	LBB0_27
LBB0_25:
	movq	_WINE_MOUSE_BUTTONS_INSTANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%r13), %edi
	callq	_HIWORD
	leaq	(%rbx,%rax), %rdi
	addq	$2, %rdi
	callq	_DIDFT_MAKEINSTANCE
	movl	%eax, %r14d
	movq	_DIDFT_PSHBUTTON@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	48(%r12), %rbx
	movl	(%r13), %edi
	callq	_HIWORD
	movl	$128, 8(%rbx,%rax,4)
	jmp	LBB0_19
LBB0_22:
	movq	_WINE_MOUSE_BUTTONS_INSTANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	incq	%rdi
	callq	_DIDFT_MAKEINSTANCE
	movl	%eax, %r14d
	movq	_DIDFT_PSHBUTTON@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	48(%r12), %rax
	movl	$0, 4(%rax)
	jmp	LBB0_27
LBB0_21:
	movq	_WINE_MOUSE_BUTTONS_INSTANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	incq	%rdi
	callq	_DIDFT_MAKEINSTANCE
	movl	%eax, %r14d
	movq	_DIDFT_PSHBUTTON@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	48(%r12), %rax
	movl	$128, 4(%rax)
	jmp	LBB0_19
LBB0_17:
	movq	_WINE_MOUSE_Z_AXIS_INSTANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_DIDFT_MAKEINSTANCE
	movl	%eax, %r14d
	movq	_DIDFT_RELAXIS@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	(%r13), %edi
	callq	_HIWORD
	movswl	%ax, %r13d
	addl	%r13d, 40(%r12)
	movl	(%r12), %ebx
	cmpl	$-1, %r14d
	jne	LBB0_30
	jmp	LBB0_31
LBB0_23:
	movq	_WINE_MOUSE_BUTTONS_INSTANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$2, %rdi
	callq	_DIDFT_MAKEINSTANCE
	movl	%eax, %r14d
	movq	_DIDFT_PSHBUTTON@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	48(%r12), %rax
	movl	$128, 8(%rax)
	jmp	LBB0_19
LBB0_18:
	movq	_WINE_MOUSE_BUTTONS_INSTANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_DIDFT_MAKEINSTANCE
	movl	%eax, %r14d
	movq	_DIDFT_PSHBUTTON@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	48(%r12), %rax
	movl	$128, (%rax)
LBB0_19:
	xorl	%ebx, %ebx
	movl	$128, %r13d
	cmpl	$-1, %r14d
	jne	LBB0_30
	jmp	LBB0_31
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_31
LBB0_3:
	leaq	-48(%rbp), %rdi
	callq	_GetCursorPos
	movl	4(%r13), %r10d
	movl	-48(%rbp), %esi
	movl	%r10d, %edi
	subl	%esi, %edi
	movl	%edi, -48(%rbp)
	movl	32(%r12), %ebx
	addl	%edi, %ebx
	movl	%ebx, 32(%r12)
	movl	8(%r13), %r8d
	movl	-44(%rbp), %r9d
	movl	%r8d, %eax
	subl	%r9d, %eax
	movl	%eax, -44(%rbp)
	movl	36(%r12), %r13d
	addl	%eax, %r13d
	movl	%r13d, 36(%r12)
	movq	24(%r12), %rdx
	movq	_DIDF_ABSAXIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdx)
	cmovel	%eax, %r13d
	cmovel	%edi, %ebx
	cmpl	%esi, %r10d
	jne	LBB0_4
## %bb.6:
	cmpl	%r9d, %r8d
	jne	LBB0_10
## %bb.7:
	movl	$-1, %r14d
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	cmpl	$0, -48(%rbp)
	je	LBB0_12
	jmp	LBB0_13
LBB0_24:
	movq	_WINE_MOUSE_BUTTONS_INSTANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$2, %rdi
	callq	_DIDFT_MAKEINSTANCE
	movl	%eax, %r14d
	movq	_DIDFT_PSHBUTTON@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	48(%r12), %rax
	movl	$0, 8(%rax)
	jmp	LBB0_27
LBB0_20:
	movq	_WINE_MOUSE_BUTTONS_INSTANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_DIDFT_MAKEINSTANCE
	movl	%eax, %r14d
	movq	_DIDFT_PSHBUTTON@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	48(%r12), %rax
	movl	$0, (%rax)
LBB0_27:
	xorl	%r13d, %r13d
LBB0_28:
	xorl	%ebx, %ebx
	cmpl	$-1, %r14d
	je	LBB0_31
LBB0_30:
	movq	%r12, %rdi
	addq	$32, %rdi
	callq	__dump_mouse_state
	xorl	%eax, %eax
	callq	_GetCurrentTime
	movq	16(%r12), %rcx
	movl	(%rcx), %r8d
	leal	1(%r8), %edx
	movl	%edx, (%rcx)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_queue_event
LBB0_31:
	movq	%r15, %rdi
	callq	_LeaveCriticalSection
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_WINE_MOUSE_X_AXIS_INSTANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_DIDFT_MAKEINSTANCE
	movl	%eax, %r14d
	movq	_DIDFT_RELAXIS@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	cmpl	$0, -44(%rbp)
	je	LBB0_5
## %bb.8:
	cmpl	$-1, %r14d
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_GetCurrentTime
	movq	16(%r12), %rcx
	movl	(%rcx), %r8d
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_queue_event
LBB0_10:
	movq	_WINE_MOUSE_Y_AXIS_INSTANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_DIDFT_MAKEINSTANCE
	movl	%eax, %r14d
	movq	_DIDFT_RELAXIS@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	cmpl	$0, -44(%rbp)
	setne	%al
	cmpl	$0, -48(%rbp)
	je	LBB0_12
	jmp	LBB0_13
LBB0_5:
	xorl	%eax, %eax
	movl	%ebx, %r13d
	cmpl	$0, -48(%rbp)
	jne	LBB0_13
LBB0_12:
	testb	%al, %al
	je	LBB0_28
LBB0_13:
	movl	60(%r12), %eax
	movq	_WARP_FORCE_ON@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_16
## %bb.14:
	movq	_WARP_DISABLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_28
## %bb.15:
	movq	_DISCL_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_28
LBB0_16:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r12)
	jmp	LBB0_28
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_26
	.long	L0_0_set_25
	.long	L0_0_set_22
	.long	L0_0_set_21
	.long	L0_0_set_17
	.long	L0_0_set_3
	.long	L0_0_set_24
	.long	L0_0_set_23
	.long	L0_0_set_20
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"msg %lx @ (%d %d)\n"

	.comm	_DIDF_ABSAXIS,4,2               ## @DIDF_ABSAXIS
	.comm	_WINE_MOUSE_X_AXIS_INSTANCE,8,3 ## @WINE_MOUSE_X_AXIS_INSTANCE
	.comm	_DIDFT_RELAXIS,4,2              ## @DIDFT_RELAXIS
	.comm	_WINE_MOUSE_Y_AXIS_INSTANCE,8,3 ## @WINE_MOUSE_Y_AXIS_INSTANCE
	.comm	_WARP_FORCE_ON,4,2              ## @WARP_FORCE_ON
	.comm	_WARP_DISABLE,4,2               ## @WARP_DISABLE
	.comm	_DISCL_EXCLUSIVE,4,2            ## @DISCL_EXCLUSIVE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_WINE_MOUSE_Z_AXIS_INSTANCE,8,3 ## @WINE_MOUSE_Z_AXIS_INSTANCE
	.comm	_WINE_MOUSE_BUTTONS_INSTANCE,8,3 ## @WINE_MOUSE_BUTTONS_INSTANCE
	.comm	_DIDFT_PSHBUTTON,4,2            ## @DIDFT_PSHBUTTON
	.no_dead_strip	_dinput_mouse_hook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dinput_mouse_hook
_dinput_mouse_hook:                     ; @dinput_mouse_hook
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
	bl	_impl_from_IDirectInputDevice8A
	mov	x21, x0
	ldp	w2, w3, [x23, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_TRACE
	add	x19, x21, #12
	mov	x0, x19
	bl	_EnterCriticalSection
	sub	w8, w22, #128
	cmp	w8, #9
	b.hi	LBB0_10
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh4:
	adrp	x8, _WINE_MOUSE_BUTTONS_INSTANCE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WINE_MOUSE_BUTTONS_INSTANCE@GOTPAGEOFF]
Lloh6:
	ldr	x22, [x8]
	ldr	w0, [x23]
	bl	_HIWORD
	add	x8, x22, x0
	add	x0, x8, #2
	bl	_DIDFT_MAKEINSTANCE
Lloh7:
	adrp	x8, _DIDFT_PSHBUTTON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DIDFT_PSHBUTTON@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w22, w8, w0
	ldr	x25, [x21, #48]
	ldr	w0, [x23]
	bl	_HIWORD
	mov	w23, #0
	mov	w24, #0
	add	x8, x25, x0, lsl #2
	b	LBB0_15
LBB0_3:
Lloh10:
	adrp	x8, _WINE_MOUSE_BUTTONS_INSTANCE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WINE_MOUSE_BUTTONS_INSTANCE@GOTPAGEOFF]
Lloh12:
	ldr	x22, [x8]
	ldr	w0, [x23]
	bl	_HIWORD
	add	x8, x22, x0
	add	x0, x8, #2
	bl	_DIDFT_MAKEINSTANCE
Lloh13:
	adrp	x8, _DIDFT_PSHBUTTON@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DIDFT_PSHBUTTON@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w22, w8, w0
	ldr	x25, [x21, #48]
	ldr	w0, [x23]
	bl	_HIWORD
	mov	w24, #0
	add	x8, x25, x0, lsl #2
	b	LBB0_8
LBB0_4:
Lloh16:
	adrp	x8, _WINE_MOUSE_BUTTONS_INSTANCE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WINE_MOUSE_BUTTONS_INSTANCE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x0, x8, #1
	bl	_DIDFT_MAKEINSTANCE
	mov	w23, #0
	mov	w24, #0
Lloh19:
	adrp	x8, _DIDFT_PSHBUTTON@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DIDFT_PSHBUTTON@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	orr	w22, w8, w0
	ldr	x8, [x21, #48]
	str	wzr, [x8, #4]
	cmn	w22, #1
	b.ne	LBB0_28
	b	LBB0_29
LBB0_5:
Lloh22:
	adrp	x8, _WINE_MOUSE_BUTTONS_INSTANCE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WINE_MOUSE_BUTTONS_INSTANCE@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	add	x0, x8, #1
	bl	_DIDFT_MAKEINSTANCE
	mov	w24, #0
Lloh25:
	adrp	x8, _DIDFT_PSHBUTTON@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DIDFT_PSHBUTTON@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	orr	w22, w8, w0
	ldr	x8, [x21, #48]
	mov	w23, #128
	str	w23, [x8, #4]
	cmn	w22, #1
	b.ne	LBB0_28
	b	LBB0_29
LBB0_6:
Lloh28:
	adrp	x8, _WINE_MOUSE_Z_AXIS_INSTANCE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _WINE_MOUSE_Z_AXIS_INSTANCE@GOTPAGEOFF]
Lloh30:
	ldr	x0, [x8]
	bl	_DIDFT_MAKEINSTANCE
Lloh31:
	adrp	x8, _DIDFT_RELAXIS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DIDFT_RELAXIS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	orr	w22, w8, w0
	ldr	w0, [x23]
	bl	_HIWORD
	sxth	w23, w0
	ldr	w8, [x21, #40]
	add	w8, w23, w8
	str	w8, [x21, #40]
	ldr	w24, [x21]
	cmn	w22, #1
	b.ne	LBB0_28
	b	LBB0_29
LBB0_7:
Lloh34:
	adrp	x8, _WINE_MOUSE_BUTTONS_INSTANCE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _WINE_MOUSE_BUTTONS_INSTANCE@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	add	x0, x8, #2
	bl	_DIDFT_MAKEINSTANCE
	mov	w24, #0
Lloh37:
	adrp	x8, _DIDFT_PSHBUTTON@GOTPAGE
Lloh38:
	ldr	x8, [x8, _DIDFT_PSHBUTTON@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	orr	w22, w8, w0
	ldr	x8, [x21, #48]
LBB0_8:
	mov	w23, #128
	str	w23, [x8, #8]
	cmn	w22, #1
	b.ne	LBB0_28
	b	LBB0_29
LBB0_9:
Lloh40:
	adrp	x8, _WINE_MOUSE_BUTTONS_INSTANCE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _WINE_MOUSE_BUTTONS_INSTANCE@GOTPAGEOFF]
Lloh42:
	ldr	x0, [x8]
	bl	_DIDFT_MAKEINSTANCE
	mov	w24, #0
Lloh43:
	adrp	x8, _DIDFT_PSHBUTTON@GOTPAGE
Lloh44:
	ldr	x8, [x8, _DIDFT_PSHBUTTON@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	orr	w22, w8, w0
	ldr	x8, [x21, #48]
	mov	w23, #128
	str	w23, [x8]
	cmn	w22, #1
	b.ne	LBB0_28
	b	LBB0_29
LBB0_10:
	mov	w24, #0
	b	LBB0_29
LBB0_11:
	add	x0, sp, #8
	bl	_GetCursorPos
	ldp	w10, w8, [x23, #4]
	ldp	w11, w9, [sp, #8]
	ldp	w12, w13, [x21, #32]
	subs	w14, w10, w11
	add	w12, w12, w14
	sub	w15, w8, w9
	add	w13, w13, w15
	ldr	x16, [x21, #24]
Lloh46:
	adrp	x17, _DIDF_ABSAXIS@GOTPAGE
Lloh47:
	ldr	x17, [x17, _DIDF_ABSAXIS@GOTPAGEOFF]
	ldr	w16, [x16]
Lloh48:
	ldr	w17, [x17]
	tst	w17, w16
	csel	w24, w15, w13, eq
	csel	w23, w14, w12, eq
	stp	w12, w13, [x21, #32]
Lloh49:
	adrp	x25, _DIDFT_RELAXIS@GOTPAGE
Lloh50:
	ldr	x25, [x25, _DIDFT_RELAXIS@GOTPAGEOFF]
	subs	w10, w10, w11
	stp	w10, w15, [sp, #8]
	b.ne	LBB0_17
; %bb.12:
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.13:
	mov	w8, #0
	mov	w23, #0
	mov	w22, #-1
	b	LBB0_21
LBB0_14:
Lloh51:
	adrp	x8, _WINE_MOUSE_BUTTONS_INSTANCE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _WINE_MOUSE_BUTTONS_INSTANCE@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	add	x0, x8, #2
	bl	_DIDFT_MAKEINSTANCE
	mov	w23, #0
	mov	w24, #0
Lloh54:
	adrp	x8, _DIDFT_PSHBUTTON@GOTPAGE
Lloh55:
	ldr	x8, [x8, _DIDFT_PSHBUTTON@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	orr	w22, w8, w0
	ldr	x8, [x21, #48]
LBB0_15:
	str	wzr, [x8, #8]
	cmn	w22, #1
	b.ne	LBB0_28
	b	LBB0_29
LBB0_16:
Lloh57:
	adrp	x8, _WINE_MOUSE_BUTTONS_INSTANCE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _WINE_MOUSE_BUTTONS_INSTANCE@GOTPAGEOFF]
Lloh59:
	ldr	x0, [x8]
	bl	_DIDFT_MAKEINSTANCE
	mov	w23, #0
	mov	w24, #0
Lloh60:
	adrp	x8, _DIDFT_PSHBUTTON@GOTPAGE
Lloh61:
	ldr	x8, [x8, _DIDFT_PSHBUTTON@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	orr	w22, w8, w0
	ldr	x8, [x21, #48]
	str	wzr, [x8]
	cmn	w22, #1
	b.ne	LBB0_28
	b	LBB0_29
LBB0_17:
Lloh63:
	adrp	x8, _WINE_MOUSE_X_AXIS_INSTANCE@GOTPAGE
Lloh64:
	ldr	x8, [x8, _WINE_MOUSE_X_AXIS_INSTANCE@GOTPAGEOFF]
Lloh65:
	ldr	x0, [x8]
	bl	_DIDFT_MAKEINSTANCE
	ldr	w8, [x25]
	orr	w22, w8, w0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_21
; %bb.18:
	cmn	w22, #1
	b.eq	LBB0_20
; %bb.19:
	bl	_GetCurrentTime
	mov	x3, x0
	ldr	x8, [x21, #16]
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_queue_event
LBB0_20:
Lloh66:
	adrp	x8, _WINE_MOUSE_Y_AXIS_INSTANCE@GOTPAGE
Lloh67:
	ldr	x8, [x8, _WINE_MOUSE_Y_AXIS_INSTANCE@GOTPAGEOFF]
Lloh68:
	ldr	x0, [x8]
	bl	_DIDFT_MAKEINSTANCE
	ldr	w8, [x25]
	orr	w22, w8, w0
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w8, ne
	mov	x23, x24
LBB0_21:
	ldr	w9, [sp, #8]
	cbnz	w9, LBB0_23
; %bb.22:
	cbz	w8, LBB0_27
LBB0_23:
	ldr	w8, [x21, #60]
Lloh69:
	adrp	x9, _WARP_FORCE_ON@GOTPAGE
Lloh70:
	ldr	x9, [x9, _WARP_FORCE_ON@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_26
; %bb.24:
Lloh72:
	adrp	x9, _WARP_DISABLE@GOTPAGE
Lloh73:
	ldr	x9, [x9, _WARP_DISABLE@GOTPAGEOFF]
Lloh74:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_27
; %bb.25:
	ldr	w8, [x21, #8]
Lloh75:
	adrp	x9, _DISCL_EXCLUSIVE@GOTPAGE
Lloh76:
	ldr	x9, [x9, _DISCL_EXCLUSIVE@GOTPAGEOFF]
Lloh77:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
LBB0_26:
Lloh78:
	adrp	x8, _TRUE@GOTPAGE
Lloh79:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
	str	w8, [x21, #56]
LBB0_27:
	mov	w24, #0
	cmn	w22, #1
	b.eq	LBB0_29
LBB0_28:
	add	x0, x21, #32
	bl	__dump_mouse_state
	bl	_GetCurrentTime
	mov	x3, x0
	ldr	x8, [x21, #16]
	ldr	w4, [x8]
	add	w9, w4, #1
	str	w9, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_queue_event
LBB0_29:
	mov	x0, x19
	bl	_LeaveCriticalSection
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"msg %lx @ (%d %d)\n"

	.comm	_DIDF_ABSAXIS,4,2               ; @DIDF_ABSAXIS
	.comm	_WINE_MOUSE_X_AXIS_INSTANCE,8,3 ; @WINE_MOUSE_X_AXIS_INSTANCE
	.comm	_DIDFT_RELAXIS,4,2              ; @DIDFT_RELAXIS
	.comm	_WINE_MOUSE_Y_AXIS_INSTANCE,8,3 ; @WINE_MOUSE_Y_AXIS_INSTANCE
	.comm	_WARP_FORCE_ON,4,2              ; @WARP_FORCE_ON
	.comm	_WARP_DISABLE,4,2               ; @WARP_DISABLE
	.comm	_DISCL_EXCLUSIVE,4,2            ; @DISCL_EXCLUSIVE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_WINE_MOUSE_Z_AXIS_INSTANCE,8,3 ; @WINE_MOUSE_Z_AXIS_INSTANCE
	.comm	_WINE_MOUSE_BUTTONS_INSTANCE,8,3 ; @WINE_MOUSE_BUTTONS_INSTANCE
	.comm	_DIDFT_PSHBUTTON,4,2            ; @DIDFT_PSHBUTTON
	.no_dead_strip	_dinput_mouse_hook
.subsections_via_symbols
