	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_cfg_space_size_ext
_pci_cfg_space_size_ext:                ## @pci_cfg_space_size_ext
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_PCI_CFG_SPACE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-20(%rbp), %rdx
	callq	_pci_read_config_dword
	movq	_PCIBIOS_SUCCESSFUL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	cmpl	$-1, -20(%rbp)
	je	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_pci_ext_cfg_is_aliased
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	_PCI_CFG_SPACE_EXP_SIZE@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_3:
	movq	_PCI_CFG_SPACE_SIZE@GOTPCREL(%rip), %rbx
LBB0_5:
	movl	(%rbx), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_CFG_SPACE_SIZE,4,2         ## @PCI_CFG_SPACE_SIZE
	.comm	_PCIBIOS_SUCCESSFUL,8,3         ## @PCIBIOS_SUCCESSFUL
	.comm	_PCI_CFG_SPACE_EXP_SIZE,4,2     ## @PCI_CFG_SPACE_EXP_SIZE
	.no_dead_strip	_pci_cfg_space_size_ext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_cfg_space_size_ext
_pci_cfg_space_size_ext:                ; @pci_cfg_space_size_ext
	.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	x20, _PCI_CFG_SPACE_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PCI_CFG_SPACE_SIZE@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_pci_read_config_dword
Lloh2:
	adrp	x8, _PCIBIOS_SUCCESSFUL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCIBIOS_SUCCESSFUL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w9, [sp, #12]
	cmp	x0, x8
	ccmn	w9, #1, #4, eq
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_pci_ext_cfg_is_aliased
Lloh5:
	adrp	x8, _PCI_CFG_SPACE_EXP_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_CFG_SPACE_EXP_SIZE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x20, x8, x20, eq
LBB0_2:
	ldr	w0, [x20]
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_CFG_SPACE_SIZE,4,2         ; @PCI_CFG_SPACE_SIZE
	.comm	_PCIBIOS_SUCCESSFUL,8,3         ; @PCIBIOS_SUCCESSFUL
	.comm	_PCI_CFG_SPACE_EXP_SIZE,4,2     ; @PCI_CFG_SPACE_EXP_SIZE
	.no_dead_strip	_pci_cfg_space_size_ext
.subsections_via_symbols
