	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp10_wheel_raw_event
_hidpp10_wheel_raw_event:               ## @hidpp10_wheel_raw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	cmpl	$7, %edx
	jl	LBB0_6
## %bb.3:
	movq	(%rsi), %rcx
	movq	_REPORT_ID_HIDPP_SHORT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.4:
	movq	16(%rsi), %rcx
	movq	_HIDPP_SUB_ID_ROLLER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movl	24(%rsi), %r15d
	movl	32(%rsi), %r14d
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_input_report_rel
	movl	(%rbx), %edi
	movq	_REL_WHEEL_HI_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	$120, %r15d, %edx
	callq	_input_report_rel
	movl	(%rbx), %edi
	movq	_REL_HWHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_input_report_rel
	movl	(%rbx), %edi
	movq	_REL_HWHEEL_HI_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	$120, %r14d, %edx
	callq	_input_report_rel
	movl	(%rbx), %edi
	callq	_input_sync
	movl	$1, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_REPORT_ID_HIDPP_SHORT,8,3      ## @REPORT_ID_HIDPP_SHORT
	.comm	_HIDPP_SUB_ID_ROLLER,8,3        ## @HIDPP_SUB_ID_ROLLER
	.comm	_REL_WHEEL,4,2                  ## @REL_WHEEL
	.comm	_REL_WHEEL_HI_RES,4,2           ## @REL_WHEEL_HI_RES
	.comm	_REL_HWHEEL,4,2                 ## @REL_HWHEEL
	.comm	_REL_HWHEEL_HI_RES,4,2          ## @REL_HWHEEL_HI_RES
	.no_dead_strip	_hidpp10_wheel_raw_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpp10_wheel_raw_event
_hidpp10_wheel_raw_event:               ; @hidpp10_wheel_raw_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, x0
	ldr	w0, [x0]
	cbz	w0, LBB0_6
; %bb.1:
	cmp	w2, #7
	b.lt	LBB0_5
; %bb.2:
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _REPORT_ID_HIDPP_SHORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REPORT_ID_HIDPP_SHORT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x1, #16]
Lloh3:
	adrp	x9, _HIDPP_SUB_ID_ROLLER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HIDPP_SUB_ID_ROLLER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w20, [x1, #24]
	ldr	w21, [x1, #32]
Lloh6:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_input_report_rel
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _REL_WHEEL_HI_RES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REL_WHEEL_HI_RES@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w22, #120
	mul	w2, w20, w22
	bl	_input_report_rel
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _REL_HWHEEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REL_HWHEEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_input_report_rel
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _REL_HWHEEL_HI_RES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REL_HWHEEL_HI_RES@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mul	w2, w21, w22
	bl	_input_report_rel
	ldr	w0, [x19]
	bl	_input_sync
	mov	w0, #1
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_REPORT_ID_HIDPP_SHORT,8,3      ; @REPORT_ID_HIDPP_SHORT
	.comm	_HIDPP_SUB_ID_ROLLER,8,3        ; @HIDPP_SUB_ID_ROLLER
	.comm	_REL_WHEEL,4,2                  ; @REL_WHEEL
	.comm	_REL_WHEEL_HI_RES,4,2           ; @REL_WHEEL_HI_RES
	.comm	_REL_HWHEEL,4,2                 ; @REL_HWHEEL
	.comm	_REL_HWHEEL_HI_RES,4,2          ; @REL_HWHEEL_HI_RES
	.no_dead_strip	_hidpp10_wheel_raw_event
.subsections_via_symbols
