	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sanitize_encoder
_intel_sanitize_encoder:                ## @intel_sanitize_encoder
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	16(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r15
	movq	(%r12), %rdi
	callq	_to_intel_crtc
	movb	$1, %r14b
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_to_intel_crtc_state
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	cmpq	$0, (%rax)
	setne	%r14b
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_has_bogus_dpll_config
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %edi
	callq	_pipe_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_7
LBB0_4:
	movb	%r14b, %r15b
	xorl	%r14d, %r14d
	movl	%r15d, %r13d
LBB0_6:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_7:
	movq	%r12, %rdi
	callq	_intel_encoder_find_connector
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	testl	%r13d, %r13d
	jne	LBB0_16
## %bb.9:
	movl	8(%r12), %edx
	movl	12(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	testb	%r14b, %r14b
	jne	LBB0_15
## %bb.10:
	movl	8(%r12), %edx
	movl	12(%r12), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	16(%rbx), %rdx
	movq	(%rdx), %r14
	movq	%r12, (%rdx)
	movq	32(%r12), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	*%rax
LBB0_12:
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	16(%rbx), %rdx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	*%rax
LBB0_14:
	movq	16(%rbx), %rax
	movq	%r14, (%rax)
LBB0_15:
	movq	$0, (%r12)
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
LBB0_16:
	testl	%r13d, %r13d
	setne	%al
	testq	%rbx, %rbx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %esi
	movq	%r12, %rdi
	callq	_intel_opregion_notify_encoder
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$11, %eax
	jl	LBB0_17
## %bb.18:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_icl_sanitize_encoder_pll_mapping ## TAILCALL
LBB0_17:
	addq	$24, %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	"BIOS has misprogrammed the hardware. Disabling pipe %c\n"

L_.str.1:                               ## @.str.1
	.asciz	"[ENCODER:%d:%s] has active connectors but no active pipe!\n"

L_.str.2:                               ## @.str.2
	.asciz	"[ENCODER:%d:%s] manually disabled\n"

	.comm	_DRM_MODE_DPMS_OFF,4,2          ## @DRM_MODE_DPMS_OFF
	.no_dead_strip	_intel_sanitize_encoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_sanitize_encoder
_intel_sanitize_encoder:                ; @intel_sanitize_encoder
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	w0, [x0, #16]
	bl	_to_i915
	mov	x20, x0
	ldr	x0, [x19]
	bl	_to_intel_crtc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_to_intel_crtc_state
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w23, ne
	mov	x0, x21
	bl	_has_bogus_dpll_config
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w0, [x22]
	bl	_pipe_name
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w24, #0
	mov	w23, #0
	b	LBB0_7
LBB0_4:
	mov	x21, #0
LBB0_5:
	mov	w23, #0
	mov	w24, #1
	b	LBB0_7
LBB0_6:
	mov	w24, #0
LBB0_7:
	mov	x0, x19
	bl	_intel_encoder_find_connector
	mov	x22, x0
	cbz	x0, LBB0_16
; %bb.8:
	cbnz	w23, LBB0_16
; %bb.9:
	ldp	w8, w1, [x19, #8]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	tbnz	w24, #0, LBB0_15
; %bb.10:
	ldp	w8, w1, [x19, #8]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	x2, [x22, #16]
	ldr	x24, [x2]
	str	x19, [x2]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x21
	blr	x8
LBB0_12:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	x2, [x22, #16]
	mov	x0, x19
	mov	x1, x21
	blr	x8
LBB0_14:
	ldr	x8, [x22, #16]
	str	x24, [x8]
LBB0_15:
	str	xzr, [x19]
Lloh6:
	adrp	x8, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x22, #8]
	str	xzr, [x22]
LBB0_16:
	cmp	x22, #0
	ccmp	w23, #0, #4, ne
	cset	w1, ne
	mov	x0, x19
	bl	_intel_opregion_notify_encoder
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #11
	b.lt	LBB0_18
; %bb.17:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_icl_sanitize_encoder_pll_mapping
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BIOS has misprogrammed the hardware. Disabling pipe %c\n"

l_.str.1:                               ; @.str.1
	.asciz	"[ENCODER:%d:%s] has active connectors but no active pipe!\n"

l_.str.2:                               ; @.str.2
	.asciz	"[ENCODER:%d:%s] manually disabled\n"

	.comm	_DRM_MODE_DPMS_OFF,4,2          ; @DRM_MODE_DPMS_OFF
	.no_dead_strip	_intel_sanitize_encoder
.subsections_via_symbols
