	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function link_status_event_handler
_link_status_event_handler:             ## @link_status_event_handler
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	(%rsi), %r13
	movq	_HINIC_LINK_STATE_UP@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_down
	movq	_HINIC_LINK_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	cmpq	%r14, %r13
	jne	LBB0_4
## %bb.1:
	orl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_HINIC_INTF_UP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%eax
	testl	%eax, %edx
	jne	LBB0_3
## %bb.2:
	movl	4(%rbx), %edi
	callq	_netif_carrier_on
	movl	4(%rbx), %edi
	callq	_netif_tx_wake_all_queues
LBB0_3:
	movq	%r12, %rdi
	callq	_up
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	notl	%eax
	andl	%eax, (%rbx)
	movl	4(%rbx), %edi
	callq	_netif_carrier_off
	movl	4(%rbx), %edi
	callq	_netif_tx_disable
	movq	%r12, %rdi
	callq	_up
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rcx
LBB0_5:
	movq	%rbx, %rdi
	callq	_netif_info
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 8(%rax)
	movl	$16, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HINIC_LINK_STATE_UP,8,3        ## @HINIC_LINK_STATE_UP
	.comm	_HINIC_LINK_UP,4,2              ## @HINIC_LINK_UP
	.comm	_HINIC_INTF_UP,4,2              ## @HINIC_INTF_UP
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HINIC_Link is UP\n"

L_.str.1:                               ## @.str.1
	.asciz	"HINIC_Link is DOWN\n"

	.no_dead_strip	_link_status_event_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function link_status_event_handler
_link_status_event_handler:             ; @link_status_event_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x20, x3
	mov	x21, x0
	ldr	x23, [x1]
Lloh0:
	adrp	x8, _HINIC_LINK_STATE_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HINIC_LINK_STATE_UP@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	add	x22, x0, #8
	mov	x0, x22
	bl	_down
Lloh3:
	adrp	x9, _HINIC_LINK_UP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HINIC_LINK_UP@GOTPAGEOFF]
	ldr	w8, [x9]
	cmp	x23, x24
	b.ne	LBB0_4
; %bb.1:
	ldr	w10, [x21]
	orr	w8, w10, w8
	str	w8, [x21]
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _HINIC_INTF_UP@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HINIC_INTF_UP@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bics	wzr, w9, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x21, #4]
	bl	_netif_carrier_on
	ldr	w0, [x21, #4]
	bl	_netif_tx_wake_all_queues
LBB0_3:
	mov	x0, x22
	bl	_up
Lloh8:
	adrp	x8, _drv@GOTPAGE
Lloh9:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x21, #4]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldp	w9, w0, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
	bl	_netif_carrier_off
	ldr	w0, [x21, #4]
	bl	_netif_tx_disable
	mov	x0, x22
	bl	_up
Lloh13:
	adrp	x8, _drv@GOTPAGE
Lloh14:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x21, #4]
Lloh16:
	adrp	x3, l_.str.1@PAGE
Lloh17:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x21
	bl	_netif_info
	str	xzr, [x20, #8]
	mov	w8, #16
	str	w8, [x19]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HINIC_LINK_STATE_UP,8,3        ; @HINIC_LINK_STATE_UP
	.comm	_HINIC_LINK_UP,4,2              ; @HINIC_LINK_UP
	.comm	_HINIC_INTF_UP,4,2              ; @HINIC_INTF_UP
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HINIC_Link is UP\n"

l_.str.1:                               ; @.str.1
	.asciz	"HINIC_Link is DOWN\n"

	.no_dead_strip	_link_status_event_handler
.subsections_via_symbols
