	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidinput_hid_event             ## -- Begin function hidinput_hid_event
	.p2align	4, 0x90
_hidinput_hid_event:                    ## @hidinput_hid_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
	movq	%rsi, %r12
	movq	(%rdx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movl	%ecx, %r15d
	movq	_EV_PWR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_2
## %bb.63:
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hidinput_update_battery        ## TAILCALL
LBB0_2:
	movq	32(%r12), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rdx, %r13
	movq	(%rax), %r14
	movq	8(%rdx), %rdx
	movq	16(%r13), %rcx
	movl	24(%r13), %eax
	subq	%rdx, %rcx
	jle	LBB0_4
## %bb.8:
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movslq	%r15d, %rax
	subq	%rdx, %rax
	shlq	$3, %rax
	incq	%rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_10
## %bb.11:
	cqto
	idivq	%rcx
	jmp	LBB0_12
LBB0_4:
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movl	32(%r13), %eax
	movq	_HID_UP_DIGITIZER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	orl	$60, %edx
	cmpl	%edx, %eax
	jne	LBB0_14
## %bb.6:
	movl	(%rdi), %eax
	movq	_HID_QUIRK_INVERT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	orl	%eax, %edx
	notl	%ecx
	andl	%eax, %ecx
	testl	%r15d, %r15d
	cmovnel	%edx, %ecx
	movl	%ecx, (%rdi)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	%ecx, %edx
	orl	$50, %edx
	cmpl	%edx, %eax
	jne	LBB0_21
## %bb.15:
	testl	%r15d, %r15d
	je	LBB0_20
## %bb.16:
	movq	_HID_QUIRK_INVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	je	LBB0_17
## %bb.18:
	movq	_BTN_TOOL_RUBBER@GOTPCREL(%rip), %r13
	jmp	LBB0_19
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_12:
	incl	%eax
LBB0_13:
	xorl	%ebx, %ebx
	cmpl	$9, %eax
	cmovbl	%eax, %ebx
	movl	28(%r13), %edx
	movq	_hid_hat_to_axis@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax,%rbx,8), %ecx
	movq	%r14, %rdi
	callq	_input_event
	movq	(%r13), %rsi
	movl	28(%r13), %edx
	incl	%edx
	movq	(%r15), %rax
	movl	4(%rax,%rbx,8), %ecx
	movq	%r14, %rdi
LBB0_62:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_event                    ## TAILCALL
LBB0_21:
	orl	$48, %ecx
	cmpl	%ecx, %eax
	jne	LBB0_24
## %bb.22:
	movq	_HID_QUIRK_NOTOUCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_24
## %bb.23:
	movl	(%r12), %eax
	movl	4(%r12), %edi
	movq	_EV_KEY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	subl	%eax, %edi
	sarl	$3, %edi
	addl	%eax, %edi
	xorl	%ecx, %ecx
	cmpl	%r15d, %edi
	setl	%cl
	movq	%r14, %rdi
	callq	_input_event
	movl	32(%r13), %eax
LBB0_24:
	cltq
	movq	_HID_UP_PID@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rcx, %rdx
	orq	$131, %rdx
	cmpq	%rax, %rdx
	jne	LBB0_27
## %bb.25:
	leaq	L_.str(%rip), %rdi
LBB0_26:
	movl	%r15d, %esi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dbg_hid                        ## TAILCALL
LBB0_27:
	orq	$127, %rcx
	cmpq	%rax, %rcx
	jne	LBB0_28
## %bb.64:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dbg_hid                        ## TAILCALL
LBB0_20:
	movl	28(%r13), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_input_event
	movq	(%r13), %rsi
	movq	_BTN_TOOL_RUBBER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_61:
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_62
LBB0_17:
	addq	$28, %r13
LBB0_19:
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	jmp	LBB0_62
LBB0_28:
	movq	(%r13), %rcx
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_30
## %bb.29:
	cmpl	$0, 28(%r13)
	je	LBB0_7
LBB0_30:
	movq	_EV_REL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_33
## %bb.31:
	movl	28(%r13), %eax
	movq	_REL_WHEEL_HI_RES@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_65
## %bb.32:
	movq	_REL_HWHEEL_HI_RES@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_65
LBB0_33:
	movq	_EV_ABS@GOTPCREL(%rip), %rdx
	movl	8(%r12), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_43
## %bb.34:
	movq	_HID_MAIN_ITEM_RELATIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_43
## %bb.35:
	movl	28(%r13), %ecx
	movq	_ABS_VOLUME@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_43
## %bb.36:
	testl	%r15d, %r15d
	jle	LBB0_37
