	.file	"extr_clk-kona.c_kona_peri_clk_round_rate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kona_peri_clk_round_rate, @function
kona_peri_clk_round_rate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	to_kona_clk@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR [rax]
	lea	r12, 4[rax]
	mov	rdi, r12
	call	divider_exists@PLT
	test	eax, eax
	je	.L5
	test	rbx, rbx
	mov	ecx, 1
	mov	edi, DWORD PTR 8[rbp]
	mov	r8, QWORD PTR 0[r13]
	cmovne	rcx, rbx
	mov	rdx, QWORD PTR 0[rbp]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	xor	r9d, r9d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	round_rate@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, r14
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	clk_hw_get_rate@PLT
	.cfi_endproc
.LFE0:
	.size	kona_peri_clk_round_rate, .-kona_peri_clk_round_rate
	.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-kona.c_kona_peri_clk_round_rate.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kona_peri_clk_round_rate, %function
kona_peri_clk_round_rate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #8
	mov	r6, r1
	mov	r7, r2
	mov	r8, r0
	bl	to_kona_clk
	ldr	r5, [r0]
	mov	r4, r0
	add	r5, r5, #4
	mov	r0, r5
	bl	divider_exists
	cmp	r0, #0
	beq	.L5
	mov	ip, #0
	ldr	lr, [r7]
	cmp	r6, #1
	ldr	r2, [r4]
	ldr	r0, [r4, #4]
	movcs	r3, r6
	movcc	r3, #1
	mov	r1, r5
	str	lr, [sp]
	str	ip, [sp, #4]
	bl	round_rate
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r8
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	clk_hw_get_rate
	.size	kona_peri_clk_round_rate, .-kona_peri_clk_round_rate
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
