	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_set_vf_spoofchk
_be_set_vf_spoofchk:                    ## @be_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
	pushq	%rax
	.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, %r15d
	callq	_netdev_priv
	movq	%rax, %r12
	movq	16(%rax), %r13
	movq	%rax, %rdi
	callq	_sriov_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	cmpl	%r15d, (%r12)
	jle	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	callq	_BEx_chip
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movslq	%r15d, %rcx
	xorl	%ebx, %ebx
	cmpl	%r14d, (%r13,%rcx,8)
	je	LBB0_13
## %bb.8:
	testl	%r14d, %r14d
	jne	LBB0_9
## %bb.10:
	movq	_DISABLE_MAC_SPOOFCHK@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_ENABLE_MAC_SPOOFCHK@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %r9d
	leal	1(%rcx), %edx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r13,%rcx,8), %ecx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_be_cmd_set_hsw_config
	testl	%eax, %eax
	je	LBB0_12
## %bb.14:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	movl	%eax, %ebx
	callq	_dev_err
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_be_cmd_status                  ## TAILCALL
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%r13,%rax,8)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENABLE_MAC_SPOOFCHK,4,2        ## @ENABLE_MAC_SPOOFCHK
	.comm	_DISABLE_MAC_SPOOFCHK,4,2       ## @DISABLE_MAC_SPOOFCHK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Spoofchk change on VF %d failed: %#x\n"

	.no_dead_strip	_be_set_vf_spoofchk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_set_vf_spoofchk
_be_set_vf_spoofchk:                    ; @be_set_vf_spoofchk
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	bl	_netdev_priv
	mov	x21, x0
	ldr	x22, [x0, #16]
	bl	_sriov_enabled
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, w19
	b.le	LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_BEx_chip
	cbz	x0, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _EPERM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	sxtw	x8, w19
	add	x23, x22, x8, lsl #3
	ldr	w8, [x23]
	cmp	w8, w20
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	b	LBB0_7
LBB0_10:
Lloh6:
	adrp	x8, _ENABLE_MAC_SPOOFCHK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENABLE_MAC_SPOOFCHK@GOTPAGEOFF]
Lloh8:
	adrp	x9, _DISABLE_MAC_SPOOFCHK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DISABLE_MAC_SPOOFCHK@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w5, [x8]
	add	w2, w19, #1
	ldr	w3, [x23, #4]
	mov	x0, x21
	mov	w1, #0
	mov	w4, #0
	bl	_be_cmd_set_hsw_config
	cbz	w0, LBB0_12
; %bb.11:
	mov	x22, x0
	ldr	x0, [x21, #8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x22
	bl	_dev_err
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_be_cmd_status
LBB0_12:
	str	w20, [x23]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENABLE_MAC_SPOOFCHK,4,2        ; @ENABLE_MAC_SPOOFCHK
	.comm	_DISABLE_MAC_SPOOFCHK,4,2       ; @DISABLE_MAC_SPOOFCHK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Spoofchk change on VF %d failed: %#x\n"

	.no_dead_strip	_be_set_vf_spoofchk
.subsections_via_symbols
