	.file	"extr_Link.c_StopAllLink.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	StopAllLink
	.type	StopAllLink, @function
StopAllLink:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L15
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	DWORD PTR [rdi], 1
	mov	edi, DWORD PTR 4[rdi]
	call	LockList@PLT
	mov	edi, DWORD PTR 4[r13]
	call	ToArray@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	r14, rax
	call	LIST_NUM@PLT
	test	rax, rax
	je	.L3
	mov	rbx, r14
	lea	r12, [r14+rax*8]
	mov	rbp, r14
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 0[rbp]
	add	rbp, 8
	mov	edi, DWORD PTR [rax]
	call	AddRef@PLT
	cmp	rbp, r12
	jne	.L4
	mov	edi, DWORD PTR 4[r13]
	call	UnlockList@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR [rbx]
	add	rbx, 8
	call	StopLink@PLT
	mov	rdi, QWORD PTR -8[rbx]
	call	ReleaseLink@PLT
	cmp	rbx, r12
	jne	.L6
.L7:
	mov	rdi, r14
	call	Free@PLT
	mov	DWORD PTR 0[r13], 0
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	.cfi_offset 6, -40
	.cfi_offset 12, -32
	.cfi_offset 13, -24
	.cfi_offset 14, -16
	mov	edi, DWORD PTR 4[r13]
	call	UnlockList@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	StopAllLink, .-StopAllLink
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_Link.c_StopAllLink.c"
	.text
	.align	2
	.global	StopAllLink
	.syntax unified
	.arm
	.fpu softvfp
	.type	StopAllLink, %function
StopAllLink:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r7, r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r3, #1
	ldr	r0, [r7, #4]
	str	r3, [r7]
	bl	LockList
	ldr	r0, [r7, #4]
	bl	ToArray
	mov	r8, r0
	ldr	r0, [r7, #4]
	bl	LIST_NUM
	subs	r6, r0, #0
	beq	.L3
	sub	r4, r8, #4
	mov	r5, r4
	add	r6, r8, r6, lsl #2
	sub	r6, r6, #4
.L4:
	ldr	r3, [r5, #4]!
	ldr	r0, [r3]
	bl	AddRef
	cmp	r5, r6
	bne	.L4
	ldr	r0, [r7, #4]
	bl	UnlockList
.L6:
	ldr	r0, [r4, #4]!
	bl	StopLink
	ldr	r0, [r4]
	bl	ReleaseLink
	cmp	r4, r6
	bne	.L6
.L7:
	mov	r0, r8
	bl	Free
	mov	r3, #0
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r0, [r7, #4]
	bl	UnlockList
	b	.L7
	.size	StopAllLink, .-StopAllLink
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
