	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_start
_dma_start:                             ## @dma_start
	.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, %r12
	movl	(%rdi), %eax
	movq	_FSL_DMA_CHAN_PAUSE_EXT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	8(%r12), %rsi
	addq	$4, %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	$32, %ecx
	callq	_DMA_OUT
	movq	_FSL_DMA_MR_EMP_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_4
LBB0_2:
	movq	_FSL_DMA_IP_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_FSL_DMA_IP_85XX@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	8(%r12), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$32, %edx
	callq	_DMA_IN
	movq	_FSL_DMA_MR_EMP_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$32, %ecx
	callq	_DMA_OUT
LBB0_4:
	movq	_FSL_DMA_CHAN_START_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	jne	LBB0_5
## %bb.6:
	movq	_FSL_DMA_MR_CS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_FSL_DMA_MR_EMS_EN@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %r14d
	movq	8(%r12), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$32, %edx
	callq	_DMA_IN
	orl	%eax, %r14d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movl	$32, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DMA_OUT                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FSL_DMA_CHAN_PAUSE_EXT,4,2     ## @FSL_DMA_CHAN_PAUSE_EXT
	.comm	_FSL_DMA_MR_EMP_EN,4,2          ## @FSL_DMA_MR_EMP_EN
	.comm	_FSL_DMA_IP_MASK,4,2            ## @FSL_DMA_IP_MASK
	.comm	_FSL_DMA_IP_85XX,4,2            ## @FSL_DMA_IP_85XX
	.comm	_FSL_DMA_CHAN_START_EXT,4,2     ## @FSL_DMA_CHAN_START_EXT
	.comm	_FSL_DMA_MR_EMS_EN,4,2          ## @FSL_DMA_MR_EMS_EN
	.comm	_FSL_DMA_MR_CS,4,2              ## @FSL_DMA_MR_CS
	.no_dead_strip	_dma_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_start
_dma_start:                             ; @dma_start
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FSL_DMA_CHAN_PAUSE_EXT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FSL_DMA_CHAN_PAUSE_EXT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	add	x1, x8, #4
	mov	x0, x19
	mov	w2, #0
	mov	w3, #32
	bl	_DMA_OUT
Lloh3:
	adrp	x8, _FSL_DMA_MR_EMP_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FSL_DMA_MR_EMP_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	b	LBB0_5
LBB0_2:
Lloh6:
	adrp	x9, _FSL_DMA_IP_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FSL_DMA_IP_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh9:
	adrp	x9, _FSL_DMA_IP_85XX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FSL_DMA_IP_85XX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	x20, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #32
	bl	_DMA_IN
Lloh12:
	adrp	x8, _FSL_DMA_MR_EMP_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FSL_DMA_MR_EMP_EN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	mov	w3, #32
	bl	_DMA_OUT
LBB0_4:
	mov	w8, #0
LBB0_5:
	ldr	w9, [x19]
Lloh15:
	adrp	x10, _FSL_DMA_CHAN_START_EXT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _FSL_DMA_CHAN_START_EXT@GOTPAGEOFF]
Lloh17:
	adrp	x11, _FSL_DMA_MR_CS@GOTPAGE
Lloh18:
	ldr	x11, [x11, _FSL_DMA_MR_CS@GOTPAGEOFF]
Lloh19:
	adrp	x12, _FSL_DMA_MR_EMS_EN@GOTPAGE
Lloh20:
	ldr	x12, [x12, _FSL_DMA_MR_EMS_EN@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	tst	w10, w9
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	orr	w21, w9, w8
	ldr	x20, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #32
	bl	_DMA_IN
	orr	w2, w21, w0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #32
	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	_DMA_OUT
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FSL_DMA_CHAN_PAUSE_EXT,4,2     ; @FSL_DMA_CHAN_PAUSE_EXT
	.comm	_FSL_DMA_MR_EMP_EN,4,2          ; @FSL_DMA_MR_EMP_EN
	.comm	_FSL_DMA_IP_MASK,4,2            ; @FSL_DMA_IP_MASK
	.comm	_FSL_DMA_IP_85XX,4,2            ; @FSL_DMA_IP_85XX
	.comm	_FSL_DMA_CHAN_START_EXT,4,2     ; @FSL_DMA_CHAN_START_EXT
	.comm	_FSL_DMA_MR_EMS_EN,4,2          ; @FSL_DMA_MR_EMS_EN
	.comm	_FSL_DMA_MR_CS,4,2              ; @FSL_DMA_MR_CS
	.no_dead_strip	_dma_start
.subsections_via_symbols
