	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_core_exit               ## -- Begin function mantis_core_exit
	.p2align	4, 0x90
_mantis_core_exit:                      ## @mantis_core_exit
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_mantis_dma_stop
	movq	_verbose@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_MANTIS_ERROR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_mantis_uart_exit
	movl	(%r14), %edi
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_mantis_dma_exit
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
LBB0_2:
	movq	%rbx, %rdi
	callq	_mantis_dvb_exit
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	movl	(%r15), %esi
	leaq	L_.str.3(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
LBB0_4:
	movq	%rbx, %rdi
	callq	_mantis_i2c_exit
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	movl	(%r15), %esi
	leaq	L_.str.4(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,4,2                    ## @verbose
	.comm	_MANTIS_ERROR,4,2               ## @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA engine stopping"

L_.str.1:                               ## @.str.1
	.asciz	"UART exit failed"

L_.str.2:                               ## @.str.2
	.asciz	"DMA exit failed"

L_.str.3:                               ## @.str.3
	.asciz	"DVB exit failed"

L_.str.4:                               ## @.str.4
	.asciz	"I2C adapter delete.. failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_core_exit               ; -- Begin function mantis_core_exit
	.p2align	2
_mantis_core_exit:                      ; @mantis_core_exit
	.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
	bl	_mantis_dma_stop
Lloh0:
	adrp	x20, _verbose@GOTPAGE
Lloh1:
	ldr	x20, [x20, _verbose@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _MANTIS_ERROR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MANTIS_ERROR@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	x0, x19
	bl	_mantis_uart_exit
	ldr	w0, [x20]
	ldr	w1, [x21]
Lloh6:
	adrp	x3, l_.str.1@PAGE
Lloh7:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	x0, x19
	bl	_mantis_dma_exit
	tbz	x0, #63, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	ldr	w1, [x21]
Lloh8:
	adrp	x3, l_.str.2@PAGE
Lloh9:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w2, #1
	bl	_dprintk
LBB0_2:
	mov	x0, x19
	bl	_mantis_dvb_exit
	tbz	x0, #63, LBB0_4
; %bb.3:
	ldr	w0, [x20]
	ldr	w1, [x21]
Lloh10:
	adrp	x3, l_.str.3@PAGE
Lloh11:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w2, #1
	bl	_dprintk
LBB0_4:
	mov	x0, x19
	bl	_mantis_i2c_exit
	tbz	x0, #63, LBB0_6
; %bb.5:
	ldr	w0, [x20]
	ldr	w1, [x21]
Lloh12:
	adrp	x3, l_.str.4@PAGE
Lloh13:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	w2, #1
	bl	_dprintk
LBB0_6:
	mov	w0, #0
	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
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,4,2                    ; @verbose
	.comm	_MANTIS_ERROR,4,2               ; @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA engine stopping"

l_.str.1:                               ; @.str.1
	.asciz	"UART exit failed"

l_.str.2:                               ; @.str.2
	.asciz	"DMA exit failed"

l_.str.3:                               ; @.str.3
	.asciz	"DVB exit failed"

l_.str.4:                               ; @.str.4
	.asciz	"I2C adapter delete.. failed"

.subsections_via_symbols
