	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_malidp_de_planes_init          ## -- Begin function malidp_de_planes_init
	.p2align	4, 0x90
_malidp_de_planes_init:                 ## @malidp_de_planes_init
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rdx
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	movb	(%rdi), %cl
	movl	$1, %r12d
	shll	%cl, %r12d
	movq	_DRM_MODE_ROTATE_0@GOTPCREL(%rip), %rcx
	movq	_DRM_MODE_ROTATE_90@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	orq	(%rcx), %rsi
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rax
	movq	_DRM_MODE_ROTATE_180@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rsi
	movq	(%rax), %rbx
	movq	_DRM_MODE_ROTATE_270@GOTPCREL(%rip), %rax
	orq	(%rax), %rsi
	movq	_DRM_MODE_REFLECT_X@GOTPCREL(%rip), %rax
	orq	(%rax), %rsi
	movq	_DRM_MODE_REFLECT_Y@GOTPCREL(%rip), %rax
	orq	(%rax), %rsi
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	_DRM_MODE_BLEND_PIXEL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_DRM_MODE_BLEND_PREMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r14d
	movq	_DRM_MODE_BLEND_COVERAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r13d
	movq	_MODIFIERS_COUNT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	movq	%rbx, %r9
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r8
	movq	_malidp_format_modifiers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MALIDP_DEVICE_AFBC_SUPPORT_SPLIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_2:
	movq	_DRM_FORMAT_MOD_INVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	%ecx, %esi
	jne	LBB0_25
LBB0_3:
	movslq	%edx, %rax
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, (%r8,%rax,4)
LBB0_4:
	movl	4(%r9), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	movq	%r9, %rbx
	callq	_kcalloc
	movq	%rax, %rdi
	testq	%rax, %rax
	je	LBB0_23
## %bb.5:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%rbx)
	jle	LBB0_24
## %bb.6:
	movq	%rbx, %rcx
	orl	%r15d, %r14d
	movslq	%r12d, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	orl	%r13d, %r14d
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	movq	_DE_SMART@GOTPCREL(%rip), %r12
	xorl	%edx, %edx
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_malidp_de_set_color_encoding
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	incq	%rdx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movslq	8(%rcx), %rax
	cmpq	%rax, %rdx
	jge	LBB0_24
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	%r12, %r15
	movq	16(%rcx), %rax
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, %r12
	shlq	$4, %r12
	movl	(%rax,%r12), %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	movq	%rcx, %rbx
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_29
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %r14
	movl	4(%rbx), %edx
	testl	%edx, %edx
	jle	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	movq	24(%rbx), %rax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=2
	incq	%rcx
	movslq	%edx, %rsi
	cmpq	%rsi, %rcx
	jge	LBB0_16
LBB0_13:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rcx,8), %esi
	notl	%esi
	testl	%esi, %r13d
	jne	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	4(%rax,%rcx,8), %edx
	movslq	%r9d, %rsi
	incl	%r9d
	movl	%edx, (%r8,%rsi,4)
	movl	4(%rdi), %edx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%r9d, %r9d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_DRM_PLANE_TYPE_OVERLAY@GOTPCREL(%rip), %rax
	cmpq	$0, -104(%rbp)                  ## 8-byte Folded Reload
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_DRM_PLANE_TYPE_PRIMARY@GOTPCREL(%rip), %rax
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rax), %eax
	cmpl	(%r15), %r13d
	movl	$0, %ecx
	cmoveq	%rcx, %rbx
	subq	$8, %rsp
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	_malidp_de_plane_funcs@GOTPCREL(%rip), %rcx
	pushq	$0
	pushq	%rax
	pushq	%rbx
	callq	_drm_universal_plane_init
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_30
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	movq	_malidp_de_plane_helper_funcs@GOTPCREL(%rip), %rsi
	callq	_drm_plane_helper_add
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addq	16(%rax), %r12
	movq	%r12, 8(%r14)
	movq	%r14, %rdi
	callq	_drm_plane_create_alpha_property
	movq	%r14, %rdi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_drm_plane_create_blend_mode_property
	cmpl	(%r15), %r13d
	movq	%r15, %r12
	je	LBB0_8
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_DRM_MODE_ROTATE_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	callq	_drm_plane_create_rotation_property
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_MALIDP_ALPHA_LUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rax
	movq	_MALIDP_LAYER_COMPOSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	8(%rax), %rdx
	callq	_malidp_hw_write
	movq	_DE_VIDEO2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DE_VIDEO1@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r13d, %eax
	je	LBB0_8
