	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_lradc_adc_read_single
_mxs_lradc_adc_read_single:             ## @mxs_lradc_adc_read_single
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_iio_priv
	movq	%rax, %r15
	movq	16(%rax), %rbx
	movq	%r13, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r12d
	movq	%r15, %r13
	leaq	8(%r15), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_reinit_completion
	movq	(%rbx), %rax
	movq	_IMX28_LRADC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	callq	_LRADC_CTRL1_LRADC_IRQ_EN
	movq	_LRADC_CTRL1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r13), %rsi
	movq	_STMP_OFFSET_REG_CLR@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rsi
	movl	%eax, %edi
	callq	_writel
LBB0_3:
	movq	_LRADC_CTRL0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movq	_STMP_OFFSET_REG_CLR@GOTPCREL(%rip), %r14
	addq	(%r14), %rsi
	movl	$1, %ebx
	movl	$1, %edi
	callq	_writel
	movq	%r13, %rsi
	addq	$12, %rsi
	movl	%r12d, %r15d
	movl	%r12d, %edi
	callq	_test_bit
	movq	_LRADC_CTRL2_DIVIDE_BY_TWO_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movq	_LRADC_CTRL2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r13), %rsi
	testq	%rax, %rax
	movq	_STMP_OFFSET_REG_SET@GOTPCREL(%rip), %rax
	cmoveq	%r14, %rax
	addq	(%rax), %rsi
	movl	%ebx, %edi
	callq	_writel
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_LRADC_CTRL4_LRADCSELECT_MASK
	movq	_LRADC_CTRL4@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	(%r13), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	(%rbx), %rsi
	addq	(%r13), %rsi
	movq	_STMP_OFFSET_REG_SET@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	(%r13), %rbx
	xorl	%edi, %edi
	callq	_LRADC_CH
	addq	%rax, %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_writel
	xorl	%edi, %edi
	callq	_LRADC_CTRL1_LRADC_IRQ_EN
	movq	_LRADC_CTRL1@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	(%r13), %rsi
	movq	_STMP_OFFSET_REG_SET@GOTPCREL(%rip), %rbx
	addq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	xorl	%edi, %edi
	callq	_BIT
	movq	_LRADC_CTRL0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r13), %rsi
	addq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_wait_for_completion_killable_timeout
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r12d
	testl	%eax, %eax
	cmovnel	%eax, %r12d
	testl	%r12d, %r12d
	js	LBB0_5
## %bb.4:
	movq	(%r13), %rbx
	xorl	%edi, %edi
	callq	_LRADC_CH
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movq	_LRADC_CH_VALUE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_5:
	xorl	%edi, %edi
	callq	_LRADC_CTRL1_LRADC_IRQ_EN
	movq	(%r15), %rsi
	addq	(%r13), %rsi
	movq	_STMP_OFFSET_REG_CLR@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_iio_device_release_direct_mode
