	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_chan_xfer_ld_queue
_fsl_chan_xfer_ld_queue:                ## @fsl_chan_xfer_ld_queue
	.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, %r14
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	callq	_dma_is_idle
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	callq	_dma_halt
	leaq	8(%r14), %r15
	movq	_DMA_SUCCESS@GOTPCREL(%rip), %r12
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rbx
	cmpq	%r15, %rbx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_to_fsl_desc
	movl	8(%rax), %edi
	movl	16(%r14), %edx
	movl	20(%r14), %esi
	callq	_dma_async_is_complete
	cmpq	(%r12), %rax
	je	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	callq	_to_fsl_desc
	movq	(%rax), %rbx
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_dev_dbg
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_set_cdar
	movq	%r14, %rdi
	callq	_dma_start
	jmp	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_set_cdar
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_set_ndar
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_SUCCESS,8,3                ## @DMA_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xfer LDs staring from 0x%llx\n"

	.no_dead_strip	_fsl_chan_xfer_ld_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_chan_xfer_ld_queue
_fsl_chan_xfer_ld_queue:                ; @fsl_chan_xfer_ld_queue
	.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, x0
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_dma_is_idle
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_dma_halt
	add	x21, x19, #8
Lloh0:
	adrp	x22, _DMA_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DMA_SUCCESS@GOTPAGEOFF]
	mov	x20, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x20]
	cmp	x20, x21
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_to_fsl_desc
	ldr	w0, [x0, #8]
	ldp	w2, w1, [x19, #16]
	bl	_dma_async_is_complete
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.4:
	mov	x0, x20
	bl	_to_fsl_desc
	ldr	x20, [x0]
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	mov	x0, x19
	mov	x1, x20
	bl	_set_cdar
	mov	x0, x19
	bl	_dma_start
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, #0
	bl	_set_cdar
	mov	x0, x19
	mov	w1, #0
	bl	_set_ndar
LBB0_6:
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_SUCCESS,8,3                ; @DMA_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xfer LDs staring from 0x%llx\n"

	.no_dead_strip	_fsl_chan_xfer_ld_queue
.subsections_via_symbols