## %bb.21:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_DRM_COLOR_YCBCR_BT601@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	movq	_DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	callq	_BIT
	movl	%eax, %r15d
	movq	_DRM_COLOR_YCBCR_BT709@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %r15d
	movq	_DRM_COLOR_YCBCR_BT2020@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %r15d
	movq	_DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_DRM_COLOR_YCBCR_FULL_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	%ebx, %edx
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	callq	_drm_plane_create_color_properties
	testl	%eax, %eax
	je	LBB0_7
## %bb.22:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	callq	_DRM_WARN
	jmp	LBB0_8
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_32
LBB0_24:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	xorl	%ebx, %ebx
	jmp	LBB0_33
LBB0_25:
	movq	_AFBC_SPLIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	addq	$4, %rax
	xorl	%edx, %edx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	(%rax), %esi
	addq	$4, %rax
	cmpl	%ecx, %esi
	je	LBB0_3
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	testl	%esi, %edi
	jne	LBB0_26
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movslq	%edx, %rbx
	incl	%edx
	movl	%esi, (%r8,%rbx,4)
	jmp	LBB0_26
LBB0_29:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_31
LBB0_30:
	movl	%eax, %ebx
LBB0_31:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_32:
	callq	_kfree
LBB0_33:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.34:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_ROTATE_0,8,3          ## @DRM_MODE_ROTATE_0
	.comm	_DRM_MODE_ROTATE_90,8,3         ## @DRM_MODE_ROTATE_90
	.comm	_DRM_MODE_ROTATE_180,8,3        ## @DRM_MODE_ROTATE_180
	.comm	_DRM_MODE_ROTATE_270,8,3        ## @DRM_MODE_ROTATE_270
	.comm	_DRM_MODE_REFLECT_X,8,3         ## @DRM_MODE_REFLECT_X
	.comm	_DRM_MODE_REFLECT_Y,8,3         ## @DRM_MODE_REFLECT_Y
	.comm	_DRM_MODE_BLEND_PIXEL_NONE,4,2  ## @DRM_MODE_BLEND_PIXEL_NONE
	.comm	_DRM_MODE_BLEND_PREMULTI,4,2    ## @DRM_MODE_BLEND_PREMULTI
	.comm	_DRM_MODE_BLEND_COVERAGE,4,2    ## @DRM_MODE_BLEND_COVERAGE
	.comm	_MODIFIERS_COUNT_MAX,4,2        ## @MODIFIERS_COUNT_MAX
	.comm	_malidp_format_modifiers,8,3    ## @malidp_format_modifiers
	.comm	_MALIDP_DEVICE_AFBC_SUPPORT_SPLIT,4,2 ## @MALIDP_DEVICE_AFBC_SUPPORT_SPLIT
	.comm	_DRM_FORMAT_MOD_INVALID,4,2     ## @DRM_FORMAT_MOD_INVALID
	.comm	_AFBC_SPLIT,4,2                 ## @AFBC_SPLIT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRM_PLANE_TYPE_PRIMARY,4,2     ## @DRM_PLANE_TYPE_PRIMARY
	.comm	_DRM_PLANE_TYPE_OVERLAY,4,2     ## @DRM_PLANE_TYPE_OVERLAY
	.comm	_malidp_de_plane_funcs,4,2      ## @malidp_de_plane_funcs
	.comm	_DE_SMART,4,2                   ## @DE_SMART
	.comm	_malidp_de_plane_helper_funcs,4,2 ## @malidp_de_plane_helper_funcs
	.comm	_MALIDP_ALPHA_LUT,4,2           ## @MALIDP_ALPHA_LUT
	.comm	_MALIDP_LAYER_COMPOSE,8,3       ## @MALIDP_LAYER_COMPOSE
	.comm	_DE_VIDEO1,4,2                  ## @DE_VIDEO1
	.comm	_DE_VIDEO2,4,2                  ## @DE_VIDEO2
	.comm	_DRM_COLOR_YCBCR_BT601,4,2      ## @DRM_COLOR_YCBCR_BT601
	.comm	_DRM_COLOR_YCBCR_LIMITED_RANGE,4,2 ## @DRM_COLOR_YCBCR_LIMITED_RANGE
	.comm	_DRM_COLOR_YCBCR_BT709,4,2      ## @DRM_COLOR_YCBCR_BT709
	.comm	_DRM_COLOR_YCBCR_BT2020,4,2     ## @DRM_COLOR_YCBCR_BT2020
	.comm	_DRM_COLOR_YCBCR_FULL_RANGE,4,2 ## @DRM_COLOR_YCBCR_FULL_RANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create video layer %d color properties\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_malidp_de_planes_init          ; -- Begin function malidp_de_planes_init
	.p2align	2
