	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_psr_short_pulse          ## -- Begin function intel_psr_short_pulse
	.p2align	4, 0x90
_intel_psr_short_pulse:                 ## @intel_psr_short_pulse
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_dp_to_i915
	movq	_DP_PSR_RFB_STORAGE_ERROR@GOTPCREL(%rip), %r13
	movq	_DP_PSR_VSC_SDP_UNCORRECTABLE_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%r13), %ebx
	movq	%rax, %r12
	movq	_DP_PSR_LINK_CRC_ERROR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_CAN_PSR
	testl	%eax, %eax
	je	LBB0_23
## %bb.1:
	movq	%r15, %rdi
	callq	_intel_dp_is_edp
	testl	%eax, %eax
	je	LBB0_23
## %bb.2:
	movq	%r12, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, 16(%r12)
	je	LBB0_22
## %bb.3:
	cmpq	%r15, 8(%r12)
	jne	LBB0_22
## %bb.4:
	movq	_DP_PSR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_drm_dp_dpcd_readb
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.7:
	movq	_DP_PSR_SINK_STATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-44(%rbp), %eax
	movq	_DP_PSR_SINK_INTERNAL_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	%r15, %rdi
	callq	_intel_psr_disable_locked
	movl	$1, (%r12)
LBB0_9:
	movq	_DP_PSR_ERROR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_drm_dp_dpcd_readb
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.11:
	movl	-44(%rbp), %edx
	testl	%edx, (%r13)
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	-44(%rbp), %edx
LBB0_13:
	movq	_DP_PSR_VSC_SDP_UNCORRECTABLE_ERROR@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	movq	_DP_PSR_ERROR_STATUS@GOTPCREL(%rip), %r13
	je	LBB0_15
## %bb.14:
	leaq	L_.str.4(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	-44(%rbp), %edx
LBB0_15:
	movq	_DP_PSR_LINK_CRC_ERROR@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_17
## %bb.16:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movl	-44(%rbp), %edx
LBB0_17:
	movl	%ebx, %esi
	notl	%esi
	andl	%edx, %esi
	je	LBB0_19
## %bb.18:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movl	-44(%rbp), %edx
LBB0_19:
	testl	%ebx, %edx
	je	LBB0_21
## %bb.20:
	movq	%r15, %rdi
	callq	_intel_psr_disable_locked
	movl	$1, (%r12)
	movl	-44(%rbp), %edx
LBB0_21:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_drm_dp_dpcd_writeb
	jmp	LBB0_22
LBB0_5:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_22:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_PSR_RFB_STORAGE_ERROR,4,2   ## @DP_PSR_RFB_STORAGE_ERROR
	.comm	_DP_PSR_VSC_SDP_UNCORRECTABLE_ERROR,4,2 ## @DP_PSR_VSC_SDP_UNCORRECTABLE_ERROR
	.comm	_DP_PSR_LINK_CRC_ERROR,4,2      ## @DP_PSR_LINK_CRC_ERROR
	.comm	_DP_PSR_STATUS,4,2              ## @DP_PSR_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PSR_STATUS dpcd read failed\n"

	.comm	_DP_PSR_SINK_STATE_MASK,4,2     ## @DP_PSR_SINK_STATE_MASK
	.comm	_DP_PSR_SINK_INTERNAL_ERROR,4,2 ## @DP_PSR_SINK_INTERNAL_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"PSR sink internal error, disabling PSR\n"

	.comm	_DP_PSR_ERROR_STATUS,4,2        ## @DP_PSR_ERROR_STATUS
L_.str.2:                               ## @.str.2
	.asciz	"PSR_ERROR_STATUS dpcd read failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"PSR RFB storage error, disabling PSR\n"

L_.str.4:                               ## @.str.4
	.asciz	"PSR VSC SDP uncorrectable error, disabling PSR\n"

L_.str.5:                               ## @.str.5
	.asciz	"PSR Link CRC error, disabling PSR\n"

L_.str.6:                               ## @.str.6
	.asciz	"PSR_ERROR_STATUS unhandled errors %x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_psr_short_pulse          ; -- Begin function intel_psr_short_pulse
	.p2align	2
_intel_psr_short_pulse:                 ; @intel_psr_short_pulse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_dp_to_i915
	mov	x21, x0
Lloh0:
	adrp	x28, _DP_PSR_RFB_STORAGE_ERROR@GOTPAGE
Lloh1:
	ldr	x28, [x28, _DP_PSR_RFB_STORAGE_ERROR@GOTPAGEOFF]
	ldr	w24, [x28]
Lloh2:
	adrp	x25, _DP_PSR_VSC_SDP_UNCORRECTABLE_ERROR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DP_PSR_VSC_SDP_UNCORRECTABLE_ERROR@GOTPAGEOFF]
	ldr	w26, [x25]
