	.file	"extr_atombios_encoders.c_atombios_yuv_setup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	atombios_yuv_setup, @function
atombios_yuv_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 12[rsp], esi
	lea	r14, 16[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	r15, QWORD PTR [rax]
	call	to_radeon_encoder@PLT
	mov	edi, DWORD PTR [rbx]
	mov	QWORD PTR [rsp], rax
	call	to_radeon_crtc@PLT
	mov	esi, DWORD PTR EnableYUV[rip]
	mov	edi, DWORD PTR COMMAND[rip]
	mov	rbx, rax
	call	GetIndexIntoMasterTable@PLT
	mov	edx, 8
	xor	esi, esi
	mov	rdi, r14
	mov	r12d, eax
	call	memset@PLT
	mov	r13d, DWORD PTR RADEON_BIOS_3_SCRATCH[rip]
	mov	rax, QWORD PTR CHIP_R600[rip]
	cmp	QWORD PTR [r15], rax
	jl	.L3
	mov	r13d, DWORD PTR R600_BIOS_3_SCRATCH[rip]
.L3:
	mov	edi, r13d
	call	RREG32@PLT
	mov	ebp, eax
	mov	rax, QWORD PTR [rsp]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR ATOM_DEVICE_TV_SUPPORT[rip], eax
	jne	.L14
	test	DWORD PTR ATOM_DEVICE_CV_SUPPORT[rip], eax
	jne	.L15
	xor	esi, esi
	mov	edi, r13d
	call	WREG32@PLT
.L5:
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L7
	mov	eax, DWORD PTR ATOM_ENABLE[rip]
	mov	DWORD PTR 20[rsp], eax
.L7:
	mov	eax, DWORD PTR [rbx]
	mov	edi, DWORD PTR 8[r15]
	mov	rdx, r14
	mov	esi, r12d
	mov	DWORD PTR 16[rsp], eax
	call	atom_execute_table@PLT
	mov	esi, ebp
	mov	edi, r13d
	call	WREG32@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR [rbx]
	mov	edi, r13d
	sal	esi, 24
	or	esi, DWORD PTR ATOM_S3_CV_ACTIVE[rip]
	call	WREG32@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR [rbx]
	mov	edi, r13d
	sal	esi, 18
	or	esi, DWORD PTR ATOM_S3_TV1_ACTIVE[rip]
	call	WREG32@PLT
	jmp	.L5
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	atombios_yuv_setup, .-atombios_yuv_setup
	.comm	RADEON_BIOS_3_SCRATCH,4,4
	.comm	R600_BIOS_3_SCRATCH,4,4
	.comm	EnableYUV,4,4
	.comm	COMMAND,4,4
	.comm	CHIP_R600,8,8
	.comm	ATOM_S3_TV1_ACTIVE,4,4
	.comm	ATOM_S3_CV_ACTIVE,4,4
	.comm	ATOM_ENABLE,4,4
	.comm	ATOM_DEVICE_TV_SUPPORT,4,4
	.comm	ATOM_DEVICE_CV_SUPPORT,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_atombios_encoders.c_atombios_yuv_setup.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atombios_yuv_setup, %function
atombios_yuv_setup:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r0, #4]
	ldr	r2, .L16
	sub	sp, sp, #16
	ldr	r8, [r3]
	mov	r4, r0
	mov	r7, r1
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	bl	to_radeon_encoder
	mov	r10, r0
	ldr	r0, [r4]
	bl	to_radeon_crtc
	ldr	r2, .L16+4
	ldr	r3, .L16+8
	ldr	r1, [r2]
	mov	r4, r0
	ldr	r0, [r3]
	bl	GetIndexIntoMasterTable
	mov	r3, #0
	ldr	r1, .L16+12
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	ldr	r2, [r8]
	ldr	r3, [r1]
	mov	r9, r0
	cmp	r2, r3
	ldrge	r3, .L16+16
	ldrlt	r3, .L16+20
	ldr	r5, [r3]
	mov	r0, r5
	bl	RREG32
	ldr	r2, .L16+24
	ldr	r3, [r10]
	ldr	r2, [r2]
	mov	r6, r0
	tst	r3, r2
	bne	.L14
	ldr	r2, .L16+28
	ldr	r1, [r2]
	ands	r1, r3, r1
	ldrne	r3, .L16+32
	ldrne	r1, [r4]
	ldrne	r3, [r3]
	movne	r0, r5
	moveq	r0, r5
	orrne	r1, r3, r1, lsl #24
	bl	WREG32
.L5:
	cmp	r7, #0
	ldrne	r3, .L16+36
	add	r2, sp, #4
	ldrne	r3, [r3]
	mov	r1, r9
	strne	r3, [sp, #8]
	ldr	r3, [r4]
	ldr	r0, [r8, #4]
	str	r3, [sp, #4]
	bl	atom_execute_table
	mov	r1, r6
	mov	r0, r5
	bl	WREG32
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	ldr	r3, .L16+40
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, r5
	orr	r1, r3, r1, lsl #18
	bl	WREG32
	b	.L5
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	EnableYUV
	.word	COMMAND
	.word	CHIP_R600
	.word	R600_BIOS_3_SCRATCH
	.word	RADEON_BIOS_3_SCRATCH
	.word	ATOM_DEVICE_TV_SUPPORT
	.word	ATOM_DEVICE_CV_SUPPORT
	.word	ATOM_S3_CV_ACTIVE
	.word	ATOM_ENABLE
	.word	ATOM_S3_TV1_ACTIVE
	.size	atombios_yuv_setup, .-atombios_yuv_setup
	.comm	RADEON_BIOS_3_SCRATCH,4,4
	.comm	R600_BIOS_3_SCRATCH,4,4
	.comm	EnableYUV,4,4
	.comm	COMMAND,4,4
	.comm	CHIP_R600,4,4
	.comm	ATOM_S3_TV1_ACTIVE,4,4
	.comm	ATOM_S3_CV_ACTIVE,4,4
	.comm	ATOM_ENABLE,4,4
	.comm	ATOM_DEVICE_TV_SUPPORT,4,4
	.comm	ATOM_DEVICE_CV_SUPPORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
