	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_scan_bus                   ## -- Begin function pci_scan_bus
	.p2align	4, 0x90
_pci_scan_bus:                          ## @pci_scan_bus
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	_resources@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_LIST_HEAD
	movq	_ioport_resource@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_pci_add_resource
	movq	_iomem_resource@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_pci_add_resource
	movq	_busn_resource@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_pci_add_resource
	xorl	%edi, %edi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%rbx, %r8
	callq	_pci_create_root_bus
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_pci_scan_child_bus
	jmp	LBB0_3
LBB0_2:
	movq	_resources@GOTPCREL(%rip), %rdi
	callq	_pci_free_resource_list
LBB0_3:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_resources,4,2                  ## @resources
	.comm	_ioport_resource,4,2            ## @ioport_resource
	.comm	_iomem_resource,4,2             ## @iomem_resource
	.comm	_busn_resource,4,2              ## @busn_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_scan_bus                   ; -- Begin function pci_scan_bus
	.p2align	2
_pci_scan_bus:                          ; @pci_scan_bus
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _resources@GOTPAGE
Lloh1:
	ldr	x22, [x22, _resources@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_LIST_HEAD
Lloh2:
	adrp	x1, _ioport_resource@GOTPAGE
Lloh3:
	ldr	x1, [x1, _ioport_resource@GOTPAGEOFF]
	mov	x0, x22
	bl	_pci_add_resource
Lloh4:
	adrp	x1, _iomem_resource@GOTPAGE
Lloh5:
	ldr	x1, [x1, _iomem_resource@GOTPAGEOFF]
	mov	x0, x22
	bl	_pci_add_resource
Lloh6:
	adrp	x1, _busn_resource@GOTPAGE
Lloh7:
	ldr	x1, [x1, _busn_resource@GOTPAGEOFF]
	mov	x0, x22
	bl	_pci_add_resource
	mov	x0, #0
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x22
	bl	_pci_create_root_bus
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_pci_scan_child_bus
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x0, _resources@GOTPAGE
Lloh9:
	ldr	x0, [x0, _resources@GOTPAGEOFF]
	bl	_pci_free_resource_list
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_resources,4,2                  ; @resources
	.comm	_ioport_resource,4,2            ; @ioport_resource
	.comm	_iomem_resource,4,2             ; @iomem_resource
	.comm	_busn_resource,4,2              ; @busn_resource
.subsections_via_symbols
