	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpc_server_disconnect
_rpc_server_disconnect:                 ## @rpc_server_disconnect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	testl	%edi, %edi
	js	LBB0_4
## %bb.1:
	callq	_close
	movl	$-1, (%rbx)
	movq	8(%rbx), %rax
	movq	_rpc_status_connected@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_active_net_connections@GOTPCREL(%rip), %rax
	decl	(%rax)
LBB0_3:
	movq	_net_connections_fails@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_4:
	movq	_rpc_status_disconnected@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rpc_status_connected,8,3       ## @rpc_status_connected
	.comm	_active_net_connections,4,2     ## @active_net_connections
	.comm	_net_connections_fails,4,2      ## @net_connections_fails
	.comm	_rpc_status_disconnected,8,3    ## @rpc_status_disconnected
	.no_dead_strip	_rpc_server_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpc_server_disconnect
_rpc_server_disconnect:                 ; @rpc_server_disconnect
	.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
	ldr	w0, [x0]
	tbnz	w0, #31, LBB0_4
; %bb.1:
	bl	_close
	mov	w8, #-1
	str	w8, [x19]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _rpc_status_connected@GOTPAGE
Lloh1:
	ldr	x9, [x9, _rpc_status_connected@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _active_net_connections@GOTPAGE
Lloh4:
	ldr	x8, [x8, _active_net_connections@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_3:
Lloh5:
	adrp	x8, _net_connections_fails@GOTPAGE
Lloh6:
	ldr	x8, [x8, _net_connections_fails@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_4:
Lloh7:
	adrp	x8, _rpc_status_disconnected@GOTPAGE
Lloh8:
	ldr	x8, [x8, _rpc_status_disconnected@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_rpc_status_connected,8,3       ; @rpc_status_connected
	.comm	_active_net_connections,4,2     ; @active_net_connections
	.comm	_net_connections_fails,4,2      ; @net_connections_fails
	.comm	_rpc_status_disconnected,8,3    ; @rpc_status_disconnected
	.no_dead_strip	_rpc_server_disconnect
.subsections_via_symbols
