	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_get_crtc_ycbcr_config
_intel_get_crtc_ycbcr_config:           ## @intel_get_crtc_ycbcr_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r15
	movq	_INTEL_OUTPUT_FORMAT_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$0, (%r14)
	movq	%r15, %rdi
	callq	_IS_BROADWELL
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jl	LBB0_10
LBB0_2:
	movl	(%rbx), %edi
	callq	_PIPEMISC
	movl	%eax, %edi
	callq	_I915_READ
	movq	_PIPEMISC_OUTPUT_COLORSPACE_YUV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.3:
	movq	_PIPEMISC_YUV420_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.4:
	movq	_PIPEMISC_YUV420_MODE_FULL_BLEND@GOTPCREL(%rip), %rcx
	movq	_INTEL_OUTPUT_FORMAT_INVALID@GOTPCREL(%rip), %rbx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.5:
	movq	%r15, %rdi
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$10, %eax
	jl	LBB0_9
LBB0_7:
	movq	_INTEL_OUTPUT_FORMAT_YCBCR420@GOTPCREL(%rip), %rbx
	jmp	LBB0_9
LBB0_8:
	movl	$1, (%r14)
	movq	_INTEL_OUTPUT_FORMAT_YCBCR444@GOTPCREL(%rip), %rbx
LBB0_9:
	movl	(%rbx), %r12d
LBB0_10:
	movl	%r12d, 4(%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_FORMAT_RGB,4,2    ## @INTEL_OUTPUT_FORMAT_RGB
	.comm	_PIPEMISC_OUTPUT_COLORSPACE_YUV,4,2 ## @PIPEMISC_OUTPUT_COLORSPACE_YUV
	.comm	_PIPEMISC_YUV420_ENABLE,4,2     ## @PIPEMISC_YUV420_ENABLE
	.comm	_PIPEMISC_YUV420_MODE_FULL_BLEND,4,2 ## @PIPEMISC_YUV420_MODE_FULL_BLEND
	.comm	_INTEL_OUTPUT_FORMAT_INVALID,4,2 ## @INTEL_OUTPUT_FORMAT_INVALID
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR420,4,2 ## @INTEL_OUTPUT_FORMAT_YCBCR420
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR444,4,2 ## @INTEL_OUTPUT_FORMAT_YCBCR444
	.no_dead_strip	_intel_get_crtc_ycbcr_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_get_crtc_ycbcr_config
_intel_get_crtc_ycbcr_config:           ; @intel_get_crtc_ycbcr_config
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x20, x0
Lloh0:
	adrp	x8, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	str	wzr, [x19]
	bl	_IS_BROADWELL
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #9
	b.lt	LBB0_11
LBB0_2:
	ldr	w0, [x21]
	bl	_PIPEMISC
	bl	_I915_READ
Lloh3:
	adrp	x8, _PIPEMISC_OUTPUT_COLORSPACE_YUV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIPEMISC_OUTPUT_COLORSPACE_YUV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.3:
Lloh6:
	adrp	x8, _PIPEMISC_YUV420_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PIPEMISC_YUV420_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.4:
Lloh9:
	adrp	x8, _PIPEMISC_YUV420_MODE_FULL_BLEND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PIPEMISC_YUV420_MODE_FULL_BLEND@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.5:
	mov	x0, x20
	bl	_IS_GEMINILAKE
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #10
	b.lt	LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _INTEL_OUTPUT_FORMAT_YCBCR420@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INTEL_OUTPUT_FORMAT_YCBCR420@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	mov	w8, #1
	str	w8, [x19]
Lloh14:
	adrp	x8, _INTEL_OUTPUT_FORMAT_YCBCR444@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INTEL_OUTPUT_FORMAT_YCBCR444@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _INTEL_OUTPUT_FORMAT_INVALID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _INTEL_OUTPUT_FORMAT_INVALID@GOTPAGEOFF]
LBB0_10:
	ldr	w22, [x8]
LBB0_11:
	str	w22, [x19, #4]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_FORMAT_RGB,4,2    ; @INTEL_OUTPUT_FORMAT_RGB
	.comm	_PIPEMISC_OUTPUT_COLORSPACE_YUV,4,2 ; @PIPEMISC_OUTPUT_COLORSPACE_YUV
	.comm	_PIPEMISC_YUV420_ENABLE,4,2     ; @PIPEMISC_YUV420_ENABLE
	.comm	_PIPEMISC_YUV420_MODE_FULL_BLEND,4,2 ; @PIPEMISC_YUV420_MODE_FULL_BLEND
	.comm	_INTEL_OUTPUT_FORMAT_INVALID,4,2 ; @INTEL_OUTPUT_FORMAT_INVALID
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR420,4,2 ; @INTEL_OUTPUT_FORMAT_YCBCR420
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR444,4,2 ; @INTEL_OUTPUT_FORMAT_YCBCR444
	.no_dead_strip	_intel_get_crtc_ycbcr_config
.subsections_via_symbols
