	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_acpi_wake_dev
_pci_acpi_wake_dev:                     ## @pci_acpi_wake_dev
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %edi
	callq	_to_pci_dev
	movq	%rax, %rbx
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$0, (%rbx)
LBB0_2:
	movq	8(%rbx), %rax
	movq	_PCI_D3cold@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.6:
	movq	%rbx, %rdi
	callq	_pci_wakeup_event
	addq	$20, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pm_request_resume              ## TAILCALL
LBB0_3:
	cmpq	$0, 24(%rbx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_pci_check_pme_status
LBB0_5:
	movq	%rbx, %rdi
	callq	_pci_wakeup_event
	movq	%rbx, %rdi
	addq	$20, %rdi
	callq	_pm_request_resume
	movl	16(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pci_pme_wakeup_bus             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_D3cold,8,3                 ## @PCI_D3cold
	.no_dead_strip	_pci_acpi_wake_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_acpi_wake_dev
_pci_acpi_wake_dev:                     ; @pci_acpi_wake_dev
	.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
	ldr	w0, [x0]
	bl	_to_pci_dev
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	str	wzr, [x19]
LBB0_2:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _PCI_D3cold@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_D3cold@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_pci_wakeup_event
	add	x0, x19, #20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pm_request_resume
LBB0_4:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_pci_check_pme_status
LBB0_6:
	mov	x0, x19
	bl	_pci_wakeup_event
	add	x0, x19, #20
	bl	_pm_request_resume
	ldr	w0, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pci_pme_wakeup_bus
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_D3cold,8,3                 ; @PCI_D3cold
	.no_dead_strip	_pci_acpi_wake_dev
.subsections_via_symbols
