	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __stm32_adc_buffer_postenable
___stm32_adc_buffer_postenable:         ## @__stm32_adc_buffer_postenable
	.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	%rdi, %rbx
	callq	_iio_priv
	movq	%rax, %r15
	movq	(%rbx), %r14
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_stm32_adc_set_trig
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_pm_runtime_put_noidle
	jmp	LBB0_10
LBB0_5:
	movq	%rbx, %rdi
	callq	_stm32_adc_dma_start
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_stm32_adc_set_trig
LBB0_4:
	movq	%r14, %rdi
	callq	_pm_runtime_mark_last_busy
	movq	%r14, %rdi
	callq	_pm_runtime_put_autosuspend
LBB0_10:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	$0, 16(%r15)
	movl	(%r15), %eax
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_stm32_adc_conv_irq_enable
	movl	(%r15), %eax
LBB0_9:
	movq	8(%r15), %rcx
	xorl	%esi, %esi
	testl	%eax, %eax
	setne	%sil
	movq	%r15, %rdi
	callq	*(%rcx)
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't set trigger\n"

L_.str.1:                               ## @.str.1
	.asciz	"Can't start dma\n"

	.no_dead_strip	___stm32_adc_buffer_postenable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __stm32_adc_buffer_postenable
___stm32_adc_buffer_postenable:         ; @__stm32_adc_buffer_postenable
	.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	x22, x0
	bl	_iio_priv
	mov	x21, x0
	ldr	x19, [x22]
	mov	x0, x19
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x1, [x22, #8]
	mov	x0, x22
	bl	_stm32_adc_set_trig
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_6
LBB0_3:
	mov	x20, x0
	mov	x0, x19
	bl	_pm_runtime_put_noidle
	b	LBB0_7
LBB0_4:
	mov	x0, x22
	bl	_stm32_adc_dma_start
	cbz	w0, LBB0_8
; %bb.5:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	mov	x0, x22
	mov	x1, #0
	bl	_stm32_adc_set_trig
LBB0_6:
	mov	x0, x19
	bl	_pm_runtime_mark_last_busy
	mov	x0, x19
	bl	_pm_runtime_put_autosuspend
LBB0_7:
	mov	x0, x20
	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:
	str	xzr, [x21, #16]
	ldr	w8, [x21]
	cbnz	w8, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_stm32_adc_conv_irq_enable
	ldr	w8, [x21]
LBB0_10:
	ldr	x9, [x21, #8]
	ldr	x9, [x9]
	cmp	w8, #0
	cset	w1, ne
	mov	x0, x21
	blr	x9
	mov	w20, #0
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't set trigger\n"

l_.str.1:                               ; @.str.1
	.asciz	"Can't start dma\n"

	.no_dead_strip	___stm32_adc_buffer_postenable
.subsections_via_symbols
