	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1x_free
_snd_emu10k1x_free:                     ## @snd_emu10k1x_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
	movq	_TRIGGER_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_snd_emu10k1x_ptr_write
	movq	_INTE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	xorl	%edi, %edi
	callq	_outl
	movq	_HCFG_LOCKSOUNDCACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	callq	_outl
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_2
## %bb.1:
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_2:
	movl	24(%rbx), %edi
	callq	_release_and_free_resource
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	leaq	16(%rbx), %rdi
	callq	_snd_dma_free_pages
LBB0_4:
	movl	8(%rbx), %edi
	callq	_pci_disable_device
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRIGGER_CHANNEL,4,2            ## @TRIGGER_CHANNEL
	.comm	_INTE,8,3                       ## @INTE
	.comm	_HCFG_LOCKSOUNDCACHE,4,2        ## @HCFG_LOCKSOUNDCACHE
	.comm	_HCFG,8,3                       ## @HCFG
	.no_dead_strip	_snd_emu10k1x_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1x_free
_snd_emu10k1x_free:                     ; @snd_emu10k1x_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	x8, _TRIGGER_CHANNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRIGGER_CHANNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_snd_emu10k1x_ptr_write
	ldr	x8, [x19, #32]
Lloh3:
	adrp	x9, _INTE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INTE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_outl
Lloh6:
	adrp	x8, _HCFG_LOCKSOUNDCACHE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HCFG_LOCKSOUNDCACHE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x8, [x19, #32]
Lloh9:
	adrp	x9, _HCFG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HCFG@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outl
	ldr	x0, [x19]
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	x1, x19
	bl	_free_irq
LBB0_2:
	ldr	w0, [x19, #24]
	bl	_release_and_free_resource
	mov	x0, x19
	ldr	x8, [x0, #16]!
	cbz	x8, LBB0_4
; %bb.3:
	bl	_snd_dma_free_pages
LBB0_4:
	ldr	w0, [x19, #8]
	bl	_pci_disable_device
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TRIGGER_CHANNEL,4,2            ; @TRIGGER_CHANNEL
	.comm	_INTE,8,3                       ; @INTE
	.comm	_HCFG_LOCKSOUNDCACHE,4,2        ; @HCFG_LOCKSOUNDCACHE
	.comm	_HCFG,8,3                       ; @HCFG
	.no_dead_strip	_snd_emu10k1x_free
.subsections_via_symbols
