	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_cfgenable
_pci_cfgenable:                         ## @pci_cfgenable
	.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	%ecx, %ebx
	movq	_PCI_BUSMAX@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%edi, (%rcx)
	jb	LBB0_8
## %bb.1:
	movq	_PCI_SLOTMAX@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jb	LBB0_8
## %bb.2:
	movq	_PCI_FUNCMAX@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jb	LBB0_8
## %bb.3:
	cmpl	$4, %r8d
	ja	LBB0_8
## %bb.4:
	cmpl	$3, %r8d
	je	LBB0_8
## %bb.5:
	movq	_PCI_REGMAX@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jb	LBB0_8
## %bb.6:
	decl	%r8d
	testl	%ebx, %r8d
	jne	LBB0_8
## %bb.7:
	movq	_CONF1_ADDR_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$16, %edi
	shll	$11, %esi
	orl	%edi, %esi
	shll	$8, %edx
	movl	%ebx, %ecx
	andl	$2147483644, %ecx               ## imm = 0x7FFFFFFC
	orl	%edx, %ecx
	orl	%esi, %ecx
	orl	$-2147483648, %ecx              ## imm = 0x80000000
	movl	%eax, %edi
	movl	%ecx, %esi
	callq	_outl
	movq	_CONF1_DATA_PORT@GOTPCREL(%rip), %rax
	andl	$3, %ebx
	addl	(%rax), %ebx
	movl	%ebx, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_BUSMAX,4,2                 ## @PCI_BUSMAX
	.comm	_PCI_SLOTMAX,4,2                ## @PCI_SLOTMAX
	.comm	_PCI_FUNCMAX,4,2                ## @PCI_FUNCMAX
	.comm	_PCI_REGMAX,4,2                 ## @PCI_REGMAX
	.comm	_CONF1_ADDR_PORT,4,2            ## @CONF1_ADDR_PORT
	.comm	_CONF1_DATA_PORT,4,2            ## @CONF1_DATA_PORT
	.no_dead_strip	_pci_cfgenable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_cfgenable
_pci_cfgenable:                         ; @pci_cfgenable
	.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
Lloh0:
	adrp	x8, _PCI_BUSMAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_BUSMAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PCI_SLOTMAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_SLOTMAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _PCI_FUNCMAX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PCI_FUNCMAX@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w0
	ccmp	w9, w1, #0, hs
	mov	w8, #0
	ccmp	w10, w2, #0, hs
	b.lo	LBB0_7
; %bb.1:
	cmp	w4, #4
	b.hi	LBB0_7
; %bb.2:
	cmp	w4, #3
	b.eq	LBB0_7
; %bb.3:
	mov	x19, x3
Lloh9:
	adrp	x9, _PCI_REGMAX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCI_REGMAX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w9, w3
	b.lo	LBB0_7
; %bb.4:
	sub	w8, w4, #1
	tst	w8, w19
	b.eq	LBB0_6
; %bb.5:
	mov	w8, #0
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _CONF1_ADDR_PORT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CONF1_ADDR_PORT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	w9, w0, #16
	and	w10, w19, #0x7ffffffc
	orr	w9, w9, w1, lsl #11
	orr	w9, w9, w2, lsl #8
	orr	w9, w9, w10
	orr	w1, w9, #0x80000000
	mov	x0, x8
	bl	_outl
Lloh15:
	adrp	x8, _CONF1_DATA_PORT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CONF1_DATA_PORT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w9, w19, #0x3
	add	w8, w8, w9
LBB0_7:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_BUSMAX,4,2                 ; @PCI_BUSMAX
	.comm	_PCI_SLOTMAX,4,2                ; @PCI_SLOTMAX
	.comm	_PCI_FUNCMAX,4,2                ; @PCI_FUNCMAX
	.comm	_PCI_REGMAX,4,2                 ; @PCI_REGMAX
	.comm	_CONF1_ADDR_PORT,4,2            ; @CONF1_ADDR_PORT
	.comm	_CONF1_DATA_PORT,4,2            ; @CONF1_DATA_PORT
	.no_dead_strip	_pci_cfgenable
.subsections_via_symbols
