	.file	"extr_intel_display.c_g4x_crtc_compute_clock.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"using SSC reference clock of %d kHz\n"
	.align 8
.LC1:
	.string	"Couldn't find PLL settings for mode!\n"
	.text
	.p2align 4
	.type	g4x_crtc_compute_clock, @function
g4x_crtc_compute_clock:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rdi]
	call	to_i915@PLT
	xor	esi, esi
	lea	rdi, 12[rbp]
	mov	edx, 4
	mov	r13, rax
	call	memset@PLT
	mov	esi, DWORD PTR INTEL_OUTPUT_LVDS[rip]
	mov	rdi, rbp
	call	intel_crtc_has_type@PLT
	test	rax, rax
	je	.L2
	mov	rdi, r13
	mov	r14d, 96000
	call	intel_panel_use_ssc@PLT
	test	rax, rax
	jne	.L15
.L3:
	mov	rdi, r13
	call	intel_is_dual_link_lvds@PLT
	lea	rdi, intel_limits_g4x_dual_channel_lvds[rip]
	test	rax, rax
	lea	rax, intel_limits_g4x_single_channel_lvds[rip]
	cmove	rdi, rax
.L4:
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	jne	.L7
	mov	edx, DWORD PTR 4[rbp]
	xor	r8d, r8d
	mov	r9, rbp
	mov	ecx, r14d
	mov	rsi, rbp
	call	g4x_find_best_dpll@PLT
	test	eax, eax
	je	.L16
.L7:
	mov	rsi, rbp
	mov	rdi, r12
	xor	edx, edx
	call	i9xx_compute_dpll@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR INTEL_OUTPUT_HDMI[rip]
	mov	rdi, rbp
	call	intel_crtc_has_type@PLT
	test	rax, rax
	je	.L5
.L6:
	mov	r14d, 96000
	lea	rdi, intel_limits_g4x_hdmi[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r14d, DWORD PTR 0[r13]
	lea	rdi, .LC0[rip]
	mov	esi, r14d
	call	DRM_DEBUG_KMS@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR INTEL_OUTPUT_ANALOG[rip]
	mov	rdi, rbp
	call	intel_crtc_has_type@PLT
	test	rax, rax
	jne	.L6
	mov	esi, DWORD PTR INTEL_OUTPUT_SDVO[rip]
	mov	rdi, rbp
	mov	r14d, 96000
	call	intel_crtc_has_type@PLT
	lea	rdi, intel_limits_g4x_sdvo[rip]
	test	rax, rax
	lea	rax, intel_limits_i9xx_sdvo[rip]
	cmove	rdi, rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rdi, .LC1[rip]
	call	DRM_ERROR@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	g4x_crtc_compute_clock, .-g4x_crtc_compute_clock
	.comm	intel_limits_i9xx_sdvo,4,4
	.comm	intel_limits_g4x_single_channel_lvds,4,4
	.comm	intel_limits_g4x_sdvo,4,4
	.comm	intel_limits_g4x_hdmi,4,4
	.comm	intel_limits_g4x_dual_channel_lvds,4,4
	.comm	INTEL_OUTPUT_SDVO,4,4
	.comm	INTEL_OUTPUT_LVDS,4,4
	.comm	INTEL_OUTPUT_HDMI,4,4
	.comm	INTEL_OUTPUT_ANALOG,4,4
	.comm	EINVAL,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_g4x_crtc_compute_clock.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"using SSC reference clock of %d kHz\012\000"
	.align	2
.LC1:
	.ascii	"Couldn't find PLL settings for mode!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	g4x_crtc_compute_clock, %function
g4x_crtc_compute_clock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r0
	sub	sp, sp, #12
	ldr	r0, [r0]
	mov	r4, r1
	bl	to_i915
	mov	r3, #0
	ldr	r1, .L16
	mov	r6, r0
	ldr	r1, [r1]
	mov	r0, r4
	strb	r3, [r4, #12]
	strb	r3, [r4, #13]
	strb	r3, [r4, #14]
	strb	r3, [r4, #15]
	bl	intel_crtc_has_type
	cmp	r0, #0
	beq	.L2
	mov	r0, r6
	bl	intel_panel_use_ssc
	cmp	r0, #0
	ldreq	r7, .L16+4
	bne	.L14
.L3:
	mov	r0, r6
	bl	intel_is_dual_link_lvds
	ldr	r2, .L16+8
	ldr	r3, .L16+12
	cmp	r0, #0
	movne	r0, r2
	moveq	r0, r3
.L4:
	ldr	r2, [r4, #8]
	cmp	r2, #0
	bne	.L7
	stm	sp, {r2, r4}
	mov	r3, r7
	mov	r1, r4
	ldr	r2, [r4, #4]
	bl	g4x_find_best_dpll
	cmp	r0, #0
	beq	.L15
.L7:
	mov	r1, r4
	mov	r0, r5
	mov	r2, #0
	bl	i9xx_compute_dpll
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, .L16+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	intel_crtc_has_type
	cmp	r0, #0
	beq	.L5
.L6:
	ldr	r7, .L16+4
	ldr	r0, .L16+20
	b	.L4
.L14:
	ldr	r7, [r6]
	ldr	r0, .L16+24
	mov	r1, r7
	bl	DRM_DEBUG_KMS
	b	.L3
.L5:
	ldr	r3, .L16+28
	mov	r0, r4
	ldr	r1, [r3]
	bl	intel_crtc_has_type
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L16+32
	mov	r0, r4
	ldr	r1, [r3]
	bl	intel_crtc_has_type
	ldr	r2, .L16+36
	ldr	r3, .L16+40
	cmp	r0, #0
	movne	r0, r2
	moveq	r0, r3
	ldr	r7, .L16+4
	b	.L4
.L15:
	ldr	r0, .L16+44
	bl	DRM_ERROR
	ldr	r3, .L16+48
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L17:
	.align	2
.L16:
	.word	INTEL_OUTPUT_LVDS
	.word	96000
	.word	intel_limits_g4x_dual_channel_lvds
	.word	intel_limits_g4x_single_channel_lvds
	.word	INTEL_OUTPUT_HDMI
	.word	intel_limits_g4x_hdmi
	.word	.LC0
	.word	INTEL_OUTPUT_ANALOG
	.word	INTEL_OUTPUT_SDVO
	.word	intel_limits_g4x_sdvo
	.word	intel_limits_i9xx_sdvo
	.word	.LC1
	.word	EINVAL
	.size	g4x_crtc_compute_clock, .-g4x_crtc_compute_clock
	.comm	intel_limits_i9xx_sdvo,4,4
	.comm	intel_limits_g4x_single_channel_lvds,4,4
	.comm	intel_limits_g4x_sdvo,4,4
	.comm	intel_limits_g4x_hdmi,4,4
	.comm	intel_limits_g4x_dual_channel_lvds,4,4
	.comm	INTEL_OUTPUT_SDVO,4,4
	.comm	INTEL_OUTPUT_LVDS,4,4
	.comm	INTEL_OUTPUT_HDMI,4,4
	.comm	INTEL_OUTPUT_ANALOG,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
