	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_i4_parse_pen_report
_wacom_i4_parse_pen_report:             ## @wacom_i4_parse_pen_report
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movzbl	1(%rdx), %r13d
	cmpl	$194, %r13d
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r15
	cmpb	$-128, %r13b
	jne	LBB0_5
## %bb.2:
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_input_report_key
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_input_report_abs
	movl	4(%r14), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_input_report_key
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_input_report_abs
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movzbl	(%r14), %ecx
	movq	%r15, %rdi
	callq	_input_event
	movl	$0, 4(%r14)
	jmp	LBB0_3
LBB0_4:
	movb	2(%rbx), %al
	movb	3(%rbx), %cl
	shrb	$4, %cl
	shlb	$4, %al
	orb	%cl, %al
	movb	%al, 1(%r14)
	movb	6(%rbx), %al
	movb	7(%rbx), %cl
	shrb	$4, %cl
	shlb	$4, %al
	orb	%cl, %al
	movb	%al, (%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movzbl	2(%rbx), %eax
	shll	$9, %eax
	movzbl	3(%rbx), %ecx
	leal	(%rax,%rcx,2), %eax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movzbl	9(%rbx), %r14d
	movl	%r14d, %r12d
	shrl	%r12d
	andl	$1, %r12d
	orl	%eax, %r12d
	movzbl	4(%rbx), %eax
	shll	$9, %eax
	movzbl	5(%rbx), %ecx
	movl	%r14d, %edx
	andl	$1, %edx
	orl	%eax, %edx
	leal	(%rdx,%rcx,2), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movzbl	6(%rbx), %eax
	movzbl	7(%rbx), %ecx
	shrl	$5, %ecx
	andl	$6, %ecx
	leal	(%rcx,%rax,8), %eax
	andl	$1, %r13d
	orl	%eax, %r13d
	shrl	$2, %r14d
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$2, %r13d
	setae	%dl
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_STYLUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%rbx), %edx
	andl	$2, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	_BTN_STYLUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%rbx), %edx
	andl	$4, %edx
	movq	%r15, %rdi
	callq	_input_report_key
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_input_report_key
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_abs
	movq	_ABS_DISTANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_input_report_abs
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_input_report_abs
	movq	_ABS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%rbx), %edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movzbl	(%rbx), %ecx
	movq	%r15, %rdi
	callq	_input_event
LBB0_3:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_ABS_MISC,4,2                   ## @ABS_MISC
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SERIAL,4,2                 ## @MSC_SERIAL
	.comm	_BTN_TOOL_PEN,4,2               ## @BTN_TOOL_PEN
	.comm	_BTN_TOOL_RUBBER,4,2            ## @BTN_TOOL_RUBBER
	.comm	_BTN_STYLUS,4,2                 ## @BTN_STYLUS
	.comm	_BTN_STYLUS2,4,2                ## @BTN_STYLUS2
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_DISTANCE,4,2               ## @ABS_DISTANCE
	.no_dead_strip	_wacom_i4_parse_pen_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_i4_parse_pen_report
_wacom_i4_parse_pen_report:             ; @wacom_i4_parse_pen_report
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x2
	mov	x19, x0
	ldrb	w8, [x2, #1]
	cmp	w8, #194
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x1
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_input_report_key
Lloh3:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_input_report_abs
	ldr	w1, [x19, #4]
	mov	x0, x20
	mov	w2, #0
	bl	_input_report_key
Lloh6:
	adrp	x8, _ABS_MISC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABS_MISC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_input_report_abs
Lloh9:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _MSC_SERIAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSC_SERIAL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldrb	w3, [x19]
	mov	x0, x20
	bl	_input_event
	str	wzr, [x19, #4]
	b	LBB0_5
LBB0_3:
	ldrb	w8, [x23, #2]
	ldrb	w9, [x23, #3]
	lsl	w9, w9, #24
	extr	w8, w8, w9, #28
	strb	w8, [x19, #1]
	ldrb	w8, [x23, #6]
	ldrb	w9, [x23, #7]
	lsl	w9, w9, #24
	extr	w8, w8, w9, #28
	strb	w8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldrb	w9, [x23, #2]
	lsl	w22, w9, #9
	ldrb	w9, [x23, #3]
	bfi	w22, w9, #1, #8
	ldrb	w9, [x23, #9]
	bfxil	w22, w9, #1, #1
	ldrb	w10, [x23, #4]
	ldrb	w11, [x23, #5]
	and	w24, w9, #0x1
	bfi	w24, w10, #9, #8
	bfi	w24, w11, #1, #8
	ldrb	w10, [x23, #6]
	ldrb	w11, [x23, #7]
	lsr	w11, w11, #5
	and	w21, w11, #0x6
	bfi	w21, w10, #3, #8
	bfxil	w21, w8, #0, #1
	lsr	w25, w9, #2
Lloh15:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	cmp	w21, #1
	cset	w2, hi
	mov	x0, x20
	bl	_input_report_key
Lloh18:
	adrp	x8, _BTN_STYLUS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BTN_STYLUS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldrb	w8, [x23, #1]
	and	w2, w8, #0x2
	mov	x0, x20
	bl	_input_report_key
Lloh21:
	adrp	x8, _BTN_STYLUS2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BTN_STYLUS2@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldrb	w8, [x23, #1]
	and	w2, w8, #0x4
	mov	x0, x20
	bl	_input_report_key
	ldr	w1, [x19, #4]
	mov	x0, x20
	mov	w2, #1
	bl	_input_report_key
Lloh24:
	adrp	x8, _ABS_X@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_input_report_abs
Lloh27:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x24
	bl	_input_report_abs
Lloh30:
	adrp	x8, _ABS_DISTANCE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ABS_DISTANCE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x25
	bl	_input_report_abs
Lloh33:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_input_report_abs
Lloh36:
	adrp	x8, _ABS_MISC@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ABS_MISC@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldrb	w2, [x19, #1]
	mov	x0, x20
	bl	_input_report_abs
Lloh39:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _MSC_SERIAL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MSC_SERIAL@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	ldrb	w3, [x19]
	mov	x0, x20
	bl	_input_event
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_ABS_MISC,4,2                   ; @ABS_MISC
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SERIAL,4,2                 ; @MSC_SERIAL
	.comm	_BTN_TOOL_PEN,4,2               ; @BTN_TOOL_PEN
	.comm	_BTN_TOOL_RUBBER,4,2            ; @BTN_TOOL_RUBBER
	.comm	_BTN_STYLUS,4,2                 ; @BTN_STYLUS
	.comm	_BTN_STYLUS2,4,2                ; @BTN_STYLUS2
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_DISTANCE,4,2               ; @ABS_DISTANCE
	.no_dead_strip	_wacom_i4_parse_pen_report
.subsections_via_symbols
