	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_set_vf_link_state          ## -- Begin function ice_set_vf_link_state
	.p2align	4, 0x90
_ice_set_vf_link_state:                 ## @ice_set_vf_link_state
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	(%rax), %r15
	movl	$0, -48(%rbp)
	cmpl	%ebx, (%r15)
	jle	LBB0_1
## %bb.4:
	movq	16(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%r15), %r12
	movslq	%ebx, %r13
	shlq	$4, %r13
	movq	_ICE_VF_STATE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r12,%r13), %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	(%r12,%r13), %rdi
	movq	_VIRTCHNL_EVENT_LINK_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_PF_EVENT_SEVERITY_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	cmpl	$128, %r14d
	je	LBB0_7
## %bb.8:
	cmpl	$130, %r14d
	je	LBB0_12
## %bb.9:
	cmpl	$129, %r14d
	jne	LBB0_2
## %bb.10:
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_1:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_7:
	movl	$1, %edx
LBB0_11:
	movl	$1, (%rdi)
	movl	%edx, 4(%r12,%r13)
	leaq	-56(%rbp), %rsi
	callq	_ice_set_pfe_link_forced
	jmp	LBB0_13
LBB0_12:
	movl	$0, (%rdi)
	movq	_ICE_AQ_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	andl	(%rax), %ecx
	movl	%ecx, 4(%r12,%r13)
	movl	4(%rax), %edx
	leaq	-56(%rbp), %rsi
	callq	_ice_set_pfe_link
LBB0_13:
	addq	$16, %r15
	movl	8(%r12,%r13), %esi
	movq	_VIRTCHNL_OP_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VIRTCHNL_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	$0, (%rsp)
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	movl	$12, %r9d
	callq	_ice_aq_send_msg_to_vf
	xorl	%eax, %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid VF Identifier %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ICE_VF_STATE_INIT,4,2          ## @ICE_VF_STATE_INIT
L_.str.1:                               ## @.str.1
	.asciz	"vf %d in reset. Try again.\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_VIRTCHNL_EVENT_LINK_CHANGE,4,2 ## @VIRTCHNL_EVENT_LINK_CHANGE
	.comm	_PF_EVENT_SEVERITY_INFO,4,2     ## @PF_EVENT_SEVERITY_INFO
	.comm	_ICE_AQ_LINK_UP,4,2             ## @ICE_AQ_LINK_UP
	.comm	_VIRTCHNL_OP_EVENT,4,2          ## @VIRTCHNL_OP_EVENT
	.comm	_VIRTCHNL_STATUS_SUCCESS,4,2    ## @VIRTCHNL_STATUS_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_set_vf_link_state          ; -- Begin function ice_set_vf_link_state
	.p2align	2
_ice_set_vf_link_state:                 ; @ice_set_vf_link_state
	.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	x21, x2
	mov	x22, x1
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x25, [x8]
	str	wzr, [sp, #8]
	ldr	w8, [x25]
	cmp	w8, w22
	b.le	LBB0_6
; %bb.1:
	mov	x19, x25
	ldp	x24, x23, [x19, #16]!
	add	x20, x23, w22, sxtw #4
Lloh0:
	adrp	x8, _ICE_VF_STATE_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_VF_STATE_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_test_bit
	cbz	w0, LBB0_8
; %bb.2:
	sxtw	x22, w22
Lloh3:
	adrp	x8, _VIRTCHNL_EVENT_LINK_CHANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIRTCHNL_EVENT_LINK_CHANGE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PF_EVENT_SEVERITY_INFO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PF_EVENT_SEVERITY_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp]
	mov	w8, #1
	cmp	w21, #128
	b.eq	LBB0_10
; %bb.3:
	cmp	w21, #130
	b.eq	LBB0_12
; %bb.4:
	cmp	w21, #129
	b.ne	LBB0_7
; %bb.5:
	mov	w2, #0
	b	LBB0_11
LBB0_6:
	ldr	x0, [x25, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
LBB0_7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	ldr	x0, [x25, #8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_dev_err
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_10:
	mov	w2, #1
LBB0_11:
	str	w8, [x20]
	add	x8, x23, x22, lsl #4
	str	w2, [x8, #4]
	mov	x1, sp
	mov	x0, x20
	bl	_ice_set_pfe_link_forced
	b	LBB0_13
LBB0_12:
	str	wzr, [x20]
Lloh17:
	adrp	x8, _ICE_AQ_LINK_UP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ICE_AQ_LINK_UP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldp	w9, w2, [x24]
	and	w3, w8, w9
	add	x8, x23, x22, lsl #4
	str	w3, [x8, #4]
	mov	x1, sp
	mov	x0, x20
	bl	_ice_set_pfe_link
LBB0_13:
	add	x8, x23, x22, lsl #4
	ldr	w1, [x8, #8]
Lloh20:
	adrp	x8, _VIRTCHNL_OP_EVENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VIRTCHNL_OP_EVENT@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _VIRTCHNL_STATUS_SUCCESS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VIRTCHNL_STATUS_SUCCESS@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x4, sp
	mov	x0, x19
	mov	w5, #12
	mov	x6, #0
	bl	_ice_aq_send_msg_to_vf
	mov	w0, #0
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid VF Identifier %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ICE_VF_STATE_INIT,4,2          ; @ICE_VF_STATE_INIT
l_.str.1:                               ; @.str.1
	.asciz	"vf %d in reset. Try again.\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_VIRTCHNL_EVENT_LINK_CHANGE,4,2 ; @VIRTCHNL_EVENT_LINK_CHANGE
	.comm	_PF_EVENT_SEVERITY_INFO,4,2     ; @PF_EVENT_SEVERITY_INFO
	.comm	_ICE_AQ_LINK_UP,4,2             ; @ICE_AQ_LINK_UP
	.comm	_VIRTCHNL_OP_EVENT,4,2          ; @VIRTCHNL_OP_EVENT
	.comm	_VIRTCHNL_STATUS_SUCCESS,4,2    ; @VIRTCHNL_STATUS_SUCCESS
.subsections_via_symbols
