	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function analogix_dp_detect_sink_psr
_analogix_dp_detect_sink_psr:           ## @analogix_dp_detect_sink_psr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$4, %rdi
	movq	_DP_PSR_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-9(%rbp), %rdx
	callq	_drm_dp_dpcd_readb
	movl	(%rbx), %edi
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	movzbl	-9(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	_DP_PSR_IS_SUPPORTED@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	andb	-9(%rbp), %al
	movzbl	%al, %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_PSR_SUPPORT,4,2             ## @DP_PSR_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get PSR version, disable it\n"

L_.str.1:                               ## @.str.1
	.asciz	"Panel PSR version : %x\n"

	.comm	_DP_PSR_IS_SUPPORTED,1,0        ## @DP_PSR_IS_SUPPORTED
	.no_dead_strip	_analogix_dp_detect_sink_psr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function analogix_dp_detect_sink_psr
_analogix_dp_detect_sink_psr:           ; @analogix_dp_detect_sink_psr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	add	x0, x0, #4
Lloh0:
	adrp	x8, _DP_PSR_SUPPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_PSR_SUPPORT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #15
	bl	_drm_dp_dpcd_readb
	mov	x8, x0
	ldr	w0, [x19]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	ldrb	w2, [sp, #15]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldrb	w8, [sp, #15]
Lloh5:
	adrp	x9, _DP_PSR_IS_SUPPORTED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DP_PSR_IS_SUPPORTED@GOTPAGEOFF]
	ldrb	w9, [x9]
	and	w0, w9, w8
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_PSR_SUPPORT,4,2             ; @DP_PSR_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get PSR version, disable it\n"

l_.str.1:                               ; @.str.1
	.asciz	"Panel PSR version : %x\n"

	.comm	_DP_PSR_IS_SUPPORTED,1,0        ; @DP_PSR_IS_SUPPORTED
	.no_dead_strip	_analogix_dp_detect_sink_psr
.subsections_via_symbols
