	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsc_interrupt
_tsc_interrupt:                         ## @tsc_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_serio_get_drvdata
	movq	%rax, %rbx
	movq	16(%rax), %r12
	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
	ja	LBB0_10
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movl	%r15d, %eax
	andb	$-4, %al
	movzbl	%al, %edi
	callq	_unlikely
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movq	8(%rbx), %rcx
	decq	%rcx
	movzbl	%r15b, %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_9
LBB0_2:
	movzbl	%r15b, %r13d
	movl	%r13d, %eax
	andl	$62, %eax
	xorl	%edi, %edi
	cmpl	$16, %eax
	setne	%dil
	callq	_unlikely
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_tsc_process_data
LBB0_9:
	movq	$0, 8(%rbx)
LBB0_10:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testb	$1, %r15b
	jne	LBB0_10
## %bb.5:
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_input_report_key
	movq	%r12, %rdi
	callq	_input_sync
	jmp	LBB0_9
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsynchronized packet start (0x%02x)\n"

	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
L_.str.1:                               ## @.str.1
	.asciz	"unsynchronized data 0x%02x at offset %d\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_tsc_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsc_interrupt
_tsc_interrupt:                         ; @tsc_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	x20, x1
	mov	x21, x0
	bl	_serio_get_drvdata
	ldp	x9, x22, [x0, #8]
	ldr	x8, [x0]
	strb	w20, [x8, x9]
	ldr	x8, [x0, #8]
	add	x9, x8, #1
	str	x9, [x0, #8]
	cmp	x8, #4
	b.hi	LBB0_9
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	and	w0, w20, #0xfc
	bl	_unlikely
	cbz	w0, LBB0_9
; %bb.3:
	ldr	x8, [x19, #8]
	sub	x8, x8, #1
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	and	w8, w20, #0x3e
	cmp	w8, #16
	cset	w0, ne
	bl	_unlikely
	cbz	w0, LBB0_10
; %bb.5:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x21
	mov	x2, x20
	bl	_dev_dbg
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_tsc_process_data
LBB0_8:
	str	xzr, [x19, #8]
LBB0_9:
Lloh6:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh8:
	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
LBB0_10:
	tbnz	w20, #0, LBB0_9
; %bb.11:
Lloh9:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_input_report_key
	mov	x0, x22
	bl	_input_sync
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsynchronized packet start (0x%02x)\n"

	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
l_.str.1:                               ; @.str.1
	.asciz	"unsynchronized data 0x%02x at offset %d\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_tsc_interrupt
.subsections_via_symbols
