	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_dcu_drm_plane_atomic_update
_fsl_dcu_drm_plane_atomic_update:       ## @fsl_dcu_drm_plane_atomic_update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	16(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.1:
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movq	_DCU_LAYER_AB_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	callq	_fsl_dcu_drm_plane_index
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_drm_fb_cma_get_gem_obj
	movq	(%rbx), %rcx
	movl	(%rcx), %ecx
	addl	$-128, %ecx
	cmpl	$8, %ecx
	ja	LBB0_13
## %bb.3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_FSL_DCU_RGB565@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_11:
	movq	_FSL_DCU_YUV422@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	_FSL_DCU_RGB888@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	movq	_DCU_LAYER_AB_WHOLE_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_6:
	movq	_FSL_DCU_ARGB8888@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movq	_DCU_LAYER_AB_WHOLE_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_8:
	movq	_FSL_DCU_ARGB4444@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	_DCU_LAYER_AB_WHOLE_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_10:
	movq	_FSL_DCU_ARGB1555@GOTPCREL(%rip), %rax
LBB0_12:
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %r13d
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_DCU_CTRLDESCLN
	movl	%eax, %ebx
	movl	12(%r15), %edi
	callq	_DCU_LAYER_HEIGHT
	movl	%eax, %r14d
	movl	8(%r15), %edi
	callq	_DCU_LAYER_WIDTH
	orl	%eax, %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_regmap_write
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	movl	$2, %esi
	callq	_DCU_CTRLDESCLN
	movl	%eax, %r14d
	movl	4(%r15), %edi
	callq	_DCU_LAYER_POSY
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_DCU_LAYER_POSX
	orl	%eax, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_regmap_write
	movl	(%r12), %ebx
	movl	%r13d, %edi
	movl	$3, %esi
	callq	_DCU_CTRLDESCLN
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%r12), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	movl	$4, %esi
	callq	_DCU_CTRLDESCLN
	movl	%eax, %r15d
	movq	_DCU_LAYER_EN@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	orl	(%rax), %r14d
	movl	$255, %edi
	callq	_DCU_LAYER_TRANS
	movl	%eax, %ebx
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_DCU_LAYER_BPP
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_regmap_write
	movl	(%r12), %r14d
	movl	%r13d, %edi
	movl	$5, %esi
	callq	_DCU_CTRLDESCLN
	movl	%eax, %r15d
	movl	$255, %edi
	callq	_DCU_LAYER_CKMAX_R
	movl	%eax, %ebx
	movl	$255, %edi
	callq	_DCU_LAYER_CKMAX_G
	orl	%eax, %ebx
	movl	$255, %edi
	callq	_DCU_LAYER_CKMAX_B
	orl	%eax, %ebx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_regmap_write
	movl	(%r12), %r14d
	movl	%r13d, %edi
	movl	$6, %esi
	callq	_DCU_CTRLDESCLN
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_DCU_LAYER_CKMIN_R
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_DCU_LAYER_CKMIN_G
	orl	%eax, %ebx
	xorl	%edi, %edi
	callq	_DCU_LAYER_CKMIN_B
	orl	%eax, %ebx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_regmap_write
	movl	(%r12), %ebx
	movl	%r13d, %edi
	movl	$7, %esi
	callq	_DCU_CTRLDESCLN
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	(%r12), %r14d
	movl	%r13d, %edi
	movl	$8, %esi
	callq	_DCU_CTRLDESCLN
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_DCU_LAYER_FG_FCOLOR
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movl	(%r12), %r14d
	movl	%r13d, %edi
	movl	$9, %esi
	callq	_DCU_CTRLDESCLN
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_DCU_LAYER_BG_BCOLOR
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movq	8(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_14
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	(%r12), %r14d
	movl	%r13d, %edi
	movl	$10, %esi
	callq	_DCU_CTRLDESCLN
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_DCU_LAYER_POST_SKIP
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_DCU_LAYER_PRE_SKIP
	orl	%eax, %ebx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_12
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_DCU_LAYER_AB_NONE,4,2          ## @DCU_LAYER_AB_NONE
	.comm	_FSL_DCU_RGB565,4,2             ## @FSL_DCU_RGB565
	.comm	_FSL_DCU_RGB888,4,2             ## @FSL_DCU_RGB888
	.comm	_DCU_LAYER_AB_WHOLE_FRAME,4,2   ## @DCU_LAYER_AB_WHOLE_FRAME
	.comm	_FSL_DCU_ARGB8888,4,2           ## @FSL_DCU_ARGB8888
	.comm	_FSL_DCU_ARGB4444,4,2           ## @FSL_DCU_ARGB4444
	.comm	_FSL_DCU_ARGB1555,4,2           ## @FSL_DCU_ARGB1555
	.comm	_FSL_DCU_YUV422,4,2             ## @FSL_DCU_YUV422
	.comm	_DCU_LAYER_EN,4,2               ## @DCU_LAYER_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ls1021a"

	.no_dead_strip	_fsl_dcu_drm_plane_atomic_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_dcu_drm_plane_atomic_update
_fsl_dcu_drm_plane_atomic_update:       ; @fsl_dcu_drm_plane_atomic_update
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x27, [x0]
	ldr	x21, [x27, #16]
	cbz	x21, LBB0_13
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	x25, [x8]
Lloh0:
	adrp	x8, _DCU_LAYER_AB_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCU_LAYER_AB_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	bl	_fsl_dcu_drm_plane_index
	tbnz	w0, #31, LBB0_13
; %bb.2:
	mov	x19, x0
	mov	x0, x21
	mov	w1, #0
	bl	_drm_fb_cma_get_gem_obj
	ldr	x8, [x21]
	ldr	w8, [x8]
	sub	w9, w8, #128
	cmp	w9, #8
	b.hi	LBB0_13
; %bb.3:
	mov	x20, x0
Lloh3:
	adrp	x8, _FSL_DCU_RGB565@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FSL_DCU_RGB565@GOTPAGEOFF]
Lloh5:
	adrp	x10, lJTI0_0@PAGE
Lloh6:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
Lloh7:
	adrp	x8, _FSL_DCU_YUV422@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FSL_DCU_YUV422@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
Lloh9:
	adrp	x8, _FSL_DCU_RGB888@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FSL_DCU_RGB888@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
Lloh11:
	adrp	x8, _DCU_LAYER_AB_WHOLE_FRAME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DCU_LAYER_AB_WHOLE_FRAME@GOTPAGEOFF]
