	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_pci_need_resume
_acpi_pci_need_resume:                  ## @acpi_pci_need_resume
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_ACPI_COMPANION
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_pci_is_bridge
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_acpi_target_system_state
	movq	_ACPI_STATE_S0@GOTPCREL(%rip), %rcx
	movl	$1, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_2:
	xorl	%r15d, %r15d
	testq	%r14, %r14
	je	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	callq	_acpi_device_power_manageable
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	cmpq	$0, 16(%r14)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_device_may_wakeup
	xorl	%ecx, %ecx
	cmpl	$0, 8(%r14)
	setne	%cl
	movl	$1, %r15d
	cmpl	%ecx, %eax
	jne	LBB0_8
LBB0_6:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_acpi_target_system_state
	movq	_ACPI_STATE_S0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	xorl	%r15d, %r15d
	cmpl	$0, (%r14)
	setne	%r15b
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_STATE_S0,8,3              ## @ACPI_STATE_S0
	.no_dead_strip	_acpi_pci_need_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_pci_need_resume
_acpi_pci_need_resume:                  ; @acpi_pci_need_resume
	.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
	mov	x20, x0
	bl	_ACPI_COMPANION
	mov	x19, x0
	mov	x0, x20
	bl	_pci_is_bridge
	cbz	x0, LBB0_2
; %bb.1:
	bl	_acpi_target_system_state
Lloh0:
	adrp	x8, _ACPI_STATE_S0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_STATE_S0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_2:
	cbz	x19, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_acpi_device_power_manageable
	cbz	w0, LBB0_9
; %bb.4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_device_may_wakeup
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w8, ne
	cmp	w0, w8
	b.ne	LBB0_8
LBB0_6:
	bl	_acpi_target_system_state
Lloh3:
	adrp	x8, _ACPI_STATE_S0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_STATE_S0@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, ne
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_STATE_S0,8,3              ; @ACPI_STATE_S0
	.no_dead_strip	_acpi_pci_need_resume
.subsections_via_symbols
