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

	.comm	_MANTIS_RISC_START,4,2          ## @MANTIS_RISC_START
	.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_INT_RISCI,4,2           ## @MANTIS_INT_RISCI
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_dma_start               ; -- Begin function mantis_dma_start
	.p2align	2
_mantis_dma_start:                      ; @mantis_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
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
	mov	x0, x19
	bl	_mantis_risc_program
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _MANTIS_RISC_START@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MANTIS_RISC_START@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_mmwrite
Lloh8:
	adrp	x20, _MANTIS_GPIF_ADDR@GOTPAGE
Lloh9:
	ldr	x20, [x20, _MANTIS_GPIF_ADDR@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_mmread
Lloh10:
	adrp	x8, _MANTIS_GPIF_HIFRDWRN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MANTIS_GPIF_HIFRDWRN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	w1, [x20]
	bl	_mmwrite
Lloh13:
	adrp	x20, _MANTIS_DMA_CTL@GOTPAGE
Lloh14:
	ldr	x20, [x20, _MANTIS_DMA_CTL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #0
	bl	_mmwrite
	stp	xzr, xzr, [x19, #8]
Lloh15:
	adrp	x8, _MANTIS_INT_RISCI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MANTIS_INT_RISCI@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mantis_unmask_ints
Lloh18:
	adrp	x8, _MANTIS_FIFO_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MANTIS_FIFO_EN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _MANTIS_DCAP_EN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MANTIS_DCAP_EN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _MANTIS_RISC_EN@GOTPAGE
Lloh25:
	ldr	x10, [x10, _MANTIS_RISC_EN@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh26:
	ldr	w9, [x10]
	orr	w0, w8, w9
	ldr	w1, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmwrite
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.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 Start DMA engine"

	.comm	_MANTIS_RISC_START,4,2          ; @MANTIS_RISC_START
	.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_INT_RISCI,4,2           ; @MANTIS_INT_RISCI
	.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
.subsections_via_symbols
