	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_adc_core_switches_probe
_stm32_adc_core_switches_probe:         ## @stm32_adc_core_switches_probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 32(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	32(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_2
## %bb.5:
	movq	$0, 32(%r15)
LBB0_6:
	movq	16(%r15), %rax
	movq	_HAS_VBOOSTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get_optional
	movq	%rax, 24(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	24(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_10
## %bb.12:
	movq	$0, 24(%r15)
LBB0_13:
	movq	16(%r15), %rax
	movq	_HAS_ANASWVDD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_20
## %bb.14:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get_optional
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movq	8(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_17
## %bb.19:
	movq	$0, 8(%r15)
LBB0_20:
	movq	8(%r15), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.21:
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_22
## %bb.23:
	movq	8(%r15), %rdi
	callq	_regulator_get_voltage
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_24
## %bb.25:
	movl	%ebx, (%r15)
	movq	8(%r15), %rdi
	callq	_regulator_disable
	xorl	%ebx, %ebx
	jmp	LBB0_26
LBB0_2:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_26
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_22:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_4
LBB0_10:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_26
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_4
LBB0_24:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	movq	8(%r15), %rdi
	callq	_regulator_disable
	jmp	LBB0_26
LBB0_17:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_26
## %bb.18:
	leaq	L_.str.7(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_26:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"st,syscfg"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"Can't probe syscfg: %d\n"

	.comm	_HAS_VBOOSTER,4,2               ## @HAS_VBOOSTER
L_.str.2:                               ## @.str.2
	.asciz	"booster-supply"

L_.str.3:                               ## @.str.3
	.asciz	"booster"

L_.str.4:                               ## @.str.4
	.asciz	"can't get booster %d\n"

	.comm	_HAS_ANASWVDD,4,2               ## @HAS_ANASWVDD
L_.str.5:                               ## @.str.5
	.asciz	"vdd-supply"

L_.str.6:                               ## @.str.6
	.asciz	"vdd"

L_.str.7:                               ## @.str.7
	.asciz	"can't get vdd %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"vdd enable failed %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"vdd get voltage failed %d\n"

	.no_dead_strip	_stm32_adc_core_switches_probe
.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_probe
_stm32_adc_core_switches_probe:         ; @stm32_adc_core_switches_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_syscon_regmap_lookup_by_phandle
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x20, #32]
	bl	_PTR_ERR
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_18
; %bb.2:
	str	xzr, [x20, #32]
LBB0_3:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _HAS_VBOOSTER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HAS_VBOOSTER@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.4:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	cbz	x0, LBB0_8
; %bb.5:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get_optional
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x0, [x20, #24]
	bl	_PTR_ERR
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_21
; %bb.7:
	str	xzr, [x20, #24]
LBB0_8:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _HAS_ANASWVDD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HAS_ANASWVDD@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.9:
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	cbz	x0, LBB0_13
; %bb.10:
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get_optional
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x0, [x20, #8]
	bl	_PTR_ERR
Lloh22:
	adrp	x8, _ENODEV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_24
; %bb.12:
	str	xzr, [x20, #8]
LBB0_13:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_17
; %bb.14:
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_20
; %bb.15:
	ldr	x0, [x20, #8]
	bl	_regulator_get_voltage
	mov	x21, x0
	tbnz	w0, #31, LBB0_23
; %bb.16:
	str	w21, [x20]
	ldr	x0, [x20, #8]
	bl	_regulator_disable
LBB0_17:
	mov	w21, #0
	b	LBB0_27
LBB0_18:
	mov	x21, x0
Lloh25:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_27
; %bb.19:
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_26
LBB0_20:
	mov	x21, x0
Lloh30:
	adrp	x1, l_.str.8@PAGE
Lloh31:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_26
LBB0_21:
	mov	x21, x0
Lloh32:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_27
; %bb.22:
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_26
LBB0_23:
Lloh37:
	adrp	x1, l_.str.9@PAGE
Lloh38:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	ldr	x0, [x20, #8]
	bl	_regulator_disable
	b	LBB0_27
LBB0_24:
	mov	x21, x0
Lloh39:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_27
; %bb.25:
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_26:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_27:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"st,syscfg"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"Can't probe syscfg: %d\n"

	.comm	_HAS_VBOOSTER,4,2               ; @HAS_VBOOSTER
l_.str.2:                               ; @.str.2
	.asciz	"booster-supply"

l_.str.3:                               ; @.str.3
	.asciz	"booster"

l_.str.4:                               ; @.str.4
	.asciz	"can't get booster %d\n"

	.comm	_HAS_ANASWVDD,4,2               ; @HAS_ANASWVDD
l_.str.5:                               ; @.str.5
	.asciz	"vdd-supply"

l_.str.6:                               ; @.str.6
	.asciz	"vdd"

l_.str.7:                               ; @.str.7
	.asciz	"can't get vdd %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"vdd enable failed %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"vdd get voltage failed %d\n"

	.no_dead_strip	_stm32_adc_core_switches_probe
.subsections_via_symbols
