	.file	"extr_radeon_connectors.c_radeon_dvi_mode_valid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	radeon_dvi_mode_valid, @function
radeon_dvi_mode_valid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR [rdi]
	mov	rbx, rsi
	mov	r12, QWORD PTR [rax]
	call	to_radeon_connector@PLT
	mov	edx, DWORD PTR [rbx]
	cmp	QWORD PTR 8[rax], 0
	je	.L4
	mov	rcx, QWORD PTR CHIP_RV100[rip]
	cmp	QWORD PTR [r12], rcx
	je	.L19
	cmp	edx, 165000
	jle	.L4
	mov	rax, QWORD PTR [rax]
	cmp	rax, QWORD PTR CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I[rip]
	je	.L6
	cmp	rax, QWORD PTR CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D[rip]
	je	.L6
	cmp	rax, QWORD PTR CONNECTOR_OBJECT_ID_HDMI_TYPE_B[rip]
	je	.L6
	mov	rdi, r12
	call	ASIC_IS_DCE6@PLT
	test	rax, rax
	jne	.L20
.L8:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR MODE_CLOCK_HIGH[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	cmp	edx, 135000
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	movsx	rax, edx
	sar	edx, 31
	imul	rax, rax, 1717986919
	sar	rax, 34
	sub	eax, edx
	cmp	eax, DWORD PTR 8[r12]
	jg	.L8
.L6:
	mov	eax, DWORD PTR MODE_OK[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdi, rbp
	call	radeon_connector_edid@PLT
	mov	edi, eax
	call	drm_detect_hdmi_monitor@PLT
	test	rax, rax
	je	.L8
	cmp	DWORD PTR [rbx], 340000
	mov	eax, DWORD PTR MODE_OK[rip]
	jle	.L1
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	radeon_dvi_mode_valid, .-radeon_dvi_mode_valid
	.comm	MODE_OK,4,4
	.comm	MODE_CLOCK_HIGH,4,4
	.comm	CONNECTOR_OBJECT_ID_HDMI_TYPE_B,8,8
	.comm	CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I,8,8
	.comm	CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D,8,8
	.comm	CHIP_RV100,8,8
	.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_dvi_mode_valid.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_dvi_mode_valid, %function
radeon_dvi_mode_valid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	ldr	r5, [r3]
	mov	r4, r0
	mov	r6, r1
	bl	to_radeon_connector
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L21
	ldr	r1, [r5]
	ldr	r2, [r3]
	ldr	r3, [r6]
	cmp	r1, r2
	beq	.L19
	ldr	r2, .L21+4
	cmp	r3, r2
	ble	.L4
	ldr	r2, .L21+8
	ldr	r3, [r0]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L9
	ldr	r2, .L21+12
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L9
	ldr	r2, .L21+16
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L9
	mov	r0, r5
	bl	ASIC_IS_DCE6
	cmp	r0, #0
	bne	.L20
.L8:
	ldr	r3, .L21+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, [r6]
.L4:
	ldr	r2, .L21+24
	ldr	r1, [r5, #4]
	smull	r0, r2, r3, r2
	asr	r3, r3, #31
	rsb	r3, r3, r2, asr #2
	cmp	r3, r1
	bgt	.L8
.L9:
	ldr	r3, .L21+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L19:
	ldr	r2, .L21+32
	cmp	r3, r2
	ble	.L4
	b	.L8
.L20:
	mov	r0, r4
	bl	radeon_connector_edid
	bl	drm_detect_hdmi_monitor
	cmp	r0, #0
	beq	.L8
	ldr	r2, [r6]
	ldr	r3, .L21+36
	cmp	r2, r3
	ble	.L9
	b	.L8
.L22:
	.align	2
.L21:
	.word	CHIP_RV100
	.word	165000
	.word	CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I
	.word	CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D
	.word	CONNECTOR_OBJECT_ID_HDMI_TYPE_B
	.word	MODE_CLOCK_HIGH
	.word	1717986919
	.word	MODE_OK
	.word	135000
	.word	340000
	.size	radeon_dvi_mode_valid, .-radeon_dvi_mode_valid
	.comm	MODE_OK,4,4
	.comm	MODE_CLOCK_HIGH,4,4
	.comm	CONNECTOR_OBJECT_ID_HDMI_TYPE_B,4,4
	.comm	CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I,4,4
	.comm	CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D,4,4
	.comm	CHIP_RV100,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
