	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_drm_resume_early
_i915_drm_resume_early:                 ## @i915_drm_resume_early
	.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
	callq	_to_i915
	movq	%rax, %r14
	movq	16(%rax), %rbx
	movq	_PCI_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pci_set_power_state
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	jmp	LBB0_10
LBB0_2:
	movq	%rbx, %rdi
	callq	_pci_enable_device
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_4:
	movq	%rbx, %rdi
	callq	_pci_set_master
	movq	%r14, %rdi
	callq	_disable_rpm_wakeref_asserts
	movq	%r14, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_vlv_resume_prepare
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	movl	%ebx, %r15d
	jmp	LBB0_9
LBB0_6:
	xorl	%r15d, %r15d
LBB0_9:
	leaq	8(%r14), %rdi
	callq	_intel_uncore_resume_early
	movq	%r14, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_intel_gt_check_and_clear_faults
	movq	%r14, %rdi
	callq	_intel_display_power_resume_early
	movq	%r14, %rdi
	callq	_intel_sanitize_gt_powersave
	movq	%r14, %rdi
	callq	_intel_power_domains_resume
	movq	%r14, %rdi
	callq	_i915_rc6_ctx_wa_resume
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_intel_gt_sanitize
	movq	%r14, %rdi
	callq	_enable_rpm_wakeref_asserts
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_D0,4,2                     ## @PCI_D0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set PCI D0 power state (%d)\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"Resume prepare failed: %d, continuing anyway\n"

	.no_dead_strip	_i915_drm_resume_early
.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_early
_i915_drm_resume_early:                 ; @i915_drm_resume_early
	.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	_to_i915
	mov	x19, x0
	ldr	x21, [x0, #16]
Lloh0:
	adrp	x8, _PCI_D0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_D0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_pci_set_power_state
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_ERROR
	b	LBB0_10
LBB0_2:
	mov	x0, x21
	bl	_pci_enable_device
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_4:
	mov	x0, x21
	bl	_pci_set_master
	mov	x0, x19
	bl	_disable_rpm_wakeref_asserts
	mov	x0, x19
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_8
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_vlv_resume_prepare
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.7:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_DRM_ERROR
	b	LBB0_9
LBB0_8:
	mov	w20, #0
LBB0_9:
	add	x0, x19, #8
	bl	_intel_uncore_resume_early
	add	x21, x19, #4
	mov	x0, x21
	bl	_intel_gt_check_and_clear_faults
	mov	x0, x19
	bl	_intel_display_power_resume_early
	mov	x0, x19
	bl	_intel_sanitize_gt_powersave
	mov	x0, x19
	bl	_intel_power_domains_resume
	mov	x0, x19
	bl	_i915_rc6_ctx_wa_resume
	mov	x0, x21
	mov	w1, #1
	bl	_intel_gt_sanitize
	mov	x0, x19
	bl	_enable_rpm_wakeref_asserts
LBB0_10:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_D0,4,2                     ; @PCI_D0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set PCI D0 power state (%d)\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"Resume prepare failed: %d, continuing anyway\n"

	.no_dead_strip	_i915_drm_resume_early
.subsections_via_symbols
