	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_ddi_update_pipe
_intel_ddi_update_pipe:                 ## @intel_ddi_update_pipe
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	16(%rdx), %edi
	callq	_to_intel_connector
	movq	%rax, %r14
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%r13d, %r13d
	jmp	LBB0_3
LBB0_2:
	movq	8(%rbx), %rax
	movq	_DRM_MODE_CONTENT_PROTECTION_UNDESIRED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%r13b
LBB0_3:
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_intel_crtc_has_type
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_intel_ddi_update_pipe_dp
LBB0_5:
	movq	8(%rbx), %rax
	movq	_DRM_MODE_CONTENT_PROTECTION_UNDESIRED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%al
	orb	%r13b, %al
	cmpb	$1, %al
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_intel_hdcp_disable
LBB0_7:
	testb	%r13b, %r13b
	je	LBB0_10
## %bb.8:
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_DRM_MODE_CONTENT_PROTECTION_DESIRED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	%r14, %rdi
	addq	$12, %rdi
	callq	_schedule_work
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_9
LBB0_10:
	movq	8(%rbx), %rax
	movq	_DRM_MODE_CONTENT_PROTECTION_DESIRED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_9:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_hdcp_enable              ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_CONTENT_PROTECTION_UNDESIRED,8,3 ## @DRM_MODE_CONTENT_PROTECTION_UNDESIRED
	.comm	_INTEL_OUTPUT_HDMI,4,2          ## @INTEL_OUTPUT_HDMI
	.comm	_DRM_MODE_CONTENT_PROTECTION_DESIRED,8,3 ## @DRM_MODE_CONTENT_PROTECTION_DESIRED
	.no_dead_strip	_intel_ddi_update_pipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_ddi_update_pipe
_intel_ddi_update_pipe:                 ; @intel_ddi_update_pipe
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x2, #16]
	bl	_to_intel_connector
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x9, [x0]
Lloh0:
	adrp	x24, _DRM_MODE_CONTENT_PROTECTION_UNDESIRED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DRM_MODE_CONTENT_PROTECTION_UNDESIRED@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w23, #0
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	cset	w23, ne
LBB0_3:
Lloh2:
	adrp	x8, _INTEL_OUTPUT_HDMI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INTEL_OUTPUT_HDMI@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_intel_crtc_has_type
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_intel_ddi_update_pipe_dp
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	cset	w8, eq
	orr	w8, w8, w23
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_intel_hdcp_disable
LBB0_7:
	cbz	w23, LBB0_9
; %bb.8:
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
Lloh5:
	adrp	x8, _DRM_MODE_CONTENT_PROTECTION_DESIRED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_CONTENT_PROTECTION_DESIRED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	add	x0, x20, #12
	bl	_schedule_work
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_10
LBB0_9:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _DRM_MODE_CONTENT_PROTECTION_DESIRED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DRM_MODE_CONTENT_PROTECTION_DESIRED@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_10:
	ldr	w1, [x19]
	mov	x0, x20
	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
	b	_intel_hdcp_enable
LBB0_11:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_CONTENT_PROTECTION_UNDESIRED,8,3 ; @DRM_MODE_CONTENT_PROTECTION_UNDESIRED
	.comm	_INTEL_OUTPUT_HDMI,4,2          ; @INTEL_OUTPUT_HDMI
	.comm	_DRM_MODE_CONTENT_PROTECTION_DESIRED,8,3 ; @DRM_MODE_CONTENT_PROTECTION_DESIRED
	.no_dead_strip	_intel_ddi_update_pipe
.subsections_via_symbols
