	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_drm_resume
_i915_drm_resume:                       ## @i915_drm_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
	movq	%rdi, %r14
	callq	_to_i915
	movq	%rax, %r15
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_disable_rpm_wakeref_asserts
	movq	%r15, %rdi
	callq	_intel_sanitize_gt_powersave
	movq	%r15, %rdi
	callq	_i915_gem_sanitize
	movq	%r15, %rdi
	callq	_i915_ggtt_enable_hw
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_2:
	leaq	16(%r15), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_i915_gem_restore_gtt_mappings
	movq	%rbx, %rdi
	callq	_i915_gem_restore_fences
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_intel_csr_ucode_resume
	movq	%rbx, %rdi
	callq	_i915_restore_state
	movq	%rbx, %rdi
	callq	_intel_pps_unlock_regs_wa
	movq	%rbx, %rdi
	callq	_intel_init_pch_refclk
	movq	%rbx, %rdi
	callq	_intel_runtime_pm_enable_interrupts
	movq	%r14, %rdi
	callq	_drm_mode_config_reset
	movq	%rbx, %rdi
	callq	_i915_gem_resume
	movq	%r14, %rdi
	callq	_intel_modeset_init_hw
	movq	%rbx, %rdi
	callq	_intel_init_clock_gating
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_4:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	%rbx, %rdi
	callq	_intel_dp_mst_resume
	movq	%r14, %rdi
	callq	_intel_display_resume
	movq	%r14, %rdi
	callq	_drm_kms_helper_poll_enable
	movq	%rbx, %rdi
	callq	_intel_hpd_init
	movq	%rbx, %rdi
	callq	_intel_opregion_resume
	movq	_FBINFO_STATE_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_intel_fbdev_set_suspend
	movq	%rbx, %rdi
	callq	_intel_power_domains_enable
	movq	%rbx, %rdi
	callq	_enable_rpm_wakeref_asserts
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to re-enable GGTT\n"

	.comm	_FBINFO_STATE_RUNNING,4,2       ## @FBINFO_STATE_RUNNING
	.no_dead_strip	_i915_drm_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_drm_resume
_i915_drm_resume:                       ; @i915_drm_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
	mov	x20, x0
	bl	_to_i915
	mov	x19, x0
	bl	_disable_rpm_wakeref_asserts
	mov	x0, x19
	bl	_intel_sanitize_gt_powersave
	mov	x0, x19
	bl	_i915_gem_sanitize
	mov	x0, x19
	bl	_i915_ggtt_enable_hw
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_2:
	add	x21, x19, #16
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x19
	bl	_i915_gem_restore_gtt_mappings
	mov	x0, x19
	bl	_i915_gem_restore_fences
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	bl	_intel_csr_ucode_resume
	mov	x0, x19
	bl	_i915_restore_state
	mov	x0, x19
	bl	_intel_pps_unlock_regs_wa
	mov	x0, x19
	bl	_intel_init_pch_refclk
	mov	x0, x19
	bl	_intel_runtime_pm_enable_interrupts
	mov	x0, x20
	bl	_drm_mode_config_reset
	mov	x0, x19
	bl	_i915_gem_resume
	mov	x0, x20
	bl	_intel_modeset_init_hw
	mov	x0, x19
	bl	_intel_init_clock_gating
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	blr	x8
LBB0_4:
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_intel_dp_mst_resume
	mov	x0, x20
	bl	_intel_display_resume
	mov	x0, x20
	bl	_drm_kms_helper_poll_enable
	mov	x0, x19
	bl	_intel_hpd_init
	mov	x0, x19
	bl	_intel_opregion_resume
Lloh2:
	adrp	x8, _FBINFO_STATE_RUNNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FBINFO_STATE_RUNNING@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_intel_fbdev_set_suspend
	mov	x0, x19
	bl	_intel_power_domains_enable
	mov	x0, x19
	bl	_enable_rpm_wakeref_asserts
	mov	w0, #0
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to re-enable GGTT\n"

	.comm	_FBINFO_STATE_RUNNING,4,2       ; @FBINFO_STATE_RUNNING
	.no_dead_strip	_i915_drm_resume
.subsections_via_symbols
