	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc32xx_ts_interrupt
_lpc32xx_ts_interrupt:                  ## @lpc32xx_ts_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rsi), %r15
	movq	_LPC32XX_TSC_STAT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_tsc_readl
	movq	_LPC32XX_TSC_STAT_FIFO_OVRRN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.9:
	movq	%rbx, %rdi
	callq	_lpc32xx_fifo_clear
	jmp	LBB0_8
LBB0_1:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_tsc_readl
	movq	_LPC32XX_TSC_STAT_FIFO_EMPTY@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.2:
	movq	_LPC32XX_TSC_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tsc_readl
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_LPC32XX_TSC_FIFO_NORMALIZE_X_VAL
	movl	%r12d, %edi
	callq	_LPC32XX_TSC_FIFO_NORMALIZE_Y_VAL
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_tsc_readl
	movq	_LPC32XX_TSC_STAT_FIFO_EMPTY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.3:
	movq	_LPC32XX_TSC_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tsc_readl
	movl	%eax, %r12d
	movq	_LPC32XX_TSC_ADCDAT_VALUE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_LPC32XX_TSC_FIFO_NORMALIZE_X_VAL
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_LPC32XX_TSC_ADCDAT_VALUE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_LPC32XX_TSC_FIFO_NORMALIZE_Y_VAL
	movl	%eax, %r12d
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_tsc_readl
	movq	_LPC32XX_TSC_STAT_FIFO_EMPTY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.4:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	_LPC32XX_TSC_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tsc_readl
	movl	%eax, %r12d
	movq	_LPC32XX_TSC_ADCDAT_VALUE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_LPC32XX_TSC_FIFO_NORMALIZE_X_VAL
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_LPC32XX_TSC_ADCDAT_VALUE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_LPC32XX_TSC_FIFO_NORMALIZE_Y_VAL
	movl	%eax, %r12d
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_tsc_readl
	movq	_LPC32XX_TSC_STAT_FIFO_EMPTY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.5:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movq	_LPC32XX_TSC_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tsc_readl
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_LPC32XX_TSC_FIFO_NORMALIZE_X_VAL
	movl	%ebx, %edi
	callq	_LPC32XX_TSC_FIFO_NORMALIZE_Y_VAL
	movq	_LPC32XX_TSC_FIFO_TS_P_LEVEL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_7
