	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_hdcp2_capable
_intel_dp_hdcp2_capable:                ## @intel_dp_hdcp2_capable
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	$0, (%rsi)
	movq	_DP_HDCP_2_2_REG_RX_CAPS_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HDCP_2_2_RXCAPS_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-48(%rbp), %rdx
	callq	_drm_dp_dpcd_read
	cmpl	(%rbx), %eax
	jne	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rax
	movq	_HDCP_2_2_RX_CAPS_VERSION_VAL@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	-32(%rbp), %rdi
	callq	_HDCP_2_2_DP_HDCP_CAPABLE
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$1, (%r14)
	jmp	LBB0_5
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	testl	%eax, %eax
	cmovsl	%eax, %ebx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_HDCP_2_2_REG_RX_CAPS_OFFSET,4,2 ## @DP_HDCP_2_2_REG_RX_CAPS_OFFSET
	.comm	_HDCP_2_2_RXCAPS_LEN,4,2        ## @HDCP_2_2_RXCAPS_LEN
	.comm	_EIO,4,2                        ## @EIO
	.comm	_HDCP_2_2_RX_CAPS_VERSION_VAL,8,3 ## @HDCP_2_2_RX_CAPS_VERSION_VAL
	.no_dead_strip	_intel_dp_hdcp2_capable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_hdcp2_capable
_intel_dp_hdcp2_capable:                ; @intel_dp_hdcp2_capable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	wzr, [x1]
Lloh3:
	adrp	x8, _DP_HDCP_2_2_REG_RX_CAPS_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_HDCP_2_2_REG_RX_CAPS_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x20, _HDCP_2_2_RXCAPS_LEN@GOTPAGE
Lloh7:
	ldr	x20, [x20, _HDCP_2_2_RXCAPS_LEN@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	x2, sp
	bl	_drm_dp_dpcd_read
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [sp]
Lloh8:
	adrp	x9, _HDCP_2_2_RX_CAPS_VERSION_VAL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HDCP_2_2_RX_CAPS_VERSION_VAL@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [sp, #16]
	bl	_HDCP_2_2_DP_HDCP_CAPABLE
	cbz	x0, LBB0_6
; %bb.3:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, w0, w8, lt
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldr	x8, [sp, #24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_HDCP_2_2_REG_RX_CAPS_OFFSET,4,2 ; @DP_HDCP_2_2_REG_RX_CAPS_OFFSET
	.comm	_HDCP_2_2_RXCAPS_LEN,4,2        ; @HDCP_2_2_RXCAPS_LEN
	.comm	_EIO,4,2                        ; @EIO
	.comm	_HDCP_2_2_RX_CAPS_VERSION_VAL,8,3 ; @HDCP_2_2_RX_CAPS_VERSION_VAL
	.no_dead_strip	_intel_dp_hdcp2_capable
.subsections_via_symbols
