	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_Respatialize                 ## -- Begin function S_Respatialize
	.p2align	4, 0x90
_S_Respatialize:                        ## @S_Respatialize
	.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	_s_soundStarted@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.1:
	movq	_s_soundMuted@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_10
## %bb.2:
	movq	%rdx, %rbx
	movq	_listener_number@GOTPCREL(%rip), %r14
	movl	%edi, (%r14)
	movq	_listener_origin@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%esi, %edi
	movl	%eax, %esi
	callq	_VectorCopy
	movl	(%rbx), %edi
	movq	_listener_axis@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %esi
	callq	_VectorCopy
	movl	4(%rbx), %edi
	movq	(%r15), %rax
	movl	4(%rax), %esi
	callq	_VectorCopy
	movl	8(%rbx), %edi
	movq	(%r15), %rax
	movl	8(%rax), %esi
	callq	_VectorCopy
	movq	_MAX_CHANNELS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.3:
	movq	_s_channels@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	addq	$16, %rbx
	xorl	%r12d, %r12d
	movq	_loopSounds@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	shlq	$2, %rcx
	addq	(%r13), %rcx
	cmpq	$0, 8(%rbx)
	cmovneq	%rbx, %rcx
	movl	(%rcx), %edi
	callq	_VectorCopy
	movl	-4(%rbx), %esi
	leaq	-8(%rbx), %rdx
	leaq	-12(%rbx), %rcx
	callq	_S_SpatializeOrigin
	movl	(%r15), %eax
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r12d
	addq	$40, %rbx
	cmpl	%eax, %r12d
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 16(%rbx)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	-16(%rbx), %rcx
	cmpl	(%r14), %ecx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-4(%rbx), %ecx
	movl	%ecx, -8(%rbx)
	movl	%ecx, -12(%rbx)
	jmp	LBB0_8
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_S_AddLoopSounds                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_s_soundStarted,4,2             ## @s_soundStarted
	.comm	_s_soundMuted,8,3               ## @s_soundMuted
	.comm	_listener_number,4,2            ## @listener_number
	.comm	_listener_origin,4,2            ## @listener_origin
	.comm	_listener_axis,8,3              ## @listener_axis
	.comm	_s_channels,8,3                 ## @s_channels
	.comm	_MAX_CHANNELS,4,2               ## @MAX_CHANNELS
	.comm	_loopSounds,8,3                 ## @loopSounds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_Respatialize                 ; -- Begin function S_Respatialize
	.p2align	2
_S_Respatialize:                        ; @S_Respatialize
	.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
Lloh0:
	adrp	x8, _s_soundStarted@GOTPAGE
Lloh1:
	ldr	x8, [x8, _s_soundStarted@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _s_soundMuted@GOTPAGE
Lloh4:
	ldr	x9, [x9, _s_soundMuted@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x19, x2
Lloh6:
	adrp	x20, _listener_number@GOTPAGE
Lloh7:
	ldr	x20, [x20, _listener_number@GOTPAGEOFF]
	str	w0, [x20]
Lloh8:
	adrp	x8, _listener_origin@GOTPAGE
Lloh9:
	ldr	x8, [x8, _listener_origin@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	x0, x1
	mov	x1, x8
	bl	_VectorCopy
	ldr	w0, [x19]
Lloh11:
	adrp	x21, _listener_axis@GOTPAGE
Lloh12:
	ldr	x21, [x21, _listener_axis@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w1, [x8]
	bl	_VectorCopy
	ldr	w0, [x19, #4]
	ldr	x8, [x21]
	ldr	w1, [x8, #4]
	bl	_VectorCopy
	ldr	w0, [x19, #8]
	ldr	x8, [x21]
	ldr	w1, [x8, #8]
	bl	_VectorCopy
Lloh13:
	adrp	x19, _MAX_CHANNELS@GOTPAGE
Lloh14:
	ldr	x19, [x19, _MAX_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	w21, #0
Lloh15:
	adrp	x9, _s_channels@GOTPAGE
Lloh16:
	ldr	x9, [x9, _s_channels@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x22, x9, #16
Lloh18:
	adrp	x23, _loopSounds@GOTPAGE
Lloh19:
	ldr	x23, [x23, _loopSounds@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22, #8]
	ldr	x10, [x23]
	add	x9, x10, x9, lsl #2
	cmp	x8, #0
	csel	x8, x9, x22, eq
	ldr	w0, [x8]
	bl	_VectorCopy
	ldur	w1, [x22, #-4]
	sub	x2, x22, #8
	sub	x3, x22, #12
	bl	_S_SpatializeOrigin
	ldr	w8, [x19]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w21, w21, #1
	add	x22, x22, #40
	cmp	w21, w8
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22, #16]
	cbz	w9, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldursw	x9, [x22, #-16]
	ldr	w10, [x20]
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	w9, [x22, #-4]
	stp	w9, w9, [x22, #-12]
	b	LBB0_5
LBB0_9:
	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
	b	_S_AddLoopSounds
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_s_soundStarted,4,2             ; @s_soundStarted
	.comm	_s_soundMuted,8,3               ; @s_soundMuted
	.comm	_listener_number,4,2            ; @listener_number
	.comm	_listener_origin,4,2            ; @listener_origin
	.comm	_listener_axis,8,3              ; @listener_axis
	.comm	_s_channels,8,3                 ; @s_channels
	.comm	_MAX_CHANNELS,4,2               ; @MAX_CHANNELS
	.comm	_loopSounds,8,3                 ; @loopSounds
.subsections_via_symbols
