	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_client_close_connection        ## -- Begin function client_close_connection
	.p2align	4, 0x90
_client_close_connection:               ## @client_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	56(%rdi), %r14
	callq	_clear_connection_timeout
	movq	48(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	cmpq	%r15, %rbx
	jne	LBB0_2
LBB0_5:
	movq	16(%r15), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	*%rax
LBB0_7:
	testq	%r14, %r14
	je	LBB0_15
## %bb.8:
	movq	32(%r15), %rax
	movq	40(%r15), %rcx
	movq	%rcx, (%rax)
	movq	%rax, (%rcx)
	movq	(%r14), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%r14)
	movq	_outbound_connections@GOTPCREL(%rip), %rcx
	decl	(%rcx)
	movq	(%r15), %rcx
	movq	_conn_connecting@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_10
## %bb.9:
	decl	32(%r14)
	movq	_active_outbound_connections@GOTPCREL(%rip), %rcx
	decl	(%rcx)
LBB0_10:
	cmpq	8(%r14), %rax
	jg	LBB0_15
## %bb.11:
	movq	_precise_now@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	16(%r14), %rax
	jl	LBB0_15
## %bb.12:
	cmpq	$0, 24(%r14)
	jle	LBB0_15
## %bb.13:
	movq	%r14, %rdi
	callq	_create_new_connections
	movq	16(%r14), %rax
	cmpq	(%rbx), %rax
	jg	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_compute_next_reconnect
LBB0_15:
	movq	_conn_none@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	$0, 24(%r15)
	movl	$-1, 8(%r15)
	movq	16(%r15), %rax
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	cmpq	%r15, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	48(%r15), %rax
	cmpq	%rbx, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_delete_conn_query
	movq	48(%r15), %rax
	jmp	LBB0_4
	.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	_precise_now,8,3                ## @precise_now
	.comm	_conn_none,8,3                  ## @conn_none
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_client_close_connection        ; -- Begin function client_close_connection
	.p2align	2
_client_close_connection:               ; @client_close_connection
	.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
	mov	x19, x0
	ldr	x20, [x0, #56]
	bl	_clear_connection_timeout
	ldr	x21, [x19, #48]
	cmp	x21, #0
	ccmp	x21, x19, #4, ne
	b.ne	LBB0_13
LBB0_1:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	blr	x8
LBB0_3:
	cbz	x20, LBB0_11
; %bb.4:
	ldp	x9, x8, [x19, #32]
	str	x8, [x9]
	str	x9, [x8]
	ldr	x8, [x20]
	sub	x9, x8, #1
	str	x9, [x20]
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_6
; %bb.5:
	ldr	w9, [x20, #32]
	sub	w9, w9, #1
	str	w9, [x20, #32]
Lloh5:
	adrp	x9, _active_outbound_connections@GOTPAGE
Lloh6:
	ldr	x9, [x9, _active_outbound_connections@GOTPAGEOFF]
	ldr	w10, [x9]
	sub	w10, w10, #1
	str	w10, [x9]
LBB0_6:
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.gt	LBB0_11
; %bb.7:
Lloh7:
	adrp	x21, _precise_now@GOTPAGE
Lloh8:
	ldr	x21, [x21, _precise_now@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.lt	LBB0_11
; %bb.8:
	ldr	x8, [x20, #24]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x0, x20
	bl	_create_new_connections
	ldr	x8, [x20, #16]
	ldr	x9, [x21]
	cmp	x8, x9
	b.gt	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_compute_next_reconnect
LBB0_11:
Lloh9:
	adrp	x8, _conn_none@GOTPAGE
Lloh10:
	ldr	x8, [x8, _conn_none@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19]
	str	xzr, [x19, #24]
	mov	w8, #-1
	str	w8, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	mov	x0, x19
	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
	br	x1
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x21, x8
	cmp	x8, x19
	b.eq	LBB0_1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
	ldr	x8, [x19, #48]
	cmp	x8, x21
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x21
	bl	_delete_conn_query
	ldr	x8, [x19, #48]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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	_precise_now,8,3                ; @precise_now
	.comm	_conn_none,8,3                  ; @conn_none
.subsections_via_symbols
