	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_dev_check_d3cold
_pci_dev_check_d3cold:                  ## @pci_dev_check_d3cold
	.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	%rsi, %r14
	cmpq	$0, 8(%rdi)
	je	LBB0_1
LBB0_6:
	movl	$0, (%r14)
	movl	$1, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	cmpl	$0, 4(%rdi)
	je	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_device_may_wakeup
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_PCI_D3cold@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pci_pme_capable
	testl	%eax, %eax
	je	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_pci_power_manageable
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	cmpl	$0, (%r14)
	sete	%al
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_D3cold,4,2                 ## @PCI_D3cold
	.no_dead_strip	_pci_dev_check_d3cold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_dev_check_d3cold
_pci_dev_check_d3cold:                  ; @pci_dev_check_d3cold
	.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	x19, x1
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
LBB0_1:
	str	wzr, [x19]
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x20, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_1
; %bb.4:
	mov	x0, x20
	bl	_device_may_wakeup
	cbz	x0, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _PCI_D3cold@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_D3cold@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pci_pme_capable
	cbz	w0, LBB0_1
LBB0_6:
	mov	x0, x20
	bl	_pci_power_manageable
	cbz	w0, LBB0_1
; %bb.7:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_D3cold,4,2                 ; @PCI_D3cold
	.no_dead_strip	_pci_dev_check_d3cold
.subsections_via_symbols
