	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_dma_stop                ## -- Begin function mantis_dma_stop
	.p2align	4, 0x90
_mantis_dma_stop:                       ## @mantis_dma_stop
	.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
	movq	_MANTIS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	callq	_dprintk
	movq	_MANTIS_GPIF_ADDR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_mmread
	movq	_MANTIS_GPIF_HIFRDWRN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movl	(%rbx), %esi
	callq	_mmwrite
	movq	_MANTIS_DMA_CTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_mmread
	movq	_MANTIS_FIFO_EN@GOTPCREL(%rip), %rcx
	movq	_MANTIS_DCAP_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movq	_MANTIS_RISC_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movl	(%rbx), %esi
	callq	_mmwrite
	movq	_MANTIS_INT_STAT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_mmread
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_mmwrite
	movq	_MANTIS_INT_RISCI@GOTPCREL(%rip), %rax
	movq	_MANTIS_INT_RISCEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mantis_mask_ints               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MANTIS_DEBUG,4,2               ## @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mantis Stop DMA engine"

	.comm	_MANTIS_GPIF_ADDR,4,2           ## @MANTIS_GPIF_ADDR
	.comm	_MANTIS_GPIF_HIFRDWRN,4,2       ## @MANTIS_GPIF_HIFRDWRN
	.comm	_MANTIS_DMA_CTL,4,2             ## @MANTIS_DMA_CTL
	.comm	_MANTIS_FIFO_EN,4,2             ## @MANTIS_FIFO_EN
	.comm	_MANTIS_DCAP_EN,4,2             ## @MANTIS_DCAP_EN
	.comm	_MANTIS_RISC_EN,4,2             ## @MANTIS_RISC_EN
	.comm	_MANTIS_INT_STAT,4,2            ## @MANTIS_INT_STAT
	.comm	_MANTIS_INT_RISCI,4,2           ## @MANTIS_INT_RISCI
	.comm	_MANTIS_INT_RISCEN,4,2          ## @MANTIS_INT_RISCEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_dma_stop                ; -- Begin function mantis_dma_stop
	.p2align	2
_mantis_dma_stop:                       ; @mantis_dma_stop
	.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
Lloh0:
	adrp	x8, _MANTIS_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MANTIS_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
Lloh5:
	adrp	x20, _MANTIS_GPIF_ADDR@GOTPAGE
Lloh6:
	ldr	x20, [x20, _MANTIS_GPIF_ADDR@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_mmread
Lloh7:
	adrp	x8, _MANTIS_GPIF_HIFRDWRN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MANTIS_GPIF_HIFRDWRN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	w1, [x20]
	bl	_mmwrite
Lloh10:
	adrp	x20, _MANTIS_DMA_CTL@GOTPAGE
Lloh11:
	ldr	x20, [x20, _MANTIS_DMA_CTL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_mmread
Lloh12:
	adrp	x8, _MANTIS_FIFO_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MANTIS_FIFO_EN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _MANTIS_DCAP_EN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MANTIS_DCAP_EN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _MANTIS_RISC_EN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MANTIS_RISC_EN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w0, w0, w8
	ldr	w1, [x20]
	bl	_mmwrite
Lloh21:
	adrp	x20, _MANTIS_INT_STAT@GOTPAGE
Lloh22:
	ldr	x20, [x20, _MANTIS_INT_STAT@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_mmread
	ldr	w1, [x20]
	bl	_mmwrite
Lloh23:
	adrp	x8, _MANTIS_INT_RISCI@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MANTIS_INT_RISCI@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _MANTIS_INT_RISCEN@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MANTIS_INT_RISCEN@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mantis_mask_ints
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MANTIS_DEBUG,4,2               ; @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mantis Stop DMA engine"

	.comm	_MANTIS_GPIF_ADDR,4,2           ; @MANTIS_GPIF_ADDR
	.comm	_MANTIS_GPIF_HIFRDWRN,4,2       ; @MANTIS_GPIF_HIFRDWRN
	.comm	_MANTIS_DMA_CTL,4,2             ; @MANTIS_DMA_CTL
	.comm	_MANTIS_FIFO_EN,4,2             ; @MANTIS_FIFO_EN
	.comm	_MANTIS_DCAP_EN,4,2             ; @MANTIS_DCAP_EN
	.comm	_MANTIS_RISC_EN,4,2             ; @MANTIS_RISC_EN
	.comm	_MANTIS_INT_STAT,4,2            ; @MANTIS_INT_STAT
	.comm	_MANTIS_INT_RISCI,4,2           ; @MANTIS_INT_RISCI
	.comm	_MANTIS_INT_RISCEN,4,2          ; @MANTIS_INT_RISCEN
.subsections_via_symbols
