	.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
	cmpq	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r12
	movl	$56, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movl	16(%r12), %edi
	callq	_dev_get_drvdata
	movl	%eax, 52(%r14)
	leaq	48(%r14), %rdi
	callq	_spin_lock_init
	leaq	44(%r14), %rdi
	callq	_init_completion
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_of_match_device
	movq	(%rax), %rax
	movq	%rax, 32(%r14)
	movq	%r12, %rdi
	callq	_dev_name
	movl	%eax, 32(%r15)
	movq	%r12, 24(%r15)
	movq	(%r12), %rax
	movq	%rax, 16(%r15)
	movq	_stm32_adc_iio_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movq	_INDIO_HARDWARE_TRIGGERED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	(%r12), %rdi
	leaq	40(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
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:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, %rbx
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_7
## %bb.9:
	movq	_stm32_adc_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	24(%r12), %r8d
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_15
LBB0_11:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, 24(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movq	24(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_14
## %bb.13:
	movq	32(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_16
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
LBB0_15:
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_7
LBB0_16:
	movq	$0, 24(%r14)
LBB0_17:
	movq	%r15, %rdi
	callq	_stm32_adc_of_get_resolution
	testl	%eax, %eax
	js	LBB0_22
## %bb.18:
	movq	%r15, %rdi
	callq	_stm32_adc_chan_of_init
	testl	%eax, %eax
	js	LBB0_22
## %bb.19:
	movq	%r15, %rdi
	callq	_stm32_adc_dma_request
	testl	%eax, %eax
	js	LBB0_22
## %bb.20:
	movq	_iio_pollfunc_store_time@GOTPCREL(%rip), %rsi
	movq	_stm32_adc_trigger_handler@GOTPCREL(%rip), %rdx
	movq	_stm32_adc_buffer_setup_ops@GOTPCREL(%rip), %rcx
	movq	%r15, %rdi
	callq	_iio_triggered_buffer_setup
	testl	%eax, %eax
	je	LBB0_25
## %bb.21:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_29
LBB0_22:
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_25:
	movq	%r12, %rdi
	callq	_pm_runtime_get_noresume
	movq	%r12, %rdi
	callq	_pm_runtime_set_active
	movq	_STM32_ADC_HW_STOP_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_hw_start
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
## %bb.26:
	movq	%r15, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_31
## %bb.27:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	callq	_stm32_adc_hw_stop
LBB0_28:
	movq	%r12, %rdi
	callq	_pm_runtime_disable
	movq	%r12, %rdi
	callq	_pm_runtime_set_suspended
	movq	%r12, %rdi
	callq	_pm_runtime_put_noidle
	movq	%r15, %rdi
	callq	_iio_triggered_buffer_cleanup
LBB0_29:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.30:
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_STM32_DMA_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %ecx
	movl	20(%r14), %edx
	callq	_dma_free_coherent
	movq	8(%r14), %rdi
	callq	_dma_release_channel
	jmp	LBB0_7
LBB0_31:
	movq	%r12, %rdi
	callq	_pm_runtime_mark_last_busy
	movq	%r12, %rdi
	callq	_pm_runtime_put_autosuspend
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_stm32_adc_iio_info,4,2         ## @stm32_adc_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_INDIO_HARDWARE_TRIGGERED,4,2   ## @INDIO_HARDWARE_TRIGGERED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

L_.str.1:                               ## @.str.1
	.asciz	"missing reg property\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_stm32_adc_isr,4,2              ## @stm32_adc_isr
L_.str.2:                               ## @.str.2
	.asciz	"failed to request IRQ\n"

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

	.comm	_iio_pollfunc_store_time,4,2    ## @iio_pollfunc_store_time
	.comm	_stm32_adc_trigger_handler,4,2  ## @stm32_adc_trigger_handler
	.comm	_stm32_adc_buffer_setup_ops,4,2 ## @stm32_adc_buffer_setup_ops
L_.str.4:                               ## @.str.4
	.asciz	"buffer setup failed\n"

	.comm	_STM32_ADC_HW_STOP_DELAY_MS,4,2 ## @STM32_ADC_HW_STOP_DELAY_MS
L_.str.5:                               ## @.str.5
	.asciz	"iio dev register failed\n"

	.comm	_STM32_DMA_BUFFER_SIZE,4,2      ## @STM32_DMA_BUFFER_SIZE
	.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:
	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
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w1, #56
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	bl	_iio_priv
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_dev_get_drvdata
	str	w0, [x20, #52]
	add	x0, x20, #48
	bl	_spin_lock_init
	add	x0, x20, #44
	bl	_init_completion
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	ldr	x8, [x0]
	str	x8, [x20, #32]
	mov	x0, x19
	bl	_dev_name
	str	w0, [x21, #32]
	str	x19, [x21, #24]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _stm32_adc_iio_info@GOTPAGE
Lloh1:
	ldr	x9, [x9, _stm32_adc_iio_info@GOTPAGEOFF]
	stp	x9, x8, [x21, #8]
Lloh2:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _INDIO_HARDWARE_TRIGGERED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INDIO_HARDWARE_TRIGGERED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	x0, [x19]
	add	x2, x20, #40
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_property_read_u32
	cbz	w0, LBB0_8
; %bb.3:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	str	x0, [x20]
	tbnz	x0, #63, LBB0_7
; %bb.9:
Lloh18:
	adrp	x8, _stm32_adc_isr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stm32_adc_isr@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldr	w4, [x19, #24]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_11
; %bb.10:
	mov	x22, x0
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_11:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.12:
	ldr	x0, [x20, #24]
	bl	_PTR_ERR
	mov	x22, x0
Lloh23:
	adrp	x8, _ENOENT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_14
; %bb.13:
	ldr	x8, [x20, #32]
	ldr	w8, [x8]
	cbz	w8, LBB0_16
LBB0_14:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_16:
	str	xzr, [x20, #24]
LBB0_17:
	mov	x0, x21
	bl	_stm32_adc_of_get_resolution
	tbnz	w0, #31, LBB0_22
; %bb.18:
	mov	x0, x21
	bl	_stm32_adc_chan_of_init
	tbnz	w0, #31, LBB0_22
; %bb.19:
	mov	x0, x21
	bl	_stm32_adc_dma_request
	tbnz	w0, #31, LBB0_22
; %bb.20:
Lloh28:
	adrp	x1, _iio_pollfunc_store_time@GOTPAGE
Lloh29:
	ldr	x1, [x1, _iio_pollfunc_store_time@GOTPAGEOFF]
Lloh30:
	adrp	x2, _stm32_adc_trigger_handler@GOTPAGE
Lloh31:
	ldr	x2, [x2, _stm32_adc_trigger_handler@GOTPAGEOFF]
Lloh32:
	adrp	x3, _stm32_adc_buffer_setup_ops@GOTPAGE
Lloh33:
	ldr	x3, [x3, _stm32_adc_buffer_setup_ops@GOTPAGEOFF]
	mov	x0, x21
	bl	_iio_triggered_buffer_setup
	cbz	w0, LBB0_23
; %bb.21:
	mov	x22, x0
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_27
LBB0_22:
	mov	x22, x0
	b	LBB0_7
LBB0_23:
	mov	x0, x19
	bl	_pm_runtime_get_noresume
	mov	x0, x19
	bl	_pm_runtime_set_active
Lloh36:
	adrp	x8, _STM32_ADC_HW_STOP_DELAY_MS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _STM32_ADC_HW_STOP_DELAY_MS@GOTPAGEOFF]
Lloh38:
	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_hw_start
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.24:
	mov	x0, x21
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_29
; %bb.25:
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x19
	bl	_stm32_adc_hw_stop
LBB0_26:
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x19
	bl	_pm_runtime_set_suspended
	mov	x0, x19
	bl	_pm_runtime_put_noidle
	mov	x0, x21
	bl	_iio_triggered_buffer_cleanup
LBB0_27:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.28:
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh41:
	adrp	x8, _STM32_DMA_BUFFER_SIZE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _STM32_DMA_BUFFER_SIZE@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	ldp	w3, w2, [x20, #16]
	bl	_dma_free_coherent
	ldr	x0, [x20, #8]
	bl	_dma_release_channel
	b	LBB0_7
LBB0_29:
	mov	x0, x19
	bl	_pm_runtime_mark_last_busy
	mov	x0, x19
	bl	_pm_runtime_put_autosuspend
	b	LBB0_7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_stm32_adc_iio_info,4,2         ; @stm32_adc_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_INDIO_HARDWARE_TRIGGERED,4,2   ; @INDIO_HARDWARE_TRIGGERED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

l_.str.1:                               ; @.str.1
	.asciz	"missing reg property\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_stm32_adc_isr,4,2              ; @stm32_adc_isr
l_.str.2:                               ; @.str.2
	.asciz	"failed to request IRQ\n"

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

	.comm	_iio_pollfunc_store_time,4,2    ; @iio_pollfunc_store_time
	.comm	_stm32_adc_trigger_handler,4,2  ; @stm32_adc_trigger_handler
	.comm	_stm32_adc_buffer_setup_ops,4,2 ; @stm32_adc_buffer_setup_ops
l_.str.4:                               ; @.str.4
	.asciz	"buffer setup failed\n"

	.comm	_STM32_ADC_HW_STOP_DELAY_MS,4,2 ; @STM32_ADC_HW_STOP_DELAY_MS
l_.str.5:                               ; @.str.5
	.asciz	"iio dev register failed\n"

	.comm	_STM32_DMA_BUFFER_SIZE,4,2      ; @STM32_DMA_BUFFER_SIZE
	.no_dead_strip	_stm32_adc_probe
.subsections_via_symbols
