	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_StartSound                   ## -- Begin function S_StartSound
	.p2align	4, 0x90
_S_StartSound:                          ## @S_StartSound
	.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
	subq	$40, %rsp
	.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_67
## %bb.1:
	movq	_s_soundMuted@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_67
## %bb.2:
	movq	%rcx, %r12
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %rcx
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.3:
	testl	%r13d, %r13d
	js	LBB0_5
## %bb.4:
	movq	_MAX_GENTITIES@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jge	LBB0_6
LBB0_5:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movq	%rcx, %r14
	callq	_Com_Error
	movq	%r14, %rcx
LBB0_6:
	movq	_s_numSfx@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jbe	LBB0_68
## %bb.7:
	movq	_s_knownSfx@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	shlq	$4, %r12
	leaq	(%rdx,%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdx,%r12), %rax
	movq	_qfalse@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rcx, %r14
	callq	_S_memoryLoad
	movq	%r14, %rcx
LBB0_9:
	movl	%ebx, %r15d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	_s_show@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$1, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	_s_paintedtime@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax,%r12), %edx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_Com_Printf
LBB0_11:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_Com_Milliseconds
	movq	_listener_number@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	%r13d, (%rcx)
	sete	%sil
	movq	_MAX_CHANNELS@GOTPCREL(%rip), %r10
	movl	(%r10), %ecx
	testl	%ecx, %ecx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%r15d, %r9d
	jle	LBB0_19
## %bb.12:
	movb	%sil, %dl
	leal	4(,%rdx,4), %r8d
	movq	_s_channels@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	shlq	$6, %rcx
	xorl	%edi, %edi
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	$64, %rdi
	cmpq	%rdi, %rcx
	je	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r13d, (%rsi,%rdi,2)
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	%rbx, 40(%rsi,%rdi,2)
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%eax, %edx
	subl	4(%rsi,%rdi,2), %edx
	cmpl	$50, %edx
	jl	LBB0_67
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	incl	%r14d
	jmp	LBB0_17
LBB0_68:
	movq	_S_COLOR_YELLOW@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_18:
	cmpl	%r8d, %r14d
	jg	LBB0_67
LBB0_19:
	movq	%r10, %r15
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 8(%rbx,%r12)
	xorl	%eax, %eax
	callq	_S_ChannelMalloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_63
## %bb.20:
	movl	(%r15), %r9d
	testl	%r9d, %r9d
	movq	_listener_number@GOTPCREL(%rip), %r11
	jle	LBB0_69
## %bb.21:
	leaq	(%rbx,%r12), %rax
	addq	$8, %rax
	movq	_s_channels@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	movl	(%rax), %r15d
	movl	(%r11), %ecx
	movq	_CHAN_ANNOUNCER@GOTPCREL(%rip), %r8
	movl	(%r8), %ebx
	leaq	8(%r10), %rax
	xorl	%edx, %edx
	movl	$-1, %r12d
	movl	%r15d, %edi
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=1
	incl	%edx
	addq	$64, %rax
	cmpl	%edx, %r9d
	je	LBB0_27
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	-8(%rax), %esi
	cmpl	%r13d, %esi
	jne	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpl	%ecx, %esi
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	-4(%rax), %esi
	cmpl	%edi, %esi
	jge	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpl	%ebx, (%rax)
	cmovnel	%esi, %edi
	cmovnel	%edx, %r12d
	jmp	LBB0_26
LBB0_27:
	cmpl	$-1, %r12d
	jne	LBB0_62
## %bb.28:
	movl	(%r11), %ecx
	movl	(%r8), %r11d
	movl	%r9d, %r8d
	decl	%r8d
	je	LBB0_29
## %bb.30:
	movl	%r9d, %r14d
	andl	$-2, %r14d
	xorl	%ebx, %ebx
	movl	$-1, %r12d
	movq	%r10, %rax
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_31 Depth=1
	addl	$2, %ebx
	subq	$-128, %rax
	cmpl	%ebx, %r14d
	je	LBB0_38
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%ecx, (%rax)
	je	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movl	4(%rax), %edx
	cmpl	%edi, %edx
	jge	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=1
	cmpl	%r11d, 8(%rax)
	cmovnel	%edx, %edi
	cmovnel	%ebx, %r12d
LBB0_34:                                ##   in Loop: Header=BB0_31 Depth=1
	cmpl	%ecx, 64(%rax)
	je	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_31 Depth=1
	movl	68(%rax), %edx
	cmpl	%edi, %edx
	jge	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_31 Depth=1
	leal	1(%rbx), %esi
	cmpl	%r11d, 72(%rax)
	cmovnel	%edx, %edi
	cmovnel	%esi, %r12d
	jmp	LBB0_37
LBB0_29:
	xorl	%ebx, %ebx
	movl	$-1, %r12d
	movq	%r10, %rax
