	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sc_set_vs_coeffs               ## -- Begin function sc_set_vs_coeffs
	.p2align	4, 0x90
_sc_set_vs_coeffs:                      ## @sc_set_vs_coeffs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %eax
	cmpl	%edx, %ecx
	jbe	LBB0_2
## %bb.1:
	movq	_VS_UP_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_2:
	jne	LBB0_4
## %bb.3:
	movq	_VS_1_TO_1_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_4:
	movl	%edx, %ecx
	shll	$4, %eax
	xorl	%edx, %edx
	divl	%ecx
	cmpl	$9, %eax
	movl	$8, %ecx
	cmovgel	%eax, %ecx
	movq	_VS_LT_9_16_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ecx, %eax
	addl	$-8, %eax
LBB0_5:
	movq	_SC_NUM_PHASES@GOTPCREL(%rip), %r8
	movl	(%r8), %r10d
	testl	%r10d, %r10d
	jle	LBB0_12
## %bb.6:
	movq	_scaler_vs_coeffs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rcx
	movq	_SC_V_NUM_TAPS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	xorl	%r11d, %r11d
	movq	_SC_NUM_TAPS_MEM_ALIGN@GOTPCREL(%rip), %r9
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	(%r9), %rdx
	movslq	%eax, %rbx
	subq	%rbx, %rdx
	leaq	(%rsi,%rdx,4), %rsi
	incl	%r11d
	leal	(%r10,%r10), %edx
	cmpl	%edx, %r11d
	jge	LBB0_12
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	testl	%eax, %eax
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx), %eax
	addq	$4, %rcx
	movl	%eax, (%rsi)
	addq	$4, %rsi
	incl	%edx
	movl	(%r14), %eax
	cmpl	%eax, %edx
	jl	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r8), %r10d
	jmp	LBB0_11
LBB0_12:
	movl	$1, (%rdi)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VS_UP_SCALE,4,2                ## @VS_UP_SCALE
	.comm	_VS_1_TO_1_SCALE,4,2            ## @VS_1_TO_1_SCALE
	.comm	_VS_LT_9_16_SCALE,4,2           ## @VS_LT_9_16_SCALE
	.comm	_scaler_vs_coeffs,8,3           ## @scaler_vs_coeffs
	.comm	_SC_NUM_PHASES,4,2              ## @SC_NUM_PHASES
	.comm	_SC_V_NUM_TAPS,4,2              ## @SC_V_NUM_TAPS
	.comm	_SC_NUM_TAPS_MEM_ALIGN,4,2      ## @SC_NUM_TAPS_MEM_ALIGN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sc_set_vs_coeffs               ; -- Begin function sc_set_vs_coeffs
	.p2align	2
_sc_set_vs_coeffs:                      ; @sc_set_vs_coeffs
	.cfi_startproc
; %bb.0:
	cmp	w3, w2
	b.ls	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _VS_UP_SCALE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VS_UP_SCALE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	b	LBB0_5
LBB0_2:
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _VS_1_TO_1_SCALE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VS_1_TO_1_SCALE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
	b	LBB0_5
LBB0_4:
	lsl	w8, w3, #4
	udiv	w8, w8, w2
	mov	w9, #8
	cmp	w8, #8
	csel	w8, w8, w9, gt
Lloh6:
	adrp	x9, _VS_LT_9_16_SCALE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VS_LT_9_16_SCALE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	w8, w8, w9
	sub	w10, w8, #8
LBB0_5:
Lloh9:
	adrp	x8, _SC_NUM_PHASES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SC_NUM_PHASES@GOTPAGEOFF]
	ldr	w13, [x8]
	cmp	w13, #1
	b.lt	LBB0_12
; %bb.6:
	mov	w9, #0
Lloh11:
	adrp	x11, _scaler_vs_coeffs@GOTPAGE
Lloh12:
	ldr	x11, [x11, _scaler_vs_coeffs@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	ldr	x10, [x11, w10, sxtw #3]
Lloh14:
	adrp	x11, _SC_V_NUM_TAPS@GOTPAGE
Lloh15:
	ldr	x11, [x11, _SC_V_NUM_TAPS@GOTPAGEOFF]
	ldr	w14, [x11]
Lloh16:
	adrp	x12, _SC_NUM_TAPS_MEM_ALIGN@GOTPAGE
Lloh17:
	ldr	x12, [x12, _SC_NUM_TAPS_MEM_ALIGN@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w15, [x12]
	sub	w15, w15, w14
	add	x1, x1, w15, sxtw #2
	add	w9, w9, #1
	cmp	w9, w13, lsl #1
	b.ge	LBB0_12
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w14, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w13, #0
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x10], #4
	str	w14, [x1], #4
	add	w13, w13, #1
	ldr	w14, [x11]
	cmp	w13, w14
	b.lt	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w13, [x8]
	b	LBB0_7
LBB0_12:
	mov	w8, #1
	str	w8, [x0]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VS_UP_SCALE,4,2                ; @VS_UP_SCALE
	.comm	_VS_1_TO_1_SCALE,4,2            ; @VS_1_TO_1_SCALE
	.comm	_VS_LT_9_16_SCALE,4,2           ; @VS_LT_9_16_SCALE
	.comm	_scaler_vs_coeffs,8,3           ; @scaler_vs_coeffs
	.comm	_SC_NUM_PHASES,4,2              ; @SC_NUM_PHASES
	.comm	_SC_V_NUM_TAPS,4,2              ; @SC_V_NUM_TAPS
	.comm	_SC_NUM_TAPS_MEM_ALIGN,4,2      ; @SC_NUM_TAPS_MEM_ALIGN
.subsections_via_symbols
