	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ngfrm_disconnect
_ngfrm_disconnect:                      ## @ngfrm_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	callq	_NG_HOOK_NODE
	movl	%eax, %edi
	callq	_NG_NODE_PRIVATE
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_NG_HOOK_PRIVATE
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	$0, 16(%rax)
	movslq	(%rax), %rcx
	cmpq	$-1, %rcx
	je	LBB0_3
## %bb.2:
	movq	8(%r14), %rdx
	movq	$0, (%rdx,%rcx,8)
LBB0_3:
	movq	$0, 8(%rax)
	decl	(%r14)
LBB0_4:
	movl	%ebx, %edi
	callq	_NG_HOOK_NODE
	movl	%eax, %edi
	callq	_NG_NODE_NUMHOOKS
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movl	%ebx, %edi
	callq	_NG_HOOK_NODE
	movl	%eax, %edi
	callq	_NG_NODE_IS_VALID
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	%ebx, %edi
	callq	_NG_HOOK_NODE
	movl	%eax, %edi
	callq	_ng_rmnode_self
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ngfrm_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ngfrm_disconnect
_ngfrm_disconnect:                      ; @ngfrm_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
	bl	_NG_HOOK_NODE
	bl	_NG_NODE_PRIVATE
	mov	x20, x0
	mov	x0, x19
	bl	_NG_HOOK_PRIVATE
	cbz	x0, LBB0_4
; %bb.1:
	str	xzr, [x0, #16]
	ldrsw	x8, [x0]
	cmn	w8, #1
	b.eq	LBB0_3
; %bb.2:
	ldr	x9, [x20, #8]
	str	xzr, [x9, x8, lsl #3]
LBB0_3:
	str	xzr, [x0, #8]
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
LBB0_4:
	mov	x0, x19
	bl	_NG_HOOK_NODE
	bl	_NG_NODE_NUMHOOKS
	cbnz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_NG_HOOK_NODE
	bl	_NG_NODE_IS_VALID
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_NG_HOOK_NODE
	bl	_ng_rmnode_self
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ngfrm_disconnect
.subsections_via_symbols
