	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_sriov_initialized
_is_sriov_initialized:                  ## @is_sriov_initialized
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_PCI_EXT_CAP_ID_SRIOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_find_ext_capability
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movslq	%eax, %rsi
	movq	_PCI_SRIOV_CTRL@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_word
	movq	_PCI_SRIOV_CTRL_VFE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %eax
	testl	%ecx, -12(%rbp)
	jne	LBB0_3
LBB0_2:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXT_CAP_ID_SRIOV,4,2       ## @PCI_EXT_CAP_ID_SRIOV
	.comm	_PCI_SRIOV_CTRL,8,3             ## @PCI_SRIOV_CTRL
	.comm	_PCI_SRIOV_CTRL_VFE,4,2         ## @PCI_SRIOV_CTRL_VFE
	.no_dead_strip	_is_sriov_initialized
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_sriov_initialized
_is_sriov_initialized:                  ; @is_sriov_initialized
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _PCI_EXT_CAP_ID_SRIOV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXT_CAP_ID_SRIOV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_pci_find_ext_capability
	cbz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _PCI_SRIOV_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_SRIOV_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, w0, sxtw
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _PCI_SRIOV_CTRL_VFE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCI_SRIOV_CTRL_VFE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	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_CTRL,8,3             ; @PCI_SRIOV_CTRL
	.comm	_PCI_SRIOV_CTRL_VFE,4,2         ; @PCI_SRIOV_CTRL_VFE
	.no_dead_strip	_is_sriov_initialized
.subsections_via_symbols
