	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32h7_adc_exit_pwr_down
_stm32h7_adc_exit_pwr_down:             ## @stm32h7_adc_exit_pwr_down
	.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, %rbx
	callq	_iio_priv_to_dev
	movq	%rax, %r14
	movq	_STM32H7_ADC_CR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_STM32H7_DEEPPWD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_stm32_adc_clr_bits
	movl	(%r13), %esi
	movq	_STM32H7_ADVREGEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_stm32_adc_set_bits
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_STM32H7_BOOST_CLKRATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	movl	(%r13), %esi
	movq	_STM32H7_BOOST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_stm32_adc_set_bits
LBB0_2:
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_STM32H7_ADC_ISR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STM32_ADC_TIMEOUT_US@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	movl	$100, %ecx
	callq	_stm32_adc_readl_poll_timeout
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	movl	(%r13), %esi
	movq	_STM32H7_DEEPPWD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_stm32_adc_set_bits
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r15d, %r12d
	jmp	LBB0_6
LBB0_3:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	xorl	%r12d, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STM32H7_ADC_CR,4,2             ## @STM32H7_ADC_CR
	.comm	_STM32H7_DEEPPWD,4,2            ## @STM32H7_DEEPPWD
	.comm	_STM32H7_ADVREGEN,4,2           ## @STM32H7_ADVREGEN
	.comm	_STM32H7_BOOST_CLKRATE,8,3      ## @STM32H7_BOOST_CLKRATE
	.comm	_STM32H7_BOOST,4,2              ## @STM32H7_BOOST
	.comm	_STM32H7_ADC_ISR,4,2            ## @STM32H7_ADC_ISR
	.comm	_STM32MP1_VREGREADY,4,2         ## @STM32MP1_VREGREADY
	.comm	_STM32_ADC_TIMEOUT_US,4,2       ## @STM32_ADC_TIMEOUT_US
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to exit power down\n"

	.no_dead_strip	_stm32h7_adc_exit_pwr_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32h7_adc_exit_pwr_down
_stm32h7_adc_exit_pwr_down:             ; @stm32h7_adc_exit_pwr_down
	.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, x0
	bl	_iio_priv_to_dev
	mov	x19, x0
Lloh0:
	adrp	x22, _STM32H7_ADC_CR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _STM32H7_ADC_CR@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x23, _STM32H7_DEEPPWD@GOTPAGE
Lloh3:
	ldr	x23, [x23, _STM32H7_DEEPPWD@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_stm32_adc_clr_bits
	ldr	w1, [x22]
Lloh4:
	adrp	x8, _STM32H7_ADVREGEN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STM32H7_ADVREGEN@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_stm32_adc_set_bits
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _STM32H7_BOOST_CLKRATE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _STM32H7_BOOST_CLKRATE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
	ldr	w1, [x22]
Lloh10:
	adrp	x8, _STM32H7_BOOST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STM32H7_BOOST@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_stm32_adc_set_bits
LBB0_2:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.3:
Lloh13:
	adrp	x8, _STM32H7_ADC_ISR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STM32H7_ADC_ISR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _STM32_ADC_TIMEOUT_US@GOTPAGE
Lloh17:
	ldr	x8, [x8, _STM32_ADC_TIMEOUT_US@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
	mov	w2, #0
	mov	w3, #100
	bl	_stm32_adc_readl_poll_timeout
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.4:
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_stm32_adc_set_bits
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_6
LBB0_5:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	mov	w21, #0
LBB0_6:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_STM32H7_ADC_CR,4,2             ; @STM32H7_ADC_CR
	.comm	_STM32H7_DEEPPWD,4,2            ; @STM32H7_DEEPPWD
	.comm	_STM32H7_ADVREGEN,4,2           ; @STM32H7_ADVREGEN
	.comm	_STM32H7_BOOST_CLKRATE,8,3      ; @STM32H7_BOOST_CLKRATE
	.comm	_STM32H7_BOOST,4,2              ; @STM32H7_BOOST
	.comm	_STM32H7_ADC_ISR,4,2            ; @STM32H7_ADC_ISR
	.comm	_STM32MP1_VREGREADY,4,2         ; @STM32MP1_VREGREADY
	.comm	_STM32_ADC_TIMEOUT_US,4,2       ; @STM32_ADC_TIMEOUT_US
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to exit power down\n"

	.no_dead_strip	_stm32h7_adc_exit_pwr_down
.subsections_via_symbols
