	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_adc_do_read
_iproc_adc_do_read:                     ## @iproc_adc_do_read
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_iio_priv
	movq	%rax, %r13
	leaq	8(%rax), %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movl	$-1, (%r13)
	movl	%r14d, 4(%r13)
	leaq	16(%r13), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_reinit_completion
	movl	12(%r13), %edi
	movq	_IPROC_INTERRUPT_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_IPROC_ADC_INTR_MASK@GOTPCREL(%rip), %rdx
	movq	_IPROC_ADC_AUXDATA_RDY_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	callq	_regmap_update_bits
	movq	_IPROC_ADC_CHANNEL_ROUNDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	_IPROC_ADC_CHANNEL_MODE_SNAPSHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_IPROC_ADC_CHANNEL_MODE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %ebx
	movq	_IPROC_ADC_CHANNEL_ENABLE@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %ebx
	movq	_IPROC_ADC_CHANNEL_ROUNDS_MASK@GOTPCREL(%rip), %rax
	movq	_IPROC_ADC_CHANNEL_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%ebx, -44(%rbp)
	movq	_IPROC_ADC_CHANNEL_ENABLE_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	12(%r13), %edi
	movq	_IPROC_ADC_CHANNEL_REGCTL1@GOTPCREL(%rip), %rax
	movq	_IPROC_ADC_CHANNEL_OFFSET@GOTPCREL(%rip), %r15
	movslq	(%r15), %rsi
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movslq	%r14d, %r14
	imulq	%r14, %rsi
	addq	(%rax), %rsi
	movl	%ebx, %ecx
	callq	_regmap_update_bits
	movl	12(%r13), %edi
	movq	_IPROC_ADC_CHANNEL_REGCTL2@GOTPCREL(%rip), %rax
	movslq	(%r15), %rsi
	imulq	%r14, %rsi
	addq	(%rax), %rsi
	movq	_IPROC_ADC_CHANNEL_WATERMARK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %r12d
	movl	$1, %ecx
	callq	_regmap_update_bits
	movl	12(%r13), %edi
	movq	_IPROC_ADC_CHANNEL_INTERRUPT_MASK@GOTPCREL(%rip), %rax
	movslq	(%r15), %rsi
	imulq	%r14, %rsi
	addq	(%rax), %rsi
	movq	_IPROC_ADC_CHANNEL_WTRMRK_INTR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IPROC_ADC_WATER_MARK_INTR_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_regmap_update_bits
	movl	12(%r13), %edi
	movq	_IPROC_INTERRUPT_MASK@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movl	%r14d, %edi
	callq	_BIT
	movq	_IPROC_ADC_INTR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	-44(%rbp), %eax
	movl	%eax, -44(%rbp)
	movl	12(%r13), %edi
	movq	(%rbx), %rsi
	movl	%eax, %edx
	callq	_regmap_write
	movl	12(%r13), %edi
	movq	(%rbx), %rsi
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	movl	-48(%rbp), %eax
	cmpl	-44(%rbp), %eax
	je	LBB0_6
## %bb.1:
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	xorl	%eax, %eax
	leaq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r15d
	movq	_IPROC_ADC_INTMASK_RETRY_ATTEMPTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_udelay
	movl	12(%r13), %edi
	movq	(%rbx), %rsi
	movq	_IPROC_ADC_INTR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IPROC_ADC_INTR@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	%r12d, %eax
	shll	%cl, %eax
	movl	%eax, %ecx
	callq	_regmap_update_bits
	movl	12(%r13), %edi
	movq	(%rbx), %rsi
	movq	%r14, %rdx
	callq	_regmap_read
	movl	-48(%rbp), %ecx
	leal	1(%r15), %eax
	cmpl	-44(%rbp), %ecx
	jne	LBB0_2
LBB0_4:
	leal	1(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_dbg
	movq	_IPROC_ADC_INTMASK_RETRY_ATTEMPTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jge	LBB0_5
LBB0_6:
	movl	12(%r13), %edi
	movq	(%rbx), %rsi
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	movq	_IPROC_ADC_READ_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_wait_for_completion_timeout
	testq	%rax, %rax
	jle	LBB0_7
## %bb.10:
	movzwl	(%r13), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	$4, %r14d
	jmp	LBB0_9
LBB0_7:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movl	12(%r13), %edi
	movq	(%rbx), %rsi
	movq	_IPROC_ADC_INTR_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	12(%r13), %edi
	movq	_IPROC_INTERRUPT_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%rbx), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_iproc_adc_reg_dump
