	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_adc_single_conv
_stm32_adc_single_conv:                 ## @stm32_adc_single_conv
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_iio_priv
	movq	%rax, %r13
	movq	(%rbx), %r14
	movq	16(%rax), %rax
	movq	16(%rax), %rbx
	leaq	24(%r13), %r12
	movq	%r12, %rdi
	callq	_reinit_completion
	movq	$0, 32(%r13)
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movq	(%r13), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_stm32_adc_writel
	movq	16(%rbx), %rax
	movl	4(%rax), %esi
	movq	(%r13), %rax
	movl	4(%rax), %edx
	movq	%r13, %rdi
	callq	_stm32_adc_writel
	movq	8(%rbx), %rax
	movl	20(%rax), %esi
	movq	%r13, %rdi
	callq	_stm32_adc_readl
	movq	8(%rbx), %rsi
	movl	12(%rsi), %edi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movb	16(%rsi), %cl
	shll	%cl, %edx
	notl	%edi
	andl	%eax, %edi
	orl	%edi, %edx
	movl	20(%rsi), %esi
	movq	%r13, %rdi
	callq	_stm32_adc_writel
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	movl	8(%rax), %esi
	movq	%r13, %rdi
	callq	_stm32_adc_clr_bits
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r13, %rdi
	callq	_stm32_adc_clr_bits
	movq	%r13, %rdi
	callq	_stm32_adc_conv_irq_enable
	movq	16(%r13), %rax
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	*8(%rax)
	movq	_STM32_ADC_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wait_for_completion_interruptible_timeout
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	js	LBB0_5
## %bb.6:
	movq	8(%r13), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_pm_runtime_put_noidle
	jmp	LBB0_8
LBB0_3:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %r15d
LBB0_7:
	movq	16(%r13), %rax
	movq	%r13, %rdi
	callq	*(%rax)
	movq	%r13, %rdi
	callq	_stm32_adc_conv_irq_disable
	movq	%r14, %rdi
	callq	_pm_runtime_mark_last_busy
	movq	%r14, %rdi
	callq	_pm_runtime_put_autosuspend
LBB0_8:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STM32_ADC_TIMEOUT,4,2          ## @STM32_ADC_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.no_dead_strip	_stm32_adc_single_conv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_adc_single_conv
_stm32_adc_single_conv:                 ; @stm32_adc_single_conv
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	ldr	x19, [x19]
	ldr	x8, [x0, #16]
	ldr	x25, [x8, #16]
	add	x22, x0, #24
	mov	x0, x22
	bl	_reinit_completion
	str	xzr, [x20, #32]
	mov	x0, x19
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x8, [x25, #16]
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	w2, [x8]
	mov	x0, x20
	bl	_stm32_adc_writel
	ldr	x8, [x25, #16]
	ldr	w1, [x8, #4]
	ldr	x8, [x20]
	ldr	w2, [x8, #4]
	mov	x0, x20
	bl	_stm32_adc_writel
	ldr	x8, [x25, #8]
	ldr	w1, [x8, #20]
	mov	x0, x20
	bl	_stm32_adc_readl
	ldr	x8, [x25, #8]
	ldp	w9, w10, [x8, #12]
	bic	w9, w0, w9
	ldr	w11, [x23]
	lsl	w10, w11, w10
	orr	w2, w10, w9
	ldr	w1, [x8, #20]
	mov	x0, x20
	bl	_stm32_adc_writel
	ldr	x8, [x25, #8]
	ldr	w1, [x8, #8]
	ldr	w2, [x8]
	mov	x0, x20
	bl	_stm32_adc_clr_bits
	ldp	w2, w1, [x25]
	mov	x0, x20
	bl	_stm32_adc_clr_bits
	mov	x0, x20
	bl	_stm32_adc_conv_irq_enable
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	w1, #0
	blr	x8
Lloh0:
	adrp	x8, _STM32_ADC_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STM32_ADC_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_wait_for_completion_interruptible_timeout
	cbz	x0, LBB0_5
; %bb.2:
	mov	x24, x0
	tbnz	x0, #63, LBB0_6
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	str	w8, [x21]
Lloh3:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	b	LBB0_6
LBB0_4:
	mov	x24, x0
	mov	x0, x19
	bl	_pm_runtime_put_noidle
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_6:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	x0, x20
	bl	_stm32_adc_conv_irq_disable
	mov	x0, x19
	bl	_pm_runtime_mark_last_busy
	mov	x0, x19
	bl	_pm_runtime_put_autosuspend
LBB0_7:
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STM32_ADC_TIMEOUT,4,2          ; @STM32_ADC_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.no_dead_strip	_stm32_adc_single_conv
.subsections_via_symbols
