	.file	"extr_clk-cdce925.c_cdce925_pll_find_rate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cdce925_pll_find_rate, @function
cdce925_pll_find_rate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rcx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	rdi, rsi
	ja	.L2
	mov	QWORD PTR [rdx], 0
	mov	QWORD PTR [rcx], 0
	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
.L2:
	.cfi_restore_state
	mov	r13, QWORD PTR CDCE925_PLL_FREQUENCY_MIN[rip]
	mov	r12, rsi
	cmp	r13, rdi
	jbe	.L14
.L4:
	mov	rsi, r12
	mov	rdi, r13
	call	gcd@PLT
	xor	edx, edx
	mov	rcx, rax
	mov	rax, r12
	div	rcx
	xor	edx, edx
	mov	r12, rax
	mov	rax, r13
	div	rcx
	cmp	r12, 511
	ja	.L10
	cmp	rax, 4095
	jbe	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	shr	rax
	shr	r12
	cmp	rax, 4095
	ja	.L10
	cmp	r12, 511
	ja	.L10
.L5:
	mov	edx, 1
	test	rax, rax
	cmove	rax, rdx
	mov	rsi, rdx
	test	r12, r12
	cmovne	rsi, r12
	mov	QWORD PTR 0[rbp], rax
	mov	QWORD PTR [rbx], rsi
	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
.L14:
	.cfi_restore_state
	cmp	QWORD PTR CDCE925_PLL_FREQUENCY_MAX[rip], rdi
	cmovbe	rdi, QWORD PTR CDCE925_PLL_FREQUENCY_MAX[rip]
	mov	r13, rdi
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	cdce925_pll_find_rate, .-cdce925_pll_find_rate
	.comm	CDCE925_PLL_FREQUENCY_MIN,8,8
	.comm	CDCE925_PLL_FREQUENCY_MAX,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_clk-cdce925.c_cdce925_pll_find_rate.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cdce925_pll_find_rate, %function
cdce925_pll_find_rate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, r1
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	mov	r5, r3
	bhi	.L2
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L14
	mov	r4, r1
	ldr	r7, [r3]
	cmp	r7, r0
	bls	.L13
.L4:
	mov	r1, r4
	mov	r0, r7
	bl	gcd
	mov	r8, r0
	mov	r0, r4
	mov	r1, r8
	bl	__aeabi_uidiv
	mov	r1, r8
	mov	r4, r0
	mov	r0, r7
	bl	__aeabi_uidiv
	cmp	r0, #4096
	cmpcc	r4, #512
	bcc	.L5
.L6:
	lsr	r0, r0, #1
	lsr	r4, r4, #1
	cmp	r4, #512
	cmpcc	r0, #4096
	bcs	.L6
.L5:
	cmp	r0, #1
	movcc	r0, #1
	cmp	r4, #1
	movcc	r4, #1
	str	r0, [r6]
	str	r4, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r3, .L14+4
	ldr	r7, [r3]
	cmp	r0, r7
	movcc	r7, r0
	b	.L4
.L15:
	.align	2
.L14:
	.word	CDCE925_PLL_FREQUENCY_MIN
	.word	CDCE925_PLL_FREQUENCY_MAX
	.size	cdce925_pll_find_rate, .-cdce925_pll_find_rate
	.comm	CDCE925_PLL_FREQUENCY_MIN,4,4
	.comm	CDCE925_PLL_FREQUENCY_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
