	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_vlan_disconnect
_ng_vlan_disconnect:                    ## @ng_vlan_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_NG_HOOK_NODE
	movl	%eax, %edi
	callq	_NG_NODE_PRIVATE
	movq	%rax, %rbx
	cmpq	%r14, 16(%rax)
	je	LBB0_1
## %bb.2:
	cmpq	%r14, 8(%rbx)
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_NG_HOOK_PRIVATE
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_HOOK_VLAN_SET
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%rbx), %rbx
	movq	%r15, %rdi
	callq	_EVL_VLANOFTAG
	leaq	(%rbx,%rax,8), %rbx
	jmp	LBB0_6
LBB0_1:
	addq	$16, %rbx
	jmp	LBB0_6
LBB0_3:
	addq	$8, %rbx
LBB0_6:
	movq	$0, (%rbx)
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_NG_HOOK_SET_PRIVATE
	movq	%r14, %rdi
	callq	_NG_HOOK_NODE
	movl	%eax, %edi
	callq	_NG_NODE_NUMHOOKS
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_NG_HOOK_NODE
	movl	%eax, %edi
	callq	_NG_NODE_IS_VALID
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_NG_HOOK_NODE
	movl	%eax, %edi
	callq	_ng_rmnode_self
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ng_vlan_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_vlan_disconnect
_ng_vlan_disconnect:                    ; @ng_vlan_disconnect
	.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	x19, x0
	bl	_NG_HOOK_NODE
	bl	_NG_NODE_PRIVATE
	mov	x8, x0
	ldr	x9, [x8, #16]!
	cmp	x9, x19
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x8, x0
	ldr	x9, [x8, #8]!
	cmp	x9, x19
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_NG_HOOK_PRIVATE
	mov	x21, x0
	bl	_IS_HOOK_VLAN_SET
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x20, [x20]
	mov	x0, x21
	bl	_EVL_VLANOFTAG
	add	x8, x20, x0, lsl #3
LBB0_4:
	str	xzr, [x8]
LBB0_5:
	mov	x0, x19
	mov	x1, #0
	bl	_NG_HOOK_SET_PRIVATE
	mov	x0, x19
	bl	_NG_HOOK_NODE
	bl	_NG_NODE_NUMHOOKS
	cbnz	x0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_NG_HOOK_NODE
	bl	_NG_NODE_IS_VALID
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_NG_HOOK_NODE
	bl	_ng_rmnode_self
LBB0_8:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ng_vlan_disconnect
.subsections_via_symbols
