	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_hid_get_drvdata
	movq	%rax, %r12
	movq	_HID_CLAIMED_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rbx)
	je	LBB0_16
## %bb.1:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.2:
	movq	(%rcx), %r14
	movl	(%r12), %ecx
	movq	_A4_2WHEEL_MOUSE_HACK_B8@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_8
## %bb.3:
	movq	_EV_REL@GOTPCREL(%rip), %r8
	movq	(%r8), %rsi
	cmpq	%rsi, (%r13)
	jne	LBB0_6
## %bb.4:
	movq	8(%r13), %rdx
	movq	_REL_WHEEL_HI_RES@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	jne	LBB0_6
## %bb.5:
	movl	%r15d, 4(%r12)
	jmp	LBB0_15
LBB0_6:
	movl	16(%r13), %edx
	movq	_A4_WHEEL_ORIENTATION@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %edx
	jne	LBB0_8
## %bb.7:
	testl	%r15d, %r15d
	movq	_REL_HWHEEL@GOTPCREL(%rip), %rax
	cmoveq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	4(%r12), %ecx
	movq	_REL_HWHEEL_HI_RES@GOTPCREL(%rip), %rbx
	cmoveq	_REL_WHEEL_HI_RES@GOTPCREL(%rip), %rbx
	movq	%r14, %rdi
	movq	%r8, %r15
	callq	_input_event
	movq	(%r15), %rsi
	movq	(%rbx), %rdx
	imull	$120, 4(%r12), %ecx
	jmp	LBB0_14
LBB0_8:
	movq	_A4_2WHEEL_MOUSE_HACK_7@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_11
## %bb.9:
	cmpl	$589831, 16(%r13)               ## imm = 0x90007
	jne	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	setne	%al
	movl	%eax, 8(%r12)
	jmp	LBB0_15
LBB0_11:
	movq	8(%r13), %rcx
	movq	_REL_WHEEL_HI_RES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.12:
	cmpl	$0, 8(%r12)
	je	LBB0_16
## %bb.13:
	movq	(%r13), %rsi
	movq	_REL_HWHEEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_input_event
	movq	(%r13), %rsi
	movq	_REL_HWHEEL_HI_RES@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	imull	$120, %r15d, %ecx
LBB0_14:
	movq	%r14, %rdi
	callq	_input_event
LBB0_15:
	movl	$1, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_HI_RES,8,3           ## @REL_WHEEL_HI_RES
	.comm	_A4_WHEEL_ORIENTATION,4,2       ## @A4_WHEEL_ORIENTATION
	.comm	_REL_HWHEEL,8,3                 ## @REL_HWHEEL
	.comm	_REL_WHEEL,8,3                  ## @REL_WHEEL
	.comm	_REL_HWHEEL_HI_RES,8,3          ## @REL_HWHEEL_HI_RES
	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	bl	_hid_get_drvdata
	ldr	w8, [x23]
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_16
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_16
; %bb.2:
	mov	x21, x0
	ldr	x20, [x8]
	ldr	w8, [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, w8
	b.eq	LBB0_8
; %bb.3:
	ldr	x9, [x22]
Lloh6:
	adrp	x23, _EV_REL@GOTPAGE
Lloh7:
	ldr	x23, [x23, _EV_REL@GOTPAGEOFF]
	ldr	x1, [x23]
	cmp	x9, x1
	b.ne	LBB0_6
; %bb.4:
	ldr	x9, [x22, #8]
Lloh8:
	adrp	x10, _REL_WHEEL_HI_RES@GOTPAGE
Lloh9:
	ldr	x10, [x10, _REL_WHEEL_HI_RES@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
	str	w19, [x21, #4]
	b	LBB0_15
LBB0_6:
	ldr	w9, [x22, #16]
Lloh11:
	adrp	x10, _A4_WHEEL_ORIENTATION@GOTPAGE
Lloh12:
	ldr	x10, [x10, _A4_WHEEL_ORIENTATION@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _REL_HWHEEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REL_HWHEEL@GOTPAGEOFF]
Lloh16:
	adrp	x9, _REL_WHEEL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _REL_WHEEL@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	x2, [x8]
	ldr	w3, [x21, #4]
Lloh18:
	adrp	x8, _REL_HWHEEL_HI_RES@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REL_HWHEEL_HI_RES@GOTPAGEOFF]
Lloh20:
	adrp	x9, _REL_WHEEL_HI_RES@GOTPAGE
Lloh21:
	ldr	x9, [x9, _REL_WHEEL_HI_RES@GOTPAGEOFF]
	csel	x19, x9, x8, eq
	mov	x0, x20
	bl	_input_event
	ldr	x1, [x23]
	ldr	x2, [x19]
	ldr	w8, [x21, #4]
	mov	w9, #120
	mul	w3, w8, w9
	b	LBB0_14
LBB0_8:
Lloh22:
	adrp	x9, _A4_2WHEEL_MOUSE_HACK_7@GOTPAGE
Lloh23:
	ldr	x9, [x9, _A4_2WHEEL_MOUSE_HACK_7@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
	ldr	w8, [x22, #16]
	sub	w8, w8, #144, lsl #12           ; =589824
	cmp	w8, #7
	b.ne	LBB0_11
; %bb.10:
	cmp	w19, #0
	cset	w8, ne
	str	w8, [x21, #8]
	b	LBB0_15
LBB0_11:
	ldr	x8, [x22, #8]
Lloh25:
	adrp	x9, _REL_WHEEL_HI_RES@GOTPAGE
Lloh26:
	ldr	x9, [x9, _REL_WHEEL_HI_RES@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.12:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_16
; %bb.13:
	ldr	x1, [x22]
Lloh28:
	adrp	x8, _REL_HWHEEL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _REL_HWHEEL@GOTPAGEOFF]
Lloh30:
	ldr	x2, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_input_event
	ldr	x1, [x22]
Lloh31:
	adrp	x8, _REL_HWHEEL_HI_RES@GOTPAGE
Lloh32:
	ldr	x8, [x8, _REL_HWHEEL_HI_RES@GOTPAGEOFF]
Lloh33:
	ldr	x2, [x8]
	mov	w8, #120
	mul	w3, w19, w8
LBB0_14:
	mov	x0, x20
	bl	_input_event
LBB0_15:
	mov	w0, #1
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.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_HI_RES,8,3           ; @REL_WHEEL_HI_RES
	.comm	_A4_WHEEL_ORIENTATION,4,2       ; @A4_WHEEL_ORIENTATION
	.comm	_REL_HWHEEL,8,3                 ; @REL_HWHEEL
	.comm	_REL_WHEEL,8,3                  ; @REL_WHEEL
	.comm	_REL_HWHEEL_HI_RES,8,3          ; @REL_HWHEEL_HI_RES
	.comm	_A4_2WHEEL_MOUSE_HACK_7,4,2     ; @A4_2WHEEL_MOUSE_HACK_7
	.no_dead_strip	_a4_event
.subsections_via_symbols
