	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dss_sp_sf_synthesis
_dss_sp_sf_synthesis:                   ## @dss_sp_sf_synthesis
	.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	$408, %rsp                      ## imm = 0x198
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%ecx, %ecx
	movq	%rdx, -432(%rbp)                ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_dss_sp_vector_sum
	cmpl	$1048575, %eax                  ## imm = 0xFFFFF
	movl	$1048575, %ecx                  ## imm = 0xFFFFF
	cmovll	%eax, %ecx
	shll	$11, %ecx
	movl	%ecx, -404(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	$0, -404(%rbp)                  ## 4-byte Folded Spill
LBB0_3:
	movq	(%r15), %rdi
	movl	%r12d, %esi
	callq	_dss_sp_get_normalize_bits
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leal	-3(%rbx), %esi
	movl	%r12d, %edx
	callq	_dss_sp_scale_vector
	movq	8(%r15), %rdi
	movl	%ebx, %esi
	movl	$15, %edx
	callq	_dss_sp_scale_vector
	movq	16(%r15), %rdi
	movq	%rbx, -416(%rbp)                ## 8-byte Spill
	movl	%ebx, %esi
	movl	$15, %edx
	callq	_dss_sp_scale_vector
	movq	16(%r15), %rax
	movl	4(%rax), %eax
	movl	%eax, -420(%rbp)                ## 4-byte Spill
	movl	28(%r15), %edi
	movq	_binary_decreasing_array@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %r14
	movq	%r14, %rsi
	callq	_dss_sp_vec_mult
	movq	(%r15), %rdx
	movq	8(%r15), %rsi
	movq	%r14, %rdi
	callq	_dss_sp_shift_sq_add
	movl	28(%r15), %edi
	movq	_dss_sp_unc_decreasing_array@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_dss_sp_vec_mult
	movq	(%r15), %rdx
	movq	16(%r15), %rsi
	movq	%r14, %rdi
	callq	_dss_sp_shift_sq_sub
	movl	%r13d, %eax
	sarl	%eax
	sarl	$31, %r13d
	andl	%eax, %r13d
	movl	%r12d, %eax
	movl	%r12d, -408(%rbp)               ## 4-byte Spill
	cmpl	$1, %r12d
	movq	%rax, -440(%rbp)                ## 8-byte Spill
	jle	LBB0_4
## %bb.5:
	movq	(%r15), %rcx
	movl	$4294967294, %ebx               ## imm = 0xFFFFFFFE
	addq	%rax, %rbx
	leaq	-1(%rax), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %r14d
	shlq	$2, %r14
	movl	(%rcx,%r14), %edi
	movl	%ebx, %eax
	movl	(%rcx,%rax,4), %edx
	movl	%r13d, %esi
	callq	_DSS_SP_FORMULA
	movl	%eax, %edi
	callq	_av_clip_int16
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%r14)
	decq	%rbx
	leaq	-1(%r12), %rax
	incq	%r12
	cmpq	$2, %r12
	movq	%rax, %r12
	ja	LBB0_6
	jmp	LBB0_7
LBB0_4:
	movq	(%r15), %rcx
LBB0_7:
	movl	(%rcx), %edi
	movl	%r13d, %esi
	movl	-420(%rbp), %edx                ## 4-byte Reload
	callq	_DSS_SP_FORMULA
	movl	%eax, %edi
	callq	_av_clip_int16
	movq	(%r15), %rdi
	movl	%eax, (%rdi)
	movq	-416(%rbp), %rbx                ## 8-byte Reload
	negl	%ebx
	movl	%ebx, %esi
	movl	-408(%rbp), %r13d               ## 4-byte Reload
	movl	%r13d, %edx
	callq	_dss_sp_scale_vector
	movq	8(%r15), %rdi
	movl	%ebx, %esi
	movl	$15, %edx
	callq	_dss_sp_scale_vector
	movq	16(%r15), %rdi
	movl	%ebx, %esi
	movl	$15, %edx
	callq	_dss_sp_scale_vector
	xorl	%r12d, %r12d
	testl	%r13d, %r13d
	jle	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_dss_sp_vector_sum
	cmpl	$64, %eax
	movq	-432(%rbp), %r14                ## 8-byte Reload
	jl	LBB0_11
