	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_finish_runtime_suspend     ## -- Begin function pci_finish_runtime_suspend
	.p2align	4, 0x90
_pci_finish_runtime_suspend:            ## @pci_finish_runtime_suspend
	.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, %r15
	addq	$4, %rdi
	callq	_device_can_wakeup
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_target_state
	movq	%rax, %r14
	movq	_PCI_POWER_ERROR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_PCI_D3cold@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	(%rax), %r14
	sete	%cl
	movl	%ecx, (%r15)
	movq	%r15, %rdi
	callq	_pci_dev_run_wake
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	___pci_enable_wake
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pci_set_power_state
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_pci_enable_wake
	movl	$0, (%r15)
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_POWER_ERROR,8,3            ## @PCI_POWER_ERROR
	.comm	_EIO,4,2                        ## @EIO
	.comm	_PCI_D3cold,8,3                 ## @PCI_D3cold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_finish_runtime_suspend     ; -- Begin function pci_finish_runtime_suspend
	.p2align	2
_pci_finish_runtime_suspend:            ; @pci_finish_runtime_suspend
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	add	x0, x0, #4
	bl	_device_can_wakeup
	mov	x1, x0
	mov	x0, x19
	bl	_pci_target_state
Lloh0:
	adrp	x8, _PCI_POWER_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_POWER_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_4
LBB0_2:
	mov	x20, x0
Lloh6:
	adrp	x8, _PCI_D3cold@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_D3cold@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w8, eq
	str	w8, [x19]
	mov	x0, x19
	bl	_pci_dev_run_wake
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	___pci_enable_wake
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_power_state
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_pci_enable_wake
	str	wzr, [x19]
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_POWER_ERROR,8,3            ; @PCI_POWER_ERROR
	.comm	_EIO,4,2                        ; @EIO
	.comm	_PCI_D3cold,8,3                 ; @PCI_D3cold
.subsections_via_symbols
