	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_dvb_exit                ## -- Begin function mantis_dvb_exit
	.p2align	4, 0x90
_mantis_dvb_exit:                       ## @mantis_dvb_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 40(%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_mantis_frontend_shutdown
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_MANTIS_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dprintk
LBB0_3:
	movq	40(%rbx), %rdi
	callq	_dvb_unregister_frontend
	movq	40(%rbx), %rdi
	callq	_dvb_frontend_detach
LBB0_4:
	leaq	32(%rbx), %rdi
	callq	_tasklet_kill
	leaq	28(%rbx), %rdi
	callq	_dvb_net_release
	leaq	8(%rbx), %r14
	leaq	24(%rbx), %rsi
	movq	%r14, %rdi
	callq	*8(%rbx)
	leaq	20(%rbx), %rsi
	movq	%r14, %rdi
	callq	*8(%rbx)
	leaq	16(%rbx), %rdi
	callq	_dvb_dmxdev_release
	movq	%r14, %rdi
	callq	_dvb_dmx_release
	movq	_MANTIS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_dvb_unregister_adapter
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MANTIS_ERROR,4,2               ## @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Frontend exit while POWER ON! <%d>"

	.comm	_MANTIS_DEBUG,4,2               ## @MANTIS_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"dvb_unregister_adapter"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_dvb_exit                ; -- Begin function mantis_dvb_exit
	.p2align	2
_mantis_dvb_exit:                       ; @mantis_dvb_exit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_mantis_frontend_shutdown
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _MANTIS_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MANTIS_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x8
	mov	w1, #1
	bl	_dprintk
LBB0_3:
	ldr	x0, [x19, #40]
	bl	_dvb_unregister_frontend
	ldr	x0, [x19, #40]
	bl	_dvb_frontend_detach
LBB0_4:
	add	x0, x19, #32
	bl	_tasklet_kill
	add	x0, x19, #28
	bl	_dvb_net_release
	mov	x20, x19
	ldr	x8, [x20, #8]!
	add	x1, x19, #24
	mov	x0, x20
	blr	x8
	ldr	x8, [x20]
	add	x1, x19, #20
	mov	x0, x20
	blr	x8
	add	x0, x19, #16
	bl	_dvb_dmxdev_release
	mov	x0, x20
	bl	_dvb_dmx_release
Lloh5:
	adrp	x8, _MANTIS_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MANTIS_DEBUG@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
	mov	x0, x19
	bl	_dvb_unregister_adapter
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MANTIS_ERROR,4,2               ; @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Frontend exit while POWER ON! <%d>"

	.comm	_MANTIS_DEBUG,4,2               ; @MANTIS_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"dvb_unregister_adapter"

.subsections_via_symbols
