	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_ndo_set_vf_link_state     ## -- Begin function i40e_ndo_set_vf_link_state
	.p2align	4, 0x90
_i40e_ndo_set_vf_link_state:            ## @i40e_ndo_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	___I40E_VIRTCHNL_OP_PENDING@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	4(%r15), %esi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	32(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_2:
	cmpl	%ebx, (%r15)
	jle	LBB0_3
## %bb.5:
	movq	24(%r15), %rax
	movslq	%ebx, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	16(%r15), %esi
	addl	(%rax,%rcx,4), %esi
	movq	_VIRTCHNL_EVENT_LINK_CHANGE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -36(%rbp)
	movq	_PF_EVENT_SEVERITY_INFO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -40(%rbp)
	cmpl	$128, %r14d
	je	LBB0_10
## %bb.6:
	cmpl	$129, %r14d
	je	LBB0_9
## %bb.7:
	cmpl	$130, %r14d
	jne	LBB0_4
## %bb.8:
	movl	$0, 4(%rax,%rcx,4)
	movq	_I40E_AQ_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%r15), %eax
	movl	%eax, -48(%rbp)
	movl	12(%r15), %eax
	jmp	LBB0_11
LBB0_3:
	movq	32(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_10:
	movabsq	$4294967297, %rdx               ## imm = 0x100000001
	movq	%rdx, 4(%rax,%rcx,4)
	movl	$1, -48(%rbp)
	movq	_VIRTCHNL_LINK_SPEED_40GB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_9:
	movq	$1, 4(%rax,%rcx,4)
	movl	$0, -48(%rbp)
	xorl	%eax, %eax
LBB0_11:
	leaq	8(%r15), %rdi
	movl	%eax, -44(%rbp)
	movq	_VIRTCHNL_OP_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r8
	xorl	%ecx, %ecx
	movl	$16, %r9d
	callq	_i40e_aq_send_msg_to_vf
LBB0_12:
	movl	(%r12), %edi
	movl	4(%r15), %esi
	callq	_clear_bit
LBB0_13:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___I40E_VIRTCHNL_OP_PENDING,4,2 ## @__I40E_VIRTCHNL_OP_PENDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to configure VFs, other operation is pending.\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"Invalid VF Identifier %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VIRTCHNL_EVENT_LINK_CHANGE,4,2 ## @VIRTCHNL_EVENT_LINK_CHANGE
	.comm	_PF_EVENT_SEVERITY_INFO,4,2     ## @PF_EVENT_SEVERITY_INFO
	.comm	_I40E_AQ_LINK_UP,4,2            ## @I40E_AQ_LINK_UP
	.comm	_VIRTCHNL_LINK_SPEED_40GB,4,2   ## @VIRTCHNL_LINK_SPEED_40GB
	.comm	_VIRTCHNL_OP_EVENT,4,2          ## @VIRTCHNL_OP_EVENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function i40e_ndo_set_vf_link_state
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_i40e_ndo_set_vf_link_state
	.p2align	2
_i40e_ndo_set_vf_link_state:            ; @i40e_ndo_set_vf_link_state
	.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	x19, x2
	mov	x20, x1
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x21, [x8]
Lloh0:
	adrp	x22, ___I40E_VIRTCHNL_OP_PENDING@GOTPAGE
Lloh1:
	ldr	x22, [x22, ___I40E_VIRTCHNL_OP_PENDING@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x21, #4]
	bl	_test_and_set_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x21, #32]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh4:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_13
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, w20
	b.le	LBB0_7
; %bb.3:
	ldr	x10, [x21, #24]
	sxtw	x11, w20
	mov	w8, #12
	smull	x8, w20, w8
	ldr	w8, [x10, x8]
	ldr	w9, [x21, #16]
Lloh7:
	adrp	x12, _VIRTCHNL_EVENT_LINK_CHANGE@GOTPAGE
Lloh8:
	ldr	x12, [x12, _VIRTCHNL_EVENT_LINK_CHANGE@GOTPAGEOFF]
Lloh9:
	ldr	w12, [x12]
Lloh10:
	adrp	x13, _PF_EVENT_SEVERITY_INFO@GOTPAGE
Lloh11:
	ldr	x13, [x13, _PF_EVENT_SEVERITY_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w13, [x13]
	stp	w13, w12, [sp, #8]
	cmp	w19, #128
	b.eq	LBB0_9
; %bb.4:
	cmp	w19, #129
	b.eq	LBB0_10
; %bb.5:
	cmp	w19, #130
	b.ne	LBB0_8
; %bb.6:
	mov	w12, #12
	madd	x10, x11, x12, x10
Lloh13:
	adrp	x11, _I40E_AQ_LINK_UP@GOTPAGE
Lloh14:
	ldr	x11, [x11, _I40E_AQ_LINK_UP@GOTPAGEOFF]
	str	wzr, [x10, #4]
Lloh15:
	ldr	w10, [x11]
	ldp	w11, w12, [x21, #8]
	and	w10, w10, w11
	str	w10, [sp]
	b	LBB0_11
LBB0_7:
	ldr	x0, [x21, #32]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_8:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_12
LBB0_9:
	mov	w12, #12
	madd	x10, x11, x12, x10
	movi.2s	v0, #1
	stur	d0, [x10, #4]
	mov	w10, #1
	str	w10, [sp]
Lloh21:
	adrp	x10, _VIRTCHNL_LINK_SPEED_40GB@GOTPAGE
Lloh22:
	ldr	x10, [x10, _VIRTCHNL_LINK_SPEED_40GB@GOTPAGEOFF]
Lloh23:
	ldr	w12, [x10]
	b	LBB0_11
LBB0_10:
	mov	w12, #0
	mov	w13, #12
Lloh24:
	adrp	x14, lCPI0_0@PAGE
Lloh25:
	ldr	d0, [x14, lCPI0_0@PAGEOFF]
	madd	x10, x11, x13, x10
	stur	d0, [x10, #4]
	str	wzr, [sp]
LBB0_11:
	add	x0, x21, #8
	add	w1, w9, w8
	str	w12, [sp, #4]
Lloh26:
	adrp	x8, _VIRTCHNL_OP_EVENT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VIRTCHNL_OP_EVENT@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x4, sp
	mov	w3, #0
	mov	w5, #16
	mov	x6, #0
	bl	_i40e_aq_send_msg_to_vf
	mov	w19, #0
LBB0_12:
	ldr	w0, [x22]
	ldr	w1, [x21, #4]
	bl	_clear_bit
LBB0_13:
	mov	x0, 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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdr	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	___I40E_VIRTCHNL_OP_PENDING,4,2 ; @__I40E_VIRTCHNL_OP_PENDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to configure VFs, other operation is pending.\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"Invalid VF Identifier %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VIRTCHNL_EVENT_LINK_CHANGE,4,2 ; @VIRTCHNL_EVENT_LINK_CHANGE
	.comm	_PF_EVENT_SEVERITY_INFO,4,2     ; @PF_EVENT_SEVERITY_INFO
	.comm	_I40E_AQ_LINK_UP,4,2            ; @I40E_AQ_LINK_UP
	.comm	_VIRTCHNL_LINK_SPEED_40GB,4,2   ; @VIRTCHNL_LINK_SPEED_40GB
	.comm	_VIRTCHNL_OP_EVENT,4,2          ; @VIRTCHNL_OP_EVENT
.subsections_via_symbols
