	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_adc_isr
_stm32_adc_isr:                         ## @stm32_adc_isr
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_iio_priv_to_dev
	movq	%rax, %r14
	movq	32(%rbx), %rax
	movq	(%rax), %r15
	movl	8(%r15), %esi
	movq	%rbx, %rdi
	callq	_stm32_adc_readl
	testl	%eax, 4(%r15)
	je	LBB0_1
## %bb.2:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_stm32_adc_readw
	movq	(%rbx), %rcx
	movq	24(%rbx), %rdx
	movl	%eax, (%rdx,%rcx,4)
	movq	%r14, %rdi
	callq	_iio_buffer_enabled
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	cmpq	8(%rbx), %rax
	jb	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_stm32_adc_conv_irq_disable
	movl	(%r14), %edi
	callq	_iio_trigger_poll
	jmp	LBB0_6
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
	jmp	LBB0_6
LBB0_5:
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_complete
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
LBB0_6:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_stm32_adc_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_adc_isr
_stm32_adc_isr:                         ; @stm32_adc_isr
	.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	x19, x1
	mov	x0, x1
	bl	_iio_priv_to_dev
	mov	x20, x0
	ldr	x8, [x19, #32]
	ldr	x21, [x8]
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_stm32_adc_readl
	ldr	w8, [x21, #4]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stm32_adc_readw
	ldr	x8, [x19, #24]
	ldr	x9, [x19]
	str	w0, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_iio_buffer_enabled
	cbz	x0, LBB0_5
; %bb.2:
	ldp	x8, x9, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	cmp	x8, x9
	b.lo	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_stm32_adc_conv_irq_disable
	ldr	w0, [x20]
	bl	_iio_trigger_poll
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	add	x0, x19, #16
	bl	_complete
LBB0_6:
Lloh2:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_stm32_adc_isr
.subsections_via_symbols
