	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StopAllAdditionalConnectThread ## -- Begin function StopAllAdditionalConnectThread
	.p2align	4, 0x90
_StopAllAdditionalConnectThread:        ## @StopAllAdditionalConnectThread
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r14
	cmpl	$0, (%rdi)
	je	LBB0_2
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	8(%r14), %edi
	callq	_LockList
	movl	8(%r14), %edi
	callq	_LIST_NUM
	movq	%rax, %r15
	movl	8(%r14), %edi
	callq	_ToArray
	movq	%rax, %r12
	movl	8(%r14), %edi
	callq	_DeleteAll
	movl	8(%r14), %edi
	callq	_UnlockList
	testq	%r15, %r15
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rdi
	callq	_Disconnect
	movq	(%r12,%rbx,8), %rdi
	callq	_ReleaseSock
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_4
LBB0_5:
	movq	%r12, %rdi
	callq	_Free
	movl	4(%r14), %edi
	callq	_LockList
	movl	4(%r14), %edi
	callq	_LIST_NUM
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_Debug
	movl	4(%r14), %edi
	callq	_ToArray
	movq	%rax, %r12
	movl	4(%r14), %edi
	callq	_DeleteAll
	movl	4(%r14), %edi
	callq	_UnlockList
	testq	%r15, %r15
	je	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	movq	_INFINITE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rdi
	movl	(%r14), %esi
	callq	_WaitThread
	movq	(%r12,%rbx,8), %rdi
	callq	_ReleaseThread
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"c->ConnectingThreads: %u\n"

	.comm	_INFINITE,4,2                   ## @INFINITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StopAllAdditionalConnectThread ; -- Begin function StopAllAdditionalConnectThread
	.p2align	2
_StopAllAdditionalConnectThread:        ; @StopAllAdditionalConnectThread
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w0, [x19, #8]
	bl	_LockList
	ldr	w0, [x19, #8]
	bl	_LIST_NUM
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_ToArray
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_DeleteAll
	ldr	w0, [x19, #8]
	bl	_UnlockList
	cbz	x20, LBB0_6
; %bb.4:
	mov	x22, x21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	bl	_Disconnect
	ldr	x0, [x22], #8
	bl	_ReleaseSock
	subs	x20, x20, #1
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x21
	bl	_Free
	ldr	w0, [x19, #4]
	bl	_LockList
	ldr	w0, [x19, #4]
	bl	_LIST_NUM
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_Debug
	ldr	w0, [x19, #4]
	bl	_ToArray
	mov	x21, x0
	ldr	w0, [x19, #4]
	bl	_DeleteAll
	ldr	w0, [x19, #4]
	bl	_UnlockList
	cbz	x20, LBB0_9
; %bb.7:
Lloh2:
	adrp	x19, _INFINITE@GOTPAGE
Lloh3:
	ldr	x19, [x19, _INFINITE@GOTPAGEOFF]
	mov	x22, x21
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	w1, [x19]
	bl	_WaitThread
	ldr	x0, [x22], #8
	bl	_ReleaseThread
	subs	x20, x20, #1
	b.ne	LBB0_8
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_Free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"c->ConnectingThreads: %u\n"

	.comm	_INFINITE,4,2                   ; @INFINITE
.subsections_via_symbols
