	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_psr_sink_status_show
_i915_psr_sink_status_show:             ## @i915_psr_sink_status_show
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movl	8(%rbx), %edi
	callq	_to_i915
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_intel_attached_encoder
	movq	%rax, %rdi
	callq	_enc_to_intel_dp
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_CAN_PSR
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	_connector_status_connected@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_DP_PSR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_drm_dp_dpcd_readb
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.5:
	movq	_DP_PSR_SINK_STATE_MASK@GOTPCREL(%rip), %rax
	movq	-40(%rbp), %rbx
	andq	(%rax), %rbx
	movq	%rbx, -40(%rbp)
	leaq	_i915_psr_sink_status_show.sink_status(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	-40(%rbp), %rdx
	cmpq	%rax, %rbx
	jae	LBB0_6
## %bb.7:
	movq	(%r15,%rdx,8), %rcx
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_seq_puts
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.8(%rip), %rcx
LBB0_8:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_seq_printf
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @i915_psr_sink_status_show.sink_status
_i915_psr_sink_status_show.sink_status:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str.3
	.quad	L_.str.4
	.quad	L_.str.5
	.quad	L_.str.5
	.quad	L_.str.6

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inactive"

L_.str.1:                               ## @.str.1
	.asciz	"transition to active, capture and display"

L_.str.2:                               ## @.str.2
	.asciz	"active, display from RFB"

L_.str.3:                               ## @.str.3
	.asciz	"active, capture and display on sink device timings"

L_.str.4:                               ## @.str.4
	.asciz	"transition to inactive, capture and display, timing re-sync"

L_.str.5:                               ## @.str.5
	.asciz	"reserved"

L_.str.6:                               ## @.str.6
	.asciz	"sink internal error"

L_.str.7:                               ## @.str.7
	.asciz	"PSR Unsupported\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_connector_status_connected,8,3 ## @connector_status_connected
	.comm	_DP_PSR_STATUS,4,2              ## @DP_PSR_STATUS
L_.str.8:                               ## @.str.8
	.asciz	"unknown"

	.comm	_DP_PSR_SINK_STATE_MASK,8,3     ## @DP_PSR_SINK_STATE_MASK
L_.str.9:                               ## @.str.9
	.asciz	"Sink PSR status: 0x%x [%s]\n"

	.no_dead_strip	_i915_psr_sink_status_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_psr_sink_status_show
_i915_psr_sink_status_show:             ; @i915_psr_sink_status_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, [x0]
	ldr	w0, [x20, #8]
	bl	_to_i915
	mov	x22, x0
	mov	x0, x20
	bl	_intel_attached_encoder
	bl	_enc_to_intel_dp
	mov	x21, x0
	mov	x0, x22
	bl	_CAN_PSR
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _connector_status_connected@GOTPAGE
Lloh1:
	ldr	x9, [x9, _connector_status_connected@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _DP_PSR_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_PSR_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_drm_dp_dpcd_readb
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _DP_PSR_SINK_STATE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DP_PSR_SINK_STATE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	and	x21, x9, x8
	str	x21, [sp, #8]
Lloh9:
	adrp	x20, _i915_psr_sink_status_show.sink_status@PAGE
Lloh10:
	add	x20, x20, _i915_psr_sink_status_show.sink_status@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	ldr	x2, [sp, #8]
	cmp	x21, x0
	b.hs	LBB0_8
; %bb.4:
	ldr	x3, [x20, x2, lsl #3]
	b	LBB0_9
LBB0_5:
Lloh11:
	adrp	x1, l_.str.7@PAGE
Lloh12:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_seq_puts
LBB0_6:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
Lloh16:
	adrp	x3, l_.str.8@PAGE
Lloh17:
	add	x3, x3, l_.str.8@PAGEOFF
LBB0_9:
Lloh18:
	adrp	x1, l_.str.9@PAGE
Lloh19:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_seq_printf
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @i915_psr_sink_status_show.sink_status
_i915_psr_sink_status_show.sink_status:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.5
	.quad	l_.str.6

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inactive"

l_.str.1:                               ; @.str.1
	.asciz	"transition to active, capture and display"

l_.str.2:                               ; @.str.2
	.asciz	"active, display from RFB"

l_.str.3:                               ; @.str.3
	.asciz	"active, capture and display on sink device timings"

l_.str.4:                               ; @.str.4
	.asciz	"transition to inactive, capture and display, timing re-sync"

l_.str.5:                               ; @.str.5
	.asciz	"reserved"

l_.str.6:                               ; @.str.6
	.asciz	"sink internal error"

l_.str.7:                               ; @.str.7
	.asciz	"PSR Unsupported\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_connector_status_connected,8,3 ; @connector_status_connected
	.comm	_DP_PSR_STATUS,4,2              ; @DP_PSR_STATUS
l_.str.8:                               ; @.str.8
	.asciz	"unknown"

	.comm	_DP_PSR_SINK_STATE_MASK,8,3     ; @DP_PSR_SINK_STATE_MASK
l_.str.9:                               ; @.str.9
	.asciz	"Sink PSR status: 0x%x [%s]\n"

	.no_dead_strip	_i915_psr_sink_status_show
.subsections_via_symbols
