	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwave_exit
_mwave_exit:                            ## @mwave_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	_TRACE_MWAVE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PRINTK_1
	movq	_mwave_s_mdd@GOTPCREL(%rip), %rbx
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_2
## %bb.1:
	callq	_serial8250_unregister_port
LBB0_2:
	cmpq	$0, 48(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_mwave_misc_dev@GOTPCREL(%rip), %rdi
	callq	_misc_deregister
LBB0_4:
	cmpq	$0, 40(%rbx)
	je	LBB0_6
## %bb.5:
	leaq	16(%rbx), %rdi
	callq	_tp3780I_DisableDSP
LBB0_6:
	cmpq	$0, 32(%rbx)
	je	LBB0_8
## %bb.7:
	leaq	16(%rbx), %rdi
	callq	_tp3780I_ReleaseResources
LBB0_8:
	cmpq	$0, 24(%rbx)
	je	LBB0_10
## %bb.9:
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_tp3780I_Cleanup
LBB0_10:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PRINTK_1                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mwave_s_mdd,64,3               ## @mwave_s_mdd
	.comm	_TRACE_MWAVE,4,2                ## @TRACE_MWAVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mwavedd::mwave_exit entry\n"

	.comm	_mwave_misc_dev,4,2             ## @mwave_misc_dev
L_.str.1:                               ## @.str.1
	.asciz	"mwavedd::mwave_exit exit\n"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_i,8,3                          ## @i
	.comm	_mwave_dev_attrs,8,3            ## @mwave_dev_attrs
	.comm	_mwave_device,4,2               ## @mwave_device
	.no_dead_strip	_mwave_exit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwave_exit
_mwave_exit:                            ; @mwave_exit
	.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
Lloh0:
	adrp	x19, _TRACE_MWAVE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _TRACE_MWAVE@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PRINTK_1
Lloh4:
	adrp	x20, _mwave_s_mdd@GOTPAGE
Lloh5:
	ldr	x20, [x20, _mwave_s_mdd@GOTPAGEOFF]
	ldr	x0, [x20, #8]
	tbnz	x0, #63, LBB0_2
; %bb.1:
	bl	_serial8250_unregister_port
LBB0_2:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, _mwave_misc_dev@GOTPAGE
Lloh7:
	ldr	x0, [x0, _mwave_misc_dev@GOTPAGEOFF]
	bl	_misc_deregister
LBB0_4:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_6
; %bb.5:
	add	x0, x20, #16
	bl	_tp3780I_DisableDSP
LBB0_6:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_8
; %bb.7:
	add	x0, x20, #16
	bl	_tp3780I_ReleaseResources
LBB0_8:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_10
; %bb.9:
	add	x0, x20, #16
	bl	_tp3780I_Cleanup
LBB0_10:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PRINTK_1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_mwave_s_mdd,64,3               ; @mwave_s_mdd
	.comm	_TRACE_MWAVE,4,2                ; @TRACE_MWAVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mwavedd::mwave_exit entry\n"

	.comm	_mwave_misc_dev,4,2             ; @mwave_misc_dev
l_.str.1:                               ; @.str.1
	.asciz	"mwavedd::mwave_exit exit\n"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_i,8,3                          ; @i
	.comm	_mwave_dev_attrs,8,3            ; @mwave_dev_attrs
	.comm	_mwave_device,4,2               ; @mwave_device
	.no_dead_strip	_mwave_exit
.subsections_via_symbols