## %bb.38:
	movq	_KEY_VOLUMEUP@GOTPCREL(%rip), %rax
	jmp	LBB0_39
LBB0_43:
	movq	_HID_MAIN_ITEM_VARIABLE@GOTPCREL(%rip), %rdi
	testl	%eax, (%rdi)
	je	LBB0_50
## %bb.44:
	movl	(%r12), %esi
	movl	4(%r12), %edx
	cmpl	%edx, %esi
	jge	LBB0_50
## %bb.45:
	movq	_HID_MAIN_ITEM_NULL_STATE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_49
## %bb.46:
	cmpl	%r15d, %esi
	jg	LBB0_48
## %bb.47:
	cmpl	%r15d, %edx
	jl	LBB0_48
LBB0_49:
	movq	%rdi, %rbx
	movl	%r15d, %edi
	callq	_clamp
	movq	%rbx, %rdi
	movl	%eax, %r15d
	movl	8(%r12), %eax
LBB0_50:
	movq	_HID_MAIN_ITEM_RELATIVE@GOTPCREL(%rip), %rbx
	movq	_HID_MAIN_ITEM_BUFFERED_BYTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rbx), %ecx
	testl	%eax, %ecx
	je	LBB0_51
LBB0_54:
	movq	(%r13), %rax
	movq	_EV_KEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_57
## %bb.55:
	movl	28(%r13), %edi
	movl	(%r14), %esi
	callq	_test_bit
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	cmpl	%ecx, %r15d
	jne	LBB0_57
## %bb.56:
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	32(%r13), %ecx
	movq	%r14, %rdi
	callq	_input_event
LBB0_57:
	movq	(%r13), %rsi
	movl	28(%r13), %edx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_input_event
	movl	(%rbx), %eax
	testl	%eax, 8(%r12)
	je	LBB0_7
## %bb.58:
	movq	(%r13), %rax
	movq	_EV_KEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.59:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.60:
	movq	%r14, %rdi
	callq	_input_sync
	movq	(%r13), %rsi
	movl	28(%r13), %edx
	jmp	LBB0_61
LBB0_65:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hidinput_handle_scroll         ## TAILCALL
LBB0_51:
	testl	%eax, (%rdi)
	je	LBB0_54
## %bb.52:
	movq	40(%r13), %rax
	cmpq	16(%r12), %rax
	jae	LBB0_54
## %bb.53:
	movq	24(%r12), %rcx
	cmpl	(%rcx,%rax,4), %r15d
	je	LBB0_7
	jmp	LBB0_54
LBB0_48:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_26
LBB0_37:
	movq	_KEY_VOLUMEDOWN@GOTPCREL(%rip), %rax
LBB0_39:
	je	LBB0_7
## %bb.40:
	movl	(%rax), %r12d
	movl	%r15d, %ebx
	negl	%ebx
	cmovsl	%r15d, %ebx
	decl	%ebx
	movq	_EV_KEY@GOTPCREL(%rip), %r15
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	$1, %ecx
	callq	_input_event
	movq	%r14, %rdi
	callq	_input_sync
	movq	(%r15), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_input_event
	movq	%r14, %rdi
	callq	_input_sync
	subl	$1, %ebx
	jb	LBB0_7
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=1
	movq	_EV_KEY@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	jmp	LBB0_41
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_PWR,8,3                     ## @EV_PWR
	.comm	_hid_hat_to_axis,8,3            ## @hid_hat_to_axis
	.comm	_HID_UP_DIGITIZER,4,2           ## @HID_UP_DIGITIZER
	.comm	_HID_QUIRK_INVERT,4,2           ## @HID_QUIRK_INVERT
	.comm	_BTN_TOOL_RUBBER,4,2            ## @BTN_TOOL_RUBBER
	.comm	_HID_QUIRK_NOTOUCH,4,2          ## @HID_QUIRK_NOTOUCH
	.comm	_EV_KEY,8,3                     ## @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_HID_UP_PID,4,2                 ## @HID_UP_PID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Maximum Effects - %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"PID Pool Report\n"

	.comm	_EV_REL,8,3                     ## @EV_REL
	.comm	_REL_WHEEL_HI_RES,4,2           ## @REL_WHEEL_HI_RES
	.comm	_REL_HWHEEL_HI_RES,4,2          ## @REL_HWHEEL_HI_RES
	.comm	_EV_ABS,8,3                     ## @EV_ABS
	.comm	_HID_MAIN_ITEM_RELATIVE,4,2     ## @HID_MAIN_ITEM_RELATIVE
	.comm	_ABS_VOLUME,4,2                 ## @ABS_VOLUME
	.comm	_KEY_VOLUMEUP,4,2               ## @KEY_VOLUMEUP
	.comm	_KEY_VOLUMEDOWN,4,2             ## @KEY_VOLUMEDOWN
	.comm	_HID_MAIN_ITEM_VARIABLE,4,2     ## @HID_MAIN_ITEM_VARIABLE
	.comm	_HID_MAIN_ITEM_NULL_STATE,4,2   ## @HID_MAIN_ITEM_NULL_STATE
