	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_plane_validate_multirect_v2 ## -- Begin function dpu_plane_validate_multirect_v2
	.p2align	4, 0x90
_dpu_plane_validate_multirect_v2:       ## @dpu_plane_validate_multirect_v2
	.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	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_R_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	(,%r12,8), %r14
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	shlq	$4, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -112(%rbp)                ## 8-byte Spill
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -128(%rbp)                ## 8-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_23
## %bb.1:
	xorl	%ebx, %ebx
	movl	$1, %r14d
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	_R_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	testq	%rbx, %rbx
	setne	%al
	movq	(%r15,%rax,8), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rbx,8)
	movl	24(%rax), %edi
	callq	_msm_framebuffer_format
	movq	%rax, %rdi
	callq	_to_dpu_format
	movq	%rax, %r12
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	%r12, (%rax,%rbx,8)
	movq	%r12, %rdi
	callq	_DPU_FORMAT_IS_UBWC
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %eax
	cmpl	%r14d, %eax
	cmoval	%eax, %r14d
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
LBB0_5:
	testl	%eax, %eax
	jle	LBB0_23
## %bb.6:
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movl	$1, %edx
	xorl	%r15d, %r15d
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	xorl	%ecx, %ecx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edx, %edx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	movq	_R_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$8, %r15
	addq	$16, %r13
	addq	$16, %rbx
	cmpq	%rax, %rcx
	jge	LBB0_22
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%r13, %r14
	movq	%rbx, %r12
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15), %rbx
	movq	%rbx, %rdi
	callq	_to_dpu_plane_state
	movq	%rax, %r13
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax,%r15)
	movq	16(%rbx), %rdi
	callq	_to_dpu_plane
	movq	%rax, %rcx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rcx, (%rax,%r15)
	testq	%r13, %r13
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movswl	2(%rbx), %eax
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	%eax, (%rsi,%r15,2)
	movswl	6(%rbx), %ecx
	movl	%ecx, 4(%rsi,%r15,2)
	movswl	10(%rbx), %edx
	addl	%eax, %edx
	movl	%edx, 8(%rsi,%r15,2)
	movswl	14(%rbx), %eax
	addl	%ecx, %eax
	movl	%eax, 12(%rsi,%r15,2)
	movq	%rbx, %rdi
	callq	_drm_plane_state_dest
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r15,2)
	movq	%rdx, 8(%rcx,%r15,2)
	movq	%r12, %rbx
	movq	%r12, %rdi
	movq	%r14, %r13
	movq	%r14, %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_drm_rect_calc_hscale
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_drm_rect_calc_vscale
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%r15), %rdi
	callq	_DPU_FORMAT_IS_YUV
	testq	%rax, %rax
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %r12d
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%r12d, %eax
	shrl	$31, %eax
	addl	%r12d, %eax
	sarl	%eax
	movl	%eax, %r12d
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_drm_rect_width
	xorl	%edx, %edx
	cmpl	%r12d, %eax
	setle	%dl
	jmp	LBB0_21
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
LBB0_8:
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DPU_ERROR
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_15:
	leaq	L_.str.2(%rip), %rsi
LBB0_13:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_DPU_ERROR_PLANE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_22:
	testl	%edx, %edx
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_24
LBB0_23:
	movq	_DPU_SSPP_MULTIRECT_PARALLEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_R0@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%r13,%rcx,8), %rdx
	movq	%rsi, 8(%rdx)
	movq	_R1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_27:
	movq	(%r13,%rax,8), %rax
	movq	%rsi, 8(%rax)
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx,%rcx,8), %rdi
	cmpq	$0, (%rdi)
	movq	_DPU_SSPP_RECT_0@GOTPCREL(%rip), %rcx
	movq	_DPU_SSPP_RECT_1@GOTPCREL(%rip), %r8
	movq	%r8, %rsi
	cmoveq	%rcx, %rsi
	movq	(%rsi), %rsi
	movq	%rsi, (%rdx)
	cmoveq	%r8, %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	(%rdx), %rcx
	movq	8(%rdx), %rdx
	leaq	L_.str.4(%rip), %rsi
	callq	_DPU_DEBUG_PLANE
	movq	_R1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	movq	(%r13,%rax,8), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
	leaq	L_.str.5(%rip), %rsi
	callq	_DPU_DEBUG_PLANE
	xorl	%ebx, %ebx
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.29:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	addl	%r14d, %r14d
	movq	_R1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rdx
	shlq	$4, %rdx
	movq	_R0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, %rsi
	shlq	$4, %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	12(%rbx,%rsi), %edi
	addl	%r14d, %edi
	cmpl	%edi, 4(%rbx,%rdx)
	jge	LBB0_26