LBB0_6:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMX28_LRADC,8,3                ## @IMX28_LRADC
	.comm	_LRADC_CTRL1,8,3                ## @LRADC_CTRL1
	.comm	_STMP_OFFSET_REG_CLR,8,3        ## @STMP_OFFSET_REG_CLR
	.comm	_LRADC_CTRL0,8,3                ## @LRADC_CTRL0
	.comm	_LRADC_CTRL2_DIVIDE_BY_TWO_OFFSET,4,2 ## @LRADC_CTRL2_DIVIDE_BY_TWO_OFFSET
	.comm	_LRADC_CTRL2,8,3                ## @LRADC_CTRL2
	.comm	_STMP_OFFSET_REG_SET,8,3        ## @STMP_OFFSET_REG_SET
	.comm	_LRADC_CTRL4,8,3                ## @LRADC_CTRL4
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_LRADC_CH_VALUE_MASK,4,2        ## @LRADC_CH_VALUE_MASK
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.no_dead_strip	_mxs_lradc_adc_read_single
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_lradc_adc_read_single
_mxs_lradc_adc_read_single:             ; @mxs_lradc_adc_read_single
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x23, x1
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	ldr	x24, [x0, #16]
	mov	x0, x19
	bl	_iio_device_claim_direct_mode
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.1:
	add	x22, x20, #8
	mov	x0, x22
	bl	_reinit_completion
	ldr	x8, [x24]
Lloh0:
	adrp	x9, _IMX28_LRADC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IMX28_LRADC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x25, _LRADC_CTRL1@GOTPAGE
Lloh4:
	ldr	x25, [x25, _LRADC_CTRL1@GOTPAGEOFF]
Lloh5:
	adrp	x24, _STMP_OFFSET_REG_CLR@GOTPAGE
Lloh6:
	ldr	x24, [x24, _STMP_OFFSET_REG_CLR@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	bl	_LRADC_CTRL1_LRADC_IRQ_EN
	ldr	x8, [x20]
	ldr	x9, [x25]
	ldr	x10, [x24]
	add	x8, x9, x8
	add	x1, x8, x10
	bl	_writel
LBB0_3:
	ldr	x8, [x20]
Lloh7:
	adrp	x26, _LRADC_CTRL0@GOTPAGE
Lloh8:
	ldr	x26, [x26, _LRADC_CTRL0@GOTPAGEOFF]
	ldr	x9, [x26]
	ldr	x10, [x24]
	add	x8, x9, x8
	add	x1, x8, x10
	mov	w27, #1
	mov	w0, #1
	bl	_writel
	add	x1, x20, #12
	mov	x0, x23
	bl	_test_bit
Lloh9:
	adrp	x8, _LRADC_CTRL2_DIVIDE_BY_TWO_OFFSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LRADC_CTRL2_DIVIDE_BY_TWO_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w27, w8
	ldr	x9, [x20]
Lloh12:
	adrp	x10, _LRADC_CTRL2@GOTPAGE
Lloh13:
	ldr	x10, [x10, _LRADC_CTRL2@GOTPAGEOFF]
Lloh14:
	adrp	x27, _STMP_OFFSET_REG_SET@GOTPAGE
Lloh15:
	ldr	x27, [x27, _STMP_OFFSET_REG_SET@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x0, #0
	csel	x11, x24, x27, eq
	ldr	x11, [x11]
	add	x9, x10, x9
	add	x1, x9, x11
	mov	x0, x8
	bl	_writel
	mov	w0, #0
	bl	_LRADC_CTRL4_LRADCSELECT_MASK
	ldr	x8, [x20]
Lloh17:
	adrp	x28, _LRADC_CTRL4@GOTPAGE
Lloh18:
	ldr	x28, [x28, _LRADC_CTRL4@GOTPAGEOFF]
	ldr	x9, [x28]
	ldr	x10, [x24]
	add	x8, x9, x8
	add	x1, x8, x10
	bl	_writel
	ldr	x8, [x20]
	ldr	x9, [x28]
	ldr	x10, [x27]
	add	x8, x9, x8
	add	x1, x8, x10
	mov	x0, x23
	bl	_writel
	ldr	x23, [x20]
	mov	w0, #0
	bl	_LRADC_CH
	add	x1, x0, x23
	mov	w0, #0
	bl	_writel
	mov	w0, #0
	bl	_LRADC_CTRL1_LRADC_IRQ_EN
	ldr	x8, [x20]
	ldr	x9, [x25]
	ldr	x10, [x27]
	add	x8, x9, x8
	add	x1, x8, x10
	bl	_writel
	mov	w0, #0
	bl	_BIT
	ldr	x8, [x20]
	ldr	x9, [x26]
	ldr	x10, [x27]
	add	x8, x9, x8
	add	x1, x8, x10
	bl	_writel
Lloh19:
	adrp	x8, _HZ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_wait_for_completion_killable_timeout
Lloh22:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w22, w0, w8, ne
	tbnz	w22, #31, LBB0_5
; %bb.4:
	ldr	x22, [x20]
	mov	w0, #0
	bl	_LRADC_CH
	add	x0, x0, x22
	bl	_readl
Lloh25:
	adrp	x8, _LRADC_CH_VALUE_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LRADC_CH_VALUE_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	and	w8, w8, w0
	str	w8, [x21]
Lloh28:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh30:
	ldr	w22, [x8]
LBB0_5:
	mov	w0, #0
	bl	_LRADC_CTRL1_LRADC_IRQ_EN
	ldr	x8, [x20]
	ldr	x9, [x25]
	ldr	x10, [x24]
	add	x8, x9, x8
	add	x1, x8, x10
	bl	_writel
	mov	x0, x19
	bl	_iio_device_release_direct_mode
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IMX28_LRADC,8,3                ; @IMX28_LRADC
	.comm	_LRADC_CTRL1,8,3                ; @LRADC_CTRL1
	.comm	_STMP_OFFSET_REG_CLR,8,3        ; @STMP_OFFSET_REG_CLR
	.comm	_LRADC_CTRL0,8,3                ; @LRADC_CTRL0
	.comm	_LRADC_CTRL2_DIVIDE_BY_TWO_OFFSET,4,2 ; @LRADC_CTRL2_DIVIDE_BY_TWO_OFFSET
	.comm	_LRADC_CTRL2,8,3                ; @LRADC_CTRL2
	.comm	_STMP_OFFSET_REG_SET,8,3        ; @STMP_OFFSET_REG_SET
	.comm	_LRADC_CTRL4,8,3                ; @LRADC_CTRL4
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_LRADC_CH_VALUE_MASK,4,2        ; @LRADC_CH_VALUE_MASK
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.no_dead_strip	_mxs_lradc_adc_read_single
.subsections_via_symbols
