	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_adc_enable
_iproc_adc_enable:                      ## @iproc_adc_enable
	.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
	movq	%rdi, %r15
	callq	_iio_priv
	movq	%rax, %r14
	movl	4(%rax), %edi
	movq	_IPROC_ANALOG_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPROC_ADC_CHANNEL_SEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	addq	$4, %r15
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_16
LBB0_2:
	movl	$-1, (%r14)
	movl	4(%r14), %edi
	movq	_IPROC_REGCTL2@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	movl	%eax, %ebx
	addq	$4, %r15
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_16
LBB0_4:
	movq	_IPROC_ADC_PWR_LDO@GOTPCREL(%rip), %rax
	movq	_IPROC_ADC_PWR_ADC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_IPROC_ADC_PWR_BG@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	4(%r14), %edi
	movq	(%r12), %rsi
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	movl	%eax, %ebx
	addq	$4, %r15
	leaq	L_.str.2(%rip), %rsi
LBB0_16:
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	4(%r14), %edi
	movq	(%r12), %rsi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_3
## %bb.7:
	movq	_IPROC_ADC_CONTROLLER_EN@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movl	4(%r14), %edi
	movq	(%r12), %rsi
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.8:
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.10:
	xorl	%eax, %eax
	movq	_IPROC_ADC_CHANNEL_OFFSET@GOTPCREL(%rip), %r12
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %edi
	movslq	(%r12), %rsi
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movslq	%eax, %r13
	imulq	%r13, %rsi
	movq	_IPROC_ADC_CHANNEL_INTERRUPT_MASK@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	xorl	%edx, %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	4(%r14), %edi
	movslq	(%r12), %rsi
	imulq	%r13, %rsi
	movq	_IPROC_ADC_CHANNEL_INTERRUPT_STATUS@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	xorl	%edx, %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	xorl	%ebx, %ebx
	cmpl	(%r15), %eax
	movq	_IPROC_ADC_CHANNEL_OFFSET@GOTPCREL(%rip), %r12
	jl	LBB0_12
	jmp	LBB0_17
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_13:
	movl	%eax, %ebx
	addq	$4, %r15
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_16
LBB0_15:
	movl	%eax, %ebx
	addq	$4, %r15
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_IPROC_ANALOG_CONTROL,4,2       ## @IPROC_ANALOG_CONTROL
	.comm	_IPROC_ADC_CHANNEL_SEL_MASK,4,2 ## @IPROC_ADC_CHANNEL_SEL_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to write IPROC_ANALOG_CONTROL %d\n"

	.comm	_IPROC_REGCTL2,8,3              ## @IPROC_REGCTL2
L_.str.1:                               ## @.str.1
	.asciz	"failed to read IPROC_REGCTL2 %d\n"

	.comm	_IPROC_ADC_PWR_LDO,4,2          ## @IPROC_ADC_PWR_LDO
	.comm	_IPROC_ADC_PWR_ADC,4,2          ## @IPROC_ADC_PWR_ADC
	.comm	_IPROC_ADC_PWR_BG,4,2           ## @IPROC_ADC_PWR_BG
L_.str.2:                               ## @.str.2
	.asciz	"failed to write IPROC_REGCTL2 %d\n"

	.comm	_IPROC_ADC_CONTROLLER_EN,4,2    ## @IPROC_ADC_CONTROLLER_EN
	.comm	_IPROC_ADC_CHANNEL_INTERRUPT_MASK,8,3 ## @IPROC_ADC_CHANNEL_INTERRUPT_MASK
	.comm	_IPROC_ADC_CHANNEL_OFFSET,4,2   ## @IPROC_ADC_CHANNEL_OFFSET
L_.str.3:                               ## @.str.3
	.asciz	"failed to write ADC_CHANNEL_INTERRUPT_MASK %d\n"

	.comm	_IPROC_ADC_CHANNEL_INTERRUPT_STATUS,8,3 ## @IPROC_ADC_CHANNEL_INTERRUPT_STATUS
L_.str.4:                               ## @.str.4
	.asciz	"failed to write ADC_CHANNEL_INTERRUPT_STATUS %d\n"

	.no_dead_strip	_iproc_adc_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_adc_enable
