	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_dma_handle_chan_done
_stm32_dma_handle_chan_done:            ## @stm32_dma_handle_chan_done
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.6:
	addq	$8, %rdi
	callq	_vchan_cyclic_callback
	incq	(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_stm32_dma_configure_next_sg    ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	$0, 8(%rbx)
	movq	(%rbx), %rax
	cmpq	(%rdi), %rax
	jne	LBB0_4
## %bb.3:
	addq	$8, %rdi
	callq	_list_del
	movq	16(%rbx), %rdi
	addq	$8, %rdi
	callq	_vchan_cookie_complete
	movq	$0, 16(%rbx)
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_stm32_dma_start_transfer       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_stm32_dma_handle_chan_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_dma_handle_chan_done
_stm32_dma_handle_chan_done:            ; @stm32_dma_handle_chan_done
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_4
; %bb.2:
	add	x0, x8, #8
	bl	_vchan_cyclic_callback
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_stm32_dma_configure_next_sg
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	str	wzr, [x19, #8]
	ldr	x9, [x19]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
	add	x0, x8, #8
	bl	_list_del
	ldr	x8, [x19, #16]
	add	x0, x8, #8
	bl	_vchan_cookie_complete
	str	xzr, [x19, #16]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_stm32_dma_start_transfer
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_stm32_dma_handle_chan_done
.subsections_via_symbols
