	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_pci_add_bus               ## -- Begin function acpi_pci_add_bus
	.p2align	4, 0x90
_acpi_pci_add_bus:                      ## @acpi_pci_add_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_acpi_pci_disabled@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_9
## %bb.2:
	callq	_ACPI_HANDLE
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movq	%rbx, %rdi
	callq	_acpi_pci_slot_enumerate
	movq	%rbx, %rdi
	callq	_acpiphp_enumerate_slots
	movq	%rbx, %rdi
	callq	_pci_is_root_bus
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movl	(%rbx), %edi
	callq	_ACPI_HANDLE
	movq	_RESET_DELAY_DSM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_pci_acpi_dsm_guid@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	movl	$3, %edx
	xorl	%r8d, %r8d
	callq	_acpi_evaluate_dsm
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_pci_find_host_bridge
	movl	$1, (%rax)
LBB0_8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ACPI_FREE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_pci_disabled,8,3          ## @acpi_pci_disabled
	.comm	_pci_acpi_dsm_guid,4,2          ## @pci_acpi_dsm_guid
	.comm	_RESET_DELAY_DSM,4,2            ## @RESET_DELAY_DSM
	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_pci_add_bus               ; -- Begin function acpi_pci_add_bus
	.p2align	2
_acpi_pci_add_bus:                      ; @acpi_pci_add_bus
	.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, _acpi_pci_disabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acpi_pci_disabled@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	ldr	w0, [x0]
	cbz	w0, LBB0_1
; %bb.3:
	bl	_ACPI_HANDLE
	cbz	w0, LBB0_1
; %bb.4:
	mov	x0, x19
	bl	_acpi_pci_slot_enumerate
	mov	x0, x19
	bl	_acpiphp_enumerate_slots
	mov	x0, x19
	bl	_pci_is_root_bus
	cbz	w0, LBB0_1
; %bb.5:
	ldr	w0, [x19]
	bl	_ACPI_HANDLE
Lloh3:
	adrp	x8, _RESET_DELAY_DSM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RESET_DELAY_DSM@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x1, _pci_acpi_dsm_guid@GOTPAGE
Lloh7:
	ldr	x1, [x1, _pci_acpi_dsm_guid@GOTPAGEOFF]
	mov	w2, #3
	mov	x4, #0
	bl	_acpi_evaluate_dsm
	cbz	x0, LBB0_1
; %bb.6:
	mov	x20, x0
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w8, #1, #0, eq
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_pci_find_host_bridge
	mov	w8, #1
	str	w8, [x0]
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ACPI_FREE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_pci_disabled,8,3          ; @acpi_pci_disabled
	.comm	_pci_acpi_dsm_guid,4,2          ; @pci_acpi_dsm_guid
	.comm	_RESET_DELAY_DSM,4,2            ; @RESET_DELAY_DSM
	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
.subsections_via_symbols
