	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_echo_free
_snd_echo_free:                         ## @snd_echo_free
	.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
	leaq	L_.str(%rip), %rdi
	callq	_DE_INIT
	cmpq	$0, 40(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_rest_in_peace
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_DE_INIT
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_4
## %bb.3:
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_4:
	cmpq	$0, 40(%rbx)
	je	LBB0_6
## %bb.5:
	leaq	32(%rbx), %rdi
	callq	_snd_dma_free_pages
LBB0_6:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_iounmap
LBB0_8:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_release_and_free_resource
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	callq	_DE_INIT
	movl	8(%rbx), %edi
	callq	_pci_disable_device
	movq	%rbx, %rdi
	callq	_kfree
	leaq	L_.str.3(%rip), %rdi
	callq	_DE_INIT
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stop DSP...\n"

L_.str.1:                               ## @.str.1
	.asciz	"Stopped.\n"

L_.str.2:                               ## @.str.2
	.asciz	"MMIO freed.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Chip freed.\n"

	.no_dead_strip	_snd_echo_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_echo_free
_snd_echo_free:                         ; @snd_echo_free
	.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	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DE_INIT
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_rest_in_peace
LBB0_2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DE_INIT
	ldr	x0, [x19]
	tbnz	x0, #63, LBB0_4
; %bb.3:
	mov	x1, x19
	bl	_free_irq
LBB0_4:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.5:
	add	x0, x19, #32
	bl	_snd_dma_free_pages
LBB0_6:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_iounmap
LBB0_8:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_release_and_free_resource
LBB0_10:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DE_INIT
	ldr	w0, [x19, #8]
	bl	_pci_disable_device
	mov	x0, x19
	bl	_kfree
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DE_INIT
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stop DSP...\n"

l_.str.1:                               ; @.str.1
	.asciz	"Stopped.\n"

l_.str.2:                               ; @.str.2
	.asciz	"MMIO freed.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Chip freed.\n"

	.no_dead_strip	_snd_echo_free
.subsections_via_symbols
