	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ddi_toggle_hdcp_signalling ## -- Begin function intel_ddi_toggle_hdcp_signalling
	.p2align	4, 0x90
_intel_ddi_toggle_hdcp_signalling:      ## @intel_ddi_toggle_hdcp_signalling
	.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
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	16(%rdi), %rdi
	callq	_to_i915
	movq	%rax, %r14
	movl	$0, -44(%rbp)
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_intel_display_power_get_if_enabled
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	*8(%r13)
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	movl	-44(%rbp), %edi
	callq	_TRANS_DDI_FUNC_CTL
	movl	%eax, %edi
	callq	_I915_READ
	movq	_TRANS_DDI_HDCP_SIGNALLING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	orl	%eax, %ecx
	notl	%ebx
	andl	%eax, %ebx
	testl	%r12d, %r12d
	cmovnel	%ecx, %ebx
	movl	-44(%rbp), %edi
	callq	_TRANS_DDI_FUNC_CTL
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	xorl	%ebx, %ebx
LBB0_5:
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_intel_display_power_put
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EIO,4,2                        ## @EIO
	.comm	_TRANS_DDI_HDCP_SIGNALLING,4,2  ## @TRANS_DDI_HDCP_SIGNALLING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ddi_toggle_hdcp_signalling ; -- Begin function intel_ddi_toggle_hdcp_signalling
	.p2align	2
_intel_ddi_toggle_hdcp_signalling:      ; @intel_ddi_toggle_hdcp_signalling
	.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	x22, x1
	mov	x19, x0
	ldr	x0, [x0, #16]
	bl	_to_i915
	mov	x20, x0
	str	wzr, [sp, #12]
	ldr	w1, [x19]
	bl	_intel_display_power_get_if_enabled
	mov	x21, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_2:
	ldr	x8, [x19, #8]
	add	x1, sp, #12
	mov	x0, x19
	blr	x8
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_5
LBB0_4:
	ldr	w0, [sp, #12]
	bl	_TRANS_DDI_FUNC_CTL
	bl	_I915_READ
Lloh6:
	adrp	x8, _TRANS_DDI_HDCP_SIGNALLING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRANS_DDI_HDCP_SIGNALLING@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w22, #0
	csel	w22, w8, w9, eq
	ldr	w0, [sp, #12]
	bl	_TRANS_DDI_FUNC_CTL
	mov	x1, x22
	bl	_I915_WRITE
	mov	w22, #0
LBB0_5:
	ldr	w1, [x19]
	mov	x0, x20
	mov	x2, x21
	bl	_intel_display_power_put
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EIO,4,2                        ; @EIO
	.comm	_TRANS_DDI_HDCP_SIGNALLING,4,2  ; @TRANS_DDI_HDCP_SIGNALLING
.subsections_via_symbols
