	.file	"extr_xlnx_vcu.c_xvcu_set_pll.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to set pll info\n"
.LC1:
	.string	"PLL is not locked\n"
	.text
	.p2align 4
	.type	xvcu_set_pll, @function
xvcu_set_pll:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	xvcu_set_vcu_pll_info@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L10
	mov	edi, DWORD PTR 4[rbx]
	mov	r8d, DWORD PTR VCU_PLL_CTRL_BYPASS_SHIFT[rip]
	mov	edx, 1
	mov	ecx, DWORD PTR VCU_PLL_CTRL_BYPASS_MASK[rip]
	mov	esi, DWORD PTR VCU_PLL_CTRL[rip]
	call	xvcu_write_field_reg@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	edx, 1
	mov	r8d, DWORD PTR VCU_PLL_CTRL_RESET_SHIFT[rip]
	mov	ecx, DWORD PTR VCU_PLL_CTRL_RESET_MASK[rip]
	mov	esi, DWORD PTR VCU_PLL_CTRL[rip]
	call	xvcu_write_field_reg@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	ecx, DWORD PTR VCU_PLL_CTRL_RESET_MASK[rip]
	xor	edx, edx
	mov	r8d, DWORD PTR VCU_PLL_CTRL_RESET_SHIFT[rip]
	mov	esi, DWORD PTR VCU_PLL_CTRL[rip]
	call	xvcu_write_field_reg@PLT
	mov	edi, 2000
	call	msecs_to_jiffies@PLT
	add	rax, QWORD PTR jiffies[rip]
	mov	rbp, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR jiffies[rip]
	mov	rsi, rbp
	call	time_after@PLT
	test	eax, eax
	jne	.L11
.L5:
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR VCU_PLL_STATUS[rip]
	call	xvcu_read@PLT
	test	DWORD PTR VCU_PLL_STATUS_LOCK_STATUS_MASK[rip], eax
	je	.L4
	mov	edi, DWORD PTR 4[rbx]
	mov	r8d, DWORD PTR VCU_PLL_CTRL_BYPASS_SHIFT[rip]
	xor	edx, edx
	mov	ecx, DWORD PTR VCU_PLL_CTRL_BYPASS_MASK[rip]
	mov	esi, DWORD PTR VCU_PLL_CTRL[rip]
	call	xvcu_write_field_reg@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR ETIMEDOUT[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	xvcu_set_pll, .-xvcu_set_pll
	.comm	jiffies,8,8
	.comm	VCU_PLL_STATUS_LOCK_STATUS_MASK,4,4
	.comm	VCU_PLL_STATUS,4,4
	.comm	VCU_PLL_CTRL_RESET_SHIFT,4,4
	.comm	VCU_PLL_CTRL_RESET_MASK,4,4
	.comm	VCU_PLL_CTRL_BYPASS_SHIFT,4,4
	.comm	VCU_PLL_CTRL_BYPASS_MASK,4,4
	.comm	VCU_PLL_CTRL,4,4
	.comm	ETIMEDOUT,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_xlnx_vcu.c_xvcu_set_pll.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to set pll info\012\000"
	.align	2
.LC1:
	.ascii	"PLL is not locked\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xvcu_set_pll, %function
xvcu_set_pll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r4, r0
	bl	xvcu_set_vcu_pll_info
	subs	r9, r0, #0
	bne	.L10
	ldr	fp, .L12
	ldr	r10, .L12+4
	ldr	r3, [fp]
	ldr	r6, .L12+8
	str	r3, [sp]
	ldr	r3, .L12+12
	mov	r2, #1
	ldr	r3, [r3]
	ldr	r1, [r10]
	ldr	r0, [r4, #4]
	bl	xvcu_write_field_reg
	ldr	r3, [r6]
	ldr	r5, .L12+16
	str	r3, [sp]
	ldr	r3, [r5]
	mov	r2, #1
	ldr	r1, [r10]
	ldr	r0, [r4, #4]
	bl	xvcu_write_field_reg
	ldr	r2, [r6]
	ldr	r3, [r5]
	str	r2, [sp]
	ldr	r1, [r10]
	mov	r2, r9
	ldr	r0, [r4, #4]
	bl	xvcu_write_field_reg
	mov	r0, #2000
	bl	msecs_to_jiffies
	ldr	r6, .L12+20
	ldr	r8, .L12+24
	ldr	r3, [r6]
	ldr	r7, .L12+28
	add	r5, r0, r3
	b	.L5
.L4:
	mov	r1, r5
	ldr	r0, [r6]
	bl	time_after
	cmp	r0, #0
	bne	.L11
.L5:
	ldr	r1, [r8]
	ldr	r0, [r4, #4]
	bl	xvcu_read
	ldr	r3, [r7]
	tst	r0, r3
	beq	.L4
	ldr	r2, [fp]
	ldr	r3, .L12+12
	ldr	r1, [r10]
	ldr	r3, [r3]
	str	r2, [sp]
	ldr	r0, [r4, #4]
	mov	r2, #0
	bl	xvcu_write_field_reg
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r0, [r4]
	ldr	r1, .L12+32
	bl	dev_err
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r0, [r4]
	ldr	r1, .L12+36
	bl	dev_err
	ldr	r3, .L12+40
	ldr	r9, [r3]
	rsb	r9, r9, #0
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	VCU_PLL_CTRL_BYPASS_SHIFT
	.word	VCU_PLL_CTRL
	.word	VCU_PLL_CTRL_RESET_SHIFT
	.word	VCU_PLL_CTRL_BYPASS_MASK
	.word	VCU_PLL_CTRL_RESET_MASK
	.word	jiffies
	.word	VCU_PLL_STATUS
	.word	VCU_PLL_STATUS_LOCK_STATUS_MASK
	.word	.LC0
	.word	.LC1
	.word	ETIMEDOUT
	.size	xvcu_set_pll, .-xvcu_set_pll
	.comm	jiffies,4,4
	.comm	VCU_PLL_STATUS_LOCK_STATUS_MASK,4,4
	.comm	VCU_PLL_STATUS,4,4
	.comm	VCU_PLL_CTRL_RESET_SHIFT,4,4
	.comm	VCU_PLL_CTRL_RESET_MASK,4,4
	.comm	VCU_PLL_CTRL_BYPASS_SHIFT,4,4
	.comm	VCU_PLL_CTRL_BYPASS_MASK,4,4
	.comm	VCU_PLL_CTRL,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
