	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_lradc_finish_touch_event
_mxs_lradc_finish_touch_event:          ## @mxs_lradc_finish_touch_event
	.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
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_mxs_lradc_check_touch_event
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	callq	_mxs_lradc_report_ts_event
LBB0_3:
	movq	%rbx, %rdi
	callq	_mxs_lradc_check_touch_event
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mxs_lradc_prepare_y_pos        ## TAILCALL
LBB0_4:
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	movl	$0, (%rbx)
	movl	20(%rbx), %edi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_input_report_key
	movl	20(%rbx), %edi
	callq	_input_sync
LBB0_6:
	movq	_LRADC_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	8(%rbx), %r14
	movl	$2, %edi
	callq	_LRADC_DELAY
	addq	%rax, %r14
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_writel
	movq	8(%rbx), %r14
	movl	$3, %edi
	callq	_LRADC_DELAY
	addq	%rax, %r14
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_writel
	movq	_LRADC_CTRL1_TOUCH_DETECT_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_TOUCHSCREEN_VCHANNEL1@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_LRADC_CTRL1_LRADC_IRQ_EN
	orl	%eax, %r14d
	movl	(%r15), %edi
	callq	_LRADC_CTRL1_LRADC_IRQ
	movq	_LRADC_CTRL1@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	8(%rbx), %rsi
	orl	%eax, %r14d
	movq	_STMP_OFFSET_REG_CLR@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	_LRADC_CTRL1_TOUCH_DETECT_IRQ_EN@GOTPCREL(%rip), %rax
	movq	(%r15), %rsi
	addq	8(%rbx), %rsi
	movl	(%rax), %edi
	movq	_STMP_OFFSET_REG_SET@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_LRADC_TOUCH,4,2                ## @LRADC_TOUCH
	.comm	_LRADC_CTRL1_TOUCH_DETECT_IRQ,4,2 ## @LRADC_CTRL1_TOUCH_DETECT_IRQ
	.comm	_TOUCHSCREEN_VCHANNEL1,4,2      ## @TOUCHSCREEN_VCHANNEL1
	.comm	_LRADC_CTRL1,8,3                ## @LRADC_CTRL1
	.comm	_STMP_OFFSET_REG_CLR,8,3        ## @STMP_OFFSET_REG_CLR
	.comm	_LRADC_CTRL1_TOUCH_DETECT_IRQ_EN,4,2 ## @LRADC_CTRL1_TOUCH_DETECT_IRQ_EN
	.comm	_STMP_OFFSET_REG_SET,8,3        ## @STMP_OFFSET_REG_SET
	.no_dead_strip	_mxs_lradc_finish_touch_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_lradc_finish_touch_event
_mxs_lradc_finish_touch_event:          ; @mxs_lradc_finish_touch_event
	.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	x19, x0
	cbz	w1, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_mxs_lradc_check_touch_event
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_mxs_lradc_report_ts_event
LBB0_3:
	mov	x0, x19
	bl	_mxs_lradc_check_touch_event
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	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
	b	_mxs_lradc_prepare_y_pos
LBB0_5:
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.6:
	str	wzr, [x19]
	ldr	w0, [x19, #20]
Lloh0:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_input_report_key
	ldr	w0, [x19, #20]
	bl	_input_sync
LBB0_7:
Lloh3:
	adrp	x8, _LRADC_TOUCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LRADC_TOUCH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	x20, [x19, #8]
	mov	w0, #2
	bl	_LRADC_DELAY
	add	x1, x0, x20
	mov	w0, #0
	bl	_writel
	ldr	x20, [x19, #8]
	mov	w0, #3
	bl	_LRADC_DELAY
	add	x1, x0, x20
	mov	w0, #0
	bl	_writel
Lloh6:
	adrp	x8, _LRADC_CTRL1_TOUCH_DETECT_IRQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LRADC_CTRL1_TOUCH_DETECT_IRQ@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
Lloh9:
	adrp	x21, _TOUCHSCREEN_VCHANNEL1@GOTPAGE
Lloh10:
	ldr	x21, [x21, _TOUCHSCREEN_VCHANNEL1@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_LRADC_CTRL1_LRADC_IRQ_EN
	orr	w20, w0, w20
	ldr	w0, [x21]
	bl	_LRADC_CTRL1_LRADC_IRQ
	orr	w0, w20, w0
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x20, _LRADC_CTRL1@GOTPAGE
Lloh12:
	ldr	x20, [x20, _LRADC_CTRL1@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh13:
	adrp	x10, _STMP_OFFSET_REG_CLR@GOTPAGE
Lloh14:
	ldr	x10, [x10, _STMP_OFFSET_REG_CLR@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x1, x8, x10
	bl	_writel
Lloh16:
	adrp	x8, _LRADC_CTRL1_TOUCH_DETECT_IRQ_EN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LRADC_CTRL1_TOUCH_DETECT_IRQ_EN@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh19:
	adrp	x9, _STMP_OFFSET_REG_SET@GOTPAGE
Lloh20:
	ldr	x9, [x9, _STMP_OFFSET_REG_SET@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh21:
	ldr	x9, [x9]
	add	x8, x10, x8
	add	x1, x8, x9
	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
	b	_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_LRADC_TOUCH,4,2                ; @LRADC_TOUCH
	.comm	_LRADC_CTRL1_TOUCH_DETECT_IRQ,4,2 ; @LRADC_CTRL1_TOUCH_DETECT_IRQ
	.comm	_TOUCHSCREEN_VCHANNEL1,4,2      ; @TOUCHSCREEN_VCHANNEL1
	.comm	_LRADC_CTRL1,8,3                ; @LRADC_CTRL1
	.comm	_STMP_OFFSET_REG_CLR,8,3        ; @STMP_OFFSET_REG_CLR
	.comm	_LRADC_CTRL1_TOUCH_DETECT_IRQ_EN,4,2 ; @LRADC_CTRL1_TOUCH_DETECT_IRQ_EN
	.comm	_STMP_OFFSET_REG_SET,8,3        ; @STMP_OFFSET_REG_SET
	.no_dead_strip	_mxs_lradc_finish_touch_event
.subsections_via_symbols
