	.file	"extr_fsl_dcu_drm_plane.c_fsl_dcu_drm_plane_atomic_update.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ls1021a"
	.text
	.p2align 4
	.type	fsl_dcu_drm_plane_atomic_update, @function
fsl_dcu_drm_plane_atomic_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR [rdi]
	mov	r13, QWORD PTR 16[r12]
	test	r13, r13
	je	.L1
	mov	rax, QWORD PTR 8[rdi]
	mov	r14d, DWORD PTR DCU_LAYER_AB_NONE[rip]
	mov	rbx, QWORD PTR [rax]
	call	fsl_dcu_drm_plane_index@PLT
	mov	ebp, eax
	test	eax, eax
	js	.L1
	xor	esi, esi
	mov	rdi, r13
	call	drm_fb_cma_get_gem_obj@PLT
	mov	r15, rax
	mov	rax, QWORD PTR 0[r13]
	mov	eax, DWORD PTR [rax]
	add	eax, -128
	cmp	eax, 8
	ja	.L1
	lea	rdx, .L6[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L14-.L6
	.long	.L13-.L6
	.long	.L12-.L6
	.long	.L11-.L6
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	r14d, DWORD PTR DCU_LAYER_AB_WHOLE_FRAME[rip]
.L11:
	mov	r8d, DWORD PTR FSL_DCU_ARGB1555[rip]
.L15:
	mov	edi, DWORD PTR 12[r12]
	mov	DWORD PTR 12[rsp], r8d
	call	DCU_LAYER_HEIGHT@PLT
	mov	edi, DWORD PTR 8[r12]
	mov	r13d, eax
	call	DCU_LAYER_WIDTH@PLT
	mov	esi, 1
	mov	edi, ebp
	or	r13d, eax
	call	DCU_CTRLDESCLN@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, r13d
	mov	esi, eax
	call	regmap_write@PLT
	mov	edi, DWORD PTR 4[r12]
	call	DCU_LAYER_POSY@PLT
	mov	edi, DWORD PTR [r12]
	mov	r13d, eax
	call	DCU_LAYER_POSX@PLT
	mov	esi, 2
	mov	edi, ebp
	or	r13d, eax
	call	DCU_CTRLDESCLN@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, r13d
	mov	esi, eax
	call	regmap_write@PLT
	mov	r12d, DWORD PTR [r15]
	mov	esi, 3
	mov	edi, ebp
	call	DCU_CTRLDESCLN@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	mov	esi, eax
	call	regmap_write@PLT
	mov	edi, 255
	call	DCU_LAYER_TRANS@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	r12d, DWORD PTR DCU_LAYER_EN[rip]
	or	r14d, eax
	mov	edi, r8d
	or	r12d, r14d
	call	DCU_LAYER_BPP@PLT
	mov	esi, 4
	mov	edi, ebp
	or	r12d, eax
	call	DCU_CTRLDESCLN@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	mov	esi, eax
	call	regmap_write@PLT
	mov	edi, 255
	call	DCU_LAYER_CKMAX_R@PLT
	mov	edi, 255
	mov	r12d, eax
	call	DCU_LAYER_CKMAX_G@PLT
	mov	edi, 255
	or	r12d, eax
	call	DCU_LAYER_CKMAX_B@PLT
	mov	esi, 5
	mov	edi, ebp
	or	r12d, eax
	call	DCU_CTRLDESCLN@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	mov	esi, eax
	call	regmap_write@PLT
	xor	edi, edi
	call	DCU_LAYER_CKMIN_R@PLT
	xor	edi, edi
	mov	r12d, eax
	call	DCU_LAYER_CKMIN_G@PLT
	xor	edi, edi
	or	r12d, eax
	call	DCU_LAYER_CKMIN_B@PLT
	mov	esi, 6
	mov	edi, ebp
	or	r12d, eax
	call	DCU_CTRLDESCLN@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	mov	esi, eax
	call	regmap_write@PLT
	mov	esi, 7
	mov	edi, ebp
	call	DCU_CTRLDESCLN@PLT
	mov	edi, DWORD PTR [rbx]
	xor	edx, edx
	mov	esi, eax
	call	regmap_write@PLT
	xor	edi, edi
	call	DCU_LAYER_FG_FCOLOR@PLT
	mov	esi, 8
	mov	edi, ebp
	mov	r12d, eax
	call	DCU_CTRLDESCLN@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	mov	esi, eax
	call	regmap_write@PLT
	xor	edi, edi
	call	DCU_LAYER_BG_BCOLOR@PLT
	mov	esi, 9
	mov	edi, ebp
	mov	r12d, eax
	call	DCU_CTRLDESCLN@PLT
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	mov	esi, eax
	call	regmap_write@PLT
	mov	rax, QWORD PTR 8[rbx]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	call	strcmp@PLT
	test	eax, eax
	jne	.L1
	xor	edi, edi
	call	DCU_LAYER_POST_SKIP@PLT
	xor	edi, edi
	mov	r12d, eax
	call	DCU_LAYER_PRE_SKIP@PLT
	mov	edi, ebp
	mov	esi, 10
	or	r12d, eax
	call	DCU_CTRLDESCLN@PLT
	mov	edi, DWORD PTR [rbx]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edx, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	regmap_write@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r14d, DWORD PTR DCU_LAYER_AB_WHOLE_FRAME[rip]
.L12:
	mov	r8d, DWORD PTR FSL_DCU_ARGB4444[rip]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r14d, DWORD PTR DCU_LAYER_AB_WHOLE_FRAME[rip]
.L13:
	mov	r8d, DWORD PTR FSL_DCU_ARGB8888[rip]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r8d, DWORD PTR FSL_DCU_YUV422[rip]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r8d, DWORD PTR FSL_DCU_RGB888[rip]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r8d, DWORD PTR FSL_DCU_RGB565[rip]
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	fsl_dcu_drm_plane_atomic_update, .-fsl_dcu_drm_plane_atomic_update
	.comm	FSL_DCU_YUV422,4,4
	.comm	FSL_DCU_RGB888,4,4
	.comm	FSL_DCU_RGB565,4,4
	.comm	FSL_DCU_ARGB8888,4,4
	.comm	FSL_DCU_ARGB4444,4,4
	.comm	FSL_DCU_ARGB1555,4,4
	.comm	DCU_LAYER_EN,4,4
	.comm	DCU_LAYER_AB_WHOLE_FRAME,4,4
	.comm	DCU_LAYER_AB_NONE,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_fsl_dcu_drm_plane.c_fsl_dcu_drm_plane_atomic_update.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ls1021a\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fsl_dcu_drm_plane_atomic_update, %function
fsl_dcu_drm_plane_atomic_update:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, [r0]
	sub	sp, sp, #12
	ldr	r7, [r6, #16]
	cmp	r7, #0
	beq	.L1
	ldr	r2, [r0, #4]
	ldr	r3, .L18
	ldr	r5, [r2]
	ldr	r8, [r3]
	bl	fsl_dcu_drm_plane_index
	subs	r4, r0, #0
	blt	.L1
	mov	r0, r7
	mov	r1, #0
	bl	drm_fb_cma_get_gem_obj
	ldr	r3, [r7]
	mov	r7, r0
	ldr	r3, [r3]
	sub	r3, r3, #128
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L1
.L6:
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r3, .L18+4
	ldr	r8, [r3]
.L11:
	ldr	r3, .L18+8
	ldr	r10, [r3]
.L15:
	mov	r1, #1
	mov	r0, r4
	ldr	fp, [r5]
	bl	DCU_CTRLDESCLN
	mov	r1, r0
	ldr	r0, [r6, #12]
	str	r1, [sp, #4]
	bl	DCU_LAYER_HEIGHT
	mov	r9, r0
	ldr	r0, [r6, #8]
	bl	DCU_LAYER_WIDTH
	ldr	r1, [sp, #4]
	orr	r2, r9, r0
	mov	r0, fp
	bl	regmap_write
	mov	r1, #2
	mov	r0, r4
	ldr	r9, [r5]
	bl	DCU_CTRLDESCLN
	mov	fp, r0
	ldr	r0, [r6, #4]
	bl	DCU_LAYER_POSY
	mov	r2, r0
	ldr	r0, [r6]
	mov	r6, r2
	bl	DCU_LAYER_POSX
	mov	r1, fp
	orr	r2, r6, r0
	mov	r0, r9
	bl	regmap_write
	mov	r1, #3
	mov	r0, r4
	ldr	r6, [r5]
	bl	DCU_CTRLDESCLN
	ldr	r2, [r7]
	mov	r1, r0
	mov	r0, r6
	bl	regmap_write
	mov	r1, #4
	mov	r0, r4
	ldr	r9, [r5]
	bl	DCU_CTRLDESCLN
	mov	r7, r0
	mov	r0, #255
	bl	DCU_LAYER_TRANS
	mov	r6, r0
	ldr	r3, .L18+12
	mov	r0, r10
	orr	r8, r6, r8
	ldr	r6, [r3]
	bl	DCU_LAYER_BPP
	orr	r6, r6, r8
	orr	r2, r6, r0
	mov	r1, r7
	mov	r0, r9
	bl	regmap_write
	mov	r1, #5
	mov	r0, r4
	ldr	r8, [r5]
	bl	DCU_CTRLDESCLN
	mov	r7, r0
	mov	r0, #255
	bl	DCU_LAYER_CKMAX_R
	mov	r6, r0
	mov	r0, #255
	bl	DCU_LAYER_CKMAX_G
	mov	r2, r0
	mov	r0, #255
	orr	r6, r6, r2
	bl	DCU_LAYER_CKMAX_B
	mov	r1, r7
	orr	r2, r6, r0
	mov	r0, r8
	bl	regmap_write
	mov	r1, #6
	mov	r0, r4
	ldr	r8, [r5]
	bl	DCU_CTRLDESCLN
	mov	r7, r0
	mov	r0, #0
	bl	DCU_LAYER_CKMIN_R
	mov	r6, r0
	mov	r0, #0
	bl	DCU_LAYER_CKMIN_G
	mov	r2, r0
	mov	r0, #0
	orr	r6, r6, r2
	bl	DCU_LAYER_CKMIN_B
	mov	r1, r7
	orr	r2, r6, r0
	mov	r0, r8
	bl	regmap_write
	mov	r1, #7
	mov	r0, r4
	ldr	r6, [r5]
	bl	DCU_CTRLDESCLN
	mov	r2, #0
	mov	r1, r0
	mov	r0, r6
	bl	regmap_write
	mov	r1, #8
	mov	r0, r4
	ldr	r7, [r5]
	bl	DCU_CTRLDESCLN
	mov	r6, r0
	mov	r0, #0
	bl	DCU_LAYER_FG_FCOLOR
	mov	r1, r6
	mov	r2, r0
	mov	r0, r7
	bl	regmap_write
	mov	r1, #9
	mov	r0, r4
	ldr	r7, [r5]
	bl	DCU_CTRLDESCLN
	mov	r6, r0
	mov	r0, #0
	bl	DCU_LAYER_BG_BCOLOR
	mov	r1, r6
	mov	r2, r0
	mov	r0, r7
	bl	regmap_write
	ldr	r3, [r5, #4]
	ldr	r1, .L18+16
	ldr	r0, [r3]
	bl	strcmp
	subs	r6, r0, #0
	bne	.L1
	mov	r1, #10
	mov	r0, r4
	ldr	r7, [r5]
	bl	DCU_CTRLDESCLN
	mov	r5, r0
	mov	r0, r6
	bl	DCU_LAYER_POST_SKIP
	mov	r4, r0
	mov	r0, r6
	bl	DCU_LAYER_PRE_SKIP
	mov	r1, r5
	orr	r2, r4, r0
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	regmap_write
.L7:
	ldr	r3, .L18+4
	ldr	r8, [r3]
.L12:
	ldr	r3, .L18+20
	ldr	r10, [r3]
	b	.L15
.L8:
	ldr	r3, .L18+4
	ldr	r8, [r3]
.L13:
	ldr	r3, .L18+24
	ldr	r10, [r3]
	b	.L15
.L14:
	ldr	r3, .L18+28
	ldr	r10, [r3]
	b	.L15
.L10:
	ldr	r3, .L18+32
	ldr	r10, [r3]
	b	.L15
.L9:
	ldr	r3, .L18+36
	ldr	r10, [r3]
	b	.L15
.L19:
	.align	2
.L18:
	.word	DCU_LAYER_AB_NONE
	.word	DCU_LAYER_AB_WHOLE_FRAME
	.word	FSL_DCU_ARGB1555
	.word	DCU_LAYER_EN
	.word	.LC0
	.word	FSL_DCU_ARGB4444
	.word	FSL_DCU_ARGB8888
	.word	FSL_DCU_YUV422
	.word	FSL_DCU_RGB888
	.word	FSL_DCU_RGB565
	.size	fsl_dcu_drm_plane_atomic_update, .-fsl_dcu_drm_plane_atomic_update
	.comm	FSL_DCU_YUV422,4,4
	.comm	FSL_DCU_RGB888,4,4
	.comm	FSL_DCU_RGB565,4,4
	.comm	FSL_DCU_ARGB8888,4,4
	.comm	FSL_DCU_ARGB4444,4,4
	.comm	FSL_DCU_ARGB1555,4,4
	.comm	DCU_LAYER_EN,4,4
	.comm	DCU_LAYER_AB_WHOLE_FRAME,4,4
	.comm	DCU_LAYER_AB_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
