	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_lradc_complete_touch_event
_mxs_lradc_complete_touch_event:        ## @mxs_lradc_complete_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, %r14
	callq	_mxs_lradc_setup_touch_detection
	movq	_LRADC_SAMPLE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	(%r14), %rbx
	movq	_TOUCHSCREEN_VCHANNEL1@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_LRADC_CH
	addq	%rax, %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_writel
	movl	(%r15), %edi
	callq	_LRADC_CTRL1_LRADC_IRQ
	movl	%eax, %ebx
	movq	_TOUCHSCREEN_VCHANNEL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LRADC_CTRL1_LRADC_IRQ
	movq	_LRADC_CTRL1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	orl	%eax, %ebx
	movq	_STMP_OFFSET_REG_CLR@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	%ebx, %edi
	callq	_writel
	movb	(%r15), %cl
	movl	$1, %edi
	shll	%cl, %edi
	callq	_LRADC_DELAY_TRIGGER
	movl	%eax, %ebx
	movq	_LRADC_DELAY_KICK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	$10, %edi
	callq	_LRADC_DELAY_DELAY
	orl	%eax, %ebx
	movq	(%r14), %r14
	movl	$2, %edi
	callq	_LRADC_DELAY
	addq	%rax, %r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LRADC_SAMPLE_VALID,4,2         ## @LRADC_SAMPLE_VALID
	.comm	_TOUCHSCREEN_VCHANNEL1,4,2      ## @TOUCHSCREEN_VCHANNEL1
	.comm	_TOUCHSCREEN_VCHANNEL2,4,2      ## @TOUCHSCREEN_VCHANNEL2
	.comm	_LRADC_CTRL1,8,3                ## @LRADC_CTRL1
	.comm	_STMP_OFFSET_REG_CLR,8,3        ## @STMP_OFFSET_REG_CLR
	.comm	_LRADC_DELAY_KICK,4,2           ## @LRADC_DELAY_KICK
	.no_dead_strip	_mxs_lradc_complete_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_complete_touch_event
_mxs_lradc_complete_touch_event:        ; @mxs_lradc_complete_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
	bl	_mxs_lradc_setup_touch_detection
Lloh0:
	adrp	x8, _LRADC_SAMPLE_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LRADC_SAMPLE_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	x20, [x19]
Lloh3:
	adrp	x21, _TOUCHSCREEN_VCHANNEL1@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TOUCHSCREEN_VCHANNEL1@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_LRADC_CH
	add	x1, x0, x20
	mov	w0, #0
	bl	_writel
	ldr	w0, [x21]
	bl	_LRADC_CTRL1_LRADC_IRQ
	mov	x20, x0
Lloh5:
	adrp	x8, _TOUCHSCREEN_VCHANNEL2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TOUCHSCREEN_VCHANNEL2@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_LRADC_CTRL1_LRADC_IRQ
	orr	w0, w0, w20
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _LRADC_CTRL1@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LRADC_CTRL1@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _STMP_OFFSET_REG_CLR@GOTPAGE
Lloh12:
	ldr	x10, [x10, _STMP_OFFSET_REG_CLR@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x1, x8, x10
	bl	_writel
	ldr	w8, [x21]
	mov	w9, #1
	lsl	w0, w9, w8
	bl	_LRADC_DELAY_TRIGGER
Lloh14:
	adrp	x8, _LRADC_DELAY_KICK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LRADC_DELAY_KICK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w20, w8, w0
	mov	w0, #10
	bl	_LRADC_DELAY_DELAY
	orr	w20, w20, w0
	ldr	x19, [x19]
	mov	w0, #2
	bl	_LRADC_DELAY
	add	x1, x0, x19
	mov	x0, x20
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LRADC_SAMPLE_VALID,4,2         ; @LRADC_SAMPLE_VALID
	.comm	_TOUCHSCREEN_VCHANNEL1,4,2      ; @TOUCHSCREEN_VCHANNEL1
	.comm	_TOUCHSCREEN_VCHANNEL2,4,2      ; @TOUCHSCREEN_VCHANNEL2
	.comm	_LRADC_CTRL1,8,3                ; @LRADC_CTRL1
	.comm	_STMP_OFFSET_REG_CLR,8,3        ; @STMP_OFFSET_REG_CLR
	.comm	_LRADC_DELAY_KICK,4,2           ; @LRADC_DELAY_KICK
	.no_dead_strip	_mxs_lradc_complete_touch_event
.subsections_via_symbols
