	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_ea_fixed_busnrs
_pci_ea_fixed_busnrs:                   ## @pci_ea_fixed_busnrs
	.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
	movq	(%rdi), %rax
	movq	_PCI_HEADER_TYPE_BRIDGE@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_PCI_CAP_ID_EA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_find_capability
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_PCI_EA_FIRST_ENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pci_read_config_dword
	movl	-36(%rbp), %eax
	movq	_PCI_EA_SEC_BUS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	%ecx, (%r15)
	movq	_PCI_EA_SUB_BUS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_PCI_EA_SUB_BUS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, (%r14)
	movl	$1, %r12d
LBB0_3:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_HEADER_TYPE_BRIDGE,8,3     ## @PCI_HEADER_TYPE_BRIDGE
	.comm	_PCI_CAP_ID_EA,4,2              ## @PCI_CAP_ID_EA
	.comm	_PCI_EA_FIRST_ENT,4,2           ## @PCI_EA_FIRST_ENT
	.comm	_PCI_EA_SEC_BUS_MASK,4,2        ## @PCI_EA_SEC_BUS_MASK
	.comm	_PCI_EA_SUB_BUS_MASK,4,2        ## @PCI_EA_SUB_BUS_MASK
	.comm	_PCI_EA_SUB_BUS_SHIFT,4,2       ## @PCI_EA_SUB_BUS_SHIFT
	.no_dead_strip	_pci_ea_fixed_busnrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_ea_fixed_busnrs
_pci_ea_fixed_busnrs:                   ; @pci_ea_fixed_busnrs
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PCI_HEADER_TYPE_BRIDGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_HEADER_TYPE_BRIDGE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh3:
	adrp	x8, _PCI_CAP_ID_EA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_CAP_ID_EA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_pci_find_capability
	cbz	w0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _PCI_EA_FIRST_ENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_EA_FIRST_ENT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w1, w8, w0
	add	x2, sp, #12
	mov	x0, x21
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _PCI_EA_SEC_BUS_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCI_EA_SEC_BUS_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w9, w9, w8
	str	w9, [x20]
Lloh12:
	adrp	x9, _PCI_EA_SUB_BUS_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PCI_EA_SUB_BUS_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh15:
	adrp	x9, _PCI_EA_SUB_BUS_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PCI_EA_SUB_BUS_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_HEADER_TYPE_BRIDGE,8,3     ; @PCI_HEADER_TYPE_BRIDGE
	.comm	_PCI_CAP_ID_EA,4,2              ; @PCI_CAP_ID_EA
	.comm	_PCI_EA_FIRST_ENT,4,2           ; @PCI_EA_FIRST_ENT
	.comm	_PCI_EA_SEC_BUS_MASK,4,2        ; @PCI_EA_SEC_BUS_MASK
	.comm	_PCI_EA_SUB_BUS_MASK,4,2        ; @PCI_EA_SUB_BUS_MASK
	.comm	_PCI_EA_SUB_BUS_SHIFT,4,2       ; @PCI_EA_SUB_BUS_SHIFT
	.no_dead_strip	_pci_ea_fixed_busnrs
.subsections_via_symbols
