	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_link_event
_ice_link_event:                        ## @ice_link_event
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movups	(%rsi), %xmm0
	movups	%xmm0, 16(%rsi)
	movq	_ICE_AQ_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	andl	16(%rsi), %eax
	setne	%r14b
	movq	24(%rsi), %r15
	movq	%rsi, %rdi
	callq	_ice_update_link_info
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	8(%r13), %rdi
	movl	32(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_2:
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	jne	LBB0_4
## %bb.3:
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_13
LBB0_4:
	movq	%r13, %r15
	movq	%r13, %rdi
	callq	_ice_get_main_vsi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %r13
	cmpl	$0, 4(%rax)
	je	LBB0_6
## %bb.7:
	movq	_ICE_FLAG_NO_MEDIA@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	16(%r15), %esi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	_ICE_AQ_MEDIA_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_9
LBB0_11:
	movq	%r13, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_ice_vsi_link_event
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_ice_print_link_msg
	cmpq	$0, (%r15)
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_ice_vc_notify_link_state
	jmp	LBB0_13
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%r14), %edi
	movl	16(%r15), %esi
	callq	_set_bit
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ice_aq_set_link_restart_an
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%ebx, %r12d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_AQ_LINK_UP,4,2             ## @ICE_AQ_LINK_UP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to update link status and re-enable link events for port %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ICE_FLAG_NO_MEDIA,4,2          ## @ICE_FLAG_NO_MEDIA
	.comm	_ICE_AQ_MEDIA_AVAILABLE,4,2     ## @ICE_AQ_MEDIA_AVAILABLE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set link down, VSI %d error %d\n"

	.no_dead_strip	_ice_link_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_link_event
_ice_link_event:                        ; @ice_link_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	q0, [x1]
	str	q0, [x1, #16]
	ldr	w8, [x1, #16]
Lloh0:
	adrp	x9, _ICE_AQ_LINK_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICE_AQ_LINK_UP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w24, ne
	ldr	x25, [x1, #24]
	mov	x0, x1
	bl	_ice_update_link_info
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	ldr	w2, [x22, #32]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_2:
	cmp	w24, w21
	ccmp	x25, x23, #0, eq
	b.eq	LBB0_10
; %bb.3:
	mov	x0, x19
	bl	_ice_get_main_vsi
	cbz	x0, LBB0_9
; %bb.4:
	mov	x23, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_9
; %bb.5:
Lloh5:
	adrp	x24, _ICE_FLAG_NO_MEDIA@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ICE_FLAG_NO_MEDIA@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w1, [x19, #16]
	bl	_test_bit
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w8, [x22]
Lloh7:
	adrp	x9, _ICE_AQ_MEDIA_AVAILABLE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ICE_AQ_MEDIA_AVAILABLE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_7:
	mov	x0, x23
	mov	x1, x21
	bl	_ice_vsi_link_event
	mov	x0, x23
	mov	x1, x21
	bl	_ice_print_link_msg
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_ice_vc_notify_link_state
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	ldr	w0, [x24]
	ldr	w1, [x19, #16]
	bl	_set_bit
	mov	x0, x22
	mov	w1, #0
	mov	x2, #0
	bl	_ice_aq_set_link_restart_an
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.12:
	ldr	x0, [x19, #8]
	ldr	w2, [x23]
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_AQ_LINK_UP,4,2             ; @ICE_AQ_LINK_UP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to update link status and re-enable link events for port %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ICE_FLAG_NO_MEDIA,4,2          ; @ICE_FLAG_NO_MEDIA
	.comm	_ICE_AQ_MEDIA_AVAILABLE,4,2     ; @ICE_AQ_MEDIA_AVAILABLE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set link down, VSI %d error %d\n"

	.no_dead_strip	_ice_link_event
.subsections_via_symbols
