	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function cubic_interpolate_func
LCPI0_0:
	.quad	0x7fffffffffffffff              ## double NaN
	.quad	0x7fffffffffffffff              ## double NaN
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x4008000000000000              ## double 3
LCPI0_2:
	.quad	0xc008000000000000              ## double -3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_cubic_interpolate_func:                ## @cubic_interpolate_func
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	%xmm0, -32(%rbp)
	movq	(%rdi), %rbx
	movslq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jae	LBB0_3
## %bb.4:
	decq	%rdx
	movq	%rdx, %rcx
	shlq	$4, %rcx
	ucomisd	(%rax,%rcx), %xmm0
	jae	LBB0_5
## %bb.6:
	leaq	8(%rbx), %r14
	movq	_gain_entry_compare@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-32(%rbp), %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$16, %ecx
	callq	_bsearch
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_av_assert0
	movsd	16(%r15), %xmm1                 ## xmm1 = mem[0],zero
	movq	(%r14), %rax
	movupd	(%r15), %xmm8
	movapd	%xmm1, %xmm9
	subsd	%xmm8, %xmm9
	xorpd	%xmm4, %xmm4
	xorpd	%xmm2, %xmm2
	cmpq	%rax, %r15
	je	LBB0_8
## %bb.7:
	movupd	-16(%r15), %xmm0
	movapd	%xmm8, %xmm3
	subpd	%xmm0, %xmm3
	movapd	%xmm3, %xmm2
	unpckhpd	%xmm3, %xmm2                    ## xmm2 = xmm2[1],xmm3[1]
	mulsd	%xmm9, %xmm2
	divsd	%xmm3, %xmm2
LBB0_8:
	movsd	24(%r15), %xmm3                 ## xmm3 = mem[0],zero
	movapd	%xmm8, %xmm10
	unpckhpd	%xmm8, %xmm10                   ## xmm10 = xmm10[1],xmm8[1]
	movapd	%xmm3, %xmm11
	subsd	%xmm10, %xmm11
	movslq	(%rbx), %rcx
	shlq	$4, %rcx
	addq	%rcx, %rax
	addq	$-32, %rax
	cmpq	%rax, %r15
	je	LBB0_10
## %bb.9:
	movupd	32(%r15), %xmm0
	unpcklpd	%xmm3, %xmm1                    ## xmm1 = xmm1[0],xmm3[0]
	subpd	%xmm1, %xmm0
	movapd	%xmm0, %xmm4
	unpckhpd	%xmm0, %xmm4                    ## xmm4 = xmm4[1],xmm0[1]
	mulsd	%xmm9, %xmm4
	divsd	%xmm0, %xmm4
LBB0_10:
	movapd	LCPI0_0(%rip), %xmm5            ## xmm5 = [NaN,NaN]
	movapd	%xmm2, %xmm7
	andpd	%xmm5, %xmm7
	andpd	%xmm11, %xmm5
	movapd	%xmm5, %xmm1
	addsd	%xmm7, %xmm1
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm1
	xorpd	%xmm6, %xmm6
	jbe	LBB0_12
## %bb.11:
	mulsd	%xmm5, %xmm2
	mulsd	%xmm11, %xmm7
	addsd	%xmm2, %xmm7
	divsd	%xmm1, %xmm7
	movapd	%xmm7, %xmm6
LBB0_12:
	movapd	LCPI0_0(%rip), %xmm2            ## xmm2 = [NaN,NaN]
	andpd	%xmm4, %xmm2
	movapd	%xmm5, %xmm1
	addsd	%xmm2, %xmm1
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_14
## %bb.13:
	mulsd	%xmm2, %xmm11
	mulsd	%xmm5, %xmm4
	addsd	%xmm11, %xmm4
	divsd	%xmm1, %xmm4
	movapd	%xmm4, %xmm0
LBB0_14:
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm3, %xmm1
	subsd	%xmm0, %xmm1
	movapd	%xmm6, %xmm0
	addsd	%xmm6, %xmm0
	subsd	%xmm0, %xmm1
	movsd	LCPI0_2(%rip), %xmm2            ## xmm2 = mem[0],zero
	mulsd	%xmm10, %xmm2
	addsd	%xmm1, %xmm2
	subsd	%xmm2, %xmm3
	subsd	%xmm6, %xmm3
	subsd	%xmm10, %xmm3
	movsd	-32(%rbp), %xmm1                ## xmm1 = mem[0],zero
	subsd	%xmm8, %xmm1
	divsd	%xmm9, %xmm1
	movapd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm6
	mulsd	%xmm0, %xmm1
	mulsd	%xmm3, %xmm1
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	addsd	%xmm6, %xmm0
	addsd	%xmm10, %xmm0
	jmp	LBB0_15
