	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_bt3c_shutdown
_ng_bt3c_shutdown:                      ## @ng_bt3c_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_NG_NODE_PRIVATE
	movl	%eax, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_NG_NODE_SET_PRIVATE
	movq	%rbx, %rdi
	callq	_NG_NODE_UNREF
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.1:
	movslq	%r14d, %rbx
	movq	_typestruct@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_ng_make_node_common
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_device_printf
	movq	$0, (%rbx)
	jmp	LBB0_6
LBB0_3:
	movq	(%rbx), %r14
	movl	8(%rbx), %edi
	callq	_device_get_nameunit
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ng_name_node
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_device_printf
	movq	(%rbx), %rdi
	callq	_NG_NODE_UNREF
	movq	$0, (%rbx)
	jmp	LBB0_6
LBB0_5:
	movq	(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_NG_NODE_SET_PRIVATE
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_typestruct,4,2                 ## @typestruct
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not create Netgraph node\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not name Netgraph node\n"

	.no_dead_strip	_ng_bt3c_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_bt3c_shutdown
_ng_bt3c_shutdown:                      ; @ng_bt3c_shutdown
	.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	x20, x0
	bl	_NG_NODE_PRIVATE
	mov	x19, x0
	mov	x0, x20
	mov	x1, #0
	bl	_NG_NODE_SET_PRIVATE
	mov	x0, x20
	bl	_NG_NODE_UNREF
	cbz	w19, LBB0_6
; %bb.1:
	sxtw	x19, w19
Lloh0:
	adrp	x0, _typestruct@GOTPAGE
Lloh1:
	ldr	x0, [x0, _typestruct@GOTPAGEOFF]
	mov	x1, x19
	bl	_ng_make_node_common
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
	str	xzr, [x19]
	b	LBB0_6
LBB0_3:
	ldr	x20, [x19]
	ldr	w0, [x19, #8]
	bl	_device_get_nameunit
	mov	x1, x0
	mov	x0, x20
	bl	_ng_name_node
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_device_printf
	ldr	x0, [x19]
	bl	_NG_NODE_UNREF
	str	xzr, [x19]
	b	LBB0_6
LBB0_5:
	ldr	x0, [x19]
	mov	x1, x19
	bl	_NG_NODE_SET_PRIVATE
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_typestruct,4,2                 ; @typestruct
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not create Netgraph node\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not name Netgraph node\n"

	.no_dead_strip	_ng_bt3c_shutdown
.subsections_via_symbols
