	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_psr_enable_source
_intel_psr_enable_source:               ## @intel_psr_enable_source
	.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	%rsi, %rbx
	movq	%rdi, %r12
	callq	_dp_to_i915
	movq	%rax, %r15
	movl	(%rbx), %r14d
	movq	%rax, %rdi
	callq	_IS_HASWELL
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_IS_BROADWELL
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	%r12, %rdi
	callq	_hsw_psr_setup_aux
LBB0_3:
	cmpq	$0, (%r15)
	je	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	movl	$9, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_IS_GEMINILAKE
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_gen9_chicken_trans_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_I915_READ
	movq	_PSR2_VSC_ENABLE_PROG_HEADER@GOTPCREL(%rip), %rcx
	movq	_PSR2_ADD_VERTICAL_LINE_COUNT@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
LBB0_7:
	movq	_EDP_PSR_DEBUG_MASK_MEMUP@GOTPCREL(%rip), %rax
	movq	_EDP_PSR_DEBUG_MASK_HPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_EDP_PSR_DEBUG_MASK_LPSP@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_EDP_PSR_DEBUG_MASK_MAX_SLEEP@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_INTEL_GEN
	xorl	%ecx, %ecx
	cmpl	$11, %eax
	jge	LBB0_9
## %bb.8:
	movq	_EDP_PSR_DEBUG_MASK_DISP_REG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_9:
	orl	%ecx, %ebx
	movq	_EDP_PSR_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PSR2_VSC_ENABLE_PROG_HEADER,4,2 ## @PSR2_VSC_ENABLE_PROG_HEADER
	.comm	_PSR2_ADD_VERTICAL_LINE_COUNT,4,2 ## @PSR2_ADD_VERTICAL_LINE_COUNT
	.comm	_EDP_PSR_DEBUG_MASK_MEMUP,4,2   ## @EDP_PSR_DEBUG_MASK_MEMUP
	.comm	_EDP_PSR_DEBUG_MASK_HPD,4,2     ## @EDP_PSR_DEBUG_MASK_HPD
	.comm	_EDP_PSR_DEBUG_MASK_LPSP,4,2    ## @EDP_PSR_DEBUG_MASK_LPSP
	.comm	_EDP_PSR_DEBUG_MASK_MAX_SLEEP,4,2 ## @EDP_PSR_DEBUG_MASK_MAX_SLEEP
	.comm	_EDP_PSR_DEBUG_MASK_DISP_REG_WRITE,4,2 ## @EDP_PSR_DEBUG_MASK_DISP_REG_WRITE
	.comm	_EDP_PSR_DEBUG,4,2              ## @EDP_PSR_DEBUG
	.no_dead_strip	_intel_psr_enable_source
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_psr_enable_source
_intel_psr_enable_source:               ; @intel_psr_enable_source
	.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, x1
	mov	x21, x0
	bl	_dp_to_i915
	mov	x19, x0
	ldr	w20, [x20]
	bl	_IS_HASWELL
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_IS_BROADWELL
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_hsw_psr_setup_aux
LBB0_3:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.4:
	mov	x0, x19
	mov	w1, #9
	bl	_IS_GEN
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_IS_GEMINILAKE
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_gen9_chicken_trans_reg
	mov	x20, x0
	bl	_I915_READ
Lloh0:
	adrp	x8, _PSR2_VSC_ENABLE_PROG_HEADER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSR2_VSC_ENABLE_PROG_HEADER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PSR2_ADD_VERTICAL_LINE_COUNT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PSR2_ADD_VERTICAL_LINE_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w1, w8, w9
	mov	x0, x20
	bl	_I915_WRITE
LBB0_7:
Lloh6:
	adrp	x8, _EDP_PSR_DEBUG_MASK_MEMUP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EDP_PSR_DEBUG_MASK_MEMUP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _EDP_PSR_DEBUG_MASK_HPD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EDP_PSR_DEBUG_MASK_HPD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _EDP_PSR_DEBUG_MASK_LPSP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EDP_PSR_DEBUG_MASK_LPSP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _EDP_PSR_DEBUG_MASK_MAX_SLEEP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EDP_PSR_DEBUG_MASK_MAX_SLEEP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w20, w8, w9
	mov	x0, x19
	bl	_INTEL_GEN
Lloh18:
	adrp	x8, _EDP_PSR_DEBUG_MASK_DISP_REG_WRITE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EDP_PSR_DEBUG_MASK_DISP_REG_WRITE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, #11
	csel	w8, w8, wzr, lt
	orr	w1, w20, w8
Lloh21:
	adrp	x8, _EDP_PSR_DEBUG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EDP_PSR_DEBUG@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	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	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PSR2_VSC_ENABLE_PROG_HEADER,4,2 ; @PSR2_VSC_ENABLE_PROG_HEADER
	.comm	_PSR2_ADD_VERTICAL_LINE_COUNT,4,2 ; @PSR2_ADD_VERTICAL_LINE_COUNT
	.comm	_EDP_PSR_DEBUG_MASK_MEMUP,4,2   ; @EDP_PSR_DEBUG_MASK_MEMUP
	.comm	_EDP_PSR_DEBUG_MASK_HPD,4,2     ; @EDP_PSR_DEBUG_MASK_HPD
	.comm	_EDP_PSR_DEBUG_MASK_LPSP,4,2    ; @EDP_PSR_DEBUG_MASK_LPSP
	.comm	_EDP_PSR_DEBUG_MASK_MAX_SLEEP,4,2 ; @EDP_PSR_DEBUG_MASK_MAX_SLEEP
	.comm	_EDP_PSR_DEBUG_MASK_DISP_REG_WRITE,4,2 ; @EDP_PSR_DEBUG_MASK_DISP_REG_WRITE
	.comm	_EDP_PSR_DEBUG,4,2              ; @EDP_PSR_DEBUG
	.no_dead_strip	_intel_psr_enable_source
.subsections_via_symbols
