	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function S_AddLoopingSound
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_2:
	.long	0x42c80000                      ## float 100
LCPI0_3:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_S_AddLoopingSound
	.p2align	4, 0x90
_S_AddLoopingSound:                     ## @S_AddLoopingSound
	.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_15
## %bb.1:
	movq	_s_soundMuted@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_15
## %bb.2:
	movq	%rcx, %rbx
	movq	_s_numSfx@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jbe	LBB0_16
## %bb.3:
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %r13d
	movq	_s_knownSfx@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	shlq	$4, %rbx
	leaq	(%r14,%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14,%rbx), %rax
	movq	_qfalse@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_S_memoryLoad
LBB0_5:
	cmpl	$0, 12(%r14,%rbx)
	jne	LBB0_7
## %bb.6:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14,%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_Com_Error
LBB0_7:
	movq	_loopSounds@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movslq	%r13d, %rbx
	shlq	$6, %rbx
	movl	32(%rax,%rbx), %esi
	movl	%r12d, %edi
	callq	_VectorCopy
	movq	(%r14), %rax
	movl	36(%rax,%rbx), %esi
	movl	%r15d, %edi
	callq	_VectorCopy
	movq	_qtrue@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%r14), %rcx
	movq	%rax, 56(%rcx,%rbx)
	movq	(%r12), %rax
	movq	(%r14), %rcx
	movq	%rax, 48(%rcx,%rbx)
	movq	_qfalse@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%r14), %rcx
	movq	%rax, 24(%rcx,%rbx)
	movq	(%r14), %rax
	movapd	LCPI0_0(%rip), %xmm0            ## xmm0 = [1.0E+0,1.0E+0]
	movupd	%xmm0, (%rax,%rbx)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 40(%rax,%rbx)
	movq	_s_doppler@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.8:
	movl	%r15d, %edi
	callq	_VectorLengthSquared
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_14
## %bb.9:
	movq	(%r12), %rax
	movq	(%r14), %rcx
	movq	%rax, 24(%rcx,%rbx)
	movq	(%r14), %rax
	movq	_listener_number@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	shlq	$6, %rcx
	movl	32(%rax,%rcx), %edi
	movl	32(%rax,%rbx), %esi
	callq	_DistanceSquared
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movq	(%r14), %rax
	movl	32(%rax,%rbx), %edi
	movl	36(%rax,%rbx), %esi
	callq	_VectorAdd
	movq	(%r14), %rax
	movq	(%r15), %rcx
	shlq	$6, %rcx
	movl	32(%rax,%rcx), %edi
	callq	_DistanceSquared
	movq	(%r14), %rax
	movq	16(%rax,%rbx), %rcx
	incq	%rcx
	movq	_cls@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.11:
	movsd	8(%rax,%rbx), %xmm1             ## xmm1 = mem[0],zero
	jmp	LBB0_12
LBB0_16:
	movq	_S_COLOR_YELLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_10:
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
LBB0_12:
	movsd	%xmm1, (%rax,%rbx)
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	LCPI0_2(%rip), %xmm1
	divss	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	cvtss2sd	%xmm0, %xmm1
	movsd	%xmm1, 8(%rax,%rbx)
	movss	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jb	LBB0_14
## %bb.13:
	movq	(%r13), %rcx
	movq	%rcx, 24(%rax,%rbx)
LBB0_14:
	movq	_cls@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	%rax, 16(%rcx,%rbx)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s_soundStarted,4,2             ## @s_soundStarted
	.comm	_s_soundMuted,8,3               ## @s_soundMuted
	.comm	_s_numSfx,8,3                   ## @s_numSfx
	.comm	_S_COLOR_YELLOW,4,2             ## @S_COLOR_YELLOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S_AddLoopingSound: handle %i out of range\n"

	.comm	_s_knownSfx,8,3                 ## @s_knownSfx
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
L_.str.1:                               ## @.str.1
	.asciz	"%s has length 0"

	.comm	_loopSounds,8,3                 ## @loopSounds
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_s_doppler,8,3                  ## @s_doppler
	.comm	_listener_number,8,3            ## @listener_number
	.comm	_cls,8,3                        ## @cls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_AddLoopingSound              ; -- Begin function S_AddLoopingSound
	.p2align	2
_S_AddLoopingSound:                     ; @S_AddLoopingSound
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
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.ne	LBB0_13
; %bb.1:
	mov	x23, x3
Lloh6:
	adrp	x8, _s_numSfx@GOTPAGE
