	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw_interrupt
_tw_interrupt:                          ## @tw_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	24(%rax), %r14
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.1:
	movl	$1, (%rbx)
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, 16(%rbx)
	movb	%r15b, (%rax,%rcx)
	movq	16(%rbx), %rax
	movq	_TW_LENGTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	8(%rbx), %rax
	movb	1(%rax), %cl
	cmpb	2(%rax), %cl
	jne	LBB0_6
## %bb.3:
	movq	_ABS_X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	(%rax), %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movzbl	1(%rax), %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_input_report_key
	movq	%r14, %rdi
	callq	_input_sync
	movq	$0, 16(%rbx)
	jmp	LBB0_6
LBB0_4:
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_input_report_key
	movq	%r14, %rdi
	callq	_input_sync
	movq	$0, 16(%rbx)
	movl	$0, (%rbx)
LBB0_6:
	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	_TW_LENGTH,8,3                  ## @TW_LENGTH
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_tw_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw_interrupt
_tw_interrupt:                          ; @tw_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
	ldr	x20, [x0, #24]
	cbz	w21, LBB0_4
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
	ldp	x8, x9, [x19, #8]
	add	x10, x9, #1
	str	x10, [x19, #16]
	strb	w21, [x8, x9]
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _TW_LENGTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TW_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x19, #8]
	ldrb	w9, [x8, #1]
	ldrb	w10, [x8, #2]
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.3:
Lloh3:
	adrp	x9, _ABS_X@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ABS_X@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldrb	w2, [x8]
	mov	x0, x20
	bl	_input_report_abs
Lloh6:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldrb	w2, [x8, #1]
	mov	x0, x20
	bl	_input_report_abs
Lloh9:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_input_report_key
	mov	x0, x20
	bl	_input_sync
	str	xzr, [x19, #16]
	b	LBB0_6
LBB0_4:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_input_report_key
	mov	x0, x20
	bl	_input_sync
	str	xzr, [x19, #16]
	str	wzr, [x19]
LBB0_6:
Lloh15:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh17:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TW_LENGTH,8,3                  ; @TW_LENGTH
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_tw_interrupt
.subsections_via_symbols
