	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_psr_exit
_intel_psr_exit:                        ## @intel_psr_exit
	.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, %r15
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.4:
	cmpq	$0, 8(%r15)
	movq	_EDP_PSR2_CTL@GOTPCREL(%rip), %r12
	cmoveq	_EDP_PSR_CTL@GOTPCREL(%rip), %r12
	movq	_EDP_PSR2_ENABLE@GOTPCREL(%rip), %rbx
	cmoveq	_EDP_PSR_ENABLE@GOTPCREL(%rip), %rbx
	movl	(%r12), %edi
	callq	_I915_READ
	movl	%eax, %r14d
	xorl	%edi, %edi
	movl	(%rbx), %eax
	andl	%r14d, %eax
	sete	%dil
	callq	_WARN_ON
	movl	(%r12), %edi
	movl	(%rbx), %esi
	notl	%esi
	andl	%r14d, %esi
	callq	_I915_WRITE
	movl	$0, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jl	LBB0_3
## %bb.2:
	movq	_EDP_PSR2_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	_EDP_PSR2_ENABLE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %edi
	callq	_WARN_ON
LBB0_3:
	movq	_EDP_PSR_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	_EDP_PSR_ENABLE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EDP_PSR2_CTL,4,2               ## @EDP_PSR2_CTL
	.comm	_EDP_PSR2_ENABLE,4,2            ## @EDP_PSR2_ENABLE
	.comm	_EDP_PSR_CTL,4,2                ## @EDP_PSR_CTL
	.comm	_EDP_PSR_ENABLE,4,2             ## @EDP_PSR_ENABLE
	.no_dead_strip	_intel_psr_exit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_psr_exit
_intel_psr_exit:                        ; @intel_psr_exit
	.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	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _EDP_PSR2_CTL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EDP_PSR2_CTL@GOTPAGEOFF]
Lloh2:
	adrp	x10, _EDP_PSR_CTL@GOTPAGE
Lloh3:
	ldr	x10, [x10, _EDP_PSR_CTL@GOTPAGEOFF]
	cmp	x8, #0
	csel	x21, x10, x9, eq
Lloh4:
	adrp	x8, _EDP_PSR2_ENABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EDP_PSR2_ENABLE@GOTPAGEOFF]
Lloh6:
	adrp	x9, _EDP_PSR_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EDP_PSR_ENABLE@GOTPAGEOFF]
	csel	x22, x9, x8, eq
	ldr	w0, [x21]
	bl	_I915_READ
	mov	x20, x0
	ldr	w8, [x22]
	tst	w8, w0
	cset	w0, eq
	bl	_WARN_ON
	ldr	w0, [x21]
	ldr	w8, [x22]
	bic	w1, w20, w8
	bl	_I915_WRITE
	str	wzr, [x19]
	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_2:
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #9
	b.lt	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _EDP_PSR2_CTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EDP_PSR2_CTL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh11:
	adrp	x8, _EDP_PSR2_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EDP_PSR2_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w0, w8, w0
	bl	_WARN_ON
LBB0_4:
Lloh14:
	adrp	x8, _EDP_PSR_CTL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EDP_PSR_CTL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh17:
	adrp	x8, _EDP_PSR_ENABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EDP_PSR_ENABLE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	and	w0, w8, w0
	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
	b	_WARN_ON
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EDP_PSR2_CTL,4,2               ; @EDP_PSR2_CTL
	.comm	_EDP_PSR2_ENABLE,4,2            ; @EDP_PSR2_ENABLE
	.comm	_EDP_PSR_CTL,4,2                ; @EDP_PSR_CTL
	.comm	_EDP_PSR_ENABLE,4,2             ; @EDP_PSR_ENABLE
	.no_dead_strip	_intel_psr_exit
.subsections_via_symbols
