	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_link_event
_i40e_link_event:                       ## @i40e_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	88(%rdi), %rcx
	movq	(%rcx,%rax,8), %r14
	addq	$40, %rdi
	movl	$1, 40(%rbx)
	movl	56(%rbx), %r13d
	movq	_I40E_AQ_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	-44(%rbp), %rsi
	callq	_i40e_get_link_status
	movq	%rax, %r15
	movq	_I40E_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_15
## %bb.1:
	andl	%r13d, %r12d
	movq	___I40E_TEMP_LINK_POLLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	80(%rbx), %esi
	callq	_clear_bit
	movl	-44(%rbp), %esi
	cmpl	%r12d, %esi
	jne	LBB0_6
## %bb.2:
	movq	48(%rbx), %rax
	movl	%r12d, %esi
	cmpq	64(%rbx), %rax
	jne	LBB0_6
## %bb.3:
	movq	___I40E_VSI_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_14
## %bb.4:
	movl	-44(%rbp), %r15d
	movl	(%r14), %edi
	callq	_netif_carrier_ok
	cmpl	%eax, %r15d
	je	LBB0_14
## %bb.5:
	movl	-44(%rbp), %esi
LBB0_6:
	movq	%r14, %rdi
	callq	_i40e_print_link_message
	movq	8(%rbx), %rax
	movq	_I40E_MAX_VEB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_9
## %bb.7:
	movq	32(%rbx), %rcx
	movq	(%rcx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	movl	-44(%rbp), %esi
	callq	_i40e_veb_link_event
	cmpq	$0, 24(%rbx)
	jne	LBB0_11
	jmp	LBB0_12
LBB0_15:
	movq	___I40E_TEMP_LINK_POLLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	80(%rbx), %esi
	callq	_set_bit
	movq	72(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_dev_dbg
	jmp	LBB0_14
LBB0_9:
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	callq	_i40e_vsi_link_event
	cmpq	$0, 24(%rbx)
	je	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	callq	_i40e_vc_notify_link_state
LBB0_12:
	movq	_I40E_FLAG_PTP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_i40e_ptp_set_increment
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_AQ_LINK_UP,4,2            ## @I40E_AQ_LINK_UP
	.comm	_I40E_SUCCESS,8,3               ## @I40E_SUCCESS
	.comm	___I40E_TEMP_LINK_POLLING,4,2   ## @__I40E_TEMP_LINK_POLLING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't get link state, status: %d\n"

	.comm	___I40E_VSI_DOWN,4,2            ## @__I40E_VSI_DOWN
	.comm	_I40E_MAX_VEB,8,3               ## @I40E_MAX_VEB
	.comm	_I40E_FLAG_PTP,4,2              ## @I40E_FLAG_PTP
	.no_dead_strip	_i40e_link_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_link_event
_i40e_link_event:                       ; @i40e_link_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	x8, [x0, #88]
	ldr	x9, [x0]
	ldr	x20, [x8, x9, lsl #3]
	mov	w8, #1
	str	w8, [x0, #40]!
	ldr	w22, [x0, #16]
Lloh0:
	adrp	x8, _I40E_AQ_LINK_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_AQ_LINK_UP@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	add	x1, sp, #12
	bl	_i40e_get_link_status
Lloh3:
	adrp	x8, _I40E_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.1:
	and	w21, w23, w22
Lloh6:
	adrp	x8, ___I40E_TEMP_LINK_POLLING@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___I40E_TEMP_LINK_POLLING@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x19, #80]
	bl	_clear_bit
	ldr	w1, [sp, #12]
	cmp	w1, w21
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x19, #48]
	ldr	x9, [x19, #64]
	mov	x1, x21
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, ___I40E_VSI_DOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, ___I40E_VSI_DOWN@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	bl	_test_bit
	cbnz	x0, LBB0_14
; %bb.4:
	ldr	w21, [sp, #12]
	ldr	w0, [x20]
	bl	_netif_carrier_ok
	cmp	w21, w0
	b.eq	LBB0_14
; %bb.5:
	ldr	w1, [sp, #12]
LBB0_6:
	mov	x0, x20
	bl	_i40e_print_link_message
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _I40E_MAX_VEB@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I40E_MAX_VEB@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_10
; %bb.7:
	ldr	x9, [x19, #32]
	ldr	x0, [x9, x8, lsl #3]
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w1, [sp, #12]
	bl	_i40e_veb_link_event
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_11
	b	LBB0_12
LBB0_9:
	mov	x21, x0
Lloh15:
	adrp	x8, ___I40E_TEMP_LINK_POLLING@GOTPAGE
Lloh16:
	ldr	x8, [x8, ___I40E_TEMP_LINK_POLLING@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x19, #80]
	bl	_set_bit
	ldr	x0, [x19, #72]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	b	LBB0_14
LBB0_10:
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_i40e_vsi_link_event
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_i40e_vc_notify_link_state
LBB0_12:
	ldr	w8, [x19, #16]
Lloh20:
	adrp	x9, _I40E_FLAG_PTP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _I40E_FLAG_PTP@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_i40e_ptp_set_increment
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_AQ_LINK_UP,4,2            ; @I40E_AQ_LINK_UP
	.comm	_I40E_SUCCESS,8,3               ; @I40E_SUCCESS
	.comm	___I40E_TEMP_LINK_POLLING,4,2   ; @__I40E_TEMP_LINK_POLLING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't get link state, status: %d\n"

	.comm	___I40E_VSI_DOWN,4,2            ; @__I40E_VSI_DOWN
	.comm	_I40E_MAX_VEB,8,3               ; @I40E_MAX_VEB
	.comm	_I40E_FLAG_PTP,4,2              ; @I40E_FLAG_PTP
	.no_dead_strip	_i40e_link_event
.subsections_via_symbols
