	.file	"extr_clk-alpha-pll.c_clk_trion_pll_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	clk_trion_pll_enable, @function
clk_trion_pll_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	to_clk_alpha_pll@PLT
	mov	r12, QWORD PTR [rax]
	mov	rdi, rax
	mov	rbp, rax
	call	PLL_MODE@PLT
	lea	rdx, 4[rsp]
	mov	esi, eax
	mov	rdi, r12
	call	regmap_read@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR PLL_VOTE_FSM_ENA[rip], eax
	je	.L3
	mov	rdi, r13
	call	clk_enable_regmap@PLT
	test	eax, eax
	je	.L7
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.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
.L3:
	.cfi_restore_state
	mov	r13d, DWORD PTR TRION_PLL_RUN[rip]
	mov	rdi, rbp
	call	PLL_OPMODE@PLT
	mov	rdi, r12
	mov	esi, eax
	mov	edx, r13d
	call	regmap_write@PLT
	mov	rdi, rbp
	call	wait_for_pll_enable_lock@PLT
	test	eax, eax
	jne	.L1
	mov	r13d, DWORD PTR TRION_PLL_OUT_MASK[rip]
	mov	rdi, rbp
	call	PLL_USER_CTL@PLT
	mov	rdi, r12
	mov	esi, eax
	mov	ecx, r13d
	mov	edx, r13d
	call	regmap_update_bits@PLT
	test	eax, eax
	jne	.L1
	mov	r13d, DWORD PTR PLL_OUTCTRL[rip]
	mov	rdi, rbp
	call	PLL_MODE@PLT
	mov	rdi, r12
	mov	esi, eax
	mov	ecx, r13d
	mov	edx, r13d
	call	regmap_update_bits@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, rbp
	call	wait_for_pll_enable_active@PLT
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	clk_trion_pll_enable, .-clk_trion_pll_enable
	.comm	TRION_PLL_RUN,4,4
	.comm	TRION_PLL_OUT_MASK,4,4
	.comm	PLL_VOTE_FSM_ENA,4,4
	.comm	PLL_OUTCTRL,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-alpha-pll.c_clk_trion_pll_enable.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clk_trion_pll_enable, %function
clk_trion_pll_enable:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L9
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r5, r0
	bl	to_clk_alpha_pll
	ldr	r6, [r0]
	mov	r4, r0
	bl	PLL_MODE
	mov	r2, sp
	mov	r1, r0
	mov	r0, r6
	bl	regmap_read
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L9+4
	ldr	r2, [sp]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L3
	mov	r0, r5
	bl	clk_enable_regmap
	cmp	r0, #0
	beq	.L7
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	mov	r0, r4
	bl	PLL_OPMODE
	ldr	r3, .L9+8
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r6
	bl	regmap_write
	mov	r0, r4
	bl	wait_for_pll_enable_lock
	cmp	r0, #0
	bne	.L1
	mov	r0, r4
	bl	PLL_USER_CTL
	ldr	r3, .L9+12
	mov	r1, r0
	ldr	r3, [r3]
	mov	r0, r6
	mov	r2, r3
	bl	regmap_update_bits
	cmp	r0, #0
	bne	.L1
	mov	r0, r4
	bl	PLL_MODE
	ldr	r3, .L9+16
	mov	r1, r0
	ldr	r3, [r3]
	mov	r0, r6
	mov	r2, r3
	bl	regmap_update_bits
	b	.L1
.L7:
	mov	r0, r4
	bl	wait_for_pll_enable_active
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	PLL_VOTE_FSM_ENA
	.word	TRION_PLL_RUN
	.word	TRION_PLL_OUT_MASK
	.word	PLL_OUTCTRL
	.size	clk_trion_pll_enable, .-clk_trion_pll_enable
	.comm	TRION_PLL_RUN,4,4
	.comm	TRION_PLL_OUT_MASK,4,4
	.comm	PLL_VOTE_FSM_ENA,4,4
	.comm	PLL_OUTCTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
