	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_h4_shutdown
_ng_h4_shutdown:                        ## @ng_h4_shutdown
	.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
	movl	%edi, %r15d
	callq	_NG_NODE_PRIVATE
	movslq	%eax, %rbx
	movq	%rbx, %rdi
	callq	_NG_H4_LOCK
	movl	4(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_NG_H4_UNLOCK
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_NG_NODE_SET_PRIVATE
	movq	%rbx, %rdi
	callq	__IF_DRAIN
	movl	%r15d, %edi
	callq	_NG_NODE_UNREF
	movq	%rbx, %rdi
	callq	_mtx_destroy
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_bzero
	movq	_M_NETGRAPH_H4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_3
LBB0_1:
	movl	%r15d, %edi
	callq	_NG_NODE_REVIVE
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_M_NETGRAPH_H4,4,2              ## @M_NETGRAPH_H4
	.no_dead_strip	_ng_h4_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_h4_shutdown
_ng_h4_shutdown:                        ; @ng_h4_shutdown
	.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	x20, x0
	bl	_NG_NODE_PRIVATE
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x19, w0
	mov	x0, x19
	bl	_NG_H4_LOCK
	ldr	w21, [x19, #4]
	mov	x0, x19
	bl	_NG_H4_UNLOCK
	cbz	w21, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, #0
	bl	_NG_NODE_SET_PRIVATE
	mov	x0, x19
	bl	__IF_DRAIN
	mov	x0, x20
	bl	_NG_NODE_UNREF
	mov	x0, x19
	bl	_mtx_destroy
	mov	x0, x19
	mov	w1, #8
	bl	_bzero
Lloh0:
	adrp	x8, _M_NETGRAPH_H4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_NETGRAPH_H4@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_free
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_NG_NODE_REVIVE
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_3:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_M_NETGRAPH_H4,4,2              ; @M_NETGRAPH_H4
	.no_dead_strip	_ng_h4_shutdown
.subsections_via_symbols
