	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tr_interrupt
_tr_interrupt:                          ## @tr_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	(%rbx), %rax
	movzbl	(%rax), %ecx
	movq	_TR_FORMAT_STATUS_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	movq	_TR_FORMAT_STATUS_BYTE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rcx
	incq	%rcx
	movq	%rcx, 8(%rbx)
	movq	_TR_LENGTH@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	movq	_ABS_X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	1(%rax), %ecx
	shll	$5, %ecx
	movzbl	2(%rax), %edx
	shrl	%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	$5, %ecx
	movzbl	4(%rax), %edx
	shrl	%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	_TR_FORMAT_TOUCH_BIT@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	%r14, %rdi
	callq	_input_sync
	movq	$0, 8(%rbx)
LBB0_3:
	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	_TR_FORMAT_STATUS_MASK,4,2      ## @TR_FORMAT_STATUS_MASK
	.comm	_TR_FORMAT_STATUS_BYTE,4,2      ## @TR_FORMAT_STATUS_BYTE
	.comm	_TR_LENGTH,8,3                  ## @TR_LENGTH
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_TR_FORMAT_TOUCH_BIT,4,2        ## @TR_FORMAT_TOUCH_BIT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_tr_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tr_interrupt
_tr_interrupt:                          ; @tr_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
	ldp	x9, x20, [x0, #8]
	ldr	x8, [x0]
	strb	w21, [x8, x9]
	ldr	x8, [x0]
	ldrb	w9, [x8]
Lloh0:
	adrp	x10, _TR_FORMAT_STATUS_MASK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TR_FORMAT_STATUS_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh3:
	adrp	x10, _TR_FORMAT_STATUS_BYTE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TR_FORMAT_STATUS_BYTE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #8]
	add	x9, x9, #1
	str	x9, [x0, #8]
Lloh6:
	adrp	x10, _TR_LENGTH@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TR_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x9, _ABS_X@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ABS_X@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	ldrb	w9, [x8, #1]
	lsl	w9, w9, #5
	ldrb	w8, [x8, #2]
	orr	w2, w9, w8, lsr #1
	mov	x0, x20
	bl	_input_report_abs
Lloh12:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldrb	w9, [x8, #3]
	lsl	w9, w9, #5
	ldrb	w8, [x8, #4]
	orr	w2, w9, w8, lsr #1
	mov	x0, x20
	bl	_input_report_abs
Lloh15:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldrb	w8, [x8]
Lloh18:
	adrp	x9, _TR_FORMAT_TOUCH_BIT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TR_FORMAT_TOUCH_BIT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w2, w9, w8
	mov	x0, x20
	bl	_input_report_key
	mov	x0, x20
	bl	_input_sync
	str	xzr, [x19, #8]
LBB0_3:
Lloh21:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh23:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_TR_FORMAT_STATUS_MASK,4,2      ; @TR_FORMAT_STATUS_MASK
	.comm	_TR_FORMAT_STATUS_BYTE,4,2      ; @TR_FORMAT_STATUS_BYTE
	.comm	_TR_LENGTH,8,3                  ; @TR_LENGTH
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_TR_FORMAT_TOUCH_BIT,4,2        ; @TR_FORMAT_TOUCH_BIT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_tr_interrupt
.subsections_via_symbols
