	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_acpi_program_hp_params     ## -- Begin function pci_acpi_program_hp_params
	.p2align	4, 0x90
_pci_acpi_program_hp_params:            ## @pci_acpi_program_hp_params
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_acpi_pci_disabled@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_acpi_pci_get_bridge_handle
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_11
LBB0_5:
	movq	%rax, %r13
	leaq	-48(%rbp), %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_acpi_run_hpx
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_acpi_run_hpp
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_acpi_is_root_bridge
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_acpi_get_parent
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %r13
	testq	%r13, %r13
	jne	LBB0_6
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_pci_disabled,8,3          ## @acpi_pci_disabled
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_acpi_program_hp_params     ; -- Begin function pci_acpi_program_hp_params
	.p2align	2
_pci_acpi_program_hp_params:            ; @pci_acpi_program_hp_params
	.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
Lloh0:
	adrp	x8, _acpi_pci_disabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acpi_pci_disabled@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
LBB0_1:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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
LBB0_3:
	mov	x19, x0
	ldr	x21, [x0]
	cbz	x21, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_acpi_pci_get_bridge_handle
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x21]
	cbnz	x21, LBB0_4
	b	LBB0_1
LBB0_6:
	mov	x20, x0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_acpi_run_hpx
	bl	_ACPI_SUCCESS
	cbnz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_acpi_run_hpp
	bl	_ACPI_SUCCESS
	cbnz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_acpi_is_root_bridge
	cbnz	x0, LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #8
	mov	x0, x20
	bl	_acpi_get_parent
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x20, [sp, #8]
	cbnz	x20, LBB0_7
	b	LBB0_1
LBB0_12:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_pci_disabled,8,3          ; @acpi_pci_disabled
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
