	.file	"extr_oaktrail_hdmi.c_oaktrail_hdmi_find_dpll.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"np, nr, nf %d %d %d\n"
	.text
	.p2align 4
	.type	oaktrail_hdmi_find_dpll, @function
oaktrail_hdmi_find_dpll:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edi, DWORD PTR oaktrail_hdmi_limit[rip+16]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13d, [rsi+rsi*4]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	add	r13d, r13d
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	mov	esi, r13d
	call	DIV_ROUND_UP@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR oaktrail_hdmi_limit[rip+20]
	cdq
	idiv	r13d
	cmp	DWORD PTR oaktrail_hdmi_limit[rip+8], ecx
	cmovge	ecx, DWORD PTR oaktrail_hdmi_limit[rip+8]
	imul	r13d, ebp, 1000
	mov	r14d, ecx
	mov	edi, r13d
	cmp	DWORD PTR oaktrail_hdmi_limit[rip+12], eax
	cmovle	eax, DWORD PTR oaktrail_hdmi_limit[rip+12]
	imul	eax, ebx
	lea	esi, [rax+rax*4]
	add	esi, esi
	call	DIV_ROUND_UP@PLT
	mov	ecx, r14d
	mov	edi, r13d
	imul	ecx, ebx
	lea	esi, [rcx+rcx*4]
	add	esi, esi
	call	DIV_ROUND_UP@PLT
	cmp	DWORD PTR oaktrail_hdmi_limit[rip+4], eax
	mov	edi, r13d
	cmovle	eax, DWORD PTR oaktrail_hdmi_limit[rip+4]
	imul	eax, ebx
	lea	esi, [rax+rax*4]
	add	esi, esi
	call	DIV_ROUND_UP@PLT
	mov	edi, r13d
	imul	ebx, eax
	mov	r14d, eax
	lea	esi, [rbx+rbx*4]
	add	esi, esi
	call	DIV_ROUND_UP@PLT
	mov	esi, ebp
	imul	ebx, eax
	mov	r13d, eax
	lea	edi, [rbx+rbx*4]
	add	edi, edi
	call	DIV_ROUND_CLOSEST@PLT
	mov	edx, r13d
	mov	esi, r14d
	sub	r13d, 1
	mov	ebx, eax
	mov	ecx, eax
	lea	rdi, .LC0[rip]
	call	DRM_DEBUG_KMS@PLT
	sal	ebx, 14
	mov	DWORD PTR [r12], r14d
	mov	DWORD PTR 4[r12], r13d
	mov	DWORD PTR 8[r12], ebx
	pop	rbx
	.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
	.cfi_endproc
.LFE0:
	.size	oaktrail_hdmi_find_dpll, .-oaktrail_hdmi_find_dpll
	.comm	oaktrail_hdmi_limit,24,16
	.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_oaktrail_hdmi.c_oaktrail_hdmi_find_dpll.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"np, nr, nf %d %d %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	oaktrail_hdmi_find_dpll, %function
oaktrail_hdmi_find_dpll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, .L4
	add	r7, r1, r1, lsl #2
	lsl	r7, r7, #1
	mov	r4, r1
	ldr	r0, [r8, #16]
	mov	r1, r7
	mov	r6, r2
	mov	r5, r3
	bl	DIV_ROUND_UP
	mov	r1, r7
	mov	r7, r0
	ldr	r0, [r8, #20]
	bl	__aeabi_idiv
	ldr	r9, [r8, #8]
	ldr	r1, [r8, #12]
	cmp	r7, r9
	movge	r9, r7
	cmp	r0, r1
	movlt	r1, r0
	mul	r1, r4, r1
	rsb	r7, r6, r6, lsl #5
	add	r7, r6, r7, lsl #2
	lsl	r7, r7, #3
	add	r1, r1, r1, lsl #2
	mov	r0, r7
	lsl	r1, r1, #1
	bl	DIV_ROUND_UP
	mul	r1, r4, r9
	add	r1, r1, r1, lsl #2
	mov	r0, r7
	lsl	r1, r1, #1
	bl	DIV_ROUND_UP
	mov	r1, r0
	ldr	r3, [r8, #4]
	mov	r0, r7
	cmp	r1, r3
	movge	r1, r3
	mul	r1, r4, r1
	add	r1, r1, r1, lsl #2
	lsl	r1, r1, #1
	bl	DIV_ROUND_UP
	mul	r4, r0, r4
	add	r1, r4, r4, lsl #2
	mov	r8, r0
	lsl	r1, r1, #1
	mov	r0, r7
	bl	DIV_ROUND_UP
	mul	r4, r0, r4
	add	r4, r4, r4, lsl #2
	mov	r7, r0
	mov	r1, r6
	lsl	r0, r4, #1
	bl	DIV_ROUND_CLOSEST
	mov	r4, r0
	mov	r2, r7
	mov	r3, r0
	mov	r1, r8
	ldr	r0, .L4+4
	sub	r7, r7, #1
	lsl	r4, r4, #14
	bl	DRM_DEBUG_KMS
	str	r7, [r5, #4]
	str	r4, [r5, #8]
	str	r8, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	.align	2
.L4:
	.word	oaktrail_hdmi_limit
	.word	.LC0
	.size	oaktrail_hdmi_find_dpll, .-oaktrail_hdmi_find_dpll
	.comm	oaktrail_hdmi_limit,24,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
