	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_cfgregread                 ## -- Begin function pci_cfgregread
	.p2align	4, 0x90
_pci_cfgregread:                        ## @pci_cfgregread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$1, %r8d
	jne	LBB0_3
## %bb.1:
	movq	_PCIR_INTLINE@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	$1, %r8d
	callq	_pci_docfgregread
	cmpl	$127, %eax
	movq	_PCI_INVALID_IRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %ecx
	cmovgl	%edx, %ecx
	testl	%eax, %eax
	cmovel	%edx, %ecx
	movl	%ecx, %eax
	popq	%rbp
	retq
LBB0_3:
	popq	%rbp
	jmp	_pci_docfgregread               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIR_INTLINE,4,2               ## @PCIR_INTLINE
	.comm	_PCI_INVALID_IRQ,4,2            ## @PCI_INVALID_IRQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_cfgregread                 ; -- Begin function pci_cfgregread
	.p2align	2
_pci_cfgregread:                        ; @pci_cfgregread
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w4, #1
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _PCIR_INTLINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIR_INTLINE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ne	LBB0_3
; %bb.2:
	mov	w4, #1
	bl	_pci_docfgregread
	cmp	w0, #127
	ccmp	w0, #0, #4, le
Lloh3:
	adrp	x8, _PCI_INVALID_IRQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_INVALID_IRQ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	csel	w0, w8, w0, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_pci_docfgregread
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIR_INTLINE,4,2               ; @PCIR_INTLINE
	.comm	_PCI_INVALID_IRQ,4,2            ; @PCI_INVALID_IRQ
.subsections_via_symbols
