	.file	"extr_clk-sccg-pll.c_clk_sccg_divr1_lookup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	clk_sccg_divr1_lookup, @function
clk_sccg_divr1_lookup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, DWORD PTR EINVAL[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	neg	r12d
	cmp	QWORD PTR PLL_DIVR1_MAX[rip], 0
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	QWORD PTR [rsi], 0
	js	.L1
	mov	rbx, rsi
	mov	rbp, rdi
	xor	esi, esi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR [rbx]
	lea	rsi, 1[rax]
	cmp	rsi, QWORD PTR PLL_DIVR1_MAX[rip]
	mov	QWORD PTR [rbx], rsi
	jg	.L1
.L4:
	mov	rdi, QWORD PTR 16[rbx]
	add	rsi, 1
	mov	QWORD PTR 8[rbx], rdi
	call	do_div@PLT
	mov	rax, QWORD PTR 8[rbx]
	cmp	rax, QWORD PTR PLL_STAGE1_REF_MIN_FREQ[rip]
	jl	.L3
	cmp	rax, QWORD PTR PLL_STAGE1_REF_MAX_FREQ[rip]
	jg	.L3
	mov	rsi, rbx
	mov	rdi, rbp
	call	clk_sccg_divf1_lookup@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	clk_sccg_divr1_lookup, .-clk_sccg_divr1_lookup
	.comm	PLL_STAGE1_REF_MIN_FREQ,8,8
	.comm	PLL_STAGE1_REF_MAX_FREQ,8,8
	.comm	PLL_DIVR1_MAX,8,8
	.comm	EINVAL,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-sccg-pll.c_clk_sccg_divr1_lookup.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clk_sccg_divr1_lookup, %function
clk_sccg_divr1_lookup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r1, #0
	ldr	r5, .L11
	ldr	r2, .L11+4
	ldr	r3, [r5]
	ldr	r7, [r2]
	cmp	r3, r1
	rsb	r7, r7, #0
	str	r1, [r4]
	blt	.L1
	mov	r8, r0
	ldr	r6, .L11+8
	ldr	r9, .L11+12
	b	.L4
.L3:
	ldr	r1, [r4]
	ldr	r3, [r5]
	add	r1, r1, #1
	cmp	r1, r3
	str	r1, [r4]
	bgt	.L1
.L4:
	ldr	r0, [r4, #8]
	add	r1, r1, #1
	str	r0, [r4, #4]
	bl	do_div
	ldr	r3, [r4, #4]
	ldr	r2, [r6]
	cmp	r3, r2
	blt	.L3
	ldr	r2, [r9]
	cmp	r3, r2
	bgt	.L3
	mov	r1, r4
	mov	r0, r8
	bl	clk_sccg_divf1_lookup
	subs	r7, r0, #0
	bne	.L3
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	PLL_DIVR1_MAX
	.word	EINVAL
	.word	PLL_STAGE1_REF_MIN_FREQ
	.word	PLL_STAGE1_REF_MAX_FREQ
	.size	clk_sccg_divr1_lookup, .-clk_sccg_divr1_lookup
	.comm	PLL_STAGE1_REF_MIN_FREQ,4,4
	.comm	PLL_STAGE1_REF_MAX_FREQ,4,4
	.comm	PLL_DIVR1_MAX,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
