	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_hdcp_enable              ## -- Begin function intel_hdcp_enable
	.p2align	4, 0x90
_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
	cmpl	$0, 28(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_DRM_HDCP_CHECK_PERIOD_MS@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	_DRM_MODE_CONTENT_PROTECTION_ENABLED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_WARN_ON
	movq	%r13, 8(%rbx)
	movq	%rbx, %rdi
	callq	_intel_hdcp2_capable
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	__intel_hdcp2_enable
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_DRM_HDCP2_CHECK_PERIOD_MS@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_5:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_intel_hdcp_capable
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	8(%rbx), %rax
	movq	_DRM_MODE_HDCP_CONTENT_TYPE1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	callq	__intel_hdcp_enable
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_10
LBB0_9:
	leaq	24(%rbx), %rdi
	movq	%r12, %rsi
	callq	_schedule_delayed_work
	movq	_DRM_MODE_CONTENT_PROTECTION_ENABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	addq	$20, %rbx
	movq	%rbx, %rdi
	callq	_schedule_work
	xorl	%r15d, %r15d
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_11
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_HDCP_CHECK_PERIOD_MS,8,3   ## @DRM_HDCP_CHECK_PERIOD_MS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_DRM_MODE_CONTENT_PROTECTION_ENABLED,8,3 ## @DRM_MODE_CONTENT_PROTECTION_ENABLED
	.comm	_DRM_HDCP2_CHECK_PERIOD_MS,8,3  ## @DRM_HDCP2_CHECK_PERIOD_MS
	.comm	_DRM_MODE_HDCP_CONTENT_TYPE1,8,3 ## @DRM_MODE_HDCP_CONTENT_TYPE1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_hdcp_enable              ; -- Begin function intel_hdcp_enable
	.p2align	2
_intel_hdcp_enable:                     ; @intel_hdcp_enable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0, #28]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _DRM_HDCP_CHECK_PERIOD_MS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_HDCP_CHECK_PERIOD_MS@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh6:
	adrp	x23, _DRM_MODE_CONTENT_PROTECTION_ENABLED@GOTPAGE
Lloh7:
	ldr	x23, [x23, _DRM_MODE_CONTENT_PROTECTION_ENABLED@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	cset	w0, eq
	bl	_WARN_ON
	str	x22, [x20, #8]
	mov	x0, x20
	bl	_intel_hdcp2_capable
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	__intel_hdcp2_enable
	mov	x22, x0
Lloh8:
	adrp	x8, _DRM_HDCP2_CHECK_PERIOD_MS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRM_HDCP2_CHECK_PERIOD_MS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	w0, #0
	csel	x21, x8, x21, eq
	cbnz	w22, LBB0_5
	b	LBB0_8
LBB0_3:
Lloh11:
	adrp	x8, _ENOENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_4:
	neg	w22, w24
	cbz	w22, LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_intel_hdcp_capable
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x8, [x20, #8]
Lloh14:
	adrp	x9, _DRM_MODE_HDCP_CONTENT_TYPE1@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DRM_MODE_HDCP_CONTENT_TYPE1@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x20
	bl	__intel_hdcp_enable
	mov	x22, x0
	cbnz	w0, LBB0_9
LBB0_8:
	add	x0, x20, #24
	mov	x1, x21
	bl	_schedule_delayed_work
	ldr	x8, [x23]
	str	x8, [x20], #20
	mov	x0, x20
	bl	_schedule_work
	mov	w22, #0
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.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	_DRM_HDCP_CHECK_PERIOD_MS,8,3   ; @DRM_HDCP_CHECK_PERIOD_MS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_DRM_MODE_CONTENT_PROTECTION_ENABLED,8,3 ; @DRM_MODE_CONTENT_PROTECTION_ENABLED
	.comm	_DRM_HDCP2_CHECK_PERIOD_MS,8,3  ; @DRM_HDCP2_CHECK_PERIOD_MS
	.comm	_DRM_MODE_HDCP_CONTENT_TYPE1,8,3 ; @DRM_MODE_HDCP_CONTENT_TYPE1
.subsections_via_symbols
