	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _intel_hdcp_disable
__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	%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, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	callq	_conn_to_dig_port
	movq	%rax, %r15
	movl	(%rax), %r13d
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	$0, 16(%rbx)
	movl	%r13d, %edi
	callq	_PORT_HDCP_CONF
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_I915_WRITE
	movl	%r13d, %edi
	callq	_PORT_HDCP_STATUS
	movq	_ENCRYPT_STATUS_CHANGE_TIMEOUT_MS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$-1, %edx
	callq	_intel_de_wait_for_clear
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_2:
	movq	24(%rbx), %rax
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
	movl	%ebx, %r14d
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_5:
	movl	%r14d, %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 disabled...\n"

	.comm	_ENCRYPT_STATUS_CHANGE_TIMEOUT_MS,4,2 ## @ENCRYPT_STATUS_CHANGE_TIMEOUT_MS
L_.str.1:                               ## @.str.1
	.asciz	"Failed to disable HDCP, timeout clearing status\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.2:                               ## @.str.2
	.asciz	"Failed to disable HDCP signalling\n"

L_.str.3:                               ## @.str.3
	.asciz	"HDCP is disabled\n"

	.no_dead_strip	__intel_hdcp_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _intel_hdcp_disable
__intel_hdcp_disable:                   ; @_intel_hdcp_disable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	bl	_conn_to_dig_port
	mov	x20, x0
	ldr	w22, [x0]
	ldp	w9, w8, [x19]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	str	wzr, [x19, #16]
	mov	x0, x22
	bl	_PORT_HDCP_CONF
	mov	w1, #0
	bl	_I915_WRITE
	mov	x0, x22
	bl	_PORT_HDCP_STATUS
	mov	x1, x0
Lloh2:
	adrp	x8, _ENCRYPT_STATUS_CHANGE_TIMEOUT_MS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENCRYPT_STATUS_CHANGE_TIMEOUT_MS@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w2, #-1
	bl	_intel_de_wait_for_clear
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
Lloh7:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	x0, x20
	mov	w1, #0
	blr	x8
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_5:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%s:%d] HDCP is being disabled...\n"

	.comm	_ENCRYPT_STATUS_CHANGE_TIMEOUT_MS,4,2 ; @ENCRYPT_STATUS_CHANGE_TIMEOUT_MS
l_.str.1:                               ; @.str.1
	.asciz	"Failed to disable HDCP, timeout clearing status\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.2:                               ; @.str.2
	.asciz	"Failed to disable HDCP signalling\n"

l_.str.3:                               ; @.str.3
	.asciz	"HDCP is disabled\n"

	.no_dead_strip	__intel_hdcp_disable
.subsections_via_symbols
