	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sb_mixer_unload                ## -- Begin function sb_mixer_unload
	.p2align	4, 0x90
_sb_mixer_unload:                       ## @sb_mixer_unload
	.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
	movslq	(%rdi), %rax
	cmpq	$-1, %rax
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_mixer_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_kfree
	movslq	(%rbx), %rdi
	callq	_sound_unload_mixerdev
	movq	_sbmixnum@GOTPCREL(%rip), %rax
	decl	(%rax)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mixer_devs,8,3                 ## @mixer_devs
	.comm	_sbmixnum,4,2                   ## @sbmixnum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sb_mixer_unload                ; -- Begin function sb_mixer_unload
	.p2align	2
_sb_mixer_unload:                       ; @sb_mixer_unload
	.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
	ldrsw	x8, [x0]
	cmn	w8, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, _mixer_devs@GOTPAGE
Lloh1:
	ldr	x9, [x9, _mixer_devs@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x9, x8, lsl #2]
	bl	_kfree
	ldrsw	x0, [x19]
	bl	_sound_unload_mixerdev
Lloh3:
	adrp	x8, _sbmixnum@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sbmixnum@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mixer_devs,8,3                 ; @mixer_devs
	.comm	_sbmixnum,4,2                   ; @sbmixnum
.subsections_via_symbols
