	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_server_close_connection        ## -- Begin function server_close_connection
	.p2align	4, 0x90
_server_close_connection:               ## @server_close_connection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_clear_connection_timeout
	movq	64(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	cmpq	%r14, %rbx
	jne	LBB0_2
LBB0_5:
	movq	24(%r14), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	*%rax
LBB0_7:
	movq	40(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	48(%r14), %rcx
	movq	56(%r14), %rdx
	movq	%rdx, 8(%rcx)
	movq	%rcx, (%rdx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r14)
	decl	4(%rax)
	movq	_outbound_connections@GOTPCREL(%rip), %rcx
	decl	(%rcx)
	movq	(%r14), %rcx
	movq	_conn_connecting@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_12
## %bb.11:
	decl	(%rax)
	movq	_active_outbound_connections@GOTPCREL(%rip), %rax
	decl	(%rax)
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	cmpq	%r14, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	64(%r14), %rax
	cmpq	%rbx, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_delete_conn_query
	movq	64(%r14), %rax
	jmp	LBB0_4
LBB0_8:
	movq	48(%r14), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	leaq	48(%r14), %rcx
	movq	56(%r14), %rdx
	movq	%rdx, 8(%rax)
	movq	%rax, (%rdx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rcx)
LBB0_12:
	movq	_conn_none@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	$0, 32(%r14)
	movl	$-1, 8(%r14)
	movq	16(%r14), %rax
	movq	_ct_listen@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	movq	24(%r14), %rax
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_outbound_connections,4,2       ## @outbound_connections
	.comm	_conn_connecting,8,3            ## @conn_connecting
	.comm	_active_outbound_connections,4,2 ## @active_outbound_connections
	.comm	_conn_none,8,3                  ## @conn_none
	.comm	_ct_listen,8,3                  ## @ct_listen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_server_close_connection        ; -- Begin function server_close_connection
	.p2align	2
_server_close_connection:               ; @server_close_connection
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_clear_connection_timeout
	ldr	x20, [x19, #64]
	cmp	x20, #0
	ccmp	x20, x19, #4, ne
	b.ne	LBB0_7
LBB0_1:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	blr	x8
LBB0_3:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_9
; %bb.4:
	ldp	x10, x9, [x19, #48]
	str	x9, [x10, #8]
	str	x10, [x9]
	stp	xzr, xzr, [x19, #48]
	ldr	w9, [x8, #4]
	sub	w9, w9, #1
	str	w9, [x8, #4]
Lloh0:
	adrp	x9, _outbound_connections@GOTPAGE
Lloh1:
	ldr	x9, [x9, _outbound_connections@GOTPAGEOFF]
	ldr	w10, [x9]
	sub	w10, w10, #1
	str	w10, [x9]
	ldr	x9, [x19]
Lloh2:
	adrp	x10, _conn_connecting@GOTPAGE
Lloh3:
	ldr	x10, [x10, _conn_connecting@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_11
; %bb.5:
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
Lloh5:
	adrp	x8, _active_outbound_connections@GOTPAGE
Lloh6:
	ldr	x8, [x8, _active_outbound_connections@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	b	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x20, x8
	cmp	x8, x19
	b.eq	LBB0_1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	ldr	x8, [x19, #64]
	cmp	x8, x20
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_delete_conn_query
	ldr	x8, [x19, #64]
	b	LBB0_6
LBB0_9:
	mov	x8, x19
	ldr	x9, [x8, #48]!
	cbz	x9, LBB0_11
; %bb.10:
	ldr	x10, [x19, #56]
	str	x10, [x9, #8]
	str	x9, [x10]
	stp	xzr, xzr, [x8]
LBB0_11:
Lloh7:
	adrp	x8, _conn_none@GOTPAGE
Lloh8:
	ldr	x8, [x8, _conn_none@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x19]
	str	xzr, [x19, #32]
	mov	w8, #-1
	str	w8, [x19, #8]
	ldr	x8, [x19, #16]
Lloh10:
	adrp	x9, _ct_listen@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ct_listen@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	x8, [x19, #24]
	ldr	x1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_outbound_connections,4,2       ; @outbound_connections
	.comm	_conn_connecting,8,3            ; @conn_connecting
	.comm	_active_outbound_connections,4,2 ; @active_outbound_connections
	.comm	_conn_none,8,3                  ; @conn_none
	.comm	_ct_listen,8,3                  ; @ct_listen
.subsections_via_symbols
