	.file	"extr_intel_display.c_intel_get_crtc_ycbcr_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	intel_get_crtc_ycbcr_config, @function
intel_get_crtc_ycbcr_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 4[rdi]
	call	to_i915@PLT
	mov	r13d, DWORD PTR INTEL_OUTPUT_FORMAT_RGB[rip]
	mov	DWORD PTR [rbx], 0
	mov	rdi, rax
	mov	r12, rax
	call	IS_BROADWELL@PLT
	test	rax, rax
	jne	.L5
	mov	rdi, r12
	call	INTEL_GEN@PLT
	cmp	eax, 8
	jle	.L4
.L5:
	mov	edi, DWORD PTR 0[rbp]
	call	PIPEMISC@PLT
	mov	edi, eax
	call	I915_READ@PLT
	test	DWORD PTR PIPEMISC_OUTPUT_COLORSPACE_YUV[rip], eax
	je	.L4
	test	DWORD PTR PIPEMISC_YUV420_ENABLE[rip], eax
	je	.L6
	test	DWORD PTR PIPEMISC_YUV420_MODE_FULL_BLEND[rip], eax
	jne	.L7
.L10:
	mov	r13d, DWORD PTR INTEL_OUTPUT_FORMAT_INVALID[rip]
.L4:
	mov	DWORD PTR 4[rbx], r13d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	r13d, DWORD PTR INTEL_OUTPUT_FORMAT_YCBCR444[rip]
	mov	DWORD PTR [rbx], 1
	mov	DWORD PTR 4[rbx], r13d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, r12
	call	IS_GEMINILAKE@PLT
	test	rax, rax
	je	.L12
.L8:
	mov	r13d, DWORD PTR INTEL_OUTPUT_FORMAT_YCBCR420[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r12
	call	INTEL_GEN@PLT
	cmp	eax, 9
	jg	.L8
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	intel_get_crtc_ycbcr_config, .-intel_get_crtc_ycbcr_config
	.comm	PIPEMISC_YUV420_MODE_FULL_BLEND,4,4
	.comm	PIPEMISC_YUV420_ENABLE,4,4
	.comm	PIPEMISC_OUTPUT_COLORSPACE_YUV,4,4
	.comm	INTEL_OUTPUT_FORMAT_YCBCR444,4,4
	.comm	INTEL_OUTPUT_FORMAT_YCBCR420,4,4
	.comm	INTEL_OUTPUT_FORMAT_RGB,4,4
	.comm	INTEL_OUTPUT_FORMAT_INVALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_intel_display.c_intel_get_crtc_ycbcr_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_get_crtc_ycbcr_config, %function
intel_get_crtc_ycbcr_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r0, #4]
	mov	r4, r1
	bl	to_i915
	mov	r3, #0
	ldr	r2, .L13
	mov	r6, r0
	ldr	r7, [r2]
	str	r3, [r4]
	bl	IS_BROADWELL
	cmp	r0, #0
	bne	.L5
	mov	r0, r6
	bl	INTEL_GEN
	cmp	r0, #8
	ble	.L4
.L5:
	ldr	r0, [r5]
	bl	PIPEMISC
	bl	I915_READ
	ldr	r3, .L13+4
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L4
	ldr	r3, .L13+8
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L6
	ldr	r3, .L13+12
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L7
.L10:
	ldr	r3, .L13+16
	ldr	r7, [r3]
.L4:
	str	r7, [r4, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r2, #1
	ldr	r3, .L13+20
	str	r2, [r4]
	ldr	r7, [r3]
	str	r7, [r4, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, r6
	bl	IS_GEMINILAKE
	cmp	r0, #0
	beq	.L12
.L8:
	ldr	r3, .L13+24
	ldr	r7, [r3]
	b	.L4
.L12:
	mov	r0, r6
	bl	INTEL_GEN
	cmp	r0, #9
	bgt	.L8
	b	.L10
.L14:
	.align	2
.L13:
	.word	INTEL_OUTPUT_FORMAT_RGB
	.word	PIPEMISC_OUTPUT_COLORSPACE_YUV
	.word	PIPEMISC_YUV420_ENABLE
	.word	PIPEMISC_YUV420_MODE_FULL_BLEND
	.word	INTEL_OUTPUT_FORMAT_INVALID
	.word	INTEL_OUTPUT_FORMAT_YCBCR444
	.word	INTEL_OUTPUT_FORMAT_YCBCR420
	.size	intel_get_crtc_ycbcr_config, .-intel_get_crtc_ycbcr_config
	.comm	PIPEMISC_YUV420_MODE_FULL_BLEND,4,4
	.comm	PIPEMISC_YUV420_ENABLE,4,4
	.comm	PIPEMISC_OUTPUT_COLORSPACE_YUV,4,4
	.comm	INTEL_OUTPUT_FORMAT_YCBCR444,4,4
	.comm	INTEL_OUTPUT_FORMAT_YCBCR420,4,4
	.comm	INTEL_OUTPUT_FORMAT_RGB,4,4
	.comm	INTEL_OUTPUT_FORMAT_INVALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
