	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_unref_node                  ## -- Begin function ng_unref_node
	.p2align	4, 0x90
_ng_unref_node:                         ## @ng_unref_node
	.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
	cmpq	_ng_deadnode@GOTPCREL(%rip), %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movl	20(%rdi), %edi
	callq	_CURVNET_SET
	leaq	16(%rbx), %rdi
	callq	_refcount_release
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	8(%rbx), %rax
	decl	(%rax)
	xorl	%eax, %eax
	callq	_NAMEHASH_WLOCK
	movq	%rbx, %rdi
	callq	_NG_NODE_HAS_NAME
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_V_ng_named_nodes@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	_nd_nodes@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
LBB0_4:
	xorl	%eax, %eax
	callq	_NAMEHASH_WUNLOCK
	xorl	%eax, %eax
	callq	_IDHASH_WLOCK
	movq	_V_ng_nodes@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	_nd_idnodes@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	xorl	%eax, %eax
	callq	_IDHASH_WUNLOCK
	movq	%rbx, %rdi
	callq	_mtx_destroy
	movq	%rbx, %rdi
	callq	_NG_FREE_NODE
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CURVNET_RESTORE                ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ng_deadnode,24,3               ## @ng_deadnode
	.comm	_V_ng_named_nodes,4,2           ## @V_ng_named_nodes
	.comm	_nd_nodes,4,2                   ## @nd_nodes
	.comm	_V_ng_nodes,4,2                 ## @V_ng_nodes
	.comm	_nd_idnodes,4,2                 ## @nd_idnodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_unref_node                  ; -- Begin function ng_unref_node
	.p2align	2
_ng_unref_node:                         ; @ng_unref_node
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ng_deadnode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ng_deadnode@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.1:
	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, #20]
	bl	_CURVNET_SET
	add	x0, x19, #16
	bl	_refcount_release
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	bl	_NAMEHASH_WLOCK
	mov	x0, x19
	bl	_NG_NODE_HAS_NAME
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _V_ng_named_nodes@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V_ng_named_nodes@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
Lloh4:
	adrp	x8, _nd_nodes@GOTPAGE
Lloh5:
	ldr	x8, [x8, _nd_nodes@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LIST_REMOVE
LBB0_4:
	bl	_NAMEHASH_WUNLOCK
	bl	_IDHASH_WLOCK
Lloh7:
	adrp	x8, _V_ng_nodes@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V_ng_nodes@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
Lloh9:
	adrp	x8, _nd_idnodes@GOTPAGE
Lloh10:
	ldr	x8, [x8, _nd_idnodes@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LIST_REMOVE
	bl	_IDHASH_WUNLOCK
	mov	x0, x19
	bl	_mtx_destroy
	mov	x0, x19
	bl	_NG_FREE_NODE
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CURVNET_RESTORE
LBB0_6:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ng_deadnode,24,3               ; @ng_deadnode
	.comm	_V_ng_named_nodes,4,2           ; @V_ng_named_nodes
	.comm	_nd_nodes,4,2                   ; @nd_nodes
	.comm	_V_ng_nodes,4,2                 ; @V_ng_nodes
	.comm	_nd_idnodes,4,2                 ; @nd_idnodes
.subsections_via_symbols
