	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_dma_init                ## -- Begin function mantis_dma_init
	.p2align	4, 0x90
_mantis_dma_init:                       ## @mantis_dma_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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_alloc_buffers
	movl	%eax, %ebx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jns	LBB0_2
## %bb.1:
	movq	_MANTIS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %esi
	callq	_dprintk
	movq	_MANTIS_DMA_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_mmwrite
	movl	%ebx, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MANTIS_DEBUG,4,2               ## @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mantis DMA init"

	.comm	_MANTIS_ERROR,4,2               ## @MANTIS_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Error allocating DMA buffer"

	.comm	_MANTIS_DMA_CTL,4,2             ## @MANTIS_DMA_CTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_dma_init                ; -- Begin function mantis_dma_init
	.p2align	2
_mantis_dma_init:                       ; @mantis_dma_init
	.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_alloc_buffers
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_3
LBB0_2:
	mov	x19, x0
Lloh5:
	adrp	x8, _MANTIS_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MANTIS_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #1
	bl	_dprintk
Lloh10:
	adrp	x8, _MANTIS_DMA_CTL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MANTIS_DMA_CTL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_mmwrite
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MANTIS_DEBUG,4,2               ; @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mantis DMA init"

	.comm	_MANTIS_ERROR,4,2               ; @MANTIS_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Error allocating DMA buffer"

	.comm	_MANTIS_DMA_CTL,4,2             ; @MANTIS_DMA_CTL
.subsections_via_symbols
