	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SNDDMA_InitDS                  ## -- Begin function SNDDMA_InitDS
	.p2align	4, 0x90
_SNDDMA_InitDS:                         ## @SNDDMA_InitDS
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_Com_Printf
	movq	_CLSCTX_INPROC_SERVER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_CLSID_DirectSound8@GOTPCREL(%rip), %rdi
	movq	_IID_IDirectSound8@GOTPCREL(%rip), %rcx
	movq	_pDS@GOTPCREL(%rip), %r14
	xorl	%esi, %esi
	movq	%r14, %r8
	callq	_CoCreateInstance
	movl	%eax, %edi
	callq	_FAILED
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	(%rbx), %edx
	movq	_CLSID_DirectSound@GOTPCREL(%rip), %rdi
	movq	_IID_IDirectSound@GOTPCREL(%rip), %rcx
	movq	_pDS@GOTPCREL(%rip), %r8
	xorl	%esi, %esi
	callq	_CoCreateInstance
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	movq	(%r14), %rdi
	movq	(%rdi), %rax
	xorl	%esi, %esi
	callq	*16(%rax)
	leaq	L_.str.2(%rip), %rdi
	callq	_Com_DPrintf
	leaq	L_.str.3(%rip), %rdi
	callq	_Com_DPrintf
	movq	_DS_OK@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movq	(%r14), %rdi
	movq	(%rdi), %rax
	movq	_g_wv@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DSSCL_PRIORITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	callq	*(%rax)
	cmpq	%rax, %rbx
	jne	LBB0_2
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_Com_DPrintf
	movq	_dma@GOTPCREL(%rip), %rbx
	movabsq	$68719476738, %rax              ## imm = 0x1000000002
	movq	%rax, (%rbx)
	movl	$22050, 8(%rbx)                 ## imm = 0x5622
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	_WAVE_FORMAT_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	movl	%eax, -96(%rbp)
	movl	%ecx, -92(%rbp)
	movl	8(%rbx), %edx
	movl	%edx, -88(%rbp)
	imull	%eax, %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	movl	%eax, -84(%rbp)
	movq	$0, -56(%rbp)
	imull	%edx, %eax
	movl	%eax, -80(%rbp)
	leaq	-152(%rbp), %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movl	$56, -132(%rbp)
	movq	_DSBCAPS_LOCHARDWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -124(%rbp)
	testq	%r12, %r12
	jne	LBB0_7
## %bb.6:
	movq	_DSBCAPS_GETCURRENTPOSITION2@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -124(%rbp)
LBB0_7:
	movq	_SECONDARY_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movq	%r15, -120(%rbp)
	leaq	-208(%rbp), %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movl	$56, -188(%rbp)
	leaq	L_.str.4(%rip), %rdi
	callq	_Com_DPrintf
	movq	(%r13), %r15
	movq	(%r14), %rdi
	movq	(%rdi), %rax
	movq	_pDSBuf@GOTPCREL(%rip), %rdx
	leaq	-152(%rbp), %rsi
	xorl	%ecx, %ecx
	callq	*8(%rax)
	cmpq	%rax, %r15
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %r15
	leaq	L_.str.5(%rip), %rdi
	callq	_Com_Printf
	jmp	LBB0_13
LBB0_9:
	movq	%rbx, %r15
	movq	_DSBCAPS_LOCSOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -124(%rbp)
	testq	%r12, %r12
	jne	LBB0_11
## %bb.10:
	movq	_DSBCAPS_GETCURRENTPOSITION2@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -124(%rbp)
LBB0_11:
	movq	(%r13), %rbx
	movq	(%r14), %rdi
	movq	(%rdi), %rax
	movq	_pDSBuf@GOTPCREL(%rip), %rdx
	leaq	-152(%rbp), %rsi
	xorl	%ecx, %ecx
	callq	*8(%rax)
	cmpq	%rax, %rbx
	jne	LBB0_2
## %bb.12:
	leaq	L_.str.6(%rip), %rdi
	callq	_Com_DPrintf
LBB0_13:
	movq	(%r13), %rbx
	movq	_pDSBuf@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	(%rdi), %rax
	movq	_DSBPLAY_LOOPING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	*(%rax)
	cmpq	%rax, %rbx
	jne	LBB0_14
## %bb.15:
	movq	(%r13), %rbx
	movq	(%r14), %rdi
	movq	(%rdi), %rax
	leaq	-208(%rbp), %rsi
	callq	*8(%rax)
	cmpq	%rax, %rbx
	jne	LBB0_16
