	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_configure_relaxed_ordering
_pci_configure_relaxed_ordering:        ## @pci_configure_relaxed_ordering
	.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
	cmpq	$0, 8(%rdi)
	je	LBB0_1
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	callq	_pcie_relaxed_ordering_enabled
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_pci_find_pcie_root_port
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_PCI_DEV_FLAGS_NO_RELAXED_ORDERING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.5:
	movq	_PCI_EXP_DEVCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCI_EXP_DEVCTL_RELAX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_pcie_capability_clear_word
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pci_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DEV_FLAGS_NO_RELAXED_ORDERING,4,2 ## @PCI_DEV_FLAGS_NO_RELAXED_ORDERING
	.comm	_PCI_EXP_DEVCTL,4,2             ## @PCI_EXP_DEVCTL
	.comm	_PCI_EXP_DEVCTL_RELAX_EN,4,2    ## @PCI_EXP_DEVCTL_RELAX_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Relaxed Ordering disabled because the Root Port didn't support it\n"

	.no_dead_strip	_pci_configure_relaxed_ordering
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_configure_relaxed_ordering
_pci_configure_relaxed_ordering:        ; @pci_configure_relaxed_ordering
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	bl	_pcie_relaxed_ordering_enabled
	cbz	w0, LBB0_1
; %bb.3:
	mov	x0, x19
	bl	_pci_find_pcie_root_port
	cbz	x0, LBB0_1
; %bb.4:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PCI_DEV_FLAGS_NO_RELAXED_ORDERING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_DEV_FLAGS_NO_RELAXED_ORDERING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.5:
Lloh3:
	adrp	x8, _PCI_EXP_DEVCTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_EXP_DEVCTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _PCI_EXP_DEVCTL_RELAX_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_EXP_DEVCTL_RELAX_EN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pcie_capability_clear_word
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pci_info
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DEV_FLAGS_NO_RELAXED_ORDERING,4,2 ; @PCI_DEV_FLAGS_NO_RELAXED_ORDERING
	.comm	_PCI_EXP_DEVCTL,4,2             ; @PCI_EXP_DEVCTL
	.comm	_PCI_EXP_DEVCTL_RELAX_EN,4,2    ; @PCI_EXP_DEVCTL_RELAX_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Relaxed Ordering disabled because the Root Port didn't support it\n"

	.no_dead_strip	_pci_configure_relaxed_ordering
.subsections_via_symbols
