	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_adc_core_switches_supply_en
_stm32_adc_core_switches_supply_en:     ## @stm32_adc_core_switches_supply_en
	.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	%rsi, %r14
	movl	(%rdi), %edx
	cmpl	$2699999, %edx                  ## imm = 0x2932DF
	jg	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_10
## %bb.2:
	cmpl	$2700001, 4(%rbx)               ## imm = 0x2932E1
	jl	LBB0_10
## %bb.3:
	movq	16(%rbx), %rdi
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movq	24(%rbx), %rdi
	movq	_STM32MP1_SYSCFG_PMCSETR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STM32MP1_SYSCFG_ANASWVDD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_10:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.11:
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
LBB0_9:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_15
LBB0_14:
	leaq	L_.str.5(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_15
LBB0_12:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_5
LBB0_4:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_7:
	movl	%eax, %r15d
	movq	16(%rbx), %rdi
	callq	_regulator_disable
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
LBB0_15:
	movl	%r15d, %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	"vdd enable failed %d\n"

	.comm	_STM32MP1_SYSCFG_PMCSETR,4,2    ## @STM32MP1_SYSCFG_PMCSETR
	.comm	_STM32MP1_SYSCFG_ANASWVDD_MASK,4,2 ## @STM32MP1_SYSCFG_ANASWVDD_MASK
L_.str.1:                               ## @.str.1
	.asciz	"vdd select failed, %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"analog switches supplied by vdd\n"

L_.str.3:                               ## @.str.3
	.asciz	"booster enable failed %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"analog switches supplied by booster\n"

L_.str.5:                               ## @.str.5
	.asciz	"analog switches supplied by vdda (%d uV)\n"

	.no_dead_strip	_stm32_adc_core_switches_supply_en
.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_switches_supply_en
_stm32_adc_core_switches_supply_en:     ; @stm32_adc_core_switches_supply_en
	.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	x19, x1
	mov	w9, #13024
	movk	w9, #41, lsl #16
	ldr	w8, [x0]
	cmp	w8, w9
	b.ge	LBB0_9
; %bb.1:
	mov	x21, x0
	ldr	x10, [x0, #24]
	cbz	x10, LBB0_6
; %bb.2:
	ldr	w10, [x21, #4]
	cmp	w10, w9
	b.le	LBB0_6
; %bb.3:
	ldr	x0, [x21, #16]
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_13
; %bb.4:
	ldr	x0, [x21, #24]
Lloh0:
	adrp	x8, _STM32MP1_SYSCFG_PMCSETR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STM32MP1_SYSCFG_PMCSETR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _STM32MP1_SYSCFG_ANASWVDD_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STM32MP1_SYSCFG_ANASWVDD_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_regmap_write
	tbnz	w0, #31, LBB0_14
; %bb.5:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_6:
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_9
; %bb.7:
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_12
; %bb.8:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_9:
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_dbg
	mov	w20, #0
LBB0_11:
	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
LBB0_12:
	mov	x20, x0
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_13:
	mov	x20, x0
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:
	mov	x20, x0
	ldr	x0, [x21, #16]
	bl	_regulator_disable
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_15:
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vdd enable failed %d\n"

	.comm	_STM32MP1_SYSCFG_PMCSETR,4,2    ; @STM32MP1_SYSCFG_PMCSETR
	.comm	_STM32MP1_SYSCFG_ANASWVDD_MASK,4,2 ; @STM32MP1_SYSCFG_ANASWVDD_MASK
l_.str.1:                               ; @.str.1
	.asciz	"vdd select failed, %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"analog switches supplied by vdd\n"

l_.str.3:                               ; @.str.3
	.asciz	"booster enable failed %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"analog switches supplied by booster\n"

l_.str.5:                               ; @.str.5
	.asciz	"analog switches supplied by vdda (%d uV)\n"

	.no_dead_strip	_stm32_adc_core_switches_supply_en
.subsections_via_symbols
