	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w8001_interrupt
_w8001_interrupt:                       ## @w8001_interrupt
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_serio_get_drvdata
	movq	%rax, %rbx
	movq	32(%rax), %r14
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movb	%r15b, (%rax,%rcx)
	movq	8(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, 8(%rbx)
	cmpq	$10, %rax
	je	LBB0_7
## %bb.1:
	cmpq	$8, %rax
	je	LBB0_5
## %bb.2:
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movq	_W8001_LEAD_MASK@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	andb	%r15b, %al
	movq	_W8001_LEAD_BYTE@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	je	LBB0_8
## %bb.4:
	movzbl	%r15b, %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	$0, 8(%rbx)
	jmp	LBB0_8
LBB0_7:
	movq	$0, 8(%rbx)
	movl	24(%rbx), %edi
	movq	(%rbx), %rsi
	movq	_W8001_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	_W8001_QUERY_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_complete
	jmp	LBB0_8
LBB0_5:
	movq	(%rbx), %rax
	movq	_W8001_TAB_MASK@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	andb	(%rax), %cl
	movq	_W8001_TAB_BYTE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpb	(%rax), %cl
	sete	%dil
	callq	_unlikely
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	$0, 8(%rbx)
	movq	(%rbx), %rdi
	leaq	-40(%rbp), %rsi
	callq	_parse_data
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-28(%rbp), %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-32(%rbp), %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	%r14, %rdi
	callq	_input_sync
LBB0_8:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W8001_LEAD_MASK,1,0            ## @W8001_LEAD_MASK
	.comm	_W8001_LEAD_BYTE,1,0            ## @W8001_LEAD_BYTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w8001: unsynchronized data: 0x%02x\n"

	.comm	_W8001_TAB_MASK,1,0             ## @W8001_TAB_MASK
	.comm	_W8001_TAB_BYTE,1,0             ## @W8001_TAB_BYTE
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_W8001_MAX_LENGTH,4,2           ## @W8001_MAX_LENGTH
	.comm	_W8001_QUERY_PACKET,4,2         ## @W8001_QUERY_PACKET
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_w8001_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w8001_interrupt
_w8001_interrupt:                       ; @w8001_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	bl	_serio_get_drvdata
	mov	x20, x0
	ldr	x19, [x0, #32]
	ldp	x8, x9, [x0]
	strb	w21, [x8, x9]
	ldr	x8, [x0, #8]
	add	x9, x8, #1
	str	x9, [x0, #8]
	cmp	x8, #10
	b.eq	LBB0_5
; %bb.1:
	cmp	x8, #8
	b.eq	LBB0_6
; %bb.2:
	cbnz	x8, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _W8001_LEAD_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _W8001_LEAD_MASK@GOTPAGEOFF]
	ldrb	w8, [x8]
	and	w8, w8, w21
Lloh2:
	adrp	x9, _W8001_LEAD_BYTE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _W8001_LEAD_BYTE@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.4:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
	str	xzr, [x20, #8]
	b	LBB0_8
LBB0_5:
	str	xzr, [x20, #8]
	ldr	w0, [x20, #24]
	ldr	x1, [x20]
Lloh6:
	adrp	x8, _W8001_MAX_LENGTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _W8001_MAX_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_memcpy
Lloh9:
	adrp	x8, _W8001_QUERY_PACKET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _W8001_QUERY_PACKET@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	add	x0, x20, #16
	bl	_complete
	b	LBB0_8
LBB0_6:
	ldr	x8, [x20]
	ldrb	w8, [x8]
Lloh12:
	adrp	x9, _W8001_TAB_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _W8001_TAB_MASK@GOTPAGEOFF]
	ldrb	w9, [x9]
	and	w8, w9, w8
Lloh14:
	adrp	x9, _W8001_TAB_BYTE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _W8001_TAB_BYTE@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cbnz	w0, LBB0_8
; %bb.7:
	str	xzr, [x20, #8]
	ldr	x0, [x20]
	mov	x1, sp
	bl	_parse_data
Lloh16:
	adrp	x8, _ABS_X@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_input_report_abs
Lloh19:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_input_report_abs
Lloh22:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w2, [sp, #4]
	mov	x0, x19
	bl	_input_report_abs
Lloh25:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [sp]
	mov	x0, x19
	bl	_input_report_key
	mov	x0, x19
	bl	_input_sync
LBB0_8:
Lloh28:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_W8001_LEAD_MASK,1,0            ; @W8001_LEAD_MASK
	.comm	_W8001_LEAD_BYTE,1,0            ; @W8001_LEAD_BYTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w8001: unsynchronized data: 0x%02x\n"

	.comm	_W8001_TAB_MASK,1,0             ; @W8001_TAB_MASK
	.comm	_W8001_TAB_BYTE,1,0             ; @W8001_TAB_BYTE
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_W8001_MAX_LENGTH,4,2           ; @W8001_MAX_LENGTH
	.comm	_W8001_QUERY_PACKET,4,2         ; @W8001_QUERY_PACKET
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_w8001_interrupt
.subsections_via_symbols
