	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_Base_Respatialize            ## -- Begin function S_Base_Respatialize
	.p2align	4, 0x90
_S_Base_Respatialize:                   ## @S_Base_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_s_soundStarted@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.1:
	movq	_s_soundMuted@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_12
## %bb.2:
	movq	%rdx, %rbx
	movq	_listener_number@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	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), %r14
	movq	(%r14), %rax
	movl	(%rax), %esi
	callq	_VectorCopy
	movl	4(%rbx), %edi
	movq	(%r14), %rax
	movl	4(%rax), %esi
	callq	_VectorCopy
	movl	8(%rbx), %edi
	movq	(%r14), %rax
	movl	8(%rax), %esi
	callq	_VectorCopy
	movq	_MAX_CHANNELS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.3:
	movq	_s_channels@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	addq	$20, %rbx
	xorl	%r15d, %r15d
	movq	_loopSounds@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-4(%rbx), %ecx
	movl	%ecx, -8(%rbx)
	movl	%ecx, -12(%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%r15d
	addq	$48, %rbx
	cmpl	%eax, %r15d
	jge	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 20(%rbx)
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 12(%rbx)
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 4(%rbx)
	movq	%rbx, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-20(%rbx), %rax
	shlq	$2, %rax
	addq	(%r12), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %edi
	callq	_VectorCopy
	movl	-4(%rbx), %esi
	leaq	-8(%rbx), %rdx
	leaq	-12(%rbx), %rcx
	callq	_S_SpatializeOrigin
	movl	(%r14), %eax
	jmp	LBB0_10
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	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_Base_Respatialize            ; -- Begin function S_Base_Respatialize
	.p2align	2
_S_Base_Respatialize:                   ; @S_Base_Respatialize
	.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
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, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x2
Lloh6:
	adrp	x8, _listener_number@GOTPAGE
Lloh7:
	ldr	x8, [x8, _listener_number@GOTPAGEOFF]
Lloh8:
	str	w0, [x8]
Lloh9:
	adrp	x8, _listener_origin@GOTPAGE
Lloh10:
	ldr	x8, [x8, _listener_origin@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	x0, x1
	mov	x1, x8
	bl	_VectorCopy
	ldr	w0, [x19]
Lloh12:
	adrp	x20, _listener_axis@GOTPAGE
Lloh13:
	ldr	x20, [x20, _listener_axis@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w1, [x8]
	bl	_VectorCopy
	ldr	w0, [x19, #4]
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
	bl	_VectorCopy
	ldr	w0, [x19, #8]
	ldr	x8, [x20]
	ldr	w1, [x8, #8]
	bl	_VectorCopy
Lloh14:
	adrp	x19, _MAX_CHANNELS@GOTPAGE
Lloh15:
	ldr	x19, [x19, _MAX_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	mov	w20, #0
Lloh16:
	adrp	x9, _s_channels@GOTPAGE
Lloh17:
	ldr	x9, [x9, _s_channels@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x21, x9, #20
Lloh19:
	adrp	x22, _loopSounds@GOTPAGE
Lloh20:
	ldr	x22, [x22, _loopSounds@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldur	w9, [x21, #-4]
	stp	w9, w9, [x21, #-12]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, #1
	add	x21, x21, #48
	cmp	w20, w8
	b.ge	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x21, #20]
	cbz	w9, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	x9, [x21, #12]
	cbnz	x9, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	x9, [x21, #4]
	mov	x8, x21
	cbnz	x9, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldur	x9, [x21, #-20]
	add	x8, x8, x9, lsl #2
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x8]
	bl	_VectorCopy
	ldur	w1, [x21, #-4]
	sub	x2, x21, #8
	sub	x3, x21, #12
	bl	_S_SpatializeOrigin
	ldr	w8, [x19]
	b	LBB0_5
LBB0_11:
	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
	b	_S_AddLoopSounds
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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
