	.file	"extr_cdn-dp-core.c_cdn_dp_connector_mode_valid.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"requested=%d, actual=%d, clock=%d\n"
	.text
	.p2align 4
	.type	cdn_dp_connector_mode_valid, @function
cdn_dp_connector_mode_valid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	connector_to_dp@PLT
	mov	edx, DWORD PTR 12[rax]
	test	edx, edx
	je	.L12
	mov	rbp, rax
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 6
	je	.L4
	cmp	eax, 10
	mov	edx, 8
	cmovne	eax, edx
.L4:
	imul	eax, DWORD PTR [rbx]
	mov	edi, DWORD PTR 8[rbp]
	mov	r13d, DWORD PTR 0[rbp]
	lea	eax, [rax+rax*2]
	movsx	r12, eax
	sar	eax, 31
	imul	r12, r12, 274877907
	sar	r12, 38
	sub	r12d, eax
	call	drm_dp_max_lane_count@PLT
	mov	edi, r13d
	mov	esi, eax
	call	min@PLT
	mov	edi, DWORD PTR CDN_DP_MAX_LINK_RATE[rip]
	mov	r13d, eax
	call	drm_dp_bw_code_to_link_rate@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	r14d, eax
	call	drm_dp_max_link_rate@PLT
	mov	edi, r14d
	mov	esi, eax
	call	min@PLT
	mov	edx, r13d
	imul	edx, eax
	movsx	rax, edx
	sar	edx, 31
	imul	rax, rax, 1374389535
	sar	rax, 37
	sub	eax, edx
	sal	eax, 3
	movsx	rcx, eax
	sar	eax, 31
	imul	rcx, rcx, 1717986919
	sar	rcx, 34
	sub	ecx, eax
	mov	eax, DWORD PTR MODE_OK[rip]
	cmp	r12d, ecx
	jg	.L13
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR MODE_BAD[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbp]
	mov	r8d, DWORD PTR [rbx]
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	call	DRM_DEV_DEBUG_KMS@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR MODE_CLOCK_HIGH[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cdn_dp_connector_mode_valid, .-cdn_dp_connector_mode_valid
	.comm	MODE_OK,4,4
	.comm	MODE_CLOCK_HIGH,4,4
	.comm	MODE_BAD,4,4
	.comm	CDN_DP_MAX_LINK_RATE,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_cdn-dp-core.c_cdn_dp_connector_mode_valid.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"requested=%d, actual=%d, clock=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cdn_dp_connector_mode_valid, %function
cdn_dp_connector_mode_valid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #8
	mov	r5, r1
	bl	connector_to_dp
	ldr	r3, [r0, #12]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [r0, #16]
	mov	r6, r0
	cmp	r3, #6
	beq	.L4
	cmp	r3, #10
	movne	r3, #8
.L4:
	ldr	r2, [r5]
	ldr	r4, .L14
	mul	r3, r2, r3
	add	r3, r3, r3, lsl #1
	smull	r2, r4, r3, r4
	ldr	r0, [r6, #8]
	asr	r3, r3, #31
	rsb	r4, r3, r4, asr #6
	ldr	r7, [r6]
	bl	drm_dp_max_lane_count
	mov	r1, r0
	mov	r0, r7
	bl	min
	ldr	r3, .L14+4
	mov	r7, r0
	ldr	r0, [r3]
	bl	drm_dp_bw_code_to_link_rate
	mov	r8, r0
	ldr	r0, [r6, #8]
	bl	drm_dp_max_link_rate
	mov	r1, r0
	mov	r0, r8
	bl	min
	mul	r0, r7, r0
	ldr	r3, .L14+8
	asr	r2, r0, #31
	smull	r1, r0, r3, r0
	ldr	r3, .L14+12
	rsb	r2, r2, r0, asr #5
	lsl	r2, r2, #3
	smull	r1, r3, r2, r3
	asr	r2, r2, #31
	rsb	r3, r2, r3, asr #2
	cmp	r4, r3
	bgt	.L13
	ldr	r3, .L14+16
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, .L14+20
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r2, [r5]
	ldr	r0, [r6, #4]
	ldr	r1, .L14+24
	str	r2, [sp]
	mov	r2, r4
	bl	DRM_DEV_DEBUG_KMS
	ldr	r3, .L14+28
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	274877907
	.word	CDN_DP_MAX_LINK_RATE
	.word	1374389535
	.word	1717986919
	.word	MODE_OK
	.word	MODE_BAD
	.word	.LC0
	.word	MODE_CLOCK_HIGH
	.size	cdn_dp_connector_mode_valid, .-cdn_dp_connector_mode_valid
	.comm	MODE_OK,4,4
	.comm	MODE_CLOCK_HIGH,4,4
	.comm	MODE_BAD,4,4
	.comm	CDN_DP_MAX_LINK_RATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