## %bb.25:
	addl	12(%rbx,%rdx), %r14d
	cmpl	%r14d, 4(%rbx,%rsi)
	jge	LBB0_26
## %bb.30:
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rcx,8), %rcx
	movq	16(%rcx), %rcx
	movl	(%rcx), %esi
	movq	(%rdx,%rax,8), %rax
	movq	16(%rax), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DPU_ERROR
	jmp	LBB0_9
LBB0_26:
	movq	_DPU_SSPP_MULTIRECT_TIME_MX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	(%r13,%rcx,8), %rdx
	movq	%rsi, 8(%rdx)
	jmp	LBB0_27
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_R_MAX,4,2                      ## @R_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPU plane state of plane id %d is NULL\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"scaling is not supported in multirect mode\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unsupported format for multirect mode\n"

	.comm	_DPU_SSPP_MULTIRECT_PARALLEL,8,3 ## @DPU_SSPP_MULTIRECT_PARALLEL
	.comm	_R0,8,3                         ## @R0
	.comm	_R1,8,3                         ## @R1
	.comm	_DPU_SSPP_MULTIRECT_TIME_MX,8,3 ## @DPU_SSPP_MULTIRECT_TIME_MX
L_.str.3:                               ## @.str.3
	.asciz	"No multirect mode possible for the planes (%d - %d)\n"

	.comm	_DPU_SSPP_RECT_1,8,3            ## @DPU_SSPP_RECT_1
	.comm	_DPU_SSPP_RECT_0,8,3            ## @DPU_SSPP_RECT_0
L_.str.4:                               ## @.str.4
	.asciz	"R0: %d - %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"R1: %d - %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_plane_validate_multirect_v2 ; -- Begin function dpu_plane_validate_multirect_v2
	.p2align	2
