	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a4_event
_a4_event:                              ## @a4_event
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_hid_get_drvdata
	movq	%rax, %rcx
	movq	_HID_CLAIMED_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%rbx)
	je	LBB0_20
## %bb.1:
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_20
## %bb.2:
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.3:
	movq	(%rdx), %rdi
	movl	(%rcx), %edx
	movq	_A4_2WHEEL_MOUSE_HACK_B8@GOTPCREL(%rip), %rbx
	testl	%edx, (%rbx)
	je	LBB0_12
## %bb.4:
	movq	_EV_REL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r9
	cmpq	%r9, %rsi
	jne	LBB0_7
## %bb.5:
	movq	8(%r15), %r8
	movq	_REL_WHEEL@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %r8
	jne	LBB0_7
## %bb.6:
	movq	%r14, 8(%rcx)
	jmp	LBB0_19
LBB0_7:
	cmpl	$65720, 16(%r15)                ## imm = 0x100B8
	jne	LBB0_12
## %bb.8:
	testq	%r14, %r14
	jne	LBB0_9
## %bb.10:
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_12:
	movq	_A4_2WHEEL_MOUSE_HACK_7@GOTPCREL(%rip), %rbx
	testl	%edx, (%rbx)
	je	LBB0_15
## %bb.13:
	cmpl	$589831, 16(%r15)               ## imm = 0x90007
	jne	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	testq	%r14, %r14
	setne	%al
	movl	%eax, 4(%rcx)
	jmp	LBB0_19
LBB0_15:
	movq	8(%r15), %rdx
	movq	_REL_WHEEL@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdx
	jne	LBB0_20
## %bb.16:
	cmpl	$0, 4(%rcx)
	je	LBB0_20
## %bb.17:
	movq	_REL_HWHEEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rcx
	jmp	LBB0_18
LBB0_9:
	movq	_REL_HWHEEL@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rdx
	movq	8(%rcx), %rcx
	movq	%r9, %rsi
LBB0_18:
	callq	_input_event
LBB0_19:
	movl	$1, %eax
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_CLAIMED_INPUT,4,2          ## @HID_CLAIMED_INPUT
	.comm	_A4_2WHEEL_MOUSE_HACK_B8,4,2    ## @A4_2WHEEL_MOUSE_HACK_B8
	.comm	_EV_REL,8,3                     ## @EV_REL
	.comm	_REL_WHEEL,8,3                  ## @REL_WHEEL
	.comm	_REL_HWHEEL,8,3                 ## @REL_HWHEEL
	.comm	_A4_2WHEEL_MOUSE_HACK_7,4,2     ## @A4_2WHEEL_MOUSE_HACK_7
	.no_dead_strip	_a4_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a4_event
_a4_event:                              ; @a4_event
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_hid_get_drvdata
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _HID_CLAIMED_INPUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_CLAIMED_INPUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_17
; %bb.2:
	ldr	x1, [x20]
	cbz	x1, LBB0_17
; %bb.3:
	ldr	x8, [x8]
	ldr	w10, [x0]
Lloh3:
	adrp	x9, _A4_2WHEEL_MOUSE_HACK_B8@GOTPAGE
Lloh4:
	ldr	x9, [x9, _A4_2WHEEL_MOUSE_HACK_B8@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w10
	b.eq	LBB0_9
; %bb.4:
Lloh6:
	adrp	x9, _EV_REL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EV_REL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x1, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	x11, [x20, #8]
Lloh9:
	adrp	x12, _REL_WHEEL@GOTPAGE
Lloh10:
	ldr	x12, [x12, _REL_WHEEL@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_7
; %bb.6:
	str	x19, [x0, #8]
	b	LBB0_16
LBB0_7:
	ldr	w11, [x20, #16]
	sub	w11, w11, #16, lsl #12          ; =65536
	cmp	w11, #184
	b.ne	LBB0_9
; %bb.8:
Lloh12:
	adrp	x10, _REL_HWHEEL@GOTPAGE
Lloh13:
	ldr	x10, [x10, _REL_HWHEEL@GOTPAGEOFF]
Lloh14:
	adrp	x11, _REL_WHEEL@GOTPAGE
Lloh15:
	ldr	x11, [x11, _REL_WHEEL@GOTPAGEOFF]
	cmp	x19, #0
	csel	x10, x11, x10, eq
	ldr	x2, [x10]
	ldr	x3, [x0, #8]
	mov	x0, x8
	mov	x1, x9
	b	LBB0_15
LBB0_9:
Lloh16:
	adrp	x9, _A4_2WHEEL_MOUSE_HACK_7@GOTPAGE
Lloh17:
	ldr	x9, [x9, _A4_2WHEEL_MOUSE_HACK_7@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w10
	b.eq	LBB0_12
; %bb.10:
	ldr	w9, [x20, #16]
	sub	w9, w9, #144, lsl #12           ; =589824
	cmp	w9, #7
	b.ne	LBB0_12
; %bb.11:
	cmp	x19, #0
	cset	w8, ne
	str	w8, [x0, #4]
	b	LBB0_16
LBB0_12:
	ldr	x9, [x20, #8]
Lloh19:
	adrp	x10, _REL_WHEEL@GOTPAGE
Lloh20:
	ldr	x10, [x10, _REL_WHEEL@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.13:
	ldr	w9, [x0, #4]
	cbz	w9, LBB0_17
; %bb.14:
Lloh22:
	adrp	x9, _REL_HWHEEL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _REL_HWHEEL@GOTPAGEOFF]
Lloh24:
	ldr	x2, [x9]
	mov	x0, x8
	mov	x3, x19
LBB0_15:
	bl	_input_event
LBB0_16:
	mov	w0, #1
	b	LBB0_18
LBB0_17:
	mov	w0, #0
LBB0_18:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_CLAIMED_INPUT,4,2          ; @HID_CLAIMED_INPUT
	.comm	_A4_2WHEEL_MOUSE_HACK_B8,4,2    ; @A4_2WHEEL_MOUSE_HACK_B8
	.comm	_EV_REL,8,3                     ; @EV_REL
	.comm	_REL_WHEEL,8,3                  ; @REL_WHEEL
	.comm	_REL_HWHEEL,8,3                 ; @REL_HWHEEL
	.comm	_A4_2WHEEL_MOUSE_HACK_7,4,2     ; @A4_2WHEEL_MOUSE_HACK_7
	.no_dead_strip	_a4_event
.subsections_via_symbols
