	.file	"extr_radeon_connectors.c_radeon_lvds_mode_valid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	radeon_lvds_mode_valid, @function
radeon_lvds_mode_valid:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rsi
	call	radeon_best_single_encoder@PLT
	cmp	DWORD PTR [rbx], 319
	jle	.L6
	cmp	DWORD PTR 4[rbx], 239
	jle	.L6
	test	rax, rax
	je	.L5
	mov	rdi, rax
	call	to_radeon_encoder@PLT
	mov	ecx, DWORD PTR [rbx]
	mov	edx, DWORD PTR 8[rax]
	cmp	ecx, edx
	jg	.L6
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR 12[rax]
	cmp	edi, esi
	jg	.L6
	mov	rbx, QWORD PTR RMX_OFF[rip]
	cmp	QWORD PTR [rax], rbx
	je	.L13
.L5:
	mov	eax, DWORD PTR MODE_OK[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	cmp	ecx, edx
	jne	.L6
	cmp	edi, esi
	je	.L5
.L6:
	mov	eax, DWORD PTR MODE_PANEL[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	radeon_lvds_mode_valid, .-radeon_lvds_mode_valid
	.comm	RMX_OFF,8,8
	.comm	MODE_PANEL,4,4
	.comm	MODE_OK,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_radeon_connectors.c_radeon_lvds_mode_valid.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_lvds_mode_valid, %function
radeon_lvds_mode_valid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r1
	bl	radeon_best_single_encoder
	ldr	r2, [r4]
	cmp	r2, #320
	blt	.L6
	ldr	r2, [r4, #4]
	cmp	r2, #239
	ble	.L6
	cmp	r0, #0
	beq	.L5
	bl	to_radeon_encoder
	ldr	r2, [r4]
	ldr	r3, [r0, #4]
	cmp	r2, r3
	bgt	.L6
	ldr	ip, [r4, #4]
	ldr	r1, [r0, #8]
	cmp	ip, r1
	bgt	.L6
	ldr	r4, .L14
	ldr	lr, [r0]
	ldr	r0, [r4]
	cmp	lr, r0
	beq	.L13
.L5:
	ldr	r3, .L14+4
	ldr	r0, [r3]
	pop	{r4, pc}
.L13:
	cmp	ip, r1
	cmpeq	r2, r3
	beq	.L5
.L6:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	pop	{r4, pc}
.L15:
	.align	2
.L14:
	.word	RMX_OFF
	.word	MODE_OK
	.word	MODE_PANEL
	.size	radeon_lvds_mode_valid, .-radeon_lvds_mode_valid
	.comm	RMX_OFF,4,4
	.comm	MODE_PANEL,4,4
	.comm	MODE_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