_dpu_plane_validate_multirect_v2:       ; @dpu_plane_validate_multirect_v2
	.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, #48
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _R_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w13, [x8]
	lsl	x8, x13, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x14, x10, #0xffffffff0
	sub	x24, x9, x14
	mov	sp, x24
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x14
	stur	x9, [x29, #-112]                ; 8-byte Folded Spill
	mov	sp, x9
	lsl	x12, x13, #4
	mov	x9, x12
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x19, x9, x12
	mov	sp, x19
	mov	x9, x12
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x12
	stur	x9, [x29, #-128]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x9, x9, x14
	stur	x9, [x29, #-104]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x26, x8, x14
	mov	sp, x26
Lloh18:
	adrp	x28, _R1@GOTPAGE
Lloh19:
	ldr	x28, [x28, _R1@GOTPAGEOFF]
	cmp	w13, #1
	b.lt	LBB0_20
; %bb.1:
	mov	x22, #0
	stur	wzr, [x29, #-92]                ; 4-byte Folded Spill
	mov	w25, #1
	ldur	x27, [x29, #-112]               ; 8-byte Folded Reload
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
Lloh20:
	adrp	x8, _R_MAX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R_MAX@GOTPAGEOFF]
Lloh22:
	ldrsw	x8, [x8]
	cmp	x22, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x22, #0
	cset	w8, ne
	ldr	x8, [x20, w8, uxtw #3]
	lsl	x23, x22, #3
	str	x8, [x27, x23]
	ldr	w0, [x8, #24]
	bl	_msm_framebuffer_format
	bl	_to_dpu_format
	mov	x21, x0
	str	x0, [x26, x23]
	bl	_DPU_FORMAT_IS_UBWC
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21]
	cmp	w8, w25
	csel	w25, w8, w25, hi
	mov	w8, #1
	stur	w8, [x29, #-92]                 ; 4-byte Folded Spill
	b	LBB0_2
LBB0_5:
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.6:
	stur	x24, [x29, #-120]               ; 8-byte Folded Spill
	mov	x28, #0
	mov	w27, #1
	ldur	x20, [x29, #-128]               ; 8-byte Folded Reload
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x28, x28, #1
Lloh23:
	adrp	x8, _R_MAX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _R_MAX@GOTPAGEOFF]
Lloh25:
	ldrsw	x8, [x8]
	add	x20, x20, #16
	add	x19, x19, #16
	cmp	x28, x8
	b.ge	LBB0_19
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x24, x28, #3
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	ldr	x22, [x8, x24]
	mov	x0, x22
	bl	_to_dpu_plane_state
	mov	x23, x0
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	str	x0, [x8, x24]
	ldr	x0, [x22, #16]
	bl	_to_dpu_plane
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	str	x0, [x8, x24]
	cbz	x23, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, x0
	ldr	d0, [x22]
	sshr.2s	v1, v0, #16
	str	d1, [x19]
	ldr	d1, [x22, #8]
	sshr.2s	v1, v1, #16
	ssra.2s	v1, v0, #16
	str	d1, [x19, #8]
	mov	x0, x22
	bl	_drm_plane_state_dest
	stp	x0, x1, [x20]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	w3, #1
	bl	_drm_rect_calc_hscale
	cmp	w0, #1
	b.ne	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	w3, #1
	bl	_drm_rect_calc_vscale
	cmp	w0, #1
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x26, x28, lsl #3]
	bl	_DPU_FORMAT_IS_YUV
	cbnz	x0, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	cbz	w27, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	ldur	w10, [x29, #-92]                ; 4-byte Folded Reload
	cmp	w10, #0
	csel	w21, w8, w9, eq
	mov	x0, x19
	bl	_drm_rect_width
	cmp	w0, w21
	cset	w27, le
	b	LBB0_7
LBB0_14:
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_15:
	ldr	x8, [x22, #16]
	ldr	w1, [x8]
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPU_ERROR
	b	LBB0_18
LBB0_16:
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_17:
	mov	x0, x21
	bl	_DPU_ERROR_PLANE
LBB0_18:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_19:
	ldur	x24, [x29, #-120]               ; 8-byte Folded Reload
Lloh35:
	adrp	x28, _R1@GOTPAGE
Lloh36:
	ldr	x28, [x28, _R1@GOTPAGEOFF]
	cbz	w27, LBB0_24
LBB0_20:
Lloh37:
	adrp	x8, _DPU_SSPP_MULTIRECT_PARALLEL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _DPU_SSPP_MULTIRECT_PARALLEL@GOTPAGEOFF]
Lloh39:
	adrp	x9, _R0@GOTPAGE
Lloh40:
	ldr	x9, [x9, _R0@GOTPAGEOFF]
Lloh41:
	ldr	x11, [x8]
Lloh42:
	ldr	x9, [x9]
	ldr	x10, [x24, x9, lsl #3]
	str	x11, [x10, #8]
	ldr	x8, [x28]
LBB0_21:
	ldr	x8, [x24, x8, lsl #3]
	str	x11, [x8, #8]
	ldur	x19, [x29, #-104]               ; 8-byte Folded Reload
	ldr	x0, [x19, x9, lsl #3]
Lloh43:
	adrp	x9, _DPU_SSPP_RECT_0@GOTPAGE
Lloh44:
	ldr	x9, [x9, _DPU_SSPP_RECT_0@GOTPAGEOFF]
	ldr	x11, [x0]
Lloh45:
	adrp	x12, _DPU_SSPP_RECT_1@GOTPAGE
Lloh46:
	ldr	x12, [x12, _DPU_SSPP_RECT_1@GOTPAGEOFF]
	cmp	x11, #0
	csel	x11, x9, x12, eq
	ldr	x11, [x11]
	str	x11, [x10]
	csel	x9, x12, x9, eq
	ldr	x9, [x9]
	str	x9, [x8]
	ldp	x3, x2, [x10]
Lloh47:
	adrp	x1, l_.str.4@PAGE
Lloh48:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DPU_DEBUG_PLANE
	ldr	x8, [x28]
	lsl	x8, x8, #3
	ldr	x0, [x19, x8]
	ldr	x8, [x24, x8]
	ldp	x3, x2, [x8]
Lloh49:
	adrp	x1, l_.str.5@PAGE
Lloh50:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_DPU_DEBUG_PLANE
	mov	w0, #0
LBB0_22:
	ldur	x8, [x29, #-88]
Lloh51:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.23:
	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_24:
	lsl	w10, w25, #1
	ldr	x8, [x28]
	ldur	x12, [x29, #-128]               ; 8-byte Folded Reload
	add	x11, x12, x8, lsl #4
Lloh54:
	adrp	x9, _R0@GOTPAGE
Lloh55:
	ldr	x9, [x9, _R0@GOTPAGEOFF]
	ldr	w13, [x11, #4]
Lloh56:
	ldr	x9, [x9]
	add	x12, x12, x9, lsl #4
	ldr	w14, [x12, #12]
	add	w14, w14, w10
	cmp	w13, w14
	b.ge	LBB0_27
; %bb.25:
	ldr	w12, [x12, #4]
	ldr	w11, [x11, #12]
	add	w10, w11, w10
	cmp	w12, w10
	b.ge	LBB0_27
; %bb.26:
	ldur	x10, [x29, #-112]               ; 8-byte Folded Reload
	ldr	x9, [x10, x9, lsl #3]
	ldr	x9, [x9, #16]
	ldr	w1, [x9]
	ldr	x8, [x10, x8, lsl #3]
	ldr	x8, [x8, #16]
	ldr	w8, [x8]
	str	x8, [sp, #-16]!
Lloh57:
	adrp	x0, l_.str.3@PAGE
Lloh58:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DPU_ERROR
	add	sp, sp, #16
	b	LBB0_18
LBB0_27:
Lloh59:
	adrp	x10, _DPU_SSPP_MULTIRECT_TIME_MX@GOTPAGE
Lloh60:
	ldr	x10, [x10, _DPU_SSPP_MULTIRECT_TIME_MX@GOTPAGEOFF]
Lloh61:
	ldr	x11, [x10]
	ldr	x10, [x24, x9, lsl #3]
	str	x11, [x10, #8]
	b	LBB0_21
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh41
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_R_MAX,4,2                      ; @R_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPU plane state of plane id %d is NULL\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"scaling is not supported in multirect mode\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unsupported format for multirect mode\n"

	.comm	_DPU_SSPP_MULTIRECT_PARALLEL,8,3 ; @DPU_SSPP_MULTIRECT_PARALLEL
	.comm	_R0,8,3                         ; @R0
	.comm	_R1,8,3                         ; @R1
	.comm	_DPU_SSPP_MULTIRECT_TIME_MX,8,3 ; @DPU_SSPP_MULTIRECT_TIME_MX
l_.str.3:                               ; @.str.3
	.asciz	"No multirect mode possible for the planes (%d - %d)\n"

	.comm	_DPU_SSPP_RECT_1,8,3            ; @DPU_SSPP_RECT_1
	.comm	_DPU_SSPP_RECT_0,8,3            ; @DPU_SSPP_RECT_0
l_.str.4:                               ; @.str.4
	.asciz	"R0: %d - %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"R1: %d - %d\n"

.subsections_via_symbols
