	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_adc_core_hw_start
_stm32_adc_core_hw_start:               ## @stm32_adc_core_hw_start
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_dev_get_drvdata
	movq	%rax, %rdi
	callq	_to_stm32_adc_priv
	movq	%rax, %r14
	movl	4(%rax), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	4(%r14), %edi
	callq	_regulator_get_voltage
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%ebx, (%r14)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_stm32_adc_core_switches_supply_en
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	8(%r14), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_10
LBB0_11:
	movq	48(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.12:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_13
LBB0_19:
	movl	40(%r14), %edi
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	addq	32(%r14), %rsi
	callq	_writel_relaxed
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_17
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_16
LBB0_10:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_13:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_clk_disable_unprepare
LBB0_15:
	movl	8(%r14), %edi
	callq	_regulator_disable
LBB0_16:
	movq	%r14, %rdi
	callq	_stm32_adc_core_switches_supply_dis
LBB0_17:
	movl	4(%r14), %edi
	callq	_regulator_disable
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vdda enable failed %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"vdda get voltage failed, %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"vref enable failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"bus clk enable failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"adc clk enable failed\n"

	.no_dead_strip	_stm32_adc_core_hw_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_adc_core_hw_start
_stm32_adc_core_hw_start:               ; @stm32_adc_core_hw_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x0
	bl	_dev_get_drvdata
	bl	_to_stm32_adc_priv
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_regulator_get_voltage
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.2:
	str	w20, [x19]
	mov	x0, x19
	mov	x1, x21
	bl	_stm32_adc_core_switches_supply_en
	tbnz	w0, #31, LBB0_11
; %bb.3:
	ldr	w0, [x19, #8]
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_12
; %bb.4:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_13
LBB0_6:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_14
LBB0_8:
	ldr	w0, [x19, #40]
	ldp	x9, x8, [x19, #24]
	ldr	x9, [x9]
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	mov	w20, #0
	b	LBB0_19
LBB0_9:
	mov	x20, x0
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_19
LBB0_10:
	mov	x8, x20
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_18
LBB0_11:
	mov	x20, x0
	b	LBB0_18
LBB0_12:
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_17
LBB0_13:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_16
LBB0_14:
	mov	x20, x0
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_clk_disable_unprepare
LBB0_16:
	ldr	w0, [x19, #8]
	bl	_regulator_disable
LBB0_17:
	mov	x0, x19
	bl	_stm32_adc_core_switches_supply_dis
LBB0_18:
	ldr	w0, [x19, #4]
	bl	_regulator_disable
LBB0_19:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vdda enable failed %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"vdda get voltage failed, %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"vref enable failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"bus clk enable failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"adc clk enable failed\n"

	.no_dead_strip	_stm32_adc_core_hw_start
.subsections_via_symbols
