	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_sriov_set_vf_spoofchk   ## -- Begin function qlcnic_sriov_set_vf_spoofchk
	.p2align	4, 0x90
_qlcnic_sriov_set_vf_spoofchk:          ## @qlcnic_sriov_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	(%rax), %rcx
	movq	(%rcx), %rbx
	movq	%rax, %rdi
	callq	_qlcnic_sriov_pf_check
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	cmpl	%r14d, (%rbx)
	jle	LBB0_4
## %bb.5:
	movq	8(%rbx), %rax
	movslq	%r14d, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rsi
	movq	8(%rax,%rcx), %rbx
	movq	_QLC_BC_VF_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_netdev_err
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%r15d, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QLC_BC_VF_STATE,4,2            ## @QLC_BC_VF_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Spoof check change failed for VF %d, as VF driver is loaded. Please unload VF driver and retry the operation\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_sriov_set_vf_spoofchk   ; -- Begin function qlcnic_sriov_set_vf_spoofchk
	.p2align	2
_qlcnic_sriov_set_vf_spoofchk:          ; @qlcnic_sriov_set_vf_spoofchk
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x22, [x8]
	bl	_qlcnic_sriov_pf_check
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x22]
	cmp	w8, w19
	b.le	LBB0_5
; %bb.2:
	ldr	x8, [x22, #8]
	add	x1, x8, w19, sxtw #4
	ldr	x22, [x1, #8]
Lloh0:
	adrp	x8, _QLC_BC_VF_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_BC_VF_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_netdev_err
LBB0_4:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	str	w20, [x22]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QLC_BC_VF_STATE,4,2            ; @QLC_BC_VF_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Spoof check change failed for VF %d, as VF driver is loaded. Please unload VF driver and retry the operation\n"

.subsections_via_symbols
