	.file	"extr_clk-sunxi.c_sun4i_get_pll5_factors.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sun4i_get_pll5_factors, @function
sun4i_get_pll5_factors:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	eax, DWORD PTR [rdi]
	mov	rbx, rdi
	mov	ecx, DWORD PTR 4[rdi]
	cdq
	idiv	ecx
	imul	ecx, eax
	mov	edi, eax
	mov	DWORD PTR [rbx], ecx
	cmp	eax, 30
	jg	.L2
	mov	DWORD PTR 8[rbx], 0
	mov	esi, 1
	call	DIV_ROUND_UP@PLT
	mov	DWORD PTR 12[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	eax, 61
	jg	.L4
	mov	DWORD PTR 8[rbx], 1
	mov	esi, 2
	call	DIV_ROUND_UP@PLT
	mov	DWORD PTR 12[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	cmp	eax, 92
	jg	.L5
	mov	DWORD PTR 8[rbx], 2
	mov	esi, 3
	call	DIV_ROUND_UP@PLT
	mov	DWORD PTR 12[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	DWORD PTR 8[rbx], 3
	mov	esi, 4
	call	DIV_ROUND_UP@PLT
	mov	DWORD PTR 12[rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sun4i_get_pll5_factors, .-sun4i_get_pll5_factors
	.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-sunxi.c_sun4i_get_pll5_factors.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sun4i_get_pll5_factors, %function
sun4i_get_pll5_factors:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldm	r0, {r0, r5}
	mov	r1, r5
	bl	__aeabi_idiv
	mul	r5, r0, r5
	cmp	r0, #30
	str	r5, [r4]
	bgt	.L2
	mov	r3, #0
	mov	r1, #1
	str	r3, [r4, #8]
.L3:
	bl	DIV_ROUND_UP
	str	r0, [r4, #12]
	pop	{r4, r5, r6, pc}
.L2:
	cmp	r0, #61
	movle	r3, #1
	movle	r1, #2
	strle	r3, [r4, #8]
	ble	.L3
.L4:
	cmp	r0, #92
	movle	r3, #2
	movgt	r3, #3
	movle	r1, #3
	movgt	r1, #4
	str	r3, [r4, #8]
	b	.L3
	.size	sun4i_get_pll5_factors, .-sun4i_get_pll5_factors
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