_malidp_de_planes_init:                 ; @malidp_de_planes_init
	.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
	sub	sp, sp, #64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x8, [x0, #8]
	stp	x0, x8, [x29, #-104]            ; 16-byte Folded Spill
	ldr	x8, [x8]
	ldr	x24, [x8]
	ldr	w19, [x0]
Lloh3:
	adrp	x8, _DRM_MODE_ROTATE_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_ROTATE_0@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
Lloh6:
	adrp	x8, _DRM_MODE_ROTATE_90@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_MODE_ROTATE_90@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
Lloh9:
	adrp	x8, _DRM_MODE_ROTATE_180@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRM_MODE_ROTATE_180@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
Lloh12:
	adrp	x8, _DRM_MODE_ROTATE_270@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRM_MODE_ROTATE_270@GOTPAGEOFF]
Lloh14:
	ldr	x27, [x8]
Lloh15:
	adrp	x8, _DRM_MODE_REFLECT_X@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DRM_MODE_REFLECT_X@GOTPAGEOFF]
Lloh17:
	ldr	x26, [x8]
Lloh18:
	adrp	x8, _DRM_MODE_REFLECT_Y@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DRM_MODE_REFLECT_Y@GOTPAGEOFF]
Lloh20:
	ldr	x28, [x8]
Lloh21:
	adrp	x8, _DRM_MODE_BLEND_PIXEL_NONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DRM_MODE_BLEND_PIXEL_NONE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_BIT
	mov	x25, x0
Lloh24:
	adrp	x8, _DRM_MODE_BLEND_PREMULTI@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DRM_MODE_BLEND_PREMULTI@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_BIT
	mov	x23, x0
Lloh27:
	adrp	x8, _DRM_MODE_BLEND_COVERAGE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DRM_MODE_BLEND_COVERAGE@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_BIT
	mov	x21, x0
Lloh30:
	adrp	x8, _MODIFIERS_COUNT_MAX@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MODIFIERS_COUNT_MAX@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh33:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh34:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh35:
	adrp	x8, _malidp_format_modifiers@GOTPAGE
Lloh36:
	ldr	x8, [x8, _malidp_format_modifiers@GOTPAGEOFF]
Lloh37:
	ldr	x11, [x8]
	ldr	w8, [x24]
Lloh38:
	adrp	x9, _MALIDP_DEVICE_AFBC_SUPPORT_SPLIT@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MALIDP_DEVICE_AFBC_SUPPORT_SPLIT@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x22, x11
	b	LBB0_5
LBB0_2:
Lloh41:
	adrp	x8, _DRM_FORMAT_MOD_INVALID@GOTPAGE
