	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a4_input_mapped
_a4_input_mapped:                       ## @a4_input_mapped
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %rbx
	callq	_hid_get_drvdata
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_EV_REL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movq	_REL_WHEEL_HI_RES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_REL_HWHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	callq	_set_bit
	movq	_REL_HWHEEL_HI_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	callq	_set_bit
LBB0_3:
	movq	_A4_2WHEEL_MOUSE_HACK_7@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_5
## %bb.4:
	movl	$-1, %eax
	cmpl	$589831, 16(%rbx)               ## imm = 0x90007
	je	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_REL,8,3                     ## @EV_REL
	.comm	_REL_WHEEL_HI_RES,8,3           ## @REL_WHEEL_HI_RES
	.comm	_REL_HWHEEL,4,2                 ## @REL_HWHEEL
	.comm	_REL_HWHEEL_HI_RES,4,2          ## @REL_HWHEEL_HI_RES
	.comm	_A4_2WHEEL_MOUSE_HACK_7,4,2     ## @A4_2WHEEL_MOUSE_HACK_7
	.no_dead_strip	_a4_input_mapped
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a4_input_mapped
_a4_input_mapped:                       ; @a4_input_mapped
	.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	x21, x4
	mov	x19, x3
	bl	_hid_get_drvdata
	mov	x20, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _EV_REL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EV_REL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _REL_WHEEL_HI_RES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REL_WHEEL_HI_RES@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _REL_HWHEEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REL_HWHEEL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x1, [x21]
	bl	_set_bit
Lloh9:
	adrp	x8, _REL_HWHEEL_HI_RES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REL_HWHEEL_HI_RES@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x1, [x21]
	bl	_set_bit
LBB0_3:
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _A4_2WHEEL_MOUSE_HACK_7@GOTPAGE
Lloh13:
	ldr	x9, [x9, _A4_2WHEEL_MOUSE_HACK_7@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	ldr	w8, [x19, #16]
	sub	w8, w8, #144, lsl #12           ; =589824
	cmp	w8, #7
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #-1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_REL,8,3                     ; @EV_REL
	.comm	_REL_WHEEL_HI_RES,8,3           ; @REL_WHEEL_HI_RES
	.comm	_REL_HWHEEL,4,2                 ; @REL_HWHEEL
	.comm	_REL_HWHEEL_HI_RES,4,2          ; @REL_HWHEEL_HI_RES
	.comm	_A4_2WHEEL_MOUSE_HACK_7,4,2     ; @A4_2WHEEL_MOUSE_HACK_7
	.no_dead_strip	_a4_input_mapped
.subsections_via_symbols
