	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdcp2_authenticate_and_encrypt
_hdcp2_authenticate_and_encrypt:        ## @hdcp2_authenticate_and_encrypt
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_hdcp2_authenticate_sink
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	$1, %esi
	movl	$3, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%r14, %rdi
	callq	_hdcp2_deauthenticate_port
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_3:
	movq	%r14, %rdi
	callq	_hdcp2_authenticate_sink
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movl	$2, %esi
	movl	$3, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%r14, %rdi
	callq	_hdcp2_deauthenticate_port
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_6:
	movq	%r14, %rdi
	callq	_hdcp2_authenticate_sink
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	$3, %esi
	movl	$3, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_10
LBB0_8:
	movq	_HDCP_2_2_DELAY_BEFORE_ENCRYPTION_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movq	%r14, %rdi
	callq	_hdcp2_enable_encryption
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_12
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_10:
	movq	%r14, %rdi
	callq	_hdcp2_deauthenticate_port
	testq	%rax, %rax
	jns	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HDCP2.2 Auth %d of %d Failed.(%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Port deauth failed.\n"

	.comm	_HDCP_2_2_DELAY_BEFORE_ENCRYPTION_EN,4,2 ## @HDCP_2_2_DELAY_BEFORE_ENCRYPTION_EN
L_.str.2:                               ## @.str.2
	.asciz	"Encryption Enable Failed.(%d)\n"

	.no_dead_strip	_hdcp2_authenticate_and_encrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdcp2_authenticate_and_encrypt
_hdcp2_authenticate_and_encrypt:        ; @hdcp2_authenticate_and_encrypt
	.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, x0
	bl	_hdcp2_authenticate_sink
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_8
; %bb.1:
	mov	w8, #3
	mov	w9, #1
	stp	x8, x0, [sp, #8]
	str	x9, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	_hdcp2_deauthenticate_port
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_3:
	mov	x0, x19
	bl	_hdcp2_authenticate_sink
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_8
; %bb.4:
	mov	w8, #3
	mov	w9, #2
	stp	x8, x0, [sp, #8]
	str	x9, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	_hdcp2_deauthenticate_port
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_6:
	mov	x0, x19
	bl	_hdcp2_authenticate_sink
	cbz	w0, LBB0_8
; %bb.7:
	mov	x20, x0
	mov	w8, #3
	stp	x8, x20, [sp, #8]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh10:
	adrp	x8, _HDCP_2_2_DELAY_BEFORE_ENCRYPTION_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HDCP_2_2_DELAY_BEFORE_ENCRYPTION_EN@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_msleep
	mov	x0, x19
	bl	_hdcp2_enable_encryption
	mov	x20, x0
	tbz	w0, #31, LBB0_12
; %bb.9:
	mov	x8, x20
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_10:
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	_hdcp2_deauthenticate_port
	tbz	x0, #63, LBB0_12
; %bb.11:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HDCP2.2 Auth %d of %d Failed.(%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Port deauth failed.\n"

	.comm	_HDCP_2_2_DELAY_BEFORE_ENCRYPTION_EN,4,2 ; @HDCP_2_2_DELAY_BEFORE_ENCRYPTION_EN
l_.str.2:                               ; @.str.2
	.asciz	"Encryption Enable Failed.(%d)\n"

	.no_dead_strip	_hdcp2_authenticate_and_encrypt
.subsections_via_symbols
