	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcie_has_flr                   ## -- Begin function pcie_has_flr
	.p2align	4, 0x90
_pcie_has_flr:                          ## @pcie_has_flr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_PCI_DEV_FLAGS_NO_FLR_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	_PCI_EXP_DEVCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	callq	_pcie_capability_read_dword
	movq	_PCI_EXP_DEVCAP_FLR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-4(%rbp), %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DEV_FLAGS_NO_FLR_RESET,4,2 ## @PCI_DEV_FLAGS_NO_FLR_RESET
	.comm	_PCI_EXP_DEVCAP,4,2             ## @PCI_EXP_DEVCAP
	.comm	_PCI_EXP_DEVCAP_FLR,4,2         ## @PCI_EXP_DEVCAP_FLR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcie_has_flr                   ; -- Begin function pcie_has_flr
	.p2align	2
_pcie_has_flr:                          ; @pcie_has_flr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PCI_DEV_FLAGS_NO_FLR_RESET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_DEV_FLAGS_NO_FLR_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _PCI_EXP_DEVCAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_EXP_DEVCAP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	sub	x2, x29, #4
	bl	_pcie_capability_read_dword
	ldur	w8, [x29, #-4]
Lloh6:
	adrp	x9, _PCI_EXP_DEVCAP_FLR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCI_EXP_DEVCAP_FLR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w0, w9, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DEV_FLAGS_NO_FLR_RESET,4,2 ; @PCI_DEV_FLAGS_NO_FLR_RESET
	.comm	_PCI_EXP_DEVCAP,4,2             ; @PCI_EXP_DEVCAP
	.comm	_PCI_EXP_DEVCAP_FLR,4,2         ; @PCI_EXP_DEVCAP_FLR
.subsections_via_symbols
