	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iface_khandler_deregister
_iface_khandler_deregister:             ## @iface_khandler_deregister
	.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	_vnet_mtx@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	_num_vnets@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	-1(%rbx), %ecx
	movl	%ecx, (%rax)
	movq	%r14, %rdi
	callq	_mtx_unlock
	cmpl	$1, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_ifnet_arrival_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ipfw_ifattach_event@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVENTHANDLER_DEREGISTER
	movq	_ifnet_departure_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ipfw_ifdetach_event@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_EVENTHANDLER_DEREGISTER        ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vnet_mtx,4,2                   ## @vnet_mtx
	.comm	_num_vnets,4,2                  ## @num_vnets
	.comm	_ifnet_arrival_event,4,2        ## @ifnet_arrival_event
	.comm	_ipfw_ifattach_event,4,2        ## @ipfw_ifattach_event
	.comm	_ifnet_departure_event,4,2      ## @ifnet_departure_event
	.comm	_ipfw_ifdetach_event,4,2        ## @ipfw_ifdetach_event
	.no_dead_strip	_iface_khandler_deregister
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iface_khandler_deregister
_iface_khandler_deregister:             ; @iface_khandler_deregister
	.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
Lloh0:
	adrp	x19, _vnet_mtx@GOTPAGE
Lloh1:
	ldr	x19, [x19, _vnet_mtx@GOTPAGEOFF]
	mov	x0, x19
	bl	_mtx_lock
Lloh2:
	adrp	x8, _num_vnets@GOTPAGE
Lloh3:
	ldr	x8, [x8, _num_vnets@GOTPAGEOFF]
	ldr	w20, [x8]
	subs	w9, w20, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_mtx_unlock
	cmp	w20, #1
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _ifnet_arrival_event@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ifnet_arrival_event@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _ipfw_ifattach_event@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ipfw_ifattach_event@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_EVENTHANDLER_DEREGISTER
Lloh10:
	adrp	x8, _ifnet_departure_event@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ifnet_departure_event@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _ipfw_ifdetach_event@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ipfw_ifdetach_event@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_EVENTHANDLER_DEREGISTER
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_vnet_mtx,4,2                   ; @vnet_mtx
	.comm	_num_vnets,4,2                  ; @num_vnets
	.comm	_ifnet_arrival_event,4,2        ; @ifnet_arrival_event
	.comm	_ipfw_ifattach_event,4,2        ; @ipfw_ifattach_event
	.comm	_ifnet_departure_event,4,2      ; @ifnet_departure_event
	.comm	_ipfw_ifdetach_event,4,2        ; @ipfw_ifdetach_event
	.no_dead_strip	_iface_khandler_deregister
.subsections_via_symbols
