	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_set_vf_spoofchk            ## -- Begin function ice_set_vf_spoofchk
	.p2align	4, 0x90
_ice_set_vf_spoofchk:                   ## @ice_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	$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
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	16(%rax), %r12
	cmpl	%ebx, (%r12)
	jle	LBB0_1
## %bb.2:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	24(%r12), %r14
	movslq	%ebx, %r13
	movq	_ICE_VF_STATE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14,%r13,8), %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	8(%r12), %rdi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r14,%r13,8)
	jne	LBB0_6
## %bb.5:
	testl	%eax, %eax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_netdev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$12, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rax, %r15
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_ICE_AQ_VSI_PROP_SECURITY_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, 8(%r15)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.10:
	movq	_ICE_AQ_VSI_SEC_FLAG_ENA_MAC_ANTI_SPOOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
	movq	_ICE_AQ_VSI_SW_FLAG_RX_PRUNE_EN_M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_11:
	leaq	16(%r12), %rdi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	8(%r13), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_ice_update_vsi
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movq	8(%r12), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, (%rax,%rcx,8)
	movl	4(%r15), %eax
	movl	%eax, 4(%r13)
	movl	(%r15), %eax
	movl	%eax, (%r13)
LBB0_14:
	movq	8(%r12), %rdi
	movq	%r15, %rsi
	callq	_devm_kfree
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid VF id: %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
L_.str.2:                               ## @.str.2
	.asciz	"VF spoofchk already %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"ON"

L_.str.4:                               ## @.str.4
	.asciz	"OFF"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ICE_AQ_VSI_PROP_SECURITY_VALID,4,2 ## @ICE_AQ_VSI_PROP_SECURITY_VALID
	.comm	_ICE_AQ_VSI_SEC_FLAG_ENA_MAC_ANTI_SPOOF,4,2 ## @ICE_AQ_VSI_SEC_FLAG_ENA_MAC_ANTI_SPOOF
	.comm	_ICE_AQ_VSI_SW_FLAG_RX_PRUNE_EN_M,4,2 ## @ICE_AQ_VSI_SW_FLAG_RX_PRUNE_EN_M
L_.str.5:                               ## @.str.5
	.asciz	"Error %d, failed to update 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	_ice_set_vf_spoofchk            ; -- Begin function ice_set_vf_spoofchk
	.p2align	2
_ice_set_vf_spoofchk:                   ; @ice_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
	mov	x21, x0
	bl	_netdev_priv
	ldr	x23, [x0]
	ldr	x22, [x23, #16]
	ldr	w8, [x22]
	cmp	w8, w20
	b.le	LBB0_4
; %bb.1:
	ldr	x24, [x22, #24]
Lloh0:
	adrp	x8, _ICE_VF_STATE_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_VF_STATE_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x8, x24, w20, sxtw #3
	ldr	w1, [x8, #4]
	bl	_test_bit
	cbz	w0, LBB0_5
; %bb.2:
	sxtw	x8, w20
	add	x24, x24, x8, lsl #3
	ldr	w8, [x24]
	ldr	x0, [x22, #8]
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, l_.str.3@PAGE
Lloh4:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh5:
	adrp	x9, l_.str.4@PAGE
Lloh6:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w19, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	w21, #0
	b	LBB0_13
LBB0_4:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_netdev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_netdev_err
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
Lloh17:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	w1, #12
	bl	_devm_kzalloc
	cbz	x0, LBB0_11
; %bb.7:
	mov	x20, x0
Lloh20:
	adrp	x8, _ICE_AQ_VSI_PROP_SECURITY_VALID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ICE_AQ_VSI_PROP_SECURITY_VALID@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	w0, [x20, #8]
	cbz	w19, LBB0_9
; %bb.8:
Lloh23:
	adrp	x8, _ICE_AQ_VSI_SEC_FLAG_ENA_MAC_ANTI_SPOOF@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ICE_AQ_VSI_SEC_FLAG_ENA_MAC_ANTI_SPOOF@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldp	w10, w9, [x20]
	orr	w8, w9, w8
Lloh26:
	adrp	x9, _ICE_AQ_VSI_SW_FLAG_RX_PRUNE_EN_M@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ICE_AQ_VSI_SW_FLAG_RX_PRUNE_EN_M@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w9, w10, w9
	stp	w9, w8, [x20]
LBB0_9:
	add	x0, x22, #16
	ldr	w1, [x23, #8]
	mov	x2, x20
	mov	x3, #0
	bl	_ice_update_vsi
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_14
; %bb.10:
	ldr	x8, [x22, #8]
	str	x0, [sp]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x8
	bl	_dev_dbg
Lloh31:
	adrp	x8, _EIO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_11:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	mov	x0, x21
	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
LBB0_14:
	mov	w21, #0
	str	w19, [x24]
	ldr	d0, [x20]
	str	d0, [x23]
LBB0_15:
	ldr	x0, [x22, #8]
	mov	x1, x20
	bl	_devm_kfree
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid VF id: %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
l_.str.2:                               ; @.str.2
	.asciz	"VF spoofchk already %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"ON"

l_.str.4:                               ; @.str.4
	.asciz	"OFF"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ICE_AQ_VSI_PROP_SECURITY_VALID,4,2 ; @ICE_AQ_VSI_PROP_SECURITY_VALID
	.comm	_ICE_AQ_VSI_SEC_FLAG_ENA_MAC_ANTI_SPOOF,4,2 ; @ICE_AQ_VSI_SEC_FLAG_ENA_MAC_ANTI_SPOOF
	.comm	_ICE_AQ_VSI_SW_FLAG_RX_PRUNE_EN_M,4,2 ; @ICE_AQ_VSI_SW_FLAG_RX_PRUNE_EN_M
l_.str.5:                               ; @.str.5
	.asciz	"Error %d, failed to update VSI* parameters\n"

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