	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StopAllLink                    ## -- Begin function StopAllLink
	.p2align	4, 0x90
_StopAllLink:                           ## @StopAllLink
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$1, (%rdi)
	movl	4(%rdi), %edi
	callq	_LockList
	movl	4(%r14), %edi
	callq	_ToArray
	movq	%rax, %r12
	movl	4(%r14), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rax
	movl	(%rax), %edi
	callq	_AddRef
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_3
## %bb.4:
	movl	4(%r14), %edi
	callq	_UnlockList
	testq	%r15, %r15
	je	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rdi
	callq	_StopLink
	movq	(%r12,%rbx,8), %rdi
	callq	_ReleaseLink
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_6
	jmp	LBB0_7
LBB0_9:
	movl	4(%r14), %edi
	callq	_UnlockList
LBB0_7:
	movq	%r12, %rdi
	callq	_Free
	movl	$0, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_8:
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StopAllLink                    ; -- Begin function StopAllLink
	.p2align	2
_StopAllLink:                           ; @StopAllLink
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_9
; %bb.1:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
	ldr	w0, [x0, #4]
	bl	_LockList
	ldr	w0, [x19, #4]
	bl	_ToArray
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_LIST_NUM
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
	mov	x22, x20
	mov	x23, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22], #8
	ldr	w0, [x8]
	bl	_AddRef
	subs	x23, x23, #1
	b.ne	LBB0_3
; %bb.4:
	ldr	w0, [x19, #4]
	bl	_UnlockList
	cbz	x21, LBB0_8
; %bb.5:
	mov	x22, x20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	bl	_StopLink
	ldr	x0, [x22], #8
	bl	_ReleaseLink
	subs	x21, x21, #1
	b.ne	LBB0_6
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19, #4]
	bl	_UnlockList
LBB0_8:
	mov	x0, x20
	bl	_Free
	str	wzr, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
LBB0_9:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
