	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emux_free                  ## -- Begin function snd_emux_free
	.p2align	4, 0x90
_snd_emux_free:                         ## @snd_emux_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	leaq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 32(%rbx)
	je	LBB0_4
## %bb.3:
	leaq	28(%rbx), %rdi
	callq	_del_timer
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_snd_emux_delete_virmidi
	movq	%rbx, %rdi
	callq	_snd_emux_detach_seq
	movq	%rbx, %rdi
	callq	_snd_emux_delete_hwdep
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_snd_sf_free
LBB0_6:
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emux_free                  ; -- Begin function snd_emux_free
	.p2align	2
_snd_emux_free:                         ; @snd_emux_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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	add	x20, x0, #24
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_3
; %bb.2:
	add	x0, x19, #28
	bl	_del_timer
LBB0_3:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_snd_emux_delete_virmidi
	mov	x0, x19
	bl	_snd_emux_detach_seq
	mov	x0, x19
	bl	_snd_emux_delete_hwdep
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_snd_sf_free
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_kfree
	ldr	x0, [x19]
	bl	_kfree
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