LBB0_1:
	xorpd	%xmm0, %xmm0
	jmp	LBB0_15
LBB0_3:
	movsd	8(%rax), %xmm0                  ## xmm0 = mem[0],zero
	jmp	LBB0_15
LBB0_5:
	movsd	8(%rax,%rcx), %xmm0             ## xmm0 = mem[0],zero
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gain_entry_compare,4,2         ## @gain_entry_compare
	.no_dead_strip	_cubic_interpolate_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cubic_interpolate_func
_cubic_interpolate_func:                ; @cubic_interpolate_func
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	d0, [sp, #8]
	ldr	x21, [x0]
	ldr	w9, [x21]
	cbz	w9, LBB0_12
; %bb.1:
	mov	x19, x21
	ldr	x8, [x19, #8]!
	ldr	d1, [x8]
	fcmp	d1, d0
	b.ge	LBB0_14
; %bb.2:
	sub	w9, w9, #1
	sxtw	x2, w9
	sbfiz	x9, x9, #4, #32
	ldr	d1, [x8, x9]
	fcmp	d1, d0
	b.ls	LBB0_13
; %bb.3:
Lloh0:
	adrp	x8, _gain_entry_compare@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gain_entry_compare@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	add	x0, sp, #8
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w3, #16
	bl	_bsearch
	mov	x20, x0
	bl	_av_assert0
	ldp	d0, d6, [x20, #8]
	ldr	d1, [x20]
	fsub	d2, d6, d1
	ldr	x8, [x19]
	movi	d4, #0000000000000000
	movi	d7, #0000000000000000
	cmp	x20, x8
	b.eq	LBB0_5
; %bb.4:
	ldp	d5, d3, [x20, #-16]
	fsub	d3, d0, d3
	fmul	d3, d2, d3
	fsub	d5, d1, d5
	fdiv	d7, d3, d5
LBB0_5:
	ldr	d3, [x20, #24]
	fsub	d5, d3, d0
	ldrsw	x9, [x21]
	add	x8, x8, x9, lsl #4
	sub	x8, x8, #32
	cmp	x20, x8
	b.eq	LBB0_7
; %bb.6:
	ldp	d16, d4, [x20, #32]
	fsub	d4, d4, d3
	fmul	d4, d2, d4
	fsub	d6, d16, d6
	fdiv	d4, d4, d6
LBB0_7:
	fabs	d18, d7
	fabs	d17, d5
	fadd	d19, d18, d17
	movi	d16, #0000000000000000
	fcmp	d19, #0.0
	movi	d6, #0000000000000000
	b.le	LBB0_9
; %bb.8:
	fmul	d6, d7, d17
	fmadd	d6, d18, d5, d6
	fdiv	d6, d6, d19
LBB0_9:
	fabs	d18, d4
	fadd	d7, d17, d18
	fcmp	d7, #0.0
	b.le	LBB0_11
; %bb.10:
	fmul	d5, d5, d18
	fmadd	d4, d17, d4, d5
	fdiv	d16, d4, d7
LBB0_11:
	fmov	d4, #3.00000000
	fnmsub	d4, d3, d4, d16
	fmov	d5, #-2.00000000
	fmadd	d4, d6, d5, d4
	fmov	d5, #-3.00000000
	fmadd	d4, d0, d5, d4
	fsub	d3, d3, d4
	fsub	d3, d3, d6
	fsub	d3, d3, d0
	ldr	d5, [sp, #8]
	fsub	d1, d5, d1
	fdiv	d1, d1, d2
	fmul	d2, d1, d1
	fmul	d5, d1, d2
	fmul	d2, d4, d2
	fmadd	d2, d3, d5, d2
	fmadd	d1, d6, d1, d2
	fadd	d0, d0, d1
	b	LBB0_15
LBB0_12:
	movi	d0, #0000000000000000
	b	LBB0_15
LBB0_13:
	add	x8, x8, x2, lsl #4
LBB0_14:
	ldr	d0, [x8, #8]
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_gain_entry_compare,4,2         ; @gain_entry_compare
	.no_dead_strip	_cubic_interpolate_func
.subsections_via_symbols
