	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_check_vf           ## -- Begin function qlcnic_83xx_check_vf
	.p2align	4, 0x90
_qlcnic_83xx_check_vf:                  ## @qlcnic_83xx_check_vf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movl	$2, (%r14)
	callq	_qlcnic_get_func_no
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_vf_check
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_qlcnic_sriov_vf_set_ops        ## TAILCALL
LBB0_1:
	movq	24(%rbx), %rdi
	movq	_QLC_83XX_DRV_OP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QLCRDX
	movq	_QLC_83XX_DEFAULT_OPMODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_QLCNIC_MGMT_FUNC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_4
LBB0_3:
	movl	16(%r14), %esi
	movq	%rax, %rdi
	callq	_QLC_83XX_GET_FUNC_PRIVILEGE
LBB0_4:
	movq	_QLCNIC_NON_PRIV_FUNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%rax, 8(%r14)
	movq	16(%rbx), %rdi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_qlcnic_vf_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	16(%rbx), %rdi
	movq	_PCI_EXT_CAP_ID_SRIOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_find_ext_capability
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	___QLCNIC_SRIOV_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_set_bit
LBB0_8:
	movq	_qlcnic_83xx_ops@GOTPCREL(%rip), %rax
LBB0_9:
	movq	%rax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_DRV_OP_MODE,4,2       ## @QLC_83XX_DRV_OP_MODE
	.comm	_QLC_83XX_DEFAULT_OPMODE,8,3    ## @QLC_83XX_DEFAULT_OPMODE
	.comm	_QLCNIC_MGMT_FUNC,8,3           ## @QLCNIC_MGMT_FUNC
	.comm	_QLCNIC_NON_PRIV_FUNC,8,3       ## @QLCNIC_NON_PRIV_FUNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HAL Version: %d Non Privileged function\n"

	.comm	_qlcnic_vf_ops,4,2              ## @qlcnic_vf_ops
	.comm	_PCI_EXT_CAP_ID_SRIOV,4,2       ## @PCI_EXT_CAP_ID_SRIOV
	.comm	___QLCNIC_SRIOV_CAPABLE,4,2     ## @__QLCNIC_SRIOV_CAPABLE
	.comm	_qlcnic_83xx_ops,4,2            ## @qlcnic_83xx_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_check_vf           ; -- Begin function qlcnic_83xx_check_vf
	.p2align	2
_qlcnic_83xx_check_vf:                  ; @qlcnic_83xx_check_vf
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #24]
	mov	w8, #2
	str	w8, [x20]
	bl	_qlcnic_get_func_no
	mov	x0, x19
	bl	_qlcnic_sriov_vf_check
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_qlcnic_sriov_vf_set_ops
LBB0_2:
	ldr	x0, [x19, #24]
Lloh0:
	adrp	x8, _QLC_83XX_DRV_OP_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_DRV_OP_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_QLCRDX
Lloh3:
	adrp	x8, _QLC_83XX_DEFAULT_OPMODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLC_83XX_DEFAULT_OPMODE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _QLCNIC_MGMT_FUNC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLCNIC_MGMT_FUNC@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	b	LBB0_5
LBB0_4:
	ldr	w1, [x20, #16]
	bl	_QLC_83XX_GET_FUNC_PRIVILEGE
LBB0_5:
Lloh9:
	adrp	x8, _QLCNIC_NON_PRIV_FUNC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLCNIC_NON_PRIV_FUNC@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	str	x0, [x20, #8]
	ldr	x0, [x19, #16]
	ldr	w2, [x20]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh14:
	adrp	x8, _qlcnic_vf_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _qlcnic_vf_ops@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	ldr	x0, [x19, #16]
Lloh16:
	adrp	x8, _PCI_EXT_CAP_ID_SRIOV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PCI_EXT_CAP_ID_SRIOV@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_pci_find_ext_capability
	cbz	x0, LBB0_9
; %bb.8:
Lloh19:
	adrp	x8, ___QLCNIC_SRIOV_CAPABLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, ___QLCNIC_SRIOV_CAPABLE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
LBB0_9:
Lloh22:
	adrp	x8, _qlcnic_83xx_ops@GOTPAGE
Lloh23:
	ldr	x8, [x8, _qlcnic_83xx_ops@GOTPAGEOFF]
LBB0_10:
	str	x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_DRV_OP_MODE,4,2       ; @QLC_83XX_DRV_OP_MODE
	.comm	_QLC_83XX_DEFAULT_OPMODE,8,3    ; @QLC_83XX_DEFAULT_OPMODE
	.comm	_QLCNIC_MGMT_FUNC,8,3           ; @QLCNIC_MGMT_FUNC
	.comm	_QLCNIC_NON_PRIV_FUNC,8,3       ; @QLCNIC_NON_PRIV_FUNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HAL Version: %d Non Privileged function\n"

	.comm	_qlcnic_vf_ops,4,2              ; @qlcnic_vf_ops
	.comm	_PCI_EXT_CAP_ID_SRIOV,4,2       ; @PCI_EXT_CAP_ID_SRIOV
	.comm	___QLCNIC_SRIOV_CAPABLE,4,2     ; @__QLCNIC_SRIOV_CAPABLE
	.comm	_qlcnic_83xx_ops,4,2            ; @qlcnic_83xx_ops
.subsections_via_symbols