LBB0_38:
	testb	$1, %r9b
	je	LBB0_43
## %bb.39:
	cmpl	%ecx, (%rax)
	je	LBB0_42
## %bb.40:
	movl	4(%rax), %ecx
	cmpl	%edi, %ecx
	jge	LBB0_42
## %bb.41:
	cmpl	%r11d, 8(%rax)
	cmovnel	%ecx, %edi
	cmovel	%r12d, %ebx
	movl	%ebx, %r12d
LBB0_42:
	addq	$64, %rax
LBB0_43:
	cmpl	$-1, %r12d
	movq	_listener_number@GOTPCREL(%rip), %rdx
	je	LBB0_44
LBB0_62:
	movslq	%r12d, %rax
	shlq	$6, %rax
	leaq	(%r10,%rax), %r14
	movl	%r15d, 4(%r10,%rax)
LBB0_63:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_65
## %bb.64:
	movl	56(%r14), %esi
	callq	_VectorCopy
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_66
LBB0_65:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rcx
LBB0_66:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rcx, 48(%r14)
	movl	$127, 12(%r14)
	movl	%r13d, (%r14)
	movq	%rdx, 40(%r14)
	movq	_START_SAMPLE_IMMEDIATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r14)
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%r14)
	movabsq	$545460846719, %rcx             ## imm = 0x7F0000007F
	movq	%rcx, 16(%r14)
	movq	%rax, 24(%r14)
LBB0_67:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_44:
	movl	(%rax), %ecx
	cmpl	(%rdx), %ecx
	jne	LBB0_69
## %bb.45:
	cmpl	$3, %r8d
	jae	LBB0_47
## %bb.46:
	xorl	%ecx, %ecx
	movl	$-1, %r12d
LBB0_58:
	testb	$3, %r9b
	je	LBB0_61
## %bb.59:
	andl	$3, %r9d
	shlq	$6, %r9
	xorl	%edx, %edx
LBB0_60:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rax,%rdx), %esi
	cmpl	%edi, %esi
	cmovll	%esi, %edi
	cmovll	%ecx, %r12d
	incl	%ecx
	addq	$64, %rdx
	cmpl	%edx, %r9d
	jne	LBB0_60
LBB0_61:
	cmpl	$-1, %r12d
	jne	LBB0_62
LBB0_69:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_47:
	movl	%r9d, %r8d
	andl	$-4, %r8d
	xorl	%ecx, %ecx
	movl	$-1, %r12d
	jmp	LBB0_48
LBB0_56:                                ##   in Loop: Header=BB0_48 Depth=1
	movl	%edx, %edi
LBB0_57:                                ##   in Loop: Header=BB0_48 Depth=1
	addl	$4, %ecx
	addq	$256, %rax                      ## imm = 0x100
	cmpl	%r8d, %ecx
	je	LBB0_58
LBB0_48:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rax), %edx
	cmpl	%edi, %edx
	cmovll	%edx, %edi
	movl	68(%rax), %ebx
	cmovll	%ecx, %r12d
	cmpl	%edi, %ebx
	jl	LBB0_49
## %bb.50:                              ##   in Loop: Header=BB0_48 Depth=1
	movl	%edi, %ebx
	jmp	LBB0_51
LBB0_49:                                ##   in Loop: Header=BB0_48 Depth=1
	leal	1(%rcx), %r12d
LBB0_51:                                ##   in Loop: Header=BB0_48 Depth=1
	movl	132(%rax), %edx
	cmpl	%ebx, %edx
	jl	LBB0_52
## %bb.53:                              ##   in Loop: Header=BB0_48 Depth=1
	movl	%ebx, %edx
	jmp	LBB0_54
LBB0_52:                                ##   in Loop: Header=BB0_48 Depth=1
	leal	2(%rcx), %r12d
LBB0_54:                                ##   in Loop: Header=BB0_48 Depth=1
	movl	196(%rax), %edi
	cmpl	%edx, %edi
	jge	LBB0_56
## %bb.55:                              ##   in Loop: Header=BB0_48 Depth=1
	leal	3(%rcx), %r12d
	jmp	LBB0_57
	.cfi_endproc
                                        ## -- End function
	.comm	_s_soundStarted,4,2             ## @s_soundStarted
	.comm	_s_soundMuted,8,3               ## @s_soundMuted
	.comm	_MAX_GENTITIES,4,2              ## @MAX_GENTITIES
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S_StartSound: bad entitynum %i"

	.comm	_s_numSfx,8,3                   ## @s_numSfx
	.comm	_S_COLOR_YELLOW,4,2             ## @S_COLOR_YELLOW
