	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IDirectSound3DBufferImpl_Create ## -- Begin function IDirectSound3DBufferImpl_Create
	.p2align	4, 0x90
_IDirectSound3DBufferImpl_Create:       ## @IDirectSound3DBufferImpl_Create
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_TRACE
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	$24, %edx
	callq	_HeapAlloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	$0, 16(%r15)
	movq	%rbx, (%r15)
	movq	_ds3dbvt@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movl	$4, 8(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%rbx)
	movups	%xmm0, 88(%rbx)
	movups	%xmm0, 104(%rbx)
	movq	_DS3D_DEFAULTCONEANGLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%rbx)
	movq	%rax, 56(%rbx)
	movups	%xmm0, 32(%rbx)
	movq	$0, 48(%rbx)
	movq	_DS3D_DEFAULTCONEOUTSIDEVOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_DS3D_DEFAULTMINDISTANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_DS3D_DEFAULTMAXDISTANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_DS3DMODE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	movq	_DSERR_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_3:
	movq	%r15, (%r14)
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%p,%p)\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"out of memory\n"

	.comm	_DSERR_OUTOFMEMORY,4,2          ## @DSERR_OUTOFMEMORY
	.comm	_ds3dbvt,4,2                    ## @ds3dbvt
	.comm	_DS3D_DEFAULTCONEANGLE,8,3      ## @DS3D_DEFAULTCONEANGLE
	.comm	_DS3D_DEFAULTCONEOUTSIDEVOLUME,4,2 ## @DS3D_DEFAULTCONEOUTSIDEVOLUME
	.comm	_DS3D_DEFAULTMINDISTANCE,4,2    ## @DS3D_DEFAULTMINDISTANCE
	.comm	_DS3D_DEFAULTMAXDISTANCE,4,2    ## @DS3D_DEFAULTMAXDISTANCE
	.comm	_DS3DMODE_NORMAL,4,2            ## @DS3DMODE_NORMAL
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_S_OK,4,2                       ## @S_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IDirectSound3DBufferImpl_Create ; -- Begin function IDirectSound3DBufferImpl_Create
	.p2align	2
_IDirectSound3DBufferImpl_Create:       ; @IDirectSound3DBufferImpl_Create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_TRACE
	bl	_GetProcessHeap
Lloh2:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #24
	bl	_HeapAlloc
	mov	x21, x0
	cbz	x0, LBB0_2
; %bb.1:
	str	xzr, [x21, #16]
Lloh5:
	adrp	x8, _ds3dbvt@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ds3dbvt@GOTPAGEOFF]
	stp	x20, x8, [x21]
	mov	w8, #4
	movi.2d	v0, #0000000000000000
	stur	q0, [x20, #104]
	stur	q0, [x20, #88]
Lloh7:
	adrp	x9, _DS3D_DEFAULTCONEANGLE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DS3D_DEFAULTCONEANGLE@GOTPAGEOFF]
	stur	q0, [x20, #72]
Lloh9:
	ldr	x9, [x9]
	stp	x9, x9, [x20, #56]
	stp	xzr, xzr, [x20, #40]
	str	xzr, [x20, #32]
Lloh10:
	adrp	x9, _DS3D_DEFAULTCONEOUTSIDEVOLUME@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DS3D_DEFAULTCONEOUTSIDEVOLUME@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _DS3D_DEFAULTMINDISTANCE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _DS3D_DEFAULTMINDISTANCE@GOTPAGEOFF]
	str	w9, [x20, #24]
Lloh15:
	ldr	w9, [x10]
Lloh16:
	adrp	x10, _DS3D_DEFAULTMAXDISTANCE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _DS3D_DEFAULTMAXDISTANCE@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	stp	w10, w9, [x20, #16]
Lloh19:
	adrp	x9, _DS3DMODE_NORMAL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DS3DMODE_NORMAL@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w8, w9, [x20, #8]
Lloh22:
	adrp	x8, _TRUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh25:
	adrp	x8, _S_OK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
Lloh29:
	adrp	x8, _DSERR_OUTOFMEMORY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DSERR_OUTOFMEMORY@GOTPAGEOFF]
LBB0_3:
	str	x21, [x19]
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%p,%p)\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"out of memory\n"

	.comm	_DSERR_OUTOFMEMORY,4,2          ; @DSERR_OUTOFMEMORY
	.comm	_ds3dbvt,4,2                    ; @ds3dbvt
	.comm	_DS3D_DEFAULTCONEANGLE,8,3      ; @DS3D_DEFAULTCONEANGLE
	.comm	_DS3D_DEFAULTCONEOUTSIDEVOLUME,4,2 ; @DS3D_DEFAULTCONEOUTSIDEVOLUME
	.comm	_DS3D_DEFAULTMINDISTANCE,4,2    ; @DS3D_DEFAULTMINDISTANCE
	.comm	_DS3D_DEFAULTMAXDISTANCE,4,2    ; @DS3D_DEFAULTMAXDISTANCE
	.comm	_DS3DMODE_NORMAL,4,2            ; @DS3DMODE_NORMAL
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_S_OK,4,2                       ; @S_OK
.subsections_via_symbols