_iproc_adc_enable:                      ; @iproc_adc_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _IPROC_ANALOG_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPROC_ANALOG_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IPROC_ADC_CHANNEL_SEL_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPROC_ADC_CHANNEL_SEL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	add	x0, x19, #4
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	mov	w8, #-1
	str	w8, [x20]
	ldr	w0, [x20, #4]
Lloh8:
	adrp	x22, _IPROC_REGCTL2@GOTPAGE
Lloh9:
	ldr	x22, [x22, _IPROC_REGCTL2@GOTPAGEOFF]
	ldr	x1, [x22]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_4
LBB0_3:
	mov	x21, x0
	add	x0, x19, #4
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x8, _IPROC_ADC_PWR_LDO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IPROC_ADC_PWR_LDO@GOTPAGEOFF]
Lloh14:
	adrp	x9, _IPROC_ADC_PWR_ADC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IPROC_ADC_PWR_ADC@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _IPROC_ADC_PWR_BG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IPROC_ADC_PWR_BG@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w0, [x20, #4]
	ldr	x1, [x22]
	bl	_regmap_write
	cbz	w0, LBB0_8
LBB0_5:
	mov	x21, x0
	add	x0, x19, #4
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x2, x21
	bl	_dev_err
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_8:
	ldr	w0, [x20, #4]
	ldr	x1, [x22]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_3
; %bb.9:
Lloh23:
	adrp	x8, _IPROC_ADC_CONTROLLER_EN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IPROC_ADC_CONTROLLER_EN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w0, [x20, #4]
	ldr	x1, [x22]
	bl	_regmap_write
	cbnz	w0, LBB0_5
; %bb.10:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.11:
	mov	w22, #0
Lloh26:
	adrp	x23, _IPROC_ADC_CHANNEL_INTERRUPT_MASK@GOTPAGE
Lloh27:
	ldr	x23, [x23, _IPROC_ADC_CHANNEL_INTERRUPT_MASK@GOTPAGEOFF]
Lloh28:
	adrp	x24, _IPROC_ADC_CHANNEL_OFFSET@GOTPAGE
Lloh29:
	ldr	x24, [x24, _IPROC_ADC_CHANNEL_OFFSET@GOTPAGEOFF]
Lloh30:
	adrp	x25, _IPROC_ADC_CHANNEL_INTERRUPT_STATUS@GOTPAGE
Lloh31:
	ldr	x25, [x25, _IPROC_ADC_CHANNEL_INTERRUPT_STATUS@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	ldr	x8, [x23]
	ldrsw	x9, [x24]
	sxtw	x10, w22
	madd	x1, x9, x10, x8
	mov	w2, #0
	bl	_regmap_write
	cbnz	w0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x20, #4]
	ldr	x8, [x25]
	ldrsw	x9, [x24]
	mov	x10, x22
	sxtw	x10, w10
	madd	x1, x9, x10, x8
	mov	w2, #0
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w22, w22, #1
	ldr	w8, [x19]
	cmp	w22, w8
	b.lt	LBB0_12
	b	LBB0_7
LBB0_15:
	mov	w21, #0
	b	LBB0_7
LBB0_16:
	mov	x21, x0
	add	x0, x19, #4
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_17:
	add	x0, x19, #4
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_IPROC_ANALOG_CONTROL,4,2       ; @IPROC_ANALOG_CONTROL
	.comm	_IPROC_ADC_CHANNEL_SEL_MASK,4,2 ; @IPROC_ADC_CHANNEL_SEL_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to write IPROC_ANALOG_CONTROL %d\n"

	.comm	_IPROC_REGCTL2,8,3              ; @IPROC_REGCTL2
l_.str.1:                               ; @.str.1
	.asciz	"failed to read IPROC_REGCTL2 %d\n"

	.comm	_IPROC_ADC_PWR_LDO,4,2          ; @IPROC_ADC_PWR_LDO
	.comm	_IPROC_ADC_PWR_ADC,4,2          ; @IPROC_ADC_PWR_ADC
	.comm	_IPROC_ADC_PWR_BG,4,2           ; @IPROC_ADC_PWR_BG
l_.str.2:                               ; @.str.2
	.asciz	"failed to write IPROC_REGCTL2 %d\n"

	.comm	_IPROC_ADC_CONTROLLER_EN,4,2    ; @IPROC_ADC_CONTROLLER_EN
	.comm	_IPROC_ADC_CHANNEL_INTERRUPT_MASK,8,3 ; @IPROC_ADC_CHANNEL_INTERRUPT_MASK
	.comm	_IPROC_ADC_CHANNEL_OFFSET,4,2   ; @IPROC_ADC_CHANNEL_OFFSET
l_.str.3:                               ; @.str.3
	.asciz	"failed to write ADC_CHANNEL_INTERRUPT_MASK %d\n"

	.comm	_IPROC_ADC_CHANNEL_INTERRUPT_STATUS,8,3 ; @IPROC_ADC_CHANNEL_INTERRUPT_STATUS
l_.str.4:                               ; @.str.4
	.asciz	"failed to write ADC_CHANNEL_INTERRUPT_STATUS %d\n"

	.no_dead_strip	_iproc_adc_enable
.subsections_via_symbols