L_.str.2:                               ## @.str.2
	.asciz	"Ignoring out-of-range value %x\n"

	.comm	_HID_MAIN_ITEM_BUFFERED_BYTE,4,2 ## @HID_MAIN_ITEM_BUFFERED_BYTE
	.comm	_EV_MSC,8,3                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidinput_hid_event             ; -- Begin function hidinput_hid_event
	.p2align	2
_hidinput_hid_event:                    ; @hidinput_hid_event
	.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	x22, x1
	ldr	x1, [x2]
	cbz	x1, LBB0_21
; %bb.1:
	mov	x21, x3
Lloh0:
	adrp	x8, _EV_PWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_PWR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_3
; %bb.2:
	mov	x1, x21
	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
	b	_hidinput_update_battery
LBB0_3:
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_21
; %bb.4:
	mov	x20, x2
	ldr	x19, [x8]
	ldp	x9, x10, [x2, #8]
	ldr	w8, [x2, #24]
	subs	x10, x10, x9
	b.le	LBB0_7
; %bb.5:
	cbnz	w8, LBB0_8
; %bb.6:
	sxtw	x8, w21
	sub	x8, x8, x9
	lsl	x8, x8, #3
	add	x9, x10, #1
	sdiv	x8, x8, x9
	add	w8, w8, #1
	b	LBB0_8
LBB0_7:
	cbz	w8, LBB0_10
LBB0_8:
	cmp	w8, #8
	csel	w8, wzr, w8, hi
	ldr	w2, [x20, #28]
Lloh3:
	adrp	x21, _hid_hat_to_axis@GOTPAGE
Lloh4:
	ldr	x21, [x21, _hid_hat_to_axis@GOTPAGEOFF]
	ldr	x9, [x21]
	lsl	x22, x8, #3
	ldr	w3, [x9, x22]
	mov	x0, x19
	bl	_input_event
	ldr	x1, [x20]
	ldr	w8, [x20, #28]
	add	w2, w8, #1
	ldr	x8, [x21]
	add	x8, x8, x22
	ldr	w3, [x8, #4]
	mov	x0, x19
LBB0_9:
	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
	b	_input_event
LBB0_10:
	ldr	w8, [x20, #32]
Lloh5:
	adrp	x9, _HID_UP_DIGITIZER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HID_UP_DIGITIZER@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w10, w9, #0x3c
	cmp	w8, w10
	b.ne	LBB0_12
; %bb.11:
	ldr	w8, [x0]
Lloh8:
	adrp	x9, _HID_QUIRK_INVERT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HID_QUIRK_INVERT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w8, w8, w9
	cmp	w21, #0
	csel	w8, w8, w10, eq
	str	w8, [x0]
	b	LBB0_21
LBB0_12:
	mov	w10, #50
	orr	w10, w9, w10
	cmp	w8, w10
	b.ne	LBB0_15
; %bb.13:
	cbz	w21, LBB0_24
; %bb.14:
Lloh11:
	adrp	x8, _HID_QUIRK_INVERT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HID_QUIRK_INVERT@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh13:
	ldr	w8, [x8]
	add	x10, x20, #28
Lloh14:
	adrp	x11, _BTN_TOOL_RUBBER@GOTPAGE
Lloh15:
	ldr	x11, [x11, _BTN_TOOL_RUBBER@GOTPAGEOFF]
	tst	w8, w9
	csel	x8, x10, x11, eq
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	b	LBB0_9
LBB0_15:
	orr	w9, w9, #0x30
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.16:
	ldr	w9, [x0]
Lloh16:
	adrp	x10, _HID_QUIRK_NOTOUCH@GOTPAGE
Lloh17:
	ldr	x10, [x10, _HID_QUIRK_NOTOUCH@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_18
; %bb.17:
	ldp	w8, w9, [x22]
Lloh19:
	adrp	x10, _EV_KEY@GOTPAGE
Lloh20:
	ldr	x10, [x10, _EV_KEY@GOTPAGEOFF]
Lloh21:
	adrp	x11, _BTN_TOUCH@GOTPAGE
Lloh22:
	ldr	x11, [x11, _BTN_TOUCH@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x10]
Lloh24:
	ldr	w2, [x11]
	sub	w9, w9, w8
	add	w8, w8, w9, asr #3
	cmp	w8, w21
	cset	w3, lt
	mov	x0, x19
	bl	_input_event
	ldr	w8, [x20, #32]
LBB0_18:
	sxtw	x8, w8
Lloh25:
	adrp	x9, _HID_UP_PID@GOTPAGE
Lloh26:
	ldr	x9, [x9, _HID_UP_PID@GOTPAGEOFF]
Lloh27:
	ldrsw	x9, [x9]
	mov	w10, #131
	orr	x10, x9, x10
	cmp	x10, x8
	b.ne	LBB0_22
; %bb.19:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
LBB0_20:
	bl	_dbg_hid
LBB0_21:
	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
LBB0_22:
	orr	x9, x9, #0x7f
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.23:
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	b	_dbg_hid
LBB0_24:
	ldr	w2, [x20, #28]
	mov	x0, x19
	mov	w3, #0
	bl	_input_event
Lloh32:
	adrp	x8, _BTN_TOOL_RUBBER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BTN_TOOL_RUBBER@GOTPAGEOFF]
	ldr	x1, [x20]
Lloh34:
	ldr	w2, [x8]
LBB0_25:
	mov	x0, x19
	mov	w3, #0
	b	LBB0_9
LBB0_26:
	ldr	x9, [x20]
Lloh35:
	adrp	x23, _EV_KEY@GOTPAGE
Lloh36:
	ldr	x23, [x23, _EV_KEY@GOTPAGEOFF]
	ldr	x1, [x23]
	cmp	x9, x1
	b.ne	LBB0_28
; %bb.27:
	ldr	w8, [x20, #28]
	cbz	w8, LBB0_21
LBB0_28:
Lloh37:
	adrp	x8, _EV_REL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EV_REL@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.29:
	ldr	w8, [x20, #28]
Lloh40:
	adrp	x10, _REL_WHEEL_HI_RES@GOTPAGE
Lloh41:
	ldr	x10, [x10, _REL_WHEEL_HI_RES@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	cmp	w8, w10
	b.eq	LBB0_52
; %bb.30:
Lloh43:
	adrp	x10, _REL_HWHEEL_HI_RES@GOTPAGE
Lloh44:
	ldr	x10, [x10, _REL_HWHEEL_HI_RES@GOTPAGEOFF]
Lloh45:
	ldr	w10, [x10]
	cmp	w8, w10
	b.eq	LBB0_52
LBB0_31:
Lloh46:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh48:
	ldr	x10, [x8]
	ldr	w8, [x22, #8]
Lloh49:
	adrp	x24, _HID_MAIN_ITEM_RELATIVE@GOTPAGE
Lloh50:
	ldr	x24, [x24, _HID_MAIN_ITEM_RELATIVE@GOTPAGEOFF]
	cmp	x9, x10
	b.ne	LBB0_38
; %bb.32:
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_38
; %bb.33:
	ldr	w9, [x20, #28]
Lloh51:
	adrp	x10, _ABS_VOLUME@GOTPAGE
Lloh52:
	ldr	x10, [x10, _ABS_VOLUME@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_38
; %bb.34:
Lloh54:
	adrp	x8, _KEY_VOLUMEUP@GOTPAGE
Lloh55:
	ldr	x8, [x8, _KEY_VOLUMEUP@GOTPAGEOFF]
Lloh56:
	adrp	x9, _KEY_VOLUMEDOWN@GOTPAGE
Lloh57:
	ldr	x9, [x9, _KEY_VOLUMEDOWN@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x8, x9, gt
	cbz	w21, LBB0_21
; %bb.35:
	ldr	w20, [x8]
	cmp	w21, #0
	cneg	w8, w21, mi
	sub	w21, w8, #1
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x2, x20
	mov	w3, #1
	bl	_input_event
	mov	x0, x19
	bl	_input_sync
	ldr	x1, [x23]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_input_event
	mov	x0, x19
	bl	_input_sync
	cbz	w21, LBB0_21
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=1
	ldr	x1, [x23]
	sub	w21, w21, #1
	b	LBB0_36
LBB0_38:
Lloh58:
	adrp	x25, _HID_MAIN_ITEM_VARIABLE@GOTPAGE
Lloh59:
	ldr	x25, [x25, _HID_MAIN_ITEM_VARIABLE@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_44
; %bb.39:
	ldp	w1, w2, [x22]
	cmp	w1, w2
	b.ge	LBB0_44
; %bb.40:
Lloh60:
	adrp	x9, _HID_MAIN_ITEM_NULL_STATE@GOTPAGE
Lloh61:
	ldr	x9, [x9, _HID_MAIN_ITEM_NULL_STATE@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_43
; %bb.41:
	cmp	w1, w21
	b.gt	LBB0_56
; %bb.42:
	cmp	w2, w21
	b.lt	LBB0_56
LBB0_43:
	mov	x0, x21
	bl	_clamp
	mov	x21, x0
	ldr	w8, [x22, #8]
LBB0_44:
	ldr	w9, [x24]
Lloh63:
	adrp	x10, _HID_MAIN_ITEM_BUFFERED_BYTE@GOTPAGE
Lloh64:
	ldr	x10, [x10, _HID_MAIN_ITEM_BUFFERED_BYTE@GOTPAGEOFF]
Lloh65:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_53
LBB0_45:
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_48
; %bb.46:
	ldr	w0, [x20, #28]
	ldr	w1, [x19]
	bl	_test_bit
	cmp	w0, #0
	cset	w8, eq
	cmp	w21, w8
	b.ne	LBB0_48
; %bb.47:
Lloh66:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh67:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh68:
	ldr	x1, [x8]
Lloh69:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh70:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh71:
	ldr	w2, [x8]
	ldr	w3, [x20, #32]
	mov	x0, x19
	bl	_input_event
LBB0_48:
	ldr	x1, [x20]
	ldr	w2, [x20, #28]
	mov	x0, x19
	mov	x3, x21
	bl	_input_event
	ldr	w8, [x22, #8]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.49:
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.50:
	cbz	w21, LBB0_21
; %bb.51:
	mov	x0, x19
	bl	_input_sync
	ldr	x1, [x20]
	ldr	w2, [x20, #28]
	b	LBB0_25
LBB0_52:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	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
	b	_hidinput_handle_scroll
LBB0_53:
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_45
; %bb.54:
	ldr	x8, [x20, #40]
	ldr	x9, [x22, #16]
	cmp	x8, x9
	b.hs	LBB0_45
; %bb.55:
	ldr	x9, [x22, #24]
	ldr	w8, [x9, x8, lsl #2]
	cmp	w21, w8
	b.eq	LBB0_21
	b	LBB0_45
LBB0_56:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh72:
	adrp	x0, l_.str.2@PAGE
Lloh73:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh72, Lloh73
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_PWR,8,3                     ; @EV_PWR
	.comm	_hid_hat_to_axis,8,3            ; @hid_hat_to_axis
	.comm	_HID_UP_DIGITIZER,4,2           ; @HID_UP_DIGITIZER
	.comm	_HID_QUIRK_INVERT,4,2           ; @HID_QUIRK_INVERT
	.comm	_BTN_TOOL_RUBBER,4,2            ; @BTN_TOOL_RUBBER
	.comm	_HID_QUIRK_NOTOUCH,4,2          ; @HID_QUIRK_NOTOUCH
	.comm	_EV_KEY,8,3                     ; @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_HID_UP_PID,4,2                 ; @HID_UP_PID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Maximum Effects - %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"PID Pool Report\n"

	.comm	_EV_REL,8,3                     ; @EV_REL
	.comm	_REL_WHEEL_HI_RES,4,2           ; @REL_WHEEL_HI_RES
	.comm	_REL_HWHEEL_HI_RES,4,2          ; @REL_HWHEEL_HI_RES
	.comm	_EV_ABS,8,3                     ; @EV_ABS
	.comm	_HID_MAIN_ITEM_RELATIVE,4,2     ; @HID_MAIN_ITEM_RELATIVE
	.comm	_ABS_VOLUME,4,2                 ; @ABS_VOLUME
	.comm	_KEY_VOLUMEUP,4,2               ; @KEY_VOLUMEUP
	.comm	_KEY_VOLUMEDOWN,4,2             ; @KEY_VOLUMEDOWN
	.comm	_HID_MAIN_ITEM_VARIABLE,4,2     ; @HID_MAIN_ITEM_VARIABLE
	.comm	_HID_MAIN_ITEM_NULL_STATE,4,2   ; @HID_MAIN_ITEM_NULL_STATE
l_.str.2:                               ; @.str.2
	.asciz	"Ignoring out-of-range value %x\n"

	.comm	_HID_MAIN_ITEM_BUFFERED_BYTE,4,2 ; @HID_MAIN_ITEM_BUFFERED_BYTE
	.comm	_EV_MSC,8,3                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
.subsections_via_symbols
