	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _intel_hdcp_enable
__intel_hdcp_enable:                    ## @_intel_hdcp_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movl	(%rdi), %esi
	movl	4(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%r15, %rdi
	callq	_hdcp_key_loadable
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movq	_KEY_LOAD_TRIES@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_intel_hdcp_load_keys
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_intel_hdcp_clear_keys
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_2
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_10
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_3:
	movq	%r14, %rdi
	callq	_intel_hdcp_auth
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%r14, %rdi
	callq	__intel_hdcp_disable
	movq	%r14, %rdi
	callq	_intel_hdcp_auth
	testl	%eax, %eax
	je	LBB0_4
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%r14, %rdi
	callq	__intel_hdcp_disable
	movq	%r14, %rdi
	callq	_intel_hdcp_auth
	testl	%eax, %eax
	je	LBB0_4
## %bb.9:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%r14, %rdi
	callq	__intel_hdcp_disable
	leaq	L_.str.4(%rip), %rdi
	movl	$3, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_10
LBB0_4:
	movl	$1, 16(%r14)
	xorl	%r12d, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%s:%d] HDCP is being enabled...\n"

L_.str.1:                               ## @.str.1
	.asciz	"HDCP key Load is not possible\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_KEY_LOAD_TRIES,4,2             ## @KEY_LOAD_TRIES
L_.str.2:                               ## @.str.2
	.asciz	"Could not load HDCP keys, (%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"HDCP Auth failure (%d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"HDCP authentication failed (%d tries/%d)\n"

	.no_dead_strip	__intel_hdcp_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _intel_hdcp_enable
__intel_hdcp_enable:                    ; @_intel_hdcp_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldp	w1, w8, [x0]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x20
	bl	_hdcp_key_loadable
	cbz	w0, LBB0_5
; %bb.1:
	mov	w22, #0
Lloh2:
	adrp	x23, _KEY_LOAD_TRIES@GOTPAGE
Lloh3:
	ldr	x23, [x23, _KEY_LOAD_TRIES@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_intel_hdcp_load_keys
	cbz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	mov	x0, x20
	bl	_intel_hdcp_clear_keys
	add	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.lt	LBB0_2
; %bb.4:
	str	x21, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_11
LBB0_5:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_6:
	mov	x0, x19
	bl	_intel_hdcp_auth
	cbz	w0, LBB0_10
; %bb.7:
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	__intel_hdcp_disable
	mov	x0, x19
	bl	_intel_hdcp_auth
	cbz	w0, LBB0_10
; %bb.8:
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	__intel_hdcp_disable
	mov	x0, x19
	bl	_intel_hdcp_auth
	cbz	w0, LBB0_10
; %bb.9:
	mov	x21, x0
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	__intel_hdcp_disable
	str	x21, [sp]
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	w1, #3
	bl	_DRM_DEBUG_KMS
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_11
LBB0_10:
	mov	w21, #0
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%s:%d] HDCP is being enabled...\n"

l_.str.1:                               ; @.str.1
	.asciz	"HDCP key Load is not possible\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_KEY_LOAD_TRIES,4,2             ; @KEY_LOAD_TRIES
l_.str.2:                               ; @.str.2
	.asciz	"Could not load HDCP keys, (%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"HDCP Auth failure (%d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"HDCP authentication failed (%d tries/%d)\n"

	.no_dead_strip	__intel_hdcp_enable
.subsections_via_symbols
