	.file	"extr_rockchip_lvds.c_rockchip_lvds_set_vop_source.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rockchip_lvds_set_vop_source, @function
rockchip_lvds_set_vop_source:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L14
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rax, QWORD PTR 16[rdi]
	mov	rbx, rdi
	mov	edi, DWORD PTR [rax]
	call	drm_of_encoder_active_endpoint_id@PLT
	test	eax, eax
	js	.L1
	mov	ecx, DWORD PTR RK3288_LVDS_SOC_CON6_SEL_VOP_LIT[rip]
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, ecx
	sal	edx, 16
	or	ecx, edx
	test	eax, eax
	mov	rax, QWORD PTR [rbx]
	cmovne	edx, ecx
	mov	esi, DWORD PTR [rax]
	call	regmap_write@PLT
	mov	edx, 0
	test	eax, eax
	cmovg	eax, edx
.L1:
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	rockchip_lvds_set_vop_source, .-rockchip_lvds_set_vop_source
	.comm	RK3288_LVDS_SOC_CON6_SEL_VOP_LIT,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_rockchip_lvds.c_rockchip_lvds_set_vop_source.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rockchip_lvds_set_vop_source, %function
rockchip_lvds_set_vop_source:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, [r3, #4]
	cmp	r0, #0
	popeq	{r4, pc}
	ldr	r3, [r4, #8]
	ldr	r0, [r3]
	bl	drm_of_encoder_active_endpoint_id
	cmp	r0, #0
	poplt	{r4, pc}
	ldr	r3, .L9
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	lsl	r2, r3, #16
	orrne	r2, r2, r3
	ldr	r3, [r4]
	ldr	r1, [r3]
	bl	regmap_write
	and	r0, r0, r0, asr #31
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	RK3288_LVDS_SOC_CON6_SEL_VOP_LIT
	.size	rockchip_lvds_set_vop_source, .-rockchip_lvds_set_vop_source
	.comm	RK3288_LVDS_SOC_CON6_SEL_VOP_LIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
