	.file	"extr_pll.c_clk_pllclk_recalc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	clk_pllclk_recalc, @function
clk_pllclk_recalc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	to_clk_pll@PLT
	mov	r12, QWORD PTR [rax]
	cmp	QWORD PTR 40[r12], 0
	jne	.L10
.L2:
	mov	rdi, QWORD PTR 48[r12]
	call	readl@PLT
	mov	ebp, DWORD PTR 4[r12]
	mov	ecx, DWORD PTR 8[r12]
	mov	edi, eax
	and	ebp, eax
	sar	ebp, cl
	or	ebp, r13d
	mov	r13d, DWORD PTR 12[r12]
	and	r13d, eax
	cmp	QWORD PTR 40[r12], 0
	jne	.L3
	mov	ecx, DWORD PTR 20[r12]
	and	edi, DWORD PTR 16[r12]
	sar	edi, cl
	add	edi, 1
.L4:
	lea	ecx, 1[r13]
	mov	rax, rbx
	xor	edx, edx
	add	ebp, 1
	movsx	rcx, ecx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movsx	rdi, edi
	div	rcx
	movsx	rdx, ebp
	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
	imul	rax, rdx
	xor	edx, edx
	div	rdi
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, QWORD PTR 32[r12]
	test	rdi, rdi
	jne	.L11
	mov	edi, DWORD PTR 24[r12]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR 56[r12]
	call	readl@PLT
	and	eax, DWORD PTR [r12]
	mov	r13d, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	call	readl@PLT
	mov	ecx, DWORD PTR 20[r12]
	and	eax, DWORD PTR 16[r12]
	mov	edi, eax
	sar	edi, cl
	add	edi, 1
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	clk_pllclk_recalc, .-clk_pllclk_recalc
	.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_pll.c_clk_pllclk_recalc.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clk_pllclk_recalc, %function
clk_pllclk_recalc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	bl	to_clk_pll
	ldr	r7, [r0]
	ldr	r6, [r7, #32]
	cmp	r6, #0
	bne	.L12
.L2:
	ldr	r0, [r7, #36]
	bl	readl
	ldr	r3, [r7, #4]
	ldr	r1, [r7, #32]
	ldr	r2, [r7, #8]
	ldr	r8, [r7, #12]
	and	r3, r3, r0
	cmp	r1, #0
	orr	r6, r6, r3, asr r2
	and	r8, r8, r0
	beq	.L10
	ldr	r0, [r7, #28]
	cmp	r0, #0
	ldreq	r4, [r7, #24]
	bne	.L13
.L4:
	add	r1, r8, #1
	mov	r0, r5
	bl	__aeabi_uidiv
	add	r6, r6, #1
	mov	r1, r4
	mul	r0, r6, r0
	bl	__aeabi_uidiv
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	bl	readl
.L10:
	ldr	r4, [r7, #16]
	ldr	r3, [r7, #20]
	and	r4, r4, r0
	asr	r4, r4, r3
	add	r4, r4, #1
	b	.L4
.L12:
	ldr	r0, [r7, #40]
	bl	readl
	ldr	r6, [r7]
	and	r6, r6, r0
	b	.L2
	.size	clk_pllclk_recalc, .-clk_pllclk_recalc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
