	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_virtid_fn
_qlcnic_sriov_virtid_fn:                ## @qlcnic_sriov_virtid_fn
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %r15
	callq	_qlcnic_sriov_vf_check
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_PCI_EXT_CAP_ID_SRIOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pci_find_ext_capability
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movslq	%eax, %rbx
	movq	_PCI_SRIOV_VF_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_word
	movq	_PCI_SRIOV_VF_STRIDE@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_pci_read_config_word
	movl	-28(%rbp), %eax
	addl	(%r15), %eax
	imull	-32(%rbp), %r14d
	addl	%eax, %r14d
	movzbl	%r14b, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXT_CAP_ID_SRIOV,4,2       ## @PCI_EXT_CAP_ID_SRIOV
	.comm	_PCI_SRIOV_VF_OFFSET,8,3        ## @PCI_SRIOV_VF_OFFSET
	.comm	_PCI_SRIOV_VF_STRIDE,8,3        ## @PCI_SRIOV_VF_STRIDE
	.no_dead_strip	_qlcnic_sriov_virtid_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_virtid_fn
_qlcnic_sriov_virtid_fn:                ; @qlcnic_sriov_virtid_fn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	ldr	x20, [x0]
	bl	_qlcnic_sriov_vf_check
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _PCI_EXT_CAP_ID_SRIOV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXT_CAP_ID_SRIOV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pci_find_ext_capability
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_4
; %bb.3:
	sxtw	x21, w0
Lloh3:
	adrp	x8, _PCI_SRIOV_VF_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_SRIOV_VF_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, x21
	add	x2, sp, #8
	mov	x0, x20
	bl	_pci_read_config_word
Lloh6:
	adrp	x8, _PCI_SRIOV_VF_STRIDE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_SRIOV_VF_STRIDE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x21
	add	x2, sp, #12
	mov	x0, x20
	bl	_pci_read_config_word
	ldr	w8, [x20]
	ldr	w9, [sp, #8]
	add	w8, w9, w8
	ldr	w9, [sp, #12]
	madd	w8, w9, w19, w8
	and	w0, w8, #0xff
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXT_CAP_ID_SRIOV,4,2       ; @PCI_EXT_CAP_ID_SRIOV
	.comm	_PCI_SRIOV_VF_OFFSET,8,3        ; @PCI_SRIOV_VF_OFFSET
	.comm	_PCI_SRIOV_VF_STRIDE,8,3        ; @PCI_SRIOV_VF_STRIDE
	.no_dead_strip	_qlcnic_sriov_virtid_fn
.subsections_via_symbols