## %bb.6:
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	subl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	subl	-52(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%r13d, %edi
	subl	%r12d, %edi
	addl	%eax, %edi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	subl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	addl	%ecx, %ebx
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edi, %edx
	shrl	$31, %edx
	addl	%edi, %edx
	sarl	%edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	shrl	$31, %edx
	addl	%ebx, %edx
	sarl	%edx
	movq	%r15, %rdi
	callq	_input_report_abs
	movl	$1, %r14d
LBB0_7:
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_input_report_key
	movq	%r15, %rdi
	callq	_input_sync
LBB0_8:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LPC32XX_TSC_STAT,4,2           ## @LPC32XX_TSC_STAT
	.comm	_LPC32XX_TSC_STAT_FIFO_OVRRN,4,2 ## @LPC32XX_TSC_STAT_FIFO_OVRRN
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_LPC32XX_TSC_STAT_FIFO_EMPTY,4,2 ## @LPC32XX_TSC_STAT_FIFO_EMPTY
	.comm	_LPC32XX_TSC_FIFO,4,2           ## @LPC32XX_TSC_FIFO
	.comm	_LPC32XX_TSC_ADCDAT_VALUE_MASK,4,2 ## @LPC32XX_TSC_ADCDAT_VALUE_MASK
	.comm	_LPC32XX_TSC_FIFO_TS_P_LEVEL,4,2 ## @LPC32XX_TSC_FIFO_TS_P_LEVEL
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.no_dead_strip	_lpc32xx_ts_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc32xx_ts_interrupt
_lpc32xx_ts_interrupt:                  ; @lpc32xx_ts_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	ldr	x19, [x1]
Lloh0:
	adrp	x25, _LPC32XX_TSC_STAT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LPC32XX_TSC_STAT@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_tsc_readl
Lloh2:
	adrp	x8, _LPC32XX_TSC_STAT_FIFO_OVRRN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LPC32XX_TSC_STAT_FIFO_OVRRN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_lpc32xx_fifo_clear
	b	LBB0_9
LBB0_2:
	ldr	w1, [x25]
	mov	x0, x20
	bl	_tsc_readl
Lloh5:
	adrp	x26, _LPC32XX_TSC_STAT_FIFO_EMPTY@GOTPAGE
Lloh6:
	ldr	x26, [x26, _LPC32XX_TSC_STAT_FIFO_EMPTY@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.3:
Lloh7:
	adrp	x27, _LPC32XX_TSC_FIFO@GOTPAGE
Lloh8:
	ldr	x27, [x27, _LPC32XX_TSC_FIFO@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x20
	bl	_tsc_readl
	mov	x21, x0
	bl	_LPC32XX_TSC_FIFO_NORMALIZE_X_VAL
	mov	x0, x21
	bl	_LPC32XX_TSC_FIFO_NORMALIZE_Y_VAL
	ldr	w1, [x25]
	mov	x0, x20
	bl	_tsc_readl
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.4:
	ldr	w1, [x27]
	mov	x0, x20
	bl	_tsc_readl
	mov	x22, x0
Lloh9:
	adrp	x28, _LPC32XX_TSC_ADCDAT_VALUE_MASK@GOTPAGE
Lloh10:
	ldr	x28, [x28, _LPC32XX_TSC_ADCDAT_VALUE_MASK@GOTPAGEOFF]
	ldr	w24, [x28]
	bl	_LPC32XX_TSC_FIFO_NORMALIZE_X_VAL
	mov	x21, x0
	ldr	w23, [x28]
	mov	x0, x22
	bl	_LPC32XX_TSC_FIFO_NORMALIZE_Y_VAL
	mov	x22, x0
	ldr	w1, [x25]
	mov	x0, x20
	bl	_tsc_readl
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.5:
	stp	w23, w24, [sp, #4]              ; 8-byte Folded Spill
	ldr	w1, [x27]
	mov	x0, x20
	bl	_tsc_readl
	mov	x24, x0
	ldr	w8, [x28]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	bl	_LPC32XX_TSC_FIFO_NORMALIZE_X_VAL
	mov	x23, x0
	ldr	w28, [x28]
	mov	x0, x24
	bl	_LPC32XX_TSC_FIFO_NORMALIZE_Y_VAL
	mov	x24, x0
	ldr	w1, [x25]
	mov	x0, x20
	bl	_tsc_readl
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.6:
	ldr	w25, [sp, #12]                  ; 4-byte Folded Reload
	ldr	w1, [x27]
	mov	x0, x20
	bl	_tsc_readl
	mov	x20, x0
	bl	_LPC32XX_TSC_FIFO_NORMALIZE_X_VAL
	mov	x0, x20
	bl	_LPC32XX_TSC_FIFO_NORMALIZE_Y_VAL
Lloh11:
	adrp	x8, _LPC32XX_TSC_FIFO_TS_P_LEVEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LPC32XX_TSC_FIFO_TS_P_LEVEL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
LBB0_7:
	mov	w2, #0
LBB0_8:
Lloh14:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_input_report_key
	mov	x0, x19
	bl	_input_sync
LBB0_9:
Lloh17:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	ldp	w9, w8, [sp, #4]                ; 8-byte Folded Reload
	sub	w8, w8, w21
	sub	w20, w9, w22
	sub	w21, w28, w24
Lloh20:
	adrp	x9, _ABS_X@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ABS_X@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x9]
	sub	w9, w25, w23
	add	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x19
	bl	_input_report_abs
Lloh23:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	w8, w21, w20
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x19
	bl	_input_report_abs
	mov	w2, #1
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_LPC32XX_TSC_STAT,4,2           ; @LPC32XX_TSC_STAT
	.comm	_LPC32XX_TSC_STAT_FIFO_OVRRN,4,2 ; @LPC32XX_TSC_STAT_FIFO_OVRRN
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_LPC32XX_TSC_STAT_FIFO_EMPTY,4,2 ; @LPC32XX_TSC_STAT_FIFO_EMPTY
	.comm	_LPC32XX_TSC_FIFO,4,2           ; @LPC32XX_TSC_FIFO
	.comm	_LPC32XX_TSC_ADCDAT_VALUE_MASK,4,2 ; @LPC32XX_TSC_ADCDAT_VALUE_MASK
	.comm	_LPC32XX_TSC_FIFO_TS_P_LEVEL,4,2 ; @LPC32XX_TSC_FIFO_TS_P_LEVEL
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.no_dead_strip	_lpc32xx_ts_interrupt
.subsections_via_symbols
