	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function resampler_CC_upsample
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0xc000000000000000              ## double -2
LCPI0_2:
	.quad	0xbff0000000000000              ## double -1
LCPI0_3:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_4:
	.quad	0xbfe0000000000000              ## double -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_resampler_CC_upsample:                 ## @resampler_CC_upsample
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	32(%rsi), %rbx
	movslq	(%rsi), %r14
	movq	24(%rsi), %r12
	movsd	8(%rsi), %xmm0                  ## xmm0 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	callq	_float_min
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movsd	8(%r13), %xmm0                  ## xmm0 = mem[0],zero
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movq	8(%r15), %rdi
	callq	__mm_loadu_ps
	movl	%eax, %r13d
	movq	8(%r15), %rdi
	addq	$8, %rdi
	callq	__mm_loadu_ps
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	leaq	(%rbx,%r14,4), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	cvtsd2ss	%xmm0, %xmm0
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	cvtss2sd	%xmm1, %xmm1
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	cvtss2sd	%xmm0, %xmm0
	movsd	%xmm0, -96(%rbp)                ## 8-byte Spill
	movl	%eax, %r14d
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addsd	LCPI0_2(%rip), %xmm0
	movsd	%xmm0, (%r15)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	addq	$4, %rbx
	cmpq	-80(%rbp), %rbx                 ## 8-byte Folded Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_6
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	xorl	%eax, %eax
	callq	__mm_setzero_ps
	movl	%eax, %edi
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	__mm_loadl_pi
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	xorl	%esi, %esi
	movl	$3, %edx
	movl	$2, %ecx
	callq	__MM_SHUFFLE
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	__mm_shuffle_ps
	movl	%eax, %ebx
	movl	$1, %edi
	xorl	%esi, %esi
	movl	$3, %edx
	movl	$2, %ecx
	callq	__MM_SHUFFLE
	movl	%r14d, %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	__mm_shuffle_ps
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movl	%eax, %r14d
	movsd	(%r15), %xmm0                   ## xmm0 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jbe	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	__mm_set_ps1
	movl	%eax, %ebx
	xorps	%xmm2, %xmm2
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	callq	__mm_set_ps
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	__mm_add_ps
	movl	%eax, %ebx
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	__mm_set_ps1
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	__mm_add_ps
	movl	%r14d, %r15d
	movl	%eax, %r14d
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	__mm_set_ps1
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	__mm_sub_ps
	movl	%eax, %ebx
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	__mm_set_ps1
	movl	%eax, %r13d
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	__mm_mul_ps
	movl	%eax, %r14d
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	__mm_mul_ps
	movl	%eax, %ebx
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	__mm_set_ps1
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	__mm_min_ps
	movl	%eax, %r14d
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	__mm_set_ps1
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	__mm_min_ps
	movl	%eax, %r13d
	movsd	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	__mm_set_ps1
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	__mm_max_ps
	movl	%eax, %ebx
	movsd	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	__mm_set_ps1
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	__mm_max_ps
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	__mm_sub_ps
	movl	%eax, %ebx
	movl	$1, %edi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	__MM_SHUFFLE
	movl	%ebx, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	__mm_shuffle_ps
	movl	%eax, %r14d
	movl	$3, %edi
	movl	$3, %esi
	movl	$2, %edx
	movl	$2, %ecx
	callq	__MM_SHUFFLE
	movl	%ebx, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	__mm_shuffle_ps
	movl	%eax, %r13d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%r15d, %r14d
	movq	-104(%rbp), %r15                ## 8-byte Reload
	callq	__mm_mul_ps
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	%r13d, %esi
	callq	__mm_mul_ps
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	__mm_add_ps
	movl	%eax, %ebx
	movl	$3, %edi
	movl	$2, %esi
	movl	$3, %edx
	movl	$2, %ecx
	callq	__MM_SHUFFLE
	movl	%ebx, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	__mm_shuffle_ps
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	__mm_add_ps
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	__mm_storel_pi
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	(%r15), %xmm0                   ## xmm0 = mem[0],zero
	addsd	-96(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, (%r15)
	addq	$4, %r12
	ucomisd	%xmm0, %xmm1
	ja	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %r14d
LBB0_6:
	movq	8(%r15), %rdi
	movl	%r13d, %esi
	callq	__mm_storeu_ps
	movq	8(%r15), %rdi
	addq	$8, %rdi
	movl	%r14d, %esi
	callq	__mm_storeu_ps
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	subq	24(%rax), %r12
	shrq	$2, %r12
	movl	%r12d, 16(%rax)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_resampler_CC_upsample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resampler_CC_upsample
_resampler_CC_upsample:                 ; @resampler_CC_upsample
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x19, x1
	mov	x21, x0
	ldrsw	x25, [x1]
	ldp	x20, x22, [x1, #24]
	ldr	d0, [x1, #8]
	fmov	d9, #1.00000000
	fmov	d1, #1.00000000
	bl	_float_min
	fmov	s8, s0
	ldr	d10, [x19, #8]
	ldr	x0, [x21, #8]
	bl	__mm_loadu_ps
	mov	x23, x0
	ldr	x8, [x21, #8]
	add	x0, x8, #8
	bl	__mm_loadu_ps
	mov	x24, x0
	cbz	w25, LBB0_5
; %bb.1:
	add	x28, x22, x25, lsl #2
	fdiv	d0, d9, d10
	fcvt	s0, d0
	fcvt	d8, s8
	fcvt	d10, s0
	fmov	d11, #-1.00000000
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	fadd	d0, d0, d11
	str	d0, [x21]
	add	x22, x22, #4
	cmp	x22, x28
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	bl	__mm_setzero_ps
	mov	x1, x22
	bl	__mm_loadl_pi
	mov	x25, x0
	mov	w0, #1
	mov	w1, #0
	mov	w2, #3
	mov	w3, #2
	bl	__MM_SHUFFLE
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	__mm_shuffle_ps
	mov	x23, x0
	mov	w0, #1
	mov	w1, #0
	mov	w2, #3
	mov	w3, #2
	bl	__MM_SHUFFLE
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	__mm_shuffle_ps
	mov	x24, x0
	ldr	d0, [x21]
	fcmp	d0, d9
	b.pl	LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	__mm_set_ps1
	mov	x25, x0
	fmov	d0, #-2.00000000
	fmov	d1, #-1.00000000
	movi	d2, #0000000000000000
	fmov	d3, #1.00000000
	bl	__mm_set_ps
	mov	x1, x0
	mov	x0, x25
	bl	__mm_add_ps
	mov	x25, x0
	fmov	d0, #0.50000000
	bl	__mm_set_ps1
	mov	x1, x0
	mov	x0, x25
	bl	__mm_add_ps
	mov	x26, x0
	fmov	d0, #0.50000000
	bl	__mm_set_ps1
	mov	x1, x0
	mov	x0, x25
	bl	__mm_sub_ps
	mov	x25, x0
	fmov	d0, d8
	bl	__mm_set_ps1
	mov	x27, x0
	mov	x0, x26
	mov	x1, x27
	bl	__mm_mul_ps
	mov	x26, x0
	mov	x0, x25
	mov	x1, x27
	bl	__mm_mul_ps
	mov	x25, x0
	fmov	d0, #0.50000000
	bl	__mm_set_ps1
	mov	x1, x0
	mov	x0, x26
	bl	__mm_min_ps
	mov	x26, x0
	fmov	d0, #0.50000000
	bl	__mm_set_ps1
	mov	x1, x0
	mov	x0, x25
	bl	__mm_min_ps
	mov	x25, x0
	fmov	d0, #-0.50000000
	bl	__mm_set_ps1
	mov	x1, x0
	mov	x0, x26
	bl	__mm_max_ps
	mov	x26, x0
	fmov	d0, #-0.50000000
	bl	__mm_set_ps1
	mov	x1, x0
	mov	x0, x25
	bl	__mm_max_ps
	mov	x1, x0
	mov	x0, x26
	bl	__mm_sub_ps
	mov	x25, x0
	mov	w0, #1
	mov	w1, #1
	mov	w2, #0
	mov	w3, #0
	bl	__MM_SHUFFLE
	mov	x2, x0
	mov	x0, x25
	mov	x1, x25
	bl	__mm_shuffle_ps
	mov	x26, x0
	mov	w0, #3
	mov	w1, #3
	mov	w2, #2
	mov	w3, #2
	bl	__MM_SHUFFLE
	mov	x2, x0
	mov	x0, x25
	mov	x1, x25
	bl	__mm_shuffle_ps
	mov	x25, x0
	mov	x0, x23
	mov	x1, x26
	bl	__mm_mul_ps
	mov	x26, x0
	mov	x0, x24
	mov	x1, x25
	bl	__mm_mul_ps
	mov	x1, x0
	mov	x0, x26
	bl	__mm_add_ps
	mov	x25, x0
	mov	w0, #3
	mov	w1, #2
	mov	w2, #3
	mov	w3, #2
	bl	__MM_SHUFFLE
	mov	x2, x0
	mov	x0, x25
	mov	x1, x25
	bl	__mm_shuffle_ps
	mov	x1, x0
	mov	x0, x25
	bl	__mm_add_ps
	mov	x1, x0
	mov	x0, x20
	bl	__mm_storel_pi
	ldr	d0, [x21]
	fadd	d0, d0, d10
	str	d0, [x21]
	add	x20, x20, #4
	fcmp	d0, d9
	b.mi	LBB0_4
	b	LBB0_2
LBB0_5:
	ldr	x0, [x21, #8]
	mov	x1, x23
	bl	__mm_storeu_ps
	ldr	x8, [x21, #8]
	add	x0, x8, #8
	mov	x1, x24
	bl	__mm_storeu_ps
	ldr	x8, [x19, #24]
	sub	x8, x20, x8
	lsr	x8, x8, #2
	str	w8, [x19, #16]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_resampler_CC_upsample
.subsections_via_symbols
