	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function NewPrimarySoundBuffer
LCPI0_0:
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	44100                           ## 0xac44
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_NewPrimarySoundBuffer
	.p2align	4, 0x90
_NewPrimarySoundBuffer:                 ## @NewPrimarySoundBuffer
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$1, (%rax)
	leaq	8(%rax), %r13
	movq	_vt_DirectSoundBuffer8@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movl	%ebx, 88(%rax)
	movq	%r12, 80(%rax)
	movq	%r15, 72(%rax)
	movq	$0, 64(%rax)
	movq	_DSBVOLUME_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 60(%rax)
	movq	_DSBPAN_CENTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%rax)
	movq	$0, 48(%rax)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4,2,44100,16]
	movups	%xmm0, 20(%rax)
	movq	_WAVE_FORMAT_PCM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rax)
	movabsq	$757632231014404, %rcx          ## imm = 0x2B11000000004
	movq	%rcx, 36(%rax)
	addq	$16, %rax
	movq	%rax, %rdi
	callq	_InitializeCriticalSection
	movq	%r13, (%r14)
	movq	_DS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DSERR_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_DSERR_OUTOFMEMORY,4,2          ## @DSERR_OUTOFMEMORY
	.comm	_vt_DirectSoundBuffer8,4,2      ## @vt_DirectSoundBuffer8
	.comm	_DSBVOLUME_MAX,4,2              ## @DSBVOLUME_MAX
	.comm	_DSBPAN_CENTER,4,2              ## @DSBPAN_CENTER
	.comm	_WAVE_FORMAT_PCM,4,2            ## @WAVE_FORMAT_PCM
	.comm	_DS_OK,4,2                      ## @DS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function NewPrimarySoundBuffer
lCPI0_0:
	.long	4                               ; 0x4
	.long	2                               ; 0x2
	.long	44100                           ; 0xac44
	.long	16                              ; 0x10
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	4                               ; 0x4
	.long	176400                          ; 0x2b110
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_NewPrimarySoundBuffer
	.p2align	2
_NewPrimarySoundBuffer:                 ; @NewPrimarySoundBuffer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_GetProcessHeap
Lloh0:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_HeapAlloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x0]
Lloh3:
	adrp	x8, _vt_DirectSoundBuffer8@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vt_DirectSoundBuffer8@GOTPAGEOFF]
	mov	x23, x0
	str	x8, [x23, #8]!
	str	w22, [x0, #88]
	stp	x20, x21, [x0, #72]
	str	xzr, [x0, #64]
Lloh5:
	adrp	x8, _DSBVOLUME_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DSBVOLUME_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _DSBPAN_CENTER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DSBPAN_CENTER@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #56]
	str	xzr, [x0, #48]
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x0, #20]
Lloh13:
	adrp	x8, _WAVE_FORMAT_PCM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WAVE_FORMAT_PCM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x0, #44]
Lloh16:
	adrp	x8, lCPI0_1@PAGE
Lloh17:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	add	x8, x0, #16
	stur	d0, [x0, #36]
	mov	x0, x8
	bl	_InitializeCriticalSection
	str	x23, [x19]
Lloh18:
	adrp	x8, _DS_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DS_OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh20:
	adrp	x8, _DSERR_OUTOFMEMORY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DSERR_OUTOFMEMORY@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdrp	Lloh11, Lloh13
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_DSERR_OUTOFMEMORY,4,2          ; @DSERR_OUTOFMEMORY
	.comm	_vt_DirectSoundBuffer8,4,2      ; @vt_DirectSoundBuffer8
	.comm	_DSBVOLUME_MAX,4,2              ; @DSBVOLUME_MAX
	.comm	_DSBPAN_CENTER,4,2              ; @DSBPAN_CENTER
	.comm	_WAVE_FORMAT_PCM,4,2            ; @WAVE_FORMAT_PCM
	.comm	_DS_OK,4,2                      ; @DS_OK
.subsections_via_symbols
