	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scl_vop_cal_scl_fac
_scl_vop_cal_scl_fac:                   ## @scl_vop_cal_scl_fac
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rdi, %r14
	movq	16(%rbp), %rcx
	movl	%edx, %eax
	cltd
	idivl	(%rcx)
	movl	%eax, %edi
	movl	%r13d, %eax
	cltd
	idivl	4(%rcx)
	cmpl	$3841, %r8d                     ## imm = 0xF01
	jl	LBB0_3
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEV_ERROR                  ## TAILCALL
LBB0_3:
	movl	%r9d, %r12d
	movslq	%edi, %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	cltq
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	8(%rcx), %rcx
	movq	(%rsi), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.6:
	movl	%edi, -124(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	_SCALE_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movl	%r8d, %esi
	callq	_scl_get_scl_mode
	movq	%rax, %r14
	movslq	%r13d, %rbx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_scl_get_scl_mode
	cmpq	$0, -120(%rbp)                  ## 8-byte Folded Reload
	movl	%r12d, -76(%rbp)                ## 4-byte Spill
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	je	LBB0_11
## %bb.7:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_scl_get_scl_mode
	movq	%rax, %r13
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	%r12d, %esi
	callq	_scl_get_scl_mode
	movq	%rax, %r15
	movq	_SCALE_DOWN@GOTPCREL(%rip), %rax
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	cmpq	(%rax), %r13
	jne	LBB0_10
## %bb.8:
	movl	%ebx, %r13d
	movl	%ebx, %edi
	jmp	LBB0_9
LBB0_4:
	movq	_scale_yrgb_x@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movslq	%r15d, %rdi
	movq	%rsi, %r15
	movl	%r8d, %esi
	callq	_scl_cal_scale2
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_VOP_SCL_SET
	movq	_scale_yrgb_y@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movslq	%r13d, %rdi
	movl	%r12d, %esi
	callq	_scl_cal_scale2
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_VOP_SCL_SET
	cmpq	$0, -120(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_27
## %bb.5:
	movq	_scale_cbcr_x@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_scl_cal_scale2
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_VOP_SCL_SET
	movq	_scale_cbcr_y@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	%r12d, %esi
	callq	_scl_cal_scale2
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VOP_SCL_SET                    ## TAILCALL
LBB0_11:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movq	_SCALE_DOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r14
	jne	LBB0_13
## %bb.12:
	movl	%r13d, %edi
	jmp	LBB0_14
LBB0_10:
	movl	%ebx, %r13d
	movl	-124(%rbp), %edi                ## 4-byte Reload
LBB0_9:
	movl	$1, %esi
	callq	_scl_vop_cal_lb_mode
	movq	%rax, %rbx
	jmp	LBB0_15
LBB0_13:
	movl	%r15d, %edi
LBB0_14:
	xorl	%esi, %esi
	callq	_scl_vop_cal_lb_mode
	movq	%rax, %rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
LBB0_15:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	callq	_VOP_SCL_SET_EXT
	movq	_LB_RGB_3840X2@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_21
## %bb.16:
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	_SCALE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.18:
	cmpq	%rax, %r15
	jne	LBB0_20
## %bb.19:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_SCALE_UP_BIL@GOTPCREL(%rip), %rax
	movl	%r13d, %edx
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_21:
	movq	_LB_RGB_2560X4@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_22
## %bb.23:
	movq	_SCALE_UP_BIL@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_17:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_22:
	movq	_SCALE_UP_BIC@GOTPCREL(%rip), %rax
LBB0_24:
	movl	%r13d, %edx
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
LBB0_25:
	movq	(%rax), %r15
	movq	-152(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_scl_vop_cal_scale
	movq	_scale_yrgb_x@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %ecx
	callq	_VOP_SCL_SET
	leaq	-44(%rbp), %r9
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_scl_vop_cal_scale
	movq	_scale_yrgb_y@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %ecx
	callq	_VOP_SCL_SET
	movq	_vsd_yrgb_gt4@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%ecx, %ecx
	cmpl	$4, -44(%rbp)
	sete	%cl
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_VOP_SCL_SET_EXT
	movq	_vsd_yrgb_gt2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%ecx, %ecx
	cmpl	$2, -44(%rbp)
	sete	%cl
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_VOP_SCL_SET_EXT
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r13, %rcx
	callq	_VOP_SCL_SET_EXT
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r12, %rcx
	callq	_VOP_SCL_SET_EXT
	movq	_yrgb_hsd_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_SCALE_DOWN_BIL@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_VOP_SCL_SET_EXT
	movq	_yrgb_vsd_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	(%r12), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_VOP_SCL_SET_EXT
	movq	_yrgb_vsu_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rcx
	callq	_VOP_SCL_SET_EXT
	cmpq	$0, -120(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_27
## %bb.26:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_scl_vop_cal_scale
	movq	_scale_cbcr_x@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %ecx
	callq	_VOP_SCL_SET
	leaq	-44(%rbp), %r9
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_scl_vop_cal_scale
	movq	_scale_cbcr_y@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %ecx
	callq	_VOP_SCL_SET
	movq	_vsd_cbcr_gt4@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%ecx, %ecx
	cmpl	$4, -44(%rbp)
	sete	%cl
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_VOP_SCL_SET_EXT
	movq	_vsd_cbcr_gt2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%ecx, %ecx
	cmpl	$2, -44(%rbp)
	sete	%cl
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_VOP_SCL_SET_EXT
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r12, %rcx
	callq	_VOP_SCL_SET_EXT
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r13, %rcx
	callq	_VOP_SCL_SET_EXT
	movq	_cbcr_hsd_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_SCALE_DOWN_BIL@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_VOP_SCL_SET_EXT
	movq	_cbcr_vsd_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	(%r15), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_VOP_SCL_SET_EXT
	movq	_cbcr_vsu_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_VOP_SCL_SET_EXT
LBB0_27:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_SCALE_NONE,8,3                 ## @SCALE_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Maximum dst width (3840) exceeded\n"

	.comm	_scale_yrgb_x,4,2               ## @scale_yrgb_x
	.comm	_scale_yrgb_y,4,2               ## @scale_yrgb_y
	.comm	_scale_cbcr_x,4,2               ## @scale_cbcr_x
	.comm	_scale_cbcr_y,4,2               ## @scale_cbcr_y
	.comm	_SCALE_DOWN,8,3                 ## @SCALE_DOWN
	.comm	_LB_RGB_3840X2,8,3              ## @LB_RGB_3840X2
L_.str.1:                               ## @.str.1
	.asciz	"not allow yrgb ver scale\n"

L_.str.2:                               ## @.str.2
	.asciz	"not allow cbcr ver scale\n"

	.comm	_SCALE_UP_BIL,8,3               ## @SCALE_UP_BIL
	.comm	_LB_RGB_2560X4,8,3              ## @LB_RGB_2560X4
	.comm	_SCALE_UP_BIC,8,3               ## @SCALE_UP_BIC
	.comm	_vsd_yrgb_gt4,8,3               ## @vsd_yrgb_gt4
	.comm	_vsd_yrgb_gt2,8,3               ## @vsd_yrgb_gt2
	.comm	_yrgb_hsd_mode,8,3              ## @yrgb_hsd_mode
	.comm	_SCALE_DOWN_BIL,8,3             ## @SCALE_DOWN_BIL
	.comm	_yrgb_vsd_mode,8,3              ## @yrgb_vsd_mode
	.comm	_yrgb_vsu_mode,8,3              ## @yrgb_vsu_mode
	.comm	_vsd_cbcr_gt4,8,3               ## @vsd_cbcr_gt4
	.comm	_vsd_cbcr_gt2,8,3               ## @vsd_cbcr_gt2
	.comm	_cbcr_hsd_mode,8,3              ## @cbcr_hsd_mode
	.comm	_cbcr_vsd_mode,8,3              ## @cbcr_vsd_mode
	.comm	_cbcr_vsu_mode,8,3              ## @cbcr_vsu_mode
	.no_dead_strip	_scl_vop_cal_scl_fac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scl_vop_cal_scl_fac
_scl_vop_cal_scl_fac:                   ; @scl_vop_cal_scl_fac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x0
	cmp	w4, #3841
	b.lt	LBB0_3
; %bb.1:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_DRM_DEV_ERROR
LBB0_3:
	mov	x26, x5
	mov	x22, x3
	mov	x27, x2
	mov	x20, x1
	ldp	w8, w9, [x6]
	sdiv	w8, w2, w8
	sxtw	x25, w8
	sdiv	w8, w3, w9
	sxtw	x23, w8
	ldr	x28, [x6, #8]
	ldr	x8, [x1]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.4:
	mov	x21, x26
	mov	x26, x28
	mov	x28, x25
	str	x23, [sp, #48]                  ; 8-byte Folded Spill
Lloh2:
	adrp	x8, _SCALE_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCALE_NONE@GOTPAGEOFF]
Lloh4:
	ldr	x25, [x8]
	mov	x8, x27
	sxtw	x0, w8
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	mov	x24, x4
	mov	x1, x4
	bl	_scl_get_scl_mode
	mov	x23, x0
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x0, w22
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	x1, x21
	bl	_scl_get_scl_mode
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	mov	x22, x26
	cbz	x26, LBB0_9
; %bb.5:
	mov	x25, x28
	mov	x0, x28
	mov	x1, x24
	bl	_scl_get_scl_mode
	mov	x26, x0
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	mov	x1, x21
	bl	_scl_get_scl_mode
Lloh5:
	adrp	x8, _SCALE_DOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCALE_DOWN@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x26, x8
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
	b.ne	LBB0_11
; %bb.6:
	mov	x26, x24
	mov	x0, x24
	b	LBB0_12
LBB0_7:
Lloh8:
	adrp	x8, _scale_yrgb_x@GOTPAGE
Lloh9:
	ldr	x8, [x8, _scale_yrgb_x@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
	sxtw	x0, w27
	mov	x21, x4
	mov	x1, x4
	bl	_scl_cal_scale2
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_VOP_SCL_SET
Lloh11:
	adrp	x8, _scale_yrgb_y@GOTPAGE
Lloh12:
	ldr	x8, [x8, _scale_yrgb_y@GOTPAGEOFF]
Lloh13:
	ldr	w24, [x8]
	sxtw	x0, w22
	mov	x1, x26
	bl	_scl_cal_scale2
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_VOP_SCL_SET
	cbz	x28, LBB0_22
; %bb.8:
Lloh14:
	adrp	x8, _scale_cbcr_x@GOTPAGE
Lloh15:
	ldr	x8, [x8, _scale_cbcr_x@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	mov	x0, x25
	mov	x1, x21
	bl	_scl_cal_scale2
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_VOP_SCL_SET
Lloh17:
	adrp	x8, _scale_cbcr_y@GOTPAGE
Lloh18:
	ldr	x8, [x8, _scale_cbcr_y@GOTPAGEOFF]
Lloh19:
	ldr	w22, [x8]
	mov	x0, x23
	mov	x1, x26
	bl	_scl_cal_scale2
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_VOP_SCL_SET
LBB0_9:
	mov	x26, x24
	str	x25, [sp, #40]                  ; 8-byte Folded Spill
Lloh20:
	adrp	x8, _SCALE_DOWN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SCALE_DOWN@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ne	LBB0_13
; %bb.10:
	mov	x0, x26
	b	LBB0_14
LBB0_11:
	mov	x26, x24
	mov	x0, x25
LBB0_12:
	mov	w1, #1
	bl	_scl_vop_cal_lb_mode
	mov	x27, x0
	b	LBB0_15
LBB0_13:
	mov	x0, x27
LBB0_14:
	mov	w1, #0
	bl	_scl_vop_cal_lb_mode
	mov	x27, x0
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	x25, x28
LBB0_15:
	mov	x28, x22
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	mov	x0, x19
	mov	x1, x20
	mov	x2, x27
	mov	x3, x27
	bl	_VOP_SCL_SET_EXT
Lloh23:
	adrp	x8, _LB_RGB_3840X2@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LB_RGB_3840X2@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x27, x8
	b.ne	LBB0_19
; %bb.16:
Lloh26:
	adrp	x8, _SCALE_NONE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SCALE_NONE@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_23
; %bb.17:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x8, x22
	b.ne	LBB0_24
; %bb.18:
Lloh29:
	adrp	x8, _SCALE_UP_BIL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SCALE_UP_BIL@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh31:
	adrp	x8, _LB_RGB_2560X4@GOTPAGE
Lloh32:
	ldr	x8, [x8, _LB_RGB_2560X4@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
Lloh34:
	adrp	x9, _SCALE_UP_BIC@GOTPAGE
Lloh35:
	ldr	x9, [x9, _SCALE_UP_BIC@GOTPAGEOFF]
Lloh36:
	adrp	x10, _SCALE_UP_BIL@GOTPAGE
Lloh37:
	ldr	x10, [x10, _SCALE_UP_BIL@GOTPAGEOFF]
	cmp	x27, x8
	csel	x8, x10, x9, eq
LBB0_20:
	ldr	x27, [x8]
	mov	x24, x23
	mov	x0, x23
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	mov	x2, x26
	mov	w3, #1
	mov	x4, #0
	mov	x5, #0
	bl	_scl_vop_cal_scale
	mov	x3, x0
Lloh38:
	adrp	x8, _scale_yrgb_x@GOTPAGE
Lloh39:
	ldr	x8, [x8, _scale_yrgb_x@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_VOP_SCL_SET
	add	x5, sp, #60
	mov	x0, x22
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x21
	mov	w3, #0
	mov	x4, x27
	bl	_scl_vop_cal_scale
	mov	x3, x0
Lloh41:
	adrp	x8, _scale_yrgb_y@GOTPAGE
Lloh42:
	ldr	x8, [x8, _scale_yrgb_y@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_VOP_SCL_SET
Lloh44:
	adrp	x8, _vsd_yrgb_gt4@GOTPAGE
Lloh45:
	ldr	x8, [x8, _vsd_yrgb_gt4@GOTPAGEOFF]
Lloh46:
	ldr	x2, [x8]
	ldr	w8, [sp, #60]
	cmp	w8, #4
	cset	w3, eq
	mov	x0, x19
	mov	x1, x20
	bl	_VOP_SCL_SET_EXT
Lloh47:
	adrp	x8, _vsd_yrgb_gt2@GOTPAGE
Lloh48:
	ldr	x8, [x8, _vsd_yrgb_gt2@GOTPAGEOFF]
Lloh49:
	ldr	x2, [x8]
	ldr	w8, [sp, #60]
	cmp	w8, #2
	cset	w3, eq
	mov	x0, x19
	mov	x1, x20
	bl	_VOP_SCL_SET_EXT
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x23
	bl	_VOP_SCL_SET_EXT
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x22
	bl	_VOP_SCL_SET_EXT
Lloh50:
	adrp	x8, _yrgb_hsd_mode@GOTPAGE
Lloh51:
	ldr	x8, [x8, _yrgb_hsd_mode@GOTPAGEOFF]
Lloh52:
	ldr	x2, [x8]
Lloh53:
	adrp	x22, _SCALE_DOWN_BIL@GOTPAGE
Lloh54:
	ldr	x22, [x22, _SCALE_DOWN_BIL@GOTPAGEOFF]
	ldr	x3, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_VOP_SCL_SET_EXT
Lloh55:
	adrp	x8, _yrgb_vsd_mode@GOTPAGE
Lloh56:
	ldr	x8, [x8, _yrgb_vsd_mode@GOTPAGEOFF]
Lloh57:
	ldr	x2, [x8]
	ldr	x3, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_VOP_SCL_SET_EXT
Lloh58:
	adrp	x8, _yrgb_vsu_mode@GOTPAGE
Lloh59:
	ldr	x8, [x8, _yrgb_vsu_mode@GOTPAGEOFF]
Lloh60:
	ldr	x2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x27
	bl	_VOP_SCL_SET_EXT
	ldr	x24, [sp, #48]                  ; 8-byte Folded Reload
	cbz	x28, LBB0_22
; %bb.21:
	mov	x23, x26
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x26
	mov	x1, x25
	mov	x2, x23
	mov	w3, #1
	mov	x4, #0
	mov	x5, #0
	bl	_scl_vop_cal_scale
	mov	x3, x0
Lloh61:
	adrp	x8, _scale_cbcr_x@GOTPAGE
Lloh62:
	ldr	x8, [x8, _scale_cbcr_x@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_VOP_SCL_SET
	add	x5, sp, #60
	ldr	x23, [sp, #40]                  ; 8-byte Folded Reload
	mov	x0, x23
	mov	x1, x24
	mov	x2, x21
	mov	w3, #0
	mov	x4, x27
	bl	_scl_vop_cal_scale
	mov	x3, x0
Lloh64:
	adrp	x8, _scale_cbcr_y@GOTPAGE
Lloh65:
	ldr	x8, [x8, _scale_cbcr_y@GOTPAGEOFF]
Lloh66:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_VOP_SCL_SET
Lloh67:
	adrp	x8, _vsd_cbcr_gt4@GOTPAGE
Lloh68:
	ldr	x8, [x8, _vsd_cbcr_gt4@GOTPAGEOFF]
Lloh69:
	ldr	x2, [x8]
	ldr	w8, [sp, #60]
	cmp	w8, #4
	cset	w3, eq
	mov	x0, x19
	mov	x1, x20
	bl	_VOP_SCL_SET_EXT
Lloh70:
	adrp	x8, _vsd_cbcr_gt2@GOTPAGE
Lloh71:
	ldr	x8, [x8, _vsd_cbcr_gt2@GOTPAGEOFF]
Lloh72:
	ldr	x2, [x8]
	ldr	w8, [sp, #60]
	cmp	w8, #2
	cset	w3, eq
	mov	x0, x19
	mov	x1, x20
	bl	_VOP_SCL_SET_EXT
	mov	x0, x19
	mov	x1, x20
	mov	x2, x26
	mov	x3, x26
	bl	_VOP_SCL_SET_EXT
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x23
	bl	_VOP_SCL_SET_EXT
Lloh73:
	adrp	x8, _cbcr_hsd_mode@GOTPAGE
Lloh74:
	ldr	x8, [x8, _cbcr_hsd_mode@GOTPAGEOFF]
Lloh75:
	ldr	x2, [x8]
	ldr	x3, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_VOP_SCL_SET_EXT
Lloh76:
	adrp	x8, _cbcr_vsd_mode@GOTPAGE
Lloh77:
	ldr	x8, [x8, _cbcr_vsd_mode@GOTPAGEOFF]
Lloh78:
	ldr	x2, [x8]
	ldr	x3, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_VOP_SCL_SET_EXT
Lloh79:
	adrp	x8, _cbcr_vsu_mode@GOTPAGE
Lloh80:
	ldr	x8, [x8, _cbcr_vsu_mode@GOTPAGEOFF]
Lloh81:
	ldr	x2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x27
	bl	_VOP_SCL_SET_EXT
LBB0_22:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_23:
	ldr	w0, [x19]
Lloh82:
	adrp	x1, l_.str.1@PAGE
Lloh83:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_24:
	ldr	w0, [x19]
Lloh84:
	adrp	x1, l_.str.2@PAGE
Lloh85:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh53, Lloh54
	.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	Lloh79, Lloh80, Lloh81
	.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	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.cfi_endproc
                                        ; -- End function
	.comm	_SCALE_NONE,8,3                 ; @SCALE_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Maximum dst width (3840) exceeded\n"

	.comm	_scale_yrgb_x,4,2               ; @scale_yrgb_x
	.comm	_scale_yrgb_y,4,2               ; @scale_yrgb_y
	.comm	_scale_cbcr_x,4,2               ; @scale_cbcr_x
	.comm	_scale_cbcr_y,4,2               ; @scale_cbcr_y
	.comm	_SCALE_DOWN,8,3                 ; @SCALE_DOWN
	.comm	_LB_RGB_3840X2,8,3              ; @LB_RGB_3840X2
l_.str.1:                               ; @.str.1
	.asciz	"not allow yrgb ver scale\n"

l_.str.2:                               ; @.str.2
	.asciz	"not allow cbcr ver scale\n"

	.comm	_SCALE_UP_BIL,8,3               ; @SCALE_UP_BIL
	.comm	_LB_RGB_2560X4,8,3              ; @LB_RGB_2560X4
	.comm	_SCALE_UP_BIC,8,3               ; @SCALE_UP_BIC
	.comm	_vsd_yrgb_gt4,8,3               ; @vsd_yrgb_gt4
	.comm	_vsd_yrgb_gt2,8,3               ; @vsd_yrgb_gt2
	.comm	_yrgb_hsd_mode,8,3              ; @yrgb_hsd_mode
	.comm	_SCALE_DOWN_BIL,8,3             ; @SCALE_DOWN_BIL
	.comm	_yrgb_vsd_mode,8,3              ; @yrgb_vsd_mode
	.comm	_yrgb_vsu_mode,8,3              ; @yrgb_vsu_mode
	.comm	_vsd_cbcr_gt4,8,3               ; @vsd_cbcr_gt4
	.comm	_vsd_cbcr_gt2,8,3               ; @vsd_cbcr_gt2
	.comm	_cbcr_hsd_mode,8,3              ; @cbcr_hsd_mode
	.comm	_cbcr_vsd_mode,8,3              ; @cbcr_vsd_mode
	.comm	_cbcr_vsu_mode,8,3              ; @cbcr_vsu_mode
	.no_dead_strip	_scl_vop_cal_scl_fac
.subsections_via_symbols
