	.file	"extr_clock-sh7722.c_pll_recalc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pll_recalc, @function
pll_recalc:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edi, DWORD PTR PLLCR[rip]
	call	__raw_readl@PLT
	mov	ecx, 2
	mov	r8d, eax
	mov	eax, 1
	and	r8d, 16384
	jne	.L8
	mov	rdx, QWORD PTR [rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	imul	rax, QWORD PTR [rdx]
	xor	edx, edx
	div	rcx
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR FRQCR[rip]
	call	__raw_readl@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	ecx, 1
	pop	rbx
	.cfi_def_cfa_offset 8
	sar	eax, 24
	and	eax, 31
	add	rax, 1
	imul	rax, QWORD PTR [rdx]
	xor	edx, edx
	div	rcx
	ret
	.cfi_endproc
.LFE0:
	.size	pll_recalc, .-pll_recalc
	.comm	PLLCR,4,4
	.comm	FRQCR,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_clock-sh7722.c_pll_recalc.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pll_recalc, %function
pll_recalc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, [r3]
	bl	__raw_readl
	tst	r0, #16384
	moveq	r1, #2
	moveq	r0, #1
	bne	.L6
.L2:
	ldr	r3, [r4]
	ldr	r3, [r3]
	mul	r0, r3, r0
	bl	__aeabi_uidiv
	pop	{r4, pc}
.L6:
	ldr	r3, .L7+4
	ldr	r0, [r3]
	bl	__raw_readl
	asr	r0, r0, #24
	and	r0, r0, #31
	mov	r1, #1
	add	r0, r0, #1
	b	.L2
.L8:
	.align	2
.L7:
	.word	PLLCR
	.word	FRQCR
	.size	pll_recalc, .-pll_recalc
	.comm	PLLCR,4,4
	.comm	FRQCR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
