	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_ycbcr420_config
_intel_dp_ycbcr420_config:              ## @intel_dp_ycbcr420_config
	.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, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	leaq	4(%rsi), %rbx
	leaq	8(%rdx), %r14
	movl	4(%rdx), %edi
	callq	_to_intel_crtc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_drm_mode_is_420_only
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%r13, %rdi
	callq	_intel_dp_get_colorimetry_status
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$0, (%r12)
	je	LBB0_6
## %bb.3:
	movq	_INTEL_OUTPUT_FORMAT_YCBCR420@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_skl_update_scaler_crtc
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	%r12d, %r14d
	jmp	LBB0_6
LBB0_5:
	movq	_DRM_MODE_SCALE_FULLSCREEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_intel_pch_panel_fitting
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR420,4,2 ## @INTEL_OUTPUT_FORMAT_YCBCR420
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Scaler allocation for output failed\n"

	.comm	_DRM_MODE_SCALE_FULLSCREEN,4,2  ## @DRM_MODE_SCALE_FULLSCREEN
	.no_dead_strip	_intel_dp_ycbcr420_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_ycbcr420_config
_intel_dp_ycbcr420_config:              ; @intel_dp_ycbcr420_config
	.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
	add	x23, x1, #4
	add	x24, x2, #8
	ldr	w0, [x2, #4]
	bl	_to_intel_crtc
	mov	x20, x0
	mov	x0, x23
	mov	x1, x24
	bl	_drm_mode_is_420_only
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x22
	bl	_intel_dp_get_colorimetry_status
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _INTEL_OUTPUT_FORMAT_YCBCR420@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_OUTPUT_FORMAT_YCBCR420@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	_skl_update_scaler_crtc
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x21
	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
LBB0_7:
Lloh5:
	adrp	x8, _DRM_MODE_SCALE_FULLSCREEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_SCALE_FULLSCREEN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_intel_pch_panel_fitting
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR420,4,2 ; @INTEL_OUTPUT_FORMAT_YCBCR420
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Scaler allocation for output failed\n"

	.comm	_DRM_MODE_SCALE_FULLSCREEN,4,2  ; @DRM_MODE_SCALE_FULLSCREEN
	.no_dead_strip	_intel_dp_ycbcr420_config
.subsections_via_symbols