LBB0_9:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPROC_INTERRUPT_STATUS,8,3     ## @IPROC_INTERRUPT_STATUS
	.comm	_IPROC_ADC_INTR_MASK,4,2        ## @IPROC_ADC_INTR_MASK
	.comm	_IPROC_ADC_AUXDATA_RDY_INTR,4,2 ## @IPROC_ADC_AUXDATA_RDY_INTR
	.comm	_IPROC_ADC_INTR,4,2             ## @IPROC_ADC_INTR
	.comm	_IPROC_ADC_CHANNEL_ROUNDS,4,2   ## @IPROC_ADC_CHANNEL_ROUNDS
	.comm	_IPROC_ADC_CHANNEL_MODE_SNAPSHOT,4,2 ## @IPROC_ADC_CHANNEL_MODE_SNAPSHOT
	.comm	_IPROC_ADC_CHANNEL_MODE,4,2     ## @IPROC_ADC_CHANNEL_MODE
	.comm	_IPROC_ADC_CHANNEL_ENABLE,4,2   ## @IPROC_ADC_CHANNEL_ENABLE
	.comm	_IPROC_ADC_CHANNEL_ROUNDS_MASK,4,2 ## @IPROC_ADC_CHANNEL_ROUNDS_MASK
	.comm	_IPROC_ADC_CHANNEL_MODE_MASK,4,2 ## @IPROC_ADC_CHANNEL_MODE_MASK
	.comm	_IPROC_ADC_CHANNEL_ENABLE_MASK,4,2 ## @IPROC_ADC_CHANNEL_ENABLE_MASK
	.comm	_IPROC_ADC_CHANNEL_REGCTL1,8,3  ## @IPROC_ADC_CHANNEL_REGCTL1
	.comm	_IPROC_ADC_CHANNEL_OFFSET,4,2   ## @IPROC_ADC_CHANNEL_OFFSET
	.comm	_IPROC_ADC_CHANNEL_REGCTL2,8,3  ## @IPROC_ADC_CHANNEL_REGCTL2
	.comm	_IPROC_ADC_CHANNEL_WATERMARK_MASK,4,2 ## @IPROC_ADC_CHANNEL_WATERMARK_MASK
	.comm	_IPROC_ADC_CHANNEL_INTERRUPT_MASK,8,3 ## @IPROC_ADC_CHANNEL_INTERRUPT_MASK
	.comm	_IPROC_ADC_CHANNEL_WTRMRK_INTR_MASK,4,2 ## @IPROC_ADC_CHANNEL_WTRMRK_INTR_MASK
	.comm	_IPROC_ADC_WATER_MARK_INTR_ENABLE,4,2 ## @IPROC_ADC_WATER_MARK_INTR_ENABLE
	.comm	_IPROC_INTERRUPT_MASK,8,3       ## @IPROC_INTERRUPT_MASK
	.comm	_IPROC_ADC_INTMASK_RETRY_ATTEMPTS,4,2 ## @IPROC_ADC_INTMASK_RETRY_ATTEMPTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IntMask failed (%d times)"

L_.str.1:                               ## @.str.1
	.asciz	"IntMask set failed. Read will likely fail."

	.comm	_EIO,4,2                        ## @EIO
	.comm	_IPROC_ADC_READ_TIMEOUT,4,2     ## @IPROC_ADC_READ_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.2:                               ## @.str.2
	.asciz	"Timed out waiting for ADC data!\n"

	.no_dead_strip	_iproc_adc_do_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_adc_do_read
_iproc_adc_do_read:                     ; @iproc_adc_do_read
	.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
	str	x2, [sp]                        ; 8-byte Folded Spill
	mov	x24, x1
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	mov	w8, #-1
	stp	w8, w24, [x21]
	add	x23, x21, #16
	mov	x0, x23
	bl	_reinit_completion
	ldr	w0, [x21, #12]
Lloh0:
	adrp	x8, _IPROC_INTERRUPT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPROC_INTERRUPT_STATUS@GOTPAGEOFF]
Lloh2:
	adrp	x26, _IPROC_ADC_INTR_MASK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _IPROC_ADC_INTR_MASK@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	ldr	w8, [x26]
Lloh5:
	adrp	x9, _IPROC_ADC_AUXDATA_RDY_INTR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IPROC_ADC_AUXDATA_RDY_INTR@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x9]
	orr	w2, w3, w8
	bl	_regmap_update_bits
Lloh8:
	adrp	x8, _IPROC_ADC_CHANNEL_ROUNDS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPROC_ADC_CHANNEL_ROUNDS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_BIT
Lloh11:
	adrp	x8, _IPROC_ADC_CHANNEL_MODE_SNAPSHOT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IPROC_ADC_CHANNEL_MODE_SNAPSHOT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _IPROC_ADC_CHANNEL_MODE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IPROC_ADC_CHANNEL_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w8, w8, w0
