	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function touchit213_interrupt
_touchit213_interrupt:                  ## @touchit213_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_serio_get_drvdata
	movq	%rax, %rbx
	movq	16(%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	$4, %rax
	je	LBB0_4
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	(%rbx), %rax
	movzbl	(%rax), %eax
	movq	_T213_FORMAT_STATUS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_T213_FORMAT_STATUS_BYTE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.3:
	movzbl	%r15b, %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	$0, 8(%rbx)
	jmp	LBB0_5
LBB0_4:
	movq	$0, 8(%rbx)
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movzbl	1(%rax), %ecx
	shll	$7, %ecx
	movzbl	2(%rax), %edx
	orl	%ecx, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movzbl	3(%rax), %ecx
	shll	$7, %ecx
	movzbl	4(%rax), %edx
	orl	%ecx, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movzbl	(%rax), %edx
	movq	_T213_FORMAT_TOUCH_BIT@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	%r14, %rdi
	callq	_input_sync
LBB0_5:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_T213_FORMAT_STATUS_MASK,4,2    ## @T213_FORMAT_STATUS_MASK
	.comm	_T213_FORMAT_STATUS_BYTE,4,2    ## @T213_FORMAT_STATUS_BYTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsynchronized data: 0x%02x\n"

	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_T213_FORMAT_TOUCH_BIT,4,2      ## @T213_FORMAT_TOUCH_BIT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_touchit213_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function touchit213_interrupt
_touchit213_interrupt:                  ; @touchit213_interrupt
	.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	x21, x1
	bl	_serio_get_drvdata
	mov	x19, x0
	ldp	x9, x20, [x0, #8]
	ldr	x8, [x0]
	strb	w21, [x8, x9]
	ldr	x8, [x0, #8]
	add	x9, x8, #1
	str	x9, [x0, #8]
	cmp	x8, #4
	b.eq	LBB0_4
; %bb.1:
	cbnz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x19]
	ldrb	w8, [x8]
Lloh0:
	adrp	x9, _T213_FORMAT_STATUS_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _T213_FORMAT_STATUS_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _T213_FORMAT_STATUS_BYTE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _T213_FORMAT_STATUS_BYTE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
	str	xzr, [x19, #8]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _ABS_X@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
	str	xzr, [x19, #8]
Lloh10:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldrb	w9, [x8, #1]
	ldrb	w8, [x8, #2]
	orr	w2, w8, w9, lsl #7
	mov	x0, x20
	bl	_input_report_abs
Lloh11:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldrb	w9, [x8, #3]
	ldrb	w8, [x8, #4]
	orr	w2, w8, w9, lsl #7
	mov	x0, x20
	bl	_input_report_abs
Lloh14:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldrb	w8, [x8]
Lloh17:
	adrp	x9, _T213_FORMAT_TOUCH_BIT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _T213_FORMAT_TOUCH_BIT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	and	w2, w9, w8
	mov	x0, x20
	bl	_input_report_key
	mov	x0, x20
	bl	_input_sync
LBB0_5:
Lloh20:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_T213_FORMAT_STATUS_MASK,4,2    ; @T213_FORMAT_STATUS_MASK
	.comm	_T213_FORMAT_STATUS_BYTE,4,2    ; @T213_FORMAT_STATUS_BYTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsynchronized data: 0x%02x\n"

	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_T213_FORMAT_TOUCH_BIT,4,2      ; @T213_FORMAT_TOUCH_BIT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_touchit213_interrupt
.subsections_via_symbols
