	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32h7_adc_enable
_stm32h7_adc_enable:                    ## @stm32h7_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, %rbx
	callq	_iio_priv_to_dev
	movq	%rax, %r14
	movq	_STM32H7_ADC_CR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_STM32H7_ADEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_stm32_adc_set_bits
	movq	_STM32H7_ADC_ISR@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_STM32_ADC_TIMEOUT_US@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edx, %edx
	movl	$100, %ecx
	callq	_stm32_adc_readl_poll_timeout
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %esi
	movq	_STM32H7_ADDIS@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
	jmp	LBB0_3
LBB0_2:
	movl	(%r13), %esi
	movq	_STM32H7_ADRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_stm32_adc_set_bits
LBB0_3:
	movl	%r15d, %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_ADEN,4,2               ## @STM32H7_ADEN
	.comm	_STM32H7_ADC_ISR,4,2            ## @STM32H7_ADC_ISR
	.comm	_STM32H7_ADRDY,4,2              ## @STM32H7_ADRDY
	.comm	_STM32_ADC_TIMEOUT_US,4,2       ## @STM32_ADC_TIMEOUT_US
	.comm	_STM32H7_ADDIS,4,2              ## @STM32H7_ADDIS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable ADC\n"

	.no_dead_strip	_stm32h7_adc_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32h7_adc_enable
_stm32h7_adc_enable:                    ; @stm32h7_adc_enable
	.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	x19, x0
	bl	_iio_priv_to_dev
	mov	x20, x0
Lloh0:
	adrp	x22, _STM32H7_ADC_CR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _STM32H7_ADC_CR@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _STM32H7_ADEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STM32H7_ADEN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_stm32_adc_set_bits
Lloh5:
	adrp	x23, _STM32H7_ADC_ISR@GOTPAGE
Lloh6:
	ldr	x23, [x23, _STM32H7_ADC_ISR@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh7:
	adrp	x8, _STM32_ADC_TIMEOUT_US@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STM32_ADC_TIMEOUT_US@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	mov	w2, #0
	mov	w3, #100
	bl	_stm32_adc_readl_poll_timeout
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x22]
Lloh10:
	adrp	x8, _STM32H7_ADDIS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STM32H7_ADDIS@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_stm32_adc_set_bits
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_3
LBB0_2:
	ldr	w1, [x23]
Lloh15:
	adrp	x8, _STM32H7_ADRDY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STM32H7_ADRDY@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_stm32_adc_set_bits
LBB0_3:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_STM32H7_ADC_CR,4,2             ; @STM32H7_ADC_CR
	.comm	_STM32H7_ADEN,4,2               ; @STM32H7_ADEN
	.comm	_STM32H7_ADC_ISR,4,2            ; @STM32H7_ADC_ISR
	.comm	_STM32H7_ADRDY,4,2              ; @STM32H7_ADRDY
	.comm	_STM32_ADC_TIMEOUT_US,4,2       ; @STM32_ADC_TIMEOUT_US
	.comm	_STM32H7_ADDIS,4,2              ; @STM32H7_ADDIS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable ADC\n"

	.no_dead_strip	_stm32h7_adc_enable
.subsections_via_symbols
