	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_acs_flags_enabled
_pci_acs_flags_enabled:                 ## @pci_acs_flags_enabled
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	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, %r12
	movq	_PCI_ACS_CAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_word
	movq	_PCI_ACS_EC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	orl	-40(%rbp), %ebx
	andl	%r14d, %ebx
	movq	_PCI_ACS_CTRL@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_pci_read_config_word
	movl	-36(%rbp), %ecx
	notl	%ecx
	xorl	%eax, %eax
	testl	%ecx, %ebx
	sete	%al
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXT_CAP_ID_ACS,4,2         ## @PCI_EXT_CAP_ID_ACS
	.comm	_PCI_ACS_CAP,8,3                ## @PCI_ACS_CAP
	.comm	_PCI_ACS_EC,4,2                 ## @PCI_ACS_EC
	.comm	_PCI_ACS_CTRL,8,3               ## @PCI_ACS_CTRL
	.no_dead_strip	_pci_acs_flags_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_acs_flags_enabled
_pci_acs_flags_enabled:                 ; @pci_acs_flags_enabled
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	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
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_2
; %bb.1:
	sxtw	x21, w0
Lloh3:
	adrp	x8, _PCI_ACS_CAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_ACS_CAP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, x21
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _PCI_ACS_EC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCI_ACS_EC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w20, w8, w20
Lloh9:
	adrp	x8, _PCI_ACS_CTRL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_ACS_CTRL@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x1, x8, x21
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w8, [sp, #8]
	bics	wzr, w20, w8
	cset	w0, eq
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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_CAP,8,3                ; @PCI_ACS_CAP
	.comm	_PCI_ACS_EC,4,2                 ; @PCI_ACS_EC
	.comm	_PCI_ACS_CTRL,8,3               ; @PCI_ACS_CTRL
	.no_dead_strip	_pci_acs_flags_enabled
.subsections_via_symbols