Lloh17:
	adrp	x9, _IPROC_ADC_CHANNEL_ENABLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IPROC_ADC_CHANNEL_ENABLE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	mov	w28, #1
	lsl	w9, w28, w9
	orr	w3, w8, w9
	str	w3, [sp, #12]
Lloh20:
	adrp	x8, _IPROC_ADC_CHANNEL_ROUNDS_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IPROC_ADC_CHANNEL_ROUNDS_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _IPROC_ADC_CHANNEL_MODE_MASK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IPROC_ADC_CHANNEL_MODE_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _IPROC_ADC_CHANNEL_ENABLE_MASK@GOTPAGE
Lloh27:
	ldr	x10, [x10, _IPROC_ADC_CHANNEL_ENABLE_MASK@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh28:
	ldr	w9, [x10]
	orr	w2, w8, w9
	ldr	w0, [x21, #12]
Lloh29:
	adrp	x8, _IPROC_ADC_CHANNEL_REGCTL1@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IPROC_ADC_CHANNEL_REGCTL1@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
Lloh32:
	adrp	x22, _IPROC_ADC_CHANNEL_OFFSET@GOTPAGE
Lloh33:
	ldr	x22, [x22, _IPROC_ADC_CHANNEL_OFFSET@GOTPAGEOFF]
	ldrsw	x9, [x22]
	sxtw	x25, w24
	madd	x1, x9, x25, x8
	bl	_regmap_update_bits
	ldr	w0, [x21, #12]
Lloh34:
	adrp	x8, _IPROC_ADC_CHANNEL_REGCTL2@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IPROC_ADC_CHANNEL_REGCTL2@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldrsw	x9, [x22]
	madd	x1, x9, x25, x8
Lloh37:
	adrp	x8, _IPROC_ADC_CHANNEL_WATERMARK_MASK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IPROC_ADC_CHANNEL_WATERMARK_MASK@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_regmap_update_bits
	ldr	w0, [x21, #12]
Lloh40:
	adrp	x8, _IPROC_ADC_CHANNEL_INTERRUPT_MASK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IPROC_ADC_CHANNEL_INTERRUPT_MASK@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	ldrsw	x9, [x22]
	madd	x1, x9, x25, x8
Lloh43:
	adrp	x8, _IPROC_ADC_CHANNEL_WTRMRK_INTR_MASK@GOTPAGE
Lloh44:
	ldr	x8, [x8, _IPROC_ADC_CHANNEL_WTRMRK_INTR_MASK@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
Lloh46:
	adrp	x8, _IPROC_ADC_WATER_MARK_INTR_ENABLE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _IPROC_ADC_WATER_MARK_INTR_ENABLE@GOTPAGEOFF]
Lloh48:
	ldr	w3, [x8]
	bl	_regmap_update_bits
	ldr	w0, [x21, #12]
Lloh49:
	adrp	x27, _IPROC_INTERRUPT_MASK@GOTPAGE
Lloh50:
	ldr	x27, [x27, _IPROC_INTERRUPT_MASK@GOTPAGEOFF]
	ldr	x1, [x27]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x0, x24
	bl	_BIT
Lloh51:
	adrp	x25, _IPROC_ADC_INTR@GOTPAGE
Lloh52:
	ldr	x25, [x25, _IPROC_ADC_INTR@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	w8, w0, w8
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w0, [x21, #12]
	ldr	x1, [x27]
	bl	_regmap_write
	ldr	w0, [x21, #12]
	ldr	x1, [x27]
	add	x2, sp, #8
	bl	_regmap_read
	ldp	w8, w9, [sp, #8]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.1:
	mov	w8, #0
	lsl	w22, w28, w24
Lloh53:
	adrp	x24, _IPROC_ADC_INTMASK_RETRY_ATTEMPTS@GOTPAGE
Lloh54:
	ldr	x24, [x24, _IPROC_ADC_INTMASK_RETRY_ATTEMPTS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, x8
	ldr	w8, [x24]
	cmp	w28, w8
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	w0, [x21, #12]
	ldr	x1, [x27]
	ldr	w2, [x26]
	ldr	w8, [x25]
	lsl	w3, w22, w8
	bl	_regmap_update_bits
	ldr	w0, [x21, #12]
	ldr	x1, [x27]
	add	x2, sp, #8
	bl	_regmap_read
	ldp	w9, w10, [sp, #8]
	add	w8, w28, #1
	cmp	w9, w10
	b.ne	LBB0_2
LBB0_4:
	add	w2, w28, #1
Lloh55:
	adrp	x1, l_.str@PAGE
Lloh56:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	w8, [x24]
	cmp	w28, w8
	b.ge	LBB0_8
LBB0_5:
	ldr	w0, [x21, #12]
	ldr	x1, [x27]
	add	x2, sp, #8
	bl	_regmap_read
Lloh57:
	adrp	x8, _IPROC_ADC_READ_TIMEOUT@GOTPAGE
Lloh58:
	ldr	x8, [x8, _IPROC_ADC_READ_TIMEOUT@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_wait_for_completion_timeout
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.6:
	ldrh	w8, [x21]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	w8, [x9]
	mov	w22, #4
	b	LBB0_10
LBB0_7:
Lloh60:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh62:
	adrp	x1, l_.str.1@PAGE
Lloh63:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh64:
	adrp	x8, _EIO@GOTPAGE
Lloh65:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
	ldr	w0, [x21, #12]
	ldr	x1, [x27]
	ldr	w2, [x26]
	mov	w3, #0
	bl	_regmap_update_bits
	ldr	w0, [x21, #12]
Lloh66:
	adrp	x8, _IPROC_INTERRUPT_STATUS@GOTPAGE
Lloh67:
	ldr	x8, [x8, _IPROC_INTERRUPT_STATUS@GOTPAGEOFF]
Lloh68:
	ldr	x1, [x8]
	ldr	w2, [x26]
	mov	w3, #0
	bl	_regmap_update_bits
Lloh69:
	adrp	x1, l_.str.2@PAGE
Lloh70:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x20
	bl	_iproc_adc_reg_dump
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_IPROC_INTERRUPT_STATUS,8,3     ; @IPROC_INTERRUPT_STATUS
	.comm	_IPROC_ADC_INTR_MASK,4,2        ; @IPROC_ADC_INTR_MASK
	.comm	_IPROC_ADC_AUXDATA_RDY_INTR,4,2 ; @IPROC_ADC_AUXDATA_RDY_INTR
	.comm	_IPROC_ADC_INTR,4,2             ; @IPROC_ADC_INTR
	.comm	_IPROC_ADC_CHANNEL_ROUNDS,4,2   ; @IPROC_ADC_CHANNEL_ROUNDS
	.comm	_IPROC_ADC_CHANNEL_MODE_SNAPSHOT,4,2 ; @IPROC_ADC_CHANNEL_MODE_SNAPSHOT
	.comm	_IPROC_ADC_CHANNEL_MODE,4,2     ; @IPROC_ADC_CHANNEL_MODE
	.comm	_IPROC_ADC_CHANNEL_ENABLE,4,2   ; @IPROC_ADC_CHANNEL_ENABLE
	.comm	_IPROC_ADC_CHANNEL_ROUNDS_MASK,4,2 ; @IPROC_ADC_CHANNEL_ROUNDS_MASK
	.comm	_IPROC_ADC_CHANNEL_MODE_MASK,4,2 ; @IPROC_ADC_CHANNEL_MODE_MASK
	.comm	_IPROC_ADC_CHANNEL_ENABLE_MASK,4,2 ; @IPROC_ADC_CHANNEL_ENABLE_MASK
	.comm	_IPROC_ADC_CHANNEL_REGCTL1,8,3  ; @IPROC_ADC_CHANNEL_REGCTL1
	.comm	_IPROC_ADC_CHANNEL_OFFSET,4,2   ; @IPROC_ADC_CHANNEL_OFFSET
	.comm	_IPROC_ADC_CHANNEL_REGCTL2,8,3  ; @IPROC_ADC_CHANNEL_REGCTL2
	.comm	_IPROC_ADC_CHANNEL_WATERMARK_MASK,4,2 ; @IPROC_ADC_CHANNEL_WATERMARK_MASK
	.comm	_IPROC_ADC_CHANNEL_INTERRUPT_MASK,8,3 ; @IPROC_ADC_CHANNEL_INTERRUPT_MASK
	.comm	_IPROC_ADC_CHANNEL_WTRMRK_INTR_MASK,4,2 ; @IPROC_ADC_CHANNEL_WTRMRK_INTR_MASK
	.comm	_IPROC_ADC_WATER_MARK_INTR_ENABLE,4,2 ; @IPROC_ADC_WATER_MARK_INTR_ENABLE
	.comm	_IPROC_INTERRUPT_MASK,8,3       ; @IPROC_INTERRUPT_MASK
	.comm	_IPROC_ADC_INTMASK_RETRY_ATTEMPTS,4,2 ; @IPROC_ADC_INTMASK_RETRY_ATTEMPTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IntMask failed (%d times)"

l_.str.1:                               ; @.str.1
	.asciz	"IntMask set failed. Read will likely fail."

	.comm	_EIO,4,2                        ; @EIO
	.comm	_IPROC_ADC_READ_TIMEOUT,4,2     ; @IPROC_ADC_READ_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.2:                               ; @.str.2
	.asciz	"Timed out waiting for ADC data!\n"

	.no_dead_strip	_iproc_adc_do_read
.subsections_via_symbols
