	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_sb_csp_unload
_snd_sb_csp_unload:                     ## @snd_sb_csp_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
	movl	(%rdi), %eax
	movq	_SNDRV_SB_CSP_ST_RUNNING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_3:
	movq	_SNDRV_SB_CSP_ST_LOADED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.5:
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rdi)
	movups	%xmm0, 16(%rdi)
	movq	8(%rdi), %rax
	movq	_SNDRV_SB_CSP_MODE_QSOUND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_snd_sb_qsound_destroy
LBB0_7:
	movl	$0, (%rbx)
	movq	$0, 8(%rbx)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_SB_CSP_ST_RUNNING,4,2    ## @SNDRV_SB_CSP_ST_RUNNING
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_SNDRV_SB_CSP_ST_LOADED,4,2     ## @SNDRV_SB_CSP_ST_LOADED
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SNDRV_SB_CSP_MODE_QSOUND,8,3   ## @SNDRV_SB_CSP_MODE_QSOUND
	.no_dead_strip	_snd_sb_csp_unload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_sb_csp_unload
_snd_sb_csp_unload:                     ; @snd_sb_csp_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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SNDRV_SB_CSP_ST_RUNNING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_SB_CSP_ST_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_3:
Lloh5:
	adrp	x9, _SNDRV_SB_CSP_ST_LOADED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SNDRV_SB_CSP_ST_LOADED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.4:
	mov	x19, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x0, #16]
	ldr	x8, [x0, #8]
Lloh8:
	adrp	x9, _SNDRV_SB_CSP_MODE_QSOUND@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SNDRV_SB_CSP_MODE_QSOUND@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_snd_sb_qsound_destroy
LBB0_6:
	mov	w0, #0
	str	wzr, [x19]
	str	xzr, [x19, #8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh11:
	adrp	x8, _ENXIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_SB_CSP_ST_RUNNING,4,2    ; @SNDRV_SB_CSP_ST_RUNNING
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_SNDRV_SB_CSP_ST_LOADED,4,2     ; @SNDRV_SB_CSP_ST_LOADED
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SNDRV_SB_CSP_MODE_QSOUND,8,3   ; @SNDRV_SB_CSP_MODE_QSOUND
	.no_dead_strip	_snd_sb_csp_unload
.subsections_via_symbols
