	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_StopSound                    ## -- Begin function S_StopSound
	.p2align	4, 0x90
_S_StopSound:                           ## @S_StopSound
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_numChannels@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	_channels@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	$8, %rdx
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	addq	$16, %rdx
	cmpq	%rax, %rcx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdi, -8(%rdx)
	jne	LBB0_4
## %bb.6:
	movl	%eax, %edi
	popq	%rbp
	jmp	_S_StopChannel                  ## TAILCALL
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_numChannels,4,2                ## @numChannels
	.comm	_channels,8,3                   ## @channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_StopSound                    ; -- Begin function S_StopSound
	.p2align	2
_S_StopSound:                           ; @S_StopSound
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _numChannels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _numChannels@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x8, #0
Lloh3:
	adrp	x10, _channels@GOTPAGE
Lloh4:
	ldr	x10, [x10, _channels@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x10, x10, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	add	x10, x10, #16
	cmp	x9, x8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cbz	x11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x11, [x10, #-8]
	cmp	x11, x0
	b.ne	LBB0_2
; %bb.5:
	mov	x0, x8
	b	_S_StopChannel
LBB0_6:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_numChannels,4,2                ; @numChannels
	.comm	_channels,8,3                   ; @channels
.subsections_via_symbols
