	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_ndo_set_vf_spoofchk       ## -- Begin function i40e_ndo_set_vf_spoofchk
	.p2align	4, 0x90
_i40e_ndo_set_vf_spoofchk:              ## @i40e_ndo_set_vf_spoofchk
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	(%rax), %r12
	movq	___I40E_VIRTCHNL_OP_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %esi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%r12), %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, (%r12)
	jle	LBB0_3
## %bb.4:
	movq	32(%r12), %r15
	movslq	%ebx, %rax
	movq	_I40E_VF_STATE_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	(%rax,%rax,2), %r13
	leaq	(%r15,%r13,8), %rsi
	addq	$16, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	xorl	%ebx, %ebx
	cmpl	%r14d, (%r15,%r13,8)
	je	LBB0_12
## %bb.7:
	leaq	16(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r13,8), %rax
	movl	%r14d, (%rax)
	leaq	-56(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	24(%r12), %rax
	movq	8(%r15,%r13,8), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	16(%r12), %eax
	movl	%eax, -48(%rbp)
	movq	_I40E_AQ_VSI_PROP_SECURITY_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, -52(%rbp)
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.8:
	movq	_I40E_AQ_VSI_SEC_FLAG_ENABLE_VLAN_CHK@GOTPCREL(%rip), %rax
	movq	_I40E_AQ_VSI_SEC_FLAG_ENABLE_MAC_CHK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, -56(%rbp)
LBB0_9:
	leaq	-56(%rbp), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_i40e_aq_update_vsi_params
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movq	8(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	movq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	movq	8(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movq	___I40E_VIRTCHNL_OP_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %esi
	callq	_clear_bit
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_I40E_VF_STATE_INIT,4,2         ## @I40E_VF_STATE_INIT
L_.str.2:                               ## @.str.2
	.asciz	"VF %d still in reset. Try again.\n"

	.comm	_I40E_AQ_VSI_PROP_SECURITY_VALID,4,2 ## @I40E_AQ_VSI_PROP_SECURITY_VALID
	.comm	_I40E_AQ_VSI_SEC_FLAG_ENABLE_VLAN_CHK,4,2 ## @I40E_AQ_VSI_SEC_FLAG_ENABLE_VLAN_CHK
	.comm	_I40E_AQ_VSI_SEC_FLAG_ENABLE_MAC_CHK,4,2 ## @I40E_AQ_VSI_SEC_FLAG_ENABLE_MAC_CHK
L_.str.3:                               ## @.str.3
	.asciz	"Error %d updating VSI parameters\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_ndo_set_vf_spoofchk       ; -- Begin function i40e_ndo_set_vf_spoofchk
	.p2align	2
_i40e_ndo_set_vf_spoofchk:              ; @i40e_ndo_set_vf_spoofchk
	.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, 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, #8]
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_14
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, w20
	b.le	LBB0_9
; %bb.3:
	ldr	x23, [x21, #32]
Lloh7:
	adrp	x8, _I40E_VF_STATE_INIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I40E_VF_STATE_INIT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	w8, #24
	smaddl	x8, w20, w8, x23
	add	x1, x8, #16
	bl	_test_bit
	cbz	w0, LBB0_11
; %bb.4:
	sxtw	x24, w20
	mov	w8, #24
	madd	x8, x24, x8, x23
	ldr	w9, [x8]
	cmp	w9, w19
	b.eq	LBB0_10
; %bb.5:
	add	x20, x21, #16
	str	w19, [x8]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x21, #24]
	mov	w9, #24
	madd	x9, x24, x9, x23
	ldr	x9, [x9, #8]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w8, [x8]
	ldr	w9, [x21, #16]
	stp	w9, w8, [sp, #8]
Lloh10:
	adrp	x8, _I40E_AQ_VSI_PROP_SECURITY_VALID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I40E_AQ_VSI_PROP_SECURITY_VALID@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	w0, [sp, #4]
	cbz	w19, LBB0_7
; %bb.6:
Lloh13:
	adrp	x8, _I40E_AQ_VSI_SEC_FLAG_ENABLE_VLAN_CHK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I40E_AQ_VSI_SEC_FLAG_ENABLE_VLAN_CHK@GOTPAGEOFF]
Lloh15:
	adrp	x9, _I40E_AQ_VSI_SEC_FLAG_ENABLE_MAC_CHK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _I40E_AQ_VSI_SEC_FLAG_ENABLE_MAC_CHK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp]
	orr	w8, w8, w9
	str	w8, [sp]
LBB0_7:
	mov	x1, sp
	mov	x0, x20
	mov	x2, #0
	bl	_i40e_aq_update_vsi_params
	cbz	w0, LBB0_10
; %bb.8:
	mov	x2, x0
	ldr	x0, [x21, #8]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	ldr	x0, [x21, #8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_err
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	mov	w19, #0
	b	LBB0_13
LBB0_11:
	ldr	x0, [x21, #8]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_err
Lloh29:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_13:
	ldr	w0, [x22]
	ldr	w1, [x21, #4]
	bl	_clear_bit
LBB0_14:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	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	_I40E_VF_STATE_INIT,4,2         ; @I40E_VF_STATE_INIT
l_.str.2:                               ; @.str.2
	.asciz	"VF %d still in reset. Try again.\n"

	.comm	_I40E_AQ_VSI_PROP_SECURITY_VALID,4,2 ; @I40E_AQ_VSI_PROP_SECURITY_VALID
	.comm	_I40E_AQ_VSI_SEC_FLAG_ENABLE_VLAN_CHK,4,2 ; @I40E_AQ_VSI_SEC_FLAG_ENABLE_VLAN_CHK
	.comm	_I40E_AQ_VSI_SEC_FLAG_ENABLE_MAC_CHK,4,2 ; @I40E_AQ_VSI_SEC_FLAG_ENABLE_MAC_CHK
l_.str.3:                               ; @.str.3
	.asciz	"Error %d updating VSI parameters\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
