	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_hdcp_disable             ## -- Begin function intel_hdcp_disable
	.p2align	4, 0x90
_intel_hdcp_disable:                    ## @intel_hdcp_disable
	.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
	cmpl	$0, 32(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	leaq	12(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_DRM_MODE_CONTENT_PROTECTION_UNDESIRED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r15d, %r15d
	cmpq	%rax, (%rbx)
	je	LBB0_8
## %bb.3:
	movq	%rax, (%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	__intel_hdcp2_disable
	jmp	LBB0_7
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_5:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	__intel_hdcp_disable
LBB0_7:
	movl	%eax, %r15d
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_cancel_delayed_work_sync
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_DRM_MODE_CONTENT_PROTECTION_UNDESIRED,8,3 ## @DRM_MODE_CONTENT_PROTECTION_UNDESIRED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_hdcp_disable             ; -- Begin function intel_hdcp_disable
	.p2align	2
_intel_hdcp_disable:                    ; @intel_hdcp_disable
	.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
	ldr	w8, [x0, #32]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x20, x0, #12
	mov	x0, x20
	bl	_mutex_lock
	ldr	x9, [x19]
Lloh0:
	adrp	x8, _DRM_MODE_CONTENT_PROTECTION_UNDESIRED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_CONTENT_PROTECTION_UNDESIRED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_4
LBB0_2:
	mov	w21, #0
	b	LBB0_9
LBB0_3:
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_4:
	str	x8, [x19]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	__intel_hdcp2_disable
	b	LBB0_8
LBB0_6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.7:
	mov	x0, x19
	bl	__intel_hdcp_disable
LBB0_8:
	mov	x21, x0
LBB0_9:
	mov	x0, x20
	bl	_mutex_unlock
	add	x0, x19, #8
	bl	_cancel_delayed_work_sync
LBB0_10:
	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	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_DRM_MODE_CONTENT_PROTECTION_UNDESIRED,8,3 ; @DRM_MODE_CONTENT_PROTECTION_UNDESIRED
.subsections_via_symbols
