	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function quirk_use_pcie_bridge_dma_alias
_quirk_use_pcie_bridge_dma_alias:       ## @quirk_use_pcie_bridge_dma_alias
	.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	16(%rdi), %rdi
	callq	_pci_is_root_bus
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	(%rbx), %rax
	movq	_PCI_HEADER_TYPE_BRIDGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_pci_is_pcie
	testq	%rax, %rax
	je	LBB0_3
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	callq	_pci_is_pcie
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	callq	_pci_pcie_type
	movq	_PCI_EXP_TYPE_PCI_BRIDGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_PCI_DEV_FLAG_PCIE_BRIDGE_ALIAS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_HEADER_TYPE_BRIDGE,8,3     ## @PCI_HEADER_TYPE_BRIDGE
	.comm	_PCI_EXP_TYPE_PCI_BRIDGE,8,3    ## @PCI_EXP_TYPE_PCI_BRIDGE
	.comm	_PCI_DEV_FLAG_PCIE_BRIDGE_ALIAS,4,2 ## @PCI_DEV_FLAG_PCIE_BRIDGE_ALIAS
	.no_dead_strip	_quirk_use_pcie_bridge_dma_alias
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quirk_use_pcie_bridge_dma_alias
_quirk_use_pcie_bridge_dma_alias:       ; @quirk_use_pcie_bridge_dma_alias
	.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	x0, [x0, #16]
	bl	_pci_is_root_bus
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _PCI_HEADER_TYPE_BRIDGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_HEADER_TYPE_BRIDGE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_pci_is_pcie
	cbz	x0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	bl	_pci_is_pcie
	cbz	x0, LBB0_3
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	bl	_pci_pcie_type
Lloh3:
	adrp	x8, _PCI_EXP_TYPE_PCI_BRIDGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_EXP_TYPE_PCI_BRIDGE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.6:
Lloh6:
	adrp	x8, _PCI_DEV_FLAG_PCIE_BRIDGE_ALIAS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_DEV_FLAG_PCIE_BRIDGE_ALIAS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_HEADER_TYPE_BRIDGE,8,3     ; @PCI_HEADER_TYPE_BRIDGE
	.comm	_PCI_EXP_TYPE_PCI_BRIDGE,8,3    ; @PCI_EXP_TYPE_PCI_BRIDGE
	.comm	_PCI_DEV_FLAG_PCIE_BRIDGE_ALIAS,4,2 ; @PCI_DEV_FLAG_PCIE_BRIDGE_ALIAS
	.no_dead_strip	_quirk_use_pcie_bridge_dma_alias
.subsections_via_symbols
