	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_bridge_has_acs_redir
_pci_bridge_has_acs_redir:              ## @pci_bridge_has_acs_redir
	.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_ACS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_find_ext_capability
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movslq	%eax, %rsi
	movq	_PCI_ACS_CTRL@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_word
	movq	_PCI_ACS_RR@GOTPCREL(%rip), %rax
	movq	_PCI_ACS_CR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_PCI_ACS_EC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, -12(%rbp)
	setne	%al
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXT_CAP_ID_ACS,4,2         ## @PCI_EXT_CAP_ID_ACS
	.comm	_PCI_ACS_CTRL,8,3               ## @PCI_ACS_CTRL
	.comm	_PCI_ACS_RR,4,2                 ## @PCI_ACS_RR
	.comm	_PCI_ACS_CR,4,2                 ## @PCI_ACS_CR
	.comm	_PCI_ACS_EC,4,2                 ## @PCI_ACS_EC
	.no_dead_strip	_pci_bridge_has_acs_redir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_bridge_has_acs_redir
_pci_bridge_has_acs_redir:              ; @pci_bridge_has_acs_redir
	.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_ACS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXT_CAP_ID_ACS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_pci_find_ext_capability
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PCI_ACS_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_ACS_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, w0, sxtw
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_word
Lloh6:
	adrp	x8, _PCI_ACS_RR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_ACS_RR@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x10, _PCI_ACS_CR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PCI_ACS_CR@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh12:
	adrp	x10, _PCI_ACS_EC@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PCI_ACS_EC@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w8, w8, w10
	tst	w8, w9
	cset	w0, ne
LBB0_2:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXT_CAP_ID_ACS,4,2         ; @PCI_EXT_CAP_ID_ACS
	.comm	_PCI_ACS_CTRL,8,3               ; @PCI_ACS_CTRL
	.comm	_PCI_ACS_RR,4,2                 ; @PCI_ACS_RR
	.comm	_PCI_ACS_CR,4,2                 ; @PCI_ACS_CR
	.comm	_PCI_ACS_EC,4,2                 ; @PCI_ACS_EC
	.no_dead_strip	_pci_bridge_has_acs_redir
.subsections_via_symbols
