	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_psr_activate
_intel_psr_activate:                    ## @intel_psr_activate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_dp_to_i915
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jl	LBB0_2
## %bb.1:
	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_2:
	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
	callq	_WARN_ON
	movl	(%rbx), %edi
	callq	_WARN_ON
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_lockdep_assert_held
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_hsw_activate_psr2
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_hsw_activate_psr1
LBB0_5:
	movl	$1, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.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_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_psr_activate
_intel_psr_activate:                    ; @intel_psr_activate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_dp_to_i915
	mov	x19, x0
	bl	_INTEL_GEN
	cmp	w0, #9
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EDP_PSR2_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EDP_PSR2_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh3:
	adrp	x8, _EDP_PSR2_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDP_PSR2_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w0, w8, w0
	bl	_WARN_ON
LBB0_2:
Lloh6:
	adrp	x8, _EDP_PSR_CTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EDP_PSR_CTL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh9:
	adrp	x8, _EDP_PSR_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EDP_PSR_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w0, w8, w0
	bl	_WARN_ON
	ldr	w0, [x19]
	bl	_WARN_ON
	add	x0, x19, #16
	bl	_lockdep_assert_held
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_hsw_activate_psr2
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_hsw_activate_psr1
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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_activate
.subsections_via_symbols
