	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iface_khandler_register
_iface_khandler_register:               ## @iface_khandler_register
	.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
	movq	(%rax), %rbx
	leaq	1(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	%r14, %rdi
	callq	_mtx_unlock
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_ifnet_departure_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ipfw_kifhandler@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_EVENTHANDLER_PRI_ANY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	xorl	%edx, %edx
	callq	_EVENTHANDLER_REGISTER
	movq	_ipfw_ifdetach_event@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_ifnet_arrival_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movl	(%rbx), %ecx
	movl	$1, %edx
	callq	_EVENTHANDLER_REGISTER
	movq	_ipfw_ifattach_event@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vnet_mtx,4,2                   ## @vnet_mtx
	.comm	_num_vnets,8,3                  ## @num_vnets
	.comm	_ifnet_departure_event,4,2      ## @ifnet_departure_event
	.comm	_ipfw_kifhandler,4,2            ## @ipfw_kifhandler
	.comm	_EVENTHANDLER_PRI_ANY,4,2       ## @EVENTHANDLER_PRI_ANY
	.comm	_ipfw_ifdetach_event,8,3        ## @ipfw_ifdetach_event
	.comm	_ifnet_arrival_event,4,2        ## @ifnet_arrival_event
	.comm	_ipfw_ifattach_event,8,3        ## @ipfw_ifattach_event
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"IPFW: starting up interface tracker"

	.no_dead_strip	_iface_khandler_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iface_khandler_register
_iface_khandler_register:               ; @iface_khandler_register
	.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	x20, [x8]
	add	x9, x20, #1
	str	x9, [x8]
	mov	x0, x19
	bl	_mtx_unlock
	cbnz	x20, LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_str@PAGE
Lloh5:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh6:
	adrp	x8, _ifnet_departure_event@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ifnet_departure_event@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x19, _ipfw_kifhandler@GOTPAGE
Lloh10:
	ldr	x19, [x19, _ipfw_kifhandler@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh11:
	adrp	x20, _EVENTHANDLER_PRI_ANY@GOTPAGE
Lloh12:
	ldr	x20, [x20, _EVENTHANDLER_PRI_ANY@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	x2, #0
	bl	_EVENTHANDLER_REGISTER
Lloh13:
	adrp	x8, _ipfw_ifdetach_event@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ipfw_ifdetach_event@GOTPAGEOFF]
Lloh15:
	str	x0, [x8]
Lloh16:
	adrp	x8, _ifnet_arrival_event@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ifnet_arrival_event@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w1, [x19]
	ldr	w3, [x20]
	mov	w2, #1
	bl	_EVENTHANDLER_REGISTER
Lloh19:
	adrp	x8, _ipfw_ifattach_event@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ipfw_ifattach_event@GOTPAGEOFF]
Lloh21:
	str	x0, [x8]
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 AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_vnet_mtx,4,2                   ; @vnet_mtx
	.comm	_num_vnets,8,3                  ; @num_vnets
	.comm	_ifnet_departure_event,4,2      ; @ifnet_departure_event
	.comm	_ipfw_kifhandler,4,2            ; @ipfw_kifhandler
	.comm	_EVENTHANDLER_PRI_ANY,4,2       ; @EVENTHANDLER_PRI_ANY
	.comm	_ipfw_ifdetach_event,8,3        ; @ipfw_ifdetach_event
	.comm	_ifnet_arrival_event,4,2        ; @ifnet_arrival_event
	.comm	_ipfw_ifattach_event,8,3        ; @ipfw_ifattach_event
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"IPFW: starting up interface tracker"

	.no_dead_strip	_iface_khandler_register
.subsections_via_symbols
