	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hanwang_parse_packet
_hanwang_parse_packet:                  ## @hanwang_parse_packet
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %r12
	movq	24(%rdi), %rax
	movl	(%rax), %ebx
	cmpl	$129, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_BTN_TOOL_PEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movq	_STYLUS_DEVICE_ID@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, 16(%r13)
LBB0_2:
	movq	40(%r13), %r14
	movq	32(%r13), %rdi
	movb	(%r12), %al
	cmpb	$12, %al
	je	LBB0_8
## %bb.3:
	cmpb	$2, %al
	jne	LBB0_15
## %bb.4:
	movb	1(%r12), %r15b
	testb	%r15b, %r15b
	je	LBB0_16
## %bb.5:
	cmpb	$-62, %r15b
	je	LBB0_18
## %bb.6:
	cmpb	$-128, %r15b
	jne	LBB0_21
## %bb.7:
	cmpl	$129, %ebx
	jne	LBB0_17
	jmp	LBB0_44
LBB0_8:
	movq	_PAD_DEVICE_ID@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, 16(%r13)
	cmpl	$130, %ebx
	je	LBB0_23
## %bb.9:
	cmpl	$129, %ebx
	je	LBB0_32
## %bb.10:
	cmpl	$128, %ebx
	jne	LBB0_31
## %bb.11:
	movq	_BTN_TOOL_FINGER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movb	$1, %al
	cmpb	$0, 1(%r12)
	jne	LBB0_14
## %bb.12:
	cmpb	$0, 2(%r12)
	jne	LBB0_14
## %bb.13:
	cmpb	$0, 3(%r12)
	setne	%al
LBB0_14:
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_ABS_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%r12), %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_BTN_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	2(%r12), %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_1@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rsi
	movzbl	3(%r12), %edx
	addq	$3, %r12
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	incl	%eax
	movb	$-128, -44(%rbp)                ## 1-byte Folded Spill
	movl	$7, -76(%rbp)                   ## 4-byte Folded Spill
	movb	$64, -45(%rbp)                  ## 1-byte Folded Spill
	movl	$6, -80(%rbp)                   ## 4-byte Folded Spill
	movb	$32, -42(%rbp)                  ## 1-byte Folded Spill
	movl	$5, -72(%rbp)                   ## 4-byte Folded Spill
	movb	$16, -43(%rbp)                  ## 1-byte Folded Spill
	movl	$4, -68(%rbp)                   ## 4-byte Folded Spill
	movb	$8, -41(%rbp)                   ## 1-byte Folded Spill
	movl	$3, -64(%rbp)                   ## 4-byte Folded Spill
	movb	$4, %r15b
	movl	$2, -60(%rbp)                   ## 4-byte Folded Spill
	movb	$2, %cl
	movq	%r12, %rbx
	jmp	LBB0_30
LBB0_15:
	movzbl	%al, %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_46
LBB0_16:
	cmpl	$129, %ebx
	jne	LBB0_44
LBB0_17:
	movb	$0, 16(%r13)
	movq	8(%r13), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	jmp	LBB0_43
