	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_psr_enable_locked
_intel_psr_enable_locked:               ## @intel_psr_enable_locked
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	movl	(%rdi), %edi
	callq	_WARN_ON
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_intel_psr2_enabled
	movq	%rax, 8(%rbx)
	movq	$0, 24(%rbx)
	movl	(%r15), %edi
	callq	_to_intel_crtc
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	cmpq	$0, 8(%rbx)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_intel_psr_setup_vsc
	movq	%r14, %rdi
	callq	_intel_psr_enable_sink
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_intel_psr_enable_source
	movl	$1, (%rbx)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_psr_activate             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enabling PSR%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"2"

L_.str.2:                               ## @.str.2
	.asciz	"1"

	.no_dead_strip	_intel_psr_enable_locked
.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_locked
_intel_psr_enable_locked:               ; @intel_psr_enable_locked
	.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, x1
	mov	x20, x0
	ldr	x21, [x0, #32]
	ldr	w0, [x0]
	bl	_WARN_ON
	mov	x0, x20
	mov	x1, x19
	bl	_intel_psr2_enabled
	str	x0, [x20, #8]
	str	xzr, [x20, #24]
	ldr	w0, [x19]
	bl	_to_intel_crtc
	ldr	w8, [x0]
	str	w8, [x20, #16]
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, l_.str.1@PAGE
Lloh1:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh2:
	adrp	x10, l_.str.2@PAGE
Lloh3:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x1, x10, x9, eq
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x21
	mov	x1, x19
	bl	_intel_psr_setup_vsc
	mov	x0, x21
	bl	_intel_psr_enable_sink
	mov	x0, x21
	mov	x1, x19
	bl	_intel_psr_enable_source
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x21
	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	_intel_psr_activate
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enabling PSR%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"2"

l_.str.2:                               ; @.str.2
	.asciz	"1"

	.no_dead_strip	_intel_psr_enable_locked
.subsections_via_symbols
