	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_get_mr
	movl	%eax, %ebx
	movl	(%r14), %eax
	movq	_FSL_DMA_CHAN_PAUSE_EXT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_set_bcr
	movq	_FSL_DMA_MR_EMP_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r14), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_FSL_DMA_MR_EMP_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %ebx
LBB0_3:
	movq	_FSL_DMA_CHAN_START_EXT@GOTPCREL(%rip), %rcx
	movq	_FSL_DMA_MR_EMS_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	orl	%ebx, %esi
	jmp	LBB0_6
LBB0_5:
	notl	%esi
	andl	%esi, %ebx
	movq	_FSL_DMA_MR_CS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %esi
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_set_mr                         ## 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_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	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
	mov	x19, x0
	bl	_get_mr
	mov	x20, x0
	ldr	w8, [x19]
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:
	mov	x0, x19
	mov	w1, #0
	bl	_set_bcr
Lloh3:
	adrp	x8, _FSL_DMA_MR_EMP_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FSL_DMA_MR_EMP_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w9, w8, w20
	ldr	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x9, _FSL_DMA_MR_EMP_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FSL_DMA_MR_EMP_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	bic	w9, w20, w9
LBB0_3:
Lloh9:
	adrp	x10, _FSL_DMA_CHAN_START_EXT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FSL_DMA_CHAN_START_EXT@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x10]
Lloh12:
	adrp	x10, _FSL_DMA_MR_EMS_EN@GOTPAGE
Lloh13:
	ldr	x10, [x10, _FSL_DMA_MR_EMS_EN@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w11, w8
	b.eq	LBB0_5
; %bb.4:
	orr	w1, w10, w9
	b	LBB0_6
LBB0_5:
	bic	w8, w9, w10
Lloh15:
	adrp	x9, _FSL_DMA_MR_CS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FSL_DMA_MR_CS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w8, w9
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_set_mr
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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_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