Lloh42:
	ldr	x8, [x8, _DRM_FORMAT_MOD_INVALID@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	ldr	w12, [x11]
	cmp	w12, w8
	b.ne	LBB0_25
; %bb.3:
	mov	w9, #0
LBB0_4:
	str	w8, [x22, w9, sxtw #2]
LBB0_5:
	ldr	w0, [x24, #4]
Lloh44:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	mov	x20, x0
	cbz	x0, LBB0_23
; %bb.6:
	ldr	w8, [x24, #8]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.7:
	mov	x10, x19
	mov	x19, #0
Lloh47:
	adrp	x11, _DRM_PLANE_TYPE_PRIMARY@GOTPAGE
Lloh48:
	ldr	x11, [x11, _DRM_PLANE_TYPE_PRIMARY@GOTPAGEOFF]
Lloh49:
	adrp	x12, _DRM_PLANE_TYPE_OVERLAY@GOTPAGE
Lloh50:
	ldr	x12, [x12, _DRM_PLANE_TYPE_OVERLAY@GOTPAGEOFF]
	ldp	x9, x8, [x29, #-120]            ; 16-byte Folded Reload
	orr	x8, x9, x8
	mov	w9, #1
	ldur	x13, [x29, #-128]               ; 8-byte Folded Reload
	orr	x8, x8, x13
	lsl	w9, w9, w10
	orr	x8, x8, x27
	orr	x8, x8, x26
	orr	w10, w23, w25
	mov	x23, x12
	sxtw	x9, w9
	stur	x9, [x29, #-112]                ; 8-byte Folded Spill
	orr	x8, x8, x28
	stp	x22, x8, [x29, #-136]           ; 16-byte Folded Spill
	orr	w8, w10, w21
	stur	w8, [x29, #-120]                ; 4-byte Folded Spill
	mov	x21, x11
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x28
	mov	x1, x26
	mov	x2, x25
	bl	_malidp_de_set_color_encoding
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x21, x22
	ldur	x22, [x29, #-136]               ; 8-byte Folded Reload
Lloh51:
	adrp	x23, _DRM_PLANE_TYPE_OVERLAY@GOTPAGE
Lloh52:
	ldr	x23, [x23, _DRM_PLANE_TYPE_OVERLAY@GOTPAGEOFF]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x19, x19, #1
	ldrsw	x8, [x24, #8]
	cmp	x19, x8
	b.ge	LBB0_24
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x8, [x24, #16]
	lsl	x9, x19, #4
	ldr	w27, [x8, x9]
Lloh53:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh54:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x28, x0
	ldr	w9, [x24, #4]
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x8, #0
	mov	w5, #0
	ldr	x10, [x24, #24]
	add	x10, x10, #4
Lloh56:
	adrp	x26, _DE_SMART@GOTPAGE
Lloh57:
	ldr	x26, [x26, _DE_SMART@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	x8, x8, #1
	add	x10, x10, #8
	cmp	x8, w9, sxtw
	b.ge	LBB0_18
LBB0_15:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w11, [x10, #-4]
	bics	wzr, w27, w11
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	w9, [x10]
	str	w9, [x20, w5, sxtw #2]
	add	w5, w5, #1
	ldr	w9, [x24, #4]
	b	LBB0_14
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w5, #0
Lloh58:
	adrp	x26, _DE_SMART@GOTPAGE
Lloh59:
	ldr	x26, [x26, _DE_SMART@GOTPAGEOFF]
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	x19, #0
	csel	x8, x21, x23, eq
	ldr	w7, [x8]
	ldr	w8, [x26]
	cmp	w27, w8
	csel	x6, xzr, x22, eq
	str	xzr, [sp, #-16]!
	ldp	x2, x0, [x29, #-112]            ; 16-byte Folded Reload
	mov	x1, x28
Lloh60:
	adrp	x3, _malidp_de_plane_funcs@GOTPAGE
Lloh61:
	ldr	x3, [x3, _malidp_de_plane_funcs@GOTPAGEOFF]
	mov	x4, x20
	bl	_drm_universal_plane_init
	add	sp, sp, #16
	tbnz	w0, #31, LBB0_29
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x28
Lloh62:
	adrp	x1, _malidp_de_plane_helper_funcs@GOTPAGE
Lloh63:
	ldr	x1, [x1, _malidp_de_plane_helper_funcs@GOTPAGEOFF]
	bl	_drm_plane_helper_add
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x9, [x24, #16]
	add	x9, x9, x19, lsl #4
	stp	x9, x8, [x28, #8]
	mov	x0, x28
	bl	_drm_plane_create_alpha_property
	mov	x0, x28
	ldur	w1, [x29, #-120]                ; 4-byte Folded Reload
	bl	_drm_plane_create_blend_mode_property
	ldr	w8, [x26]
	cmp	w27, w8
	b.eq	LBB0_10
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh64:
	adrp	x8, _DRM_MODE_ROTATE_0@GOTPAGE
Lloh65:
	ldr	x8, [x8, _DRM_MODE_ROTATE_0@GOTPAGEOFF]
Lloh66:
	ldr	x1, [x8]
	mov	x0, x28
	ldur	x2, [x29, #-128]                ; 8-byte Folded Reload
	bl	_drm_plane_create_rotation_property
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	x0, [x8]
Lloh67:
	adrp	x8, _MALIDP_ALPHA_LUT@GOTPAGE
Lloh68:
	ldr	x8, [x8, _MALIDP_ALPHA_LUT@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	ldr	x8, [x28, #8]
	ldr	x8, [x8, #8]
Lloh70:
	adrp	x9, _MALIDP_LAYER_COMPOSE@GOTPAGE
Lloh71:
	ldr	x9, [x9, _MALIDP_LAYER_COMPOSE@GOTPAGEOFF]
Lloh72:
	ldr	x9, [x9]
	add	x2, x9, x8
	bl	_malidp_hw_write
Lloh73:
	adrp	x8, _DE_VIDEO1@GOTPAGE
Lloh74:
	ldr	x8, [x8, _DE_VIDEO1@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
Lloh76:
	adrp	x9, _DE_VIDEO2@GOTPAGE
Lloh77:
	ldr	x9, [x9, _DE_VIDEO2@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w27
	b.eq	LBB0_10
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x22, x21
Lloh79:
	adrp	x8, _DRM_COLOR_YCBCR_BT601@GOTPAGE
Lloh80:
	ldr	x8, [x8, _DRM_COLOR_YCBCR_BT601@GOTPAGEOFF]
Lloh81:
	ldr	w26, [x8]
Lloh82:
	adrp	x23, _DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPAGE
Lloh83:
	ldr	x23, [x23, _DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPAGEOFF]
	ldr	w25, [x23]
	mov	x0, x26
	bl	_BIT
	mov	x21, x0
Lloh84:
	adrp	x8, _DRM_COLOR_YCBCR_BT709@GOTPAGE
Lloh85:
	ldr	x8, [x8, _DRM_COLOR_YCBCR_BT709@GOTPAGEOFF]
Lloh86:
	ldr	w0, [x8]
	bl	_BIT
	orr	w21, w0, w21
Lloh87:
	adrp	x8, _DRM_COLOR_YCBCR_BT2020@GOTPAGE
Lloh88:
	ldr	x8, [x8, _DRM_COLOR_YCBCR_BT2020@GOTPAGEOFF]
Lloh89:
	ldr	w0, [x8]
	bl	_BIT
	orr	w21, w21, w0
	ldr	w0, [x23]
	bl	_BIT
	mov	x23, x0
Lloh90:
	adrp	x8, _DRM_COLOR_YCBCR_FULL_RANGE@GOTPAGE
Lloh91:
	ldr	x8, [x8, _DRM_COLOR_YCBCR_FULL_RANGE@GOTPAGEOFF]
Lloh92:
	ldr	w0, [x8]
	bl	_BIT
	orr	w2, w0, w23
	mov	x0, x28
	mov	x1, x21
	mov	x3, x26
	mov	x4, x25
	bl	_drm_plane_create_color_properties
	cbz	w0, LBB0_8
; %bb.22:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh93:
	adrp	x0, l_.str@PAGE
Lloh94:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x27
	bl	_DRM_WARN
	b	LBB0_9
LBB0_23:
Lloh95:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh96:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh97:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_30
LBB0_24:
	mov	x0, x20
	bl	_kfree
	mov	w25, #0
	b	LBB0_31
LBB0_25:
	mov	w9, #0
Lloh98:
	adrp	x10, _AFBC_SPLIT@GOTPAGE
Lloh99:
	ldr	x10, [x10, _AFBC_SPLIT@GOTPAGEOFF]
Lloh100:
	ldr	w10, [x10]
	add	x11, x11, #4
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	w12, [x11], #4
	cmp	w12, w8
	b.eq	LBB0_4
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	tst	w10, w12
	b.ne	LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	str	w12, [x22, w9, sxtw #2]
	add	w9, w9, #1
	b	LBB0_26
LBB0_29:
	mov	x25, x0
LBB0_30:
	mov	x0, x20
	bl	_kfree
LBB0_31:
	ldur	x8, [x29, #-88]
Lloh101:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh102:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh103:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.32:
	mov	x0, x25
	sub	sp, x29, #80
	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_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_ROTATE_0,8,3          ; @DRM_MODE_ROTATE_0
	.comm	_DRM_MODE_ROTATE_90,8,3         ; @DRM_MODE_ROTATE_90
	.comm	_DRM_MODE_ROTATE_180,8,3        ; @DRM_MODE_ROTATE_180
	.comm	_DRM_MODE_ROTATE_270,8,3        ; @DRM_MODE_ROTATE_270
	.comm	_DRM_MODE_REFLECT_X,8,3         ; @DRM_MODE_REFLECT_X
	.comm	_DRM_MODE_REFLECT_Y,8,3         ; @DRM_MODE_REFLECT_Y
	.comm	_DRM_MODE_BLEND_PIXEL_NONE,4,2  ; @DRM_MODE_BLEND_PIXEL_NONE
	.comm	_DRM_MODE_BLEND_PREMULTI,4,2    ; @DRM_MODE_BLEND_PREMULTI
	.comm	_DRM_MODE_BLEND_COVERAGE,4,2    ; @DRM_MODE_BLEND_COVERAGE
	.comm	_MODIFIERS_COUNT_MAX,4,2        ; @MODIFIERS_COUNT_MAX
	.comm	_malidp_format_modifiers,8,3    ; @malidp_format_modifiers
	.comm	_MALIDP_DEVICE_AFBC_SUPPORT_SPLIT,4,2 ; @MALIDP_DEVICE_AFBC_SUPPORT_SPLIT
	.comm	_DRM_FORMAT_MOD_INVALID,4,2     ; @DRM_FORMAT_MOD_INVALID
	.comm	_AFBC_SPLIT,4,2                 ; @AFBC_SPLIT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRM_PLANE_TYPE_PRIMARY,4,2     ; @DRM_PLANE_TYPE_PRIMARY
	.comm	_DRM_PLANE_TYPE_OVERLAY,4,2     ; @DRM_PLANE_TYPE_OVERLAY
	.comm	_malidp_de_plane_funcs,4,2      ; @malidp_de_plane_funcs
	.comm	_DE_SMART,4,2                   ; @DE_SMART
	.comm	_malidp_de_plane_helper_funcs,4,2 ; @malidp_de_plane_helper_funcs
	.comm	_MALIDP_ALPHA_LUT,4,2           ; @MALIDP_ALPHA_LUT
	.comm	_MALIDP_LAYER_COMPOSE,8,3       ; @MALIDP_LAYER_COMPOSE
	.comm	_DE_VIDEO1,4,2                  ; @DE_VIDEO1
	.comm	_DE_VIDEO2,4,2                  ; @DE_VIDEO2
	.comm	_DRM_COLOR_YCBCR_BT601,4,2      ; @DRM_COLOR_YCBCR_BT601
	.comm	_DRM_COLOR_YCBCR_LIMITED_RANGE,4,2 ; @DRM_COLOR_YCBCR_LIMITED_RANGE
	.comm	_DRM_COLOR_YCBCR_BT709,4,2      ; @DRM_COLOR_YCBCR_BT709
	.comm	_DRM_COLOR_YCBCR_BT2020,4,2     ; @DRM_COLOR_YCBCR_BT2020
	.comm	_DRM_COLOR_YCBCR_FULL_RANGE,4,2 ; @DRM_COLOR_YCBCR_FULL_RANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create video layer %d color properties\n"

.subsections_via_symbols
