	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_drm_suspend
_i915_drm_suspend:                      ## @i915_drm_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, %r14
	callq	_to_i915
	movq	%rax, %rbx
	movq	8(%rax), %r15
	movq	%rax, %rdi
	callq	_disable_rpm_wakeref_asserts
	movq	%rbx, %rdi
	callq	_intel_power_domains_disable
	movq	%r14, %rdi
	callq	_drm_kms_helper_poll_disable
	movq	%r15, %rdi
	callq	_pci_save_state
	movq	%r14, %rdi
	callq	_intel_display_suspend
	movq	%rbx, %rdi
	callq	_intel_dp_mst_suspend
	movq	%rbx, %rdi
	callq	_intel_runtime_pm_disable_interrupts
	movq	%rbx, %rdi
	callq	_intel_hpd_cancel_work
	movq	%rbx, %rdi
	callq	_intel_suspend_encoders
	movq	%rbx, %rdi
	callq	_intel_suspend_hw
	movq	%rbx, %rdi
	callq	_i915_gem_suspend_gtt_mappings
	movq	%rbx, %rdi
	callq	_i915_save_state
	movq	%rbx, %rdi
	callq	_suspend_to_idle
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_PCI_D3cold@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PCI_D1@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_intel_opregion_suspend
	movq	_FBINFO_STATE_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_intel_fbdev_set_suspend
	incl	4(%rbx)
	movq	%rbx, %rdi
	callq	_intel_csr_ucode_suspend
	movq	%rbx, %rdi
	callq	_enable_rpm_wakeref_asserts
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_D1,4,2                     ## @PCI_D1
	.comm	_PCI_D3cold,4,2                 ## @PCI_D3cold
	.comm	_FBINFO_STATE_SUSPENDED,4,2     ## @FBINFO_STATE_SUSPENDED
	.no_dead_strip	_i915_drm_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_drm_suspend
_i915_drm_suspend:                      ; @i915_drm_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	x20, x0
	bl	_to_i915
	mov	x19, x0
	ldr	x21, [x0, #8]
	bl	_disable_rpm_wakeref_asserts
	mov	x0, x19
	bl	_intel_power_domains_disable
	mov	x0, x20
	bl	_drm_kms_helper_poll_disable
	mov	x0, x21
	bl	_pci_save_state
	mov	x0, x20
	bl	_intel_display_suspend
	mov	x0, x19
	bl	_intel_dp_mst_suspend
	mov	x0, x19
	bl	_intel_runtime_pm_disable_interrupts
	mov	x0, x19
	bl	_intel_hpd_cancel_work
	mov	x0, x19
	bl	_intel_suspend_encoders
	mov	x0, x19
	bl	_intel_suspend_hw
	mov	x0, x19
	bl	_i915_gem_suspend_gtt_mappings
	mov	x0, x19
	bl	_i915_save_state
	mov	x0, x19
	bl	_suspend_to_idle
Lloh0:
	adrp	x8, _PCI_D1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_D1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _PCI_D3cold@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PCI_D3cold@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_intel_opregion_suspend
Lloh4:
	adrp	x8, _FBINFO_STATE_SUSPENDED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FBINFO_STATE_SUSPENDED@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_intel_fbdev_set_suspend
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_intel_csr_ucode_suspend
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_D1,4,2                     ; @PCI_D1
	.comm	_PCI_D3cold,4,2                 ; @PCI_D3cold
	.comm	_FBINFO_STATE_SUSPENDED,4,2     ; @FBINFO_STATE_SUSPENDED
	.no_dead_strip	_i915_drm_suspend
.subsections_via_symbols
