	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_AddRealLoopingSound          ## -- Begin function S_AddRealLoopingSound
	.p2align	4, 0x90
_S_AddRealLoopingSound:                 ## @S_AddRealLoopingSound
	.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_8
## %bb.1:
	movq	_s_soundMuted@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_8
## %bb.2:
	movq	%rcx, %rbx
	movq	_s_numSfx@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jbe	LBB0_9
## %bb.3:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	_s_knownSfx@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	shlq	$4, %rbx
	leaq	(%rbx,%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r13,%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(%r13,%rbx)
	jne	LBB0_7
## %bb.6:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r13,%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_Com_Error
LBB0_7:
	movq	_loopSounds@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movslq	%r12d, %rcx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,4), %rbx
	movl	36(%rax,%rbx), %esi
	movl	%r15d, %edi
	callq	_VectorCopy
	movq	(%r13), %rax
	movl	32(%rax,%rbx), %esi
	movl	%r14d, %edi
	callq	_VectorCopy
	movq	(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 24(%rax,%rbx)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r13), %rcx
	movl	%eax, 16(%rcx,%rbx)
	movq	_qfalse@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movq	%rax, 8(%rcx,%rbx)
	movq	(%rdx), %rax
	movq	%rax, (%rcx,%rbx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	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
	.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_AddRealLoopingSound: 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,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_AddRealLoopingSound          ; -- Begin function S_AddRealLoopingSound
	.p2align	2
_S_AddRealLoopingSound:                 ; @S_AddRealLoopingSound
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
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_7
; %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_8
; %bb.2:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh9:
	adrp	x8, _s_knownSfx@GOTPAGE
Lloh10:
	ldr	x8, [x8, _s_knownSfx@GOTPAGEOFF]
Lloh11:
	ldr	x25, [x8]
	add	x22, x25, x23, lsl #4
	ldr	x8, [x22]
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, x22
	bl	_S_memoryLoad
LBB0_4:
	ldr	w8, [x22, #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]
	mov	w25, #40
	smaddl	x8, w19, w25, x8
	ldr	w1, [x8, #36]
	mov	x0, x21
	bl	_VectorCopy
	ldr	x8, [x23]
	smaddl	x8, w19, w25, x8
	ldr	w1, [x8, #32]
	mov	x0, x20
	bl	_VectorCopy
	ldr	x8, [x23]
	smaddl	x8, w19, w25, x8
	str	x22, [x8, #24]
Lloh21:
	adrp	x8, _qtrue@GOTPAGE
Lloh22:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	x9, [x23]
	smaddl	x9, w19, w25, x9
	str	w8, [x9, #16]
	ldr	x8, [x24]
	str	x8, [x9, #8]
	ldr	x8, [x24]
	str	x8, [x9]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh24:
	adrp	x8, _S_COLOR_YELLOW@GOTPAGE
Lloh25:
	ldr	x8, [x8, _S_COLOR_YELLOW@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 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 AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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_AddRealLoopingSound: 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,4,2                      ; @qtrue
.subsections_via_symbols
