	.file	"extr_dispc.c_dispc_mgr_set_lcd_divisor.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dispc_mgr_set_lcd_divisor, @function
dispc_mgr_set_lcd_divisor:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	xor	edi, edi
	test	edx, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	setle	dil
	call	BUG_ON@PLT
	xor	edi, edi
	test	r14d, r14d
	setle	dil
	call	BUG_ON@PLT
	mov	edx, 16
	mov	esi, 23
	mov	edi, r12d
	call	FLD_VAL@PLT
	xor	edx, edx
	mov	esi, 7
	mov	edi, r14d
	mov	ebx, eax
	call	FLD_VAL@PLT
	mov	edi, r13d
	or	ebx, eax
	call	DISPC_DIVISORo@PLT
	mov	rdi, rbp
	mov	edx, ebx
	mov	esi, eax
	call	dispc_write_reg@PLT
	mov	esi, DWORD PTR FEAT_CORE_CLK_DIV[rip]
	mov	rdi, rbp
	call	dispc_has_feature@PLT
	test	eax, eax
	jne	.L1
	cmp	DWORD PTR OMAP_DSS_CHANNEL_LCD[rip], r13d
	je	.L5
.L1:
	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
.L5:
	.cfi_restore_state
	mov	rdi, rbp
	call	dispc_fclk_rate@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	cdq
	idiv	r12d
	mov	DWORD PTR 0[rbp], 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
	.cfi_endproc
.LFE0:
	.size	dispc_mgr_set_lcd_divisor, .-dispc_mgr_set_lcd_divisor
	.comm	OMAP_DSS_CHANNEL_LCD,4,4
	.comm	FEAT_CORE_CLK_DIV,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_dispc.c_dispc_mgr_set_lcd_divisor.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dispc_mgr_set_lcd_divisor, %function
dispc_mgr_set_lcd_divisor:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r3
	mov	r7, r1
	cmp	r2, #0
	mov	r4, r0
	movgt	r0, #0
	movle	r0, #1
	mov	r8, r2
	bl	BUG_ON
	cmp	r5, #0
	movgt	r0, #0
	movle	r0, #1
	bl	BUG_ON
	mov	r0, r7
	bl	DISPC_DIVISORo
	mov	r2, #16
	mov	r6, r0
	mov	r1, #23
	mov	r0, r8
	bl	FLD_VAL
	mov	r3, r0
	mov	r2, #0
	mov	r0, r5
	mov	r1, #7
	mov	r5, r3
	bl	FLD_VAL
	mov	r1, r6
	orr	r2, r5, r0
	mov	r0, r4
	bl	dispc_write_reg
	ldr	r3, .L5
	mov	r0, r4
	ldr	r1, [r3]
	bl	dispc_has_feature
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L5+4
	ldr	r3, [r3]
	cmp	r3, r7
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	bl	dispc_fclk_rate
	mov	r1, r8
	bl	__aeabi_idiv
	str	r0, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	.align	2
.L5:
	.word	FEAT_CORE_CLK_DIV
	.word	OMAP_DSS_CHANNEL_LCD
	.size	dispc_mgr_set_lcd_divisor, .-dispc_mgr_set_lcd_divisor
	.comm	OMAP_DSS_CHANNEL_LCD,4,4
	.comm	FEAT_CORE_CLK_DIV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
