	.file	"extr_analogix_dp_reg.c_analogix_dp_init_analog_func.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to get pll lock status\n"
	.text
	.p2align 4
	.globl	analogix_dp_init_analog_func
	.type	analogix_dp_init_analog_func, @function
analogix_dp_init_analog_func:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	edx, edx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR POWER_ALL[rip]
	call	analogix_dp_set_analog_power_down@PLT
	mov	edi, DWORD PTR PLL_LOCK_CHG[rip]
	mov	rsi, QWORD PTR ANALOGIX_DP_COMMON_INT_STA_1[rip]
	add	rsi, QWORD PTR [rbx]
	call	writel@PLT
	mov	rdi, QWORD PTR ANALOGIX_DP_DEBUG_CTL[rip]
	add	rdi, QWORD PTR [rbx]
	call	readl@PLT
	mov	edi, DWORD PTR F_PLL_LOCK[rip]
	or	edi, DWORD PTR PLL_LOCK_CTRL[rip]
	not	edi
	mov	rsi, QWORD PTR ANALOGIX_DP_DEBUG_CTL[rip]
	add	rsi, QWORD PTR [rbx]
	and	edi, eax
	call	writel@PLT
	mov	rdi, rbx
	call	analogix_dp_get_pll_lock_status@PLT
	cmp	rax, QWORD PTR PLL_UNLOCKED[rip]
	je	.L2
.L7:
	mov	rdi, QWORD PTR ANALOGIX_DP_FUNC_EN_2[rip]
	add	rdi, QWORD PTR [rbx]
	call	readl@PLT
	mov	edi, DWORD PTR SERDES_FIFO_FUNC_EN_N[rip]
	or	edi, DWORD PTR LS_CLK_DOMAIN_FUNC_EN_N[rip]
	or	edi, DWORD PTR AUX_FUNC_EN_N[rip]
	mov	rsi, QWORD PTR ANALOGIX_DP_FUNC_EN_2[rip]
	not	edi
	add	rsi, QWORD PTR [rbx]
	and	edi, eax
	call	writel@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, rbx
	xor	ebp, ebp
	call	analogix_dp_set_pll_power_down@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, 20
	mov	edi, 10
	call	usleep_range@PLT
.L4:
	mov	rdi, rbx
	call	analogix_dp_get_pll_lock_status@PLT
	cmp	rax, QWORD PTR PLL_UNLOCKED[rip]
	jne	.L7
	add	ebp, 1
	cmp	DWORD PTR DP_TIMEOUT_LOOP_COUNT[rip], ebp
	jge	.L5
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	analogix_dp_init_analog_func, .-analogix_dp_init_analog_func
	.comm	SERDES_FIFO_FUNC_EN_N,4,4
	.comm	POWER_ALL,4,4
	.comm	PLL_UNLOCKED,8,8
	.comm	PLL_LOCK_CTRL,4,4
	.comm	PLL_LOCK_CHG,4,4
	.comm	LS_CLK_DOMAIN_FUNC_EN_N,4,4
	.comm	F_PLL_LOCK,4,4
	.comm	ETIMEDOUT,4,4
	.comm	DP_TIMEOUT_LOOP_COUNT,4,4
	.comm	AUX_FUNC_EN_N,4,4
	.comm	ANALOGIX_DP_FUNC_EN_2,8,8
	.comm	ANALOGIX_DP_DEBUG_CTL,8,8
	.comm	ANALOGIX_DP_COMMON_INT_STA_1,8,8
	.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_analogix_dp_reg.c_analogix_dp_init_analog_func.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to get pll lock status\012\000"
	.text
	.align	2
	.global	analogix_dp_init_analog_func
	.syntax unified
	.arm
	.fpu softvfp
	.type	analogix_dp_init_analog_func, %function
analogix_dp_init_analog_func:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L10
	mov	r2, #0
	ldr	r1, [r3]
	bl	analogix_dp_set_analog_power_down
	ldr	r3, .L10+4
	ldr	r1, [r4]
	ldr	r2, [r3]
	ldr	r3, .L10+8
	ldr	r5, .L10+12
	add	r1, r1, r2
	ldr	r0, [r3]
	bl	writel
	ldr	r3, [r5]
	ldr	r0, [r4]
	ldr	r6, .L10+16
	add	r0, r0, r3
	bl	readl
	ldr	r2, .L10+20
	ldr	r3, .L10+24
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r2, [r5]
	ldr	r1, [r4]
	orr	r3, r3, ip
	bic	r0, r0, r3
	add	r1, r1, r2
	bl	writel
	mov	r0, r4
	bl	analogix_dp_get_pll_lock_status
	ldr	r3, [r6]
	cmp	r0, r3
	beq	.L2
.L7:
	ldr	r5, .L10+28
	ldr	r0, [r4]
	ldr	r3, [r5]
	add	r0, r0, r3
	bl	readl
	ldr	r1, .L10+32
	ldr	r3, .L10+36
	ldr	r2, .L10+40
	ldr	lr, [r1]
	ldr	r3, [r3]
	ldr	ip, [r2]
	ldr	r1, [r4]
	ldr	r2, [r5]
	orr	r3, r3, lr
	orr	r3, r3, ip
	add	r1, r1, r2
	bic	r0, r0, r3
	bl	writel
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r1, #0
	mov	r0, r4
	bl	analogix_dp_set_pll_power_down
	mov	r5, #0
	ldr	r7, .L10+44
	b	.L4
.L5:
	mov	r1, #20
	mov	r0, #10
	bl	usleep_range
.L4:
	mov	r0, r4
	bl	analogix_dp_get_pll_lock_status
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r0, r3
	bne	.L7
	ldr	r3, [r7]
	cmp	r3, r5
	bge	.L5
	ldr	r0, [r4, #4]
	ldr	r1, .L10+48
	bl	dev_err
	ldr	r3, .L10+52
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	POWER_ALL
	.word	ANALOGIX_DP_COMMON_INT_STA_1
	.word	PLL_LOCK_CHG
	.word	ANALOGIX_DP_DEBUG_CTL
	.word	PLL_UNLOCKED
	.word	PLL_LOCK_CTRL
	.word	F_PLL_LOCK
	.word	ANALOGIX_DP_FUNC_EN_2
	.word	LS_CLK_DOMAIN_FUNC_EN_N
	.word	SERDES_FIFO_FUNC_EN_N
	.word	AUX_FUNC_EN_N
	.word	DP_TIMEOUT_LOOP_COUNT
	.word	.LC0
	.word	ETIMEDOUT
	.size	analogix_dp_init_analog_func, .-analogix_dp_init_analog_func
	.comm	SERDES_FIFO_FUNC_EN_N,4,4
	.comm	POWER_ALL,4,4
	.comm	PLL_UNLOCKED,4,4
	.comm	PLL_LOCK_CTRL,4,4
	.comm	PLL_LOCK_CHG,4,4
	.comm	LS_CLK_DOMAIN_FUNC_EN_N,4,4
	.comm	F_PLL_LOCK,4,4
	.comm	ETIMEDOUT,4,4
	.comm	DP_TIMEOUT_LOOP_COUNT,4,4
	.comm	AUX_FUNC_EN_N,4,4
	.comm	ANALOGIX_DP_FUNC_EN_2,4,4
	.comm	ANALOGIX_DP_DEBUG_CTL,4,4
	.comm	ANALOGIX_DP_COMMON_INT_STA_1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
