	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_lvds_set_vop_source
_rockchip_lvds_set_vop_source:          ## @rockchip_lvds_set_vop_source
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_drm_of_encoder_active_endpoint_id
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	_RK3288_LVDS_SOC_CON6_SEL_VOP_LIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	shll	$16, %ecx
	testl	%eax, %eax
	cmovel	%eax, %edx
	orl	%ecx, %edx
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	callq	_regmap_write
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RK3288_LVDS_SOC_CON6_SEL_VOP_LIT,4,2 ## @RK3288_LVDS_SOC_CON6_SEL_VOP_LIT
	.no_dead_strip	_rockchip_lvds_set_vop_source
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_lvds_set_vop_source
_rockchip_lvds_set_vop_source:          ; @rockchip_lvds_set_vop_source
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_drm_of_encoder_active_endpoint_id
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _RK3288_LVDS_SOC_CON6_SEL_VOP_LIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RK3288_LVDS_SOC_CON6_SEL_VOP_LIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w9, wzr, w8, eq
	orr	w2, w9, w8, lsl #16
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	w1, [x8]
	bl	_regmap_write
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RK3288_LVDS_SOC_CON6_SEL_VOP_LIT,4,2 ; @RK3288_LVDS_SOC_CON6_SEL_VOP_LIT
	.no_dead_strip	_rockchip_lvds_set_vop_source
.subsections_via_symbols
