	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_StopChannel                  ## -- Begin function S_StopChannel
	.p2align	4, 0x90
_S_StopChannel:                         ## @S_StopChannel
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_channels@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movslq	%edi, %rbx
	shlq	$4, %rbx
	cmpq	$0, (%r15,%rbx)
	je	LBB0_4
## %bb.1:
	leaq	(%r15,%rbx), %r14
	movl	8(%r15,%rbx), %edi
	callq	_I_SoundIsPlaying
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	(%r15,%rbx), %rax
	addq	$8, %rax
	movl	(%rax), %edi
	callq	_I_StopSound
LBB0_3:
	movq	(%r14), %rax
	decl	(%rax)
	movq	$0, (%r14)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_channels,8,3                   ## @channels
	.comm	_numChannels,4,2                ## @numChannels
	.comm	_S_sfx,8,3                      ## @S_sfx
	.comm	_sfx_sawful,8,3                 ## @sfx_sawful
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_StopChannel                  ; -- Begin function S_StopChannel
	.p2align	2
_S_StopChannel:                         ; @S_StopChannel
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _channels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _channels@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x19, x8, w0, sxtw #4
	ldr	x9, [x19]
	cbz	x9, LBB0_4
; %bb.1:
	sxtw	x9, w0
	add	x20, x8, x9, lsl #4
	ldr	w0, [x20, #8]!
	bl	_I_SoundIsPlaying
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20]
	bl	_I_StopSound
LBB0_3:
	ldr	x8, [x19]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	str	xzr, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_channels,8,3                   ; @channels
	.comm	_numChannels,4,2                ; @numChannels
	.comm	_S_sfx,8,3                      ; @S_sfx
	.comm	_sfx_sawful,8,3                 ; @sfx_sawful
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