## %bb.17:
	movl	-184(%rbp), %eax
	movq	_gSndBufSize@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	-96(%rbp), %ecx
	movl	-92(%rbp), %edx
	movl	%ecx, (%r15)
	movl	%edx, 4(%r15)
	movl	-88(%rbp), %ecx
	movl	%ecx, 8(%r15)
	leal	7(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$3, %ecx
	cltd
	idivl	%ecx
	movl	%eax, 12(%r15)
	movl	$1, 16(%r15)
	movq	$0, 24(%r15)
	decl	%ecx
	movq	_sample16@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	callq	_SNDDMA_BeginPainting
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	movl	4(%r15), %eax
	imull	12(%r15), %eax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	xorl	%esi, %esi
	callq	_memset
LBB0_19:
	xorl	%eax, %eax
	callq	_SNDDMA_Submit
	movl	$1, %eax
	jmp	LBB0_20
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	callq	_Com_Printf
	xorl	%eax, %eax
	callq	_SNDDMA_Shutdown
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_20:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_3
LBB0_16:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initializing DirectSound\n"

	.comm	_CLSID_DirectSound8,4,2         ## @CLSID_DirectSound8
	.comm	_CLSCTX_INPROC_SERVER,4,2       ## @CLSCTX_INPROC_SERVER
	.comm	_IID_IDirectSound8,4,2          ## @IID_IDirectSound8
	.comm	_pDS,8,3                        ## @pDS
	.comm	_CLSID_DirectSound,4,2          ## @CLSID_DirectSound
	.comm	_IID_IDirectSound,4,2           ## @IID_IDirectSound
L_.str.1:                               ## @.str.1
	.asciz	"failed\n"

	.comm	_qfalse,4,2                     ## @qfalse
L_.str.2:                               ## @.str.2
	.asciz	"ok\n"

L_.str.3:                               ## @.str.3
	.asciz	"...setting DSSCL_PRIORITY coop level: "

	.comm	_DS_OK,8,3                      ## @DS_OK
	.comm	_g_wv,4,2                       ## @g_wv
	.comm	_DSSCL_PRIORITY,4,2             ## @DSSCL_PRIORITY
	.comm	_dma,32,3                       ## @dma
	.comm	_WAVE_FORMAT_PCM,4,2            ## @WAVE_FORMAT_PCM
	.comm	_DSBCAPS_LOCHARDWARE,4,2        ## @DSBCAPS_LOCHARDWARE
	.comm	_DSBCAPS_GETCURRENTPOSITION2,4,2 ## @DSBCAPS_GETCURRENTPOSITION2
	.comm	_SECONDARY_BUFFER_SIZE,4,2      ## @SECONDARY_BUFFER_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"...creating secondary buffer: "

	.comm	_pDSBuf,8,3                     ## @pDSBuf
L_.str.5:                               ## @.str.5
	.asciz	"locked hardware.  ok\n"

	.comm	_DSBCAPS_LOCSOFTWARE,4,2        ## @DSBCAPS_LOCSOFTWARE
L_.str.6:                               ## @.str.6
	.asciz	"forced to software.  ok\n"

	.comm	_DSBPLAY_LOOPING,4,2            ## @DSBPLAY_LOOPING
L_.str.7:                               ## @.str.7
	.asciz	"*** Looped sound play failed ***\n"

L_.str.8:                               ## @.str.8
	.asciz	"*** GetCaps failed ***\n"

	.comm	_gSndBufSize,4,2                ## @gSndBufSize
	.comm	_sample16,4,2                   ## @sample16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function SNDDMA_InitDS
lCPI0_0:
	.long	2                               ; 0x2
	.long	16                              ; 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_SNDDMA_InitDS
	.p2align	2
_SNDDMA_InitDS:                         ; @SNDDMA_InitDS
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
Lloh2:
	adrp	x21, _CLSCTX_INPROC_SERVER@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CLSCTX_INPROC_SERVER@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh4:
	adrp	x0, _CLSID_DirectSound8@GOTPAGE
Lloh5:
	ldr	x0, [x0, _CLSID_DirectSound8@GOTPAGEOFF]
Lloh6:
	adrp	x3, _IID_IDirectSound8@GOTPAGE
Lloh7:
	ldr	x3, [x3, _IID_IDirectSound8@GOTPAGEOFF]
Lloh8:
	adrp	x19, _pDS@GOTPAGE
Lloh9:
	ldr	x19, [x19, _pDS@GOTPAGEOFF]
	mov	x1, #0
	mov	x4, x19
	bl	_CoCreateInstance
	bl	_FAILED
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w2, [x21]
Lloh10:
	adrp	x0, _CLSID_DirectSound@GOTPAGE
Lloh11:
	ldr	x0, [x0, _CLSID_DirectSound@GOTPAGEOFF]
Lloh12:
	adrp	x3, _IID_IDirectSound@GOTPAGE
Lloh13:
	ldr	x3, [x3, _IID_IDirectSound@GOTPAGEOFF]
Lloh14:
	adrp	x4, _pDS@GOTPAGE
Lloh15:
	ldr	x4, [x4, _pDS@GOTPAGEOFF]
	mov	x1, #0
	bl	_CoCreateInstance
	bl	_FAILED
	cbnz	x0, LBB0_16
LBB0_2:
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldr	x8, [x8, #16]
	mov	x1, #0
	blr	x8
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Com_DPrintf
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_Com_DPrintf
Lloh20:
	adrp	x23, _DS_OK@GOTPAGE
Lloh21:
	ldr	x23, [x23, _DS_OK@GOTPAGEOFF]
	ldr	x21, [x23]
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _g_wv@GOTPAGE
Lloh23:
	ldr	x9, [x9, _g_wv@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x9]
Lloh25:
	adrp	x9, _DSSCL_PRIORITY@GOTPAGE
Lloh26:
	ldr	x9, [x9, _DSSCL_PRIORITY@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x9]
	blr	x8
	cmp	x21, x0
	b.ne	LBB0_16
; %bb.3:
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Com_DPrintf
Lloh30:
	adrp	x8, lCPI0_0@PAGE
Lloh31:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
Lloh32:
	adrp	x22, _dma@GOTPAGE
Lloh33:
	ldr	x22, [x22, _dma@GOTPAGEOFF]
	str	d0, [x22]
	mov	w8, #22050
	str	w8, [x22, #8]
	add	x24, sp, #8
	mov	w21, #56
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh34:
	adrp	x8, _WAVE_FORMAT_PCM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _WAVE_FORMAT_PCM@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [sp, #56]
	ldp	w8, w9, [x22]
	stp	w8, w9, [sp, #8]
	ldr	w10, [x22, #8]
	mul	w8, w9, w8
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	stp	w10, w8, [sp, #16]
	str	xzr, [sp, #48]
	mul	w8, w10, w8
	str	w8, [sp, #24]
	sub	x0, x29, #104
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh37:
	adrp	x8, _DSBCAPS_LOCHARDWARE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _DSBCAPS_LOCHARDWARE@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	stur	w21, [x29, #-84]
	stur	w8, [x29, #-76]
	cbnz	x20, LBB0_5
; %bb.4:
Lloh40:
	adrp	x9, _DSBCAPS_GETCURRENTPOSITION2@GOTPAGE
Lloh41:
	ldr	x9, [x9, _DSBCAPS_GETCURRENTPOSITION2@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stur	w8, [x29, #-76]
LBB0_5:
Lloh43:
	adrp	x8, _SECONDARY_BUFFER_SIZE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SECONDARY_BUFFER_SIZE@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	stur	w8, [x29, #-80]
	stur	x24, [x29, #-72]
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	str	w21, [sp, #84]
Lloh46:
	adrp	x0, l_.str.4@PAGE
Lloh47:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_Com_DPrintf
	ldr	x24, [x23]
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
Lloh48:
	adrp	x21, _pDSBuf@GOTPAGE
Lloh49:
	ldr	x21, [x21, _pDSBuf@GOTPAGEOFF]
	sub	x1, x29, #104
	mov	x2, x21
	mov	x3, #0
	blr	x8
	cmp	x24, x0
	b.ne	LBB0_7
; %bb.6:
Lloh50:
	adrp	x0, l_.str.5@PAGE
Lloh51:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_Com_Printf
	b	LBB0_11
LBB0_7:
Lloh52:
	adrp	x8, _DSBCAPS_LOCSOFTWARE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _DSBCAPS_LOCSOFTWARE@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	stur	w8, [x29, #-76]
	cbnz	x20, LBB0_9
; %bb.8:
Lloh55:
	adrp	x9, _DSBCAPS_GETCURRENTPOSITION2@GOTPAGE
Lloh56:
	ldr	x9, [x9, _DSBCAPS_GETCURRENTPOSITION2@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stur	w8, [x29, #-76]
LBB0_9:
	ldr	x20, [x23]
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
Lloh58:
	adrp	x2, _pDSBuf@GOTPAGE
Lloh59:
	ldr	x2, [x2, _pDSBuf@GOTPAGEOFF]
	sub	x1, x29, #104
	mov	x3, #0
	blr	x8
	cmp	x20, x0
	b.ne	LBB0_16
; %bb.10:
Lloh60:
	adrp	x0, l_.str.6@PAGE
Lloh61:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_Com_DPrintf
LBB0_11:
	ldr	x19, [x23]
	ldr	x0, [x21]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh62:
	adrp	x9, _DSBPLAY_LOOPING@GOTPAGE
Lloh63:
	ldr	x9, [x9, _DSBPLAY_LOOPING@GOTPAGEOFF]
Lloh64:
	ldr	w3, [x9]
	mov	w1, #0
	mov	w2, #0
	blr	x8
	cmp	x19, x0
	b.ne	LBB0_19
; %bb.12:
	ldr	x19, [x23]
	ldr	x0, [x21]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	add	x1, sp, #64
	blr	x8
	cmp	x19, x0
	b.ne	LBB0_20
; %bb.13:
	ldr	w8, [sp, #88]
Lloh65:
	adrp	x9, _gSndBufSize@GOTPAGE
Lloh66:
	ldr	x9, [x9, _gSndBufSize@GOTPAGEOFF]
Lloh67:
	str	w8, [x9]
	ldr	w9, [sp, #8]
	str	w9, [x22]
	ldur	d0, [sp, #12]
	stur	d0, [x22, #4]
	fmov	w9, s0
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	sdiv	w8, w8, w9
	mov	w10, #1
	stp	w8, w10, [x22, #12]
	str	xzr, [x22, #24]
	sub	w8, w9, #1
Lloh68:
	adrp	x9, _sample16@GOTPAGE
Lloh69:
	ldr	x9, [x9, _sample16@GOTPAGEOFF]
Lloh70:
	str	w8, [x9]
	bl	_SNDDMA_BeginPainting
	ldr	x0, [x22, #24]
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w8, [x22, #12]
	ldr	w9, [x22, #4]
	mul	w8, w9, w8
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #3
	mov	w1, #0
	bl	_memset
LBB0_15:
	bl	_SNDDMA_Submit
	mov	w0, #1
	b	LBB0_18
LBB0_16:
Lloh71:
	adrp	x0, l_.str.1@PAGE
Lloh72:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_17:
	bl	_Com_Printf
	bl	_SNDDMA_Shutdown
Lloh73:
	adrp	x8, _qfalse@GOTPAGE
Lloh74:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh75:
	ldr	w0, [x8]
LBB0_18:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_19:
Lloh76:
	adrp	x0, l_.str.7@PAGE
Lloh77:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_17
LBB0_20:
Lloh78:
	adrp	x0, l_.str.8@PAGE
Lloh79:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_17
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdr	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotStr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotStr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initializing DirectSound\n"

	.comm	_CLSID_DirectSound8,4,2         ; @CLSID_DirectSound8
	.comm	_CLSCTX_INPROC_SERVER,4,2       ; @CLSCTX_INPROC_SERVER
	.comm	_IID_IDirectSound8,4,2          ; @IID_IDirectSound8
	.comm	_pDS,8,3                        ; @pDS
	.comm	_CLSID_DirectSound,4,2          ; @CLSID_DirectSound
	.comm	_IID_IDirectSound,4,2           ; @IID_IDirectSound
l_.str.1:                               ; @.str.1
	.asciz	"failed\n"

	.comm	_qfalse,4,2                     ; @qfalse
l_.str.2:                               ; @.str.2
	.asciz	"ok\n"

l_.str.3:                               ; @.str.3
	.asciz	"...setting DSSCL_PRIORITY coop level: "

	.comm	_DS_OK,8,3                      ; @DS_OK
	.comm	_g_wv,4,2                       ; @g_wv
	.comm	_DSSCL_PRIORITY,4,2             ; @DSSCL_PRIORITY
	.comm	_dma,32,3                       ; @dma
	.comm	_WAVE_FORMAT_PCM,4,2            ; @WAVE_FORMAT_PCM
	.comm	_DSBCAPS_LOCHARDWARE,4,2        ; @DSBCAPS_LOCHARDWARE
	.comm	_DSBCAPS_GETCURRENTPOSITION2,4,2 ; @DSBCAPS_GETCURRENTPOSITION2
	.comm	_SECONDARY_BUFFER_SIZE,4,2      ; @SECONDARY_BUFFER_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"...creating secondary buffer: "

	.comm	_pDSBuf,8,3                     ; @pDSBuf
l_.str.5:                               ; @.str.5
	.asciz	"locked hardware.  ok\n"

	.comm	_DSBCAPS_LOCSOFTWARE,4,2        ; @DSBCAPS_LOCSOFTWARE
l_.str.6:                               ; @.str.6
	.asciz	"forced to software.  ok\n"

	.comm	_DSBPLAY_LOOPING,4,2            ; @DSBPLAY_LOOPING
l_.str.7:                               ; @.str.7
	.asciz	"*** Looped sound play failed ***\n"

l_.str.8:                               ; @.str.8
	.asciz	"*** GetCaps failed ***\n"

	.comm	_gSndBufSize,4,2                ; @gSndBufSize
	.comm	_sample16,4,2                   ; @sample16
.subsections_via_symbols
