	.file	"extr_clk-pll.c_samsung_pll6552_recalc_rate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	samsung_pll6552_recalc_rate, @function
samsung_pll6552_recalc_rate:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	to_clk_pll@PLT
	mov	edi, DWORD PTR 8[rax]
	mov	rbx, rax
	call	readl_relaxed@PLT
	mov	rdx, QWORD PTR pll_6552_s3c2416[rip]
	cmp	QWORD PTR [rbx], rdx
	je	.L6
	mov	ecx, DWORD PTR PLL6552_MDIV_SHIFT[rip]
	mov	ebx, eax
	mov	esi, eax
	sar	ebx, cl
	mov	ecx, DWORD PTR PLL6552_PDIV_SHIFT[rip]
	and	ebx, DWORD PTR PLL6552_MDIV_MASK[rip]
	sar	esi, cl
	and	esi, DWORD PTR PLL6552_PDIV_MASK[rip]
.L3:
	mov	ecx, DWORD PTR PLL6552_SDIV_SHIFT[rip]
	imul	ebx, ebp
	sar	eax, cl
	and	eax, DWORD PTR PLL6552_SDIV_MASK[rip]
	mov	ecx, eax
	mov	edi, ebx
	sal	esi, cl
	call	do_div@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movsx	rax, ebx
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	ecx, DWORD PTR PLL6552_MDIV_SHIFT_2416[rip]
	mov	ebx, eax
	mov	esi, eax
	sar	ebx, cl
	mov	ecx, DWORD PTR PLL6552_PDIV_SHIFT_2416[rip]
	and	ebx, DWORD PTR PLL6552_MDIV_MASK[rip]
	sar	esi, cl
	and	esi, DWORD PTR PLL6552_PDIV_MASK[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	samsung_pll6552_recalc_rate, .-samsung_pll6552_recalc_rate
	.comm	pll_6552_s3c2416,8,8
	.comm	PLL6552_SDIV_SHIFT,4,4
	.comm	PLL6552_SDIV_MASK,4,4
	.comm	PLL6552_PDIV_SHIFT_2416,4,4
	.comm	PLL6552_PDIV_SHIFT,4,4
	.comm	PLL6552_PDIV_MASK,4,4
	.comm	PLL6552_MDIV_SHIFT_2416,4,4
	.comm	PLL6552_MDIV_SHIFT,4,4
	.comm	PLL6552_MDIV_MASK,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_clk-pll.c_samsung_pll6552_recalc_rate.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	samsung_pll6552_recalc_rate, %function
samsung_pll6552_recalc_rate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r1
	bl	to_clk_pll
	mov	r5, r0
	ldr	r0, [r0, #4]
	bl	readl_relaxed
	ldr	r3, .L7
	ldr	ip, [r5]
	ldr	r2, [r3]
	mov	r3, r0
	cmp	ip, r2
	ldreq	ip, .L7+4
	ldrne	ip, .L7+4
	ldreq	r2, .L7+8
	ldreq	r1, .L7+12
	ldrne	r2, .L7+16
	ldrne	r1, .L7+20
	ldr	r0, .L7+24
	ldr	r2, [r2]
	ldr	r4, [ip]
	ldr	r1, [r1]
	ldr	ip, [r0]
	and	r4, r4, r3, asr r2
	and	ip, ip, r3, asr r1
	ldr	r2, .L7+28
	ldr	r1, .L7+32
	mul	r4, r6, r4
	ldr	r2, [r2]
	ldr	r1, [r1]
	mov	r0, r4
	and	r1, r2, r3, asr r1
	lsl	r1, ip, r1
	bl	do_div
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	pll_6552_s3c2416
	.word	PLL6552_MDIV_MASK
	.word	PLL6552_MDIV_SHIFT_2416
	.word	PLL6552_PDIV_SHIFT_2416
	.word	PLL6552_MDIV_SHIFT
	.word	PLL6552_PDIV_SHIFT
	.word	PLL6552_PDIV_MASK
	.word	PLL6552_SDIV_MASK
	.word	PLL6552_SDIV_SHIFT
	.size	samsung_pll6552_recalc_rate, .-samsung_pll6552_recalc_rate
	.comm	pll_6552_s3c2416,4,4
	.comm	PLL6552_SDIV_SHIFT,4,4
	.comm	PLL6552_SDIV_MASK,4,4
	.comm	PLL6552_PDIV_SHIFT_2416,4,4
	.comm	PLL6552_PDIV_SHIFT,4,4
	.comm	PLL6552_PDIV_MASK,4,4
	.comm	PLL6552_MDIV_SHIFT_2416,4,4
	.comm	PLL6552_MDIV_SHIFT,4,4
	.comm	PLL6552_MDIV_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
