	.file	"extr_dsi_pll_14nm.c_dsi_pll_14nm_vco_set_rate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"DSI PLL%d rate=%lu, parent's=%lu"
	.text
	.p2align 4
	.type	dsi_pll_14nm_vco_set_rate, @function
dsi_pll_14nm_vco_set_rate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	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	hw_clk_to_pll@PLT
	mov	rdi, rax
	call	to_pll_14nm@PLT
	mov	rcx, r12
	mov	rdx, rbx
	lea	rdi, .LC0[rip]
	mov	esi, DWORD PTR 28[rax]
	mov	rbp, rax
	lea	r13, 40[rax]
	lea	r14, 32[rax]
	call	DBG@PLT
	mov	eax, DWORD PTR VCO_REF_CLK_RATE[rip]
	mov	QWORD PTR 0[rbp], rbx
	mov	rdi, rbp
	mov	DWORD PTR 24[rbp], eax
	call	dsi_pll_14nm_input_init@PLT
	mov	eax, DWORD PTR DSI_PLL_DEFAULT_VCO_POSTDIV[rip]
	mov	rdi, rbp
	mov	DWORD PTR 32[rbp], eax
	call	pll_14nm_dec_frac_calc@PLT
	cmp	QWORD PTR 40[rbp], 0
	jne	.L6
.L2:
	mov	rdi, rbp
	call	pll_14nm_calc_vco_count@PLT
	mov	rax, QWORD PTR MSM_DSI_PHY_MASTER[rip]
	cmp	QWORD PTR 8[rbp], rax
	je	.L7
.L3:
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbp
	call	pll_db_commit_14nm@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	call	pll_14nm_ssc_calc@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR 16[rbp]
	mov	rdx, r14
	mov	rsi, r13
	call	pll_db_commit_14nm@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	dsi_pll_14nm_vco_set_rate, .-dsi_pll_14nm_vco_set_rate
	.comm	VCO_REF_CLK_RATE,4,4
	.comm	MSM_DSI_PHY_MASTER,8,8
	.comm	DSI_PLL_DEFAULT_VCO_POSTDIV,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_dsi_pll_14nm.c_dsi_pll_14nm_vco_set_rate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DSI PLL%d rate=%lu, parent's=%lu\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dsi_pll_14nm_vco_set_rate, %function
dsi_pll_14nm_vco_set_rate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r6, r2
	bl	hw_clk_to_pll
	bl	to_pll_14nm
	mov	r4, r0
	mov	r2, r5
	ldr	r1, [r0, #16]
	mov	r3, r6
	ldr	r0, .L11
	bl	DBG
	ldr	r3, .L11+4
	str	r5, [r4]
	ldr	r3, [r3]
	mov	r0, r4
	str	r3, [r4, #12]
	bl	dsi_pll_14nm_input_init
	ldr	r3, .L11+8
	mov	r0, r4
	ldr	r3, [r3]
	add	r5, r4, #24
	str	r3, [r4, #20]
	bl	pll_14nm_dec_frac_calc
	ldr	r3, [r4, #24]
	add	r6, r4, #20
	cmp	r3, #0
	bne	.L9
.L2:
	mov	r0, r4
	bl	pll_14nm_calc_vco_count
	ldr	r3, .L11+12
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L10
.L3:
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	pll_db_commit_14nm
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, r4
	bl	pll_14nm_ssc_calc
	b	.L2
.L10:
	mov	r2, r6
	mov	r1, r5
	ldr	r0, [r4, #8]
	bl	pll_db_commit_14nm
	b	.L3
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	VCO_REF_CLK_RATE
	.word	DSI_PLL_DEFAULT_VCO_POSTDIV
	.word	MSM_DSI_PHY_MASTER
	.size	dsi_pll_14nm_vco_set_rate, .-dsi_pll_14nm_vco_set_rate
	.comm	VCO_REF_CLK_RATE,4,4
	.comm	MSM_DSI_PHY_MASTER,4,4
	.comm	DSI_PLL_DEFAULT_VCO_POSTDIV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
