	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_quirk_al_acs
_pci_quirk_al_acs:                      ## @pci_quirk_al_acs
	.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
	movl	%esi, %ebx
	callq	_pci_pcie_type
	movq	_PCI_EXP_TYPE_ROOT_PORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_PCI_ACS_SV@GOTPCREL(%rip), %rax
	movq	_PCI_ACS_RR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_PCI_ACS_CR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_PCI_ACS_UF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	xorl	%eax, %eax
	testl	%ebx, %ecx
	sete	%al
	jmp	LBB0_3
LBB0_1:
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXP_TYPE_ROOT_PORT,8,3     ## @PCI_EXP_TYPE_ROOT_PORT
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_PCI_ACS_SV,4,2                 ## @PCI_ACS_SV
	.comm	_PCI_ACS_RR,4,2                 ## @PCI_ACS_RR
	.comm	_PCI_ACS_CR,4,2                 ## @PCI_ACS_CR
	.comm	_PCI_ACS_UF,4,2                 ## @PCI_ACS_UF
	.no_dead_strip	_pci_quirk_al_acs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_quirk_al_acs
_pci_quirk_al_acs:                      ; @pci_quirk_al_acs
	.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, x1
	bl	_pci_pcie_type
Lloh0:
	adrp	x8, _PCI_EXP_TYPE_ROOT_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXP_TYPE_ROOT_PORT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PCI_ACS_SV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_ACS_SV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PCI_ACS_RR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCI_ACS_RR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _PCI_ACS_CR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCI_ACS_CR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _PCI_ACS_UF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PCI_ACS_UF@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bics	wzr, w19, w8
	cset	w0, eq
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXP_TYPE_ROOT_PORT,8,3     ; @PCI_EXP_TYPE_ROOT_PORT
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_PCI_ACS_SV,4,2                 ; @PCI_ACS_SV
	.comm	_PCI_ACS_RR,4,2                 ; @PCI_ACS_RR
	.comm	_PCI_ACS_CR,4,2                 ; @PCI_ACS_CR
	.comm	_PCI_ACS_UF,4,2                 ; @PCI_ACS_UF
	.no_dead_strip	_pci_quirk_al_acs
.subsections_via_symbols
