	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_hdcp_read_ksv_ready
_intel_dp_hdcp_read_ksv_ready:          ## @intel_dp_hdcp_read_ksv_ready
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	_DP_AUX_HDCP_BSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movl	$1, %ecx
	callq	_drm_dp_dpcd_read
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	movq	_DP_BSTATUS_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-20(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%ebx, %ebx
	cmovsl	%ebx, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	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	_EIO,4,2                        ## @EIO
	.comm	_DP_BSTATUS_READY,4,2           ## @DP_BSTATUS_READY
	.no_dead_strip	_intel_dp_hdcp_read_ksv_ready
.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_read_ksv_ready
_intel_dp_hdcp_read_ksv_ready:          ; @intel_dp_hdcp_read_ksv_ready
	.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, x1
Lloh0:
	adrp	x8, _DP_AUX_HDCP_BSTATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_AUX_HDCP_BSTATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #1
	bl	_drm_dp_dpcd_read
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _DP_BSTATUS_READY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DP_BSTATUS_READY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG_KMS
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w20, #0
	csneg	w0, w20, w8, lt
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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.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	_EIO,4,2                        ; @EIO
	.comm	_DP_BSTATUS_READY,4,2           ; @DP_BSTATUS_READY
	.no_dead_strip	_intel_dp_hdcp_read_ksv_ready
.subsections_via_symbols
