	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_start_desc
_sdma_start_desc:                       ## @sdma_start_desc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	$24, %rdi
	callq	_vchan_next_desc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movq	16(%rbx), %r14
	movslq	(%rbx), %r13
	leaq	4(%rax), %rdi
	callq	_to_sdma_desc
	movq	%rax, %r12
	movq	%rax, 8(%rbx)
	movq	_IMX_DMA_SG_LOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_list_del
LBB0_3:
	movl	(%r12), %eax
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx,%r13,8)
	movl	%eax, (%rcx,%r13,8)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdma_enable_channel            ## TAILCALL
LBB0_4:
	movq	$0, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMX_DMA_SG_LOOP,4,2            ## @IMX_DMA_SG_LOOP
	.no_dead_strip	_sdma_start_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_start_desc
_sdma_start_desc:                       ; @sdma_start_desc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	add	x0, x0, #24
	bl	_vchan_next_desc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x20, [x19, #16]
	ldrsw	x23, [x19]
	add	x0, x0, #4
	bl	_to_sdma_desc
	mov	x22, x0
	str	x0, [x19, #8]
	ldr	w8, [x19, #4]
Lloh0:
	adrp	x9, _IMX_DMA_SG_LOOP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IMX_DMA_SG_LOOP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_list_del
LBB0_3:
	ldr	w8, [x22]
	ldr	x9, [x20]
	add	x9, x9, x23, lsl #3
	stp	w8, w8, [x9]
	ldr	w1, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_sdma_enable_channel
LBB0_4:
	str	xzr, [x19, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IMX_DMA_SG_LOOP,4,2            ; @IMX_DMA_SG_LOOP
	.no_dead_strip	_sdma_start_desc
.subsections_via_symbols
