	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_runtime_suspend
_intel_runtime_suspend:                 ## @intel_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_kdev_to_i915
	movq	%rax, %r12
	movq	%rax, %r14
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_HAS_RC6
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	callq	_HAS_RUNTIME_PM
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	16(%r12), %r15
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	%r15, %rdi
	callq	_disable_rpm_wakeref_asserts
	movq	%r14, %rdi
	callq	_i915_gem_runtime_suspend
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_intel_gt_runtime_suspend
	movq	%r14, %rdi
	callq	_intel_runtime_pm_disable_interrupts
	movq	%r14, %rdi
	callq	_intel_uncore_suspend
	movq	%r14, %rdi
	callq	_intel_display_power_suspend
	movq	%r14, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_10
LBB0_8:
	movq	%r14, %rdi
	callq	_vlv_suspend_complete
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	%r14, %rdi
	callq	_intel_uncore_runtime_resume
	movq	%r14, %rdi
	callq	_intel_runtime_pm_enable_interrupts
	movq	%r12, %rdi
	callq	_intel_gt_runtime_resume
	movq	%r14, %rdi
	callq	_i915_gem_restore_fences
	movq	%r15, %rdi
	callq	_enable_rpm_wakeref_asserts
	jmp	LBB0_19
LBB0_10:
	movq	%r15, %rdi
	callq	_enable_rpm_wakeref_asserts
	movq	%r15, %rdi
	callq	_intel_runtime_pm_driver_release
	movq	%r14, %rdi
	callq	_intel_uncore_arm_unclaimed_mmio_detection
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_12:
	movl	$1, 16(%r14)
	movq	%r14, %rdi
	callq	_IS_BROADWELL
	testq	%rax, %rax
	jne	LBB0_13
## %bb.14:
	movq	_PCI_D1@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_PCI_D3hot@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_intel_opregion_notify_adapter
	movq	%r14, %rdi
	callq	_assert_forcewakes_inactive
	movq	%r14, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	jne	LBB0_18
## %bb.16:
	movq	%r14, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_intel_hpd_poll_init
LBB0_18:
	leaq	L_.str.3(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Suspending device\n"

L_.str.1:                               ## @.str.1
	.asciz	"Runtime suspend failed, disabling it (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unclaimed access detected prior to suspending\n"

	.comm	_PCI_D3hot,4,2                  ## @PCI_D3hot
	.comm	_PCI_D1,4,2                     ## @PCI_D1
L_.str.3:                               ## @.str.3
	.asciz	"Device suspended\n"

	.no_dead_strip	_intel_runtime_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_runtime_suspend
_intel_runtime_suspend:                 ; @intel_runtime_suspend
	.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
	bl	_kdev_to_i915
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_HAS_RC6
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_4
	b	LBB0_3
LBB0_2:
	mov	w0, #1
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_HAS_RUNTIME_PM
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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_6:
	add	x20, x19, #16
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x20
	bl	_disable_rpm_wakeref_asserts
	mov	x0, x19
	bl	_i915_gem_runtime_suspend
	add	x21, x19, #4
	mov	x0, x21
	bl	_intel_gt_runtime_suspend
	mov	x0, x19
	bl	_intel_runtime_pm_disable_interrupts
	mov	x0, x19
	bl	_intel_uncore_suspend
	mov	x0, x19
	bl	_intel_display_power_suspend
	mov	x0, x19
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_vlv_suspend_complete
	cbz	w0, LBB0_10
; %bb.9:
	mov	x22, x0
	str	x22, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	mov	x0, x19
	bl	_intel_uncore_runtime_resume
	mov	x0, x19
	bl	_intel_runtime_pm_enable_interrupts
	mov	x0, x21
	bl	_intel_gt_runtime_resume
	mov	x0, x19
	bl	_i915_gem_restore_fences
	mov	x0, x20
	bl	_enable_rpm_wakeref_asserts
	b	LBB0_5
LBB0_10:
	mov	x0, x20
	bl	_enable_rpm_wakeref_asserts
	mov	x0, x20
	bl	_intel_runtime_pm_driver_release
	mov	x0, x19
	bl	_intel_uncore_arm_unclaimed_mmio_detection
	cbz	x0, LBB0_12
; %bb.11:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
LBB0_12:
	mov	w8, #1
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_IS_BROADWELL
Lloh9:
	adrp	x8, _PCI_D1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_D1@GOTPAGEOFF]
Lloh11:
	adrp	x9, _PCI_D3hot@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PCI_D3hot@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_intel_opregion_notify_adapter
	mov	x0, x19
	bl	_assert_forcewakes_inactive
	mov	x0, x19
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_15
; %bb.13:
	mov	x0, x19
	bl	_IS_CHERRYVIEW
	cbnz	x0, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_intel_hpd_poll_init
LBB0_15:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w22, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Suspending device\n"

l_.str.1:                               ; @.str.1
	.asciz	"Runtime suspend failed, disabling it (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unclaimed access detected prior to suspending\n"

	.comm	_PCI_D3hot,4,2                  ; @PCI_D3hot
	.comm	_PCI_D1,4,2                     ; @PCI_D1
l_.str.3:                               ; @.str.3
	.asciz	"Device suspended\n"

	.no_dead_strip	_intel_runtime_suspend
.subsections_via_symbols