Lloh4:
	adrp	x22, _DP_PSR_LINK_CRC_ERROR@GOTPAGE
Lloh5:
	ldr	x22, [x22, _DP_PSR_LINK_CRC_ERROR@GOTPAGEOFF]
	ldr	w23, [x22]
	bl	_CAN_PSR
	cbz	w0, LBB0_23
; %bb.1:
	mov	x0, x19
	bl	_intel_dp_is_edp
	cbz	w0, LBB0_23
; %bb.2:
	add	x20, x21, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_22
; %bb.3:
	ldr	x8, [x21, #8]
	cmp	x8, x19
	b.ne	LBB0_22
; %bb.4:
Lloh6:
	adrp	x8, _DP_PSR_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DP_PSR_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_drm_dp_dpcd_readb
	cmp	w0, #1
	b.ne	LBB0_19
; %bb.5:
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _DP_PSR_SINK_STATE_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DP_PSR_SINK_STATE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh12:
	adrp	x9, _DP_PSR_SINK_INTERNAL_ERROR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DP_PSR_SINK_INTERNAL_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	_intel_psr_disable_locked
	mov	w8, #1
	str	w8, [x21]
LBB0_7:
Lloh17:
	adrp	x27, _DP_PSR_ERROR_STATUS@GOTPAGE
Lloh18:
	ldr	x27, [x27, _DP_PSR_ERROR_STATUS@GOTPAGEOFF]
	ldr	w1, [x27]
	add	x2, sp, #12
	mov	x0, x19
	bl	_drm_dp_dpcd_readb
	cmp	w0, #1
	b.ne	LBB0_20
; %bb.8:
	ldr	w2, [sp, #12]
	ldr	w8, [x28]
	tst	w8, w2
	b.eq	LBB0_10
; %bb.9:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w2, [sp, #12]
LBB0_10:
	orr	w24, w26, w24
	ldr	w8, [x25]
	tst	w8, w2
	b.eq	LBB0_12
; %bb.11:
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w2, [sp, #12]
LBB0_12:
	orr	w23, w24, w23
	ldr	w8, [x22]
	tst	w8, w2
	b.eq	LBB0_14
; %bb.13:
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_ERROR
	ldr	w2, [sp, #12]
LBB0_14:
	bics	w8, w2, w23
	b.eq	LBB0_16
; %bb.15:
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.6@PAGE
Lloh26:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DRM_ERROR
	ldr	w2, [sp, #12]
LBB0_16:
	tst	w2, w23
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_intel_psr_disable_locked
	mov	w8, #1
	str	w8, [x21]
	ldr	w2, [sp, #12]
LBB0_18:
	ldr	w1, [x27]
	mov	x0, x19
	bl	_drm_dp_dpcd_writeb
	b	LBB0_22
LBB0_19:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_21:
	bl	_DRM_ERROR
LBB0_22:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_23:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_PSR_RFB_STORAGE_ERROR,4,2   ; @DP_PSR_RFB_STORAGE_ERROR
	.comm	_DP_PSR_VSC_SDP_UNCORRECTABLE_ERROR,4,2 ; @DP_PSR_VSC_SDP_UNCORRECTABLE_ERROR
	.comm	_DP_PSR_LINK_CRC_ERROR,4,2      ; @DP_PSR_LINK_CRC_ERROR
	.comm	_DP_PSR_STATUS,4,2              ; @DP_PSR_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PSR_STATUS dpcd read failed\n"

	.comm	_DP_PSR_SINK_STATE_MASK,4,2     ; @DP_PSR_SINK_STATE_MASK
	.comm	_DP_PSR_SINK_INTERNAL_ERROR,4,2 ; @DP_PSR_SINK_INTERNAL_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"PSR sink internal error, disabling PSR\n"

	.comm	_DP_PSR_ERROR_STATUS,4,2        ; @DP_PSR_ERROR_STATUS
l_.str.2:                               ; @.str.2
	.asciz	"PSR_ERROR_STATUS dpcd read failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"PSR RFB storage error, disabling PSR\n"

l_.str.4:                               ; @.str.4
	.asciz	"PSR VSC SDP uncorrectable error, disabling PSR\n"

l_.str.5:                               ; @.str.5
	.asciz	"PSR Link CRC error, disabling PSR\n"

l_.str.6:                               ; @.str.6
	.asciz	"PSR_ERROR_STATUS unhandled errors %x\n"

.subsections_via_symbols
