	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_hdcp_check_link
_intel_dp_hdcp_check_link:              ## @intel_dp_hdcp_check_link
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_DP_AUX_HDCP_BSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	movl	$1, %ecx
	callq	_drm_dp_dpcd_read
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	movq	_DP_BSTATUS_LINK_FAILURE@GOTPCREL(%rip), %rax
	movq	_DP_BSTATUS_REAUTH_REQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, -4(%rbp)
	sete	%al
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	xorl	%eax, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_AUX_HDCP_BSTATUS,4,2        ## @DP_AUX_HDCP_BSTATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read bstatus from DP/AUX failed (%zd)\n"

	.comm	_DP_BSTATUS_LINK_FAILURE,4,2    ## @DP_BSTATUS_LINK_FAILURE
	.comm	_DP_BSTATUS_REAUTH_REQ,4,2      ## @DP_BSTATUS_REAUTH_REQ
	.no_dead_strip	_intel_dp_hdcp_check_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_hdcp_check_link
_intel_dp_hdcp_check_link:              ; @intel_dp_hdcp_check_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _DP_AUX_HDCP_BSTATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_AUX_HDCP_BSTATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x2, x29, #4
	mov	w3, #1
	bl	_drm_dp_dpcd_read
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	ldur	w8, [x29, #-4]
Lloh3:
	adrp	x9, _DP_BSTATUS_LINK_FAILURE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DP_BSTATUS_LINK_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _DP_BSTATUS_REAUTH_REQ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DP_BSTATUS_REAUTH_REQ@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_AUX_HDCP_BSTATUS,4,2        ; @DP_AUX_HDCP_BSTATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read bstatus from DP/AUX failed (%zd)\n"

	.comm	_DP_BSTATUS_LINK_FAILURE,4,2    ; @DP_BSTATUS_LINK_FAILURE
	.comm	_DP_BSTATUS_REAUTH_REQ,4,2      ; @DP_BSTATUS_REAUTH_REQ
	.no_dead_strip	_intel_dp_hdcp_check_link
.subsections_via_symbols