LBB0_18:
	movzbl	3(%r12), %eax
	andl	$-16, %eax
	addl	$-32, %eax
	shrl	$4, %eax
	leal	-8(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_36
## %bb.19:
	cmpl	$1, %eax
	ja	LBB0_47
## %bb.20:
	movq	_STYLUS_DEVICE_ID@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, 16(%r13)
	movq	_BTN_TOOL_PEN@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_21:
	leal	-129(%rbx), %eax
	cmpl	$2, %eax
	jae	LBB0_33
## %bb.22:
	movb	6(%r12), %r15b
	movb	7(%r12), %al
	shrb	$6, %al
	shlb	$2, %r15b
	jmp	LBB0_35
LBB0_23:
	movq	_BTN_TOOL_FINGER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpb	$0, 1(%r12)
	movb	$1, %al
	jne	LBB0_29
## %bb.24:
	cmpb	$0, 2(%r12)
	movb	$1, %al
	jne	LBB0_29
## %bb.25:
	cmpb	$0, 3(%r12)
	movb	$1, %al
	jne	LBB0_29
## %bb.26:
	cmpb	$0, 4(%r12)
	movb	$1, %al
	jne	LBB0_29
## %bb.27:
	cmpb	$0, 5(%r12)
	movb	$1, %al
	jne	LBB0_29
## %bb.28:
	cmpb	$0, 6(%r12)
	setne	%al
LBB0_29:
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_ABS_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	2(%r12), %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_RY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	4(%r12), %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_BTN_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	5(%r12), %rbx
	movzbl	5(%r12), %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_1@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movzbl	5(%r12), %edx
	addq	$6, %r12
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_5@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %eax
	movb	$8, -45(%rbp)                   ## 1-byte Folded Spill
	movl	$3, -80(%rbp)                   ## 4-byte Folded Spill
	movb	$4, -43(%rbp)                   ## 1-byte Folded Spill
	movl	$2, -68(%rbp)                   ## 4-byte Folded Spill
	movb	$2, %r15b
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$1, -64(%rbp)                   ## 4-byte Folded Spill
	movb	$2, -41(%rbp)                   ## 1-byte Folded Spill
	movl	$2, -72(%rbp)                   ## 4-byte Folded Spill
	movb	$4, -42(%rbp)                   ## 1-byte Folded Spill
	movl	$3, -76(%rbp)                   ## 4-byte Folded Spill
	movb	$8, -44(%rbp)                   ## 1-byte Folded Spill
	movb	$1, %cl
LBB0_30:
	movslq	%eax, %rsi
	andb	(%r12), %cl
	movzbl	%cl, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_1@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	addq	%rax, %rsi
	andb	(%rbx), %r15b
	movzbl	%r15b, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	%rbx, %r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rbx), %rax
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	addq	%rax, %rsi
	movb	-41(%rbp), %al                  ## 1-byte Reload
	andb	(%r12), %al
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_1@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	addq	%rax, %rsi
	movb	-43(%rbp), %al                  ## 1-byte Reload
	andb	(%r15), %al
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movslq	(%rbx), %rax
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	addq	%rax, %rsi
	movb	-42(%rbp), %al                  ## 1-byte Reload
	andb	(%r12), %al
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_1@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	addq	%rax, %rsi
	movb	-45(%rbp), %al                  ## 1-byte Reload
	andb	(%r15), %al
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movslq	(%rbx), %rax
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	addq	%rax, %rsi
	movb	-44(%rbp), %al                  ## 1-byte Reload
	andb	(%r12), %al
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_input_report_key
LBB0_31:
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	16(%r13), %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$-1, %ecx
	jmp	LBB0_45
LBB0_32:
	movzbl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_33:
	cmpl	$128, %ebx
	jne	LBB0_38
## %bb.34:
	movb	6(%r12), %al
	movb	7(%r12), %cl
	shrb	$5, %cl
	shlb	$3, %al
	orb	%cl, %al
	andb	$-2, %al
	andb	$1, %r15b
LBB0_35:
	orb	%al, %r15b
	jmp	LBB0_39
LBB0_36:
	movq	_ERASER_DEVICE_ID@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, 16(%r13)
	movq	_BTN_TOOL_RUBBER@GOTPCREL(%rip), %rax
LBB0_37:
	movq	(%rax), %rsi
	movq	%rsi, 8(%r13)
	jmp	LBB0_41
LBB0_38:
	xorl	%r15d, %r15d
LBB0_39:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	2(%r12), %rdi
	callq	_be16_to_cpup
	movzbl	%al, %edx
	movq	%r14, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	4(%r12), %rdi
	callq	_be16_to_cpup
	movzbl	%al, %edx
	movq	%r14, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_input_report_abs
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r15b, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_TILT_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	7(%r12), %edx
	andl	$63, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_TILT_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	8(%r12), %edx
	andl	$127, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_BTN_STYLUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	1(%r12), %edx
	andl	$2, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	cmpl	$129, %ebx
	jne	LBB0_42
## %bb.40:
	movq	_BTN_TOOL_PEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_41:
	movq	%r14, %rdi
	movl	$1, %edx
	jmp	LBB0_43
LBB0_42:
	movq	_BTN_STYLUS2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	1(%r12), %edx
	andl	$4, %edx
	movq	%r14, %rdi
LBB0_43:
	callq	_input_report_key
LBB0_44:
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	16(%r13), %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	24(%r13), %rax
	movl	4(%rax), %ecx
	movq	%r14, %rdi
