	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DisconnectTcpSockets           ## -- Begin function DisconnectTcpSockets
	.p2align	4, 0x90
_DisconnectTcpSockets:                  ## @DisconnectTcpSockets
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	(%rdi), %rax
	movq	_CONNECTION_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movq	8(%rdi), %rbx
	movl	(%rbx), %edi
	callq	_LockList
	movl	(%rbx), %edi
	callq	_ToArray
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_LIST_NUM
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_DeleteAll
	movl	(%rbx), %edi
	callq	_UnlockList
	testq	%r12, %r12
	je	LBB0_6
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_Debug
	testq	%r12, %r12
	jle	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %r13
	movq	(%r13), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_Debug
	movq	%r13, %rdi
	callq	_FreeTcpSock
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Free                           ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONNECTION_TCP,8,3             ## @CONNECTION_TCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--- SOCKET STATUS ---\n"

L_.str.1:                               ## @.str.1
	.asciz	" SOCK %2u: %u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DisconnectTcpSockets           ; -- Begin function DisconnectTcpSockets
	.p2align	2
_DisconnectTcpSockets:                  ; @DisconnectTcpSockets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CONNECTION_TCP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CONNECTION_TCP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	ldr	x21, [x0, #8]
	ldr	w0, [x21]
	bl	_LockList
	ldr	w0, [x21]
	bl	_ToArray
	mov	x19, x0
	ldr	w0, [x21]
	bl	_LIST_NUM
	mov	x20, x0
	ldr	w0, [x21]
	bl	_DeleteAll
	ldr	w0, [x21]
	bl	_UnlockList
	cbz	x20, LBB0_6
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Debug
	cmp	x20, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x23, #0
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x19, x23, lsl #3]
	ldr	x8, [x22]
	ldr	w8, [x8]
	stp	x23, x8, [sp]
	mov	x0, x21
	bl	_Debug
	mov	x0, x22
	bl	_FreeTcpSock
	add	x23, x23, #1
	cmp	x20, x23
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_Free
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CONNECTION_TCP,8,3             ; @CONNECTION_TCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--- SOCKET STATUS ---\n"

l_.str.1:                               ; @.str.1
	.asciz	" SOCK %2u: %u\n"

.subsections_via_symbols