L_.str.1:                               ## @.str.1
	.asciz	"S_StartSound: handle %i out of range\n"

	.comm	_s_knownSfx,8,3                 ## @s_knownSfx
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_s_show,8,3                     ## @s_show
L_.str.2:                               ## @.str.2
	.asciz	"%i : %s\n"

	.comm	_s_paintedtime,4,2              ## @s_paintedtime
	.comm	_listener_number,4,2            ## @listener_number
	.comm	_s_channels,8,3                 ## @s_channels
	.comm	_MAX_CHANNELS,4,2               ## @MAX_CHANNELS
	.comm	_CHAN_ANNOUNCER,4,2             ## @CHAN_ANNOUNCER
L_.str.3:                               ## @.str.3
	.asciz	"dropping sound\n"

	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_START_SAMPLE_IMMEDIATE,4,2     ## @START_SAMPLE_IMMEDIATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_StartSound                   ; -- Begin function S_StartSound
	.p2align	2
_S_StartSound:                          ; @S_StartSound
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w27, -88
	.cfi_offset w28, -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_38
; %bb.1:
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cbnz	x0, LBB0_5
; %bb.2:
	tbnz	w20, #31, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _MAX_GENTITIES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_GENTITIES@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ge	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_Com_Error
LBB0_5:
Lloh14:
	adrp	x8, _s_numSfx@GOTPAGE
