	.file	"extr_clk-pll.c_meson_clk_get_pll_settings.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	meson_clk_get_pll_settings, @function
meson_clk_get_pll_settings:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR 32[rsp], rdx
	mov	QWORD PTR 40[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	rax, 52[rsp]
	mov	QWORD PTR 24[rsp], rax
	lea	rax, 48[rsp]
	mov	QWORD PTR 16[rsp], rax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r8, QWORD PTR 24[rsp]
	mov	rcx, QWORD PTR 16[rsp]
	mov	r9, rbx
	mov	edx, ebp
	mov	rsi, r13
	mov	rdi, r12
	call	meson_clk_get_pll_get_index@PLT
	mov	r15d, eax
	add	eax, DWORD PTR EINVAL[rip]
	je	.L2
	mov	edx, DWORD PTR 52[rsp]
	mov	esi, DWORD PTR 48[rsp]
	xor	ecx, ecx
	mov	rdi, r13
	mov	r8, rbx
	call	__pll_params_to_rate@PLT
	mov	rcx, rbx
	mov	rsi, r14
	mov	rdi, r12
	mov	rdx, rax
	mov	QWORD PTR 8[rsp], rax
	call	meson_clk_pll_is_better@PLT
	test	rax, rax
	je	.L3
	mov	eax, DWORD PTR 48[rsp]
	mov	rcx, QWORD PTR 32[rsp]
	mov	rsi, QWORD PTR 40[rsp]
	mov	rdx, QWORD PTR 8[rsp]
	mov	DWORD PTR [rcx], eax
	mov	eax, DWORD PTR 52[rsp]
	mov	DWORD PTR [rsi], eax
	cmp	r12, rdx
	je	.L7
	mov	r14, rdx
.L3:
	add	ebp, 1
	test	r15d, r15d
	je	.L4
.L2:
	xor	eax, eax
	test	r14, r14
	jne	.L1
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rbx, QWORD PTR 56[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r14, r12
	jmp	.L2
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	meson_clk_get_pll_settings, .-meson_clk_get_pll_settings
	.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-pll.c_meson_clk_get_pll_settings.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	meson_clk_get_pll_settings, %function
meson_clk_get_pll_settings:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, #0
	sub	sp, sp, #36
	str	r3, [sp, #12]
	ldr	r3, .L18
	str	r2, [sp, #8]
	mov	r7, r0
	mov	r8, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r9, r5
	ldr	r6, [sp, #72]
	ldr	r10, .L18+4
.L4:
	add	r3, sp, #24
	str	r3, [sp]
	mov	r2, r5
	add	r3, sp, #20
	mov	r1, r8
	mov	r0, r7
	str	r6, [sp, #4]
	bl	meson_clk_get_pll_get_index
	ldr	r3, [r10]
	mov	r4, r0
	cmn	r0, r3
	beq	.L2
	mov	r3, #0
	ldr	r2, [sp, #24]
	ldr	r1, [sp, #20]
	mov	r0, r8
	str	r6, [sp]
	bl	__pll_params_to_rate
	mov	r3, r6
	mov	r2, r0
	mov	fp, r0
	mov	r1, r9
	mov	r0, r7
	bl	meson_clk_pll_is_better
	cmp	r0, #0
	beq	.L3
	ldr	r2, [sp, #8]
	ldr	r1, [sp, #20]
	ldr	r3, [sp, #24]
	str	r1, [r2]
	ldr	r2, [sp, #12]
	cmp	r7, fp
	str	r3, [r2]
	beq	.L7
	mov	r9, fp
.L3:
	cmp	r4, #0
	add	r5, r5, #1
	beq	.L4
.L2:
	cmp	r9, #0
	ldreq	r0, [r10]
	ldr	r3, .L18
	movne	r0, #0
	rsbeq	r0, r0, #0
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r9, r7
	b	.L2
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	EINVAL
	.size	meson_clk_get_pll_settings, .-meson_clk_get_pll_settings
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