Lloh13:
	ldr	w26, [x8]
LBB0_7:
Lloh14:
	adrp	x8, _FSL_DCU_ARGB8888@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FSL_DCU_ARGB8888@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh16:
	adrp	x8, _DCU_LAYER_AB_WHOLE_FRAME@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DCU_LAYER_AB_WHOLE_FRAME@GOTPAGEOFF]
Lloh18:
	ldr	w26, [x8]
LBB0_9:
Lloh19:
	adrp	x8, _FSL_DCU_ARGB4444@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FSL_DCU_ARGB4444@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh21:
	adrp	x8, _DCU_LAYER_AB_WHOLE_FRAME@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DCU_LAYER_AB_WHOLE_FRAME@GOTPAGEOFF]
Lloh23:
	ldr	w26, [x8]
LBB0_11:
Lloh24:
	adrp	x8, _FSL_DCU_ARGB1555@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FSL_DCU_ARGB1555@GOTPAGEOFF]
LBB0_12:
	ldr	w21, [x8]
	ldr	w22, [x25]
	mov	x0, x19
	mov	w1, #1
	bl	_DCU_CTRLDESCLN
	mov	x23, x0
	ldr	w0, [x27, #12]
	bl	_DCU_LAYER_HEIGHT
	mov	x24, x0
	ldr	w0, [x27, #8]
	bl	_DCU_LAYER_WIDTH
	orr	w2, w0, w24
	mov	x0, x22
	mov	x1, x23
	bl	_regmap_write
	ldr	w22, [x25]
	mov	x0, x19
	mov	w1, #2
	bl	_DCU_CTRLDESCLN
	mov	x23, x0
	ldr	w0, [x27, #4]
	bl	_DCU_LAYER_POSY
	mov	x24, x0
	ldr	w0, [x27]
	bl	_DCU_LAYER_POSX
	orr	w2, w0, w24
	mov	x0, x22
	mov	x1, x23
	bl	_regmap_write
	ldr	w22, [x25]
	mov	x0, x19
	mov	w1, #3
	bl	_DCU_CTRLDESCLN
	mov	x1, x0
	ldr	w2, [x20]
	mov	x0, x22
	bl	_regmap_write
	ldr	w20, [x25]
	mov	x0, x19
	mov	w1, #4
	bl	_DCU_CTRLDESCLN
	mov	x22, x0
Lloh26:
	adrp	x8, _DCU_LAYER_EN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DCU_LAYER_EN@GOTPAGEOFF]
Lloh28:
	ldr	w24, [x8]
	mov	w0, #255
	bl	_DCU_LAYER_TRANS
	mov	x23, x0
	mov	x0, x21
	bl	_DCU_LAYER_BPP
	orr	w8, w24, w26
	orr	w8, w8, w23
	orr	w2, w8, w0
	mov	x0, x20
	mov	x1, x22
	bl	_regmap_write
	ldr	w20, [x25]
	mov	x0, x19
	mov	w1, #5
	bl	_DCU_CTRLDESCLN
	mov	x21, x0
	mov	w0, #255
	bl	_DCU_LAYER_CKMAX_R
	mov	x22, x0
	mov	w0, #255
	bl	_DCU_LAYER_CKMAX_G
	orr	w22, w0, w22
	mov	w0, #255
	bl	_DCU_LAYER_CKMAX_B
	orr	w2, w22, w0
	mov	x0, x20
	mov	x1, x21
	bl	_regmap_write
	ldr	w20, [x25]
	mov	x0, x19
	mov	w1, #6
	bl	_DCU_CTRLDESCLN
	mov	x21, x0
	mov	w0, #0
	bl	_DCU_LAYER_CKMIN_R
	mov	x22, x0
	mov	w0, #0
	bl	_DCU_LAYER_CKMIN_G
	orr	w22, w0, w22
	mov	w0, #0
	bl	_DCU_LAYER_CKMIN_B
	orr	w2, w22, w0
	mov	x0, x20
	mov	x1, x21
	bl	_regmap_write
	ldr	w20, [x25]
	mov	x0, x19
	mov	w1, #7
	bl	_DCU_CTRLDESCLN
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_regmap_write
	ldr	w20, [x25]
	mov	x0, x19
	mov	w1, #8
	bl	_DCU_CTRLDESCLN
	mov	x21, x0
	mov	w0, #0
	bl	_DCU_LAYER_FG_FCOLOR
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_regmap_write
	ldr	w20, [x25]
	mov	x0, x19
	mov	w1, #9
	bl	_DCU_CTRLDESCLN
	mov	x21, x0
	mov	w0, #0
	bl	_DCU_LAYER_BG_BCOLOR
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_regmap_write
	ldr	x8, [x25, #8]
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_14
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	ldr	w20, [x25]
	mov	x0, x19
	mov	w1, #10
	bl	_DCU_CTRLDESCLN
	mov	x19, x0
	mov	w0, #0
	bl	_DCU_LAYER_POST_SKIP
	mov	x21, x0
	mov	w0, #0
	bl	_DCU_LAYER_PRE_SKIP
	orr	w2, w0, w21
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_regmap_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
                                        ; -- End function
	.comm	_DCU_LAYER_AB_NONE,4,2          ; @DCU_LAYER_AB_NONE
	.comm	_FSL_DCU_RGB565,4,2             ; @FSL_DCU_RGB565
	.comm	_FSL_DCU_RGB888,4,2             ; @FSL_DCU_RGB888
	.comm	_DCU_LAYER_AB_WHOLE_FRAME,4,2   ; @DCU_LAYER_AB_WHOLE_FRAME
	.comm	_FSL_DCU_ARGB8888,4,2           ; @FSL_DCU_ARGB8888
	.comm	_FSL_DCU_ARGB4444,4,2           ; @FSL_DCU_ARGB4444
	.comm	_FSL_DCU_ARGB1555,4,2           ; @FSL_DCU_ARGB1555
	.comm	_FSL_DCU_YUV422,4,2             ; @FSL_DCU_YUV422
	.comm	_DCU_LAYER_EN,4,2               ; @DCU_LAYER_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ls1021a"

	.no_dead_strip	_fsl_dcu_drm_plane_atomic_update
.subsections_via_symbols
