	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_hdcp_init                ## -- Begin function intel_hdcp_init
	.p2align	4, 0x90
_intel_hdcp_init:                       ## @intel_hdcp_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_to_i915
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_is_hdcp2_supported
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_intel_hdcp2_init
LBB0_4:
	movl	8(%r15), %esi
	movq	%r15, %rdi
	callq	_drm_connector_attach_content_protection_property
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	$0, 8(%r15)
	movl	40(%r15), %edi
	callq	_kfree
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	movq	%r14, 32(%r15)
	leaq	24(%r15), %rdi
	callq	_mutex_init
	leaq	20(%r15), %rdi
	movq	_intel_hdcp_check_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	16(%r15), %rdi
	movq	_intel_hdcp_prop_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	addq	$12, %r15
	movq	%r15, %rdi
	callq	_init_waitqueue_head
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_intel_hdcp_check_work,4,2      ## @intel_hdcp_check_work
	.comm	_intel_hdcp_prop_work,4,2       ## @intel_hdcp_prop_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_hdcp_init                ; -- Begin function intel_hdcp_init
	.p2align	2
_intel_hdcp_init:                       ; @intel_hdcp_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_to_i915
	cbz	x20, LBB0_5
; %bb.1:
	bl	_is_hdcp2_supported
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_intel_hdcp2_init
LBB0_3:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_drm_connector_attach_content_protection_property
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.4:
	str	wzr, [x19, #8]
	ldr	w0, [x19, #40]
	bl	_kfree
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_6:
	str	x20, [x19, #32]
	add	x0, x19, #24
	bl	_mutex_init
	add	x0, x19, #20
Lloh3:
	adrp	x8, _intel_hdcp_check_work@GOTPAGE
Lloh4:
	ldr	x8, [x8, _intel_hdcp_check_work@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #16
Lloh6:
	adrp	x8, _intel_hdcp_prop_work@GOTPAGE
Lloh7:
	ldr	x8, [x8, _intel_hdcp_prop_work@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #12
	bl	_init_waitqueue_head
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_intel_hdcp_check_work,4,2      ; @intel_hdcp_check_work
	.comm	_intel_hdcp_prop_work,4,2       ; @intel_hdcp_prop_work
.subsections_via_symbols