## %bb.10:
	movl	%eax, %ecx
	movl	-404(%rbp), %eax                ## 4-byte Reload
	cltd
	idivl	%ecx
	imull	$409, %eax, %r12d               ## imm = 0x199
	andl	$-32768, %r12d                  ## imm = 0x8000
	jmp	LBB0_11
LBB0_8:
	movq	-432(%rbp), %r14                ## 8-byte Reload
LBB0_11:
	imull	$32358, 24(%r15), %edi          ## imm = 0x7E66
	addl	%r12d, %edi
	sarl	$15, %edi
	callq	_av_clip_int16
	movq	%rax, -416(%rbp)                ## 8-byte Spill
	movl	%eax, -400(%rbp)
	cmpl	$2, %r13d
	movq	-440(%rbp), %r13                ## 8-byte Reload
	jl	LBB0_14
## %bb.12:
	movl	$1, %ebx
	movq	-416(%rbp), %rax                ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax def $rax
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	imull	$32358, %eax, %edi              ## imm = 0x7E66
	addl	%r12d, %edi
	sarl	$15, %edi
	callq	_av_clip_int16
	movl	%eax, -400(%rbp,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_13
LBB0_14:
	movl	-408(%rbp), %ebx                ## 4-byte Reload
	movslq	%ebx, %rax
	movl	-404(%rbp,%rax,4), %eax
	movl	%eax, 24(%r15)
	testl	%ebx, %ebx
	jle	LBB0_18
## %bb.15:
	movq	(%r15), %rax
	movq	-416(%rbp), %rdi                ## 8-byte Reload
	imull	(%rax), %edi
	sarl	$11, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_av_clip_int16
	movl	%eax, (%r14)
	cmpl	$1, %ebx
	je	LBB0_18
## %bb.16:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	-400(%rbp,%rbx,4), %edi
	movq	(%r15), %rax
	imull	(%rax,%rbx,4), %edi
	sarl	$11, %edi
	callq	_av_clip_int16
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_17
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	addq	$408, %rsp                      ## imm = 0x198
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_binary_decreasing_array,4,2    ## @binary_decreasing_array
	.comm	_dss_sp_unc_decreasing_array,4,2 ## @dss_sp_unc_decreasing_array
	.no_dead_strip	_dss_sp_sf_synthesis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dss_sp_sf_synthesis
_dss_sp_sf_synthesis:                   ; @dss_sp_sf_synthesis
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #464
	.cfi_def_cfa_offset 464
	stp	x28, x27, [sp, #368]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #384]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #400]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #416]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #432]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #448]            ; 16-byte Folded Spill
	add	x29, sp, #448
	.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	x21, x3
	mov	x19, x2
	mov	x23, x1
	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, #-96]
	cmp	w3, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_dss_sp_vector_sum
	mov	w8, #1048575
	cmp	w0, w8
	csel	w8, w0, w8, lt
	lsl	w8, w8, #11
	str	w8, [sp]                        ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:
	str	wzr, [sp]                       ; 4-byte Folded Spill
LBB0_3:
	ldr	x0, [x20]
	mov	x1, x21
	bl	_dss_sp_get_normalize_bits
	mov	x22, x0
	ldr	x0, [x20]
	sub	w1, w22, #3
	mov	x2, x21
	bl	_dss_sp_scale_vector
	ldr	x0, [x20, #8]
	mov	x1, x22
	mov	w2, #15
	bl	_dss_sp_scale_vector
	ldr	x0, [x20, #16]
	mov	x1, x22
	mov	w2, #15
	bl	_dss_sp_scale_vector
	ldr	x8, [x20, #16]
	ldr	w24, [x8, #4]
	ldr	w0, [x20, #28]
Lloh3:
	adrp	x8, _binary_decreasing_array@GOTPAGE
Lloh4:
	ldr	x8, [x8, _binary_decreasing_array@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	sub	x1, x29, #156
	bl	_dss_sp_vec_mult
	ldp	x2, x1, [x20]
	sub	x0, x29, #156
	bl	_dss_sp_shift_sq_add
	ldr	w0, [x20, #28]
Lloh6:
	adrp	x8, _dss_sp_unc_decreasing_array@GOTPAGE
Lloh7:
	ldr	x8, [x8, _dss_sp_unc_decreasing_array@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	sub	x1, x29, #156
	bl	_dss_sp_vec_mult
	ldr	x1, [x20, #16]
	ldr	x2, [x20]
	sub	x0, x29, #156
	bl	_dss_sp_shift_sq_sub
	asr	w8, w23, #31
	and	w23, w8, w23, asr #1
	mov	w25, w21
	cmp	w21, #1
	b.le	LBB0_6
; %bb.4:
	ldr	x8, [x20]
	mov	x27, x25
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x28, x27, #1
	and	x9, x28, #0xffffffff
	lsl	x26, x9, #2
	ldr	w0, [x8, x26]
	sub	w9, w27, #2
	ldr	w2, [x8, w9, uxtw #2]
	mov	x1, x23
	bl	_DSS_SP_FORMULA
	bl	_av_clip_int16
	ldr	x8, [x20]
	str	w0, [x8, x26]
	cmp	x27, #2
	mov	x27, x28
	b.hi	LBB0_5
	b	LBB0_7
LBB0_6:
	ldr	x8, [x20]
LBB0_7:
	ldr	w0, [x8]
	mov	x1, x23
	mov	x2, x24
	bl	_DSS_SP_FORMULA
	bl	_av_clip_int16
	ldr	x8, [x20]
	str	w0, [x8]
	neg	w22, w22
	mov	x0, x8
	mov	x1, x22
	mov	x2, x21
	bl	_dss_sp_scale_vector
	ldr	x0, [x20, #8]
	mov	x1, x22
	mov	w2, #15
	bl	_dss_sp_scale_vector
	ldr	x0, [x20, #16]
	mov	x1, x22
	mov	w2, #15
	bl	_dss_sp_scale_vector
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	bl	_dss_sp_vector_sum
	cmp	w0, #64
	b.lt	LBB0_10
; %bb.9:
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	sdiv	w8, w8, w0
	mov	w9, #409
	mul	w8, w8, w9
	and	w23, w8, #0xffff8000
	b	LBB0_11
LBB0_10:
	mov	w23, #0
LBB0_11:
	ldr	w8, [x20, #24]
	mov	w24, #32358
	madd	w8, w8, w24, w23
	asr	w0, w8, #15
	bl	_av_clip_int16
	mov	x22, x0
	str	w22, [sp, #4]
	cmp	w21, #1
	b.le	LBB0_14
; %bb.12:
	add	x8, sp, #4
	add	x26, x8, #4
	sub	x27, x25, #1
	mov	x0, x22
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	madd	w8, w0, w24, w23
	asr	w0, w8, #15
	bl	_av_clip_int16
	str	w0, [x26], #4
	subs	x27, x27, #1
	b.ne	LBB0_13
LBB0_14:
	add	x8, sp, #4
	add	x8, x8, w21, sxtw #2
	ldur	w8, [x8, #-4]
	str	w8, [x20, #24]
	cmp	w21, #1
	b.lt	LBB0_18
; %bb.15:
	ldr	x8, [x20]
	ldr	w8, [x8]
	mul	w8, w8, w22
	asr	w0, w8, #11
	bl	_av_clip_int16
	str	w0, [x19]
	cmp	w21, #1
	b.eq	LBB0_18
; %bb.16:
	mov	w21, #1
	add	x22, sp, #4
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	lsl	x23, x21, #2
	ldr	w8, [x22, x23]
	ldr	x9, [x20]
	ldr	w9, [x9, x23]
	mul	w8, w8, w9
	asr	w0, w8, #11
	bl	_av_clip_int16
	str	w0, [x19, x23]
	add	x21, x21, #1
	cmp	x25, x21
	b.ne	LBB0_17
LBB0_18:
	ldur	x8, [x29, #-96]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	ldp	x29, x30, [sp, #448]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #432]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #416]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #400]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #384]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #368]            ; 16-byte Folded Reload
	add	sp, sp, #464
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_binary_decreasing_array,4,2    ; @binary_decreasing_array
	.comm	_dss_sp_unc_decreasing_array,4,2 ; @dss_sp_unc_decreasing_array
	.no_dead_strip	_dss_sp_sf_synthesis
.subsections_via_symbols
