	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function IDirectSound3DListenerImpl_Create
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_IDirectSound3DListenerImpl_Create
	.p2align	4, 0x90
_IDirectSound3DListenerImpl_Create:     ## @IDirectSound3DListenerImpl_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	_ds3dlvt@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	%rbx, (%r15)
	movl	$4, 8(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movups	%xmm0, 72(%rbx)
	movups	%xmm0, 88(%rbx)
	movups	%xmm0, 104(%rbx)
	movabsq	$4607182418800017408, %rax      ## imm = 0x3FF0000000000000
	movhps	LCPI0_0(%rip), %xmm0            ## xmm0 = xmm0[0,1],mem[0,1]
	movq	%rax, 64(%rbx)
	movups	%xmm0, 24(%rbx)
	movq	$0, 40(%rbx)
	movq	_DS3D_DEFAULTDISTANCEFACTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_DS3D_DEFAULTROLLOFFFACTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_DS3D_DEFAULTDOPPLERFACTOR@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	_ds3dlvt,4,2                    ## @ds3dlvt
	.comm	_DS3D_DEFAULTDISTANCEFACTOR,4,2 ## @DS3D_DEFAULTDISTANCEFACTOR
	.comm	_DS3D_DEFAULTROLLOFFFACTOR,4,2  ## @DS3D_DEFAULTROLLOFFFACTOR
	.comm	_DS3D_DEFAULTDOPPLERFACTOR,4,2  ## @DS3D_DEFAULTDOPPLERFACTOR
	.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
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function IDirectSound3DListenerImpl_Create
lCPI0_0:
	.quad	0x0000000000000000              ; double 0
	.quad	0x3ff0000000000000              ; double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_IDirectSound3DListenerImpl_Create
	.p2align	2
_IDirectSound3DListenerImpl_Create:     ; @IDirectSound3DListenerImpl_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, _ds3dlvt@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ds3dlvt@GOTPAGEOFF]
	stp	x20, x8, [x21]
	mov	w8, #4
	movi.2d	v0, #0000000000000000
	stur	q0, [x20, #72]
	stur	q0, [x20, #88]
	stur	q0, [x20, #104]
	mov	x9, #4607182418800017408
	stp	xzr, x9, [x20, #56]
Lloh7:
	adrp	x9, lCPI0_0@PAGE
Lloh8:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	stur	q0, [x20, #24]
Lloh9:
	adrp	x9, _DS3D_DEFAULTDISTANCEFACTOR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DS3D_DEFAULTDISTANCEFACTOR@GOTPAGEOFF]
	stp	xzr, xzr, [x20, #40]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _DS3D_DEFAULTROLLOFFFACTOR@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DS3D_DEFAULTROLLOFFFACTOR@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	stp	w10, w9, [x20, #16]
Lloh15:
	adrp	x9, _DS3D_DEFAULTDOPPLERFACTOR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DS3D_DEFAULTDOPPLERFACTOR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w8, w9, [x20, #8]
Lloh18:
	adrp	x8, _TRUE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh21:
	adrp	x8, _S_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
Lloh25:
	adrp	x8, _DSERR_OUTOFMEMORY@GOTPAGE
Lloh26:
	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	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdrp	Lloh7, Lloh9
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.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	_ds3dlvt,4,2                    ; @ds3dlvt
	.comm	_DS3D_DEFAULTDISTANCEFACTOR,4,2 ; @DS3D_DEFAULTDISTANCEFACTOR
	.comm	_DS3D_DEFAULTROLLOFFFACTOR,4,2  ; @DS3D_DEFAULTROLLOFFFACTOR
	.comm	_DS3D_DEFAULTDOPPLERFACTOR,4,2  ; @DS3D_DEFAULTDOPPLERFACTOR
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_S_OK,4,2                       ; @S_OK
.subsections_via_symbols
