	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_edp_drrs_invalidate      ## -- Begin function intel_edp_drrs_invalidate
	.p2align	4, 0x90
_intel_edp_drrs_invalidate:             ## @intel_edp_drrs_invalidate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_DRRS_NOT_SUPPORTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	addq	$40, %rdi
	callq	_cancel_delayed_work
	leaq	24(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.2:
	callq	_dp_to_dig_port
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_to_intel_crtc
	movl	(%rax), %edi
	callq	_INTEL_FRONTBUFFER_ALL_MASK
	andl	%r15d, %eax
	orl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	16(%rbx), %rax
	movq	_DRRS_LOW_RR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_to_intel_crtc
	movl	4(%rax), %esi
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_intel_dp_set_drrs_state
LBB0_5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRRS_NOT_SUPPORTED,8,3         ## @DRRS_NOT_SUPPORTED
	.comm	_DRRS_LOW_RR,8,3                ## @DRRS_LOW_RR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_edp_drrs_invalidate      ; -- Begin function intel_edp_drrs_invalidate
	.p2align	2
_intel_edp_drrs_invalidate:             ; @intel_edp_drrs_invalidate
	.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	x8, [x0]
Lloh0:
	adrp	x9, _DRRS_NOT_SUPPORTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRRS_NOT_SUPPORTED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x21, x1
	mov	x19, x0
	add	x0, x0, #40
	bl	_cancel_delayed_work
	add	x20, x19, #24
	mov	x0, x20
	bl	_mutex_lock
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_6
; %bb.3:
	bl	_dp_to_dig_port
	ldr	x22, [x0]
	mov	x0, x22
	bl	_to_intel_crtc
	ldr	w0, [x0]
	bl	_INTEL_FRONTBUFFER_ALL_MASK
	ldr	w8, [x19, #8]
	ands	w9, w0, w21
	orr	w8, w8, w9
	str	w8, [x19, #8]
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _DRRS_LOW_RR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRRS_LOW_RR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x22
	bl	_to_intel_crtc
	ldr	w1, [x0, #4]
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_intel_dp_set_drrs_state
LBB0_6:
	mov	x0, x20
	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
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRRS_NOT_SUPPORTED,8,3         ; @DRRS_NOT_SUPPORTED
	.comm	_DRRS_LOW_RR,8,3                ; @DRRS_LOW_RR
.subsections_via_symbols
