	.file	"extr_tlv320aic32x4-clk.c_clk_aic32x4_pll_calc_muldiv.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	clk_aic32x4_pll_calc_muldiv, @function
clk_aic32x4_pll_calc_muldiv:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rax, rdx
	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
	mov	rsi, rdx
	xor	edx, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	div	QWORD PTR AIC32X4_MAX_PLL_CLKIN[rip]
	add	rax, 1
	mov	QWORD PTR [rdi], rax
	cmp	rax, 8
	ja	.L4
	imul	ebp, eax
	mov	r12, rdi
	imul	ebp, ebp, 10000
	mov	edi, ebp
	mov	r13d, ebp
	call	do_div@PLT
	movsx	rsi, ebp
	sar	r13d, 31
	imul	rsi, rsi, 1759218605
	mov	rbx, rsi
	sar	rsi, 50
	sub	esi, r13d
	shr	rbx, 32
	add	esi, 1
	mov	DWORD PTR 8[r12], esi
	cmp	esi, 4
	jg	.L4
	movsx	rsi, esi
	mov	edi, ebp
	call	do_div@PLT
	cmp	ebp, 9999
	jle	.L4
	sar	ebx, 12
	xor	eax, eax
	sub	ebx, r13d
	mov	DWORD PTR 12[r12], ebx
	imul	ebx, ebx, 10000
	sub	ebp, ebx
	mov	DWORD PTR 16[r12], ebp
.L1:
	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
.L4:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	clk_aic32x4_pll_calc_muldiv, .-clk_aic32x4_pll_calc_muldiv
	.comm	AIC32X4_MAX_PLL_CLKIN,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_tlv320aic32x4-clk.c_clk_aic32x4_pll_calc_muldiv.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clk_aic32x4_pll_calc_muldiv, %function
clk_aic32x4_pll_calc_muldiv:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r7, r1
	mov	r0, r2
	ldr	r1, [r3]
	mov	r6, r2
	bl	__aeabi_uidiv
	add	r4, r0, #1
	cmp	r4, #8
	str	r4, [r5]
	bhi	.L4
	mul	r4, r7, r4
	rsb	r0, r4, r4, lsl #5
	add	r4, r4, r0, lsl #2
	add	r4, r4, r4, lsl #2
	lsl	r4, r4, #4
	mov	r1, r6
	mov	r0, r4
	bl	do_div
	ldr	r3, .L7+4
	asr	r6, r4, #31
	smull	r2, r7, r3, r4
	rsb	r1, r6, r7, asr #18
	add	r1, r1, #1
	cmp	r1, #4
	str	r1, [r5, #4]
	bgt	.L4
	mov	r0, r4
	bl	do_div
	ldr	r3, .L7+8
	cmp	r4, r3
	ble	.L4
	rsb	r3, r6, r7, asr #12
	rsb	r2, r3, r3, lsl #5
	add	r2, r3, r2, lsl #2
	add	r2, r2, r2, lsl #2
	sub	r4, r4, r2, lsl #4
	mov	r0, #0
	str	r3, [r5, #8]
	str	r4, [r5, #12]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	AIC32X4_MAX_PLL_CLKIN
	.word	1759218605
	.word	9999
	.size	clk_aic32x4_pll_calc_muldiv, .-clk_aic32x4_pll_calc_muldiv
	.comm	AIC32X4_MAX_PLL_CLKIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
