	.file	"extr_dw-mipi-dsi-rockchip.c_dw_mipi_dsi_encoder_atomic_check.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dw_mipi_dsi_encoder_atomic_check, @function
dw_mipi_dsi_encoder_atomic_check:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	to_rockchip_crtc_state@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	to_dsi@PLT
	mov	edx, DWORD PTR [rax]
	cmp	edx, 129
	je	.L2
	cmp	edx, 130
	je	.L3
	cmp	edx, 128
	je	.L10
	mov	edi, 1
	call	WARN_ON@PLT
	mov	r8d, DWORD PTR EINVAL[rip]
	neg	r8d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR ROCKCHIP_OUT_MODE_P666[rip]
	mov	DWORD PTR 8[rbx], edx
.L5:
	mov	edx, DWORD PTR DRM_MODE_CONNECTOR_DSI[rip]
	xor	r8d, r8d
	cmp	QWORD PTR 8[rax], 0
	mov	DWORD PTR 4[rbx], edx
	je	.L1
	mov	eax, DWORD PTR ROCKCHIP_OUTPUT_DSI_DUAL[rip]
	mov	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edx, DWORD PTR ROCKCHIP_OUT_MODE_P888[rip]
	mov	DWORD PTR 8[rbx], edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR ROCKCHIP_OUT_MODE_P565[rip]
	mov	DWORD PTR 8[rbx], edx
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	dw_mipi_dsi_encoder_atomic_check, .-dw_mipi_dsi_encoder_atomic_check
	.comm	ROCKCHIP_OUT_MODE_P888,4,4
	.comm	ROCKCHIP_OUT_MODE_P666,4,4
	.comm	ROCKCHIP_OUT_MODE_P565,4,4
	.comm	ROCKCHIP_OUTPUT_DSI_DUAL,4,4
	.comm	EINVAL,4,4
	.comm	DRM_MODE_CONNECTOR_DSI,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_dw-mipi-dsi-rockchip.c_dw_mipi_dsi_encoder_atomic_check.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dw_mipi_dsi_encoder_atomic_check, %function
dw_mipi_dsi_encoder_atomic_check:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r0, r1
	bl	to_rockchip_crtc_state
	mov	r4, r0
	mov	r0, r5
	bl	to_dsi
	ldr	r3, [r0]
	cmp	r3, #129
	beq	.L2
	cmp	r3, #130
	beq	.L3
	cmp	r3, #128
	beq	.L12
	mov	r0, #1
	bl	WARN_ON
	ldr	r3, .L13
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L13+4
	ldr	r3, [r3]
	str	r3, [r4, #8]
.L5:
	ldr	r3, .L13+8
	ldr	r0, [r0, #4]
	ldr	r3, [r3]
	cmp	r0, #0
	str	r3, [r4, #4]
	ldrne	r3, .L13+12
	movne	r0, #0
	ldrne	r3, [r3]
	strne	r3, [r4]
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L13+16
	ldr	r3, [r3]
	str	r3, [r4, #8]
	b	.L5
.L3:
	ldr	r3, .L13+20
	ldr	r3, [r3]
	str	r3, [r4, #8]
	b	.L5
.L14:
	.align	2
.L13:
	.word	EINVAL
	.word	ROCKCHIP_OUT_MODE_P666
	.word	DRM_MODE_CONNECTOR_DSI
	.word	ROCKCHIP_OUTPUT_DSI_DUAL
	.word	ROCKCHIP_OUT_MODE_P888
	.word	ROCKCHIP_OUT_MODE_P565
	.size	dw_mipi_dsi_encoder_atomic_check, .-dw_mipi_dsi_encoder_atomic_check
	.comm	ROCKCHIP_OUT_MODE_P888,4,4
	.comm	ROCKCHIP_OUT_MODE_P666,4,4
	.comm	ROCKCHIP_OUT_MODE_P565,4,4
	.comm	ROCKCHIP_OUTPUT_DSI_DUAL,4,4
	.comm	EINVAL,4,4
	.comm	DRM_MODE_CONNECTOR_DSI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