LBB0_45:
	callq	_input_event
LBB0_46:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_47:
	movb	$0, 16(%r13)
	movzbl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_44
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_TOOL_PEN,8,3               ## @BTN_TOOL_PEN
	.comm	_STYLUS_DEVICE_ID,8,3           ## @STYLUS_DEVICE_ID
	.comm	_ERASER_DEVICE_ID,1,0           ## @ERASER_DEVICE_ID
	.comm	_BTN_TOOL_RUBBER,8,3            ## @BTN_TOOL_RUBBER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown tablet tool %02x\n"

	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_ABS_TILT_X,4,2                 ## @ABS_TILT_X
	.comm	_ABS_TILT_Y,4,2                 ## @ABS_TILT_Y
	.comm	_BTN_STYLUS,8,3                 ## @BTN_STYLUS
	.comm	_BTN_STYLUS2,8,3                ## @BTN_STYLUS2
	.comm	_ABS_MISC,4,2                   ## @ABS_MISC
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SERIAL,4,2                 ## @MSC_SERIAL
	.comm	_PAD_DEVICE_ID,1,0              ## @PAD_DEVICE_ID
	.comm	_BTN_TOOL_FINGER,8,3            ## @BTN_TOOL_FINGER
	.comm	_ABS_WHEEL,4,2                  ## @ABS_WHEEL
	.comm	_BTN_0,8,3                      ## @BTN_0
	.comm	_BTN_1,4,2                      ## @BTN_1
	.comm	_ABS_RX,4,2                     ## @ABS_RX
	.comm	_ABS_RY,4,2                     ## @ABS_RY
	.comm	_BTN_5,4,2                      ## @BTN_5
L_.str.1:                               ## @.str.1
	.asciz	"error packet  %02x\n"

	.no_dead_strip	_hanwang_parse_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hanwang_parse_packet
