	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_lradc_setup_ts_channel
_mxs_lradc_setup_ts_channel:            ## @mxs_lradc_setup_ts_channel
	.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, %r14d
	movq	%rdi, %r15
	movq	_LRADC_CH_ACCUMULATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	24(%rdi), %rdi
	decq	%rdi
	callq	_LRADC_CH_NUM_SAMPLES
	orl	%eax, %r12d
	movq	(%r15), %rbx
	movl	%r14d, %edi
	callq	_LRADC_CH
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	_LRADC_CH_VALUE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r15), %rbx
	movl	%r14d, %edi
	callq	_LRADC_CH
	addq	%rax, %rbx
	movq	_STMP_OFFSET_REG_CLR@GOTPCREL(%rip), %r13
	addq	(%r13), %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movl	$1, %edi
	movl	%r14d, %ecx
	shll	%cl, %edi
	callq	_LRADC_DELAY_TRIGGER
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_LRADC_DELAY_TRIGGER_DELAYS
	orl	%eax, %ebx
	movq	24(%r15), %rdi
	decq	%rdi
	callq	_LRADC_DELAY_LOOP
	orl	%eax, %ebx
	movq	16(%r15), %rdi
	decq	%rdi
	callq	_LRADC_DELAY_DELAY
	orl	%eax, %ebx
	movq	(%r15), %r12
	movl	$3, %edi
	callq	_LRADC_DELAY
	addq	%rax, %r12
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_writel
	movl	%r14d, %edi
	callq	_LRADC_CTRL1_LRADC_IRQ
	movq	_LRADC_CTRL1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r15), %rsi
	addq	(%r13), %rsi
	movl	%eax, %edi
	callq	_writel
	xorl	%edi, %edi
	callq	_LRADC_DELAY_TRIGGER
	movl	%eax, %ebx
	movl	$3, %edi
	callq	_BIT
	movl	%eax, %edi
	callq	_LRADC_DELAY_TRIGGER_DELAYS
	orl	%eax, %ebx
	movq	_LRADC_DELAY_KICK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	8(%r15), %rdi
	callq	_LRADC_DELAY_DELAY
	orl	%eax, %ebx
	movq	(%r15), %r14
	movl	$2, %edi
	callq	_LRADC_DELAY
	addq	%rax, %r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LRADC_CH_ACCUMULATE,4,2        ## @LRADC_CH_ACCUMULATE
	.comm	_LRADC_CH_VALUE_MASK,4,2        ## @LRADC_CH_VALUE_MASK
	.comm	_STMP_OFFSET_REG_CLR,8,3        ## @STMP_OFFSET_REG_CLR
	.comm	_LRADC_CTRL1,8,3                ## @LRADC_CTRL1
	.comm	_LRADC_DELAY_KICK,4,2           ## @LRADC_DELAY_KICK
	.no_dead_strip	_mxs_lradc_setup_ts_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_lradc_setup_ts_channel
_mxs_lradc_setup_ts_channel:            ; @mxs_lradc_setup_ts_channel
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _LRADC_CH_ACCUMULATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LRADC_CH_ACCUMULATE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x8, [x0, #24]
	sub	x0, x8, #1
	bl	_LRADC_CH_NUM_SAMPLES
	orr	w21, w0, w21
	ldr	x22, [x19]
	mov	x0, x20
	bl	_LRADC_CH
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
Lloh3:
	adrp	x8, _LRADC_CH_VALUE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LRADC_CH_VALUE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	x23, [x19]
	mov	x0, x20
	bl	_LRADC_CH
Lloh6:
	adrp	x22, _STMP_OFFSET_REG_CLR@GOTPAGE
Lloh7:
	ldr	x22, [x22, _STMP_OFFSET_REG_CLR@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x9, x0, x23
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	mov	w8, #1
	lsl	w0, w8, w20
	bl	_LRADC_DELAY_TRIGGER
	mov	x21, x0
	mov	w0, #0
	bl	_LRADC_DELAY_TRIGGER_DELAYS
	orr	w21, w0, w21
	ldr	x8, [x19, #24]
	sub	x0, x8, #1
	bl	_LRADC_DELAY_LOOP
	orr	w21, w21, w0
	ldr	x8, [x19, #16]
	sub	x0, x8, #1
	bl	_LRADC_DELAY_DELAY
	orr	w21, w21, w0
	ldr	x23, [x19]
	mov	w0, #3
	bl	_LRADC_DELAY
	add	x1, x0, x23
	mov	x0, x21
	bl	_writel
	mov	x0, x20
	bl	_LRADC_CTRL1_LRADC_IRQ
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _LRADC_CTRL1@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LRADC_CTRL1@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x10, [x22]
	add	x8, x9, x8
	add	x1, x8, x10
	bl	_writel
	mov	w0, #0
	bl	_LRADC_DELAY_TRIGGER
	mov	x20, x0
	mov	w0, #3
	bl	_BIT
	bl	_LRADC_DELAY_TRIGGER_DELAYS
	orr	w8, w0, w20
Lloh11:
	adrp	x9, _LRADC_DELAY_KICK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LRADC_DELAY_KICK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w20, w8, w9
	ldr	x0, [x19, #8]
	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, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LRADC_CH_ACCUMULATE,4,2        ; @LRADC_CH_ACCUMULATE
	.comm	_LRADC_CH_VALUE_MASK,4,2        ; @LRADC_CH_VALUE_MASK
	.comm	_STMP_OFFSET_REG_CLR,8,3        ; @STMP_OFFSET_REG_CLR
	.comm	_LRADC_CTRL1,8,3                ; @LRADC_CTRL1
	.comm	_LRADC_DELAY_KICK,4,2           ; @LRADC_DELAY_KICK
	.no_dead_strip	_mxs_lradc_setup_ts_channel
.subsections_via_symbols