Lloh7:
	ldr	x8, [x8, _s_numSfx@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x3
	b.ls	LBB0_14
; %bb.2:
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh9:
	adrp	x8, _s_knownSfx@GOTPAGE
Lloh10:
	ldr	x8, [x8, _s_knownSfx@GOTPAGEOFF]
Lloh11:
	ldr	x25, [x8]
	add	x20, x25, x23, lsl #4
	ldr	x8, [x20]
Lloh12:
	adrp	x24, _qfalse@GOTPAGE
Lloh13:
	ldr	x24, [x24, _qfalse@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_S_memoryLoad
LBB0_4:
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x8, x25, x23, lsl #4
	ldr	w2, [x8, #8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Com_Error
LBB0_6:
Lloh19:
	adrp	x23, _loopSounds@GOTPAGE
Lloh20:
	ldr	x23, [x23, _loopSounds@GOTPAGEOFF]
	ldr	x8, [x23]
	sxtw	x25, w22
	sbfiz	x22, x22, #6, #32
	add	x8, x8, x22
	ldr	w1, [x8, #32]
	mov	x0, x21
	bl	_VectorCopy
	ldr	x8, [x23]
	add	x8, x8, x22
	ldr	w1, [x8, #36]
	mov	x0, x19
	bl	_VectorCopy
Lloh21:
	adrp	x21, _qtrue@GOTPAGE
Lloh22:
	ldr	x21, [x21, _qtrue@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x23]
	add	x9, x9, x22
	str	x8, [x9, #56]
	ldr	x8, [x21]
	ldr	x9, [x23]
	add	x9, x9, x22
	str	x8, [x9, #48]
	ldr	x8, [x24]
	ldr	x9, [x23]
	add	x9, x9, x22
	str	x8, [x9, #24]
	ldr	x8, [x23]
	add	x8, x8, x22
	fmov.2d	v0, #1.00000000
	str	q0, [x8]
	str	x20, [x8, #40]
Lloh23:
	adrp	x8, _s_doppler@GOTPAGE
Lloh24:
	ldr	x8, [x8, _s_doppler@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh26:
	adrp	x20, _cls@GOTPAGE
Lloh27:
	ldr	x20, [x20, _cls@GOTPAGEOFF]
	cbz	x8, LBB0_12
; %bb.7:
	mov	x0, x19
	bl	_VectorLengthSquared
	fcmp	d0, #0.0
	b.le	LBB0_12
; %bb.8:
	ldr	x8, [x21]
	ldr	x9, [x23]
	lsl	x19, x25, #6
	add	x9, x9, x19
	str	x8, [x9, #24]
Lloh28:
	adrp	x21, _listener_number@GOTPAGE
Lloh29:
	ldr	x21, [x21, _listener_number@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x21]
	add	x9, x8, x9, lsl #6
	ldr	w0, [x9, #32]
	add	x8, x8, x19
	ldr	w1, [x8, #32]
	bl	_DistanceSquared
	fmov	s8, s0
	ldr	x8, [x23]
	add	x8, x8, x19
	ldp	w0, w1, [x8, #32]
	bl	_VectorAdd
	ldr	x8, [x23]
	ldr	x9, [x21]
	add	x8, x8, x9, lsl #6
	ldr	w0, [x8, #32]
	bl	_DistanceSquared
	ldr	x8, [x23]
	add	x9, x8, x19
	ldr	x9, [x9, #16]
	add	x9, x9, #1
	ldr	x10, [x20]
	fmov	d1, #1.00000000
	cmp	x9, x10
	b.ne	LBB0_10
; %bb.9:
	add	x9, x8, x25, lsl #6
	ldr	d1, [x9, #8]
LBB0_10:
	add	x8, x8, x25, lsl #6
	mov	w9, #1120403456
	fmov	s2, w9
	fmul	s2, s8, s2
	fdiv	s0, s0, s2
	fcvt	d2, s0
	stp	d1, d2, [x8]
	fmov	s1, #1.00000000
	fcmp	s0, s1
	b.hi	LBB0_12
; %bb.11:
	ldr	x9, [x24]
	str	x9, [x8, #24]
LBB0_12:
	ldr	x8, [x20]
	ldr	x9, [x23]
	add	x9, x9, x25, lsl #6
	str	x8, [x9, #16]
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh30:
	adrp	x8, _S_COLOR_YELLOW@GOTPAGE
Lloh31:
	ldr	x8, [x8, _S_COLOR_YELLOW@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	b	_Com_Printf
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_s_soundStarted,4,2             ; @s_soundStarted
	.comm	_s_soundMuted,8,3               ; @s_soundMuted
	.comm	_s_numSfx,8,3                   ; @s_numSfx
	.comm	_S_COLOR_YELLOW,4,2             ; @S_COLOR_YELLOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S_AddLoopingSound: handle %i out of range\n"

	.comm	_s_knownSfx,8,3                 ; @s_knownSfx
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
l_.str.1:                               ; @.str.1
	.asciz	"%s has length 0"

	.comm	_loopSounds,8,3                 ; @loopSounds
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_s_doppler,8,3                  ; @s_doppler
	.comm	_listener_number,8,3            ; @listener_number
	.comm	_cls,8,3                        ; @cls
.subsections_via_symbols