Lloh15:
	ldr	x8, [x8, _s_numSfx@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, x23
	b.ls	LBB0_17
; %bb.6:
Lloh17:
	adrp	x8, _s_knownSfx@GOTPAGE
Lloh18:
	ldr	x8, [x8, _s_knownSfx@GOTPAGEOFF]
Lloh19:
	ldr	x26, [x8]
	add	x22, x26, x23, lsl #4
	ldr	x8, [x22]
Lloh20:
	adrp	x24, _qfalse@GOTPAGE
Lloh21:
	ldr	x24, [x24, _qfalse@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_S_memoryLoad
LBB0_8:
Lloh22:
	adrp	x8, _s_show@GOTPAGE
Lloh23:
	ldr	x8, [x8, _s_show@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.9:
Lloh25:
	adrp	x8, _s_paintedtime@GOTPAGE
Lloh26:
	ldr	x8, [x8, _s_paintedtime@GOTPAGEOFF]
	add	x9, x26, x23, lsl #4
	ldr	w9, [x9, #12]
Lloh27:
	ldr	w8, [x8]
	stp	x8, x9, [sp]
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Com_Printf
LBB0_10:
	bl	_Com_Milliseconds
Lloh30:
	adrp	x25, _listener_number@GOTPAGE
Lloh31:
	ldr	x25, [x25, _listener_number@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	w9, #4
	mov	w10, #8
	cmp	w8, w20
	csel	w8, w10, w9, eq
Lloh32:
	adrp	x27, _MAX_CHANNELS@GOTPAGE
Lloh33:
	ldr	x27, [x27, _MAX_CHANNELS@GOTPAGEOFF]
	ldr	w9, [x27]
	cmp	w9, #1
	b.lt	LBB0_19
; %bb.11:
	mov	w10, #0
Lloh34:
	adrp	x11, _s_channels@GOTPAGE
Lloh35:
	ldr	x11, [x11, _s_channels@GOTPAGEOFF]
Lloh36:
	ldr	x11, [x11]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x11, x11, #128
	subs	x9, x9, #1
	b.eq	LBB0_18
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	cmp	w12, w20
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x12, [x11, #40]
	cmp	x12, x22
	b.ne	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w12, [x11, #4]
	sub	w12, w0, w12
	cmp	w12, #50
	b.lt	LBB0_38
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w10, w10, #1
	b	LBB0_12
LBB0_17:
Lloh37:
	adrp	x8, _S_COLOR_YELLOW@GOTPAGE
Lloh38:
	ldr	x8, [x8, _S_COLOR_YELLOW@GOTPAGEOFF]
Lloh39:
	ldrsw	x0, [x8]
Lloh40:
	adrp	x8, l_.str.1@PAGE
Lloh41:
	add	x8, x8, l_.str.1@PAGEOFF
	stp	x8, x23, [sp]
	bl	_Com_Printf
	b	LBB0_38
LBB0_18:
	cmp	w10, w8
	b.gt	LBB0_38
LBB0_19:
	add	x26, x26, x23, lsl #4
	str	w0, [x26, #8]!
	bl	_S_ChannelMalloc
	mov	x23, x0
	cbz	x0, LBB0_22
; %bb.20:
	cbz	x21, LBB0_36
LBB0_21:
	ldr	w1, [x23, #56]
	mov	x0, x21
	bl	_VectorCopy
Lloh42:
	adrp	x8, _qtrue@GOTPAGE
Lloh43:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x8]
	ldr	x8, [x24]
	b	LBB0_37
LBB0_22:
	ldr	w10, [x27]
	subs	w13, w10, #1
	b.lt	LBB0_43
; %bb.23:
	mov	w15, #0
Lloh45:
	adrp	x8, _s_channels@GOTPAGE
Lloh46:
	ldr	x8, [x8, _s_channels@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	ldr	w9, [x26]
	ldr	w16, [x25]
Lloh48:
	adrp	x14, _CHAN_ANNOUNCER@GOTPAGE
Lloh49:
	ldr	x14, [x14, _CHAN_ANNOUNCER@GOTPAGEOFF]
	ldr	w17, [x14]
	add	x0, x8, #8
	mov	w12, #-1
	mov	x11, x9
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	w15, w15, #1
	add	x0, x0, #64
	cmp	w10, w15
	b.eq	LBB0_28
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldur	w1, [x0, #-8]
	cmp	w1, w20
	ccmp	w1, w16, #4, eq
	b.eq	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldur	w1, [x0, #-4]
	cmp	w1, w11
	b.ge	LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w2, [x0]
	cmp	w2, w17
	csel	w11, w11, w1, eq
	csel	w12, w12, w15, eq
	b	LBB0_24
LBB0_28:
	cmn	w12, #1
	b.ne	LBB0_35
; %bb.29:
	mov	w15, #0
	ldr	w16, [x25]
	ldr	w14, [x14]
	add	x13, x13, #1
	add	x17, x8, #8
	mov	w12, #-1
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	add	w15, w15, #1
	add	x17, x17, #64
	cmp	w10, w15
	b.eq	LBB0_34
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldur	w0, [x17, #-8]
	cmp	w0, w16
	b.eq	LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	ldur	w0, [x17, #-4]
	cmp	w0, w11
	b.ge	LBB0_30
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	w1, [x17]
	cmp	w1, w14
	csel	w11, w11, w0, eq
	csel	w12, w12, w15, eq
	b	LBB0_30
LBB0_34:
	cmn	w12, #1
	b.eq	LBB0_39
LBB0_35:
	sxtw	x10, w12
	add	x23, x8, x10, lsl #6
	str	w9, [x23, #4]
	cbnz	x21, LBB0_21
LBB0_36:
	ldr	x8, [x24]
	mov	x9, x8
LBB0_37:
	str	w20, [x23]
	stp	x22, x9, [x23, #40]
Lloh50:
	adrp	x9, _START_SAMPLE_IMMEDIATE@GOTPAGE
Lloh51:
	ldr	x9, [x9, _START_SAMPLE_IMMEDIATE@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	str	w9, [x23, #32]
	str	w19, [x23, #8]
	movi.2s	v0, #127
	stur	d0, [x23, #12]
	mov	w9, #127
	str	w9, [x23, #20]
	str	x8, [x23, #24]
LBB0_38:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_39:
	lsl	x12, x13, #6
	ldr	w12, [x8, x12]
	ldr	w14, [x25]
	cmp	w12, w14
	b.ne	LBB0_43
; %bb.40:
	mov	w14, #0
	add	x12, x8, x13, lsl #6
	add	x13, x12, #4
	mov	w12, #-1
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x13], #64
	cmp	w15, w11
	csel	w11, w15, w11, lt
	csel	w12, w14, w12, lt
	add	w14, w14, #1
	cmp	w10, w14
	b.ne	LBB0_41
; %bb.42:
	cmn	w12, #1
	b.ne	LBB0_35
LBB0_43:
Lloh53:
	adrp	x0, l_.str.3@PAGE
Lloh54:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_Com_Printf
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_s_soundStarted,4,2             ; @s_soundStarted
	.comm	_s_soundMuted,8,3               ; @s_soundMuted
	.comm	_MAX_GENTITIES,4,2              ; @MAX_GENTITIES
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S_StartSound: bad entitynum %i"

	.comm	_s_numSfx,8,3                   ; @s_numSfx
	.comm	_S_COLOR_YELLOW,4,2             ; @S_COLOR_YELLOW
l_.str.1:                               ; @.str.1
	.asciz	"S_StartSound: handle %i out of range\n"

	.comm	_s_knownSfx,8,3                 ; @s_knownSfx
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_s_show,8,3                     ; @s_show
l_.str.2:                               ; @.str.2
	.asciz	"%i : %s\n"

	.comm	_s_paintedtime,4,2              ; @s_paintedtime
	.comm	_listener_number,4,2            ; @listener_number
	.comm	_s_channels,8,3                 ; @s_channels
	.comm	_MAX_CHANNELS,4,2               ; @MAX_CHANNELS
	.comm	_CHAN_ANNOUNCER,4,2             ; @CHAN_ANNOUNCER
l_.str.3:                               ; @.str.3
	.asciz	"dropping sound\n"

	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_START_SAMPLE_IMMEDIATE,4,2     ; @START_SAMPLE_IMMEDIATE
.subsections_via_symbols
