	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NewDirectSoundNotify           ## -- Begin function NewDirectSoundNotify
	.p2align	4, 0x90
_NewDirectSoundNotify:                  ## @NewDirectSoundNotify
	.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
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rcx
	addq	$8, %rcx
	movq	_vt_DirectSoundNotify@GOTPCREL(%rip), %rdx
	movq	%rdx, 8(%rax)
	movq	%rbx, 48(%rax)
	movq	%r13, 40(%rax)
	movl	%r12d, 32(%rax)
	movl	$1, (%rax)
	movq	$0, 24(%rax)
	movl	%r14d, 16(%rax)
	movq	%rcx, (%r15)
	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	_DSERR_OUTOFMEMORY,4,2          ## @DSERR_OUTOFMEMORY
	.comm	_vt_DirectSoundNotify,4,2       ## @vt_DirectSoundNotify
	.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
	.globl	_NewDirectSoundNotify           ; -- Begin function NewDirectSoundNotify
	.p2align	2
_NewDirectSoundNotify:                  ; @NewDirectSoundNotify
	.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	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	bl	_GetProcessHeap
	mov	w1, #0
	mov	w2, #4
	bl	_HeapAlloc
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _vt_DirectSoundNotify@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vt_DirectSoundNotify@GOTPAGEOFF]
	mov	x9, x0
	str	x8, [x9, #8]!
	stp	x22, x23, [x0, #40]
	str	w21, [x0, #32]
	mov	w8, #1
	str	w8, [x0]
	str	xzr, [x0, #24]
	str	w19, [x0, #16]
	str	x9, [x20]
Lloh2:
	adrp	x8, _DS_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DS_OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _DSERR_OUTOFMEMORY@GOTPAGE
Lloh5:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DSERR_OUTOFMEMORY,4,2          ; @DSERR_OUTOFMEMORY
	.comm	_vt_DirectSoundNotify,4,2       ; @vt_DirectSoundNotify
	.comm	_DS_OK,4,2                      ; @DS_OK
.subsections_via_symbols
