	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scl_vop_cal_scale
_scl_vop_cal_scale:                     ## @scl_vop_cal_scale
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	_SCL_FT_DEFAULT_FIXPOINT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	testq	%r9, %r9
	je	LBB0_2
## %bb.1:
	movl	$0, (%r12)
LBB0_2:
	movq	_SCALE_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.3:
	cmpl	%edi, %ecx
	je	LBB0_8
## %bb.4:
	movq	_SCALE_DOWN@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jne	LBB0_12
LBB0_5:
	movl	%r15d, %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GET_SCL_FT_BILI_DN             ## TAILCALL
LBB0_6:
	cmpl	%edi, %ecx
	jne	LBB0_9
## %bb.7:
	movq	_SCALE_UP_BIL@GOTPCREL(%rip), %rax
	cmpl	%r8d, (%rax)
	jne	LBB0_8
## %bb.13:
	movl	%r15d, %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GET_SCL_FT_BILI_UP             ## TAILCALL
LBB0_8:
	movl	%r15d, %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GET_SCL_FT_BIC                 ## TAILCALL
LBB0_9:
	movq	_SCALE_DOWN@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jne	LBB0_12
## %bb.10:
	testq	%r12, %r12
	je	LBB0_5
## %bb.11:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_scl_get_vskiplines
	movl	%eax, (%r12)
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scl_get_bili_dn_vskip          ## TAILCALL
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCL_FT_DEFAULT_FIXPOINT_SHIFT,4,2 ## @SCL_FT_DEFAULT_FIXPOINT_SHIFT
	.comm	_SCALE_UP,4,2                   ## @SCALE_UP
	.comm	_SCALE_DOWN,4,2                 ## @SCALE_DOWN
	.comm	_SCALE_UP_BIL,4,2               ## @SCALE_UP_BIL
	.no_dead_strip	_scl_vop_cal_scale
.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_scale
_scl_vop_cal_scale:                     ; @scl_vop_cal_scale
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x5
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _SCL_FT_DEFAULT_FIXPOINT_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCL_FT_DEFAULT_FIXPOINT_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	x5, LBB0_2
; %bb.1:
	str	wzr, [x21]
LBB0_2:
Lloh3:
	adrp	x9, _SCALE_UP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCALE_UP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w0
	cbz	w3, LBB0_6
; %bb.3:
	b.eq	LBB0_9
; %bb.4:
Lloh6:
	adrp	x9, _SCALE_DOWN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SCALE_DOWN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, w0
	b.ne	LBB0_13
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_GET_SCL_FT_BILI_DN
LBB0_6:
	b.ne	LBB0_10
; %bb.7:
Lloh9:
	adrp	x8, _SCALE_UP_BIL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCALE_UP_BIL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w4
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_GET_SCL_FT_BILI_UP
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_GET_SCL_FT_BIC
LBB0_10:
Lloh12:
	adrp	x9, _SCALE_DOWN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SCALE_DOWN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w9, w0
	b.ne	LBB0_13
; %bb.11:
	cbz	x21, LBB0_5
; %bb.12:
	mov	x0, x20
	mov	x1, x19
	bl	_scl_get_vskiplines
	mov	x2, x0
	str	w0, [x21]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_scl_get_bili_dn_vskip
LBB0_13:
	mov	w9, #1
	lsl	w0, w9, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SCL_FT_DEFAULT_FIXPOINT_SHIFT,4,2 ; @SCL_FT_DEFAULT_FIXPOINT_SHIFT
	.comm	_SCALE_UP,4,2                   ; @SCALE_UP
	.comm	_SCALE_DOWN,4,2                 ; @SCALE_DOWN
	.comm	_SCALE_UP_BIL,4,2               ; @SCALE_UP_BIL
	.no_dead_strip	_scl_vop_cal_scale
.subsections_via_symbols
