	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_link_state_change
_do_link_state_change:                  ## @do_link_state_change
	.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	%esi, %r15d
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	movl	72(%rdi), %edi
	callq	_CURVNET_SET
	movq	%rbx, %rdi
	callq	_rt_ifmsg
	cmpq	$0, 64(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_vlan_link_state_p
LBB0_2:
	movq	8(%rbx), %rax
	movq	_IFT_ETHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_IFT_L2VLAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_4:
	cmpq	$0, 56(%rbx)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ng_ether_link_state_p
LBB0_6:
	cmpq	$0, 48(%rbx)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_carp_linkstate_p
LBB0_8:
	cmpq	$0, 40(%rbx)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	*32(%rbx)
LBB0_10:
	cmpq	$0, 24(%rbx)
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_lagg_linkstate_p
LBB0_12:
	movq	_curvnet@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_DEFAULT_VNET
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	16(%rbx), %esi
	movq	_LINK_STATE_UP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rdi
	xorl	%ecx, %ecx
	callq	_devctl_notify
LBB0_14:
	cmpl	$2, %r15d
	jl	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_if_printf
LBB0_16:
	movq	_log_link_state_change@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.17:
	movq	_LINK_STATE_UP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.6(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_if_printf
LBB0_18:
	movq	_ifnet_link_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_EVENTHANDLER_INVOKE
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CURVNET_RESTORE                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFT_ETHER,8,3                  ## @IFT_ETHER
	.comm	_IFT_L2VLAN,8,3                 ## @IFT_L2VLAN
	.comm	_curvnet,4,2                    ## @curvnet
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IFNET"

	.comm	_LINK_STATE_UP,4,2              ## @LINK_STATE_UP
L_.str.1:                               ## @.str.1
	.asciz	"LINK_UP"

L_.str.2:                               ## @.str.2
	.asciz	"LINK_DOWN"

L_.str.3:                               ## @.str.3
	.asciz	"%d link states coalesced\n"

	.comm	_log_link_state_change,8,3      ## @log_link_state_change
L_.str.4:                               ## @.str.4
	.asciz	"link state changed to %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"UP"

L_.str.6:                               ## @.str.6
	.asciz	"DOWN"

	.comm	_ifnet_link_event,4,2           ## @ifnet_link_event
	.no_dead_strip	_do_link_state_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_link_state_change
_do_link_state_change:                  ; @do_link_state_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x20, x0
	ldr	w19, [x0]
	ldr	w0, [x0, #72]
	bl	_CURVNET_SET
	mov	x0, x20
	bl	_rt_ifmsg
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_vlan_link_state_p
LBB0_2:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _IFT_ETHER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFT_ETHER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _IFT_L2VLAN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IFT_L2VLAN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_ng_ether_link_state_p
LBB0_5:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_carp_linkstate_p
LBB0_7:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x20, #32]
	mov	x0, x20
	blr	x8
LBB0_9:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	bl	_lagg_linkstate_p
LBB0_11:
Lloh6:
	adrp	x8, _curvnet@GOTPAGE
Lloh7:
	ldr	x8, [x8, _curvnet@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_IS_DEFAULT_VNET
Lloh9:
	adrp	x22, _LINK_STATE_UP@GOTPAGE
Lloh10:
	ldr	x22, [x22, _LINK_STATE_UP@GOTPAGEOFF]
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w1, [x20, #16]
	ldr	w8, [x22]
Lloh11:
	adrp	x9, l_.str.2@PAGE
Lloh12:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh13:
	adrp	x10, l_.str.1@PAGE
Lloh14:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w19, w8
	csel	x2, x10, x9, eq
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, #0
	bl	_devctl_notify
LBB0_13:
	cmp	w21, #2
	b.lt	LBB0_15
; %bb.14:
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_if_printf
LBB0_15:
Lloh19:
	adrp	x8, _log_link_state_change@GOTPAGE
Lloh20:
	ldr	x8, [x8, _log_link_state_change@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.16:
	ldr	w8, [x22]
Lloh22:
	adrp	x9, l_.str.6@PAGE
Lloh23:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh24:
	adrp	x10, l_.str.5@PAGE
Lloh25:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	w19, w8
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_if_printf
LBB0_17:
Lloh28:
	adrp	x8, _ifnet_link_event@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ifnet_link_event@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x19
	bl	_EVENTHANDLER_INVOKE
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_CURVNET_RESTORE
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_IFT_ETHER,8,3                  ; @IFT_ETHER
	.comm	_IFT_L2VLAN,8,3                 ; @IFT_L2VLAN
	.comm	_curvnet,4,2                    ; @curvnet
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IFNET"

	.comm	_LINK_STATE_UP,4,2              ; @LINK_STATE_UP
l_.str.1:                               ; @.str.1
	.asciz	"LINK_UP"

l_.str.2:                               ; @.str.2
	.asciz	"LINK_DOWN"

l_.str.3:                               ; @.str.3
	.asciz	"%d link states coalesced\n"

	.comm	_log_link_state_change,8,3      ; @log_link_state_change
l_.str.4:                               ; @.str.4
	.asciz	"link state changed to %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"UP"

l_.str.6:                               ; @.str.6
	.asciz	"DOWN"

	.comm	_ifnet_link_event,4,2           ; @ifnet_link_event
	.no_dead_strip	_do_link_state_change
.subsections_via_symbols
