	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_edma_tx_handler
_fsl_edma_tx_handler:                   ## @fsl_edma_tx_handler
	.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	%rsi, %r15
	movl	20(%rsi), %esi
	movq	%r15, %rdi
	callq	_edma_readl
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r15), %eax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_list_del
	movq	8(%r13,%r14), %rdi
	callq	_vchan_cookie_complete
	movq	$0, 8(%r13,%r14)
	movq	_DMA_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13,%r14)
	movl	$1, (%r13,%r14)
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	%r14, %r13
	movq	%r13, %rdi
	callq	_fsl_edma_xfer_desc
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_spin_unlock
	movl	(%r15), %eax
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	addq	$24, %r14
	cmpq	%rcx, %rbx
	jae	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	btl	%ebx, %ecx
	jae	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
	callq	_EDMA_CINT_CINT
	movl	16(%r15), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_edma_writeb
	movq	8(%r15), %r13
	leaq	(%r14,%r13), %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movq	8(%r13,%r14), %rdi
	cmpl	$0, 4(%rdi)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_vchan_cyclic_callback
	cmpq	$0, 8(%r13,%r14)
	jne	LBB0_9
	jmp	LBB0_8
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_11:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rcx
LBB0_12:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_DMA_COMPLETE,4,2               ## @DMA_COMPLETE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_fsl_edma_tx_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_edma_tx_handler
_fsl_edma_tx_handler:                   ; @fsl_edma_tx_handler
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	w1, [x1, #20]
	mov	x0, x19
	bl	_edma_readl
	cbz	w0, LBB0_10
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.2:
	mov	x20, x0
	mov	x25, #0
	mov	x21, #0
Lloh0:
	adrp	x24, _IRQ_HANDLED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IRQ_HANDLED@GOTPAGEOFF]
Lloh2:
	adrp	x26, _DMA_COMPLETE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DMA_COMPLETE@GOTPAGEOFF]
	mov	w27, #1
	b	LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_list_del
	ldr	x0, [x23, #8]
	bl	_vchan_cookie_complete
	str	xzr, [x23, #8]
	ldr	w8, [x26]
	str	w8, [x23, #16]
	str	w27, [x23]
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_fsl_edma_xfer_desc
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_spin_unlock
	ldr	w8, [x19]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	add	x25, x25, #24
	cmp	x21, w8, uxtw
	b.hs	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w9, w20, w21
	tbz	w9, #0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_EDMA_CINT_CINT
	mov	x1, x0
	ldr	w2, [x19, #16]
	mov	x0, x19
	bl	_edma_writeb
	ldr	x8, [x19, #8]
	add	x23, x8, x25
	add	x22, x23, #4
	mov	x0, x22
	bl	_spin_lock
	ldr	x0, [x23, #8]
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_vchan_cyclic_callback
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_5
	b	LBB0_4
LBB0_10:
Lloh4:
	adrp	x24, _IRQ_NONE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh6:
	adrp	x24, _IRQ_HANDLED@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x24]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_DMA_COMPLETE,4,2               ; @DMA_COMPLETE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_fsl_edma_tx_handler
.subsections_via_symbols
