	.file	"extr_sti_dvo.c_sti_dvo_set_mode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Cannot set rate (%dHz) for dvo_pix clk\n"
	.align 8
.LC2:
	.string	"Cannot set rate (%dHz) for dvo clk\n"
	.text
	.p2align 4
	.type	sti_dvo_set_mode, @function
sti_dvo_set_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR 40[rbx]
	mov	edi, DWORD PTR [rax]
	call	to_sti_mixer@PLT
	lea	rdi, .LC0[rip]
	imul	r13d, DWORD PTR 0[rbp], 1000
	mov	r12, rax
	call	DRM_DEBUG_DRIVER@PLT
	lea	rdi, 32[rbx]
	mov	rsi, rbp
	mov	edx, 4
	call	memcpy@PLT
	mov	rbp, QWORD PTR 24[rbx]
	mov	rax, QWORD PTR STI_MIXER_MAIN[rip]
	cmp	QWORD PTR [r12], rax
	cmovne	rbp, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR 12[rbx]
	test	rbp, rbp
	je	.L3
	mov	rsi, rbp
	call	clk_set_parent@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	rsi, rbp
	call	clk_set_parent@PLT
	mov	edi, DWORD PTR 12[rbx]
.L3:
	mov	esi, r13d
	call	clk_set_rate@PLT
	mov	esi, r13d
	lea	rdi, .LC1[rip]
	test	eax, eax
	js	.L10
	mov	edi, DWORD PTR 8[rbx]
	call	clk_set_rate@PLT
	test	eax, eax
	js	.L12
	lea	rax, rgb_24bit_de_cfg[rip]
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	esi, r13d
	lea	rdi, .LC2[rip]
.L10:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	DRM_ERROR@PLT
	.cfi_endproc
.LFE0:
	.size	sti_dvo_set_mode, .-sti_dvo_set_mode
	.comm	rgb_24bit_de_cfg,4,4
	.comm	STI_MIXER_MAIN,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_sti_dvo.c_sti_dvo_set_mode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"Cannot set rate (%dHz) for dvo_pix clk\012\000"
	.align	2
.LC2:
	.ascii	"Cannot set rate (%dHz) for dvo clk\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sti_dvo_set_mode, %function
sti_dvo_set_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0]
	mov	r6, r1
	ldr	r3, [r5, #24]
	ldr	r0, [r3]
	bl	to_sti_mixer
	mov	r7, r0
	ldr	r3, [r6]
	ldr	r0, .L13
	rsb	r4, r3, r3, lsl #5
	add	r3, r3, r4, lsl #2
	lsl	r4, r3, #3
	bl	DRM_DEBUG_DRIVER
	mov	r1, r6
	mov	r2, #4
	add	r0, r5, #20
	bl	memcpy
	ldr	r2, .L13+4
	ldr	r1, [r7]
	ldr	r2, [r2]
	ldr	r3, [r5, #12]
	cmp	r1, r2
	ldr	r6, [r5, #16]
	movne	r6, r3
	cmp	r6, #0
	ldr	r0, [r5, #8]
	beq	.L3
	mov	r1, r6
	bl	clk_set_parent
	mov	r1, r6
	ldr	r0, [r5, #4]
	bl	clk_set_parent
	ldr	r0, [r5, #8]
.L3:
	mov	r1, r4
	bl	clk_set_rate
	cmp	r0, #0
	mov	r1, r4
	blt	.L11
	ldr	r0, [r5, #4]
	bl	clk_set_rate
	cmp	r0, #0
	blt	.L12
	ldr	r3, .L13+8
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r0, .L13+12
	pop	{r4, r5, r6, r7, r8, lr}
	b	DRM_ERROR
.L12:
	mov	r1, r4
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, .L13+16
	b	DRM_ERROR
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	STI_MIXER_MAIN
	.word	rgb_24bit_de_cfg
	.word	.LC1
	.word	.LC2
	.size	sti_dvo_set_mode, .-sti_dvo_set_mode
	.comm	rgb_24bit_de_cfg,4,4
	.comm	STI_MIXER_MAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
