	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_adc_probe
_stm32_adc_probe:                       ## @stm32_adc_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	8(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rsi
	addq	$8, %rsi
	movq	%r12, %rdi
	callq	_platform_set_drvdata
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_of_match_device
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	16(%r14), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%rbx), %eax
	movl	%eax, 12(%r14)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regulator_get
	movq	%rax, 48(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	48(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_7
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regulator_get
	movq	%rax, 24(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	24(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
LBB0_13:
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_14:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	40(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_27
## %bb.16:
	movq	$0, 40(%r14)
LBB0_17:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	movq	32(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_28
## %bb.19:
	movq	$0, 32(%r14)
LBB0_20:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_stm32_adc_core_switches_probe
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.21:
	movq	%r12, %rdi
	callq	_pm_runtime_get_noresume
	movq	%r12, %rdi
	callq	_pm_runtime_set_active
	movq	_STM32_ADC_CORE_SLEEP_DELAY_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r12, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r12, %rdi
	callq	_pm_runtime_enable
	movq	%r12, %rdi
	callq	_stm32_adc_core_hw_start
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_35
## %bb.22:
	movq	24(%r14), %rdi
	callq	_regulator_get_voltage
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_30
## %bb.23:
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rdx          ## imm = 0x10624DD3
	shrq	$38, %rdx
	movl	%edx, 8(%r14)
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_dbg
	movq	(%r14), %rax
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_32
## %bb.24:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_stm32_adc_irq_probe
	testl	%eax, %eax
	js	LBB0_32
## %bb.25:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r12, %rcx
	callq	_of_platform_populate
	testl	%eax, %eax
	js	LBB0_33
## %bb.26:
	movq	%r12, %rdi
	callq	_pm_runtime_mark_last_busy
	movq	%r12, %rdi
	callq	_pm_runtime_put_autosuspend
	jmp	LBB0_7
LBB0_27:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_29
LBB0_28:
	leaq	L_.str.7(%rip), %rsi
LBB0_29:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_30:
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_34
LBB0_32:
	movl	%eax, %ebx
	jmp	LBB0_34
LBB0_33:
	movl	%eax, %r15d
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_stm32_adc_irq_remove
	movl	%r15d, %ebx
LBB0_34:
	movq	%r12, %rdi
	callq	_stm32_adc_core_hw_stop
LBB0_35:
	movq	%r12, %rdi
	callq	_pm_runtime_disable
	movq	%r12, %rdi
	callq	_pm_runtime_set_suspended
	movq	%r12, %rdi
	callq	_pm_runtime_put_noidle
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vdda"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"vdda get failed, %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"vref"

L_.str.3:                               ## @.str.3
	.asciz	"vref get failed, %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"adc"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.5:                               ## @.str.5
	.asciz	"Can't get 'adc' clock\n"

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

L_.str.7:                               ## @.str.7
	.asciz	"Can't get 'bus' clock\n"

	.comm	_STM32_ADC_CORE_SLEEP_DELAY_MS,4,2 ## @STM32_ADC_CORE_SLEEP_DELAY_MS
L_.str.8:                               ## @.str.8
	.asciz	"vref get voltage failed, %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"vref+=%dmV\n"

L_.str.10:                              ## @.str.10
	.asciz	"failed to populate DT children\n"

	.no_dead_strip	_stm32_adc_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_probe
_stm32_adc_probe:                       ; @stm32_adc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x21, [x0, #8]
	cbz	x21, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	add	x1, x0, #8
	mov	x0, x19
	bl	_platform_set_drvdata
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	ldr	x8, [x0]
	str	x8, [x20]
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_devm_ioremap_resource
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x0, [x20, #16]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_4:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	w8, [x22]
	str	w8, [x20, #12]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	x0, [x20, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x0, [x20, #48]
	bl	_PTR_ERR
	mov	x22, x0
Lloh12:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_7
; %bb.10:
	str	x22, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_12:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x0, [x20, #24]
	bl	_PTR_ERR
	mov	x22, x0
	str	x22, [sp]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_7
LBB0_14:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #40]
	bl	_IS_ERR
Lloh23:
	adrp	x23, _ENOENT@GOTPAGE
Lloh24:
	ldr	x23, [x23, _ENOENT@GOTPAGEOFF]
	cbz	x0, LBB0_17
; %bb.15:
	ldr	x0, [x20, #40]
	bl	_PTR_ERR
	ldr	w8, [x23]
	cmn	w0, w8
	b.ne	LBB0_27
; %bb.16:
	str	xzr, [x20, #40]
LBB0_17:
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.18:
	ldr	x0, [x20, #32]
	bl	_PTR_ERR
	ldr	w8, [x23]
	cmn	w0, w8
	b.ne	LBB0_28
; %bb.19:
	str	xzr, [x20, #32]
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_stm32_adc_core_switches_probe
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.21:
	mov	x0, x19
	bl	_pm_runtime_get_noresume
	mov	x0, x19
	bl	_pm_runtime_set_active
Lloh27:
	adrp	x8, _STM32_ADC_CORE_SLEEP_DELAY_MS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _STM32_ADC_CORE_SLEEP_DELAY_MS@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x19
	bl	_pm_runtime_use_autosuspend
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_stm32_adc_core_hw_start
	mov	x22, x0
	cbnz	w0, LBB0_33
; %bb.22:
	ldr	x0, [x20, #24]
	bl	_regulator_get_voltage
	mov	x22, x0
	tbnz	w0, #31, LBB0_29
; %bb.23:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w22, w8
	lsr	x2, x8, #38
	str	w2, [x20, #8]
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	tbnz	w0, #31, LBB0_30
; %bb.24:
	mov	x0, x19
	mov	x1, x20
	bl	_stm32_adc_irq_probe
	tbnz	w0, #31, LBB0_30
; %bb.25:
	mov	x0, x21
	mov	x1, #0
	mov	x2, #0
	mov	x3, x19
	bl	_of_platform_populate
	tbnz	w0, #31, LBB0_31
; %bb.26:
	mov	x0, x19
	bl	_pm_runtime_mark_last_busy
	mov	x0, x19
	bl	_pm_runtime_put_autosuspend
	mov	w22, #0
	b	LBB0_7
LBB0_27:
	mov	x22, x0
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_11
LBB0_28:
	mov	x22, x0
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_11
LBB0_29:
	str	x22, [sp]
Lloh36:
	adrp	x1, l_.str.8@PAGE
Lloh37:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_32
LBB0_30:
	mov	x22, x0
	b	LBB0_32
LBB0_31:
	mov	x22, x0
Lloh38:
	adrp	x1, l_.str.10@PAGE
Lloh39:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x19
	mov	x1, x20
	bl	_stm32_adc_irq_remove
LBB0_32:
	mov	x0, x19
	bl	_stm32_adc_core_hw_stop
LBB0_33:
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x19
	bl	_pm_runtime_set_suspended
	mov	x0, x19
	bl	_pm_runtime_put_noidle
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vdda"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"vdda get failed, %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"vref"

l_.str.3:                               ; @.str.3
	.asciz	"vref get failed, %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"adc"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.5:                               ; @.str.5
	.asciz	"Can't get 'adc' clock\n"

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

l_.str.7:                               ; @.str.7
	.asciz	"Can't get 'bus' clock\n"

	.comm	_STM32_ADC_CORE_SLEEP_DELAY_MS,4,2 ; @STM32_ADC_CORE_SLEEP_DELAY_MS
l_.str.8:                               ; @.str.8
	.asciz	"vref get voltage failed, %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"vref+=%dmV\n"

l_.str.10:                              ; @.str.10
	.asciz	"failed to populate DT children\n"

	.no_dead_strip	_stm32_adc_probe
.subsections_via_symbols
