	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_runtime_resume
_intel_runtime_resume:                  ## @intel_runtime_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	%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, %rbx
	movq	%rax, %rdi
	callq	_HAS_RUNTIME_PM
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_2:
	leaq	8(%rbx), %r14
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	leaq	12(%rbx), %rdi
	callq	_atomic_read
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
	movq	%r14, %rdi
	callq	_disable_rpm_wakeref_asserts
	movq	_PCI_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_intel_opregion_notify_adapter
	movl	$0, 8(%rbx)
	movq	%rbx, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_intel_uncore_unclaimed_mmio
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
LBB0_4:
	movq	%rbx, %rdi
	callq	_intel_display_power_resume
	movq	%rbx, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_vlv_resume_prepare
	movl	%eax, %r15d
LBB0_8:
	movq	%r12, %rdi
	callq	_intel_uncore_runtime_resume
	movq	%rbx, %rdi
	callq	_intel_runtime_pm_enable_interrupts
	movq	%rbx, %rdi
	callq	_intel_gt_runtime_resume
	movq	%rbx, %rdi
	callq	_i915_gem_restore_fences
	movq	%rbx, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_intel_hpd_init
LBB0_11:
	movq	%rbx, %rdi
	callq	_intel_enable_ipc
	movq	%r14, %rdi
	callq	_enable_rpm_wakeref_asserts
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	callq	_DRM_ERROR
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	xorl	%r15d, %r15d
LBB0_14:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Resuming device\n"

	.comm	_PCI_D0,4,2                     ## @PCI_D0
L_.str.1:                               ## @.str.1
	.asciz	"Unclaimed access during suspend, bios?\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"Device resumed\n"

	.no_dead_strip	_intel_runtime_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_runtime_resume
_intel_runtime_resume:                  ; @intel_runtime_resume
	.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
	bl	_kdev_to_i915
	mov	x19, x0
	bl	_HAS_RUNTIME_PM
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_2:
	add	x20, x19, #8
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	add	x0, x19, #12
	bl	_atomic_read
	bl	_WARN_ON_ONCE
	mov	x0, x20
	bl	_disable_rpm_wakeref_asserts
Lloh5:
	adrp	x8, _PCI_D0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_D0@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_intel_opregion_notify_adapter
	str	wzr, [x19, #8]
	add	x22, x19, #4
	mov	x0, x22
	bl	_intel_uncore_unclaimed_mmio
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
LBB0_4:
	mov	x0, x19
	bl	_intel_display_power_resume
	mov	x0, x19
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_14
LBB0_6:
	mov	x0, x19
	mov	w1, #1
	bl	_vlv_resume_prepare
	mov	x21, x0
LBB0_7:
	mov	x0, x22
	bl	_intel_uncore_runtime_resume
	mov	x0, x19
	bl	_intel_runtime_pm_enable_interrupts
	mov	x0, x19
	bl	_intel_gt_runtime_resume
	mov	x0, x19
	bl	_i915_gem_restore_fences
	mov	x0, x19
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_IS_CHERRYVIEW
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_intel_hpd_init
LBB0_10:
	mov	x0, x19
	bl	_intel_enable_ipc
	mov	x0, x20
	bl	_enable_rpm_wakeref_asserts
	cbz	w21, LBB0_12
; %bb.11:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_DRM_ERROR
	b	LBB0_13
LBB0_12:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_13:
	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
LBB0_14:
	mov	w21, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Resuming device\n"

	.comm	_PCI_D0,4,2                     ; @PCI_D0
l_.str.1:                               ; @.str.1
	.asciz	"Unclaimed access during suspend, bios?\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"Device resumed\n"

	.no_dead_strip	_intel_runtime_resume
.subsections_via_symbols
