	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SNDDXDeInit                    ## -- Begin function SNDDXDeInit
	.p2align	4, 0x90
_SNDDXDeInit:                           ## @SNDDXDeInit
	.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	$0, -16(%rbp)
	movq	_lpDSB2@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	leaq	-16(%rbp), %rsi
	callq	_IDirectSoundBuffer8_GetStatus
	movq	-16(%rbp), %rax
	movq	_DSBSTATUS_PLAYING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	callq	_IDirectSoundBuffer8_Stop
LBB0_3:
	movq	(%rbx), %rdi
	callq	_IDirectSoundBuffer8_Release
	movq	$0, (%rbx)
LBB0_4:
	movq	_lpDSB@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_IDirectSoundBuffer8_Release
	movq	$0, (%rbx)
LBB0_6:
	movq	_lpDS8@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_IDirectSound8_Release
	movq	$0, (%rbx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lpDSB2,8,3                     ## @lpDSB2
	.comm	_DSBSTATUS_PLAYING,8,3          ## @DSBSTATUS_PLAYING
	.comm	_lpDSB,8,3                      ## @lpDSB
	.comm	_lpDS8,8,3                      ## @lpDS8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SNDDXDeInit                    ; -- Begin function SNDDXDeInit
	.p2align	2
_SNDDXDeInit:                           ; @SNDDXDeInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	xzr, [sp, #8]
Lloh0:
	adrp	x19, _lpDSB2@GOTPAGE
Lloh1:
	ldr	x19, [x19, _lpDSB2@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
	add	x1, sp, #8
	bl	_IDirectSoundBuffer8_GetStatus
	ldr	x8, [sp, #8]
Lloh2:
	adrp	x9, _DSBSTATUS_PLAYING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DSBSTATUS_PLAYING@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x19]
	bl	_IDirectSoundBuffer8_Stop
LBB0_3:
	ldr	x0, [x19]
	bl	_IDirectSoundBuffer8_Release
	str	xzr, [x19]
LBB0_4:
Lloh5:
	adrp	x19, _lpDSB@GOTPAGE
Lloh6:
	ldr	x19, [x19, _lpDSB@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_IDirectSoundBuffer8_Release
	str	xzr, [x19]
LBB0_6:
Lloh7:
	adrp	x19, _lpDS8@GOTPAGE
Lloh8:
	ldr	x19, [x19, _lpDS8@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_IDirectSound8_Release
	str	xzr, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_lpDSB2,8,3                     ; @lpDSB2
	.comm	_DSBSTATUS_PLAYING,8,3          ; @DSBSTATUS_PLAYING
	.comm	_lpDSB,8,3                      ; @lpDSB
	.comm	_lpDS8,8,3                      ; @lpDS8
.subsections_via_symbols
