	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vop_plane_atomic_update
_vop_plane_atomic_update:               ## @vop_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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	32(%rbx), %r13
	callq	_to_vop_win
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	32(%rbx), %rdi
	callq	_to_vop
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -168(%rbp)                ## 8-byte Spill
	movq	24(%rbx), %r14
	movq	%r12, %rdi
	callq	_VOP_WIN_TO_INDEX
	movl	%eax, %ebx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rax
	movl	(%rax), %r14d
	xorl	%edi, %edi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	xorl	%edi, %edi
	movq	-112(%rbp), %rax                ## 8-byte Reload
	cmpl	$0, 8(%rax)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
LBB0_14:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-168(%rbp), %r12                ## 8-byte Reload
	cmpl	$0, 4(%r12)
	je	LBB0_15
## %bb.3:
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	leaq	16(%r12), %r15
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	leaq	8(%r12), %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	(%rax), %rdi
	callq	_to_rockchip_obj
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_drm_rect_width
	movl	%eax, %ebx
	sarl	$16, %ebx
	movq	%r15, %rdi
	callq	_drm_rect_height
                                        ## kill: def $eax killed $eax def $rax
	sarl	$16, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leal	-1(%rax), %r13d
	movl	%r13d, %eax
	shll	$16, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	leal	-1(%rbx), %eax
	movzwl	%ax, %eax
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movq	%r14, %rbx
	movq	%r14, %rdi
	callq	_drm_rect_height
                                        ## kill: def $eax killed $eax def $rax
	shll	$16, %eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	%r14, -136(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_drm_rect_width
	decl	%eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %ecx
	movl	8(%r14), %edx
	addl	8(%r12), %ecx
	subl	4(%r14), %ecx
	addl	12(%r12), %edx
	subl	12(%r14), %edx
	movzwl	%ax, %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	shll	$16, %edx
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movzwl	%cx, %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movzwl	18(%r12), %eax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	16(%rdi), %rcx
	movq	8(%rcx), %rdx
	imull	(%rdx), %eax
	movzwl	22(%r12), %edx
	movq	(%rdi), %rsi
	movq	8(%rdi), %rdi
	movl	(%rsi), %esi
	imull	%esi, %edx
	addl	%eax, %edx
	movq	-144(%rbp), %rax                ## 8-byte Reload
	addl	(%rax), %edx
	addl	(%rdi), %edx
	movq	_DRM_MODE_REFLECT_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	imull	%esi, %r13d
	testl	%eax, %eax
	cmovel	%eax, %r13d
	addl	%edx, %r13d
	movl	32(%rcx), %edi
	callq	_vop_convert_format
	movl	%eax, %r15d
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%r15d, %ecx
	callq	_VOP_WIN_SET
	movq	_yrgb_vir@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_DIV_ROUND_UP
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_VOP_WIN_SET
	movq	_yrgb_mst@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r13d, %ecx
	movq	%rbx, %r13
	callq	_VOP_WIN_SET
	movq	_y2r_en@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_VOP_WIN_YUV2YUV_SET
	movq	_y_mir_en@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DRM_MODE_REFLECT_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%r12), %eax
	setne	%cl
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_VOP_WIN_SET
	movq	_x_mir_en@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DRM_MODE_REFLECT_X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%r12), %eax
	setne	%cl
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_VOP_WIN_SET
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.4:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	movl	16(%rax), %r15d
	movl	20(%rax), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rax), %rax
	movl	4(%rax), %ebx
	movq	8(%rcx), %rdi
	callq	_to_rockchip_obj
	movq	%rax, %rcx
	movzwl	18(%r12), %eax
	imull	%ebx, %eax
	xorl	%edx, %edx
	divl	%r15d
	movl	%eax, %ebx
	movzwl	22(%r12), %eax
	movq	(%r14), %rdx
	movq	8(%r14), %rsi
	movl	4(%rdx), %edi
	imull	%edi, %eax
	xorl	%edx, %edx
	divl	-44(%rbp)                       ## 4-byte Folded Reload
	addl	%eax, %ebx
	addl	(%rcx), %ebx
	addl	8(%rsi), %ebx
	movq	_uv_vir@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$4, %esi
	callq	_DIV_ROUND_UP
	movq	%r13, %rdi
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_VOP_WIN_SET
	movq	_uv_mst@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %ecx
	callq	_VOP_WIN_SET
	movq	_NUM_YUV2YUV_COEFFICIENTS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	movq	_y2r_coefficients@GOTPCREL(%rip), %r15
	movq	_bt601_yuv2rgb@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_VOP_WIN_YUV2YUV_COEFFICIENT_SET
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	addl	-104(%rbp), %ecx                ## 4-byte Folded Reload
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	leal	(%rax,%rdx), %r12d
	addl	$-65536, %r12d                  ## imm = 0xFFFF0000
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	addl	-100(%rbp), %ebx                ## 4-byte Folded Reload
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movq	%r15, %rbx
	movq	-136(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	callq	_drm_rect_width
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %r15
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	callq	_drm_rect_height
	movq	16(%r15), %rcx
	movq	%rcx, (%rsp)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-120(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	-88(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	callq	_scl_vop_cal_scl_fac
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
LBB0_9:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ecx, %edx
	callq	_VOP_WIN_SET
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movl	%r12d, %ecx
	callq	_VOP_WIN_SET
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	callq	_VOP_WIN_SET
	movq	16(%r15), %rax
	movl	32(%rax), %edi
	callq	_has_rb_swapped
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	movl	%eax, %ecx
	callq	_VOP_WIN_SET
	movq	16(%r15), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_12
## %bb.10:
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_12
## %bb.11:
	movq	_dst_alpha_ctl@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ALPHA_SRC_INVERSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DST_FACTOR_M0
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_VOP_WIN_SET
	movl	$1, %edi
	callq	_SRC_ALPHA_EN
	movl	%eax, %r15d
	movq	_ALPHA_SRC_PRE_MUL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SRC_COLOR_M0
	orl	%eax, %r15d
	movq	_ALPHA_STRAIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SRC_ALPHA_M0
	movl	%eax, %r12d
	movq	_ALPHA_PER_PIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SRC_BLEND_M0
	orl	%eax, %r12d
	orl	%r15d, %r12d
	movq	_ALPHA_NO_SATURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SRC_ALPHA_CAL_M0
	movl	%eax, %ebx
	movq	_ALPHA_ONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SRC_FACTOR_M0
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_src_alpha_ctl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %ecx
	jmp	LBB0_13
LBB0_15:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vop_plane_atomic_disable       ## TAILCALL
LBB0_12:
	movq	_src_alpha_ctl@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_SRC_ALPHA_EN
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
LBB0_13:
	callq	_VOP_WIN_SET
	movq	_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_VOP_WIN_SET
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	callq	_BIT
	orl	%eax, 4(%r13)
	movq	%r13, %rdi
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_REFLECT_Y,4,2         ## @DRM_MODE_REFLECT_Y
	.comm	_yrgb_vir,4,2                   ## @yrgb_vir
	.comm	_yrgb_mst,4,2                   ## @yrgb_mst
	.comm	_y2r_en,4,2                     ## @y2r_en
	.comm	_y_mir_en,4,2                   ## @y_mir_en
	.comm	_x_mir_en,4,2                   ## @x_mir_en
	.comm	_DRM_MODE_REFLECT_X,4,2         ## @DRM_MODE_REFLECT_X
	.comm	_uv_vir,4,2                     ## @uv_vir
	.comm	_uv_mst,4,2                     ## @uv_mst
	.comm	_NUM_YUV2YUV_COEFFICIENTS,4,2   ## @NUM_YUV2YUV_COEFFICIENTS
	.comm	_y2r_coefficients,8,3           ## @y2r_coefficients
	.comm	_bt601_yuv2rgb,8,3              ## @bt601_yuv2rgb
	.comm	_dst_alpha_ctl,4,2              ## @dst_alpha_ctl
	.comm	_ALPHA_SRC_INVERSE,4,2          ## @ALPHA_SRC_INVERSE
	.comm	_ALPHA_SRC_PRE_MUL,4,2          ## @ALPHA_SRC_PRE_MUL
	.comm	_ALPHA_STRAIGHT,4,2             ## @ALPHA_STRAIGHT
	.comm	_ALPHA_PER_PIX,4,2              ## @ALPHA_PER_PIX
	.comm	_ALPHA_NO_SATURATION,4,2        ## @ALPHA_NO_SATURATION
	.comm	_ALPHA_ONE,4,2                  ## @ALPHA_ONE
	.comm	_src_alpha_ctl,4,2              ## @src_alpha_ctl
	.comm	_enable,4,2                     ## @enable
	.no_dead_strip	_vop_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 vop_plane_atomic_update
_vop_plane_atomic_update:               ; @vop_plane_atomic_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x23, x1
	mov	x24, x0
	ldr	x20, [x0]
	ldr	x27, [x20, #32]
	bl	_to_vop_win
	mov	x21, x0
	ldp	x22, x26, [x0]
	ldr	x0, [x20, #32]
	bl	_to_vop
	mov	x19, x0
	ldr	x28, [x20, #24]
	mov	x0, x21
	bl	_VOP_WIN_TO_INDEX
	mov	x21, x0
	ldr	x8, [x28, #16]
	ldr	w25, [x8]
	cmp	x27, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_12
; %bb.4:
	str	w21, [sp, #44]                  ; 4-byte Folded Spill
	add	x24, x20, #16
	add	x23, x20, #8
	ldr	x8, [x28, #24]
	ldr	x0, [x8]
	bl	_to_rockchip_obj
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	x0, x24
	bl	_drm_rect_width
	asr	w21, w0, #16
	mov	x0, x24
	bl	_drm_rect_height
	asr	w8, w0, #16
	stp	w8, w21, [sp, #8]               ; 8-byte Folded Spill
	sub	w24, w8, #1
	sub	w8, w21, #1
	bfi	w8, w24, #16, #16
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
	mov	x0, x23
	bl	_drm_rect_height
	mov	x21, x26
	mov	x26, x0
	str	x23, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x23
	bl	_drm_rect_width
	sub	w8, w0, #1
	bfi	w8, w26, #16, #16
	sub	w8, w8, #16, lsl #12            ; =65536
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
	ldp	w8, w9, [x27]
	ldp	w10, w11, [x20, #8]
	add	w8, w8, w10
	sub	w10, w8, w9
	ldp	w8, w9, [x27, #8]
	add	w8, w8, w11
	sub	w8, w8, w9
	bfi	w10, w8, #16, #16
	str	w10, [sp, #36]                  ; 4-byte Folded Spill
	ldrh	w8, [x20, #18]
	ldp	x12, x9, [x28, #8]
	ldr	x10, [x9, #8]
	ldr	w10, [x10]
	mul	w8, w10, w8
	ldrh	w10, [x20, #22]
	ldr	x11, [x28]
	ldr	w11, [x11]
	madd	w8, w11, w10, w8
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w10, [x10]
	ldr	w12, [x12]
	add	w8, w8, w10
	add	w8, w8, w12
	ldr	w10, [x20]
Lloh0:
	adrp	x26, _DRM_MODE_REFLECT_Y@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DRM_MODE_REFLECT_Y@GOTPAGEOFF]
	ldr	w12, [x26]
	mul	w11, w11, w24
	tst	w12, w10
	csel	w10, wzr, w11, eq
	add	w23, w10, w8
	ldr	w0, [x9, #32]
	bl	_vop_convert_format
	mov	x27, x0
	mov	x0, x19
	bl	_spin_lock
	mov	x0, x19
	mov	x1, x21
	mov	x2, x27
	mov	x3, x27
	bl	_VOP_WIN_SET
Lloh2:
	adrp	x8, _yrgb_vir@GOTPAGE
Lloh3:
	ldr	x8, [x8, _yrgb_vir@GOTPAGEOFF]
Lloh4:
	ldr	w27, [x8]
	ldr	x8, [x28]
	ldr	w0, [x8]
	mov	w1, #4
	bl	_DIV_ROUND_UP
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x27
	bl	_VOP_WIN_SET
Lloh5:
	adrp	x8, _yrgb_mst@GOTPAGE
Lloh6:
	ldr	x8, [x8, _yrgb_mst@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x3, x23
	bl	_VOP_WIN_SET
Lloh8:
	adrp	x8, _y2r_en@GOTPAGE
Lloh9:
	ldr	x8, [x8, _y2r_en@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x25
	bl	_VOP_WIN_YUV2YUV_SET
Lloh11:
	adrp	x8, _y_mir_en@GOTPAGE
Lloh12:
	ldr	x8, [x8, _y_mir_en@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	w8, [x20]
	ldr	w9, [x26]
	tst	w9, w8
	cset	w3, ne
	mov	x0, x19
	mov	x1, x21
	bl	_VOP_WIN_SET
Lloh14:
	adrp	x8, _x_mir_en@GOTPAGE
Lloh15:
	ldr	x8, [x8, _x_mir_en@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	w8, [x20]
Lloh17:
	adrp	x9, _DRM_MODE_REFLECT_X@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DRM_MODE_REFLECT_X@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w3, ne
	mov	x0, x19
	mov	x26, x21
	mov	x1, x21
	bl	_VOP_WIN_SET
	cbz	w25, LBB0_8
; %bb.5:
	ldp	x8, x9, [x28, #16]
	ldp	w23, w24, [x8, #16]
	ldr	x8, [x8, #8]
	ldr	w25, [x8, #4]
	ldr	x0, [x9, #8]
	bl	_to_rockchip_obj
	ldrh	w8, [x20, #18]
	mul	w8, w8, w25
	udiv	w9, w8, w23
	ldrh	w10, [x20, #22]
	ldp	x8, x11, [x28]
	ldr	w8, [x8, #4]
	mul	w10, w8, w10
	udiv	w10, w10, w24
	ldr	w12, [x0]
	add	w9, w10, w9
	add	w9, w9, w12
	ldr	w10, [x11, #8]
	add	w25, w9, w10
Lloh20:
	adrp	x9, _uv_vir@GOTPAGE
Lloh21:
	ldr	x9, [x9, _uv_vir@GOTPAGEOFF]
Lloh22:
	ldr	w27, [x9]
	mov	x0, x8
	mov	w1, #4
	bl	_DIV_ROUND_UP
	mov	x3, x0
	mov	x0, x19
	mov	x20, x26
	mov	x1, x26
	mov	x2, x27
	bl	_VOP_WIN_SET
Lloh23:
	adrp	x8, _uv_mst@GOTPAGE
Lloh24:
	ldr	x8, [x8, _uv_mst@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x26
	mov	x3, x25
	bl	_VOP_WIN_SET
Lloh26:
	adrp	x20, _NUM_YUV2YUV_COEFFICIENTS@GOTPAGE
Lloh27:
	ldr	x20, [x20, _NUM_YUV2YUV_COEFFICIENTS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x23, #0
Lloh28:
	adrp	x25, _y2r_coefficients@GOTPAGE
Lloh29:
	ldr	x25, [x25, _y2r_coefficients@GOTPAGEOFF]
Lloh30:
	adrp	x27, _bt601_yuv2rgb@GOTPAGE
Lloh31:
	ldr	x27, [x27, _bt601_yuv2rgb@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	lsl	x9, x23, #2
	ldr	w2, [x8, x9]
	ldr	x8, [x27]
	ldr	w3, [x8, x9]
	mov	x0, x19
	mov	x1, x22
	bl	_VOP_WIN_YUV2YUV_COEFFICIENT_SET
	add	x23, x23, #1
	ldrsw	x8, [x20]
	cmp	x23, x8
	b.lt	LBB0_7
LBB0_8:
	ldr	x8, [x26]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x20
	bl	_drm_rect_width
	mov	x22, x0
	mov	x0, x20
	bl	_drm_rect_height
	mov	x5, x0
	ldr	x6, [x28, #16]
	mov	x0, x19
	mov	x1, x26
	ldp	w3, w2, [sp, #8]                ; 8-byte Folded Reload
	mov	x4, x22
	bl	_scl_vop_cal_scl_fac
LBB0_10:
	mov	x0, x19
	mov	x1, x26
	ldr	w2, [sp, #40]                   ; 4-byte Folded Reload
	mov	x3, x2
	bl	_VOP_WIN_SET
	mov	x0, x19
	mov	x1, x26
	ldr	w2, [sp, #32]                   ; 4-byte Folded Reload
	mov	x3, x2
	bl	_VOP_WIN_SET
	mov	x0, x19
	mov	x1, x26
	ldr	w2, [sp, #36]                   ; 4-byte Folded Reload
	mov	x3, x2
	bl	_VOP_WIN_SET
	ldr	x8, [x28, #16]
	ldr	w0, [x8, #32]
	bl	_has_rb_swapped
	mov	x2, x0
	mov	x0, x19
	mov	x1, x26
	mov	x3, x2
	bl	_VOP_WIN_SET
	ldr	x8, [x28, #16]
	ldr	x8, [x8, #24]
	cmp	x8, #0
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_13
; %bb.11:
Lloh32:
	adrp	x8, _src_alpha_ctl@GOTPAGE
Lloh33:
	ldr	x8, [x8, _src_alpha_ctl@GOTPAGEOFF]
Lloh34:
	ldr	w22, [x8]
	mov	w0, #0
	bl	_SRC_ALPHA_EN
	mov	x3, x0
	mov	x0, x19
	mov	x1, x26
	mov	x2, x22
	b	LBB0_14
LBB0_12:
	mov	x0, x24
	mov	x1, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_vop_plane_atomic_disable
LBB0_13:
Lloh35:
	adrp	x8, _dst_alpha_ctl@GOTPAGE
Lloh36:
	ldr	x8, [x8, _dst_alpha_ctl@GOTPAGEOFF]
Lloh37:
	ldr	w22, [x8]
Lloh38:
	adrp	x8, _ALPHA_SRC_INVERSE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ALPHA_SRC_INVERSE@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_DST_FACTOR_M0
	mov	x3, x0
	mov	x0, x19
	mov	x1, x26
	mov	x2, x22
	bl	_VOP_WIN_SET
	mov	w0, #1
	bl	_SRC_ALPHA_EN
	mov	x22, x0
Lloh41:
	adrp	x8, _ALPHA_SRC_PRE_MUL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ALPHA_SRC_PRE_MUL@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_SRC_COLOR_M0
	orr	w20, w0, w22
Lloh44:
	adrp	x8, _ALPHA_STRAIGHT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ALPHA_STRAIGHT@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	bl	_SRC_ALPHA_M0
	orr	w20, w20, w0
Lloh47:
	adrp	x8, _ALPHA_PER_PIX@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ALPHA_PER_PIX@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_SRC_BLEND_M0
	orr	w20, w20, w0
Lloh50:
	adrp	x8, _ALPHA_NO_SATURATION@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ALPHA_NO_SATURATION@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_SRC_ALPHA_CAL_M0
	orr	w20, w20, w0
Lloh53:
	adrp	x8, _ALPHA_ONE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ALPHA_ONE@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	bl	_SRC_FACTOR_M0
	orr	w3, w20, w0
Lloh56:
	adrp	x8, _src_alpha_ctl@GOTPAGE
Lloh57:
	ldr	x8, [x8, _src_alpha_ctl@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x26
LBB0_14:
	bl	_VOP_WIN_SET
Lloh59:
	adrp	x8, _enable@GOTPAGE
Lloh60:
	ldr	x8, [x8, _enable@GOTPAGEOFF]
Lloh61:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x26
	mov	w3, #1
	bl	_VOP_WIN_SET
	ldr	w0, [sp, #44]                   ; 4-byte Folded Reload
	bl	_BIT
	ldr	w8, [x19, #4]
	orr	w8, w8, w0
	str	w8, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_REFLECT_Y,4,2         ; @DRM_MODE_REFLECT_Y
	.comm	_yrgb_vir,4,2                   ; @yrgb_vir
	.comm	_yrgb_mst,4,2                   ; @yrgb_mst
	.comm	_y2r_en,4,2                     ; @y2r_en
	.comm	_y_mir_en,4,2                   ; @y_mir_en
	.comm	_x_mir_en,4,2                   ; @x_mir_en
	.comm	_DRM_MODE_REFLECT_X,4,2         ; @DRM_MODE_REFLECT_X
	.comm	_uv_vir,4,2                     ; @uv_vir
	.comm	_uv_mst,4,2                     ; @uv_mst
	.comm	_NUM_YUV2YUV_COEFFICIENTS,4,2   ; @NUM_YUV2YUV_COEFFICIENTS
	.comm	_y2r_coefficients,8,3           ; @y2r_coefficients
	.comm	_bt601_yuv2rgb,8,3              ; @bt601_yuv2rgb
	.comm	_dst_alpha_ctl,4,2              ; @dst_alpha_ctl
	.comm	_ALPHA_SRC_INVERSE,4,2          ; @ALPHA_SRC_INVERSE
	.comm	_ALPHA_SRC_PRE_MUL,4,2          ; @ALPHA_SRC_PRE_MUL
	.comm	_ALPHA_STRAIGHT,4,2             ; @ALPHA_STRAIGHT
	.comm	_ALPHA_PER_PIX,4,2              ; @ALPHA_PER_PIX
	.comm	_ALPHA_NO_SATURATION,4,2        ; @ALPHA_NO_SATURATION
	.comm	_ALPHA_ONE,4,2                  ; @ALPHA_ONE
	.comm	_src_alpha_ctl,4,2              ; @src_alpha_ctl
	.comm	_enable,4,2                     ; @enable
	.no_dead_strip	_vop_plane_atomic_update
.subsections_via_symbols