_hanwang_parse_packet:                  ; @hanwang_parse_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	x22, [x0]
	ldp	x0, x19, [x0, #32]
	ldr	x8, [x20, #24]
	ldr	w23, [x8]
	subs	w8, w23, #129
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _BTN_TOOL_PEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BTN_TOOL_PEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x9, [x20, #8]
Lloh3:
	adrp	x9, _STYLUS_DEVICE_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STYLUS_DEVICE_ID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	strb	w9, [x20, #16]
LBB0_2:
	ldrb	w2, [x22]
	cmp	w2, #12
	b.eq	LBB0_8
; %bb.3:
	cmp	w2, #2
	b.ne	LBB0_15
; %bb.4:
	ldrb	w9, [x22, #1]
	cbz	w9, LBB0_16
; %bb.5:
	cmp	w9, #194
	b.eq	LBB0_18
; %bb.6:
	cmp	w9, #128
	b.ne	LBB0_21
; %bb.7:
	cmp	w23, #129
	b.ne	LBB0_17
	b	LBB0_43
LBB0_8:
Lloh6:
	adrp	x8, _PAD_DEVICE_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAD_DEVICE_ID@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x20, #16]
	cmp	w23, #130
	b.eq	LBB0_23
; %bb.9:
	cmp	w23, #129
	b.eq	LBB0_32
; %bb.10:
	cmp	w23, #128
	b.ne	LBB0_31
; %bb.11:
Lloh8:
	adrp	x8, _BTN_TOOL_FINGER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BTN_TOOL_FINGER@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	ldrb	w8, [x22, #1]
	cbnz	w8, LBB0_13
; %bb.12:
	ldrb	w8, [x22, #2]
	cbz	w8, LBB0_47
LBB0_13:
	mov	w2, #1
LBB0_14:
	mov	x0, x19
	bl	_input_report_key
Lloh11:
	adrp	x8, _ABS_WHEEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ABS_WHEEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldrb	w2, [x22, #1]
	mov	x0, x19
	bl	_input_report_abs
Lloh14:
	adrp	x8, _BTN_0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BTN_0@GOTPAGEOFF]
Lloh16:
	ldr	x1, [x8]
	ldrb	w2, [x22, #2]
	mov	x0, x19
	bl	_input_report_key
	ldrb	w8, [x22, #3]!
Lloh17:
	adrp	x21, _BTN_1@GOTPAGE
Lloh18:
	ldr	x21, [x21, _BTN_1@GOTPAGEOFF]
	ldrsw	x1, [x21]
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_input_report_key
	ldr	w8, [x21]
	add	w8, w8, #1
	mov	w10, #128
	mov	w9, #7
	stp	w9, w10, [sp, #16]              ; 8-byte Folded Spill
	mov	w10, #64
	mov	w9, #6
	stp	w9, w10, [sp, #24]              ; 8-byte Folded Spill
	mov	w10, #32
	mov	w9, #5
	stp	w9, w10, [sp, #4]               ; 8-byte Folded Spill
	mov	w9, #16
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	mov	w25, #4
	mov	w27, #8
	mov	w28, #3
	mov	w24, #2
	mov	x23, x22
	b	LBB0_30
LBB0_15:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	b	LBB0_45
LBB0_16:
	cmp	w23, #129
	b.ne	LBB0_43
LBB0_17:
	strb	wzr, [x20, #16]
	ldr	x1, [x20, #8]
	mov	x0, x19
	mov	w2, #0
	b	LBB0_42
LBB0_18:
	ldrb	w8, [x22, #3]
	and	w8, w8, #0xf0
	sub	w8, w8, #32
	lsr	w8, w8, #4
	sub	w9, w8, #8
	cmp	w9, #2
	b.lo	LBB0_35
; %bb.19:
	cmp	w8, #1
	b.hi	LBB0_46
; %bb.20:
Lloh21:
	adrp	x8, _STYLUS_DEVICE_ID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STYLUS_DEVICE_ID@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	strb	w8, [x20, #16]
Lloh24:
	adrp	x8, _BTN_TOOL_PEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTN_TOOL_PEN@GOTPAGEOFF]
	b	LBB0_36
LBB0_21:
	cmp	w8, #2
	b.hs	LBB0_33
; %bb.22:
	ldrb	w8, [x22, #7]
	ldrb	w9, [x22, #6]
	lsl	w8, w8, #24
	extr	w24, w9, w8, #30
	b	LBB0_38
LBB0_23:
Lloh26:
	adrp	x8, _BTN_TOOL_FINGER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BTN_TOOL_FINGER@GOTPAGEOFF]
Lloh28:
	ldr	x1, [x8]
	ldrb	w8, [x22, #1]
	cbnz	w8, LBB0_28
; %bb.24:
	ldrb	w8, [x22, #2]
	cbnz	w8, LBB0_28
; %bb.25:
	ldrb	w8, [x22, #3]
	cbnz	w8, LBB0_28
; %bb.26:
	ldrb	w8, [x22, #4]
	cbnz	w8, LBB0_28
; %bb.27:
	ldrb	w8, [x22, #5]
	cbz	w8, LBB0_48
LBB0_28:
	mov	w2, #1
LBB0_29:
	mov	x0, x19
	bl	_input_report_key
Lloh29:
	adrp	x8, _ABS_RX@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ABS_RX@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldrb	w2, [x22, #2]
	mov	x0, x19
	bl	_input_report_abs
Lloh32:
	adrp	x8, _ABS_RY@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ABS_RY@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldrb	w2, [x22, #4]
	mov	x0, x19
	bl	_input_report_abs
Lloh35:
	adrp	x8, _BTN_0@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BTN_0@GOTPAGEOFF]
Lloh37:
	ldr	x1, [x8]
	ldrb	w8, [x22, #5]!
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_input_report_key
	add	x23, x22, #1
Lloh38:
	adrp	x8, _BTN_1@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BTN_1@GOTPAGEOFF]
Lloh40:
	ldrsw	x1, [x8]
	ldrb	w8, [x22]
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_input_report_key
Lloh41:
	adrp	x21, _BTN_5@GOTPAGE
Lloh42:
	ldr	x21, [x21, _BTN_5@GOTPAGEOFF]
	mov	w9, #8
	mov	w8, #3
	stp	w8, w9, [sp, #24]               ; 8-byte Folded Spill
	mov	w10, #4
	ldr	w8, [x21]
	mov	w25, #2
	mov	w24, #1
	mov	w28, #1
	mov	w27, #2
	mov	w9, #2
	str	w9, [sp, #4]                    ; 4-byte Folded Spill
	mov	w9, #4
	stp	w9, w10, [sp, #8]               ; 8-byte Folded Spill
	mov	w10, #3
	mov	w9, #8
	stp	w10, w9, [sp, #16]              ; 8-byte Folded Spill
LBB0_30:
	sxtw	x1, w8
	ldrb	w8, [x23]
	and	w2, w8, w24
	mov	x0, x19
	bl	_input_report_key
Lloh43:
	adrp	x26, _BTN_1@GOTPAGE
Lloh44:
	ldr	x26, [x26, _BTN_1@GOTPAGEOFF]
	ldrsw	x8, [x26]
	add	x1, x8, w24, uxtw
	ldrb	w8, [x22]
	and	w2, w8, w25
	mov	x0, x19
	bl	_input_report_key
	ldrsw	x8, [x21]
	add	x1, x8, w28, uxtw
	ldrb	w8, [x23]
	and	w2, w8, w27
	mov	x0, x19
	bl	_input_report_key
	ldrsw	x8, [x26]
	add	x1, x8, w25, uxtw
	ldrb	w8, [x22]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	and	w2, w8, w9
	mov	x0, x19
	bl	_input_report_key
	ldrsw	x8, [x21]
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	add	x1, x8, w9, uxtw
	ldrb	w8, [x23]
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	and	w2, w8, w9
	mov	x0, x19
	bl	_input_report_key
	ldrsw	x8, [x26]
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
	add	x1, x8, w9, uxtw
	ldrb	w8, [x22]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	and	w2, w8, w9
	mov	x0, x19
	bl	_input_report_key
	ldrsw	x8, [x21]
	ldr	w9, [sp, #16]                   ; 4-byte Folded Reload
	add	x1, x8, w9, uxtw
	ldrb	w8, [x23]
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	and	w2, w8, w9
	mov	x0, x19
	bl	_input_report_key
LBB0_31:
Lloh45:
	adrp	x8, _ABS_MISC@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ABS_MISC@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	ldrb	w2, [x20, #16]
	mov	x0, x19
	bl	_input_report_abs
Lloh48:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
Lloh51:
	adrp	x8, _MSC_SERIAL@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MSC_SERIAL@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #-1
	b	LBB0_44
LBB0_32:
	ldrb	w2, [x22]
Lloh54:
	adrp	x1, l_.str.1@PAGE
Lloh55:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_dev_dbg
LBB0_33:
	cmp	w23, #128
	b.ne	LBB0_37
; %bb.34:
	ldrb	w8, [x22, #6]
	lsl	w24, w8, #3
	ldrb	w8, [x22, #7]
	bfxil	w24, w8, #5, #3
	bfxil	w24, w9, #0, #1
	b	LBB0_38
LBB0_35:
Lloh56:
	adrp	x8, _ERASER_DEVICE_ID@GOTPAGE
Lloh57:
	ldr	x8, [x8, _ERASER_DEVICE_ID@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x20, #16]
Lloh58:
	adrp	x8, _BTN_TOOL_RUBBER@GOTPAGE
Lloh59:
	ldr	x8, [x8, _BTN_TOOL_RUBBER@GOTPAGEOFF]
LBB0_36:
	ldr	x1, [x8]
	str	x1, [x20, #8]
	b	LBB0_40
LBB0_37:
	mov	w24, #0
LBB0_38:
Lloh60:
	adrp	x8, _ABS_X@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh62:
	ldr	w21, [x8]
	add	x0, x22, #2
	bl	_be16_to_cpup
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_input_report_abs
Lloh63:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh64:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh65:
	ldr	w21, [x8]
	add	x0, x22, #4
	bl	_be16_to_cpup
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_input_report_abs
Lloh66:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh67:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	and	w2, w24, #0xff
	mov	x0, x19
	bl	_input_report_abs
Lloh69:
	adrp	x8, _ABS_TILT_X@GOTPAGE
Lloh70:
	ldr	x8, [x8, _ABS_TILT_X@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	ldrb	w8, [x22, #7]
	and	w2, w8, #0x3f
	mov	x0, x19
	bl	_input_report_abs
Lloh72:
	adrp	x8, _ABS_TILT_Y@GOTPAGE
Lloh73:
	ldr	x8, [x8, _ABS_TILT_Y@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	ldrb	w8, [x22, #8]
	and	w2, w8, #0x7f
	mov	x0, x19
	bl	_input_report_abs
Lloh75:
	adrp	x8, _BTN_STYLUS@GOTPAGE
Lloh76:
	ldr	x8, [x8, _BTN_STYLUS@GOTPAGEOFF]
Lloh77:
	ldr	x1, [x8]
	ldrb	w8, [x22, #1]
	and	w2, w8, #0x2
	mov	x0, x19
	bl	_input_report_key
	cmp	w23, #129
	b.ne	LBB0_41
; %bb.39:
Lloh78:
	adrp	x8, _BTN_TOOL_PEN@GOTPAGE
Lloh79:
	ldr	x8, [x8, _BTN_TOOL_PEN@GOTPAGEOFF]
Lloh80:
	ldr	x1, [x8]
LBB0_40:
	mov	x0, x19
	mov	w2, #1
	b	LBB0_42
LBB0_41:
Lloh81:
	adrp	x8, _BTN_STYLUS2@GOTPAGE
Lloh82:
	ldr	x8, [x8, _BTN_STYLUS2@GOTPAGEOFF]
Lloh83:
	ldr	x1, [x8]
	ldrb	w8, [x22, #1]
	and	w2, w8, #0x4
	mov	x0, x19
LBB0_42:
	bl	_input_report_key
LBB0_43:
Lloh84:
	adrp	x8, _ABS_MISC@GOTPAGE
Lloh85:
	ldr	x8, [x8, _ABS_MISC@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
	ldrb	w2, [x20, #16]
	mov	x0, x19
	bl	_input_report_abs
Lloh87:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh88:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
Lloh90:
	adrp	x8, _MSC_SERIAL@GOTPAGE
Lloh91:
	ldr	x8, [x8, _MSC_SERIAL@GOTPAGEOFF]
Lloh92:
	ldr	w2, [x8]
	ldr	x8, [x20, #24]
	ldr	w3, [x8, #4]
	mov	x0, x19
LBB0_44:
	bl	_input_event
LBB0_45:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_input_sync
LBB0_46:
	strb	wzr, [x20, #16]
	ldrb	w2, [x22]
Lloh93:
	adrp	x1, l_.str@PAGE
Lloh94:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	b	LBB0_43
LBB0_47:
	ldrb	w8, [x22, #3]
	cmp	w8, #0
	cset	w2, ne
	b	LBB0_14
LBB0_48:
	ldrb	w8, [x22, #6]
	cmp	w8, #0
	cset	w2, ne
	b	LBB0_29
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh93, Lloh94
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_TOOL_PEN,8,3               ; @BTN_TOOL_PEN
	.comm	_STYLUS_DEVICE_ID,8,3           ; @STYLUS_DEVICE_ID
	.comm	_ERASER_DEVICE_ID,1,0           ; @ERASER_DEVICE_ID
	.comm	_BTN_TOOL_RUBBER,8,3            ; @BTN_TOOL_RUBBER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown tablet tool %02x\n"

	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_ABS_TILT_X,4,2                 ; @ABS_TILT_X
	.comm	_ABS_TILT_Y,4,2                 ; @ABS_TILT_Y
	.comm	_BTN_STYLUS,8,3                 ; @BTN_STYLUS
	.comm	_BTN_STYLUS2,8,3                ; @BTN_STYLUS2
	.comm	_ABS_MISC,4,2                   ; @ABS_MISC
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SERIAL,4,2                 ; @MSC_SERIAL
	.comm	_PAD_DEVICE_ID,1,0              ; @PAD_DEVICE_ID
	.comm	_BTN_TOOL_FINGER,8,3            ; @BTN_TOOL_FINGER
	.comm	_ABS_WHEEL,4,2                  ; @ABS_WHEEL
	.comm	_BTN_0,8,3                      ; @BTN_0
	.comm	_BTN_1,4,2                      ; @BTN_1
	.comm	_ABS_RX,4,2                     ; @ABS_RX
	.comm	_ABS_RY,4,2                     ; @ABS_RY
	.comm	_BTN_5,4,2                      ; @BTN_5
l_.str.1:                               ; @.str.1
	.asciz	"error packet  %02x\n"

	.no_dead_strip	_hanwang_parse_packet
.subsections_via_symbols
